make "this file is processed in order" more clear...
[freeradius.git] / src / modules / rlm_yubikey / configure
1 #! /bin/sh
2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69.
5 #
6 #
7 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19   emulate sh
20   NULLCMD=:
21   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in #(
27   *posix*) :
28     set -o posix ;; #(
29   *) :
30      ;;
31 esac
32 fi
33
34
35 as_nl='
36 '
37 export as_nl
38 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 # Prefer a ksh shell builtin over an external printf program on Solaris,
43 # but without wasting forks for bash or zsh.
44 if test -z "$BASH_VERSION$ZSH_VERSION" \
45     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46   as_echo='print -r --'
47   as_echo_n='print -rn --'
48 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='printf %s\n'
50   as_echo_n='printf %s'
51 else
52   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54     as_echo_n='/usr/ucb/echo -n'
55   else
56     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57     as_echo_n_body='eval
58       arg=$1;
59       case $arg in #(
60       *"$as_nl"*)
61         expr "X$arg" : "X\\(.*\\)$as_nl";
62         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63       esac;
64       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65     '
66     export as_echo_n_body
67     as_echo_n='sh -c $as_echo_n_body as_echo'
68   fi
69   export as_echo_body
70   as_echo='sh -c $as_echo_body as_echo'
71 fi
72
73 # The user is always right.
74 if test "${PATH_SEPARATOR+set}" != set; then
75   PATH_SEPARATOR=:
76   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78       PATH_SEPARATOR=';'
79   }
80 fi
81
82
83 # IFS
84 # We need space, tab and new line, in precisely that order.  Quoting is
85 # there to prevent editors from complaining about space-tab.
86 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
87 # splitting by setting IFS to empty value.)
88 IFS=" ""        $as_nl"
89
90 # Find who we are.  Look in the path if we contain no directory separator.
91 as_myself=
92 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 # Use a proper internal environment variable to ensure we don't fall
137   # into an infinite loop, continuously re-executing ourselves.
138   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
139     _as_can_reexec=no; export _as_can_reexec;
140     # We cannot yet assume a decent shell, so we have to provide a
141 # neutralization value for shells without unset; and this also
142 # works around shells that cannot unset nonexistent variables.
143 # Preserve -v and -x to the replacement shell.
144 BASH_ENV=/dev/null
145 ENV=/dev/null
146 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 case $- in # ((((
148   *v*x* | *x*v* ) as_opts=-vx ;;
149   *v* ) as_opts=-v ;;
150   *x* ) as_opts=-x ;;
151   * ) as_opts= ;;
152 esac
153 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
154 # Admittedly, this is quite paranoid, since all the known shells bail
155 # out after a failed `exec'.
156 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
157 as_fn_exit 255
158   fi
159   # We don't want this to propagate to other subprocesses.
160           { _as_can_reexec=; unset _as_can_reexec;}
161 if test "x$CONFIG_SHELL" = x; then
162   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
163   emulate sh
164   NULLCMD=:
165   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
166   # is contrary to our usage.  Disable this feature.
167   alias -g '\${1+\"\$@\"}'='\"\$@\"'
168   setopt NO_GLOB_SUBST
169 else
170   case \`(set -o) 2>/dev/null\` in #(
171   *posix*) :
172     set -o posix ;; #(
173   *) :
174      ;;
175 esac
176 fi
177 "
178   as_required="as_fn_return () { (exit \$1); }
179 as_fn_success () { as_fn_return 0; }
180 as_fn_failure () { as_fn_return 1; }
181 as_fn_ret_success () { return 0; }
182 as_fn_ret_failure () { return 1; }
183
184 exitcode=0
185 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
186 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
187 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
188 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
189 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190
191 else
192   exitcode=1; echo positional parameters were not saved.
193 fi
194 test x\$exitcode = x0 || exit 1
195 test -x / || exit 1"
196   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
197   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
198   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
199   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
200   if (eval "$as_required") 2>/dev/null; then :
201   as_have_required=yes
202 else
203   as_have_required=no
204 fi
205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212   IFS=$as_save_IFS
213   test -z "$as_dir" && as_dir=.
214   as_found=:
215   case $as_dir in #(
216          /*)
217            for as_base in sh bash ksh sh5; do
218              # Try only shells that exist, to save several forks.
219              as_shell=$as_dir/$as_base
220              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222   CONFIG_SHELL=$as_shell as_have_required=yes
223                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   break 2
225 fi
226 fi
227            done;;
228        esac
229   as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233   CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238       if test "x$CONFIG_SHELL" != x; then :
239   export CONFIG_SHELL
240              # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248   *v*x* | *x*v* ) as_opts=-vx ;;
249   *v* ) as_opts=-v ;;
250   *x* ) as_opts=-x ;;
251   * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260     if test x$as_have_required = xno; then :
261   $as_echo "$0: This script requires a shell more modern than all"
262   $as_echo "$0: the shells that I found on your system."
263   if test x${ZSH_VERSION+set} = xset ; then
264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266   else
267     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271   fi
272   exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290   { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299   return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307   set +e
308   as_fn_set_status $1
309   exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318   case $as_dir in #(
319   -*) as_dir=./$as_dir;;
320   esac
321   test -d "$as_dir" || eval $as_mkdir_p || {
322     as_dirs=
323     while :; do
324       case $as_dir in #(
325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326       *) as_qdir=$as_dir;;
327       esac
328       as_dirs="'$as_qdir' $as_dirs"
329       as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331          X"$as_dir" : 'X\(//\)[^/]' \| \
332          X"$as_dir" : 'X\(//\)$' \| \
333          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336             s//\1/
337             q
338           }
339           /^X\(\/\/\)[^/].*/{
340             s//\1/
341             q
342           }
343           /^X\(\/\/\)$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\).*/{
348             s//\1/
349             q
350           }
351           s/.*/./; q'`
352       test -d "$as_dir" && break
353     done
354     test -z "$as_dirs" || eval "mkdir $as_dirs"
355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365   test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374   eval 'as_fn_append ()
375   {
376     eval $1+=\$2
377   }'
378 else
379   as_fn_append ()
380   {
381     eval $1=\$$1\$2
382   }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391   eval 'as_fn_arith ()
392   {
393     as_val=$(( $* ))
394   }'
395 else
396   as_fn_arith ()
397   {
398     as_val=`expr "$@" || test $? -eq 1`
399   }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410   as_status=$1; test $as_status -eq 0 && as_status=1
411   if test "$4"; then
412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414   fi
415   $as_echo "$as_me: error: $2" >&2
416   as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
421   as_expr=expr
422 else
423   as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427   as_basename=basename
428 else
429   as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433   as_dirname=dirname
434 else
435   as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440          X"$0" : 'X\(//\)$' \| \
441          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443     sed '/^.*\/\([^/][^/]*\)\/*$/{
444             s//\1/
445             q
446           }
447           /^X\/\(\/\/\)$/{
448             s//\1/
449             q
450           }
451           /^X\/\(\/\).*/{
452             s//\1/
453             q
454           }
455           s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470   sed -n '
471     p
472     /[$]LINENO/=
473   ' <$as_myself |
474     sed '
475       s/[$]LINENO.*/&-/
476       t lineno
477       b
478       :lineno
479       N
480       :loop
481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482       t loop
483       s/-\n.*//
484     ' >$as_me.lineno &&
485   chmod +x "$as_me.lineno" ||
486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489   # already done that, so ensure we don't try to do so again and fall
490   # in an infinite loop.  This has already happened in practice.
491   _as_can_reexec=no; export _as_can_reexec
492   # Don't try to exec as it changes $[0], causing all sort of problems
493   # (the dirname of $[0] is not the place where we might find the
494   # original and so on.  Autoconf is especially sensitive to this).
495   . "./$as_me.lineno"
496   # Exit status is that of the last command.
497   exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503   case `echo 'xy\c'` in
504   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
505   xy)  ECHO_C='\c';;
506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507        ECHO_T=' ';;
508   esac;;
509 *)
510   ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -pR'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -pR'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -pR'
533   fi
534 else
535   as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p='mkdir -p "$as_dir"'
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="rlm_yubikey.c"
586 ac_subst_vars='LTLIBOBJS
587 LIBOBJS
588 targetname
589 mod_ldflags
590 mod_cflags
591 OBJEXT
592 EXEEXT
593 ac_ct_CC
594 CPPFLAGS
595 LDFLAGS
596 CFLAGS
597 CC
598 target_alias
599 host_alias
600 build_alias
601 LIBS
602 ECHO_T
603 ECHO_N
604 ECHO_C
605 DEFS
606 mandir
607 localedir
608 libdir
609 psdir
610 pdfdir
611 dvidir
612 htmldir
613 infodir
614 docdir
615 oldincludedir
616 includedir
617 localstatedir
618 sharedstatedir
619 sysconfdir
620 datadir
621 datarootdir
622 libexecdir
623 sbindir
624 bindir
625 program_transform_name
626 prefix
627 exec_prefix
628 PACKAGE_URL
629 PACKAGE_BUGREPORT
630 PACKAGE_STRING
631 PACKAGE_VERSION
632 PACKAGE_TARNAME
633 PACKAGE_NAME
634 PATH_SEPARATOR
635 SHELL'
636 ac_subst_files=''
637 ac_user_opts='
638 enable_option_checking
639 with_yubikey_include_dir
640 with_yubikey_lib_dir
641 with_yubikey_dir
642 with_ykclient_include_dir
643 with_ykclient_lib_dir
644 with_ykclient_dir
645 '
646       ac_precious_vars='build_alias
647 host_alias
648 target_alias
649 CC
650 CFLAGS
651 LDFLAGS
652 LIBS
653 CPPFLAGS'
654
655
656 # Initialize some variables set by options.
657 ac_init_help=
658 ac_init_version=false
659 ac_unrecognized_opts=
660 ac_unrecognized_sep=
661 # The variables have the same names as the options, with
662 # dashes changed to underlines.
663 cache_file=/dev/null
664 exec_prefix=NONE
665 no_create=
666 no_recursion=
667 prefix=NONE
668 program_prefix=NONE
669 program_suffix=NONE
670 program_transform_name=s,x,x,
671 silent=
672 site=
673 srcdir=
674 verbose=
675 x_includes=NONE
676 x_libraries=NONE
677
678 # Installation directory options.
679 # These are left unexpanded so users can "make install exec_prefix=/foo"
680 # and all the variables that are supposed to be based on exec_prefix
681 # by default will actually change.
682 # Use braces instead of parens because sh, perl, etc. also accept them.
683 # (The list follows the same order as the GNU Coding Standards.)
684 bindir='${exec_prefix}/bin'
685 sbindir='${exec_prefix}/sbin'
686 libexecdir='${exec_prefix}/libexec'
687 datarootdir='${prefix}/share'
688 datadir='${datarootdir}'
689 sysconfdir='${prefix}/etc'
690 sharedstatedir='${prefix}/com'
691 localstatedir='${prefix}/var'
692 includedir='${prefix}/include'
693 oldincludedir='/usr/include'
694 docdir='${datarootdir}/doc/${PACKAGE}'
695 infodir='${datarootdir}/info'
696 htmldir='${docdir}'
697 dvidir='${docdir}'
698 pdfdir='${docdir}'
699 psdir='${docdir}'
700 libdir='${exec_prefix}/lib'
701 localedir='${datarootdir}/locale'
702 mandir='${datarootdir}/man'
703
704 ac_prev=
705 ac_dashdash=
706 for ac_option
707 do
708   # If the previous option needs an argument, assign it.
709   if test -n "$ac_prev"; then
710     eval $ac_prev=\$ac_option
711     ac_prev=
712     continue
713   fi
714
715   case $ac_option in
716   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
717   *=)   ac_optarg= ;;
718   *)    ac_optarg=yes ;;
719   esac
720
721   # Accept the important Cygnus configure options, so we can diagnose typos.
722
723   case $ac_dashdash$ac_option in
724   --)
725     ac_dashdash=yes ;;
726
727   -bindir | --bindir | --bindi | --bind | --bin | --bi)
728     ac_prev=bindir ;;
729   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
730     bindir=$ac_optarg ;;
731
732   -build | --build | --buil | --bui | --bu)
733     ac_prev=build_alias ;;
734   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
735     build_alias=$ac_optarg ;;
736
737   -cache-file | --cache-file | --cache-fil | --cache-fi \
738   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
739     ac_prev=cache_file ;;
740   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
741   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
742     cache_file=$ac_optarg ;;
743
744   --config-cache | -C)
745     cache_file=config.cache ;;
746
747   -datadir | --datadir | --datadi | --datad)
748     ac_prev=datadir ;;
749   -datadir=* | --datadir=* | --datadi=* | --datad=*)
750     datadir=$ac_optarg ;;
751
752   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
753   | --dataroo | --dataro | --datar)
754     ac_prev=datarootdir ;;
755   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
756   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
757     datarootdir=$ac_optarg ;;
758
759   -disable-* | --disable-*)
760     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
761     # Reject names that are not valid shell variable names.
762     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
763       as_fn_error $? "invalid feature name: $ac_useropt"
764     ac_useropt_orig=$ac_useropt
765     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
766     case $ac_user_opts in
767       *"
768 "enable_$ac_useropt"
769 "*) ;;
770       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
771          ac_unrecognized_sep=', ';;
772     esac
773     eval enable_$ac_useropt=no ;;
774
775   -docdir | --docdir | --docdi | --doc | --do)
776     ac_prev=docdir ;;
777   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
778     docdir=$ac_optarg ;;
779
780   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
781     ac_prev=dvidir ;;
782   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
783     dvidir=$ac_optarg ;;
784
785   -enable-* | --enable-*)
786     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
787     # Reject names that are not valid shell variable names.
788     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
789       as_fn_error $? "invalid feature name: $ac_useropt"
790     ac_useropt_orig=$ac_useropt
791     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
792     case $ac_user_opts in
793       *"
794 "enable_$ac_useropt"
795 "*) ;;
796       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
797          ac_unrecognized_sep=', ';;
798     esac
799     eval enable_$ac_useropt=\$ac_optarg ;;
800
801   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
802   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
803   | --exec | --exe | --ex)
804     ac_prev=exec_prefix ;;
805   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
806   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
807   | --exec=* | --exe=* | --ex=*)
808     exec_prefix=$ac_optarg ;;
809
810   -gas | --gas | --ga | --g)
811     # Obsolete; use --with-gas.
812     with_gas=yes ;;
813
814   -help | --help | --hel | --he | -h)
815     ac_init_help=long ;;
816   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
817     ac_init_help=recursive ;;
818   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
819     ac_init_help=short ;;
820
821   -host | --host | --hos | --ho)
822     ac_prev=host_alias ;;
823   -host=* | --host=* | --hos=* | --ho=*)
824     host_alias=$ac_optarg ;;
825
826   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
827     ac_prev=htmldir ;;
828   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
829   | --ht=*)
830     htmldir=$ac_optarg ;;
831
832   -includedir | --includedir | --includedi | --included | --include \
833   | --includ | --inclu | --incl | --inc)
834     ac_prev=includedir ;;
835   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
836   | --includ=* | --inclu=* | --incl=* | --inc=*)
837     includedir=$ac_optarg ;;
838
839   -infodir | --infodir | --infodi | --infod | --info | --inf)
840     ac_prev=infodir ;;
841   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
842     infodir=$ac_optarg ;;
843
844   -libdir | --libdir | --libdi | --libd)
845     ac_prev=libdir ;;
846   -libdir=* | --libdir=* | --libdi=* | --libd=*)
847     libdir=$ac_optarg ;;
848
849   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
850   | --libexe | --libex | --libe)
851     ac_prev=libexecdir ;;
852   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
853   | --libexe=* | --libex=* | --libe=*)
854     libexecdir=$ac_optarg ;;
855
856   -localedir | --localedir | --localedi | --localed | --locale)
857     ac_prev=localedir ;;
858   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
859     localedir=$ac_optarg ;;
860
861   -localstatedir | --localstatedir | --localstatedi | --localstated \
862   | --localstate | --localstat | --localsta | --localst | --locals)
863     ac_prev=localstatedir ;;
864   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
865   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
866     localstatedir=$ac_optarg ;;
867
868   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
869     ac_prev=mandir ;;
870   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
871     mandir=$ac_optarg ;;
872
873   -nfp | --nfp | --nf)
874     # Obsolete; use --without-fp.
875     with_fp=no ;;
876
877   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
878   | --no-cr | --no-c | -n)
879     no_create=yes ;;
880
881   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
882   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
883     no_recursion=yes ;;
884
885   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
886   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
887   | --oldin | --oldi | --old | --ol | --o)
888     ac_prev=oldincludedir ;;
889   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
890   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
891   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
892     oldincludedir=$ac_optarg ;;
893
894   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
895     ac_prev=prefix ;;
896   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
897     prefix=$ac_optarg ;;
898
899   -program-prefix | --program-prefix | --program-prefi | --program-pref \
900   | --program-pre | --program-pr | --program-p)
901     ac_prev=program_prefix ;;
902   -program-prefix=* | --program-prefix=* | --program-prefi=* \
903   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
904     program_prefix=$ac_optarg ;;
905
906   -program-suffix | --program-suffix | --program-suffi | --program-suff \
907   | --program-suf | --program-su | --program-s)
908     ac_prev=program_suffix ;;
909   -program-suffix=* | --program-suffix=* | --program-suffi=* \
910   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
911     program_suffix=$ac_optarg ;;
912
913   -program-transform-name | --program-transform-name \
914   | --program-transform-nam | --program-transform-na \
915   | --program-transform-n | --program-transform- \
916   | --program-transform | --program-transfor \
917   | --program-transfo | --program-transf \
918   | --program-trans | --program-tran \
919   | --progr-tra | --program-tr | --program-t)
920     ac_prev=program_transform_name ;;
921   -program-transform-name=* | --program-transform-name=* \
922   | --program-transform-nam=* | --program-transform-na=* \
923   | --program-transform-n=* | --program-transform-=* \
924   | --program-transform=* | --program-transfor=* \
925   | --program-transfo=* | --program-transf=* \
926   | --program-trans=* | --program-tran=* \
927   | --progr-tra=* | --program-tr=* | --program-t=*)
928     program_transform_name=$ac_optarg ;;
929
930   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
931     ac_prev=pdfdir ;;
932   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
933     pdfdir=$ac_optarg ;;
934
935   -psdir | --psdir | --psdi | --psd | --ps)
936     ac_prev=psdir ;;
937   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
938     psdir=$ac_optarg ;;
939
940   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
941   | -silent | --silent | --silen | --sile | --sil)
942     silent=yes ;;
943
944   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
945     ac_prev=sbindir ;;
946   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
947   | --sbi=* | --sb=*)
948     sbindir=$ac_optarg ;;
949
950   -sharedstatedir | --sharedstatedir | --sharedstatedi \
951   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
952   | --sharedst | --shareds | --shared | --share | --shar \
953   | --sha | --sh)
954     ac_prev=sharedstatedir ;;
955   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
956   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
957   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
958   | --sha=* | --sh=*)
959     sharedstatedir=$ac_optarg ;;
960
961   -site | --site | --sit)
962     ac_prev=site ;;
963   -site=* | --site=* | --sit=*)
964     site=$ac_optarg ;;
965
966   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
967     ac_prev=srcdir ;;
968   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
969     srcdir=$ac_optarg ;;
970
971   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
972   | --syscon | --sysco | --sysc | --sys | --sy)
973     ac_prev=sysconfdir ;;
974   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
975   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
976     sysconfdir=$ac_optarg ;;
977
978   -target | --target | --targe | --targ | --tar | --ta | --t)
979     ac_prev=target_alias ;;
980   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
981     target_alias=$ac_optarg ;;
982
983   -v | -verbose | --verbose | --verbos | --verbo | --verb)
984     verbose=yes ;;
985
986   -version | --version | --versio | --versi | --vers | -V)
987     ac_init_version=: ;;
988
989   -with-* | --with-*)
990     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
991     # Reject names that are not valid shell variable names.
992     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993       as_fn_error $? "invalid package name: $ac_useropt"
994     ac_useropt_orig=$ac_useropt
995     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996     case $ac_user_opts in
997       *"
998 "with_$ac_useropt"
999 "*) ;;
1000       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1001          ac_unrecognized_sep=', ';;
1002     esac
1003     eval with_$ac_useropt=\$ac_optarg ;;
1004
1005   -without-* | --without-*)
1006     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1007     # Reject names that are not valid shell variable names.
1008     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1009       as_fn_error $? "invalid package name: $ac_useropt"
1010     ac_useropt_orig=$ac_useropt
1011     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1012     case $ac_user_opts in
1013       *"
1014 "with_$ac_useropt"
1015 "*) ;;
1016       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1017          ac_unrecognized_sep=', ';;
1018     esac
1019     eval with_$ac_useropt=no ;;
1020
1021   --x)
1022     # Obsolete; use --with-x.
1023     with_x=yes ;;
1024
1025   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1026   | --x-incl | --x-inc | --x-in | --x-i)
1027     ac_prev=x_includes ;;
1028   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1029   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1030     x_includes=$ac_optarg ;;
1031
1032   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1033   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1034     ac_prev=x_libraries ;;
1035   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1036   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1037     x_libraries=$ac_optarg ;;
1038
1039   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1040 Try \`$0 --help' for more information"
1041     ;;
1042
1043   *=*)
1044     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1045     # Reject names that are not valid shell variable names.
1046     case $ac_envvar in #(
1047       '' | [0-9]* | *[!_$as_cr_alnum]* )
1048       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1049     esac
1050     eval $ac_envvar=\$ac_optarg
1051     export $ac_envvar ;;
1052
1053   *)
1054     # FIXME: should be removed in autoconf 3.0.
1055     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1056     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1057       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1058     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1059     ;;
1060
1061   esac
1062 done
1063
1064 if test -n "$ac_prev"; then
1065   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1066   as_fn_error $? "missing argument to $ac_option"
1067 fi
1068
1069 if test -n "$ac_unrecognized_opts"; then
1070   case $enable_option_checking in
1071     no) ;;
1072     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1073     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1074   esac
1075 fi
1076
1077 # Check all directory arguments for consistency.
1078 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1079                 datadir sysconfdir sharedstatedir localstatedir includedir \
1080                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1081                 libdir localedir mandir
1082 do
1083   eval ac_val=\$$ac_var
1084   # Remove trailing slashes.
1085   case $ac_val in
1086     */ )
1087       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1088       eval $ac_var=\$ac_val;;
1089   esac
1090   # Be sure to have absolute directory names.
1091   case $ac_val in
1092     [\\/$]* | ?:[\\/]* )  continue;;
1093     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1094   esac
1095   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1096 done
1097
1098 # There might be people who depend on the old broken behavior: `$host'
1099 # used to hold the argument of --host etc.
1100 # FIXME: To remove some day.
1101 build=$build_alias
1102 host=$host_alias
1103 target=$target_alias
1104
1105 # FIXME: To remove some day.
1106 if test "x$host_alias" != x; then
1107   if test "x$build_alias" = x; then
1108     cross_compiling=maybe
1109   elif test "x$build_alias" != "x$host_alias"; then
1110     cross_compiling=yes
1111   fi
1112 fi
1113
1114 ac_tool_prefix=
1115 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1116
1117 test "$silent" = yes && exec 6>/dev/null
1118
1119
1120 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1121 ac_ls_di=`ls -di .` &&
1122 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1123   as_fn_error $? "working directory cannot be determined"
1124 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1125   as_fn_error $? "pwd does not report name of working directory"
1126
1127
1128 # Find the source files, if location was not specified.
1129 if test -z "$srcdir"; then
1130   ac_srcdir_defaulted=yes
1131   # Try the directory containing this script, then the parent directory.
1132   ac_confdir=`$as_dirname -- "$as_myself" ||
1133 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1134          X"$as_myself" : 'X\(//\)[^/]' \| \
1135          X"$as_myself" : 'X\(//\)$' \| \
1136          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1137 $as_echo X"$as_myself" |
1138     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1139             s//\1/
1140             q
1141           }
1142           /^X\(\/\/\)[^/].*/{
1143             s//\1/
1144             q
1145           }
1146           /^X\(\/\/\)$/{
1147             s//\1/
1148             q
1149           }
1150           /^X\(\/\).*/{
1151             s//\1/
1152             q
1153           }
1154           s/.*/./; q'`
1155   srcdir=$ac_confdir
1156   if test ! -r "$srcdir/$ac_unique_file"; then
1157     srcdir=..
1158   fi
1159 else
1160   ac_srcdir_defaulted=no
1161 fi
1162 if test ! -r "$srcdir/$ac_unique_file"; then
1163   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1164   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1165 fi
1166 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1167 ac_abs_confdir=`(
1168         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1169         pwd)`
1170 # When building in place, set srcdir=.
1171 if test "$ac_abs_confdir" = "$ac_pwd"; then
1172   srcdir=.
1173 fi
1174 # Remove unnecessary trailing slashes from srcdir.
1175 # Double slashes in file names in object file debugging info
1176 # mess up M-x gdb in Emacs.
1177 case $srcdir in
1178 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1179 esac
1180 for ac_var in $ac_precious_vars; do
1181   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1182   eval ac_env_${ac_var}_value=\$${ac_var}
1183   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1184   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1185 done
1186
1187 #
1188 # Report the --help message.
1189 #
1190 if test "$ac_init_help" = "long"; then
1191   # Omit some internal or obsolete options to make the list less imposing.
1192   # This message is too long to be a string in the A/UX 3.1 sh.
1193   cat <<_ACEOF
1194 \`configure' configures this package to adapt to many kinds of systems.
1195
1196 Usage: $0 [OPTION]... [VAR=VALUE]...
1197
1198 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1199 VAR=VALUE.  See below for descriptions of some of the useful variables.
1200
1201 Defaults for the options are specified in brackets.
1202
1203 Configuration:
1204   -h, --help              display this help and exit
1205       --help=short        display options specific to this package
1206       --help=recursive    display the short help of all the included packages
1207   -V, --version           display version information and exit
1208   -q, --quiet, --silent   do not print \`checking ...' messages
1209       --cache-file=FILE   cache test results in FILE [disabled]
1210   -C, --config-cache      alias for \`--cache-file=config.cache'
1211   -n, --no-create         do not create output files
1212       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1213
1214 Installation directories:
1215   --prefix=PREFIX         install architecture-independent files in PREFIX
1216                           [$ac_default_prefix]
1217   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1218                           [PREFIX]
1219
1220 By default, \`make install' will install all the files in
1221 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1222 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1223 for instance \`--prefix=\$HOME'.
1224
1225 For better control, use the options below.
1226
1227 Fine tuning of the installation directories:
1228   --bindir=DIR            user executables [EPREFIX/bin]
1229   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1230   --libexecdir=DIR        program executables [EPREFIX/libexec]
1231   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1232   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1233   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1234   --libdir=DIR            object code libraries [EPREFIX/lib]
1235   --includedir=DIR        C header files [PREFIX/include]
1236   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1237   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1238   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1239   --infodir=DIR           info documentation [DATAROOTDIR/info]
1240   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1241   --mandir=DIR            man documentation [DATAROOTDIR/man]
1242   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1243   --htmldir=DIR           html documentation [DOCDIR]
1244   --dvidir=DIR            dvi documentation [DOCDIR]
1245   --pdfdir=DIR            pdf documentation [DOCDIR]
1246   --psdir=DIR             ps documentation [DOCDIR]
1247 _ACEOF
1248
1249   cat <<\_ACEOF
1250 _ACEOF
1251 fi
1252
1253 if test -n "$ac_init_help"; then
1254
1255   cat <<\_ACEOF
1256
1257 Optional Packages:
1258   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1259   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1260   --with-yubikey-include-dir=DIR
1261                           Directory where the yubikey includes may be found
1262   --with-yubikey-lib-dir=DIR
1263                           Directory where the yubikey libraries may be found
1264   --with-yubikey-dir=DIR  Base directory where yubikey is installed
1265   --with-ykclient-include-dir=DIR
1266                           Directory where the ykclient includes may be found
1267   --with-ykclient-lib-dir=DIR
1268                           Directory where the ykclient libraries may be found
1269   --with-ykclient-dir=DIR Base directory where ykclient is installed
1270
1271 Some influential environment variables:
1272   CC          C compiler command
1273   CFLAGS      C compiler flags
1274   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1275               nonstandard directory <lib dir>
1276   LIBS        libraries to pass to the linker, e.g. -l<library>
1277   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1278               you have headers in a nonstandard directory <include dir>
1279
1280 Use these variables to override the choices made by `configure' or to help
1281 it to find libraries and programs with nonstandard names/locations.
1282
1283 Report bugs to the package provider.
1284 _ACEOF
1285 ac_status=$?
1286 fi
1287
1288 if test "$ac_init_help" = "recursive"; then
1289   # If there are subdirs, report their specific --help.
1290   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1291     test -d "$ac_dir" ||
1292       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1293       continue
1294     ac_builddir=.
1295
1296 case "$ac_dir" in
1297 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1298 *)
1299   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1300   # A ".." for each directory in $ac_dir_suffix.
1301   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1302   case $ac_top_builddir_sub in
1303   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1304   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1305   esac ;;
1306 esac
1307 ac_abs_top_builddir=$ac_pwd
1308 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1309 # for backward compatibility:
1310 ac_top_builddir=$ac_top_build_prefix
1311
1312 case $srcdir in
1313   .)  # We are building in place.
1314     ac_srcdir=.
1315     ac_top_srcdir=$ac_top_builddir_sub
1316     ac_abs_top_srcdir=$ac_pwd ;;
1317   [\\/]* | ?:[\\/]* )  # Absolute name.
1318     ac_srcdir=$srcdir$ac_dir_suffix;
1319     ac_top_srcdir=$srcdir
1320     ac_abs_top_srcdir=$srcdir ;;
1321   *) # Relative name.
1322     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1323     ac_top_srcdir=$ac_top_build_prefix$srcdir
1324     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1325 esac
1326 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1327
1328     cd "$ac_dir" || { ac_status=$?; continue; }
1329     # Check for guested configure.
1330     if test -f "$ac_srcdir/configure.gnu"; then
1331       echo &&
1332       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1333     elif test -f "$ac_srcdir/configure"; then
1334       echo &&
1335       $SHELL "$ac_srcdir/configure" --help=recursive
1336     else
1337       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1338     fi || ac_status=$?
1339     cd "$ac_pwd" || { ac_status=$?; break; }
1340   done
1341 fi
1342
1343 test -n "$ac_init_help" && exit $ac_status
1344 if $ac_init_version; then
1345   cat <<\_ACEOF
1346 configure
1347 generated by GNU Autoconf 2.69
1348
1349 Copyright (C) 2012 Free Software Foundation, Inc.
1350 This configure script is free software; the Free Software Foundation
1351 gives unlimited permission to copy, distribute and modify it.
1352 _ACEOF
1353   exit
1354 fi
1355
1356 ## ------------------------ ##
1357 ## Autoconf initialization. ##
1358 ## ------------------------ ##
1359
1360 # ac_fn_c_try_compile LINENO
1361 # --------------------------
1362 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1363 ac_fn_c_try_compile ()
1364 {
1365   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1366   rm -f conftest.$ac_objext
1367   if { { ac_try="$ac_compile"
1368 case "(($ac_try" in
1369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1370   *) ac_try_echo=$ac_try;;
1371 esac
1372 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1373 $as_echo "$ac_try_echo"; } >&5
1374   (eval "$ac_compile") 2>conftest.err
1375   ac_status=$?
1376   if test -s conftest.err; then
1377     grep -v '^ *+' conftest.err >conftest.er1
1378     cat conftest.er1 >&5
1379     mv -f conftest.er1 conftest.err
1380   fi
1381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1382   test $ac_status = 0; } && {
1383          test -z "$ac_c_werror_flag" ||
1384          test ! -s conftest.err
1385        } && test -s conftest.$ac_objext; then :
1386   ac_retval=0
1387 else
1388   $as_echo "$as_me: failed program was:" >&5
1389 sed 's/^/| /' conftest.$ac_ext >&5
1390
1391         ac_retval=1
1392 fi
1393   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1394   as_fn_set_status $ac_retval
1395
1396 } # ac_fn_c_try_compile
1397
1398 # ac_fn_c_try_link LINENO
1399 # -----------------------
1400 # Try to link conftest.$ac_ext, and return whether this succeeded.
1401 ac_fn_c_try_link ()
1402 {
1403   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1404   rm -f conftest.$ac_objext conftest$ac_exeext
1405   if { { ac_try="$ac_link"
1406 case "(($ac_try" in
1407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1408   *) ac_try_echo=$ac_try;;
1409 esac
1410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1411 $as_echo "$ac_try_echo"; } >&5
1412   (eval "$ac_link") 2>conftest.err
1413   ac_status=$?
1414   if test -s conftest.err; then
1415     grep -v '^ *+' conftest.err >conftest.er1
1416     cat conftest.er1 >&5
1417     mv -f conftest.er1 conftest.err
1418   fi
1419   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1420   test $ac_status = 0; } && {
1421          test -z "$ac_c_werror_flag" ||
1422          test ! -s conftest.err
1423        } && test -s conftest$ac_exeext && {
1424          test "$cross_compiling" = yes ||
1425          test -x conftest$ac_exeext
1426        }; then :
1427   ac_retval=0
1428 else
1429   $as_echo "$as_me: failed program was:" >&5
1430 sed 's/^/| /' conftest.$ac_ext >&5
1431
1432         ac_retval=1
1433 fi
1434   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1435   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1436   # interfere with the next link command; also delete a directory that is
1437   # left behind by Apple's compiler.  We do this before executing the actions.
1438   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1439   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1440   as_fn_set_status $ac_retval
1441
1442 } # ac_fn_c_try_link
1443 cat >config.log <<_ACEOF
1444 This file contains any messages produced by compilers while
1445 running configure, to aid debugging if configure makes a mistake.
1446
1447 It was created by $as_me, which was
1448 generated by GNU Autoconf 2.69.  Invocation command line was
1449
1450   $ $0 $@
1451
1452 _ACEOF
1453 exec 5>>config.log
1454 {
1455 cat <<_ASUNAME
1456 ## --------- ##
1457 ## Platform. ##
1458 ## --------- ##
1459
1460 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1461 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1462 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1463 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1464 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1465
1466 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1467 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1468
1469 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1470 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1471 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1472 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1473 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1474 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1475 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1476
1477 _ASUNAME
1478
1479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1480 for as_dir in $PATH
1481 do
1482   IFS=$as_save_IFS
1483   test -z "$as_dir" && as_dir=.
1484     $as_echo "PATH: $as_dir"
1485   done
1486 IFS=$as_save_IFS
1487
1488 } >&5
1489
1490 cat >&5 <<_ACEOF
1491
1492
1493 ## ----------- ##
1494 ## Core tests. ##
1495 ## ----------- ##
1496
1497 _ACEOF
1498
1499
1500 # Keep a trace of the command line.
1501 # Strip out --no-create and --no-recursion so they do not pile up.
1502 # Strip out --silent because we don't want to record it for future runs.
1503 # Also quote any args containing shell meta-characters.
1504 # Make two passes to allow for proper duplicate-argument suppression.
1505 ac_configure_args=
1506 ac_configure_args0=
1507 ac_configure_args1=
1508 ac_must_keep_next=false
1509 for ac_pass in 1 2
1510 do
1511   for ac_arg
1512   do
1513     case $ac_arg in
1514     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1515     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1516     | -silent | --silent | --silen | --sile | --sil)
1517       continue ;;
1518     *\'*)
1519       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1520     esac
1521     case $ac_pass in
1522     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1523     2)
1524       as_fn_append ac_configure_args1 " '$ac_arg'"
1525       if test $ac_must_keep_next = true; then
1526         ac_must_keep_next=false # Got value, back to normal.
1527       else
1528         case $ac_arg in
1529           *=* | --config-cache | -C | -disable-* | --disable-* \
1530           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1531           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1532           | -with-* | --with-* | -without-* | --without-* | --x)
1533             case "$ac_configure_args0 " in
1534               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1535             esac
1536             ;;
1537           -* ) ac_must_keep_next=true ;;
1538         esac
1539       fi
1540       as_fn_append ac_configure_args " '$ac_arg'"
1541       ;;
1542     esac
1543   done
1544 done
1545 { ac_configure_args0=; unset ac_configure_args0;}
1546 { ac_configure_args1=; unset ac_configure_args1;}
1547
1548 # When interrupted or exit'd, cleanup temporary files, and complete
1549 # config.log.  We remove comments because anyway the quotes in there
1550 # would cause problems or look ugly.
1551 # WARNING: Use '\'' to represent an apostrophe within the trap.
1552 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1553 trap 'exit_status=$?
1554   # Save into config.log some information that might help in debugging.
1555   {
1556     echo
1557
1558     $as_echo "## ---------------- ##
1559 ## Cache variables. ##
1560 ## ---------------- ##"
1561     echo
1562     # The following way of writing the cache mishandles newlines in values,
1563 (
1564   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1565     eval ac_val=\$$ac_var
1566     case $ac_val in #(
1567     *${as_nl}*)
1568       case $ac_var in #(
1569       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1570 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1571       esac
1572       case $ac_var in #(
1573       _ | IFS | as_nl) ;; #(
1574       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1575       *) { eval $ac_var=; unset $ac_var;} ;;
1576       esac ;;
1577     esac
1578   done
1579   (set) 2>&1 |
1580     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1581     *${as_nl}ac_space=\ *)
1582       sed -n \
1583         "s/'\''/'\''\\\\'\'''\''/g;
1584           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1585       ;; #(
1586     *)
1587       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1588       ;;
1589     esac |
1590     sort
1591 )
1592     echo
1593
1594     $as_echo "## ----------------- ##
1595 ## Output variables. ##
1596 ## ----------------- ##"
1597     echo
1598     for ac_var in $ac_subst_vars
1599     do
1600       eval ac_val=\$$ac_var
1601       case $ac_val in
1602       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1603       esac
1604       $as_echo "$ac_var='\''$ac_val'\''"
1605     done | sort
1606     echo
1607
1608     if test -n "$ac_subst_files"; then
1609       $as_echo "## ------------------- ##
1610 ## File substitutions. ##
1611 ## ------------------- ##"
1612       echo
1613       for ac_var in $ac_subst_files
1614       do
1615         eval ac_val=\$$ac_var
1616         case $ac_val in
1617         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1618         esac
1619         $as_echo "$ac_var='\''$ac_val'\''"
1620       done | sort
1621       echo
1622     fi
1623
1624     if test -s confdefs.h; then
1625       $as_echo "## ----------- ##
1626 ## confdefs.h. ##
1627 ## ----------- ##"
1628       echo
1629       cat confdefs.h
1630       echo
1631     fi
1632     test "$ac_signal" != 0 &&
1633       $as_echo "$as_me: caught signal $ac_signal"
1634     $as_echo "$as_me: exit $exit_status"
1635   } >&5
1636   rm -f core *.core core.conftest.* &&
1637     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1638     exit $exit_status
1639 ' 0
1640 for ac_signal in 1 2 13 15; do
1641   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1642 done
1643 ac_signal=0
1644
1645 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1646 rm -f -r conftest* confdefs.h
1647
1648 $as_echo "/* confdefs.h */" > confdefs.h
1649
1650 # Predefined preprocessor variables.
1651
1652 cat >>confdefs.h <<_ACEOF
1653 #define PACKAGE_NAME "$PACKAGE_NAME"
1654 _ACEOF
1655
1656 cat >>confdefs.h <<_ACEOF
1657 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1658 _ACEOF
1659
1660 cat >>confdefs.h <<_ACEOF
1661 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1662 _ACEOF
1663
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_STRING "$PACKAGE_STRING"
1666 _ACEOF
1667
1668 cat >>confdefs.h <<_ACEOF
1669 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1670 _ACEOF
1671
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_URL "$PACKAGE_URL"
1674 _ACEOF
1675
1676
1677 # Let the site file select an alternate cache file if it wants to.
1678 # Prefer an explicitly selected file to automatically selected ones.
1679 ac_site_file1=NONE
1680 ac_site_file2=NONE
1681 if test -n "$CONFIG_SITE"; then
1682   # We do not want a PATH search for config.site.
1683   case $CONFIG_SITE in #((
1684     -*)  ac_site_file1=./$CONFIG_SITE;;
1685     */*) ac_site_file1=$CONFIG_SITE;;
1686     *)   ac_site_file1=./$CONFIG_SITE;;
1687   esac
1688 elif test "x$prefix" != xNONE; then
1689   ac_site_file1=$prefix/share/config.site
1690   ac_site_file2=$prefix/etc/config.site
1691 else
1692   ac_site_file1=$ac_default_prefix/share/config.site
1693   ac_site_file2=$ac_default_prefix/etc/config.site
1694 fi
1695 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1696 do
1697   test "x$ac_site_file" = xNONE && continue
1698   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1699     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1700 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1701     sed 's/^/| /' "$ac_site_file" >&5
1702     . "$ac_site_file" \
1703       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1705 as_fn_error $? "failed to load site script $ac_site_file
1706 See \`config.log' for more details" "$LINENO" 5; }
1707   fi
1708 done
1709
1710 if test -r "$cache_file"; then
1711   # Some versions of bash will fail to source /dev/null (special files
1712   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1713   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1714     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1715 $as_echo "$as_me: loading cache $cache_file" >&6;}
1716     case $cache_file in
1717       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1718       *)                      . "./$cache_file";;
1719     esac
1720   fi
1721 else
1722   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1723 $as_echo "$as_me: creating cache $cache_file" >&6;}
1724   >$cache_file
1725 fi
1726
1727 # Check that the precious variables saved in the cache have kept the same
1728 # value.
1729 ac_cache_corrupted=false
1730 for ac_var in $ac_precious_vars; do
1731   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1732   eval ac_new_set=\$ac_env_${ac_var}_set
1733   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1734   eval ac_new_val=\$ac_env_${ac_var}_value
1735   case $ac_old_set,$ac_new_set in
1736     set,)
1737       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1738 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1739       ac_cache_corrupted=: ;;
1740     ,set)
1741       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1742 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1743       ac_cache_corrupted=: ;;
1744     ,);;
1745     *)
1746       if test "x$ac_old_val" != "x$ac_new_val"; then
1747         # differences in whitespace do not lead to failure.
1748         ac_old_val_w=`echo x $ac_old_val`
1749         ac_new_val_w=`echo x $ac_new_val`
1750         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1751           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1752 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1753           ac_cache_corrupted=:
1754         else
1755           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1756 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1757           eval $ac_var=\$ac_old_val
1758         fi
1759         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1760 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1761         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1762 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1763       fi;;
1764   esac
1765   # Pass precious variables to config.status.
1766   if test "$ac_new_set" = set; then
1767     case $ac_new_val in
1768     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1769     *) ac_arg=$ac_var=$ac_new_val ;;
1770     esac
1771     case " $ac_configure_args " in
1772       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1773       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1774     esac
1775   fi
1776 done
1777 if $ac_cache_corrupted; then
1778   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1779 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1780   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1781 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1782   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1783 fi
1784 ## -------------------- ##
1785 ## Main body of script. ##
1786 ## -------------------- ##
1787
1788 ac_ext=c
1789 ac_cpp='$CPP $CPPFLAGS'
1790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1793
1794
1795
1796
1797
1798 if test x$with_rlm_yubikey != xno; then
1799
1800
1801         yubikey_include_dir=
1802
1803 # Check whether --with-yubikey-include-dir was given.
1804 if test "${with_yubikey_include_dir+set}" = set; then :
1805   withval=$with_yubikey_include_dir; case "$withval" in
1806             no)
1807                 as_fn_error $? "Need yubikey-include-dir" "$LINENO" 5
1808                 ;;
1809             yes)
1810                 ;;
1811             *)
1812                 yubikey_include_dir="$withval"
1813                 ;;
1814         esac
1815 fi
1816
1817
1818         yubikey_lib_dir=
1819
1820 # Check whether --with-yubikey-lib-dir was given.
1821 if test "${with_yubikey_lib_dir+set}" = set; then :
1822   withval=$with_yubikey_lib_dir; case "$withval" in
1823             no)
1824                 as_fn_error $? "Need yubikey-lib-dir" "$LINENO" 5
1825                 ;;
1826             yes)
1827                 ;;
1828             *)
1829                 yubikey_lib_dir="$withval"
1830                 ;;
1831         esac
1832 fi
1833
1834
1835
1836 # Check whether --with-yubikey-dir was given.
1837 if test "${with_yubikey_dir+set}" = set; then :
1838   withval=$with_yubikey_dir; case "$withval" in
1839             no)
1840                 as_fn_error $? "Need yubikey-dir" "$LINENO" 5
1841                 ;;
1842             yes)
1843                 ;;
1844             *)
1845                 yubikey_lib_dir="$withval/lib"
1846                 yubikey_include_dir="$withval/include"
1847                 ;;
1848         esac
1849 fi
1850
1851
1852
1853         ykclient_include_dir=
1854
1855 # Check whether --with-ykclient-include-dir was given.
1856 if test "${with_ykclient_include_dir+set}" = set; then :
1857   withval=$with_ykclient_include_dir; case "$withval" in
1858             no)
1859                 as_fn_error $? "Need ykclient-include-dir" "$LINENO" 5
1860                 ;;
1861             yes)
1862                 ;;
1863             *)
1864                 ykclient_include_dir="$withval"
1865                 ;;
1866         esac
1867 fi
1868
1869
1870         ykclient_lib_dir=
1871
1872 # Check whether --with-ykclient-lib-dir was given.
1873 if test "${with_ykclient_lib_dir+set}" = set; then :
1874   withval=$with_ykclient_lib_dir; case "$withval" in
1875             no)
1876                 as_fn_error $? "Need ykclient-lib-dir" "$LINENO" 5
1877                 ;;
1878             yes)
1879                 ;;
1880             *)
1881                 ykclient_lib_dir="$withval"
1882                 ;;
1883         esac
1884 fi
1885
1886
1887
1888 # Check whether --with-ykclient-dir was given.
1889 if test "${with_ykclient_dir+set}" = set; then :
1890   withval=$with_ykclient_dir; case "$withval" in
1891             no)
1892                 as_fn_error $? "Need ykclient-dir" "$LINENO" 5
1893                 ;;
1894             yes)
1895                 ;;
1896             *)
1897                 ykclient_lib_dir="$withval/lib"
1898                 ykclient_include_dir="$withval/include"
1899                 ;;
1900         esac
1901 fi
1902
1903
1904
1905     have_yubikey="yes"
1906     smart_try_dir="$yubikey_include_dir"
1907     ac_ext=c
1908 ac_cpp='$CPP $CPPFLAGS'
1909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1912 if test -n "$ac_tool_prefix"; then
1913   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1914 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1916 $as_echo_n "checking for $ac_word... " >&6; }
1917 if ${ac_cv_prog_CC+:} false; then :
1918   $as_echo_n "(cached) " >&6
1919 else
1920   if test -n "$CC"; then
1921   ac_cv_prog_CC="$CC" # Let the user override the test.
1922 else
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 for as_dir in $PATH
1925 do
1926   IFS=$as_save_IFS
1927   test -z "$as_dir" && as_dir=.
1928     for ac_exec_ext in '' $ac_executable_extensions; do
1929   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1932     break 2
1933   fi
1934 done
1935   done
1936 IFS=$as_save_IFS
1937
1938 fi
1939 fi
1940 CC=$ac_cv_prog_CC
1941 if test -n "$CC"; then
1942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1943 $as_echo "$CC" >&6; }
1944 else
1945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1946 $as_echo "no" >&6; }
1947 fi
1948
1949
1950 fi
1951 if test -z "$ac_cv_prog_CC"; then
1952   ac_ct_CC=$CC
1953   # Extract the first word of "gcc", so it can be a program name with args.
1954 set dummy gcc; ac_word=$2
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1956 $as_echo_n "checking for $ac_word... " >&6; }
1957 if ${ac_cv_prog_ac_ct_CC+:} false; then :
1958   $as_echo_n "(cached) " >&6
1959 else
1960   if test -n "$ac_ct_CC"; then
1961   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1962 else
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 for as_dir in $PATH
1965 do
1966   IFS=$as_save_IFS
1967   test -z "$as_dir" && as_dir=.
1968     for ac_exec_ext in '' $ac_executable_extensions; do
1969   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970     ac_cv_prog_ac_ct_CC="gcc"
1971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1972     break 2
1973   fi
1974 done
1975   done
1976 IFS=$as_save_IFS
1977
1978 fi
1979 fi
1980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1981 if test -n "$ac_ct_CC"; then
1982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1983 $as_echo "$ac_ct_CC" >&6; }
1984 else
1985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1986 $as_echo "no" >&6; }
1987 fi
1988
1989   if test "x$ac_ct_CC" = x; then
1990     CC=""
1991   else
1992     case $cross_compiling:$ac_tool_warned in
1993 yes:)
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1996 ac_tool_warned=yes ;;
1997 esac
1998     CC=$ac_ct_CC
1999   fi
2000 else
2001   CC="$ac_cv_prog_CC"
2002 fi
2003
2004 if test -z "$CC"; then
2005           if test -n "$ac_tool_prefix"; then
2006     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2007 set dummy ${ac_tool_prefix}cc; ac_word=$2
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2009 $as_echo_n "checking for $ac_word... " >&6; }
2010 if ${ac_cv_prog_CC+:} false; then :
2011   $as_echo_n "(cached) " >&6
2012 else
2013   if test -n "$CC"; then
2014   ac_cv_prog_CC="$CC" # Let the user override the test.
2015 else
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2018 do
2019   IFS=$as_save_IFS
2020   test -z "$as_dir" && as_dir=.
2021     for ac_exec_ext in '' $ac_executable_extensions; do
2022   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2023     ac_cv_prog_CC="${ac_tool_prefix}cc"
2024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2025     break 2
2026   fi
2027 done
2028   done
2029 IFS=$as_save_IFS
2030
2031 fi
2032 fi
2033 CC=$ac_cv_prog_CC
2034 if test -n "$CC"; then
2035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2036 $as_echo "$CC" >&6; }
2037 else
2038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2039 $as_echo "no" >&6; }
2040 fi
2041
2042
2043   fi
2044 fi
2045 if test -z "$CC"; then
2046   # Extract the first word of "cc", so it can be a program name with args.
2047 set dummy cc; ac_word=$2
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2049 $as_echo_n "checking for $ac_word... " >&6; }
2050 if ${ac_cv_prog_CC+:} false; then :
2051   $as_echo_n "(cached) " >&6
2052 else
2053   if test -n "$CC"; then
2054   ac_cv_prog_CC="$CC" # Let the user override the test.
2055 else
2056   ac_prog_rejected=no
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 for as_dir in $PATH
2059 do
2060   IFS=$as_save_IFS
2061   test -z "$as_dir" && as_dir=.
2062     for ac_exec_ext in '' $ac_executable_extensions; do
2063   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2064     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2065        ac_prog_rejected=yes
2066        continue
2067      fi
2068     ac_cv_prog_CC="cc"
2069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2070     break 2
2071   fi
2072 done
2073   done
2074 IFS=$as_save_IFS
2075
2076 if test $ac_prog_rejected = yes; then
2077   # We found a bogon in the path, so make sure we never use it.
2078   set dummy $ac_cv_prog_CC
2079   shift
2080   if test $# != 0; then
2081     # We chose a different compiler from the bogus one.
2082     # However, it has the same basename, so the bogon will be chosen
2083     # first if we set CC to just the basename; use the full file name.
2084     shift
2085     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2086   fi
2087 fi
2088 fi
2089 fi
2090 CC=$ac_cv_prog_CC
2091 if test -n "$CC"; then
2092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2093 $as_echo "$CC" >&6; }
2094 else
2095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2096 $as_echo "no" >&6; }
2097 fi
2098
2099
2100 fi
2101 if test -z "$CC"; then
2102   if test -n "$ac_tool_prefix"; then
2103   for ac_prog in cl.exe
2104   do
2105     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2106 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2108 $as_echo_n "checking for $ac_word... " >&6; }
2109 if ${ac_cv_prog_CC+:} false; then :
2110   $as_echo_n "(cached) " >&6
2111 else
2112   if test -n "$CC"; then
2113   ac_cv_prog_CC="$CC" # Let the user override the test.
2114 else
2115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116 for as_dir in $PATH
2117 do
2118   IFS=$as_save_IFS
2119   test -z "$as_dir" && as_dir=.
2120     for ac_exec_ext in '' $ac_executable_extensions; do
2121   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2122     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2124     break 2
2125   fi
2126 done
2127   done
2128 IFS=$as_save_IFS
2129
2130 fi
2131 fi
2132 CC=$ac_cv_prog_CC
2133 if test -n "$CC"; then
2134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2135 $as_echo "$CC" >&6; }
2136 else
2137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2138 $as_echo "no" >&6; }
2139 fi
2140
2141
2142     test -n "$CC" && break
2143   done
2144 fi
2145 if test -z "$CC"; then
2146   ac_ct_CC=$CC
2147   for ac_prog in cl.exe
2148 do
2149   # Extract the first word of "$ac_prog", so it can be a program name with args.
2150 set dummy $ac_prog; ac_word=$2
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2152 $as_echo_n "checking for $ac_word... " >&6; }
2153 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2154   $as_echo_n "(cached) " >&6
2155 else
2156   if test -n "$ac_ct_CC"; then
2157   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2158 else
2159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2160 for as_dir in $PATH
2161 do
2162   IFS=$as_save_IFS
2163   test -z "$as_dir" && as_dir=.
2164     for ac_exec_ext in '' $ac_executable_extensions; do
2165   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2166     ac_cv_prog_ac_ct_CC="$ac_prog"
2167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2168     break 2
2169   fi
2170 done
2171   done
2172 IFS=$as_save_IFS
2173
2174 fi
2175 fi
2176 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2177 if test -n "$ac_ct_CC"; then
2178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2179 $as_echo "$ac_ct_CC" >&6; }
2180 else
2181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2182 $as_echo "no" >&6; }
2183 fi
2184
2185
2186   test -n "$ac_ct_CC" && break
2187 done
2188
2189   if test "x$ac_ct_CC" = x; then
2190     CC=""
2191   else
2192     case $cross_compiling:$ac_tool_warned in
2193 yes:)
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2196 ac_tool_warned=yes ;;
2197 esac
2198     CC=$ac_ct_CC
2199   fi
2200 fi
2201
2202 fi
2203
2204
2205 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2207 as_fn_error $? "no acceptable C compiler found in \$PATH
2208 See \`config.log' for more details" "$LINENO" 5; }
2209
2210 # Provide some information about the compiler.
2211 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2212 set X $ac_compile
2213 ac_compiler=$2
2214 for ac_option in --version -v -V -qversion; do
2215   { { ac_try="$ac_compiler $ac_option >&5"
2216 case "(($ac_try" in
2217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2218   *) ac_try_echo=$ac_try;;
2219 esac
2220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2221 $as_echo "$ac_try_echo"; } >&5
2222   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2223   ac_status=$?
2224   if test -s conftest.err; then
2225     sed '10a\
2226 ... rest of stderr output deleted ...
2227          10q' conftest.err >conftest.er1
2228     cat conftest.er1 >&5
2229   fi
2230   rm -f conftest.er1 conftest.err
2231   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2232   test $ac_status = 0; }
2233 done
2234
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h.  */
2237
2238 int
2239 main ()
2240 {
2241
2242   ;
2243   return 0;
2244 }
2245 _ACEOF
2246 ac_clean_files_save=$ac_clean_files
2247 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2248 # Try to create an executable without -o first, disregard a.out.
2249 # It will help us diagnose broken compilers, and finding out an intuition
2250 # of exeext.
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2252 $as_echo_n "checking whether the C compiler works... " >&6; }
2253 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2254
2255 # The possible output files:
2256 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2257
2258 ac_rmfiles=
2259 for ac_file in $ac_files
2260 do
2261   case $ac_file in
2262     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2263     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2264   esac
2265 done
2266 rm -f $ac_rmfiles
2267
2268 if { { ac_try="$ac_link_default"
2269 case "(($ac_try" in
2270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2271   *) ac_try_echo=$ac_try;;
2272 esac
2273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2274 $as_echo "$ac_try_echo"; } >&5
2275   (eval "$ac_link_default") 2>&5
2276   ac_status=$?
2277   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2278   test $ac_status = 0; }; then :
2279   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2280 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2281 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2282 # so that the user can short-circuit this test for compilers unknown to
2283 # Autoconf.
2284 for ac_file in $ac_files ''
2285 do
2286   test -f "$ac_file" || continue
2287   case $ac_file in
2288     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2289         ;;
2290     [ab].out )
2291         # We found the default executable, but exeext='' is most
2292         # certainly right.
2293         break;;
2294     *.* )
2295         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2296         then :; else
2297            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2298         fi
2299         # We set ac_cv_exeext here because the later test for it is not
2300         # safe: cross compilers may not add the suffix if given an `-o'
2301         # argument, so we may need to know it at that point already.
2302         # Even if this section looks crufty: it has the advantage of
2303         # actually working.
2304         break;;
2305     * )
2306         break;;
2307   esac
2308 done
2309 test "$ac_cv_exeext" = no && ac_cv_exeext=
2310
2311 else
2312   ac_file=''
2313 fi
2314 if test -z "$ac_file"; then :
2315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2316 $as_echo "no" >&6; }
2317 $as_echo "$as_me: failed program was:" >&5
2318 sed 's/^/| /' conftest.$ac_ext >&5
2319
2320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2322 as_fn_error 77 "C compiler cannot create executables
2323 See \`config.log' for more details" "$LINENO" 5; }
2324 else
2325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2326 $as_echo "yes" >&6; }
2327 fi
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2329 $as_echo_n "checking for C compiler default output file name... " >&6; }
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2331 $as_echo "$ac_file" >&6; }
2332 ac_exeext=$ac_cv_exeext
2333
2334 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2335 ac_clean_files=$ac_clean_files_save
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2337 $as_echo_n "checking for suffix of executables... " >&6; }
2338 if { { ac_try="$ac_link"
2339 case "(($ac_try" in
2340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341   *) ac_try_echo=$ac_try;;
2342 esac
2343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2344 $as_echo "$ac_try_echo"; } >&5
2345   (eval "$ac_link") 2>&5
2346   ac_status=$?
2347   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2348   test $ac_status = 0; }; then :
2349   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2350 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2351 # work properly (i.e., refer to `conftest.exe'), while it won't with
2352 # `rm'.
2353 for ac_file in conftest.exe conftest conftest.*; do
2354   test -f "$ac_file" || continue
2355   case $ac_file in
2356     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2357     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2358           break;;
2359     * ) break;;
2360   esac
2361 done
2362 else
2363   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2365 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2366 See \`config.log' for more details" "$LINENO" 5; }
2367 fi
2368 rm -f conftest conftest$ac_cv_exeext
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2370 $as_echo "$ac_cv_exeext" >&6; }
2371
2372 rm -f conftest.$ac_ext
2373 EXEEXT=$ac_cv_exeext
2374 ac_exeext=$EXEEXT
2375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2376 /* end confdefs.h.  */
2377 #include <stdio.h>
2378 int
2379 main ()
2380 {
2381 FILE *f = fopen ("conftest.out", "w");
2382  return ferror (f) || fclose (f) != 0;
2383
2384   ;
2385   return 0;
2386 }
2387 _ACEOF
2388 ac_clean_files="$ac_clean_files conftest.out"
2389 # Check that the compiler produces executables we can run.  If not, either
2390 # the compiler is broken, or we cross compile.
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2392 $as_echo_n "checking whether we are cross compiling... " >&6; }
2393 if test "$cross_compiling" != yes; then
2394   { { ac_try="$ac_link"
2395 case "(($ac_try" in
2396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2397   *) ac_try_echo=$ac_try;;
2398 esac
2399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2400 $as_echo "$ac_try_echo"; } >&5
2401   (eval "$ac_link") 2>&5
2402   ac_status=$?
2403   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2404   test $ac_status = 0; }
2405   if { ac_try='./conftest$ac_cv_exeext'
2406   { { case "(($ac_try" in
2407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408   *) ac_try_echo=$ac_try;;
2409 esac
2410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2411 $as_echo "$ac_try_echo"; } >&5
2412   (eval "$ac_try") 2>&5
2413   ac_status=$?
2414   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2415   test $ac_status = 0; }; }; then
2416     cross_compiling=no
2417   else
2418     if test "$cross_compiling" = maybe; then
2419         cross_compiling=yes
2420     else
2421         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2423 as_fn_error $? "cannot run C compiled programs.
2424 If you meant to cross compile, use \`--host'.
2425 See \`config.log' for more details" "$LINENO" 5; }
2426     fi
2427   fi
2428 fi
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2430 $as_echo "$cross_compiling" >&6; }
2431
2432 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2433 ac_clean_files=$ac_clean_files_save
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2435 $as_echo_n "checking for suffix of object files... " >&6; }
2436 if ${ac_cv_objext+:} false; then :
2437   $as_echo_n "(cached) " >&6
2438 else
2439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2440 /* end confdefs.h.  */
2441
2442 int
2443 main ()
2444 {
2445
2446   ;
2447   return 0;
2448 }
2449 _ACEOF
2450 rm -f conftest.o conftest.obj
2451 if { { ac_try="$ac_compile"
2452 case "(($ac_try" in
2453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454   *) ac_try_echo=$ac_try;;
2455 esac
2456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2457 $as_echo "$ac_try_echo"; } >&5
2458   (eval "$ac_compile") 2>&5
2459   ac_status=$?
2460   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2461   test $ac_status = 0; }; then :
2462   for ac_file in conftest.o conftest.obj conftest.*; do
2463   test -f "$ac_file" || continue;
2464   case $ac_file in
2465     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2466     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2467        break;;
2468   esac
2469 done
2470 else
2471   $as_echo "$as_me: failed program was:" >&5
2472 sed 's/^/| /' conftest.$ac_ext >&5
2473
2474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2476 as_fn_error $? "cannot compute suffix of object files: cannot compile
2477 See \`config.log' for more details" "$LINENO" 5; }
2478 fi
2479 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2480 fi
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2482 $as_echo "$ac_cv_objext" >&6; }
2483 OBJEXT=$ac_cv_objext
2484 ac_objext=$OBJEXT
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2486 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2487 if ${ac_cv_c_compiler_gnu+:} false; then :
2488   $as_echo_n "(cached) " >&6
2489 else
2490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2491 /* end confdefs.h.  */
2492
2493 int
2494 main ()
2495 {
2496 #ifndef __GNUC__
2497        choke me
2498 #endif
2499
2500   ;
2501   return 0;
2502 }
2503 _ACEOF
2504 if ac_fn_c_try_compile "$LINENO"; then :
2505   ac_compiler_gnu=yes
2506 else
2507   ac_compiler_gnu=no
2508 fi
2509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2510 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2511
2512 fi
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2514 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2515 if test $ac_compiler_gnu = yes; then
2516   GCC=yes
2517 else
2518   GCC=
2519 fi
2520 ac_test_CFLAGS=${CFLAGS+set}
2521 ac_save_CFLAGS=$CFLAGS
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2523 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2524 if ${ac_cv_prog_cc_g+:} false; then :
2525   $as_echo_n "(cached) " >&6
2526 else
2527   ac_save_c_werror_flag=$ac_c_werror_flag
2528    ac_c_werror_flag=yes
2529    ac_cv_prog_cc_g=no
2530    CFLAGS="-g"
2531    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2532 /* end confdefs.h.  */
2533
2534 int
2535 main ()
2536 {
2537
2538   ;
2539   return 0;
2540 }
2541 _ACEOF
2542 if ac_fn_c_try_compile "$LINENO"; then :
2543   ac_cv_prog_cc_g=yes
2544 else
2545   CFLAGS=""
2546       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2547 /* end confdefs.h.  */
2548
2549 int
2550 main ()
2551 {
2552
2553   ;
2554   return 0;
2555 }
2556 _ACEOF
2557 if ac_fn_c_try_compile "$LINENO"; then :
2558
2559 else
2560   ac_c_werror_flag=$ac_save_c_werror_flag
2561          CFLAGS="-g"
2562          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2563 /* end confdefs.h.  */
2564
2565 int
2566 main ()
2567 {
2568
2569   ;
2570   return 0;
2571 }
2572 _ACEOF
2573 if ac_fn_c_try_compile "$LINENO"; then :
2574   ac_cv_prog_cc_g=yes
2575 fi
2576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2577 fi
2578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2579 fi
2580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2581    ac_c_werror_flag=$ac_save_c_werror_flag
2582 fi
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2584 $as_echo "$ac_cv_prog_cc_g" >&6; }
2585 if test "$ac_test_CFLAGS" = set; then
2586   CFLAGS=$ac_save_CFLAGS
2587 elif test $ac_cv_prog_cc_g = yes; then
2588   if test "$GCC" = yes; then
2589     CFLAGS="-g -O2"
2590   else
2591     CFLAGS="-g"
2592   fi
2593 else
2594   if test "$GCC" = yes; then
2595     CFLAGS="-O2"
2596   else
2597     CFLAGS=
2598   fi
2599 fi
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2601 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2602 if ${ac_cv_prog_cc_c89+:} false; then :
2603   $as_echo_n "(cached) " >&6
2604 else
2605   ac_cv_prog_cc_c89=no
2606 ac_save_CC=$CC
2607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2608 /* end confdefs.h.  */
2609 #include <stdarg.h>
2610 #include <stdio.h>
2611 struct stat;
2612 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2613 struct buf { int x; };
2614 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2615 static char *e (p, i)
2616      char **p;
2617      int i;
2618 {
2619   return p[i];
2620 }
2621 static char *f (char * (*g) (char **, int), char **p, ...)
2622 {
2623   char *s;
2624   va_list v;
2625   va_start (v,p);
2626   s = g (p, va_arg (v,int));
2627   va_end (v);
2628   return s;
2629 }
2630
2631 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2632    function prototypes and stuff, but not '\xHH' hex character constants.
2633    These don't provoke an error unfortunately, instead are silently treated
2634    as 'x'.  The following induces an error, until -std is added to get
2635    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2636    array size at least.  It's necessary to write '\x00'==0 to get something
2637    that's true only with -std.  */
2638 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2639
2640 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2641    inside strings and character constants.  */
2642 #define FOO(x) 'x'
2643 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2644
2645 int test (int i, double x);
2646 struct s1 {int (*f) (int a);};
2647 struct s2 {int (*f) (double a);};
2648 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2649 int argc;
2650 char **argv;
2651 int
2652 main ()
2653 {
2654 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2655   ;
2656   return 0;
2657 }
2658 _ACEOF
2659 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2660         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2661 do
2662   CC="$ac_save_CC $ac_arg"
2663   if ac_fn_c_try_compile "$LINENO"; then :
2664   ac_cv_prog_cc_c89=$ac_arg
2665 fi
2666 rm -f core conftest.err conftest.$ac_objext
2667   test "x$ac_cv_prog_cc_c89" != "xno" && break
2668 done
2669 rm -f conftest.$ac_ext
2670 CC=$ac_save_CC
2671
2672 fi
2673 # AC_CACHE_VAL
2674 case "x$ac_cv_prog_cc_c89" in
2675   x)
2676     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2677 $as_echo "none needed" >&6; } ;;
2678   xno)
2679     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2680 $as_echo "unsupported" >&6; } ;;
2681   *)
2682     CC="$CC $ac_cv_prog_cc_c89"
2683     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2684 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2685 esac
2686 if test "x$ac_cv_prog_cc_c89" != xno; then :
2687
2688 fi
2689
2690 ac_ext=c
2691 ac_cpp='$CPP $CPPFLAGS'
2692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2695
2696
2697
2698
2699 ac_safe=`echo "yubikey.h" | sed 'y%./+-%__pm%'`
2700 old_CFLAGS="$CFLAGS"
2701 smart_include=
2702 smart_include_dir=
2703
2704 if test "x$smart_try_dir" != "x"; then
2705   for try in $smart_try_dir; do
2706     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yubikey.h in $try" >&5
2707 $as_echo_n "checking for yubikey.h in $try... " >&6; }
2708     CFLAGS="$old_CFLAGS -isystem $try"
2709     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2710 /* end confdefs.h.  */
2711
2712                     #include <yubikey.h>
2713 int
2714 main ()
2715 {
2716 int a = 1;
2717   ;
2718   return 0;
2719 }
2720 _ACEOF
2721 if ac_fn_c_try_compile "$LINENO"; then :
2722
2723                      smart_include="-isystem $try"
2724                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2725 $as_echo "yes" >&6; }
2726                      break
2727
2728 else
2729
2730                      smart_include=
2731                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2732 $as_echo "no" >&6; }
2733
2734 fi
2735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2736   done
2737   CFLAGS="$old_CFLAGS"
2738 fi
2739
2740 if test "x$smart_include" = "x"; then
2741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yubikey.h" >&5
2742 $as_echo_n "checking for yubikey.h... " >&6; }
2743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2744 /* end confdefs.h.  */
2745
2746                   #include <yubikey.h>
2747 int
2748 main ()
2749 {
2750 int a = 1;
2751   ;
2752   return 0;
2753 }
2754 _ACEOF
2755 if ac_fn_c_try_compile "$LINENO"; then :
2756
2757                    smart_include=" "
2758                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2759 $as_echo "yes" >&6; }
2760                    break
2761
2762 else
2763
2764                    smart_include=
2765                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2766 $as_echo "no" >&6; }
2767
2768 fi
2769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2770 fi
2771
2772 if test "x$smart_include" = "x"; then
2773
2774
2775 if test "x$LOCATE" != "x"; then
2776         DIRS=
2777   file=yubikey.h
2778
2779   for x in `${LOCATE} $file 2>/dev/null`; do
2780                                         base=`echo $x | sed "s%/${file}%%"`
2781     if test "x$x" = "x$base"; then
2782       continue;
2783     fi
2784
2785     dir=`${DIRNAME} $x 2>/dev/null`
2786                 exclude=`echo ${dir} | ${GREP} /home`
2787     if test "x$exclude" != "x"; then
2788       continue
2789     fi
2790
2791                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
2792     if test "x$already" = "x"; then
2793       DIRS="$DIRS $dir"
2794     fi
2795   done
2796 fi
2797
2798 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
2799
2800   for try in $smart_include_dir /usr/local/include /opt/include; do
2801     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yubikey.h in $try" >&5
2802 $as_echo_n "checking for yubikey.h in $try... " >&6; }
2803     CFLAGS="$old_CFLAGS -isystem $try"
2804     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2805 /* end confdefs.h.  */
2806
2807                     #include <yubikey.h>
2808 int
2809 main ()
2810 {
2811 int a = 1;
2812   ;
2813   return 0;
2814 }
2815 _ACEOF
2816 if ac_fn_c_try_compile "$LINENO"; then :
2817
2818                      smart_include="-isystem $try"
2819                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2820 $as_echo "yes" >&6; }
2821                      break
2822
2823 else
2824
2825                      smart_include=
2826                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 $as_echo "no" >&6; }
2828
2829 fi
2830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2831   done
2832   CFLAGS="$old_CFLAGS"
2833 fi
2834
2835 if test "x$smart_include" != "x"; then
2836   eval "ac_cv_header_$ac_safe=yes"
2837   CFLAGS="$old_CFLAGS $smart_include"
2838   SMART_CFLAGS="$SMART_CFLAGS $smart_include"
2839 fi
2840
2841     if test "x$ac_cv_header_yubikey_h" != "xyes"; then
2842         have_ykclient="no"
2843         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: yubikey headers not found. Use --with-yubikey-include-dir=<path>." >&5
2844 $as_echo "$as_me: WARNING: yubikey headers not found. Use --with-yubikey-include-dir=<path>." >&2;}
2845     fi
2846
2847
2848         smart_try_dir="$yubikey_lib_dir"
2849
2850
2851 sm_lib_safe=`echo "yubikey" | sed 'y%./+-%__p_%'`
2852 sm_func_safe=`echo "yubikey_aes_decrypt" | sed 'y%./+-%__p_%'`
2853
2854 old_LIBS="$LIBS"
2855 smart_lib=
2856 smart_lib_dir=
2857
2858 if test "x$smart_try_dir" != "x"; then
2859   for try in $smart_try_dir; do
2860     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yubikey_aes_decrypt in -lyubikey in $try" >&5
2861 $as_echo_n "checking for yubikey_aes_decrypt in -lyubikey in $try... " >&6; }
2862     LIBS="-L$try -lyubikey $old_LIBS -Wl,-rpath,$try"
2863     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2864 /* end confdefs.h.  */
2865 extern char yubikey_aes_decrypt();
2866 int
2867 main ()
2868 {
2869 yubikey_aes_decrypt()
2870   ;
2871   return 0;
2872 }
2873 _ACEOF
2874 if ac_fn_c_try_link "$LINENO"; then :
2875
2876                  smart_lib="-L$try -lyubikey -Wl,-rpath,$try"
2877                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2878 $as_echo "yes" >&6; }
2879                  break
2880
2881 else
2882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883 $as_echo "no" >&6; }
2884 fi
2885 rm -f core conftest.err conftest.$ac_objext \
2886     conftest$ac_exeext conftest.$ac_ext
2887   done
2888   LIBS="$old_LIBS"
2889 fi
2890
2891 if test "x$smart_lib" = "x"; then
2892   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yubikey_aes_decrypt in -lyubikey" >&5
2893 $as_echo_n "checking for yubikey_aes_decrypt in -lyubikey... " >&6; }
2894   LIBS="-lyubikey $old_LIBS"
2895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2896 /* end confdefs.h.  */
2897 extern char yubikey_aes_decrypt();
2898 int
2899 main ()
2900 {
2901 yubikey_aes_decrypt()
2902   ;
2903   return 0;
2904 }
2905 _ACEOF
2906 if ac_fn_c_try_link "$LINENO"; then :
2907
2908                 smart_lib="-lyubikey"
2909                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2910 $as_echo "yes" >&6; }
2911
2912 else
2913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 $as_echo "no" >&6; }
2915 fi
2916 rm -f core conftest.err conftest.$ac_objext \
2917     conftest$ac_exeext conftest.$ac_ext
2918   LIBS="$old_LIBS"
2919 fi
2920
2921 if test "x$smart_lib" = "x"; then
2922
2923
2924 if test "x$LOCATE" != "x"; then
2925         DIRS=
2926   file=libyubikey${libltdl_cv_shlibext}
2927
2928   for x in `${LOCATE} $file 2>/dev/null`; do
2929                                         base=`echo $x | sed "s%/${file}%%"`
2930     if test "x$x" = "x$base"; then
2931       continue;
2932     fi
2933
2934     dir=`${DIRNAME} $x 2>/dev/null`
2935                 exclude=`echo ${dir} | ${GREP} /home`
2936     if test "x$exclude" != "x"; then
2937       continue
2938     fi
2939
2940                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
2941     if test "x$already" = "x"; then
2942       DIRS="$DIRS $dir"
2943     fi
2944   done
2945 fi
2946
2947 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
2948
2949
2950
2951 if test "x$LOCATE" != "x"; then
2952         DIRS=
2953   file=libyubikey.a
2954
2955   for x in `${LOCATE} $file 2>/dev/null`; do
2956                                         base=`echo $x | sed "s%/${file}%%"`
2957     if test "x$x" = "x$base"; then
2958       continue;
2959     fi
2960
2961     dir=`${DIRNAME} $x 2>/dev/null`
2962                 exclude=`echo ${dir} | ${GREP} /home`
2963     if test "x$exclude" != "x"; then
2964       continue
2965     fi
2966
2967                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
2968     if test "x$already" = "x"; then
2969       DIRS="$DIRS $dir"
2970     fi
2971   done
2972 fi
2973
2974 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
2975
2976
2977   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
2978     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yubikey_aes_decrypt in -lyubikey in $try" >&5
2979 $as_echo_n "checking for yubikey_aes_decrypt in -lyubikey in $try... " >&6; }
2980     LIBS="-L$try -lyubikey $old_LIBS -Wl,-rpath,$try"
2981     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2982 /* end confdefs.h.  */
2983 extern char yubikey_aes_decrypt();
2984 int
2985 main ()
2986 {
2987 yubikey_aes_decrypt()
2988   ;
2989   return 0;
2990 }
2991 _ACEOF
2992 if ac_fn_c_try_link "$LINENO"; then :
2993
2994                   smart_lib="-L$try -lyubikey -Wl,-rpath,$try"
2995                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2996 $as_echo "yes" >&6; }
2997                   break
2998
2999 else
3000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 $as_echo "no" >&6; }
3002 fi
3003 rm -f core conftest.err conftest.$ac_objext \
3004     conftest$ac_exeext conftest.$ac_ext
3005   done
3006   LIBS="$old_LIBS"
3007 fi
3008
3009 if test "x$smart_lib" != "x"; then
3010   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
3011   LIBS="$smart_lib $old_LIBS"
3012   SMART_LIBS="$smart_lib $SMART_LIBS"
3013 fi
3014
3015     if test "x$ac_cv_lib_yubikey_yubikey_aes_decrypt" != "xyes"; then
3016         have_yubikey="no"
3017         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: yubikey libraries not found. Use --with-yubikey-lib-dir=<path>." >&5
3018 $as_echo "$as_me: WARNING: yubikey libraries not found. Use --with-yubikey-lib-dir=<path>." >&2;}
3019     fi
3020
3021     if test "x$have_yubikey" = "xyes"; then
3022
3023 $as_echo "#define HAVE_YUBIKEY 1" >>confdefs.h
3024
3025     else
3026         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: silently building without yubikey token decryption support. requires: yubikey" >&5
3027 $as_echo "$as_me: WARNING: silently building without yubikey token decryption support. requires: yubikey" >&2;}
3028     fi
3029
3030
3031     have_ykclient="yes"
3032     smart_try_dir="$ykclient_include_dir"
3033
3034
3035 ac_safe=`echo "ykclient.h" | sed 'y%./+-%__pm%'`
3036 old_CFLAGS="$CFLAGS"
3037 smart_include=
3038 smart_include_dir=
3039
3040 if test "x$smart_try_dir" != "x"; then
3041   for try in $smart_try_dir; do
3042     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ykclient.h in $try" >&5
3043 $as_echo_n "checking for ykclient.h in $try... " >&6; }
3044     CFLAGS="$old_CFLAGS -isystem $try"
3045     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3046 /* end confdefs.h.  */
3047
3048                     #include <ykclient.h>
3049 int
3050 main ()
3051 {
3052 int a = 1;
3053   ;
3054   return 0;
3055 }
3056 _ACEOF
3057 if ac_fn_c_try_compile "$LINENO"; then :
3058
3059                      smart_include="-isystem $try"
3060                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3061 $as_echo "yes" >&6; }
3062                      break
3063
3064 else
3065
3066                      smart_include=
3067                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068 $as_echo "no" >&6; }
3069
3070 fi
3071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3072   done
3073   CFLAGS="$old_CFLAGS"
3074 fi
3075
3076 if test "x$smart_include" = "x"; then
3077   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ykclient.h" >&5
3078 $as_echo_n "checking for ykclient.h... " >&6; }
3079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3080 /* end confdefs.h.  */
3081
3082                   #include <ykclient.h>
3083 int
3084 main ()
3085 {
3086 int a = 1;
3087   ;
3088   return 0;
3089 }
3090 _ACEOF
3091 if ac_fn_c_try_compile "$LINENO"; then :
3092
3093                    smart_include=" "
3094                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3095 $as_echo "yes" >&6; }
3096                    break
3097
3098 else
3099
3100                    smart_include=
3101                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102 $as_echo "no" >&6; }
3103
3104 fi
3105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3106 fi
3107
3108 if test "x$smart_include" = "x"; then
3109
3110
3111 if test "x$LOCATE" != "x"; then
3112         DIRS=
3113   file=ykclient.h
3114
3115   for x in `${LOCATE} $file 2>/dev/null`; do
3116                                         base=`echo $x | sed "s%/${file}%%"`
3117     if test "x$x" = "x$base"; then
3118       continue;
3119     fi
3120
3121     dir=`${DIRNAME} $x 2>/dev/null`
3122                 exclude=`echo ${dir} | ${GREP} /home`
3123     if test "x$exclude" != "x"; then
3124       continue
3125     fi
3126
3127                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
3128     if test "x$already" = "x"; then
3129       DIRS="$DIRS $dir"
3130     fi
3131   done
3132 fi
3133
3134 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
3135
3136   for try in $smart_include_dir /usr/local/include /opt/include; do
3137     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ykclient.h in $try" >&5
3138 $as_echo_n "checking for ykclient.h in $try... " >&6; }
3139     CFLAGS="$old_CFLAGS -isystem $try"
3140     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3141 /* end confdefs.h.  */
3142
3143                     #include <ykclient.h>
3144 int
3145 main ()
3146 {
3147 int a = 1;
3148   ;
3149   return 0;
3150 }
3151 _ACEOF
3152 if ac_fn_c_try_compile "$LINENO"; then :
3153
3154                      smart_include="-isystem $try"
3155                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3156 $as_echo "yes" >&6; }
3157                      break
3158
3159 else
3160
3161                      smart_include=
3162                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163 $as_echo "no" >&6; }
3164
3165 fi
3166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3167   done
3168   CFLAGS="$old_CFLAGS"
3169 fi
3170
3171 if test "x$smart_include" != "x"; then
3172   eval "ac_cv_header_$ac_safe=yes"
3173   CFLAGS="$old_CFLAGS $smart_include"
3174   SMART_CFLAGS="$SMART_CFLAGS $smart_include"
3175 fi
3176
3177     if test "x$ac_cv_header_ykclient_h" != "xyes"; then
3178         have_ykclient="no"
3179         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ykclient headers not found. Use --with-ykclient-include-dir=<path>." >&5
3180 $as_echo "$as_me: WARNING: ykclient headers not found. Use --with-ykclient-include-dir=<path>." >&2;}
3181     fi
3182
3183
3184     smart_try_dir="$ykclient_lib_dir"
3185
3186
3187 sm_lib_safe=`echo "ykclient" | sed 'y%./+-%__p_%'`
3188 sm_func_safe=`echo "ykclient_request_process" | sed 'y%./+-%__p_%'`
3189
3190 old_LIBS="$LIBS"
3191 smart_lib=
3192 smart_lib_dir=
3193
3194 if test "x$smart_try_dir" != "x"; then
3195   for try in $smart_try_dir; do
3196     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ykclient_request_process in -lykclient in $try" >&5
3197 $as_echo_n "checking for ykclient_request_process in -lykclient in $try... " >&6; }
3198     LIBS="-L$try -lykclient $old_LIBS -Wl,-rpath,$try"
3199     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3200 /* end confdefs.h.  */
3201 extern char ykclient_request_process();
3202 int
3203 main ()
3204 {
3205 ykclient_request_process()
3206   ;
3207   return 0;
3208 }
3209 _ACEOF
3210 if ac_fn_c_try_link "$LINENO"; then :
3211
3212                  smart_lib="-L$try -lykclient -Wl,-rpath,$try"
3213                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3214 $as_echo "yes" >&6; }
3215                  break
3216
3217 else
3218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219 $as_echo "no" >&6; }
3220 fi
3221 rm -f core conftest.err conftest.$ac_objext \
3222     conftest$ac_exeext conftest.$ac_ext
3223   done
3224   LIBS="$old_LIBS"
3225 fi
3226
3227 if test "x$smart_lib" = "x"; then
3228   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ykclient_request_process in -lykclient" >&5
3229 $as_echo_n "checking for ykclient_request_process in -lykclient... " >&6; }
3230   LIBS="-lykclient $old_LIBS"
3231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h.  */
3233 extern char ykclient_request_process();
3234 int
3235 main ()
3236 {
3237 ykclient_request_process()
3238   ;
3239   return 0;
3240 }
3241 _ACEOF
3242 if ac_fn_c_try_link "$LINENO"; then :
3243
3244                 smart_lib="-lykclient"
3245                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3246 $as_echo "yes" >&6; }
3247
3248 else
3249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250 $as_echo "no" >&6; }
3251 fi
3252 rm -f core conftest.err conftest.$ac_objext \
3253     conftest$ac_exeext conftest.$ac_ext
3254   LIBS="$old_LIBS"
3255 fi
3256
3257 if test "x$smart_lib" = "x"; then
3258
3259
3260 if test "x$LOCATE" != "x"; then
3261         DIRS=
3262   file=libykclient${libltdl_cv_shlibext}
3263
3264   for x in `${LOCATE} $file 2>/dev/null`; do
3265                                         base=`echo $x | sed "s%/${file}%%"`
3266     if test "x$x" = "x$base"; then
3267       continue;
3268     fi
3269
3270     dir=`${DIRNAME} $x 2>/dev/null`
3271                 exclude=`echo ${dir} | ${GREP} /home`
3272     if test "x$exclude" != "x"; then
3273       continue
3274     fi
3275
3276                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3277     if test "x$already" = "x"; then
3278       DIRS="$DIRS $dir"
3279     fi
3280   done
3281 fi
3282
3283 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3284
3285
3286
3287 if test "x$LOCATE" != "x"; then
3288         DIRS=
3289   file=libykclient.a
3290
3291   for x in `${LOCATE} $file 2>/dev/null`; do
3292                                         base=`echo $x | sed "s%/${file}%%"`
3293     if test "x$x" = "x$base"; then
3294       continue;
3295     fi
3296
3297     dir=`${DIRNAME} $x 2>/dev/null`
3298                 exclude=`echo ${dir} | ${GREP} /home`
3299     if test "x$exclude" != "x"; then
3300       continue
3301     fi
3302
3303                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3304     if test "x$already" = "x"; then
3305       DIRS="$DIRS $dir"
3306     fi
3307   done
3308 fi
3309
3310 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3311
3312
3313   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
3314     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ykclient_request_process in -lykclient in $try" >&5
3315 $as_echo_n "checking for ykclient_request_process in -lykclient in $try... " >&6; }
3316     LIBS="-L$try -lykclient $old_LIBS -Wl,-rpath,$try"
3317     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318 /* end confdefs.h.  */
3319 extern char ykclient_request_process();
3320 int
3321 main ()
3322 {
3323 ykclient_request_process()
3324   ;
3325   return 0;
3326 }
3327 _ACEOF
3328 if ac_fn_c_try_link "$LINENO"; then :
3329
3330                   smart_lib="-L$try -lykclient -Wl,-rpath,$try"
3331                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3332 $as_echo "yes" >&6; }
3333                   break
3334
3335 else
3336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3338 fi
3339 rm -f core conftest.err conftest.$ac_objext \
3340     conftest$ac_exeext conftest.$ac_ext
3341   done
3342   LIBS="$old_LIBS"
3343 fi
3344
3345 if test "x$smart_lib" != "x"; then
3346   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
3347   LIBS="$smart_lib $old_LIBS"
3348   SMART_LIBS="$smart_lib $SMART_LIBS"
3349 fi
3350
3351     if test "x$ac_cv_lib_ykclient_ykclient_request_process" != "xyes"; then
3352         have_ykclient="no"
3353
3354
3355 sm_lib_safe=`echo "ykclient" | sed 'y%./+-%__p_%'`
3356 sm_func_safe=`echo "ykclient_request" | sed 'y%./+-%__p_%'`
3357
3358 old_LIBS="$LIBS"
3359 smart_lib=
3360 smart_lib_dir=
3361
3362 if test "x$smart_try_dir" != "x"; then
3363   for try in $smart_try_dir; do
3364     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ykclient_request in -lykclient in $try" >&5
3365 $as_echo_n "checking for ykclient_request in -lykclient in $try... " >&6; }
3366     LIBS="-L$try -lykclient $old_LIBS -Wl,-rpath,$try"
3367     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368 /* end confdefs.h.  */
3369 extern char ykclient_request();
3370 int
3371 main ()
3372 {
3373 ykclient_request()
3374   ;
3375   return 0;
3376 }
3377 _ACEOF
3378 if ac_fn_c_try_link "$LINENO"; then :
3379
3380                  smart_lib="-L$try -lykclient -Wl,-rpath,$try"
3381                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3382 $as_echo "yes" >&6; }
3383                  break
3384
3385 else
3386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3387 $as_echo "no" >&6; }
3388 fi
3389 rm -f core conftest.err conftest.$ac_objext \
3390     conftest$ac_exeext conftest.$ac_ext
3391   done
3392   LIBS="$old_LIBS"
3393 fi
3394
3395 if test "x$smart_lib" = "x"; then
3396   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ykclient_request in -lykclient" >&5
3397 $as_echo_n "checking for ykclient_request in -lykclient... " >&6; }
3398   LIBS="-lykclient $old_LIBS"
3399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h.  */
3401 extern char ykclient_request();
3402 int
3403 main ()
3404 {
3405 ykclient_request()
3406   ;
3407   return 0;
3408 }
3409 _ACEOF
3410 if ac_fn_c_try_link "$LINENO"; then :
3411
3412                 smart_lib="-lykclient"
3413                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3414 $as_echo "yes" >&6; }
3415
3416 else
3417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 $as_echo "no" >&6; }
3419 fi
3420 rm -f core conftest.err conftest.$ac_objext \
3421     conftest$ac_exeext conftest.$ac_ext
3422   LIBS="$old_LIBS"
3423 fi
3424
3425 if test "x$smart_lib" = "x"; then
3426
3427
3428 if test "x$LOCATE" != "x"; then
3429         DIRS=
3430   file=libykclient${libltdl_cv_shlibext}
3431
3432   for x in `${LOCATE} $file 2>/dev/null`; do
3433                                         base=`echo $x | sed "s%/${file}%%"`
3434     if test "x$x" = "x$base"; then
3435       continue;
3436     fi
3437
3438     dir=`${DIRNAME} $x 2>/dev/null`
3439                 exclude=`echo ${dir} | ${GREP} /home`
3440     if test "x$exclude" != "x"; then
3441       continue
3442     fi
3443
3444                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3445     if test "x$already" = "x"; then
3446       DIRS="$DIRS $dir"
3447     fi
3448   done
3449 fi
3450
3451 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3452
3453
3454
3455 if test "x$LOCATE" != "x"; then
3456         DIRS=
3457   file=libykclient.a
3458
3459   for x in `${LOCATE} $file 2>/dev/null`; do
3460                                         base=`echo $x | sed "s%/${file}%%"`
3461     if test "x$x" = "x$base"; then
3462       continue;
3463     fi
3464
3465     dir=`${DIRNAME} $x 2>/dev/null`
3466                 exclude=`echo ${dir} | ${GREP} /home`
3467     if test "x$exclude" != "x"; then
3468       continue
3469     fi
3470
3471                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3472     if test "x$already" = "x"; then
3473       DIRS="$DIRS $dir"
3474     fi
3475   done
3476 fi
3477
3478 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3479
3480
3481   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
3482     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ykclient_request in -lykclient in $try" >&5
3483 $as_echo_n "checking for ykclient_request in -lykclient in $try... " >&6; }
3484     LIBS="-L$try -lykclient $old_LIBS -Wl,-rpath,$try"
3485     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h.  */
3487 extern char ykclient_request();
3488 int
3489 main ()
3490 {
3491 ykclient_request()
3492   ;
3493   return 0;
3494 }
3495 _ACEOF
3496 if ac_fn_c_try_link "$LINENO"; then :
3497
3498                   smart_lib="-L$try -lykclient -Wl,-rpath,$try"
3499                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3500 $as_echo "yes" >&6; }
3501                   break
3502
3503 else
3504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
3506 fi
3507 rm -f core conftest.err conftest.$ac_objext \
3508     conftest$ac_exeext conftest.$ac_ext
3509   done
3510   LIBS="$old_LIBS"
3511 fi
3512
3513 if test "x$smart_lib" != "x"; then
3514   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
3515   LIBS="$smart_lib $old_LIBS"
3516   SMART_LIBS="$smart_lib $SMART_LIBS"
3517 fi
3518
3519         if test "x$ac_cv_lib_ykclient_ykclient_request" == "xyes"; then
3520             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libykclient missing ykclient_request_process. A later version of libykclient is required." >&5
3521 $as_echo "$as_me: WARNING: libykclient missing ykclient_request_process. A later version of libykclient is required." >&2;}
3522         else
3523             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ykclient libraries not found. Use --with-ykclient-lib-dir=<path>." >&5
3524 $as_echo "$as_me: WARNING: ykclient libraries not found. Use --with-ykclient-lib-dir=<path>." >&2;}
3525         fi
3526     fi
3527
3528     if test "x$have_ykclient" = "xyes"; then
3529
3530 $as_echo "#define HAVE_YKCLIENT 1" >>confdefs.h
3531
3532     else
3533         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: silently building without yubicloud support. requires: ykclient" >&5
3534 $as_echo "$as_me: WARNING: silently building without yubicloud support. requires: ykclient" >&2;}
3535     fi
3536
3537     targetname=rlm_yubikey
3538 else
3539     targetname=
3540     echo \*\*\* module rlm_yubikey is disabled.
3541 fi
3542
3543 if test x"$fail" != x""; then
3544     if test x"${enable_strict_dependencies}" = x"yes"; then
3545         as_fn_error $? "set --without-rlm_yubikey to disable it explicitly." "$LINENO" 5
3546     else
3547         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: silently not building rlm_yubikey." >&5
3548 $as_echo "$as_me: WARNING: silently not building rlm_yubikey." >&2;}
3549         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FAILURE: rlm_yubikey requires: $fail." >&5
3550 $as_echo "$as_me: WARNING: FAILURE: rlm_yubikey requires: $fail." >&2;};
3551         targetname=""
3552     fi
3553 fi
3554
3555 mod_ldflags="${SMART_LIBS}"
3556 mod_cflags="${SMART_CFLAGS}"
3557
3558
3559
3560
3561 ac_config_headers="$ac_config_headers config.h"
3562
3563
3564   unset ac_cv_env_LIBS_set
3565   unset ac_cv_env_LIBS_value
3566
3567   ac_config_files="$ac_config_files all.mk"
3568
3569 cat >confcache <<\_ACEOF
3570 # This file is a shell script that caches the results of configure
3571 # tests run on this system so they can be shared between configure
3572 # scripts and configure runs, see configure's option --config-cache.
3573 # It is not useful on other systems.  If it contains results you don't
3574 # want to keep, you may remove or edit it.
3575 #
3576 # config.status only pays attention to the cache file if you give it
3577 # the --recheck option to rerun configure.
3578 #
3579 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3580 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3581 # following values.
3582
3583 _ACEOF
3584
3585 # The following way of writing the cache mishandles newlines in values,
3586 # but we know of no workaround that is simple, portable, and efficient.
3587 # So, we kill variables containing newlines.
3588 # Ultrix sh set writes to stderr and can't be redirected directly,
3589 # and sets the high bit in the cache file unless we assign to the vars.
3590 (
3591   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3592     eval ac_val=\$$ac_var
3593     case $ac_val in #(
3594     *${as_nl}*)
3595       case $ac_var in #(
3596       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3597 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3598       esac
3599       case $ac_var in #(
3600       _ | IFS | as_nl) ;; #(
3601       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3602       *) { eval $ac_var=; unset $ac_var;} ;;
3603       esac ;;
3604     esac
3605   done
3606
3607   (set) 2>&1 |
3608     case $as_nl`(ac_space=' '; set) 2>&1` in #(
3609     *${as_nl}ac_space=\ *)
3610       # `set' does not quote correctly, so add quotes: double-quote
3611       # substitution turns \\\\ into \\, and sed turns \\ into \.
3612       sed -n \
3613         "s/'/'\\\\''/g;
3614           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3615       ;; #(
3616     *)
3617       # `set' quotes correctly as required by POSIX, so do not add quotes.
3618       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3619       ;;
3620     esac |
3621     sort
3622 ) |
3623   sed '
3624      /^ac_cv_env_/b end
3625      t clear
3626      :clear
3627      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3628      t end
3629      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3630      :end' >>confcache
3631 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3632   if test -w "$cache_file"; then
3633     if test "x$cache_file" != "x/dev/null"; then
3634       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3635 $as_echo "$as_me: updating cache $cache_file" >&6;}
3636       if test ! -f "$cache_file" || test -h "$cache_file"; then
3637         cat confcache >"$cache_file"
3638       else
3639         case $cache_file in #(
3640         */* | ?:*)
3641           mv -f confcache "$cache_file"$$ &&
3642           mv -f "$cache_file"$$ "$cache_file" ;; #(
3643         *)
3644           mv -f confcache "$cache_file" ;;
3645         esac
3646       fi
3647     fi
3648   else
3649     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3650 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3651   fi
3652 fi
3653 rm -f confcache
3654
3655 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3656 # Let make expand exec_prefix.
3657 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3658
3659 DEFS=-DHAVE_CONFIG_H
3660
3661 ac_libobjs=
3662 ac_ltlibobjs=
3663 U=
3664 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3665   # 1. Remove the extension, and $U if already installed.
3666   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3667   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3668   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
3669   #    will be set to the directory where LIBOBJS objects are built.
3670   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3671   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3672 done
3673 LIBOBJS=$ac_libobjs
3674
3675 LTLIBOBJS=$ac_ltlibobjs
3676
3677
3678
3679 : "${CONFIG_STATUS=./config.status}"
3680 ac_write_fail=0
3681 ac_clean_files_save=$ac_clean_files
3682 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3684 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3685 as_write_fail=0
3686 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3687 #! $SHELL
3688 # Generated by $as_me.
3689 # Run this file to recreate the current configuration.
3690 # Compiler output produced by configure, useful for debugging
3691 # configure, is in config.log if it exists.
3692
3693 debug=false
3694 ac_cs_recheck=false
3695 ac_cs_silent=false
3696
3697 SHELL=\${CONFIG_SHELL-$SHELL}
3698 export SHELL
3699 _ASEOF
3700 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3701 ## -------------------- ##
3702 ## M4sh Initialization. ##
3703 ## -------------------- ##
3704
3705 # Be more Bourne compatible
3706 DUALCASE=1; export DUALCASE # for MKS sh
3707 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3708   emulate sh
3709   NULLCMD=:
3710   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3711   # is contrary to our usage.  Disable this feature.
3712   alias -g '${1+"$@"}'='"$@"'
3713   setopt NO_GLOB_SUBST
3714 else
3715   case `(set -o) 2>/dev/null` in #(
3716   *posix*) :
3717     set -o posix ;; #(
3718   *) :
3719      ;;
3720 esac
3721 fi
3722
3723
3724 as_nl='
3725 '
3726 export as_nl
3727 # Printing a long string crashes Solaris 7 /usr/bin/printf.
3728 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3729 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3730 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3731 # Prefer a ksh shell builtin over an external printf program on Solaris,
3732 # but without wasting forks for bash or zsh.
3733 if test -z "$BASH_VERSION$ZSH_VERSION" \
3734     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3735   as_echo='print -r --'
3736   as_echo_n='print -rn --'
3737 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3738   as_echo='printf %s\n'
3739   as_echo_n='printf %s'
3740 else
3741   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3742     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3743     as_echo_n='/usr/ucb/echo -n'
3744   else
3745     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3746     as_echo_n_body='eval
3747       arg=$1;
3748       case $arg in #(
3749       *"$as_nl"*)
3750         expr "X$arg" : "X\\(.*\\)$as_nl";
3751         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3752       esac;
3753       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3754     '
3755     export as_echo_n_body
3756     as_echo_n='sh -c $as_echo_n_body as_echo'
3757   fi
3758   export as_echo_body
3759   as_echo='sh -c $as_echo_body as_echo'
3760 fi
3761
3762 # The user is always right.
3763 if test "${PATH_SEPARATOR+set}" != set; then
3764   PATH_SEPARATOR=:
3765   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3766     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3767       PATH_SEPARATOR=';'
3768   }
3769 fi
3770
3771
3772 # IFS
3773 # We need space, tab and new line, in precisely that order.  Quoting is
3774 # there to prevent editors from complaining about space-tab.
3775 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3776 # splitting by setting IFS to empty value.)
3777 IFS=" ""        $as_nl"
3778
3779 # Find who we are.  Look in the path if we contain no directory separator.
3780 as_myself=
3781 case $0 in #((
3782   *[\\/]* ) as_myself=$0 ;;
3783   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784 for as_dir in $PATH
3785 do
3786   IFS=$as_save_IFS
3787   test -z "$as_dir" && as_dir=.
3788     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3789   done
3790 IFS=$as_save_IFS
3791
3792      ;;
3793 esac
3794 # We did not find ourselves, most probably we were run as `sh COMMAND'
3795 # in which case we are not to be found in the path.
3796 if test "x$as_myself" = x; then
3797   as_myself=$0
3798 fi
3799 if test ! -f "$as_myself"; then
3800   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3801   exit 1
3802 fi
3803
3804 # Unset variables that we do not need and which cause bugs (e.g. in
3805 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
3806 # suppresses any "Segmentation fault" message there.  '((' could
3807 # trigger a bug in pdksh 5.2.14.
3808 for as_var in BASH_ENV ENV MAIL MAILPATH
3809 do eval test x\${$as_var+set} = xset \
3810   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3811 done
3812 PS1='$ '
3813 PS2='> '
3814 PS4='+ '
3815
3816 # NLS nuisances.
3817 LC_ALL=C
3818 export LC_ALL
3819 LANGUAGE=C
3820 export LANGUAGE
3821
3822 # CDPATH.
3823 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3824
3825
3826 # as_fn_error STATUS ERROR [LINENO LOG_FD]
3827 # ----------------------------------------
3828 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3829 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3830 # script with STATUS, using 1 if that was 0.
3831 as_fn_error ()
3832 {
3833   as_status=$1; test $as_status -eq 0 && as_status=1
3834   if test "$4"; then
3835     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3836     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3837   fi
3838   $as_echo "$as_me: error: $2" >&2
3839   as_fn_exit $as_status
3840 } # as_fn_error
3841
3842
3843 # as_fn_set_status STATUS
3844 # -----------------------
3845 # Set $? to STATUS, without forking.
3846 as_fn_set_status ()
3847 {
3848   return $1
3849 } # as_fn_set_status
3850
3851 # as_fn_exit STATUS
3852 # -----------------
3853 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3854 as_fn_exit ()
3855 {
3856   set +e
3857   as_fn_set_status $1
3858   exit $1
3859 } # as_fn_exit
3860
3861 # as_fn_unset VAR
3862 # ---------------
3863 # Portably unset VAR.
3864 as_fn_unset ()
3865 {
3866   { eval $1=; unset $1;}
3867 }
3868 as_unset=as_fn_unset
3869 # as_fn_append VAR VALUE
3870 # ----------------------
3871 # Append the text in VALUE to the end of the definition contained in VAR. Take
3872 # advantage of any shell optimizations that allow amortized linear growth over
3873 # repeated appends, instead of the typical quadratic growth present in naive
3874 # implementations.
3875 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3876   eval 'as_fn_append ()
3877   {
3878     eval $1+=\$2
3879   }'
3880 else
3881   as_fn_append ()
3882   {
3883     eval $1=\$$1\$2
3884   }
3885 fi # as_fn_append
3886
3887 # as_fn_arith ARG...
3888 # ------------------
3889 # Perform arithmetic evaluation on the ARGs, and store the result in the
3890 # global $as_val. Take advantage of shells that can avoid forks. The arguments
3891 # must be portable across $(()) and expr.
3892 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3893   eval 'as_fn_arith ()
3894   {
3895     as_val=$(( $* ))
3896   }'
3897 else
3898   as_fn_arith ()
3899   {
3900     as_val=`expr "$@" || test $? -eq 1`
3901   }
3902 fi # as_fn_arith
3903
3904
3905 if expr a : '\(a\)' >/dev/null 2>&1 &&
3906    test "X`expr 00001 : '.*\(...\)'`" = X001; then
3907   as_expr=expr
3908 else
3909   as_expr=false
3910 fi
3911
3912 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3913   as_basename=basename
3914 else
3915   as_basename=false
3916 fi
3917
3918 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3919   as_dirname=dirname
3920 else
3921   as_dirname=false
3922 fi
3923
3924 as_me=`$as_basename -- "$0" ||
3925 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3926          X"$0" : 'X\(//\)$' \| \
3927          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3928 $as_echo X/"$0" |
3929     sed '/^.*\/\([^/][^/]*\)\/*$/{
3930             s//\1/
3931             q
3932           }
3933           /^X\/\(\/\/\)$/{
3934             s//\1/
3935             q
3936           }
3937           /^X\/\(\/\).*/{
3938             s//\1/
3939             q
3940           }
3941           s/.*/./; q'`
3942
3943 # Avoid depending upon Character Ranges.
3944 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3945 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3946 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3947 as_cr_digits='0123456789'
3948 as_cr_alnum=$as_cr_Letters$as_cr_digits
3949
3950 ECHO_C= ECHO_N= ECHO_T=
3951 case `echo -n x` in #(((((
3952 -n*)
3953   case `echo 'xy\c'` in
3954   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
3955   xy)  ECHO_C='\c';;
3956   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
3957        ECHO_T=' ';;
3958   esac;;
3959 *)
3960   ECHO_N='-n';;
3961 esac
3962
3963 rm -f conf$$ conf$$.exe conf$$.file
3964 if test -d conf$$.dir; then
3965   rm -f conf$$.dir/conf$$.file
3966 else
3967   rm -f conf$$.dir
3968   mkdir conf$$.dir 2>/dev/null
3969 fi
3970 if (echo >conf$$.file) 2>/dev/null; then
3971   if ln -s conf$$.file conf$$ 2>/dev/null; then
3972     as_ln_s='ln -s'
3973     # ... but there are two gotchas:
3974     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3975     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3976     # In both cases, we have to default to `cp -pR'.
3977     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3978       as_ln_s='cp -pR'
3979   elif ln conf$$.file conf$$ 2>/dev/null; then
3980     as_ln_s=ln
3981   else
3982     as_ln_s='cp -pR'
3983   fi
3984 else
3985   as_ln_s='cp -pR'
3986 fi
3987 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3988 rmdir conf$$.dir 2>/dev/null
3989
3990
3991 # as_fn_mkdir_p
3992 # -------------
3993 # Create "$as_dir" as a directory, including parents if necessary.
3994 as_fn_mkdir_p ()
3995 {
3996
3997   case $as_dir in #(
3998   -*) as_dir=./$as_dir;;
3999   esac
4000   test -d "$as_dir" || eval $as_mkdir_p || {
4001     as_dirs=
4002     while :; do
4003       case $as_dir in #(
4004       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4005       *) as_qdir=$as_dir;;
4006       esac
4007       as_dirs="'$as_qdir' $as_dirs"
4008       as_dir=`$as_dirname -- "$as_dir" ||
4009 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4010          X"$as_dir" : 'X\(//\)[^/]' \| \
4011          X"$as_dir" : 'X\(//\)$' \| \
4012          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4013 $as_echo X"$as_dir" |
4014     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4015             s//\1/
4016             q
4017           }
4018           /^X\(\/\/\)[^/].*/{
4019             s//\1/
4020             q
4021           }
4022           /^X\(\/\/\)$/{
4023             s//\1/
4024             q
4025           }
4026           /^X\(\/\).*/{
4027             s//\1/
4028             q
4029           }
4030           s/.*/./; q'`
4031       test -d "$as_dir" && break
4032     done
4033     test -z "$as_dirs" || eval "mkdir $as_dirs"
4034   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4035
4036
4037 } # as_fn_mkdir_p
4038 if mkdir -p . 2>/dev/null; then
4039   as_mkdir_p='mkdir -p "$as_dir"'
4040 else
4041   test -d ./-p && rmdir ./-p
4042   as_mkdir_p=false
4043 fi
4044
4045
4046 # as_fn_executable_p FILE
4047 # -----------------------
4048 # Test if FILE is an executable regular file.
4049 as_fn_executable_p ()
4050 {
4051   test -f "$1" && test -x "$1"
4052 } # as_fn_executable_p
4053 as_test_x='test -x'
4054 as_executable_p=as_fn_executable_p
4055
4056 # Sed expression to map a string onto a valid CPP name.
4057 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4058
4059 # Sed expression to map a string onto a valid variable name.
4060 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4061
4062
4063 exec 6>&1
4064 ## ----------------------------------- ##
4065 ## Main body of $CONFIG_STATUS script. ##
4066 ## ----------------------------------- ##
4067 _ASEOF
4068 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4069
4070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4071 # Save the log message, to keep $0 and so on meaningful, and to
4072 # report actual input values of CONFIG_FILES etc. instead of their
4073 # values after options handling.
4074 ac_log="
4075 This file was extended by $as_me, which was
4076 generated by GNU Autoconf 2.69.  Invocation command line was
4077
4078   CONFIG_FILES    = $CONFIG_FILES
4079   CONFIG_HEADERS  = $CONFIG_HEADERS
4080   CONFIG_LINKS    = $CONFIG_LINKS
4081   CONFIG_COMMANDS = $CONFIG_COMMANDS
4082   $ $0 $@
4083
4084 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4085 "
4086
4087 _ACEOF
4088
4089 case $ac_config_files in *"
4090 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4091 esac
4092
4093 case $ac_config_headers in *"
4094 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4095 esac
4096
4097
4098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4099 # Files that config.status was made for.
4100 config_files="$ac_config_files"
4101 config_headers="$ac_config_headers"
4102
4103 _ACEOF
4104
4105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4106 ac_cs_usage="\
4107 \`$as_me' instantiates files and other configuration actions
4108 from templates according to the current configuration.  Unless the files
4109 and actions are specified as TAGs, all are instantiated by default.
4110
4111 Usage: $0 [OPTION]... [TAG]...
4112
4113   -h, --help       print this help, then exit
4114   -V, --version    print version number and configuration settings, then exit
4115       --config     print configuration, then exit
4116   -q, --quiet, --silent
4117                    do not print progress messages
4118   -d, --debug      don't remove temporary files
4119       --recheck    update $as_me by reconfiguring in the same conditions
4120       --file=FILE[:TEMPLATE]
4121                    instantiate the configuration file FILE
4122       --header=FILE[:TEMPLATE]
4123                    instantiate the configuration header FILE
4124
4125 Configuration files:
4126 $config_files
4127
4128 Configuration headers:
4129 $config_headers
4130
4131 Report bugs to the package provider."
4132
4133 _ACEOF
4134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4135 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4136 ac_cs_version="\\
4137 config.status
4138 configured by $0, generated by GNU Autoconf 2.69,
4139   with options \\"\$ac_cs_config\\"
4140
4141 Copyright (C) 2012 Free Software Foundation, Inc.
4142 This config.status script is free software; the Free Software Foundation
4143 gives unlimited permission to copy, distribute and modify it."
4144
4145 ac_pwd='$ac_pwd'
4146 srcdir='$srcdir'
4147 test -n "\$AWK" || AWK=awk
4148 _ACEOF
4149
4150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4151 # The default lists apply if the user does not specify any file.
4152 ac_need_defaults=:
4153 while test $# != 0
4154 do
4155   case $1 in
4156   --*=?*)
4157     ac_option=`expr "X$1" : 'X\([^=]*\)='`
4158     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4159     ac_shift=:
4160     ;;
4161   --*=)
4162     ac_option=`expr "X$1" : 'X\([^=]*\)='`
4163     ac_optarg=
4164     ac_shift=:
4165     ;;
4166   *)
4167     ac_option=$1
4168     ac_optarg=$2
4169     ac_shift=shift
4170     ;;
4171   esac
4172
4173   case $ac_option in
4174   # Handling of the options.
4175   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4176     ac_cs_recheck=: ;;
4177   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4178     $as_echo "$ac_cs_version"; exit ;;
4179   --config | --confi | --conf | --con | --co | --c )
4180     $as_echo "$ac_cs_config"; exit ;;
4181   --debug | --debu | --deb | --de | --d | -d )
4182     debug=: ;;
4183   --file | --fil | --fi | --f )
4184     $ac_shift
4185     case $ac_optarg in
4186     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4187     '') as_fn_error $? "missing file argument" ;;
4188     esac
4189     as_fn_append CONFIG_FILES " '$ac_optarg'"
4190     ac_need_defaults=false;;
4191   --header | --heade | --head | --hea )
4192     $ac_shift
4193     case $ac_optarg in
4194     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4195     esac
4196     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4197     ac_need_defaults=false;;
4198   --he | --h)
4199     # Conflict between --help and --header
4200     as_fn_error $? "ambiguous option: \`$1'
4201 Try \`$0 --help' for more information.";;
4202   --help | --hel | -h )
4203     $as_echo "$ac_cs_usage"; exit ;;
4204   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4205   | -silent | --silent | --silen | --sile | --sil | --si | --s)
4206     ac_cs_silent=: ;;
4207
4208   # This is an error.
4209   -*) as_fn_error $? "unrecognized option: \`$1'
4210 Try \`$0 --help' for more information." ;;
4211
4212   *) as_fn_append ac_config_targets " $1"
4213      ac_need_defaults=false ;;
4214
4215   esac
4216   shift
4217 done
4218
4219 ac_configure_extra_args=
4220
4221 if $ac_cs_silent; then
4222   exec 6>/dev/null
4223   ac_configure_extra_args="$ac_configure_extra_args --silent"
4224 fi
4225
4226 _ACEOF
4227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4228 if \$ac_cs_recheck; then
4229   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4230   shift
4231   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4232   CONFIG_SHELL='$SHELL'
4233   export CONFIG_SHELL
4234   exec "\$@"
4235 fi
4236
4237 _ACEOF
4238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4239 exec 5>>config.log
4240 {
4241   echo
4242   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4243 ## Running $as_me. ##
4244 _ASBOX
4245   $as_echo "$ac_log"
4246 } >&5
4247
4248 _ACEOF
4249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4250 _ACEOF
4251
4252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4253
4254 # Handling of arguments.
4255 for ac_config_target in $ac_config_targets
4256 do
4257   case $ac_config_target in
4258     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4259     "all.mk") CONFIG_FILES="$CONFIG_FILES all.mk" ;;
4260
4261   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4262   esac
4263 done
4264
4265
4266 # If the user did not use the arguments to specify the items to instantiate,
4267 # then the envvar interface is used.  Set only those that are not.
4268 # We use the long form for the default assignment because of an extremely
4269 # bizarre bug on SunOS 4.1.3.
4270 if $ac_need_defaults; then
4271   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4272   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4273 fi
4274
4275 # Have a temporary directory for convenience.  Make it in the build tree
4276 # simply because there is no reason against having it here, and in addition,
4277 # creating and moving files from /tmp can sometimes cause problems.
4278 # Hook for its removal unless debugging.
4279 # Note that there is a small window in which the directory will not be cleaned:
4280 # after its creation but before its name has been assigned to `$tmp'.
4281 $debug ||
4282 {
4283   tmp= ac_tmp=
4284   trap 'exit_status=$?
4285   : "${ac_tmp:=$tmp}"
4286   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4287 ' 0
4288   trap 'as_fn_exit 1' 1 2 13 15
4289 }
4290 # Create a (secure) tmp directory for tmp files.
4291
4292 {
4293   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4294   test -d "$tmp"
4295 }  ||
4296 {
4297   tmp=./conf$$-$RANDOM
4298   (umask 077 && mkdir "$tmp")
4299 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4300 ac_tmp=$tmp
4301
4302 # Set up the scripts for CONFIG_FILES section.
4303 # No need to generate them if there are no CONFIG_FILES.
4304 # This happens for instance with `./config.status config.h'.
4305 if test -n "$CONFIG_FILES"; then
4306
4307
4308 ac_cr=`echo X | tr X '\015'`
4309 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4310 # But we know of no other shell where ac_cr would be empty at this
4311 # point, so we can use a bashism as a fallback.
4312 if test "x$ac_cr" = x; then
4313   eval ac_cr=\$\'\\r\'
4314 fi
4315 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4316 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4317   ac_cs_awk_cr='\\r'
4318 else
4319   ac_cs_awk_cr=$ac_cr
4320 fi
4321
4322 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4323 _ACEOF
4324
4325
4326 {
4327   echo "cat >conf$$subs.awk <<_ACEOF" &&
4328   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4329   echo "_ACEOF"
4330 } >conf$$subs.sh ||
4331   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4332 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4333 ac_delim='%!_!# '
4334 for ac_last_try in false false false false false :; do
4335   . ./conf$$subs.sh ||
4336     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4337
4338   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4339   if test $ac_delim_n = $ac_delim_num; then
4340     break
4341   elif $ac_last_try; then
4342     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4343   else
4344     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4345   fi
4346 done
4347 rm -f conf$$subs.sh
4348
4349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4350 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4351 _ACEOF
4352 sed -n '
4353 h
4354 s/^/S["/; s/!.*/"]=/
4355 p
4356 g
4357 s/^[^!]*!//
4358 :repl
4359 t repl
4360 s/'"$ac_delim"'$//
4361 t delim
4362 :nl
4363 h
4364 s/\(.\{148\}\)..*/\1/
4365 t more1
4366 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4367 p
4368 n
4369 b repl
4370 :more1
4371 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4372 p
4373 g
4374 s/.\{148\}//
4375 t nl
4376 :delim
4377 h
4378 s/\(.\{148\}\)..*/\1/
4379 t more2
4380 s/["\\]/\\&/g; s/^/"/; s/$/"/
4381 p
4382 b
4383 :more2
4384 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4385 p
4386 g
4387 s/.\{148\}//
4388 t delim
4389 ' <conf$$subs.awk | sed '
4390 /^[^""]/{
4391   N
4392   s/\n//
4393 }
4394 ' >>$CONFIG_STATUS || ac_write_fail=1
4395 rm -f conf$$subs.awk
4396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4397 _ACAWK
4398 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4399   for (key in S) S_is_set[key] = 1
4400   FS = "\a"
4401
4402 }
4403 {
4404   line = $ 0
4405   nfields = split(line, field, "@")
4406   substed = 0
4407   len = length(field[1])
4408   for (i = 2; i < nfields; i++) {
4409     key = field[i]
4410     keylen = length(key)
4411     if (S_is_set[key]) {
4412       value = S[key]
4413       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4414       len += length(value) + length(field[++i])
4415       substed = 1
4416     } else
4417       len += 1 + keylen
4418   }
4419
4420   print line
4421 }
4422
4423 _ACAWK
4424 _ACEOF
4425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4426 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4427   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4428 else
4429   cat
4430 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4431   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4432 _ACEOF
4433
4434 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4435 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4436 # trailing colons and then remove the whole line if VPATH becomes empty
4437 # (actually we leave an empty line to preserve line numbers).
4438 if test "x$srcdir" = x.; then
4439   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
4440 h
4441 s///
4442 s/^/:/
4443 s/[      ]*$/:/
4444 s/:\$(srcdir):/:/g
4445 s/:\${srcdir}:/:/g
4446 s/:@srcdir@:/:/g
4447 s/^:*//
4448 s/:*$//
4449 x
4450 s/\(=[   ]*\).*/\1/
4451 G
4452 s/\n//
4453 s/^[^=]*=[       ]*$//
4454 }'
4455 fi
4456
4457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4458 fi # test -n "$CONFIG_FILES"
4459
4460 # Set up the scripts for CONFIG_HEADERS section.
4461 # No need to generate them if there are no CONFIG_HEADERS.
4462 # This happens for instance with `./config.status Makefile'.
4463 if test -n "$CONFIG_HEADERS"; then
4464 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
4465 BEGIN {
4466 _ACEOF
4467
4468 # Transform confdefs.h into an awk script `defines.awk', embedded as
4469 # here-document in config.status, that substitutes the proper values into
4470 # config.h.in to produce config.h.
4471
4472 # Create a delimiter string that does not exist in confdefs.h, to ease
4473 # handling of long lines.
4474 ac_delim='%!_!# '
4475 for ac_last_try in false false :; do
4476   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
4477   if test -z "$ac_tt"; then
4478     break
4479   elif $ac_last_try; then
4480     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
4481   else
4482     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4483   fi
4484 done
4485
4486 # For the awk script, D is an array of macro values keyed by name,
4487 # likewise P contains macro parameters if any.  Preserve backslash
4488 # newline sequences.
4489
4490 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4491 sed -n '
4492 s/.\{148\}/&'"$ac_delim"'/g
4493 t rset
4494 :rset
4495 s/^[     ]*#[    ]*define[       ][      ]*/ /
4496 t def
4497 d
4498 :def
4499 s/\\$//
4500 t bsnl
4501 s/["\\]/\\&/g
4502 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
4503 D["\1"]=" \3"/p
4504 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
4505 d
4506 :bsnl
4507 s/["\\]/\\&/g
4508 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
4509 D["\1"]=" \3\\\\\\n"\\/p
4510 t cont
4511 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
4512 t cont
4513 d
4514 :cont
4515 n
4516 s/.\{148\}/&'"$ac_delim"'/g
4517 t clear
4518 :clear
4519 s/\\$//
4520 t bsnlc
4521 s/["\\]/\\&/g; s/^/"/; s/$/"/p
4522 d
4523 :bsnlc
4524 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
4525 b cont
4526 ' <confdefs.h | sed '
4527 s/'"$ac_delim"'/"\\\
4528 "/g' >>$CONFIG_STATUS || ac_write_fail=1
4529
4530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4531   for (key in D) D_is_set[key] = 1
4532   FS = "\a"
4533 }
4534 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
4535   line = \$ 0
4536   split(line, arg, " ")
4537   if (arg[1] == "#") {
4538     defundef = arg[2]
4539     mac1 = arg[3]
4540   } else {
4541     defundef = substr(arg[1], 2)
4542     mac1 = arg[2]
4543   }
4544   split(mac1, mac2, "(") #)
4545   macro = mac2[1]
4546   prefix = substr(line, 1, index(line, defundef) - 1)
4547   if (D_is_set[macro]) {
4548     # Preserve the white space surrounding the "#".
4549     print prefix "define", macro P[macro] D[macro]
4550     next
4551   } else {
4552     # Replace #undef with comments.  This is necessary, for example,
4553     # in the case of _POSIX_SOURCE, which is predefined and required
4554     # on some systems where configure will not decide to define it.
4555     if (defundef == "undef") {
4556       print "/*", prefix defundef, macro, "*/"
4557       next
4558     }
4559   }
4560 }
4561 { print }
4562 _ACAWK
4563 _ACEOF
4564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4565   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
4566 fi # test -n "$CONFIG_HEADERS"
4567
4568
4569 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
4570 shift
4571 for ac_tag
4572 do
4573   case $ac_tag in
4574   :[FHLC]) ac_mode=$ac_tag; continue;;
4575   esac
4576   case $ac_mode$ac_tag in
4577   :[FHL]*:*);;
4578   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4579   :[FH]-) ac_tag=-:-;;
4580   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4581   esac
4582   ac_save_IFS=$IFS
4583   IFS=:
4584   set x $ac_tag
4585   IFS=$ac_save_IFS
4586   shift
4587   ac_file=$1
4588   shift
4589
4590   case $ac_mode in
4591   :L) ac_source=$1;;
4592   :[FH])
4593     ac_file_inputs=
4594     for ac_f
4595     do
4596       case $ac_f in
4597       -) ac_f="$ac_tmp/stdin";;
4598       *) # Look for the file first in the build tree, then in the source tree
4599          # (if the path is not absolute).  The absolute path cannot be DOS-style,
4600          # because $ac_f cannot contain `:'.
4601          test -f "$ac_f" ||
4602            case $ac_f in
4603            [\\/$]*) false;;
4604            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4605            esac ||
4606            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4607       esac
4608       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4609       as_fn_append ac_file_inputs " '$ac_f'"
4610     done
4611
4612     # Let's still pretend it is `configure' which instantiates (i.e., don't
4613     # use $as_me), people would be surprised to read:
4614     #    /* config.h.  Generated by config.status.  */
4615     configure_input='Generated from '`
4616           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4617         `' by configure.'
4618     if test x"$ac_file" != x-; then
4619       configure_input="$ac_file.  $configure_input"
4620       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4621 $as_echo "$as_me: creating $ac_file" >&6;}
4622     fi
4623     # Neutralize special characters interpreted by sed in replacement strings.
4624     case $configure_input in #(
4625     *\&* | *\|* | *\\* )
4626        ac_sed_conf_input=`$as_echo "$configure_input" |
4627        sed 's/[\\\\&|]/\\\\&/g'`;; #(
4628     *) ac_sed_conf_input=$configure_input;;
4629     esac
4630
4631     case $ac_tag in
4632     *:-:* | *:-) cat >"$ac_tmp/stdin" \
4633       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4634     esac
4635     ;;
4636   esac
4637
4638   ac_dir=`$as_dirname -- "$ac_file" ||
4639 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4640          X"$ac_file" : 'X\(//\)[^/]' \| \
4641          X"$ac_file" : 'X\(//\)$' \| \
4642          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4643 $as_echo X"$ac_file" |
4644     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4645             s//\1/
4646             q
4647           }
4648           /^X\(\/\/\)[^/].*/{
4649             s//\1/
4650             q
4651           }
4652           /^X\(\/\/\)$/{
4653             s//\1/
4654             q
4655           }
4656           /^X\(\/\).*/{
4657             s//\1/
4658             q
4659           }
4660           s/.*/./; q'`
4661   as_dir="$ac_dir"; as_fn_mkdir_p
4662   ac_builddir=.
4663
4664 case "$ac_dir" in
4665 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4666 *)
4667   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4668   # A ".." for each directory in $ac_dir_suffix.
4669   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4670   case $ac_top_builddir_sub in
4671   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4672   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4673   esac ;;
4674 esac
4675 ac_abs_top_builddir=$ac_pwd
4676 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4677 # for backward compatibility:
4678 ac_top_builddir=$ac_top_build_prefix
4679
4680 case $srcdir in
4681   .)  # We are building in place.
4682     ac_srcdir=.
4683     ac_top_srcdir=$ac_top_builddir_sub
4684     ac_abs_top_srcdir=$ac_pwd ;;
4685   [\\/]* | ?:[\\/]* )  # Absolute name.
4686     ac_srcdir=$srcdir$ac_dir_suffix;
4687     ac_top_srcdir=$srcdir
4688     ac_abs_top_srcdir=$srcdir ;;
4689   *) # Relative name.
4690     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4691     ac_top_srcdir=$ac_top_build_prefix$srcdir
4692     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4693 esac
4694 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4695
4696
4697   case $ac_mode in
4698   :F)
4699   #
4700   # CONFIG_FILE
4701   #
4702
4703 _ACEOF
4704
4705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4706 # If the template does not know about datarootdir, expand it.
4707 # FIXME: This hack should be removed a few years after 2.60.
4708 ac_datarootdir_hack=; ac_datarootdir_seen=
4709 ac_sed_dataroot='
4710 /datarootdir/ {
4711   p
4712   q
4713 }
4714 /@datadir@/p
4715 /@docdir@/p
4716 /@infodir@/p
4717 /@localedir@/p
4718 /@mandir@/p'
4719 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4720 *datarootdir*) ac_datarootdir_seen=yes;;
4721 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4722   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4723 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4724 _ACEOF
4725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4726   ac_datarootdir_hack='
4727   s&@datadir@&$datadir&g
4728   s&@docdir@&$docdir&g
4729   s&@infodir@&$infodir&g
4730   s&@localedir@&$localedir&g
4731   s&@mandir@&$mandir&g
4732   s&\\\${datarootdir}&$datarootdir&g' ;;
4733 esac
4734 _ACEOF
4735
4736 # Neutralize VPATH when `$srcdir' = `.'.
4737 # Shell code in configure.ac might set extrasub.
4738 # FIXME: do we really want to maintain this feature?
4739 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4740 ac_sed_extra="$ac_vpsub
4741 $extrasub
4742 _ACEOF
4743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4744 :t
4745 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4746 s|@configure_input@|$ac_sed_conf_input|;t t
4747 s&@top_builddir@&$ac_top_builddir_sub&;t t
4748 s&@top_build_prefix@&$ac_top_build_prefix&;t t
4749 s&@srcdir@&$ac_srcdir&;t t
4750 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4751 s&@top_srcdir@&$ac_top_srcdir&;t t
4752 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4753 s&@builddir@&$ac_builddir&;t t
4754 s&@abs_builddir@&$ac_abs_builddir&;t t
4755 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4756 $ac_datarootdir_hack
4757 "
4758 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4759   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4760
4761 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4762   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4763   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
4764       "$ac_tmp/out"`; test -z "$ac_out"; } &&
4765   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4766 which seems to be undefined.  Please make sure it is defined" >&5
4767 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4768 which seems to be undefined.  Please make sure it is defined" >&2;}
4769
4770   rm -f "$ac_tmp/stdin"
4771   case $ac_file in
4772   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4773   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4774   esac \
4775   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4776  ;;
4777   :H)
4778   #
4779   # CONFIG_HEADER
4780   #
4781   if test x"$ac_file" != x-; then
4782     {
4783       $as_echo "/* $configure_input  */" \
4784       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
4785     } >"$ac_tmp/config.h" \
4786       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4787     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
4788       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
4789 $as_echo "$as_me: $ac_file is unchanged" >&6;}
4790     else
4791       rm -f "$ac_file"
4792       mv "$ac_tmp/config.h" "$ac_file" \
4793         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4794     fi
4795   else
4796     $as_echo "/* $configure_input  */" \
4797       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
4798       || as_fn_error $? "could not create -" "$LINENO" 5
4799   fi
4800  ;;
4801
4802
4803   esac
4804
4805 done # for ac_tag
4806
4807
4808 as_fn_exit 0
4809 _ACEOF
4810 ac_clean_files=$ac_clean_files_save
4811
4812 test $ac_write_fail = 0 ||
4813   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4814
4815
4816 # configure is writing to config.log, and then calls config.status.
4817 # config.status does its own redirection, appending to config.log.
4818 # Unfortunately, on DOS this fails, as config.log is still kept open
4819 # by configure, so config.status won't be able to write to it; its
4820 # output is simply discarded.  So we exec the FD to /dev/null,
4821 # effectively closing config.log, so it can be properly (re)opened and
4822 # appended to by config.status.  When coming back to configure, we
4823 # need to make the FD available again.
4824 if test "$no_create" != yes; then
4825   ac_cs_success=:
4826   ac_config_status_args=
4827   test "$silent" = yes &&
4828     ac_config_status_args="$ac_config_status_args --quiet"
4829   exec 5>/dev/null
4830   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4831   exec 5>>config.log
4832   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4833   # would make configure fail if this is the last instruction.
4834   $ac_cs_success || as_fn_exit 1
4835 fi
4836 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4837   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4838 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4839 fi
4840
4841