Initial commit
[platform/upstream/ccid.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ccid 1.4.33.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     PATH=/empty FPATH=/empty; export PATH FPATH
206     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='ccid'
589 PACKAGE_TARNAME='ccid'
590 PACKAGE_VERSION='1.4.33'
591 PACKAGE_STRING='ccid 1.4.33'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="src/ifdhandler.c"
596 ac_default_prefix=/usr/local
597 # Factoring default headers for most tests.
598 ac_includes_default="\
599 #include <stdio.h>
600 #ifdef HAVE_SYS_TYPES_H
601 # include <sys/types.h>
602 #endif
603 #ifdef HAVE_SYS_STAT_H
604 # include <sys/stat.h>
605 #endif
606 #ifdef STDC_HEADERS
607 # include <stdlib.h>
608 # include <stddef.h>
609 #else
610 # ifdef HAVE_STDLIB_H
611 #  include <stdlib.h>
612 # endif
613 #endif
614 #ifdef HAVE_STRING_H
615 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
616 #  include <memory.h>
617 # endif
618 # include <string.h>
619 #endif
620 #ifdef HAVE_STRINGS_H
621 # include <strings.h>
622 #endif
623 #ifdef HAVE_INTTYPES_H
624 # include <inttypes.h>
625 #endif
626 #ifdef HAVE_STDINT_H
627 # include <stdint.h>
628 #endif
629 #ifdef HAVE_UNISTD_H
630 # include <unistd.h>
631 #endif"
632
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 sysconfdir_exp
638 bindir_exp
639 serialconfdir
640 ccidtwindir
641 usbdropdir
642 bundle
643 ac_aux_dir
644 NOCLASS
645 WITHOUT_PCSC_FALSE
646 WITHOUT_PCSC_TRUE
647 WITH_TWIN_SERIAL_FALSE
648 WITH_TWIN_SERIAL_TRUE
649 PTHREAD_CFLAGS
650 PTHREAD_LIBS
651 PTHREAD_CC
652 ax_pthread_config
653 SYMBOL_VISIBILITY
654 WITH_LIBUSB_FALSE
655 WITH_LIBUSB_TRUE
656 LIBUSB_LIBS
657 LIBUSB_CFLAGS
658 DYN_LIB_EXT
659 BUNDLE_HOST
660 LIBTOOL_DEPS
661 LT_SYS_LIBRARY_PATH
662 OTOOL64
663 OTOOL
664 LIPO
665 NMEDIT
666 DSYMUTIL
667 MANIFEST_TOOL
668 RANLIB
669 DLLTOOL
670 OBJDUMP
671 NM
672 ac_ct_DUMPBIN
673 DUMPBIN
674 LD
675 FGREP
676 SED
677 LIBTOOL
678 EGREP
679 GREP
680 PCSC_LIBS
681 PCSC_CFLAGS
682 PKG_CONFIG_LIBDIR
683 PKG_CONFIG_PATH
684 PKG_CONFIG
685 ac_ct_AR
686 AR
687 LEXLIB
688 LEX_OUTPUT_ROOT
689 LEX
690 LN_S
691 CPP
692 am__fastdepCC_FALSE
693 am__fastdepCC_TRUE
694 CCDEPMODE
695 am__nodep
696 AMDEPBACKSLASH
697 AMDEP_FALSE
698 AMDEP_TRUE
699 am__include
700 DEPDIR
701 OBJEXT
702 EXEEXT
703 ac_ct_CC
704 CPPFLAGS
705 LDFLAGS
706 CFLAGS
707 CC
708 MAINT
709 MAINTAINER_MODE_FALSE
710 MAINTAINER_MODE_TRUE
711 host_os
712 host_vendor
713 host_cpu
714 host
715 build_os
716 build_vendor
717 build_cpu
718 build
719 AM_BACKSLASH
720 AM_DEFAULT_VERBOSITY
721 AM_DEFAULT_V
722 AM_V
723 am__untar
724 am__tar
725 AMTAR
726 am__leading_dot
727 SET_MAKE
728 AWK
729 mkdir_p
730 MKDIR_P
731 INSTALL_STRIP_PROGRAM
732 STRIP
733 install_sh
734 MAKEINFO
735 AUTOHEADER
736 AUTOMAKE
737 AUTOCONF
738 ACLOCAL
739 VERSION
740 PACKAGE
741 CYGPATH_W
742 am__isrc
743 INSTALL_DATA
744 INSTALL_SCRIPT
745 INSTALL_PROGRAM
746 target_alias
747 host_alias
748 build_alias
749 LIBS
750 ECHO_T
751 ECHO_N
752 ECHO_C
753 DEFS
754 mandir
755 localedir
756 libdir
757 psdir
758 pdfdir
759 dvidir
760 htmldir
761 infodir
762 docdir
763 oldincludedir
764 includedir
765 runstatedir
766 localstatedir
767 sharedstatedir
768 sysconfdir
769 datadir
770 datarootdir
771 libexecdir
772 sbindir
773 bindir
774 program_transform_name
775 prefix
776 exec_prefix
777 PACKAGE_URL
778 PACKAGE_BUGREPORT
779 PACKAGE_STRING
780 PACKAGE_VERSION
781 PACKAGE_TARNAME
782 PACKAGE_NAME
783 PATH_SEPARATOR
784 SHELL
785 am__quote'
786 ac_subst_files=''
787 ac_user_opts='
788 enable_option_checking
789 enable_silent_rules
790 enable_maintainer_mode
791 enable_dependency_tracking
792 enable_static
793 enable_shared
794 with_pic
795 enable_fast_install
796 with_aix_soname
797 with_gnu_ld
798 with_sysroot
799 enable_libtool_lock
800 enable_libusb
801 enable_composite_as_multislot
802 enable_multi_thread
803 enable_bundle
804 enable_usbdropdir
805 enable_twinserial
806 enable_ccidtwindir
807 enable_serialconfdir
808 enable_pcsclite
809 enable_syslog
810 enable_oslog
811 enable_class
812 enable_embedded
813 enable_zlp
814 '
815       ac_precious_vars='build_alias
816 host_alias
817 target_alias
818 CC
819 CFLAGS
820 LDFLAGS
821 LIBS
822 CPPFLAGS
823 CPP
824 PKG_CONFIG
825 PKG_CONFIG_PATH
826 PKG_CONFIG_LIBDIR
827 PCSC_CFLAGS
828 PCSC_LIBS
829 LT_SYS_LIBRARY_PATH
830 LIBUSB_CFLAGS
831 LIBUSB_LIBS'
832
833
834 # Initialize some variables set by options.
835 ac_init_help=
836 ac_init_version=false
837 ac_unrecognized_opts=
838 ac_unrecognized_sep=
839 # The variables have the same names as the options, with
840 # dashes changed to underlines.
841 cache_file=/dev/null
842 exec_prefix=NONE
843 no_create=
844 no_recursion=
845 prefix=NONE
846 program_prefix=NONE
847 program_suffix=NONE
848 program_transform_name=s,x,x,
849 silent=
850 site=
851 srcdir=
852 verbose=
853 x_includes=NONE
854 x_libraries=NONE
855
856 # Installation directory options.
857 # These are left unexpanded so users can "make install exec_prefix=/foo"
858 # and all the variables that are supposed to be based on exec_prefix
859 # by default will actually change.
860 # Use braces instead of parens because sh, perl, etc. also accept them.
861 # (The list follows the same order as the GNU Coding Standards.)
862 bindir='${exec_prefix}/bin'
863 sbindir='${exec_prefix}/sbin'
864 libexecdir='${exec_prefix}/libexec'
865 datarootdir='${prefix}/share'
866 datadir='${datarootdir}'
867 sysconfdir='${prefix}/etc'
868 sharedstatedir='${prefix}/com'
869 localstatedir='${prefix}/var'
870 runstatedir='${localstatedir}/run'
871 includedir='${prefix}/include'
872 oldincludedir='/usr/include'
873 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
874 infodir='${datarootdir}/info'
875 htmldir='${docdir}'
876 dvidir='${docdir}'
877 pdfdir='${docdir}'
878 psdir='${docdir}'
879 libdir='${exec_prefix}/lib'
880 localedir='${datarootdir}/locale'
881 mandir='${datarootdir}/man'
882
883 ac_prev=
884 ac_dashdash=
885 for ac_option
886 do
887   # If the previous option needs an argument, assign it.
888   if test -n "$ac_prev"; then
889     eval $ac_prev=\$ac_option
890     ac_prev=
891     continue
892   fi
893
894   case $ac_option in
895   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
896   *=)   ac_optarg= ;;
897   *)    ac_optarg=yes ;;
898   esac
899
900   # Accept the important Cygnus configure options, so we can diagnose typos.
901
902   case $ac_dashdash$ac_option in
903   --)
904     ac_dashdash=yes ;;
905
906   -bindir | --bindir | --bindi | --bind | --bin | --bi)
907     ac_prev=bindir ;;
908   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
909     bindir=$ac_optarg ;;
910
911   -build | --build | --buil | --bui | --bu)
912     ac_prev=build_alias ;;
913   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
914     build_alias=$ac_optarg ;;
915
916   -cache-file | --cache-file | --cache-fil | --cache-fi \
917   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
918     ac_prev=cache_file ;;
919   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
920   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
921     cache_file=$ac_optarg ;;
922
923   --config-cache | -C)
924     cache_file=config.cache ;;
925
926   -datadir | --datadir | --datadi | --datad)
927     ac_prev=datadir ;;
928   -datadir=* | --datadir=* | --datadi=* | --datad=*)
929     datadir=$ac_optarg ;;
930
931   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
932   | --dataroo | --dataro | --datar)
933     ac_prev=datarootdir ;;
934   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
935   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
936     datarootdir=$ac_optarg ;;
937
938   -disable-* | --disable-*)
939     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940     # Reject names that are not valid shell variable names.
941     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942       as_fn_error $? "invalid feature name: $ac_useropt"
943     ac_useropt_orig=$ac_useropt
944     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945     case $ac_user_opts in
946       *"
947 "enable_$ac_useropt"
948 "*) ;;
949       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
950          ac_unrecognized_sep=', ';;
951     esac
952     eval enable_$ac_useropt=no ;;
953
954   -docdir | --docdir | --docdi | --doc | --do)
955     ac_prev=docdir ;;
956   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
957     docdir=$ac_optarg ;;
958
959   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
960     ac_prev=dvidir ;;
961   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
962     dvidir=$ac_optarg ;;
963
964   -enable-* | --enable-*)
965     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
966     # Reject names that are not valid shell variable names.
967     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968       as_fn_error $? "invalid feature name: $ac_useropt"
969     ac_useropt_orig=$ac_useropt
970     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971     case $ac_user_opts in
972       *"
973 "enable_$ac_useropt"
974 "*) ;;
975       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
976          ac_unrecognized_sep=', ';;
977     esac
978     eval enable_$ac_useropt=\$ac_optarg ;;
979
980   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
981   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
982   | --exec | --exe | --ex)
983     ac_prev=exec_prefix ;;
984   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
985   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
986   | --exec=* | --exe=* | --ex=*)
987     exec_prefix=$ac_optarg ;;
988
989   -gas | --gas | --ga | --g)
990     # Obsolete; use --with-gas.
991     with_gas=yes ;;
992
993   -help | --help | --hel | --he | -h)
994     ac_init_help=long ;;
995   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
996     ac_init_help=recursive ;;
997   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
998     ac_init_help=short ;;
999
1000   -host | --host | --hos | --ho)
1001     ac_prev=host_alias ;;
1002   -host=* | --host=* | --hos=* | --ho=*)
1003     host_alias=$ac_optarg ;;
1004
1005   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1006     ac_prev=htmldir ;;
1007   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1008   | --ht=*)
1009     htmldir=$ac_optarg ;;
1010
1011   -includedir | --includedir | --includedi | --included | --include \
1012   | --includ | --inclu | --incl | --inc)
1013     ac_prev=includedir ;;
1014   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1015   | --includ=* | --inclu=* | --incl=* | --inc=*)
1016     includedir=$ac_optarg ;;
1017
1018   -infodir | --infodir | --infodi | --infod | --info | --inf)
1019     ac_prev=infodir ;;
1020   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1021     infodir=$ac_optarg ;;
1022
1023   -libdir | --libdir | --libdi | --libd)
1024     ac_prev=libdir ;;
1025   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1026     libdir=$ac_optarg ;;
1027
1028   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1029   | --libexe | --libex | --libe)
1030     ac_prev=libexecdir ;;
1031   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1032   | --libexe=* | --libex=* | --libe=*)
1033     libexecdir=$ac_optarg ;;
1034
1035   -localedir | --localedir | --localedi | --localed | --locale)
1036     ac_prev=localedir ;;
1037   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1038     localedir=$ac_optarg ;;
1039
1040   -localstatedir | --localstatedir | --localstatedi | --localstated \
1041   | --localstate | --localstat | --localsta | --localst | --locals)
1042     ac_prev=localstatedir ;;
1043   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1044   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1045     localstatedir=$ac_optarg ;;
1046
1047   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1048     ac_prev=mandir ;;
1049   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1050     mandir=$ac_optarg ;;
1051
1052   -nfp | --nfp | --nf)
1053     # Obsolete; use --without-fp.
1054     with_fp=no ;;
1055
1056   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1057   | --no-cr | --no-c | -n)
1058     no_create=yes ;;
1059
1060   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1061   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1062     no_recursion=yes ;;
1063
1064   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1065   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1066   | --oldin | --oldi | --old | --ol | --o)
1067     ac_prev=oldincludedir ;;
1068   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1069   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1070   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1071     oldincludedir=$ac_optarg ;;
1072
1073   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1074     ac_prev=prefix ;;
1075   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1076     prefix=$ac_optarg ;;
1077
1078   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1079   | --program-pre | --program-pr | --program-p)
1080     ac_prev=program_prefix ;;
1081   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1082   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1083     program_prefix=$ac_optarg ;;
1084
1085   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1086   | --program-suf | --program-su | --program-s)
1087     ac_prev=program_suffix ;;
1088   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1089   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1090     program_suffix=$ac_optarg ;;
1091
1092   -program-transform-name | --program-transform-name \
1093   | --program-transform-nam | --program-transform-na \
1094   | --program-transform-n | --program-transform- \
1095   | --program-transform | --program-transfor \
1096   | --program-transfo | --program-transf \
1097   | --program-trans | --program-tran \
1098   | --progr-tra | --program-tr | --program-t)
1099     ac_prev=program_transform_name ;;
1100   -program-transform-name=* | --program-transform-name=* \
1101   | --program-transform-nam=* | --program-transform-na=* \
1102   | --program-transform-n=* | --program-transform-=* \
1103   | --program-transform=* | --program-transfor=* \
1104   | --program-transfo=* | --program-transf=* \
1105   | --program-trans=* | --program-tran=* \
1106   | --progr-tra=* | --program-tr=* | --program-t=*)
1107     program_transform_name=$ac_optarg ;;
1108
1109   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1110     ac_prev=pdfdir ;;
1111   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1112     pdfdir=$ac_optarg ;;
1113
1114   -psdir | --psdir | --psdi | --psd | --ps)
1115     ac_prev=psdir ;;
1116   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1117     psdir=$ac_optarg ;;
1118
1119   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120   | -silent | --silent | --silen | --sile | --sil)
1121     silent=yes ;;
1122
1123   -runstatedir | --runstatedir | --runstatedi | --runstated \
1124   | --runstate | --runstat | --runsta | --runst | --runs \
1125   | --run | --ru | --r)
1126     ac_prev=runstatedir ;;
1127   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1128   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1129   | --run=* | --ru=* | --r=*)
1130     runstatedir=$ac_optarg ;;
1131
1132   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1133     ac_prev=sbindir ;;
1134   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1135   | --sbi=* | --sb=*)
1136     sbindir=$ac_optarg ;;
1137
1138   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1139   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1140   | --sharedst | --shareds | --shared | --share | --shar \
1141   | --sha | --sh)
1142     ac_prev=sharedstatedir ;;
1143   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1144   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1145   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1146   | --sha=* | --sh=*)
1147     sharedstatedir=$ac_optarg ;;
1148
1149   -site | --site | --sit)
1150     ac_prev=site ;;
1151   -site=* | --site=* | --sit=*)
1152     site=$ac_optarg ;;
1153
1154   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1155     ac_prev=srcdir ;;
1156   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1157     srcdir=$ac_optarg ;;
1158
1159   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1160   | --syscon | --sysco | --sysc | --sys | --sy)
1161     ac_prev=sysconfdir ;;
1162   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1163   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1164     sysconfdir=$ac_optarg ;;
1165
1166   -target | --target | --targe | --targ | --tar | --ta | --t)
1167     ac_prev=target_alias ;;
1168   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1169     target_alias=$ac_optarg ;;
1170
1171   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1172     verbose=yes ;;
1173
1174   -version | --version | --versio | --versi | --vers | -V)
1175     ac_init_version=: ;;
1176
1177   -with-* | --with-*)
1178     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1179     # Reject names that are not valid shell variable names.
1180     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181       as_fn_error $? "invalid package name: $ac_useropt"
1182     ac_useropt_orig=$ac_useropt
1183     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184     case $ac_user_opts in
1185       *"
1186 "with_$ac_useropt"
1187 "*) ;;
1188       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189          ac_unrecognized_sep=', ';;
1190     esac
1191     eval with_$ac_useropt=\$ac_optarg ;;
1192
1193   -without-* | --without-*)
1194     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195     # Reject names that are not valid shell variable names.
1196     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197       as_fn_error $? "invalid package name: $ac_useropt"
1198     ac_useropt_orig=$ac_useropt
1199     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200     case $ac_user_opts in
1201       *"
1202 "with_$ac_useropt"
1203 "*) ;;
1204       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205          ac_unrecognized_sep=', ';;
1206     esac
1207     eval with_$ac_useropt=no ;;
1208
1209   --x)
1210     # Obsolete; use --with-x.
1211     with_x=yes ;;
1212
1213   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1214   | --x-incl | --x-inc | --x-in | --x-i)
1215     ac_prev=x_includes ;;
1216   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1217   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1218     x_includes=$ac_optarg ;;
1219
1220   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1221   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1222     ac_prev=x_libraries ;;
1223   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1224   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1225     x_libraries=$ac_optarg ;;
1226
1227   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1228 Try \`$0 --help' for more information"
1229     ;;
1230
1231   *=*)
1232     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1233     # Reject names that are not valid shell variable names.
1234     case $ac_envvar in #(
1235       '' | [0-9]* | *[!_$as_cr_alnum]* )
1236       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1237     esac
1238     eval $ac_envvar=\$ac_optarg
1239     export $ac_envvar ;;
1240
1241   *)
1242     # FIXME: should be removed in autoconf 3.0.
1243     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1244     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1246     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1247     ;;
1248
1249   esac
1250 done
1251
1252 if test -n "$ac_prev"; then
1253   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1254   as_fn_error $? "missing argument to $ac_option"
1255 fi
1256
1257 if test -n "$ac_unrecognized_opts"; then
1258   case $enable_option_checking in
1259     no) ;;
1260     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1261     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1262   esac
1263 fi
1264
1265 # Check all directory arguments for consistency.
1266 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267                 datadir sysconfdir sharedstatedir localstatedir includedir \
1268                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269                 libdir localedir mandir runstatedir
1270 do
1271   eval ac_val=\$$ac_var
1272   # Remove trailing slashes.
1273   case $ac_val in
1274     */ )
1275       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276       eval $ac_var=\$ac_val;;
1277   esac
1278   # Be sure to have absolute directory names.
1279   case $ac_val in
1280     [\\/$]* | ?:[\\/]* )  continue;;
1281     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1282   esac
1283   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1284 done
1285
1286 # There might be people who depend on the old broken behavior: `$host'
1287 # used to hold the argument of --host etc.
1288 # FIXME: To remove some day.
1289 build=$build_alias
1290 host=$host_alias
1291 target=$target_alias
1292
1293 # FIXME: To remove some day.
1294 if test "x$host_alias" != x; then
1295   if test "x$build_alias" = x; then
1296     cross_compiling=maybe
1297   elif test "x$build_alias" != "x$host_alias"; then
1298     cross_compiling=yes
1299   fi
1300 fi
1301
1302 ac_tool_prefix=
1303 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304
1305 test "$silent" = yes && exec 6>/dev/null
1306
1307
1308 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309 ac_ls_di=`ls -di .` &&
1310 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311   as_fn_error $? "working directory cannot be determined"
1312 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313   as_fn_error $? "pwd does not report name of working directory"
1314
1315
1316 # Find the source files, if location was not specified.
1317 if test -z "$srcdir"; then
1318   ac_srcdir_defaulted=yes
1319   # Try the directory containing this script, then the parent directory.
1320   ac_confdir=`$as_dirname -- "$as_myself" ||
1321 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322          X"$as_myself" : 'X\(//\)[^/]' \| \
1323          X"$as_myself" : 'X\(//\)$' \| \
1324          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325 $as_echo X"$as_myself" |
1326     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327             s//\1/
1328             q
1329           }
1330           /^X\(\/\/\)[^/].*/{
1331             s//\1/
1332             q
1333           }
1334           /^X\(\/\/\)$/{
1335             s//\1/
1336             q
1337           }
1338           /^X\(\/\).*/{
1339             s//\1/
1340             q
1341           }
1342           s/.*/./; q'`
1343   srcdir=$ac_confdir
1344   if test ! -r "$srcdir/$ac_unique_file"; then
1345     srcdir=..
1346   fi
1347 else
1348   ac_srcdir_defaulted=no
1349 fi
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1353 fi
1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355 ac_abs_confdir=`(
1356         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1357         pwd)`
1358 # When building in place, set srcdir=.
1359 if test "$ac_abs_confdir" = "$ac_pwd"; then
1360   srcdir=.
1361 fi
1362 # Remove unnecessary trailing slashes from srcdir.
1363 # Double slashes in file names in object file debugging info
1364 # mess up M-x gdb in Emacs.
1365 case $srcdir in
1366 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367 esac
1368 for ac_var in $ac_precious_vars; do
1369   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1370   eval ac_env_${ac_var}_value=\$${ac_var}
1371   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1372   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373 done
1374
1375 #
1376 # Report the --help message.
1377 #
1378 if test "$ac_init_help" = "long"; then
1379   # Omit some internal or obsolete options to make the list less imposing.
1380   # This message is too long to be a string in the A/UX 3.1 sh.
1381   cat <<_ACEOF
1382 \`configure' configures ccid 1.4.33 to adapt to many kinds of systems.
1383
1384 Usage: $0 [OPTION]... [VAR=VALUE]...
1385
1386 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387 VAR=VALUE.  See below for descriptions of some of the useful variables.
1388
1389 Defaults for the options are specified in brackets.
1390
1391 Configuration:
1392   -h, --help              display this help and exit
1393       --help=short        display options specific to this package
1394       --help=recursive    display the short help of all the included packages
1395   -V, --version           display version information and exit
1396   -q, --quiet, --silent   do not print \`checking ...' messages
1397       --cache-file=FILE   cache test results in FILE [disabled]
1398   -C, --config-cache      alias for \`--cache-file=config.cache'
1399   -n, --no-create         do not create output files
1400       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1401
1402 Installation directories:
1403   --prefix=PREFIX         install architecture-independent files in PREFIX
1404                           [$ac_default_prefix]
1405   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1406                           [PREFIX]
1407
1408 By default, \`make install' will install all the files in
1409 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1410 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1411 for instance \`--prefix=\$HOME'.
1412
1413 For better control, use the options below.
1414
1415 Fine tuning of the installation directories:
1416   --bindir=DIR            user executables [EPREFIX/bin]
1417   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1418   --libexecdir=DIR        program executables [EPREFIX/libexec]
1419   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1420   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1421   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1422   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1423   --libdir=DIR            object code libraries [EPREFIX/lib]
1424   --includedir=DIR        C header files [PREFIX/include]
1425   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1426   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1427   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1428   --infodir=DIR           info documentation [DATAROOTDIR/info]
1429   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1430   --mandir=DIR            man documentation [DATAROOTDIR/man]
1431   --docdir=DIR            documentation root [DATAROOTDIR/doc/ccid]
1432   --htmldir=DIR           html documentation [DOCDIR]
1433   --dvidir=DIR            dvi documentation [DOCDIR]
1434   --pdfdir=DIR            pdf documentation [DOCDIR]
1435   --psdir=DIR             ps documentation [DOCDIR]
1436 _ACEOF
1437
1438   cat <<\_ACEOF
1439
1440 Program names:
1441   --program-prefix=PREFIX            prepend PREFIX to installed program names
1442   --program-suffix=SUFFIX            append SUFFIX to installed program names
1443   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1444
1445 System types:
1446   --build=BUILD     configure for building on BUILD [guessed]
1447   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1448 _ACEOF
1449 fi
1450
1451 if test -n "$ac_init_help"; then
1452   case $ac_init_help in
1453      short | recursive ) echo "Configuration of ccid 1.4.33:";;
1454    esac
1455   cat <<\_ACEOF
1456
1457 Optional Features:
1458   --disable-option-checking  ignore unrecognized --enable/--with options
1459   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1460   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1461   --enable-silent-rules   less verbose build output (undo: "make V=1")
1462   --disable-silent-rules  verbose build output (undo: "make V=0")
1463   --enable-maintainer-mode
1464                           enable make rules and dependencies not useful (and
1465                           sometimes confusing) to the casual installer
1466   --enable-dependency-tracking
1467                           do not reject slow dependency extractors
1468   --disable-dependency-tracking
1469                           speeds up one-time build
1470   --enable-static[=PKGS]  build static libraries [default=no]
1471   --enable-shared[=PKGS]  build shared libraries [default=yes]
1472   --enable-fast-install[=PKGS]
1473                           optimize for fast installation [default=yes]
1474   --disable-libtool-lock  avoid locking (might break parallel builds)
1475   --disable-libusb        do not use libusb
1476   --enable-composite-as-multislot
1477                           composite device are seen as multi-slots
1478   --disable-multi-thread  disable multi threading
1479   --enable-bundle=NAME    bundle directory name (default ifd-ccid.bundle)
1480   --enable-usbdropdir=DIR directory containing USB drivers (default to pcscd
1481                           config or $(prefix)/pcsc/drivers)
1482   --enable-twinserial     also compile and install the serial Twin driver
1483   --enable-ccidtwindir=DIR
1484                           directory to install the serial Twin driver (default
1485                           to pcscd config or $(prefix)/pcsc/drivers/serial)
1486   --enable-serialconfdir=dir
1487                           directory containing serial drivers (default to
1488                           pcscd config)
1489   --disable-pcsclite      do not use pcsc-lite debug support
1490   --enable-syslog         use syslog(3) instead of printf() for debug
1491                           (Yosemite 10.10)
1492   --enable-oslog          use os_log(3) instead of printf() for debug (Sierra
1493                           10.12)
1494   --disable-class         remove the CCIDCLASSDRIVER from Info.plist
1495   --enable-embedded       limit RAM and CPU ressources by disabling features
1496                           (log)
1497   --enable-zlp            enable the Zero Length Packet patch for some Gemalto
1498                           readers
1499
1500 Optional Packages:
1501   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1502   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1503   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1504                           both]
1505   --with-aix-soname=aix|svr4|both
1506                           shared library versioning (aka "SONAME") variant to
1507                           provide on AIX, [default=aix].
1508   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1509   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1510                           compiler's sysroot if not specified).
1511
1512 Some influential environment variables:
1513   CC          C compiler command
1514   CFLAGS      C compiler flags
1515   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1516               nonstandard directory <lib dir>
1517   LIBS        libraries to pass to the linker, e.g. -l<library>
1518   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1519               you have headers in a nonstandard directory <include dir>
1520   CPP         C preprocessor
1521   PKG_CONFIG  path to pkg-config utility
1522   PKG_CONFIG_PATH
1523               directories to add to pkg-config's search path
1524   PKG_CONFIG_LIBDIR
1525               path overriding pkg-config's built-in search path
1526   PCSC_CFLAGS C compiler flags for PCSC, overriding pkg-config
1527   PCSC_LIBS   linker flags for PCSC, overriding pkg-config
1528   LT_SYS_LIBRARY_PATH
1529               User-defined run-time library search path.
1530   LIBUSB_CFLAGS
1531               C compiler flags for LIBUSB, overriding pkg-config
1532   LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
1533
1534 Use these variables to override the choices made by `configure' or to help
1535 it to find libraries and programs with nonstandard names/locations.
1536
1537 Report bugs to the package provider.
1538 _ACEOF
1539 ac_status=$?
1540 fi
1541
1542 if test "$ac_init_help" = "recursive"; then
1543   # If there are subdirs, report their specific --help.
1544   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1545     test -d "$ac_dir" ||
1546       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1547       continue
1548     ac_builddir=.
1549
1550 case "$ac_dir" in
1551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 *)
1553   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1554   # A ".." for each directory in $ac_dir_suffix.
1555   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1556   case $ac_top_builddir_sub in
1557   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559   esac ;;
1560 esac
1561 ac_abs_top_builddir=$ac_pwd
1562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563 # for backward compatibility:
1564 ac_top_builddir=$ac_top_build_prefix
1565
1566 case $srcdir in
1567   .)  # We are building in place.
1568     ac_srcdir=.
1569     ac_top_srcdir=$ac_top_builddir_sub
1570     ac_abs_top_srcdir=$ac_pwd ;;
1571   [\\/]* | ?:[\\/]* )  # Absolute name.
1572     ac_srcdir=$srcdir$ac_dir_suffix;
1573     ac_top_srcdir=$srcdir
1574     ac_abs_top_srcdir=$srcdir ;;
1575   *) # Relative name.
1576     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577     ac_top_srcdir=$ac_top_build_prefix$srcdir
1578     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1579 esac
1580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1581
1582     cd "$ac_dir" || { ac_status=$?; continue; }
1583     # Check for guested configure.
1584     if test -f "$ac_srcdir/configure.gnu"; then
1585       echo &&
1586       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1587     elif test -f "$ac_srcdir/configure"; then
1588       echo &&
1589       $SHELL "$ac_srcdir/configure" --help=recursive
1590     else
1591       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1592     fi || ac_status=$?
1593     cd "$ac_pwd" || { ac_status=$?; break; }
1594   done
1595 fi
1596
1597 test -n "$ac_init_help" && exit $ac_status
1598 if $ac_init_version; then
1599   cat <<\_ACEOF
1600 ccid configure 1.4.33
1601 generated by GNU Autoconf 2.69
1602
1603 Copyright (C) 2012 Free Software Foundation, Inc.
1604 This configure script is free software; the Free Software Foundation
1605 gives unlimited permission to copy, distribute and modify it.
1606 _ACEOF
1607   exit
1608 fi
1609
1610 ## ------------------------ ##
1611 ## Autoconf initialization. ##
1612 ## ------------------------ ##
1613
1614 # ac_fn_c_try_compile LINENO
1615 # --------------------------
1616 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1617 ac_fn_c_try_compile ()
1618 {
1619   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620   rm -f conftest.$ac_objext
1621   if { { ac_try="$ac_compile"
1622 case "(($ac_try" in
1623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624   *) ac_try_echo=$ac_try;;
1625 esac
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628   (eval "$ac_compile") 2>conftest.err
1629   ac_status=$?
1630   if test -s conftest.err; then
1631     grep -v '^ *+' conftest.err >conftest.er1
1632     cat conftest.er1 >&5
1633     mv -f conftest.er1 conftest.err
1634   fi
1635   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636   test $ac_status = 0; } && {
1637          test -z "$ac_c_werror_flag" ||
1638          test ! -s conftest.err
1639        } && test -s conftest.$ac_objext; then :
1640   ac_retval=0
1641 else
1642   $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1644
1645         ac_retval=1
1646 fi
1647   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648   as_fn_set_status $ac_retval
1649
1650 } # ac_fn_c_try_compile
1651
1652 # ac_fn_c_try_cpp LINENO
1653 # ----------------------
1654 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_cpp ()
1656 {
1657   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658   if { { ac_try="$ac_cpp conftest.$ac_ext"
1659 case "(($ac_try" in
1660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661   *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1666   ac_status=$?
1667   if test -s conftest.err; then
1668     grep -v '^ *+' conftest.err >conftest.er1
1669     cat conftest.er1 >&5
1670     mv -f conftest.er1 conftest.err
1671   fi
1672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673   test $ac_status = 0; } > conftest.i && {
1674          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1675          test ! -s conftest.err
1676        }; then :
1677   ac_retval=0
1678 else
1679   $as_echo "$as_me: failed program was:" >&5
1680 sed 's/^/| /' conftest.$ac_ext >&5
1681
1682     ac_retval=1
1683 fi
1684   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685   as_fn_set_status $ac_retval
1686
1687 } # ac_fn_c_try_cpp
1688
1689 # ac_fn_c_try_link LINENO
1690 # -----------------------
1691 # Try to link conftest.$ac_ext, and return whether this succeeded.
1692 ac_fn_c_try_link ()
1693 {
1694   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695   rm -f conftest.$ac_objext conftest$ac_exeext
1696   if { { ac_try="$ac_link"
1697 case "(($ac_try" in
1698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699   *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703   (eval "$ac_link") 2>conftest.err
1704   ac_status=$?
1705   if test -s conftest.err; then
1706     grep -v '^ *+' conftest.err >conftest.er1
1707     cat conftest.er1 >&5
1708     mv -f conftest.er1 conftest.err
1709   fi
1710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711   test $ac_status = 0; } && {
1712          test -z "$ac_c_werror_flag" ||
1713          test ! -s conftest.err
1714        } && test -s conftest$ac_exeext && {
1715          test "$cross_compiling" = yes ||
1716          test -x conftest$ac_exeext
1717        }; then :
1718   ac_retval=0
1719 else
1720   $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1722
1723         ac_retval=1
1724 fi
1725   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1726   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1727   # interfere with the next link command; also delete a directory that is
1728   # left behind by Apple's compiler.  We do this before executing the actions.
1729   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731   as_fn_set_status $ac_retval
1732
1733 } # ac_fn_c_try_link
1734
1735 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1736 # -------------------------------------------------------
1737 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1738 # the include files in INCLUDES and setting the cache variable VAR
1739 # accordingly.
1740 ac_fn_c_check_header_mongrel ()
1741 {
1742   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743   if eval \${$3+:} false; then :
1744   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 $as_echo_n "checking for $2... " >&6; }
1746 if eval \${$3+:} false; then :
1747   $as_echo_n "(cached) " >&6
1748 fi
1749 eval ac_res=\$$3
1750                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751 $as_echo "$ac_res" >&6; }
1752 else
1753   # Is the header compilable?
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1755 $as_echo_n "checking $2 usability... " >&6; }
1756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757 /* end confdefs.h.  */
1758 $4
1759 #include <$2>
1760 _ACEOF
1761 if ac_fn_c_try_compile "$LINENO"; then :
1762   ac_header_compiler=yes
1763 else
1764   ac_header_compiler=no
1765 fi
1766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1768 $as_echo "$ac_header_compiler" >&6; }
1769
1770 # Is the header present?
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1772 $as_echo_n "checking $2 presence... " >&6; }
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h.  */
1775 #include <$2>
1776 _ACEOF
1777 if ac_fn_c_try_cpp "$LINENO"; then :
1778   ac_header_preproc=yes
1779 else
1780   ac_header_preproc=no
1781 fi
1782 rm -f conftest.err conftest.i conftest.$ac_ext
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1784 $as_echo "$ac_header_preproc" >&6; }
1785
1786 # So?  What about this header?
1787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1788   yes:no: )
1789     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1790 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1791     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1792 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1793     ;;
1794   no:yes:* )
1795     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1796 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1797     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1798 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1799     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1800 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1801     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1802 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1803     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1804 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1805     ;;
1806 esac
1807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if eval \${$3+:} false; then :
1810   $as_echo_n "(cached) " >&6
1811 else
1812   eval "$3=\$ac_header_compiler"
1813 fi
1814 eval ac_res=\$$3
1815                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1817 fi
1818   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819
1820 } # ac_fn_c_check_header_mongrel
1821
1822 # ac_fn_c_try_run LINENO
1823 # ----------------------
1824 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1825 # that executables *can* be run.
1826 ac_fn_c_try_run ()
1827 {
1828   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829   if { { ac_try="$ac_link"
1830 case "(($ac_try" in
1831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832   *) ac_try_echo=$ac_try;;
1833 esac
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836   (eval "$ac_link") 2>&5
1837   ac_status=$?
1838   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1840   { { case "(($ac_try" in
1841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842   *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846   (eval "$ac_try") 2>&5
1847   ac_status=$?
1848   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849   test $ac_status = 0; }; }; then :
1850   ac_retval=0
1851 else
1852   $as_echo "$as_me: program exited with status $ac_status" >&5
1853        $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1855
1856        ac_retval=$ac_status
1857 fi
1858   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1859   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860   as_fn_set_status $ac_retval
1861
1862 } # ac_fn_c_try_run
1863
1864 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1865 # -------------------------------------------------------
1866 # Tests whether HEADER exists and can be compiled using the include files in
1867 # INCLUDES, setting the cache variable VAR accordingly.
1868 ac_fn_c_check_header_compile ()
1869 {
1870   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872 $as_echo_n "checking for $2... " >&6; }
1873 if eval \${$3+:} false; then :
1874   $as_echo_n "(cached) " >&6
1875 else
1876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h.  */
1878 $4
1879 #include <$2>
1880 _ACEOF
1881 if ac_fn_c_try_compile "$LINENO"; then :
1882   eval "$3=yes"
1883 else
1884   eval "$3=no"
1885 fi
1886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1887 fi
1888 eval ac_res=\$$3
1889                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890 $as_echo "$ac_res" >&6; }
1891   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892
1893 } # ac_fn_c_check_header_compile
1894
1895 # ac_fn_c_check_func LINENO FUNC VAR
1896 # ----------------------------------
1897 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1898 ac_fn_c_check_func ()
1899 {
1900   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1902 $as_echo_n "checking for $2... " >&6; }
1903 if eval \${$3+:} false; then :
1904   $as_echo_n "(cached) " >&6
1905 else
1906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h.  */
1908 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1909    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1910 #define $2 innocuous_$2
1911
1912 /* System header to define __stub macros and hopefully few prototypes,
1913     which can conflict with char $2 (); below.
1914     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1915     <limits.h> exists even on freestanding compilers.  */
1916
1917 #ifdef __STDC__
1918 # include <limits.h>
1919 #else
1920 # include <assert.h>
1921 #endif
1922
1923 #undef $2
1924
1925 /* Override any GCC internal prototype to avoid an error.
1926    Use char because int might match the return type of a GCC
1927    builtin and then its argument prototype would still apply.  */
1928 #ifdef __cplusplus
1929 extern "C"
1930 #endif
1931 char $2 ();
1932 /* The GNU C library defines this for functions which it implements
1933     to always fail with ENOSYS.  Some functions are actually named
1934     something starting with __ and the normal name is an alias.  */
1935 #if defined __stub_$2 || defined __stub___$2
1936 choke me
1937 #endif
1938
1939 int
1940 main ()
1941 {
1942 return $2 ();
1943   ;
1944   return 0;
1945 }
1946 _ACEOF
1947 if ac_fn_c_try_link "$LINENO"; then :
1948   eval "$3=yes"
1949 else
1950   eval "$3=no"
1951 fi
1952 rm -f core conftest.err conftest.$ac_objext \
1953     conftest$ac_exeext conftest.$ac_ext
1954 fi
1955 eval ac_res=\$$3
1956                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1958   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959
1960 } # ac_fn_c_check_func
1961
1962 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1963 # -------------------------------------------
1964 # Tests whether TYPE exists after having included INCLUDES, setting cache
1965 # variable VAR accordingly.
1966 ac_fn_c_check_type ()
1967 {
1968   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1970 $as_echo_n "checking for $2... " >&6; }
1971 if eval \${$3+:} false; then :
1972   $as_echo_n "(cached) " >&6
1973 else
1974   eval "$3=no"
1975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h.  */
1977 $4
1978 int
1979 main ()
1980 {
1981 if (sizeof ($2))
1982          return 0;
1983   ;
1984   return 0;
1985 }
1986 _ACEOF
1987 if ac_fn_c_try_compile "$LINENO"; then :
1988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h.  */
1990 $4
1991 int
1992 main ()
1993 {
1994 if (sizeof (($2)))
1995             return 0;
1996   ;
1997   return 0;
1998 }
1999 _ACEOF
2000 if ac_fn_c_try_compile "$LINENO"; then :
2001
2002 else
2003   eval "$3=yes"
2004 fi
2005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 fi
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 fi
2009 eval ac_res=\$$3
2010                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011 $as_echo "$ac_res" >&6; }
2012   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013
2014 } # ac_fn_c_check_type
2015 cat >config.log <<_ACEOF
2016 This file contains any messages produced by compilers while
2017 running configure, to aid debugging if configure makes a mistake.
2018
2019 It was created by ccid $as_me 1.4.33, which was
2020 generated by GNU Autoconf 2.69.  Invocation command line was
2021
2022   $ $0 $@
2023
2024 _ACEOF
2025 exec 5>>config.log
2026 {
2027 cat <<_ASUNAME
2028 ## --------- ##
2029 ## Platform. ##
2030 ## --------- ##
2031
2032 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2033 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2034 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2035 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2036 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2037
2038 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2039 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2040
2041 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2042 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2043 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2044 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2045 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2046 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2047 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2048
2049 _ASUNAME
2050
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 for as_dir in $PATH
2053 do
2054   IFS=$as_save_IFS
2055   test -z "$as_dir" && as_dir=.
2056     $as_echo "PATH: $as_dir"
2057   done
2058 IFS=$as_save_IFS
2059
2060 } >&5
2061
2062 cat >&5 <<_ACEOF
2063
2064
2065 ## ----------- ##
2066 ## Core tests. ##
2067 ## ----------- ##
2068
2069 _ACEOF
2070
2071
2072 # Keep a trace of the command line.
2073 # Strip out --no-create and --no-recursion so they do not pile up.
2074 # Strip out --silent because we don't want to record it for future runs.
2075 # Also quote any args containing shell meta-characters.
2076 # Make two passes to allow for proper duplicate-argument suppression.
2077 ac_configure_args=
2078 ac_configure_args0=
2079 ac_configure_args1=
2080 ac_must_keep_next=false
2081 for ac_pass in 1 2
2082 do
2083   for ac_arg
2084   do
2085     case $ac_arg in
2086     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2087     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2088     | -silent | --silent | --silen | --sile | --sil)
2089       continue ;;
2090     *\'*)
2091       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2092     esac
2093     case $ac_pass in
2094     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2095     2)
2096       as_fn_append ac_configure_args1 " '$ac_arg'"
2097       if test $ac_must_keep_next = true; then
2098         ac_must_keep_next=false # Got value, back to normal.
2099       else
2100         case $ac_arg in
2101           *=* | --config-cache | -C | -disable-* | --disable-* \
2102           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2103           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2104           | -with-* | --with-* | -without-* | --without-* | --x)
2105             case "$ac_configure_args0 " in
2106               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2107             esac
2108             ;;
2109           -* ) ac_must_keep_next=true ;;
2110         esac
2111       fi
2112       as_fn_append ac_configure_args " '$ac_arg'"
2113       ;;
2114     esac
2115   done
2116 done
2117 { ac_configure_args0=; unset ac_configure_args0;}
2118 { ac_configure_args1=; unset ac_configure_args1;}
2119
2120 # When interrupted or exit'd, cleanup temporary files, and complete
2121 # config.log.  We remove comments because anyway the quotes in there
2122 # would cause problems or look ugly.
2123 # WARNING: Use '\'' to represent an apostrophe within the trap.
2124 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2125 trap 'exit_status=$?
2126   # Save into config.log some information that might help in debugging.
2127   {
2128     echo
2129
2130     $as_echo "## ---------------- ##
2131 ## Cache variables. ##
2132 ## ---------------- ##"
2133     echo
2134     # The following way of writing the cache mishandles newlines in values,
2135 (
2136   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2137     eval ac_val=\$$ac_var
2138     case $ac_val in #(
2139     *${as_nl}*)
2140       case $ac_var in #(
2141       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2142 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2143       esac
2144       case $ac_var in #(
2145       _ | IFS | as_nl) ;; #(
2146       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2147       *) { eval $ac_var=; unset $ac_var;} ;;
2148       esac ;;
2149     esac
2150   done
2151   (set) 2>&1 |
2152     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2153     *${as_nl}ac_space=\ *)
2154       sed -n \
2155         "s/'\''/'\''\\\\'\'''\''/g;
2156           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2157       ;; #(
2158     *)
2159       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2160       ;;
2161     esac |
2162     sort
2163 )
2164     echo
2165
2166     $as_echo "## ----------------- ##
2167 ## Output variables. ##
2168 ## ----------------- ##"
2169     echo
2170     for ac_var in $ac_subst_vars
2171     do
2172       eval ac_val=\$$ac_var
2173       case $ac_val in
2174       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2175       esac
2176       $as_echo "$ac_var='\''$ac_val'\''"
2177     done | sort
2178     echo
2179
2180     if test -n "$ac_subst_files"; then
2181       $as_echo "## ------------------- ##
2182 ## File substitutions. ##
2183 ## ------------------- ##"
2184       echo
2185       for ac_var in $ac_subst_files
2186       do
2187         eval ac_val=\$$ac_var
2188         case $ac_val in
2189         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2190         esac
2191         $as_echo "$ac_var='\''$ac_val'\''"
2192       done | sort
2193       echo
2194     fi
2195
2196     if test -s confdefs.h; then
2197       $as_echo "## ----------- ##
2198 ## confdefs.h. ##
2199 ## ----------- ##"
2200       echo
2201       cat confdefs.h
2202       echo
2203     fi
2204     test "$ac_signal" != 0 &&
2205       $as_echo "$as_me: caught signal $ac_signal"
2206     $as_echo "$as_me: exit $exit_status"
2207   } >&5
2208   rm -f core *.core core.conftest.* &&
2209     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2210     exit $exit_status
2211 ' 0
2212 for ac_signal in 1 2 13 15; do
2213   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2214 done
2215 ac_signal=0
2216
2217 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2218 rm -f -r conftest* confdefs.h
2219
2220 $as_echo "/* confdefs.h */" > confdefs.h
2221
2222 # Predefined preprocessor variables.
2223
2224 cat >>confdefs.h <<_ACEOF
2225 #define PACKAGE_NAME "$PACKAGE_NAME"
2226 _ACEOF
2227
2228 cat >>confdefs.h <<_ACEOF
2229 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2230 _ACEOF
2231
2232 cat >>confdefs.h <<_ACEOF
2233 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2234 _ACEOF
2235
2236 cat >>confdefs.h <<_ACEOF
2237 #define PACKAGE_STRING "$PACKAGE_STRING"
2238 _ACEOF
2239
2240 cat >>confdefs.h <<_ACEOF
2241 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2242 _ACEOF
2243
2244 cat >>confdefs.h <<_ACEOF
2245 #define PACKAGE_URL "$PACKAGE_URL"
2246 _ACEOF
2247
2248
2249 # Let the site file select an alternate cache file if it wants to.
2250 # Prefer an explicitly selected file to automatically selected ones.
2251 ac_site_file1=NONE
2252 ac_site_file2=NONE
2253 if test -n "$CONFIG_SITE"; then
2254   # We do not want a PATH search for config.site.
2255   case $CONFIG_SITE in #((
2256     -*)  ac_site_file1=./$CONFIG_SITE;;
2257     */*) ac_site_file1=$CONFIG_SITE;;
2258     *)   ac_site_file1=./$CONFIG_SITE;;
2259   esac
2260 elif test "x$prefix" != xNONE; then
2261   ac_site_file1=$prefix/share/config.site
2262   ac_site_file2=$prefix/etc/config.site
2263 else
2264   ac_site_file1=$ac_default_prefix/share/config.site
2265   ac_site_file2=$ac_default_prefix/etc/config.site
2266 fi
2267 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2268 do
2269   test "x$ac_site_file" = xNONE && continue
2270   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2271     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2272 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2273     sed 's/^/| /' "$ac_site_file" >&5
2274     . "$ac_site_file" \
2275       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2277 as_fn_error $? "failed to load site script $ac_site_file
2278 See \`config.log' for more details" "$LINENO" 5; }
2279   fi
2280 done
2281
2282 if test -r "$cache_file"; then
2283   # Some versions of bash will fail to source /dev/null (special files
2284   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2285   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2286     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2287 $as_echo "$as_me: loading cache $cache_file" >&6;}
2288     case $cache_file in
2289       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2290       *)                      . "./$cache_file";;
2291     esac
2292   fi
2293 else
2294   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2295 $as_echo "$as_me: creating cache $cache_file" >&6;}
2296   >$cache_file
2297 fi
2298
2299 # Check that the precious variables saved in the cache have kept the same
2300 # value.
2301 ac_cache_corrupted=false
2302 for ac_var in $ac_precious_vars; do
2303   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2304   eval ac_new_set=\$ac_env_${ac_var}_set
2305   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2306   eval ac_new_val=\$ac_env_${ac_var}_value
2307   case $ac_old_set,$ac_new_set in
2308     set,)
2309       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2310 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2311       ac_cache_corrupted=: ;;
2312     ,set)
2313       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2314 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2315       ac_cache_corrupted=: ;;
2316     ,);;
2317     *)
2318       if test "x$ac_old_val" != "x$ac_new_val"; then
2319         # differences in whitespace do not lead to failure.
2320         ac_old_val_w=`echo x $ac_old_val`
2321         ac_new_val_w=`echo x $ac_new_val`
2322         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2323           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2324 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2325           ac_cache_corrupted=:
2326         else
2327           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2328 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2329           eval $ac_var=\$ac_old_val
2330         fi
2331         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2332 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2333         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2334 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2335       fi;;
2336   esac
2337   # Pass precious variables to config.status.
2338   if test "$ac_new_set" = set; then
2339     case $ac_new_val in
2340     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2341     *) ac_arg=$ac_var=$ac_new_val ;;
2342     esac
2343     case " $ac_configure_args " in
2344       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2345       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2346     esac
2347   fi
2348 done
2349 if $ac_cache_corrupted; then
2350   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2352   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2353 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2354   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2355 fi
2356 ## -------------------- ##
2357 ## Main body of script. ##
2358 ## -------------------- ##
2359
2360 ac_ext=c
2361 ac_cpp='$CPP $CPPFLAGS'
2362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2365
2366
2367
2368 ac_aux_dir=
2369 for ac_dir in . "$srcdir"/.; do
2370   if test -f "$ac_dir/install-sh"; then
2371     ac_aux_dir=$ac_dir
2372     ac_install_sh="$ac_aux_dir/install-sh -c"
2373     break
2374   elif test -f "$ac_dir/install.sh"; then
2375     ac_aux_dir=$ac_dir
2376     ac_install_sh="$ac_aux_dir/install.sh -c"
2377     break
2378   elif test -f "$ac_dir/shtool"; then
2379     ac_aux_dir=$ac_dir
2380     ac_install_sh="$ac_aux_dir/shtool install -c"
2381     break
2382   fi
2383 done
2384 if test -z "$ac_aux_dir"; then
2385   as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2386 fi
2387
2388 # These three variables are undocumented and unsupported,
2389 # and are intended to be withdrawn in a future Autoconf release.
2390 # They can cause serious problems if a builder's source tree is in a directory
2391 # whose full name contains unusual characters.
2392 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2393 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2394 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2395
2396
2397 am__api_version='1.16'
2398
2399 # Find a good install program.  We prefer a C program (faster),
2400 # so one script is as good as another.  But avoid the broken or
2401 # incompatible versions:
2402 # SysV /etc/install, /usr/sbin/install
2403 # SunOS /usr/etc/install
2404 # IRIX /sbin/install
2405 # AIX /bin/install
2406 # AmigaOS /C/install, which installs bootblocks on floppy discs
2407 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2408 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2409 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2410 # OS/2's system install, which has a completely different semantic
2411 # ./install, which can be erroneously created by make from ./install.sh.
2412 # Reject install programs that cannot install multiple files.
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2414 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2415 if test -z "$INSTALL"; then
2416 if ${ac_cv_path_install+:} false; then :
2417   $as_echo_n "(cached) " >&6
2418 else
2419   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 for as_dir in $PATH
2421 do
2422   IFS=$as_save_IFS
2423   test -z "$as_dir" && as_dir=.
2424     # Account for people who put trailing slashes in PATH elements.
2425 case $as_dir/ in #((
2426   ./ | .// | /[cC]/* | \
2427   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2428   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2429   /usr/ucb/* ) ;;
2430   *)
2431     # OSF1 and SCO ODT 3.0 have their own names for install.
2432     # Don't use installbsd from OSF since it installs stuff as root
2433     # by default.
2434     for ac_prog in ginstall scoinst install; do
2435       for ac_exec_ext in '' $ac_executable_extensions; do
2436         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2437           if test $ac_prog = install &&
2438             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2439             # AIX install.  It has an incompatible calling convention.
2440             :
2441           elif test $ac_prog = install &&
2442             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2443             # program-specific install script used by HP pwplus--don't use.
2444             :
2445           else
2446             rm -rf conftest.one conftest.two conftest.dir
2447             echo one > conftest.one
2448             echo two > conftest.two
2449             mkdir conftest.dir
2450             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2451               test -s conftest.one && test -s conftest.two &&
2452               test -s conftest.dir/conftest.one &&
2453               test -s conftest.dir/conftest.two
2454             then
2455               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2456               break 3
2457             fi
2458           fi
2459         fi
2460       done
2461     done
2462     ;;
2463 esac
2464
2465   done
2466 IFS=$as_save_IFS
2467
2468 rm -rf conftest.one conftest.two conftest.dir
2469
2470 fi
2471   if test "${ac_cv_path_install+set}" = set; then
2472     INSTALL=$ac_cv_path_install
2473   else
2474     # As a last resort, use the slow shell script.  Don't cache a
2475     # value for INSTALL within a source directory, because that will
2476     # break other packages using the cache if that directory is
2477     # removed, or if the value is a relative name.
2478     INSTALL=$ac_install_sh
2479   fi
2480 fi
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2482 $as_echo "$INSTALL" >&6; }
2483
2484 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2485 # It thinks the first close brace ends the variable substitution.
2486 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2487
2488 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2489
2490 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2491
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2493 $as_echo_n "checking whether build environment is sane... " >&6; }
2494 # Reject unsafe characters in $srcdir or the absolute working directory
2495 # name.  Accept space and tab only in the latter.
2496 am_lf='
2497 '
2498 case `pwd` in
2499   *[\\\"\#\$\&\'\`$am_lf]*)
2500     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2501 esac
2502 case $srcdir in
2503   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2504     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2505 esac
2506
2507 # Do 'set' in a subshell so we don't clobber the current shell's
2508 # arguments.  Must try -L first in case configure is actually a
2509 # symlink; some systems play weird games with the mod time of symlinks
2510 # (eg FreeBSD returns the mod time of the symlink's containing
2511 # directory).
2512 if (
2513    am_has_slept=no
2514    for am_try in 1 2; do
2515      echo "timestamp, slept: $am_has_slept" > conftest.file
2516      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2517      if test "$*" = "X"; then
2518         # -L didn't work.
2519         set X `ls -t "$srcdir/configure" conftest.file`
2520      fi
2521      if test "$*" != "X $srcdir/configure conftest.file" \
2522         && test "$*" != "X conftest.file $srcdir/configure"; then
2523
2524         # If neither matched, then we have a broken ls.  This can happen
2525         # if, for instance, CONFIG_SHELL is bash and it inherits a
2526         # broken ls alias from the environment.  This has actually
2527         # happened.  Such a system could not be considered "sane".
2528         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2529   alias in your environment" "$LINENO" 5
2530      fi
2531      if test "$2" = conftest.file || test $am_try -eq 2; then
2532        break
2533      fi
2534      # Just in case.
2535      sleep 1
2536      am_has_slept=yes
2537    done
2538    test "$2" = conftest.file
2539    )
2540 then
2541    # Ok.
2542    :
2543 else
2544    as_fn_error $? "newly created file is older than distributed files!
2545 Check your system clock" "$LINENO" 5
2546 fi
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2548 $as_echo "yes" >&6; }
2549 # If we didn't sleep, we still need to ensure time stamps of config.status and
2550 # generated files are strictly newer.
2551 am_sleep_pid=
2552 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2553   ( sleep 1 ) &
2554   am_sleep_pid=$!
2555 fi
2556
2557 rm -f conftest.file
2558
2559 test "$program_prefix" != NONE &&
2560   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2561 # Use a double $ so make ignores it.
2562 test "$program_suffix" != NONE &&
2563   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2564 # Double any \ or $.
2565 # By default was `s,x,x', remove it if useless.
2566 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2567 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2568
2569 # Expand $ac_aux_dir to an absolute path.
2570 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2571
2572 if test x"${MISSING+set}" != xset; then
2573   case $am_aux_dir in
2574   *\ * | *\     *)
2575     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2576   *)
2577     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2578   esac
2579 fi
2580 # Use eval to expand $SHELL
2581 if eval "$MISSING --is-lightweight"; then
2582   am_missing_run="$MISSING "
2583 else
2584   am_missing_run=
2585   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2586 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2587 fi
2588
2589 if test x"${install_sh+set}" != xset; then
2590   case $am_aux_dir in
2591   *\ * | *\     *)
2592     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2593   *)
2594     install_sh="\${SHELL} $am_aux_dir/install-sh"
2595   esac
2596 fi
2597
2598 # Installed binaries are usually stripped using 'strip' when the user
2599 # run "make install-strip".  However 'strip' might not be the right
2600 # tool to use in cross-compilation environments, therefore Automake
2601 # will honor the 'STRIP' environment variable to overrule this program.
2602 if test "$cross_compiling" != no; then
2603   if test -n "$ac_tool_prefix"; then
2604   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2605 set dummy ${ac_tool_prefix}strip; ac_word=$2
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2607 $as_echo_n "checking for $ac_word... " >&6; }
2608 if ${ac_cv_prog_STRIP+:} false; then :
2609   $as_echo_n "(cached) " >&6
2610 else
2611   if test -n "$STRIP"; then
2612   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2613 else
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 for as_dir in $PATH
2616 do
2617   IFS=$as_save_IFS
2618   test -z "$as_dir" && as_dir=.
2619     for ac_exec_ext in '' $ac_executable_extensions; do
2620   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2621     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2623     break 2
2624   fi
2625 done
2626   done
2627 IFS=$as_save_IFS
2628
2629 fi
2630 fi
2631 STRIP=$ac_cv_prog_STRIP
2632 if test -n "$STRIP"; then
2633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2634 $as_echo "$STRIP" >&6; }
2635 else
2636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2637 $as_echo "no" >&6; }
2638 fi
2639
2640
2641 fi
2642 if test -z "$ac_cv_prog_STRIP"; then
2643   ac_ct_STRIP=$STRIP
2644   # Extract the first word of "strip", so it can be a program name with args.
2645 set dummy strip; ac_word=$2
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2647 $as_echo_n "checking for $ac_word... " >&6; }
2648 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2649   $as_echo_n "(cached) " >&6
2650 else
2651   if test -n "$ac_ct_STRIP"; then
2652   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2653 else
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2656 do
2657   IFS=$as_save_IFS
2658   test -z "$as_dir" && as_dir=.
2659     for ac_exec_ext in '' $ac_executable_extensions; do
2660   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2661     ac_cv_prog_ac_ct_STRIP="strip"
2662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2663     break 2
2664   fi
2665 done
2666   done
2667 IFS=$as_save_IFS
2668
2669 fi
2670 fi
2671 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2672 if test -n "$ac_ct_STRIP"; then
2673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2674 $as_echo "$ac_ct_STRIP" >&6; }
2675 else
2676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2677 $as_echo "no" >&6; }
2678 fi
2679
2680   if test "x$ac_ct_STRIP" = x; then
2681     STRIP=":"
2682   else
2683     case $cross_compiling:$ac_tool_warned in
2684 yes:)
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2687 ac_tool_warned=yes ;;
2688 esac
2689     STRIP=$ac_ct_STRIP
2690   fi
2691 else
2692   STRIP="$ac_cv_prog_STRIP"
2693 fi
2694
2695 fi
2696 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2697
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2699 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2700 if test -z "$MKDIR_P"; then
2701   if ${ac_cv_path_mkdir+:} false; then :
2702   $as_echo_n "(cached) " >&6
2703 else
2704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2706 do
2707   IFS=$as_save_IFS
2708   test -z "$as_dir" && as_dir=.
2709     for ac_prog in mkdir gmkdir; do
2710          for ac_exec_ext in '' $ac_executable_extensions; do
2711            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2712            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2713              'mkdir (GNU coreutils) '* | \
2714              'mkdir (coreutils) '* | \
2715              'mkdir (fileutils) '4.1*)
2716                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2717                break 3;;
2718            esac
2719          done
2720        done
2721   done
2722 IFS=$as_save_IFS
2723
2724 fi
2725
2726   test -d ./--version && rmdir ./--version
2727   if test "${ac_cv_path_mkdir+set}" = set; then
2728     MKDIR_P="$ac_cv_path_mkdir -p"
2729   else
2730     # As a last resort, use the slow shell script.  Don't cache a
2731     # value for MKDIR_P within a source directory, because that will
2732     # break other packages using the cache if that directory is
2733     # removed, or if the value is a relative name.
2734     MKDIR_P="$ac_install_sh -d"
2735   fi
2736 fi
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2738 $as_echo "$MKDIR_P" >&6; }
2739
2740 for ac_prog in gawk mawk nawk awk
2741 do
2742   # Extract the first word of "$ac_prog", so it can be a program name with args.
2743 set dummy $ac_prog; ac_word=$2
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2745 $as_echo_n "checking for $ac_word... " >&6; }
2746 if ${ac_cv_prog_AWK+:} false; then :
2747   $as_echo_n "(cached) " >&6
2748 else
2749   if test -n "$AWK"; then
2750   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2751 else
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in $PATH
2754 do
2755   IFS=$as_save_IFS
2756   test -z "$as_dir" && as_dir=.
2757     for ac_exec_ext in '' $ac_executable_extensions; do
2758   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2759     ac_cv_prog_AWK="$ac_prog"
2760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2761     break 2
2762   fi
2763 done
2764   done
2765 IFS=$as_save_IFS
2766
2767 fi
2768 fi
2769 AWK=$ac_cv_prog_AWK
2770 if test -n "$AWK"; then
2771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2772 $as_echo "$AWK" >&6; }
2773 else
2774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2775 $as_echo "no" >&6; }
2776 fi
2777
2778
2779   test -n "$AWK" && break
2780 done
2781
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2783 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2784 set x ${MAKE-make}
2785 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2786 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2787   $as_echo_n "(cached) " >&6
2788 else
2789   cat >conftest.make <<\_ACEOF
2790 SHELL = /bin/sh
2791 all:
2792         @echo '@@@%%%=$(MAKE)=@@@%%%'
2793 _ACEOF
2794 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2795 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2796   *@@@%%%=?*=@@@%%%*)
2797     eval ac_cv_prog_make_${ac_make}_set=yes;;
2798   *)
2799     eval ac_cv_prog_make_${ac_make}_set=no;;
2800 esac
2801 rm -f conftest.make
2802 fi
2803 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2805 $as_echo "yes" >&6; }
2806   SET_MAKE=
2807 else
2808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809 $as_echo "no" >&6; }
2810   SET_MAKE="MAKE=${MAKE-make}"
2811 fi
2812
2813 rm -rf .tst 2>/dev/null
2814 mkdir .tst 2>/dev/null
2815 if test -d .tst; then
2816   am__leading_dot=.
2817 else
2818   am__leading_dot=_
2819 fi
2820 rmdir .tst 2>/dev/null
2821
2822 # Check whether --enable-silent-rules was given.
2823 if test "${enable_silent_rules+set}" = set; then :
2824   enableval=$enable_silent_rules;
2825 fi
2826
2827 case $enable_silent_rules in # (((
2828   yes) AM_DEFAULT_VERBOSITY=0;;
2829    no) AM_DEFAULT_VERBOSITY=1;;
2830     *) AM_DEFAULT_VERBOSITY=1;;
2831 esac
2832 am_make=${MAKE-make}
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2834 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2835 if ${am_cv_make_support_nested_variables+:} false; then :
2836   $as_echo_n "(cached) " >&6
2837 else
2838   if $as_echo 'TRUE=$(BAR$(V))
2839 BAR0=false
2840 BAR1=true
2841 V=1
2842 am__doit:
2843         @$(TRUE)
2844 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2845   am_cv_make_support_nested_variables=yes
2846 else
2847   am_cv_make_support_nested_variables=no
2848 fi
2849 fi
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2851 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2852 if test $am_cv_make_support_nested_variables = yes; then
2853     AM_V='$(V)'
2854   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2855 else
2856   AM_V=$AM_DEFAULT_VERBOSITY
2857   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2858 fi
2859 AM_BACKSLASH='\'
2860
2861 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2862   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2863   # is not polluted with repeated "-I."
2864   am__isrc=' -I$(srcdir)'
2865   # test to see if srcdir already configured
2866   if test -f $srcdir/config.status; then
2867     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2868   fi
2869 fi
2870
2871 # test whether we have cygpath
2872 if test -z "$CYGPATH_W"; then
2873   if (cygpath --version) >/dev/null 2>/dev/null; then
2874     CYGPATH_W='cygpath -w'
2875   else
2876     CYGPATH_W=echo
2877   fi
2878 fi
2879
2880
2881 # Define the identity of the package.
2882  PACKAGE='ccid'
2883  VERSION='1.4.33'
2884
2885
2886 cat >>confdefs.h <<_ACEOF
2887 #define PACKAGE "$PACKAGE"
2888 _ACEOF
2889
2890
2891 cat >>confdefs.h <<_ACEOF
2892 #define VERSION "$VERSION"
2893 _ACEOF
2894
2895 # Some tools Automake needs.
2896
2897 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2898
2899
2900 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2901
2902
2903 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2904
2905
2906 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2907
2908
2909 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2910
2911 # For better backward compatibility.  To be removed once Automake 1.9.x
2912 # dies out for good.  For more background, see:
2913 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2914 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2915 mkdir_p='$(MKDIR_P)'
2916
2917 # We need awk for the "check" target (and possibly the TAP driver).  The
2918 # system "awk" is bad on some platforms.
2919 # Always define AMTAR for backward compatibility.  Yes, it's still used
2920 # in the wild :-(  We should find a proper way to deprecate it ...
2921 AMTAR='$${TAR-tar}'
2922
2923
2924 # We'll loop over all known methods to create a tar archive until one works.
2925 _am_tools='gnutar  pax cpio none'
2926
2927 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2928
2929
2930
2931
2932
2933
2934 # POSIX will say in a future version that running "rm -f" with no argument
2935 # is OK; and we want to be able to make that assumption in our Makefile
2936 # recipes.  So use an aggressive probe to check that the usage we want is
2937 # actually supported "in the wild" to an acceptable degree.
2938 # See automake bug#10828.
2939 # To make any issue more visible, cause the running configure to be aborted
2940 # by default if the 'rm' program in use doesn't match our expectations; the
2941 # user can still override this though.
2942 if rm -f && rm -fr && rm -rf; then : OK; else
2943   cat >&2 <<'END'
2944 Oops!
2945
2946 Your 'rm' program seems unable to run without file operands specified
2947 on the command line, even when the '-f' option is present.  This is contrary
2948 to the behaviour of most rm programs out there, and not conforming with
2949 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2950
2951 Please tell bug-automake@gnu.org about your system, including the value
2952 of your $PATH and any error possibly output before this message.  This
2953 can help us improve future automake versions.
2954
2955 END
2956   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2957     echo 'Configuration will proceed anyway, since you have set the' >&2
2958     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2959     echo >&2
2960   else
2961     cat >&2 <<'END'
2962 Aborting the configuration process, to ensure you take notice of the issue.
2963
2964 You can download and install GNU coreutils to get an 'rm' implementation
2965 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2966
2967 If you want to complete the configuration process using your problematic
2968 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2969 to "yes", and re-run configure.
2970
2971 END
2972     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2973   fi
2974 fi
2975
2976
2977
2978 # silent build by default
2979 # Check whether --enable-silent-rules was given.
2980 if test "${enable_silent_rules+set}" = set; then :
2981   enableval=$enable_silent_rules;
2982 fi
2983
2984 case $enable_silent_rules in # (((
2985   yes) AM_DEFAULT_VERBOSITY=0;;
2986    no) AM_DEFAULT_VERBOSITY=1;;
2987     *) AM_DEFAULT_VERBOSITY=0;;
2988 esac
2989 am_make=${MAKE-make}
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2991 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2992 if ${am_cv_make_support_nested_variables+:} false; then :
2993   $as_echo_n "(cached) " >&6
2994 else
2995   if $as_echo 'TRUE=$(BAR$(V))
2996 BAR0=false
2997 BAR1=true
2998 V=1
2999 am__doit:
3000         @$(TRUE)
3001 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3002   am_cv_make_support_nested_variables=yes
3003 else
3004   am_cv_make_support_nested_variables=no
3005 fi
3006 fi
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3008 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3009 if test $am_cv_make_support_nested_variables = yes; then
3010     AM_V='$(V)'
3011   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3012 else
3013   AM_V=$AM_DEFAULT_VERBOSITY
3014   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3015 fi
3016 AM_BACKSLASH='\'
3017
3018
3019 # Default install dir
3020
3021
3022 # Automake boilerplate.
3023 # Make sure we can run config.sub.
3024 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3025   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3026
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3028 $as_echo_n "checking build system type... " >&6; }
3029 if ${ac_cv_build+:} false; then :
3030   $as_echo_n "(cached) " >&6
3031 else
3032   ac_build_alias=$build_alias
3033 test "x$ac_build_alias" = x &&
3034   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3035 test "x$ac_build_alias" = x &&
3036   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3037 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3038   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3039
3040 fi
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3042 $as_echo "$ac_cv_build" >&6; }
3043 case $ac_cv_build in
3044 *-*-*) ;;
3045 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3046 esac
3047 build=$ac_cv_build
3048 ac_save_IFS=$IFS; IFS='-'
3049 set x $ac_cv_build
3050 shift
3051 build_cpu=$1
3052 build_vendor=$2
3053 shift; shift
3054 # Remember, the first character of IFS is used to create $*,
3055 # except with old shells:
3056 build_os=$*
3057 IFS=$ac_save_IFS
3058 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3059
3060
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3062 $as_echo_n "checking host system type... " >&6; }
3063 if ${ac_cv_host+:} false; then :
3064   $as_echo_n "(cached) " >&6
3065 else
3066   if test "x$host_alias" = x; then
3067   ac_cv_host=$ac_cv_build
3068 else
3069   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3070     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3071 fi
3072
3073 fi
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3075 $as_echo "$ac_cv_host" >&6; }
3076 case $ac_cv_host in
3077 *-*-*) ;;
3078 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3079 esac
3080 host=$ac_cv_host
3081 ac_save_IFS=$IFS; IFS='-'
3082 set x $ac_cv_host
3083 shift
3084 host_cpu=$1
3085 host_vendor=$2
3086 shift; shift
3087 # Remember, the first character of IFS is used to create $*,
3088 # except with old shells:
3089 host_os=$*
3090 IFS=$ac_save_IFS
3091 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3092
3093
3094
3095 # create a config.h file (Automake will add -DHAVE_CONFIG_H)
3096 ac_config_headers="$ac_config_headers config.h"
3097
3098
3099 # Options
3100
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3102 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3103     # Check whether --enable-maintainer-mode was given.
3104 if test "${enable_maintainer_mode+set}" = set; then :
3105   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3106 else
3107   USE_MAINTAINER_MODE=no
3108 fi
3109
3110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3111 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3112    if test $USE_MAINTAINER_MODE = yes; then
3113   MAINTAINER_MODE_TRUE=
3114   MAINTAINER_MODE_FALSE='#'
3115 else
3116   MAINTAINER_MODE_TRUE='#'
3117   MAINTAINER_MODE_FALSE=
3118 fi
3119
3120   MAINT=$MAINTAINER_MODE_TRUE
3121
3122
3123
3124 # Checks for programs.
3125 ac_ext=c
3126 ac_cpp='$CPP $CPPFLAGS'
3127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3130 if test -n "$ac_tool_prefix"; then
3131   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3132 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if ${ac_cv_prog_CC+:} false; then :
3136   $as_echo_n "(cached) " >&6
3137 else
3138   if test -n "$CC"; then
3139   ac_cv_prog_CC="$CC" # Let the user override the test.
3140 else
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 for as_dir in $PATH
3143 do
3144   IFS=$as_save_IFS
3145   test -z "$as_dir" && as_dir=.
3146     for ac_exec_ext in '' $ac_executable_extensions; do
3147   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3148     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3150     break 2
3151   fi
3152 done
3153   done
3154 IFS=$as_save_IFS
3155
3156 fi
3157 fi
3158 CC=$ac_cv_prog_CC
3159 if test -n "$CC"; then
3160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3161 $as_echo "$CC" >&6; }
3162 else
3163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3165 fi
3166
3167
3168 fi
3169 if test -z "$ac_cv_prog_CC"; then
3170   ac_ct_CC=$CC
3171   # Extract the first word of "gcc", so it can be a program name with args.
3172 set dummy gcc; ac_word=$2
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174 $as_echo_n "checking for $ac_word... " >&6; }
3175 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3176   $as_echo_n "(cached) " >&6
3177 else
3178   if test -n "$ac_ct_CC"; then
3179   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3180 else
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH
3183 do
3184   IFS=$as_save_IFS
3185   test -z "$as_dir" && as_dir=.
3186     for ac_exec_ext in '' $ac_executable_extensions; do
3187   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188     ac_cv_prog_ac_ct_CC="gcc"
3189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190     break 2
3191   fi
3192 done
3193   done
3194 IFS=$as_save_IFS
3195
3196 fi
3197 fi
3198 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3199 if test -n "$ac_ct_CC"; then
3200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3201 $as_echo "$ac_ct_CC" >&6; }
3202 else
3203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3205 fi
3206
3207   if test "x$ac_ct_CC" = x; then
3208     CC=""
3209   else
3210     case $cross_compiling:$ac_tool_warned in
3211 yes:)
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3214 ac_tool_warned=yes ;;
3215 esac
3216     CC=$ac_ct_CC
3217   fi
3218 else
3219   CC="$ac_cv_prog_CC"
3220 fi
3221
3222 if test -z "$CC"; then
3223           if test -n "$ac_tool_prefix"; then
3224     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3225 set dummy ${ac_tool_prefix}cc; ac_word=$2
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227 $as_echo_n "checking for $ac_word... " >&6; }
3228 if ${ac_cv_prog_CC+:} false; then :
3229   $as_echo_n "(cached) " >&6
3230 else
3231   if test -n "$CC"; then
3232   ac_cv_prog_CC="$CC" # Let the user override the test.
3233 else
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 for as_dir in $PATH
3236 do
3237   IFS=$as_save_IFS
3238   test -z "$as_dir" && as_dir=.
3239     for ac_exec_ext in '' $ac_executable_extensions; do
3240   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241     ac_cv_prog_CC="${ac_tool_prefix}cc"
3242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3243     break 2
3244   fi
3245 done
3246   done
3247 IFS=$as_save_IFS
3248
3249 fi
3250 fi
3251 CC=$ac_cv_prog_CC
3252 if test -n "$CC"; then
3253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3254 $as_echo "$CC" >&6; }
3255 else
3256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3258 fi
3259
3260
3261   fi
3262 fi
3263 if test -z "$CC"; then
3264   # Extract the first word of "cc", so it can be a program name with args.
3265 set dummy cc; ac_word=$2
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267 $as_echo_n "checking for $ac_word... " >&6; }
3268 if ${ac_cv_prog_CC+:} false; then :
3269   $as_echo_n "(cached) " >&6
3270 else
3271   if test -n "$CC"; then
3272   ac_cv_prog_CC="$CC" # Let the user override the test.
3273 else
3274   ac_prog_rejected=no
3275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276 for as_dir in $PATH
3277 do
3278   IFS=$as_save_IFS
3279   test -z "$as_dir" && as_dir=.
3280     for ac_exec_ext in '' $ac_executable_extensions; do
3281   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3282     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3283        ac_prog_rejected=yes
3284        continue
3285      fi
3286     ac_cv_prog_CC="cc"
3287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288     break 2
3289   fi
3290 done
3291   done
3292 IFS=$as_save_IFS
3293
3294 if test $ac_prog_rejected = yes; then
3295   # We found a bogon in the path, so make sure we never use it.
3296   set dummy $ac_cv_prog_CC
3297   shift
3298   if test $# != 0; then
3299     # We chose a different compiler from the bogus one.
3300     # However, it has the same basename, so the bogon will be chosen
3301     # first if we set CC to just the basename; use the full file name.
3302     shift
3303     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3304   fi
3305 fi
3306 fi
3307 fi
3308 CC=$ac_cv_prog_CC
3309 if test -n "$CC"; then
3310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3311 $as_echo "$CC" >&6; }
3312 else
3313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3315 fi
3316
3317
3318 fi
3319 if test -z "$CC"; then
3320   if test -n "$ac_tool_prefix"; then
3321   for ac_prog in cl.exe
3322   do
3323     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3324 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3326 $as_echo_n "checking for $ac_word... " >&6; }
3327 if ${ac_cv_prog_CC+:} false; then :
3328   $as_echo_n "(cached) " >&6
3329 else
3330   if test -n "$CC"; then
3331   ac_cv_prog_CC="$CC" # Let the user override the test.
3332 else
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 for as_dir in $PATH
3335 do
3336   IFS=$as_save_IFS
3337   test -z "$as_dir" && as_dir=.
3338     for ac_exec_ext in '' $ac_executable_extensions; do
3339   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3340     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3342     break 2
3343   fi
3344 done
3345   done
3346 IFS=$as_save_IFS
3347
3348 fi
3349 fi
3350 CC=$ac_cv_prog_CC
3351 if test -n "$CC"; then
3352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3353 $as_echo "$CC" >&6; }
3354 else
3355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356 $as_echo "no" >&6; }
3357 fi
3358
3359
3360     test -n "$CC" && break
3361   done
3362 fi
3363 if test -z "$CC"; then
3364   ac_ct_CC=$CC
3365   for ac_prog in cl.exe
3366 do
3367   # Extract the first word of "$ac_prog", so it can be a program name with args.
3368 set dummy $ac_prog; ac_word=$2
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 $as_echo_n "checking for $ac_word... " >&6; }
3371 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3372   $as_echo_n "(cached) " >&6
3373 else
3374   if test -n "$ac_ct_CC"; then
3375   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3376 else
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH
3379 do
3380   IFS=$as_save_IFS
3381   test -z "$as_dir" && as_dir=.
3382     for ac_exec_ext in '' $ac_executable_extensions; do
3383   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3384     ac_cv_prog_ac_ct_CC="$ac_prog"
3385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3386     break 2
3387   fi
3388 done
3389   done
3390 IFS=$as_save_IFS
3391
3392 fi
3393 fi
3394 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3395 if test -n "$ac_ct_CC"; then
3396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3397 $as_echo "$ac_ct_CC" >&6; }
3398 else
3399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400 $as_echo "no" >&6; }
3401 fi
3402
3403
3404   test -n "$ac_ct_CC" && break
3405 done
3406
3407   if test "x$ac_ct_CC" = x; then
3408     CC=""
3409   else
3410     case $cross_compiling:$ac_tool_warned in
3411 yes:)
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3414 ac_tool_warned=yes ;;
3415 esac
3416     CC=$ac_ct_CC
3417   fi
3418 fi
3419
3420 fi
3421
3422
3423 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3425 as_fn_error $? "no acceptable C compiler found in \$PATH
3426 See \`config.log' for more details" "$LINENO" 5; }
3427
3428 # Provide some information about the compiler.
3429 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3430 set X $ac_compile
3431 ac_compiler=$2
3432 for ac_option in --version -v -V -qversion; do
3433   { { ac_try="$ac_compiler $ac_option >&5"
3434 case "(($ac_try" in
3435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436   *) ac_try_echo=$ac_try;;
3437 esac
3438 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3439 $as_echo "$ac_try_echo"; } >&5
3440   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3441   ac_status=$?
3442   if test -s conftest.err; then
3443     sed '10a\
3444 ... rest of stderr output deleted ...
3445          10q' conftest.err >conftest.er1
3446     cat conftest.er1 >&5
3447   fi
3448   rm -f conftest.er1 conftest.err
3449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3450   test $ac_status = 0; }
3451 done
3452
3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454 /* end confdefs.h.  */
3455
3456 int
3457 main ()
3458 {
3459
3460   ;
3461   return 0;
3462 }
3463 _ACEOF
3464 ac_clean_files_save=$ac_clean_files
3465 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3466 # Try to create an executable without -o first, disregard a.out.
3467 # It will help us diagnose broken compilers, and finding out an intuition
3468 # of exeext.
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3470 $as_echo_n "checking whether the C compiler works... " >&6; }
3471 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3472
3473 # The possible output files:
3474 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3475
3476 ac_rmfiles=
3477 for ac_file in $ac_files
3478 do
3479   case $ac_file in
3480     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3481     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3482   esac
3483 done
3484 rm -f $ac_rmfiles
3485
3486 if { { ac_try="$ac_link_default"
3487 case "(($ac_try" in
3488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489   *) ac_try_echo=$ac_try;;
3490 esac
3491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3492 $as_echo "$ac_try_echo"; } >&5
3493   (eval "$ac_link_default") 2>&5
3494   ac_status=$?
3495   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3496   test $ac_status = 0; }; then :
3497   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3498 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3499 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3500 # so that the user can short-circuit this test for compilers unknown to
3501 # Autoconf.
3502 for ac_file in $ac_files ''
3503 do
3504   test -f "$ac_file" || continue
3505   case $ac_file in
3506     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3507         ;;
3508     [ab].out )
3509         # We found the default executable, but exeext='' is most
3510         # certainly right.
3511         break;;
3512     *.* )
3513         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3514         then :; else
3515            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3516         fi
3517         # We set ac_cv_exeext here because the later test for it is not
3518         # safe: cross compilers may not add the suffix if given an `-o'
3519         # argument, so we may need to know it at that point already.
3520         # Even if this section looks crufty: it has the advantage of
3521         # actually working.
3522         break;;
3523     * )
3524         break;;
3525   esac
3526 done
3527 test "$ac_cv_exeext" = no && ac_cv_exeext=
3528
3529 else
3530   ac_file=''
3531 fi
3532 if test -z "$ac_file"; then :
3533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534 $as_echo "no" >&6; }
3535 $as_echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3537
3538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3540 as_fn_error 77 "C compiler cannot create executables
3541 See \`config.log' for more details" "$LINENO" 5; }
3542 else
3543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3544 $as_echo "yes" >&6; }
3545 fi
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3547 $as_echo_n "checking for C compiler default output file name... " >&6; }
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3549 $as_echo "$ac_file" >&6; }
3550 ac_exeext=$ac_cv_exeext
3551
3552 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3553 ac_clean_files=$ac_clean_files_save
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3555 $as_echo_n "checking for suffix of executables... " >&6; }
3556 if { { ac_try="$ac_link"
3557 case "(($ac_try" in
3558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559   *) ac_try_echo=$ac_try;;
3560 esac
3561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3562 $as_echo "$ac_try_echo"; } >&5
3563   (eval "$ac_link") 2>&5
3564   ac_status=$?
3565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3566   test $ac_status = 0; }; then :
3567   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3568 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3569 # work properly (i.e., refer to `conftest.exe'), while it won't with
3570 # `rm'.
3571 for ac_file in conftest.exe conftest conftest.*; do
3572   test -f "$ac_file" || continue
3573   case $ac_file in
3574     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3575     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3576           break;;
3577     * ) break;;
3578   esac
3579 done
3580 else
3581   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3583 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3584 See \`config.log' for more details" "$LINENO" 5; }
3585 fi
3586 rm -f conftest conftest$ac_cv_exeext
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3588 $as_echo "$ac_cv_exeext" >&6; }
3589
3590 rm -f conftest.$ac_ext
3591 EXEEXT=$ac_cv_exeext
3592 ac_exeext=$EXEEXT
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h.  */
3595 #include <stdio.h>
3596 int
3597 main ()
3598 {
3599 FILE *f = fopen ("conftest.out", "w");
3600  return ferror (f) || fclose (f) != 0;
3601
3602   ;
3603   return 0;
3604 }
3605 _ACEOF
3606 ac_clean_files="$ac_clean_files conftest.out"
3607 # Check that the compiler produces executables we can run.  If not, either
3608 # the compiler is broken, or we cross compile.
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3610 $as_echo_n "checking whether we are cross compiling... " >&6; }
3611 if test "$cross_compiling" != yes; then
3612   { { ac_try="$ac_link"
3613 case "(($ac_try" in
3614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615   *) ac_try_echo=$ac_try;;
3616 esac
3617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3618 $as_echo "$ac_try_echo"; } >&5
3619   (eval "$ac_link") 2>&5
3620   ac_status=$?
3621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622   test $ac_status = 0; }
3623   if { ac_try='./conftest$ac_cv_exeext'
3624   { { case "(($ac_try" in
3625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626   *) ac_try_echo=$ac_try;;
3627 esac
3628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3629 $as_echo "$ac_try_echo"; } >&5
3630   (eval "$ac_try") 2>&5
3631   ac_status=$?
3632   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3633   test $ac_status = 0; }; }; then
3634     cross_compiling=no
3635   else
3636     if test "$cross_compiling" = maybe; then
3637         cross_compiling=yes
3638     else
3639         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3641 as_fn_error $? "cannot run C compiled programs.
3642 If you meant to cross compile, use \`--host'.
3643 See \`config.log' for more details" "$LINENO" 5; }
3644     fi
3645   fi
3646 fi
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3648 $as_echo "$cross_compiling" >&6; }
3649
3650 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3651 ac_clean_files=$ac_clean_files_save
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3653 $as_echo_n "checking for suffix of object files... " >&6; }
3654 if ${ac_cv_objext+:} false; then :
3655   $as_echo_n "(cached) " >&6
3656 else
3657   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658 /* end confdefs.h.  */
3659
3660 int
3661 main ()
3662 {
3663
3664   ;
3665   return 0;
3666 }
3667 _ACEOF
3668 rm -f conftest.o conftest.obj
3669 if { { ac_try="$ac_compile"
3670 case "(($ac_try" in
3671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672   *) ac_try_echo=$ac_try;;
3673 esac
3674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3675 $as_echo "$ac_try_echo"; } >&5
3676   (eval "$ac_compile") 2>&5
3677   ac_status=$?
3678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3679   test $ac_status = 0; }; then :
3680   for ac_file in conftest.o conftest.obj conftest.*; do
3681   test -f "$ac_file" || continue;
3682   case $ac_file in
3683     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3684     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3685        break;;
3686   esac
3687 done
3688 else
3689   $as_echo "$as_me: failed program was:" >&5
3690 sed 's/^/| /' conftest.$ac_ext >&5
3691
3692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3694 as_fn_error $? "cannot compute suffix of object files: cannot compile
3695 See \`config.log' for more details" "$LINENO" 5; }
3696 fi
3697 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3698 fi
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3700 $as_echo "$ac_cv_objext" >&6; }
3701 OBJEXT=$ac_cv_objext
3702 ac_objext=$OBJEXT
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3704 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3705 if ${ac_cv_c_compiler_gnu+:} false; then :
3706   $as_echo_n "(cached) " >&6
3707 else
3708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h.  */
3710
3711 int
3712 main ()
3713 {
3714 #ifndef __GNUC__
3715        choke me
3716 #endif
3717
3718   ;
3719   return 0;
3720 }
3721 _ACEOF
3722 if ac_fn_c_try_compile "$LINENO"; then :
3723   ac_compiler_gnu=yes
3724 else
3725   ac_compiler_gnu=no
3726 fi
3727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3729
3730 fi
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3732 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3733 if test $ac_compiler_gnu = yes; then
3734   GCC=yes
3735 else
3736   GCC=
3737 fi
3738 ac_test_CFLAGS=${CFLAGS+set}
3739 ac_save_CFLAGS=$CFLAGS
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3741 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3742 if ${ac_cv_prog_cc_g+:} false; then :
3743   $as_echo_n "(cached) " >&6
3744 else
3745   ac_save_c_werror_flag=$ac_c_werror_flag
3746    ac_c_werror_flag=yes
3747    ac_cv_prog_cc_g=no
3748    CFLAGS="-g"
3749    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h.  */
3751
3752 int
3753 main ()
3754 {
3755
3756   ;
3757   return 0;
3758 }
3759 _ACEOF
3760 if ac_fn_c_try_compile "$LINENO"; then :
3761   ac_cv_prog_cc_g=yes
3762 else
3763   CFLAGS=""
3764       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h.  */
3766
3767 int
3768 main ()
3769 {
3770
3771   ;
3772   return 0;
3773 }
3774 _ACEOF
3775 if ac_fn_c_try_compile "$LINENO"; then :
3776
3777 else
3778   ac_c_werror_flag=$ac_save_c_werror_flag
3779          CFLAGS="-g"
3780          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h.  */
3782
3783 int
3784 main ()
3785 {
3786
3787   ;
3788   return 0;
3789 }
3790 _ACEOF
3791 if ac_fn_c_try_compile "$LINENO"; then :
3792   ac_cv_prog_cc_g=yes
3793 fi
3794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3795 fi
3796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3797 fi
3798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3799    ac_c_werror_flag=$ac_save_c_werror_flag
3800 fi
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3802 $as_echo "$ac_cv_prog_cc_g" >&6; }
3803 if test "$ac_test_CFLAGS" = set; then
3804   CFLAGS=$ac_save_CFLAGS
3805 elif test $ac_cv_prog_cc_g = yes; then
3806   if test "$GCC" = yes; then
3807     CFLAGS="-g -O2"
3808   else
3809     CFLAGS="-g"
3810   fi
3811 else
3812   if test "$GCC" = yes; then
3813     CFLAGS="-O2"
3814   else
3815     CFLAGS=
3816   fi
3817 fi
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3819 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3820 if ${ac_cv_prog_cc_c89+:} false; then :
3821   $as_echo_n "(cached) " >&6
3822 else
3823   ac_cv_prog_cc_c89=no
3824 ac_save_CC=$CC
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h.  */
3827 #include <stdarg.h>
3828 #include <stdio.h>
3829 struct stat;
3830 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3831 struct buf { int x; };
3832 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3833 static char *e (p, i)
3834      char **p;
3835      int i;
3836 {
3837   return p[i];
3838 }
3839 static char *f (char * (*g) (char **, int), char **p, ...)
3840 {
3841   char *s;
3842   va_list v;
3843   va_start (v,p);
3844   s = g (p, va_arg (v,int));
3845   va_end (v);
3846   return s;
3847 }
3848
3849 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3850    function prototypes and stuff, but not '\xHH' hex character constants.
3851    These don't provoke an error unfortunately, instead are silently treated
3852    as 'x'.  The following induces an error, until -std is added to get
3853    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3854    array size at least.  It's necessary to write '\x00'==0 to get something
3855    that's true only with -std.  */
3856 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3857
3858 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3859    inside strings and character constants.  */
3860 #define FOO(x) 'x'
3861 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3862
3863 int test (int i, double x);
3864 struct s1 {int (*f) (int a);};
3865 struct s2 {int (*f) (double a);};
3866 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3867 int argc;
3868 char **argv;
3869 int
3870 main ()
3871 {
3872 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3873   ;
3874   return 0;
3875 }
3876 _ACEOF
3877 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3878         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3879 do
3880   CC="$ac_save_CC $ac_arg"
3881   if ac_fn_c_try_compile "$LINENO"; then :
3882   ac_cv_prog_cc_c89=$ac_arg
3883 fi
3884 rm -f core conftest.err conftest.$ac_objext
3885   test "x$ac_cv_prog_cc_c89" != "xno" && break
3886 done
3887 rm -f conftest.$ac_ext
3888 CC=$ac_save_CC
3889
3890 fi
3891 # AC_CACHE_VAL
3892 case "x$ac_cv_prog_cc_c89" in
3893   x)
3894     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3895 $as_echo "none needed" >&6; } ;;
3896   xno)
3897     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3898 $as_echo "unsupported" >&6; } ;;
3899   *)
3900     CC="$CC $ac_cv_prog_cc_c89"
3901     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3902 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3903 esac
3904 if test "x$ac_cv_prog_cc_c89" != xno; then :
3905
3906 fi
3907
3908 ac_ext=c
3909 ac_cpp='$CPP $CPPFLAGS'
3910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3913
3914 ac_ext=c
3915 ac_cpp='$CPP $CPPFLAGS'
3916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3920 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3921 if ${am_cv_prog_cc_c_o+:} false; then :
3922   $as_echo_n "(cached) " >&6
3923 else
3924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h.  */
3926
3927 int
3928 main ()
3929 {
3930
3931   ;
3932   return 0;
3933 }
3934 _ACEOF
3935   # Make sure it works both with $CC and with simple cc.
3936   # Following AC_PROG_CC_C_O, we do the test twice because some
3937   # compilers refuse to overwrite an existing .o file with -o,
3938   # though they will create one.
3939   am_cv_prog_cc_c_o=yes
3940   for am_i in 1 2; do
3941     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3942    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3943    ac_status=$?
3944    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945    (exit $ac_status); } \
3946          && test -f conftest2.$ac_objext; then
3947       : OK
3948     else
3949       am_cv_prog_cc_c_o=no
3950       break
3951     fi
3952   done
3953   rm -f core conftest*
3954   unset am_i
3955 fi
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3957 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3958 if test "$am_cv_prog_cc_c_o" != yes; then
3959    # Losing compiler, so override with the script.
3960    # FIXME: It is wrong to rewrite CC.
3961    # But if we don't then we get into trouble of one sort or another.
3962    # A longer-term fix would be to have automake use am__CC in this case,
3963    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3964    CC="$am_aux_dir/compile $CC"
3965 fi
3966 ac_ext=c
3967 ac_cpp='$CPP $CPPFLAGS'
3968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3971
3972 DEPDIR="${am__leading_dot}deps"
3973
3974 ac_config_commands="$ac_config_commands depfiles"
3975
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3977 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3978 cat > confinc.mk << 'END'
3979 am__doit:
3980         @echo this is the am__doit target >confinc.out
3981 .PHONY: am__doit
3982 END
3983 am__include="#"
3984 am__quote=
3985 # BSD make does it like this.
3986 echo '.include "confinc.mk" # ignored' > confmf.BSD
3987 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3988 echo 'include confinc.mk # ignored' > confmf.GNU
3989 _am_result=no
3990 for s in GNU BSD; do
3991   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3992    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3993    ac_status=$?
3994    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995    (exit $ac_status); }
3996   case $?:`cat confinc.out 2>/dev/null` in #(
3997   '0:this is the am__doit target') :
3998     case $s in #(
3999   BSD) :
4000     am__include='.include' am__quote='"' ;; #(
4001   *) :
4002     am__include='include' am__quote='' ;;
4003 esac ;; #(
4004   *) :
4005      ;;
4006 esac
4007   if test "$am__include" != "#"; then
4008     _am_result="yes ($s style)"
4009     break
4010   fi
4011 done
4012 rm -f confinc.* confmf.*
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4014 $as_echo "${_am_result}" >&6; }
4015
4016 # Check whether --enable-dependency-tracking was given.
4017 if test "${enable_dependency_tracking+set}" = set; then :
4018   enableval=$enable_dependency_tracking;
4019 fi
4020
4021 if test "x$enable_dependency_tracking" != xno; then
4022   am_depcomp="$ac_aux_dir/depcomp"
4023   AMDEPBACKSLASH='\'
4024   am__nodep='_no'
4025 fi
4026  if test "x$enable_dependency_tracking" != xno; then
4027   AMDEP_TRUE=
4028   AMDEP_FALSE='#'
4029 else
4030   AMDEP_TRUE='#'
4031   AMDEP_FALSE=
4032 fi
4033
4034
4035
4036 depcc="$CC"   am_compiler_list=
4037
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4039 $as_echo_n "checking dependency style of $depcc... " >&6; }
4040 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4041   $as_echo_n "(cached) " >&6
4042 else
4043   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4044   # We make a subdir and do the tests there.  Otherwise we can end up
4045   # making bogus files that we don't know about and never remove.  For
4046   # instance it was reported that on HP-UX the gcc test will end up
4047   # making a dummy file named 'D' -- because '-MD' means "put the output
4048   # in D".
4049   rm -rf conftest.dir
4050   mkdir conftest.dir
4051   # Copy depcomp to subdir because otherwise we won't find it if we're
4052   # using a relative directory.
4053   cp "$am_depcomp" conftest.dir
4054   cd conftest.dir
4055   # We will build objects and dependencies in a subdirectory because
4056   # it helps to detect inapplicable dependency modes.  For instance
4057   # both Tru64's cc and ICC support -MD to output dependencies as a
4058   # side effect of compilation, but ICC will put the dependencies in
4059   # the current directory while Tru64 will put them in the object
4060   # directory.
4061   mkdir sub
4062
4063   am_cv_CC_dependencies_compiler_type=none
4064   if test "$am_compiler_list" = ""; then
4065      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4066   fi
4067   am__universal=false
4068   case " $depcc " in #(
4069      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4070      esac
4071
4072   for depmode in $am_compiler_list; do
4073     # Setup a source with many dependencies, because some compilers
4074     # like to wrap large dependency lists on column 80 (with \), and
4075     # we should not choose a depcomp mode which is confused by this.
4076     #
4077     # We need to recreate these files for each test, as the compiler may
4078     # overwrite some of them when testing with obscure command lines.
4079     # This happens at least with the AIX C compiler.
4080     : > sub/conftest.c
4081     for i in 1 2 3 4 5 6; do
4082       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4083       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4084       # Solaris 10 /bin/sh.
4085       echo '/* dummy */' > sub/conftst$i.h
4086     done
4087     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4088
4089     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4090     # mode.  It turns out that the SunPro C++ compiler does not properly
4091     # handle '-M -o', and we need to detect this.  Also, some Intel
4092     # versions had trouble with output in subdirs.
4093     am__obj=sub/conftest.${OBJEXT-o}
4094     am__minus_obj="-o $am__obj"
4095     case $depmode in
4096     gcc)
4097       # This depmode causes a compiler race in universal mode.
4098       test "$am__universal" = false || continue
4099       ;;
4100     nosideeffect)
4101       # After this tag, mechanisms are not by side-effect, so they'll
4102       # only be used when explicitly requested.
4103       if test "x$enable_dependency_tracking" = xyes; then
4104         continue
4105       else
4106         break
4107       fi
4108       ;;
4109     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4110       # This compiler won't grok '-c -o', but also, the minuso test has
4111       # not run yet.  These depmodes are late enough in the game, and
4112       # so weak that their functioning should not be impacted.
4113       am__obj=conftest.${OBJEXT-o}
4114       am__minus_obj=
4115       ;;
4116     none) break ;;
4117     esac
4118     if depmode=$depmode \
4119        source=sub/conftest.c object=$am__obj \
4120        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4121        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4122          >/dev/null 2>conftest.err &&
4123        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4124        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4125        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4126        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4127       # icc doesn't choke on unknown options, it will just issue warnings
4128       # or remarks (even with -Werror).  So we grep stderr for any message
4129       # that says an option was ignored or not supported.
4130       # When given -MP, icc 7.0 and 7.1 complain thusly:
4131       #   icc: Command line warning: ignoring option '-M'; no argument required
4132       # The diagnosis changed in icc 8.0:
4133       #   icc: Command line remark: option '-MP' not supported
4134       if (grep 'ignoring option' conftest.err ||
4135           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4136         am_cv_CC_dependencies_compiler_type=$depmode
4137         break
4138       fi
4139     fi
4140   done
4141
4142   cd ..
4143   rm -rf conftest.dir
4144 else
4145   am_cv_CC_dependencies_compiler_type=none
4146 fi
4147
4148 fi
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4150 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4151 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4152
4153  if
4154   test "x$enable_dependency_tracking" != xno \
4155   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4156   am__fastdepCC_TRUE=
4157   am__fastdepCC_FALSE='#'
4158 else
4159   am__fastdepCC_TRUE='#'
4160   am__fastdepCC_FALSE=
4161 fi
4162
4163
4164
4165 ac_ext=c
4166 ac_cpp='$CPP $CPPFLAGS'
4167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4171 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4172 # On Suns, sometimes $CPP names a directory.
4173 if test -n "$CPP" && test -d "$CPP"; then
4174   CPP=
4175 fi
4176 if test -z "$CPP"; then
4177   if ${ac_cv_prog_CPP+:} false; then :
4178   $as_echo_n "(cached) " >&6
4179 else
4180       # Double quotes because CPP needs to be expanded
4181     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4182     do
4183       ac_preproc_ok=false
4184 for ac_c_preproc_warn_flag in '' yes
4185 do
4186   # Use a header file that comes with gcc, so configuring glibc
4187   # with a fresh cross-compiler works.
4188   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4189   # <limits.h> exists even on freestanding compilers.
4190   # On the NeXT, cc -E runs the code through the compiler's parser,
4191   # not just through cpp. "Syntax error" is here to catch this case.
4192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h.  */
4194 #ifdef __STDC__
4195 # include <limits.h>
4196 #else
4197 # include <assert.h>
4198 #endif
4199                      Syntax error
4200 _ACEOF
4201 if ac_fn_c_try_cpp "$LINENO"; then :
4202
4203 else
4204   # Broken: fails on valid input.
4205 continue
4206 fi
4207 rm -f conftest.err conftest.i conftest.$ac_ext
4208
4209   # OK, works on sane cases.  Now check whether nonexistent headers
4210   # can be detected and how.
4211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212 /* end confdefs.h.  */
4213 #include <ac_nonexistent.h>
4214 _ACEOF
4215 if ac_fn_c_try_cpp "$LINENO"; then :
4216   # Broken: success on invalid input.
4217 continue
4218 else
4219   # Passes both tests.
4220 ac_preproc_ok=:
4221 break
4222 fi
4223 rm -f conftest.err conftest.i conftest.$ac_ext
4224
4225 done
4226 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4227 rm -f conftest.i conftest.err conftest.$ac_ext
4228 if $ac_preproc_ok; then :
4229   break
4230 fi
4231
4232     done
4233     ac_cv_prog_CPP=$CPP
4234
4235 fi
4236   CPP=$ac_cv_prog_CPP
4237 else
4238   ac_cv_prog_CPP=$CPP
4239 fi
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4241 $as_echo "$CPP" >&6; }
4242 ac_preproc_ok=false
4243 for ac_c_preproc_warn_flag in '' yes
4244 do
4245   # Use a header file that comes with gcc, so configuring glibc
4246   # with a fresh cross-compiler works.
4247   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4248   # <limits.h> exists even on freestanding compilers.
4249   # On the NeXT, cc -E runs the code through the compiler's parser,
4250   # not just through cpp. "Syntax error" is here to catch this case.
4251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h.  */
4253 #ifdef __STDC__
4254 # include <limits.h>
4255 #else
4256 # include <assert.h>
4257 #endif
4258                      Syntax error
4259 _ACEOF
4260 if ac_fn_c_try_cpp "$LINENO"; then :
4261
4262 else
4263   # Broken: fails on valid input.
4264 continue
4265 fi
4266 rm -f conftest.err conftest.i conftest.$ac_ext
4267
4268   # OK, works on sane cases.  Now check whether nonexistent headers
4269   # can be detected and how.
4270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h.  */
4272 #include <ac_nonexistent.h>
4273 _ACEOF
4274 if ac_fn_c_try_cpp "$LINENO"; then :
4275   # Broken: success on invalid input.
4276 continue
4277 else
4278   # Passes both tests.
4279 ac_preproc_ok=:
4280 break
4281 fi
4282 rm -f conftest.err conftest.i conftest.$ac_ext
4283
4284 done
4285 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4286 rm -f conftest.i conftest.err conftest.$ac_ext
4287 if $ac_preproc_ok; then :
4288
4289 else
4290   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4292 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4293 See \`config.log' for more details" "$LINENO" 5; }
4294 fi
4295
4296 ac_ext=c
4297 ac_cpp='$CPP $CPPFLAGS'
4298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4301
4302
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4304 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4305 set x ${MAKE-make}
4306 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4307 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4308   $as_echo_n "(cached) " >&6
4309 else
4310   cat >conftest.make <<\_ACEOF
4311 SHELL = /bin/sh
4312 all:
4313         @echo '@@@%%%=$(MAKE)=@@@%%%'
4314 _ACEOF
4315 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4316 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4317   *@@@%%%=?*=@@@%%%*)
4318     eval ac_cv_prog_make_${ac_make}_set=yes;;
4319   *)
4320     eval ac_cv_prog_make_${ac_make}_set=no;;
4321 esac
4322 rm -f conftest.make
4323 fi
4324 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4326 $as_echo "yes" >&6; }
4327   SET_MAKE=
4328 else
4329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4330 $as_echo "no" >&6; }
4331   SET_MAKE="MAKE=${MAKE-make}"
4332 fi
4333
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4335 $as_echo_n "checking whether ln -s works... " >&6; }
4336 LN_S=$as_ln_s
4337 if test "$LN_S" = "ln -s"; then
4338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4339 $as_echo "yes" >&6; }
4340 else
4341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4342 $as_echo "no, using $LN_S" >&6; }
4343 fi
4344
4345
4346 for ac_prog in flex lex
4347 do
4348   # Extract the first word of "$ac_prog", so it can be a program name with args.
4349 set dummy $ac_prog; ac_word=$2
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4351 $as_echo_n "checking for $ac_word... " >&6; }
4352 if ${ac_cv_prog_LEX+:} false; then :
4353   $as_echo_n "(cached) " >&6
4354 else
4355   if test -n "$LEX"; then
4356   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4357 else
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH
4360 do
4361   IFS=$as_save_IFS
4362   test -z "$as_dir" && as_dir=.
4363     for ac_exec_ext in '' $ac_executable_extensions; do
4364   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4365     ac_cv_prog_LEX="$ac_prog"
4366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4367     break 2
4368   fi
4369 done
4370   done
4371 IFS=$as_save_IFS
4372
4373 fi
4374 fi
4375 LEX=$ac_cv_prog_LEX
4376 if test -n "$LEX"; then
4377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4378 $as_echo "$LEX" >&6; }
4379 else
4380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4381 $as_echo "no" >&6; }
4382 fi
4383
4384
4385   test -n "$LEX" && break
4386 done
4387 test -n "$LEX" || LEX=":"
4388
4389 if test "x$LEX" != "x:"; then
4390   cat >conftest.l <<_ACEOF
4391 %%
4392 a { ECHO; }
4393 b { REJECT; }
4394 c { yymore (); }
4395 d { yyless (1); }
4396 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
4397     yyless ((input () != 0)); }
4398 f { unput (yytext[0]); }
4399 . { BEGIN INITIAL; }
4400 %%
4401 #ifdef YYTEXT_POINTER
4402 extern char *yytext;
4403 #endif
4404 int
4405 main (void)
4406 {
4407   return ! yylex () + ! yywrap ();
4408 }
4409 _ACEOF
4410 { { ac_try="$LEX conftest.l"
4411 case "(($ac_try" in
4412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413   *) ac_try_echo=$ac_try;;
4414 esac
4415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4416 $as_echo "$ac_try_echo"; } >&5
4417   (eval "$LEX conftest.l") 2>&5
4418   ac_status=$?
4419   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4420   test $ac_status = 0; }
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4422 $as_echo_n "checking lex output file root... " >&6; }
4423 if ${ac_cv_prog_lex_root+:} false; then :
4424   $as_echo_n "(cached) " >&6
4425 else
4426
4427 if test -f lex.yy.c; then
4428   ac_cv_prog_lex_root=lex.yy
4429 elif test -f lexyy.c; then
4430   ac_cv_prog_lex_root=lexyy
4431 else
4432   as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4433 fi
4434 fi
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4436 $as_echo "$ac_cv_prog_lex_root" >&6; }
4437 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4438
4439 if test -z "${LEXLIB+set}"; then
4440   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4441 $as_echo_n "checking lex library... " >&6; }
4442 if ${ac_cv_lib_lex+:} false; then :
4443   $as_echo_n "(cached) " >&6
4444 else
4445
4446     ac_save_LIBS=$LIBS
4447     ac_cv_lib_lex='none needed'
4448     for ac_lib in '' -lfl -ll; do
4449       LIBS="$ac_lib $ac_save_LIBS"
4450       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h.  */
4452 `cat $LEX_OUTPUT_ROOT.c`
4453 _ACEOF
4454 if ac_fn_c_try_link "$LINENO"; then :
4455   ac_cv_lib_lex=$ac_lib
4456 fi
4457 rm -f core conftest.err conftest.$ac_objext \
4458     conftest$ac_exeext conftest.$ac_ext
4459       test "$ac_cv_lib_lex" != 'none needed' && break
4460     done
4461     LIBS=$ac_save_LIBS
4462
4463 fi
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4465 $as_echo "$ac_cv_lib_lex" >&6; }
4466   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4467 fi
4468
4469
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4471 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4472 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4473   $as_echo_n "(cached) " >&6
4474 else
4475   # POSIX says lex can declare yytext either as a pointer or an array; the
4476 # default is implementation-dependent.  Figure out which it is, since
4477 # not all implementations provide the %pointer and %array declarations.
4478 ac_cv_prog_lex_yytext_pointer=no
4479 ac_save_LIBS=$LIBS
4480 LIBS="$LEXLIB $ac_save_LIBS"
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h.  */
4483
4484   #define YYTEXT_POINTER 1
4485 `cat $LEX_OUTPUT_ROOT.c`
4486 _ACEOF
4487 if ac_fn_c_try_link "$LINENO"; then :
4488   ac_cv_prog_lex_yytext_pointer=yes
4489 fi
4490 rm -f core conftest.err conftest.$ac_objext \
4491     conftest$ac_exeext conftest.$ac_ext
4492 LIBS=$ac_save_LIBS
4493
4494 fi
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4496 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4497 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4498
4499 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4500
4501 fi
4502 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4503
4504 fi
4505 if test "$LEX" = :; then
4506   LEX=${am_missing_run}flex
4507 fi
4508 if test -n "$ac_tool_prefix"; then
4509   for ac_prog in ar lib "link -lib"
4510   do
4511     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4512 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4514 $as_echo_n "checking for $ac_word... " >&6; }
4515 if ${ac_cv_prog_AR+:} false; then :
4516   $as_echo_n "(cached) " >&6
4517 else
4518   if test -n "$AR"; then
4519   ac_cv_prog_AR="$AR" # Let the user override the test.
4520 else
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4523 do
4524   IFS=$as_save_IFS
4525   test -z "$as_dir" && as_dir=.
4526     for ac_exec_ext in '' $ac_executable_extensions; do
4527   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4528     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4530     break 2
4531   fi
4532 done
4533   done
4534 IFS=$as_save_IFS
4535
4536 fi
4537 fi
4538 AR=$ac_cv_prog_AR
4539 if test -n "$AR"; then
4540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4541 $as_echo "$AR" >&6; }
4542 else
4543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544 $as_echo "no" >&6; }
4545 fi
4546
4547
4548     test -n "$AR" && break
4549   done
4550 fi
4551 if test -z "$AR"; then
4552   ac_ct_AR=$AR
4553   for ac_prog in ar lib "link -lib"
4554 do
4555   # Extract the first word of "$ac_prog", so it can be a program name with args.
4556 set dummy $ac_prog; ac_word=$2
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 $as_echo_n "checking for $ac_word... " >&6; }
4559 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4560   $as_echo_n "(cached) " >&6
4561 else
4562   if test -n "$ac_ct_AR"; then
4563   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4564 else
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH
4567 do
4568   IFS=$as_save_IFS
4569   test -z "$as_dir" && as_dir=.
4570     for ac_exec_ext in '' $ac_executable_extensions; do
4571   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4572     ac_cv_prog_ac_ct_AR="$ac_prog"
4573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574     break 2
4575   fi
4576 done
4577   done
4578 IFS=$as_save_IFS
4579
4580 fi
4581 fi
4582 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4583 if test -n "$ac_ct_AR"; then
4584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4585 $as_echo "$ac_ct_AR" >&6; }
4586 else
4587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4589 fi
4590
4591
4592   test -n "$ac_ct_AR" && break
4593 done
4594
4595   if test "x$ac_ct_AR" = x; then
4596     AR="false"
4597   else
4598     case $cross_compiling:$ac_tool_warned in
4599 yes:)
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4602 ac_tool_warned=yes ;;
4603 esac
4604     AR=$ac_ct_AR
4605   fi
4606 fi
4607
4608 : ${AR=ar}
4609
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4611 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4612 if ${am_cv_ar_interface+:} false; then :
4613   $as_echo_n "(cached) " >&6
4614 else
4615   ac_ext=c
4616 ac_cpp='$CPP $CPPFLAGS'
4617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4620
4621    am_cv_ar_interface=ar
4622    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623 /* end confdefs.h.  */
4624 int some_variable = 0;
4625 _ACEOF
4626 if ac_fn_c_try_compile "$LINENO"; then :
4627   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4628       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4629   (eval $am_ar_try) 2>&5
4630   ac_status=$?
4631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4632   test $ac_status = 0; }
4633       if test "$ac_status" -eq 0; then
4634         am_cv_ar_interface=ar
4635       else
4636         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4637         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4638   (eval $am_ar_try) 2>&5
4639   ac_status=$?
4640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4641   test $ac_status = 0; }
4642         if test "$ac_status" -eq 0; then
4643           am_cv_ar_interface=lib
4644         else
4645           am_cv_ar_interface=unknown
4646         fi
4647       fi
4648       rm -f conftest.lib libconftest.a
4649
4650 fi
4651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4652    ac_ext=c
4653 ac_cpp='$CPP $CPPFLAGS'
4654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4657
4658 fi
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4660 $as_echo "$am_cv_ar_interface" >&6; }
4661
4662 case $am_cv_ar_interface in
4663 ar)
4664   ;;
4665 lib)
4666   # Microsoft lib, so override with the ar-lib wrapper script.
4667   # FIXME: It is wrong to rewrite AR.
4668   # But if we don't then we get into trouble of one sort or another.
4669   # A longer-term fix would be to have automake use am__AR in this case,
4670   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4671   # similar.
4672   AR="$am_aux_dir/ar-lib $AR"
4673   ;;
4674 unknown)
4675   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4676   ;;
4677 esac
4678
4679
4680
4681
4682
4683
4684
4685
4686 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4687         if test -n "$ac_tool_prefix"; then
4688   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4689 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4691 $as_echo_n "checking for $ac_word... " >&6; }
4692 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4693   $as_echo_n "(cached) " >&6
4694 else
4695   case $PKG_CONFIG in
4696   [\\/]* | ?:[\\/]*)
4697   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4698   ;;
4699   *)
4700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 for as_dir in $PATH
4702 do
4703   IFS=$as_save_IFS
4704   test -z "$as_dir" && as_dir=.
4705     for ac_exec_ext in '' $ac_executable_extensions; do
4706   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4707     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4709     break 2
4710   fi
4711 done
4712   done
4713 IFS=$as_save_IFS
4714
4715   ;;
4716 esac
4717 fi
4718 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4719 if test -n "$PKG_CONFIG"; then
4720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4721 $as_echo "$PKG_CONFIG" >&6; }
4722 else
4723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724 $as_echo "no" >&6; }
4725 fi
4726
4727
4728 fi
4729 if test -z "$ac_cv_path_PKG_CONFIG"; then
4730   ac_pt_PKG_CONFIG=$PKG_CONFIG
4731   # Extract the first word of "pkg-config", so it can be a program name with args.
4732 set dummy pkg-config; ac_word=$2
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4734 $as_echo_n "checking for $ac_word... " >&6; }
4735 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4736   $as_echo_n "(cached) " >&6
4737 else
4738   case $ac_pt_PKG_CONFIG in
4739   [\\/]* | ?:[\\/]*)
4740   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4741   ;;
4742   *)
4743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 for as_dir in $PATH
4745 do
4746   IFS=$as_save_IFS
4747   test -z "$as_dir" && as_dir=.
4748     for ac_exec_ext in '' $ac_executable_extensions; do
4749   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4750     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4752     break 2
4753   fi
4754 done
4755   done
4756 IFS=$as_save_IFS
4757
4758   ;;
4759 esac
4760 fi
4761 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4762 if test -n "$ac_pt_PKG_CONFIG"; then
4763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4764 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4765 else
4766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 $as_echo "no" >&6; }
4768 fi
4769
4770   if test "x$ac_pt_PKG_CONFIG" = x; then
4771     PKG_CONFIG=""
4772   else
4773     case $cross_compiling:$ac_tool_warned in
4774 yes:)
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4777 ac_tool_warned=yes ;;
4778 esac
4779     PKG_CONFIG=$ac_pt_PKG_CONFIG
4780   fi
4781 else
4782   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4783 fi
4784
4785 fi
4786 if test -n "$PKG_CONFIG"; then
4787         _pkg_min_version=0.9.0
4788         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4789 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4790         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4791                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4792 $as_echo "yes" >&6; }
4793         else
4794                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795 $as_echo "no" >&6; }
4796                 PKG_CONFIG=""
4797         fi
4798 fi
4799
4800 # check pcsc-lite version
4801 PCSC_NEEDED_VERSION="1.8.3"
4802 if test -n "$PKG_CONFIG" && \
4803     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcsclite\""; } >&5
4804   ($PKG_CONFIG --exists --print-errors "libpcsclite") 2>&5
4805   ac_status=$?
4806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4807   test $ac_status = 0; }; then
4808
4809 pkg_failed=no
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcsclite >= $PCSC_NEEDED_VERSION" >&5
4811 $as_echo_n "checking for libpcsclite >= $PCSC_NEEDED_VERSION... " >&6; }
4812
4813 if test -n "$PCSC_CFLAGS"; then
4814     pkg_cv_PCSC_CFLAGS="$PCSC_CFLAGS"
4815  elif test -n "$PKG_CONFIG"; then
4816     if test -n "$PKG_CONFIG" && \
4817     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcsclite >= \$PCSC_NEEDED_VERSION\""; } >&5
4818   ($PKG_CONFIG --exists --print-errors "libpcsclite >= $PCSC_NEEDED_VERSION") 2>&5
4819   ac_status=$?
4820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4821   test $ac_status = 0; }; then
4822   pkg_cv_PCSC_CFLAGS=`$PKG_CONFIG --cflags "libpcsclite >= $PCSC_NEEDED_VERSION" 2>/dev/null`
4823                       test "x$?" != "x0" && pkg_failed=yes
4824 else
4825   pkg_failed=yes
4826 fi
4827  else
4828     pkg_failed=untried
4829 fi
4830 if test -n "$PCSC_LIBS"; then
4831     pkg_cv_PCSC_LIBS="$PCSC_LIBS"
4832  elif test -n "$PKG_CONFIG"; then
4833     if test -n "$PKG_CONFIG" && \
4834     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcsclite >= \$PCSC_NEEDED_VERSION\""; } >&5
4835   ($PKG_CONFIG --exists --print-errors "libpcsclite >= $PCSC_NEEDED_VERSION") 2>&5
4836   ac_status=$?
4837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4838   test $ac_status = 0; }; then
4839   pkg_cv_PCSC_LIBS=`$PKG_CONFIG --libs "libpcsclite >= $PCSC_NEEDED_VERSION" 2>/dev/null`
4840                       test "x$?" != "x0" && pkg_failed=yes
4841 else
4842   pkg_failed=yes
4843 fi
4844  else
4845     pkg_failed=untried
4846 fi
4847
4848
4849
4850 if test $pkg_failed = yes; then
4851         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 $as_echo "no" >&6; }
4853
4854 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4855         _pkg_short_errors_supported=yes
4856 else
4857         _pkg_short_errors_supported=no
4858 fi
4859         if test $_pkg_short_errors_supported = yes; then
4860                 PCSC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpcsclite >= $PCSC_NEEDED_VERSION" 2>&1`
4861         else
4862                 PCSC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpcsclite >= $PCSC_NEEDED_VERSION" 2>&1`
4863         fi
4864         # Put the nasty error message in config.log where it belongs
4865         echo "$PCSC_PKG_ERRORS" >&5
4866
4867
4868         if test -f /usr/local/lib/pkgconfig/libpcsclite.pc -a "x$PKG_CONFIG" != x ; then
4869                 as_fn_error $? "use PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure" "$LINENO" 5
4870           else
4871                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: install pcsc-lite $PCSC_NEEDED_VERSION or later" >&5
4872 $as_echo "$as_me: WARNING: install pcsc-lite $PCSC_NEEDED_VERSION or later" >&2;}
4873           fi
4874
4875 elif test $pkg_failed = untried; then
4876         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4877 $as_echo "no" >&6; }
4878
4879         if test -f /usr/local/lib/pkgconfig/libpcsclite.pc -a "x$PKG_CONFIG" != x ; then
4880                 as_fn_error $? "use PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure" "$LINENO" 5
4881           else
4882                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: install pcsc-lite $PCSC_NEEDED_VERSION or later" >&5
4883 $as_echo "$as_me: WARNING: install pcsc-lite $PCSC_NEEDED_VERSION or later" >&2;}
4884           fi
4885
4886 else
4887         PCSC_CFLAGS=$pkg_cv_PCSC_CFLAGS
4888         PCSC_LIBS=$pkg_cv_PCSC_LIBS
4889         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4890 $as_echo "yes" >&6; }
4891
4892 fi
4893 else
4894   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpcsclite not found by pkg-config" >&5
4895 $as_echo "$as_me: WARNING: libpcsclite not found by pkg-config" >&2;}
4896
4897 fi
4898
4899 saved_CPPFLAGS="$CPPFLAGS"
4900 CPPFLAGS="$CPPFLAGS $PCSC_CFLAGS"
4901 PCSC_ERROR_MSG="install pcsc-lite $PCSC_NEEDED_VERSION or later, or use ./configure PCSC_CFLAGS=..."
4902
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4904 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4905 if ${ac_cv_path_GREP+:} false; then :
4906   $as_echo_n "(cached) " >&6
4907 else
4908   if test -z "$GREP"; then
4909   ac_path_GREP_found=false
4910   # Loop through the user's path and test for each of PROGNAME-LIST
4911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4913 do
4914   IFS=$as_save_IFS
4915   test -z "$as_dir" && as_dir=.
4916     for ac_prog in grep ggrep; do
4917     for ac_exec_ext in '' $ac_executable_extensions; do
4918       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4919       as_fn_executable_p "$ac_path_GREP" || continue
4920 # Check for GNU ac_path_GREP and select it if it is found.
4921   # Check for GNU $ac_path_GREP
4922 case `"$ac_path_GREP" --version 2>&1` in
4923 *GNU*)
4924   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4925 *)
4926   ac_count=0
4927   $as_echo_n 0123456789 >"conftest.in"
4928   while :
4929   do
4930     cat "conftest.in" "conftest.in" >"conftest.tmp"
4931     mv "conftest.tmp" "conftest.in"
4932     cp "conftest.in" "conftest.nl"
4933     $as_echo 'GREP' >> "conftest.nl"
4934     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4935     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4936     as_fn_arith $ac_count + 1 && ac_count=$as_val
4937     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4938       # Best one so far, save it but keep looking for a better one
4939       ac_cv_path_GREP="$ac_path_GREP"
4940       ac_path_GREP_max=$ac_count
4941     fi
4942     # 10*(2^10) chars as input seems more than enough
4943     test $ac_count -gt 10 && break
4944   done
4945   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4946 esac
4947
4948       $ac_path_GREP_found && break 3
4949     done
4950   done
4951   done
4952 IFS=$as_save_IFS
4953   if test -z "$ac_cv_path_GREP"; then
4954     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4955   fi
4956 else
4957   ac_cv_path_GREP=$GREP
4958 fi
4959
4960 fi
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4962 $as_echo "$ac_cv_path_GREP" >&6; }
4963  GREP="$ac_cv_path_GREP"
4964
4965
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4967 $as_echo_n "checking for egrep... " >&6; }
4968 if ${ac_cv_path_EGREP+:} false; then :
4969   $as_echo_n "(cached) " >&6
4970 else
4971   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4972    then ac_cv_path_EGREP="$GREP -E"
4973    else
4974      if test -z "$EGREP"; then
4975   ac_path_EGREP_found=false
4976   # Loop through the user's path and test for each of PROGNAME-LIST
4977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4979 do
4980   IFS=$as_save_IFS
4981   test -z "$as_dir" && as_dir=.
4982     for ac_prog in egrep; do
4983     for ac_exec_ext in '' $ac_executable_extensions; do
4984       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4985       as_fn_executable_p "$ac_path_EGREP" || continue
4986 # Check for GNU ac_path_EGREP and select it if it is found.
4987   # Check for GNU $ac_path_EGREP
4988 case `"$ac_path_EGREP" --version 2>&1` in
4989 *GNU*)
4990   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4991 *)
4992   ac_count=0
4993   $as_echo_n 0123456789 >"conftest.in"
4994   while :
4995   do
4996     cat "conftest.in" "conftest.in" >"conftest.tmp"
4997     mv "conftest.tmp" "conftest.in"
4998     cp "conftest.in" "conftest.nl"
4999     $as_echo 'EGREP' >> "conftest.nl"
5000     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5001     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5002     as_fn_arith $ac_count + 1 && ac_count=$as_val
5003     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5004       # Best one so far, save it but keep looking for a better one
5005       ac_cv_path_EGREP="$ac_path_EGREP"
5006       ac_path_EGREP_max=$ac_count
5007     fi
5008     # 10*(2^10) chars as input seems more than enough
5009     test $ac_count -gt 10 && break
5010   done
5011   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5012 esac
5013
5014       $ac_path_EGREP_found && break 3
5015     done
5016   done
5017   done
5018 IFS=$as_save_IFS
5019   if test -z "$ac_cv_path_EGREP"; then
5020     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5021   fi
5022 else
5023   ac_cv_path_EGREP=$EGREP
5024 fi
5025
5026    fi
5027 fi
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5029 $as_echo "$ac_cv_path_EGREP" >&6; }
5030  EGREP="$ac_cv_path_EGREP"
5031
5032
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5034 $as_echo_n "checking for ANSI C header files... " >&6; }
5035 if ${ac_cv_header_stdc+:} false; then :
5036   $as_echo_n "(cached) " >&6
5037 else
5038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039 /* end confdefs.h.  */
5040 #include <stdlib.h>
5041 #include <stdarg.h>
5042 #include <string.h>
5043 #include <float.h>
5044
5045 int
5046 main ()
5047 {
5048
5049   ;
5050   return 0;
5051 }
5052 _ACEOF
5053 if ac_fn_c_try_compile "$LINENO"; then :
5054   ac_cv_header_stdc=yes
5055 else
5056   ac_cv_header_stdc=no
5057 fi
5058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5059
5060 if test $ac_cv_header_stdc = yes; then
5061   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5063 /* end confdefs.h.  */
5064 #include <string.h>
5065
5066 _ACEOF
5067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5068   $EGREP "memchr" >/dev/null 2>&1; then :
5069
5070 else
5071   ac_cv_header_stdc=no
5072 fi
5073 rm -f conftest*
5074
5075 fi
5076
5077 if test $ac_cv_header_stdc = yes; then
5078   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080 /* end confdefs.h.  */
5081 #include <stdlib.h>
5082
5083 _ACEOF
5084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5085   $EGREP "free" >/dev/null 2>&1; then :
5086
5087 else
5088   ac_cv_header_stdc=no
5089 fi
5090 rm -f conftest*
5091
5092 fi
5093
5094 if test $ac_cv_header_stdc = yes; then
5095   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5096   if test "$cross_compiling" = yes; then :
5097   :
5098 else
5099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5100 /* end confdefs.h.  */
5101 #include <ctype.h>
5102 #include <stdlib.h>
5103 #if ((' ' & 0x0FF) == 0x020)
5104 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5105 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5106 #else
5107 # define ISLOWER(c) \
5108                    (('a' <= (c) && (c) <= 'i') \
5109                      || ('j' <= (c) && (c) <= 'r') \
5110                      || ('s' <= (c) && (c) <= 'z'))
5111 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5112 #endif
5113
5114 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5115 int
5116 main ()
5117 {
5118   int i;
5119   for (i = 0; i < 256; i++)
5120     if (XOR (islower (i), ISLOWER (i))
5121         || toupper (i) != TOUPPER (i))
5122       return 2;
5123   return 0;
5124 }
5125 _ACEOF
5126 if ac_fn_c_try_run "$LINENO"; then :
5127
5128 else
5129   ac_cv_header_stdc=no
5130 fi
5131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5132   conftest.$ac_objext conftest.beam conftest.$ac_ext
5133 fi
5134
5135 fi
5136 fi
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5138 $as_echo "$ac_cv_header_stdc" >&6; }
5139 if test $ac_cv_header_stdc = yes; then
5140
5141 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5142
5143 fi
5144
5145 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5146 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5147                   inttypes.h stdint.h unistd.h
5148 do :
5149   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5150 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5151 "
5152 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5153   cat >>confdefs.h <<_ACEOF
5154 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5155 _ACEOF
5156
5157 fi
5158
5159 done
5160
5161
5162 ac_fn_c_check_header_mongrel "$LINENO" "ifdhandler.h" "ac_cv_header_ifdhandler_h" "$ac_includes_default"
5163 if test "x$ac_cv_header_ifdhandler_h" = xyes; then :
5164
5165 else
5166   as_fn_error $? "$PCSC_ERROR_MSG" "$LINENO" 5
5167 fi
5168
5169
5170 ac_fn_c_check_header_mongrel "$LINENO" "reader.h" "ac_cv_header_reader_h" "$ac_includes_default"
5171 if test "x$ac_cv_header_reader_h" = xyes; then :
5172
5173 else
5174   as_fn_error $? "$PCSC_ERROR_MSG" "$LINENO" 5
5175 fi
5176
5177
5178 CPPFLAGS="$saved_CPPFLAGS"
5179
5180 # Add libtool support.
5181 # Static lib is disabled by default. Use --enable-static if needed
5182 case `pwd` in
5183   *\ * | *\     *)
5184     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5185 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5186 esac
5187
5188
5189
5190 macro_version='2.4.6'
5191 macro_revision='2.4.6'
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205 ltmain=$ac_aux_dir/ltmain.sh
5206
5207 # Backslashify metacharacters that are still active within
5208 # double-quoted strings.
5209 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5210
5211 # Same as above, but do not quote variable references.
5212 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5213
5214 # Sed substitution to delay expansion of an escaped shell variable in a
5215 # double_quote_subst'ed string.
5216 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5217
5218 # Sed substitution to delay expansion of an escaped single quote.
5219 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5220
5221 # Sed substitution to avoid accidental globbing in evaled expressions
5222 no_glob_subst='s/\*/\\\*/g'
5223
5224 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5225 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5226 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5227
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5229 $as_echo_n "checking how to print strings... " >&6; }
5230 # Test print first, because it will be a builtin if present.
5231 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5232    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5233   ECHO='print -r --'
5234 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5235   ECHO='printf %s\n'
5236 else
5237   # Use this function as a fallback that always works.
5238   func_fallback_echo ()
5239   {
5240     eval 'cat <<_LTECHO_EOF
5241 $1
5242 _LTECHO_EOF'
5243   }
5244   ECHO='func_fallback_echo'
5245 fi
5246
5247 # func_echo_all arg...
5248 # Invoke $ECHO with all args, space-separated.
5249 func_echo_all ()
5250 {
5251     $ECHO ""
5252 }
5253
5254 case $ECHO in
5255   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5256 $as_echo "printf" >&6; } ;;
5257   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5258 $as_echo "print -r" >&6; } ;;
5259   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5260 $as_echo "cat" >&6; } ;;
5261 esac
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5277 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5278 if ${ac_cv_path_SED+:} false; then :
5279   $as_echo_n "(cached) " >&6
5280 else
5281             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5282      for ac_i in 1 2 3 4 5 6 7; do
5283        ac_script="$ac_script$as_nl$ac_script"
5284      done
5285      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5286      { ac_script=; unset ac_script;}
5287      if test -z "$SED"; then
5288   ac_path_SED_found=false
5289   # Loop through the user's path and test for each of PROGNAME-LIST
5290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 for as_dir in $PATH
5292 do
5293   IFS=$as_save_IFS
5294   test -z "$as_dir" && as_dir=.
5295     for ac_prog in sed gsed; do
5296     for ac_exec_ext in '' $ac_executable_extensions; do
5297       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5298       as_fn_executable_p "$ac_path_SED" || continue
5299 # Check for GNU ac_path_SED and select it if it is found.
5300   # Check for GNU $ac_path_SED
5301 case `"$ac_path_SED" --version 2>&1` in
5302 *GNU*)
5303   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5304 *)
5305   ac_count=0
5306   $as_echo_n 0123456789 >"conftest.in"
5307   while :
5308   do
5309     cat "conftest.in" "conftest.in" >"conftest.tmp"
5310     mv "conftest.tmp" "conftest.in"
5311     cp "conftest.in" "conftest.nl"
5312     $as_echo '' >> "conftest.nl"
5313     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5314     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5315     as_fn_arith $ac_count + 1 && ac_count=$as_val
5316     if test $ac_count -gt ${ac_path_SED_max-0}; then
5317       # Best one so far, save it but keep looking for a better one
5318       ac_cv_path_SED="$ac_path_SED"
5319       ac_path_SED_max=$ac_count
5320     fi
5321     # 10*(2^10) chars as input seems more than enough
5322     test $ac_count -gt 10 && break
5323   done
5324   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5325 esac
5326
5327       $ac_path_SED_found && break 3
5328     done
5329   done
5330   done
5331 IFS=$as_save_IFS
5332   if test -z "$ac_cv_path_SED"; then
5333     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5334   fi
5335 else
5336   ac_cv_path_SED=$SED
5337 fi
5338
5339 fi
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5341 $as_echo "$ac_cv_path_SED" >&6; }
5342  SED="$ac_cv_path_SED"
5343   rm -f conftest.sed
5344
5345 test -z "$SED" && SED=sed
5346 Xsed="$SED -e 1s/^X//"
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5359 $as_echo_n "checking for fgrep... " >&6; }
5360 if ${ac_cv_path_FGREP+:} false; then :
5361   $as_echo_n "(cached) " >&6
5362 else
5363   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5364    then ac_cv_path_FGREP="$GREP -F"
5365    else
5366      if test -z "$FGREP"; then
5367   ac_path_FGREP_found=false
5368   # Loop through the user's path and test for each of PROGNAME-LIST
5369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5371 do
5372   IFS=$as_save_IFS
5373   test -z "$as_dir" && as_dir=.
5374     for ac_prog in fgrep; do
5375     for ac_exec_ext in '' $ac_executable_extensions; do
5376       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5377       as_fn_executable_p "$ac_path_FGREP" || continue
5378 # Check for GNU ac_path_FGREP and select it if it is found.
5379   # Check for GNU $ac_path_FGREP
5380 case `"$ac_path_FGREP" --version 2>&1` in
5381 *GNU*)
5382   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5383 *)
5384   ac_count=0
5385   $as_echo_n 0123456789 >"conftest.in"
5386   while :
5387   do
5388     cat "conftest.in" "conftest.in" >"conftest.tmp"
5389     mv "conftest.tmp" "conftest.in"
5390     cp "conftest.in" "conftest.nl"
5391     $as_echo 'FGREP' >> "conftest.nl"
5392     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5393     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5394     as_fn_arith $ac_count + 1 && ac_count=$as_val
5395     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5396       # Best one so far, save it but keep looking for a better one
5397       ac_cv_path_FGREP="$ac_path_FGREP"
5398       ac_path_FGREP_max=$ac_count
5399     fi
5400     # 10*(2^10) chars as input seems more than enough
5401     test $ac_count -gt 10 && break
5402   done
5403   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5404 esac
5405
5406       $ac_path_FGREP_found && break 3
5407     done
5408   done
5409   done
5410 IFS=$as_save_IFS
5411   if test -z "$ac_cv_path_FGREP"; then
5412     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5413   fi
5414 else
5415   ac_cv_path_FGREP=$FGREP
5416 fi
5417
5418    fi
5419 fi
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5421 $as_echo "$ac_cv_path_FGREP" >&6; }
5422  FGREP="$ac_cv_path_FGREP"
5423
5424
5425 test -z "$GREP" && GREP=grep
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445 # Check whether --with-gnu-ld was given.
5446 if test "${with_gnu_ld+set}" = set; then :
5447   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5448 else
5449   with_gnu_ld=no
5450 fi
5451
5452 ac_prog=ld
5453 if test yes = "$GCC"; then
5454   # Check if gcc -print-prog-name=ld gives a path.
5455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5456 $as_echo_n "checking for ld used by $CC... " >&6; }
5457   case $host in
5458   *-*-mingw*)
5459     # gcc leaves a trailing carriage return, which upsets mingw
5460     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5461   *)
5462     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5463   esac
5464   case $ac_prog in
5465     # Accept absolute paths.
5466     [\\/]* | ?:[\\/]*)
5467       re_direlt='/[^/][^/]*/\.\./'
5468       # Canonicalize the pathname of ld
5469       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5470       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5471         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5472       done
5473       test -z "$LD" && LD=$ac_prog
5474       ;;
5475   "")
5476     # If it fails, then pretend we aren't using GCC.
5477     ac_prog=ld
5478     ;;
5479   *)
5480     # If it is relative, then search for the first ld in PATH.
5481     with_gnu_ld=unknown
5482     ;;
5483   esac
5484 elif test yes = "$with_gnu_ld"; then
5485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5486 $as_echo_n "checking for GNU ld... " >&6; }
5487 else
5488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5489 $as_echo_n "checking for non-GNU ld... " >&6; }
5490 fi
5491 if ${lt_cv_path_LD+:} false; then :
5492   $as_echo_n "(cached) " >&6
5493 else
5494   if test -z "$LD"; then
5495   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5496   for ac_dir in $PATH; do
5497     IFS=$lt_save_ifs
5498     test -z "$ac_dir" && ac_dir=.
5499     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5500       lt_cv_path_LD=$ac_dir/$ac_prog
5501       # Check to see if the program is GNU ld.  I'd rather use --version,
5502       # but apparently some variants of GNU ld only accept -v.
5503       # Break only if it was the GNU/non-GNU ld that we prefer.
5504       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5505       *GNU* | *'with BFD'*)
5506         test no != "$with_gnu_ld" && break
5507         ;;
5508       *)
5509         test yes != "$with_gnu_ld" && break
5510         ;;
5511       esac
5512     fi
5513   done
5514   IFS=$lt_save_ifs
5515 else
5516   lt_cv_path_LD=$LD # Let the user override the test with a path.
5517 fi
5518 fi
5519
5520 LD=$lt_cv_path_LD
5521 if test -n "$LD"; then
5522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5523 $as_echo "$LD" >&6; }
5524 else
5525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5527 fi
5528 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5530 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5531 if ${lt_cv_prog_gnu_ld+:} false; then :
5532   $as_echo_n "(cached) " >&6
5533 else
5534   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5535 case `$LD -v 2>&1 </dev/null` in
5536 *GNU* | *'with BFD'*)
5537   lt_cv_prog_gnu_ld=yes
5538   ;;
5539 *)
5540   lt_cv_prog_gnu_ld=no
5541   ;;
5542 esac
5543 fi
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5545 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5546 with_gnu_ld=$lt_cv_prog_gnu_ld
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5557 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5558 if ${lt_cv_path_NM+:} false; then :
5559   $as_echo_n "(cached) " >&6
5560 else
5561   if test -n "$NM"; then
5562   # Let the user override the test.
5563   lt_cv_path_NM=$NM
5564 else
5565   lt_nm_to_check=${ac_tool_prefix}nm
5566   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5567     lt_nm_to_check="$lt_nm_to_check nm"
5568   fi
5569   for lt_tmp_nm in $lt_nm_to_check; do
5570     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5571     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5572       IFS=$lt_save_ifs
5573       test -z "$ac_dir" && ac_dir=.
5574       tmp_nm=$ac_dir/$lt_tmp_nm
5575       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5576         # Check to see if the nm accepts a BSD-compat flag.
5577         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5578         #   nm: unknown option "B" ignored
5579         # Tru64's nm complains that /dev/null is an invalid object file
5580         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5581         case $build_os in
5582         mingw*) lt_bad_file=conftest.nm/nofile ;;
5583         *) lt_bad_file=/dev/null ;;
5584         esac
5585         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5586         *$lt_bad_file* | *'Invalid file or object type'*)
5587           lt_cv_path_NM="$tmp_nm -B"
5588           break 2
5589           ;;
5590         *)
5591           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5592           */dev/null*)
5593             lt_cv_path_NM="$tmp_nm -p"
5594             break 2
5595             ;;
5596           *)
5597             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5598             continue # so that we can try to find one that supports BSD flags
5599             ;;
5600           esac
5601           ;;
5602         esac
5603       fi
5604     done
5605     IFS=$lt_save_ifs
5606   done
5607   : ${lt_cv_path_NM=no}
5608 fi
5609 fi
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5611 $as_echo "$lt_cv_path_NM" >&6; }
5612 if test no != "$lt_cv_path_NM"; then
5613   NM=$lt_cv_path_NM
5614 else
5615   # Didn't find any BSD compatible name lister, look for dumpbin.
5616   if test -n "$DUMPBIN"; then :
5617     # Let the user override the test.
5618   else
5619     if test -n "$ac_tool_prefix"; then
5620   for ac_prog in dumpbin "link -dump"
5621   do
5622     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5623 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5625 $as_echo_n "checking for $ac_word... " >&6; }
5626 if ${ac_cv_prog_DUMPBIN+:} false; then :
5627   $as_echo_n "(cached) " >&6
5628 else
5629   if test -n "$DUMPBIN"; then
5630   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5631 else
5632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 for as_dir in $PATH
5634 do
5635   IFS=$as_save_IFS
5636   test -z "$as_dir" && as_dir=.
5637     for ac_exec_ext in '' $ac_executable_extensions; do
5638   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5639     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5641     break 2
5642   fi
5643 done
5644   done
5645 IFS=$as_save_IFS
5646
5647 fi
5648 fi
5649 DUMPBIN=$ac_cv_prog_DUMPBIN
5650 if test -n "$DUMPBIN"; then
5651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5652 $as_echo "$DUMPBIN" >&6; }
5653 else
5654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5655 $as_echo "no" >&6; }
5656 fi
5657
5658
5659     test -n "$DUMPBIN" && break
5660   done
5661 fi
5662 if test -z "$DUMPBIN"; then
5663   ac_ct_DUMPBIN=$DUMPBIN
5664   for ac_prog in dumpbin "link -dump"
5665 do
5666   # Extract the first word of "$ac_prog", so it can be a program name with args.
5667 set dummy $ac_prog; ac_word=$2
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5669 $as_echo_n "checking for $ac_word... " >&6; }
5670 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5671   $as_echo_n "(cached) " >&6
5672 else
5673   if test -n "$ac_ct_DUMPBIN"; then
5674   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5675 else
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 for as_dir in $PATH
5678 do
5679   IFS=$as_save_IFS
5680   test -z "$as_dir" && as_dir=.
5681     for ac_exec_ext in '' $ac_executable_extensions; do
5682   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5684     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5685     break 2
5686   fi
5687 done
5688   done
5689 IFS=$as_save_IFS
5690
5691 fi
5692 fi
5693 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5694 if test -n "$ac_ct_DUMPBIN"; then
5695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5696 $as_echo "$ac_ct_DUMPBIN" >&6; }
5697 else
5698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 $as_echo "no" >&6; }
5700 fi
5701
5702
5703   test -n "$ac_ct_DUMPBIN" && break
5704 done
5705
5706   if test "x$ac_ct_DUMPBIN" = x; then
5707     DUMPBIN=":"
5708   else
5709     case $cross_compiling:$ac_tool_warned in
5710 yes:)
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5713 ac_tool_warned=yes ;;
5714 esac
5715     DUMPBIN=$ac_ct_DUMPBIN
5716   fi
5717 fi
5718
5719     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5720     *COFF*)
5721       DUMPBIN="$DUMPBIN -symbols -headers"
5722       ;;
5723     *)
5724       DUMPBIN=:
5725       ;;
5726     esac
5727   fi
5728
5729   if test : != "$DUMPBIN"; then
5730     NM=$DUMPBIN
5731   fi
5732 fi
5733 test -z "$NM" && NM=nm
5734
5735
5736
5737
5738
5739
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5741 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5742 if ${lt_cv_nm_interface+:} false; then :
5743   $as_echo_n "(cached) " >&6
5744 else
5745   lt_cv_nm_interface="BSD nm"
5746   echo "int some_variable = 0;" > conftest.$ac_ext
5747   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5748   (eval "$ac_compile" 2>conftest.err)
5749   cat conftest.err >&5
5750   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5751   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5752   cat conftest.err >&5
5753   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5754   cat conftest.out >&5
5755   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5756     lt_cv_nm_interface="MS dumpbin"
5757   fi
5758   rm -f conftest*
5759 fi
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5761 $as_echo "$lt_cv_nm_interface" >&6; }
5762
5763 # find the maximum length of command line arguments
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5765 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5766 if ${lt_cv_sys_max_cmd_len+:} false; then :
5767   $as_echo_n "(cached) " >&6
5768 else
5769     i=0
5770   teststring=ABCD
5771
5772   case $build_os in
5773   msdosdjgpp*)
5774     # On DJGPP, this test can blow up pretty badly due to problems in libc
5775     # (any single argument exceeding 2000 bytes causes a buffer overrun
5776     # during glob expansion).  Even if it were fixed, the result of this
5777     # check would be larger than it should be.
5778     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5779     ;;
5780
5781   gnu*)
5782     # Under GNU Hurd, this test is not required because there is
5783     # no limit to the length of command line arguments.
5784     # Libtool will interpret -1 as no limit whatsoever
5785     lt_cv_sys_max_cmd_len=-1;
5786     ;;
5787
5788   cygwin* | mingw* | cegcc*)
5789     # On Win9x/ME, this test blows up -- it succeeds, but takes
5790     # about 5 minutes as the teststring grows exponentially.
5791     # Worse, since 9x/ME are not pre-emptively multitasking,
5792     # you end up with a "frozen" computer, even though with patience
5793     # the test eventually succeeds (with a max line length of 256k).
5794     # Instead, let's just punt: use the minimum linelength reported by
5795     # all of the supported platforms: 8192 (on NT/2K/XP).
5796     lt_cv_sys_max_cmd_len=8192;
5797     ;;
5798
5799   mint*)
5800     # On MiNT this can take a long time and run out of memory.
5801     lt_cv_sys_max_cmd_len=8192;
5802     ;;
5803
5804   amigaos*)
5805     # On AmigaOS with pdksh, this test takes hours, literally.
5806     # So we just punt and use a minimum line length of 8192.
5807     lt_cv_sys_max_cmd_len=8192;
5808     ;;
5809
5810   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5811     # This has been around since 386BSD, at least.  Likely further.
5812     if test -x /sbin/sysctl; then
5813       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5814     elif test -x /usr/sbin/sysctl; then
5815       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5816     else
5817       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5818     fi
5819     # And add a safety zone
5820     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5821     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5822     ;;
5823
5824   interix*)
5825     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5826     lt_cv_sys_max_cmd_len=196608
5827     ;;
5828
5829   os2*)
5830     # The test takes a long time on OS/2.
5831     lt_cv_sys_max_cmd_len=8192
5832     ;;
5833
5834   osf*)
5835     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5836     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5837     # nice to cause kernel panics so lets avoid the loop below.
5838     # First set a reasonable default.
5839     lt_cv_sys_max_cmd_len=16384
5840     #
5841     if test -x /sbin/sysconfig; then
5842       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5843         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5844       esac
5845     fi
5846     ;;
5847   sco3.2v5*)
5848     lt_cv_sys_max_cmd_len=102400
5849     ;;
5850   sysv5* | sco5v6* | sysv4.2uw2*)
5851     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5852     if test -n "$kargmax"; then
5853       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5854     else
5855       lt_cv_sys_max_cmd_len=32768
5856     fi
5857     ;;
5858   *)
5859     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5860     if test -n "$lt_cv_sys_max_cmd_len" && \
5861        test undefined != "$lt_cv_sys_max_cmd_len"; then
5862       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5863       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5864     else
5865       # Make teststring a little bigger before we do anything with it.
5866       # a 1K string should be a reasonable start.
5867       for i in 1 2 3 4 5 6 7 8; do
5868         teststring=$teststring$teststring
5869       done
5870       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5871       # If test is not a shell built-in, we'll probably end up computing a
5872       # maximum length that is only half of the actual maximum length, but
5873       # we can't tell.
5874       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5875                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5876               test 17 != "$i" # 1/2 MB should be enough
5877       do
5878         i=`expr $i + 1`
5879         teststring=$teststring$teststring
5880       done
5881       # Only check the string length outside the loop.
5882       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5883       teststring=
5884       # Add a significant safety factor because C++ compilers can tack on
5885       # massive amounts of additional arguments before passing them to the
5886       # linker.  It appears as though 1/2 is a usable value.
5887       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5888     fi
5889     ;;
5890   esac
5891
5892 fi
5893
5894 if test -n "$lt_cv_sys_max_cmd_len"; then
5895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5896 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5897 else
5898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5899 $as_echo "none" >&6; }
5900 fi
5901 max_cmd_len=$lt_cv_sys_max_cmd_len
5902
5903
5904
5905
5906
5907
5908 : ${CP="cp -f"}
5909 : ${MV="mv -f"}
5910 : ${RM="rm -f"}
5911
5912 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5913   lt_unset=unset
5914 else
5915   lt_unset=false
5916 fi
5917
5918
5919
5920
5921
5922 # test EBCDIC or ASCII
5923 case `echo X|tr X '\101'` in
5924  A) # ASCII based system
5925     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5926   lt_SP2NL='tr \040 \012'
5927   lt_NL2SP='tr \015\012 \040\040'
5928   ;;
5929  *) # EBCDIC based system
5930   lt_SP2NL='tr \100 \n'
5931   lt_NL2SP='tr \r\n \100\100'
5932   ;;
5933 esac
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5944 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5945 if ${lt_cv_to_host_file_cmd+:} false; then :
5946   $as_echo_n "(cached) " >&6
5947 else
5948   case $host in
5949   *-*-mingw* )
5950     case $build in
5951       *-*-mingw* ) # actually msys
5952         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5953         ;;
5954       *-*-cygwin* )
5955         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5956         ;;
5957       * ) # otherwise, assume *nix
5958         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5959         ;;
5960     esac
5961     ;;
5962   *-*-cygwin* )
5963     case $build in
5964       *-*-mingw* ) # actually msys
5965         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5966         ;;
5967       *-*-cygwin* )
5968         lt_cv_to_host_file_cmd=func_convert_file_noop
5969         ;;
5970       * ) # otherwise, assume *nix
5971         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5972         ;;
5973     esac
5974     ;;
5975   * ) # unhandled hosts (and "normal" native builds)
5976     lt_cv_to_host_file_cmd=func_convert_file_noop
5977     ;;
5978 esac
5979
5980 fi
5981
5982 to_host_file_cmd=$lt_cv_to_host_file_cmd
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5984 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5985
5986
5987
5988
5989
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5991 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5992 if ${lt_cv_to_tool_file_cmd+:} false; then :
5993   $as_echo_n "(cached) " >&6
5994 else
5995   #assume ordinary cross tools, or native build.
5996 lt_cv_to_tool_file_cmd=func_convert_file_noop
5997 case $host in
5998   *-*-mingw* )
5999     case $build in
6000       *-*-mingw* ) # actually msys
6001         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6002         ;;
6003     esac
6004     ;;
6005 esac
6006
6007 fi
6008
6009 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6011 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6012
6013
6014
6015
6016
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6018 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6019 if ${lt_cv_ld_reload_flag+:} false; then :
6020   $as_echo_n "(cached) " >&6
6021 else
6022   lt_cv_ld_reload_flag='-r'
6023 fi
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6025 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6026 reload_flag=$lt_cv_ld_reload_flag
6027 case $reload_flag in
6028 "" | " "*) ;;
6029 *) reload_flag=" $reload_flag" ;;
6030 esac
6031 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6032 case $host_os in
6033   cygwin* | mingw* | pw32* | cegcc*)
6034     if test yes != "$GCC"; then
6035       reload_cmds=false
6036     fi
6037     ;;
6038   darwin*)
6039     if test yes = "$GCC"; then
6040       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6041     else
6042       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6043     fi
6044     ;;
6045 esac
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055 if test -n "$ac_tool_prefix"; then
6056   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6057 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6059 $as_echo_n "checking for $ac_word... " >&6; }
6060 if ${ac_cv_prog_OBJDUMP+:} false; then :
6061   $as_echo_n "(cached) " >&6
6062 else
6063   if test -n "$OBJDUMP"; then
6064   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6065 else
6066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067 for as_dir in $PATH
6068 do
6069   IFS=$as_save_IFS
6070   test -z "$as_dir" && as_dir=.
6071     for ac_exec_ext in '' $ac_executable_extensions; do
6072   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6073     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6075     break 2
6076   fi
6077 done
6078   done
6079 IFS=$as_save_IFS
6080
6081 fi
6082 fi
6083 OBJDUMP=$ac_cv_prog_OBJDUMP
6084 if test -n "$OBJDUMP"; then
6085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6086 $as_echo "$OBJDUMP" >&6; }
6087 else
6088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089 $as_echo "no" >&6; }
6090 fi
6091
6092
6093 fi
6094 if test -z "$ac_cv_prog_OBJDUMP"; then
6095   ac_ct_OBJDUMP=$OBJDUMP
6096   # Extract the first word of "objdump", so it can be a program name with args.
6097 set dummy objdump; ac_word=$2
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6099 $as_echo_n "checking for $ac_word... " >&6; }
6100 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6101   $as_echo_n "(cached) " >&6
6102 else
6103   if test -n "$ac_ct_OBJDUMP"; then
6104   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6105 else
6106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107 for as_dir in $PATH
6108 do
6109   IFS=$as_save_IFS
6110   test -z "$as_dir" && as_dir=.
6111     for ac_exec_ext in '' $ac_executable_extensions; do
6112   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6113     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6115     break 2
6116   fi
6117 done
6118   done
6119 IFS=$as_save_IFS
6120
6121 fi
6122 fi
6123 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6124 if test -n "$ac_ct_OBJDUMP"; then
6125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6126 $as_echo "$ac_ct_OBJDUMP" >&6; }
6127 else
6128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6129 $as_echo "no" >&6; }
6130 fi
6131
6132   if test "x$ac_ct_OBJDUMP" = x; then
6133     OBJDUMP="false"
6134   else
6135     case $cross_compiling:$ac_tool_warned in
6136 yes:)
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6139 ac_tool_warned=yes ;;
6140 esac
6141     OBJDUMP=$ac_ct_OBJDUMP
6142   fi
6143 else
6144   OBJDUMP="$ac_cv_prog_OBJDUMP"
6145 fi
6146
6147 test -z "$OBJDUMP" && OBJDUMP=objdump
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6158 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6159 if ${lt_cv_deplibs_check_method+:} false; then :
6160   $as_echo_n "(cached) " >&6
6161 else
6162   lt_cv_file_magic_cmd='$MAGIC_CMD'
6163 lt_cv_file_magic_test_file=
6164 lt_cv_deplibs_check_method='unknown'
6165 # Need to set the preceding variable on all platforms that support
6166 # interlibrary dependencies.
6167 # 'none' -- dependencies not supported.
6168 # 'unknown' -- same as none, but documents that we really don't know.
6169 # 'pass_all' -- all dependencies passed with no checks.
6170 # 'test_compile' -- check by making test program.
6171 # 'file_magic [[regex]]' -- check by looking for files in library path
6172 # that responds to the $file_magic_cmd with a given extended regex.
6173 # If you have 'file' or equivalent on your system and you're not sure
6174 # whether 'pass_all' will *always* work, you probably want this one.
6175
6176 case $host_os in
6177 aix[4-9]*)
6178   lt_cv_deplibs_check_method=pass_all
6179   ;;
6180
6181 beos*)
6182   lt_cv_deplibs_check_method=pass_all
6183   ;;
6184
6185 bsdi[45]*)
6186   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6187   lt_cv_file_magic_cmd='/usr/bin/file -L'
6188   lt_cv_file_magic_test_file=/shlib/libc.so
6189   ;;
6190
6191 cygwin*)
6192   # func_win32_libid is a shell function defined in ltmain.sh
6193   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6194   lt_cv_file_magic_cmd='func_win32_libid'
6195   ;;
6196
6197 mingw* | pw32*)
6198   # Base MSYS/MinGW do not provide the 'file' command needed by
6199   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6200   # unless we find 'file', for example because we are cross-compiling.
6201   if ( file / ) >/dev/null 2>&1; then
6202     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6203     lt_cv_file_magic_cmd='func_win32_libid'
6204   else
6205     # Keep this pattern in sync with the one in func_win32_libid.
6206     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6207     lt_cv_file_magic_cmd='$OBJDUMP -f'
6208   fi
6209   ;;
6210
6211 cegcc*)
6212   # use the weaker test based on 'objdump'. See mingw*.
6213   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6214   lt_cv_file_magic_cmd='$OBJDUMP -f'
6215   ;;
6216
6217 darwin* | rhapsody*)
6218   lt_cv_deplibs_check_method=pass_all
6219   ;;
6220
6221 freebsd* | dragonfly*)
6222   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6223     case $host_cpu in
6224     i*86 )
6225       # Not sure whether the presence of OpenBSD here was a mistake.
6226       # Let's accept both of them until this is cleared up.
6227       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6228       lt_cv_file_magic_cmd=/usr/bin/file
6229       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6230       ;;
6231     esac
6232   else
6233     lt_cv_deplibs_check_method=pass_all
6234   fi
6235   ;;
6236
6237 haiku*)
6238   lt_cv_deplibs_check_method=pass_all
6239   ;;
6240
6241 hpux10.20* | hpux11*)
6242   lt_cv_file_magic_cmd=/usr/bin/file
6243   case $host_cpu in
6244   ia64*)
6245     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6246     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6247     ;;
6248   hppa*64*)
6249     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6250     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6251     ;;
6252   *)
6253     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6254     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6255     ;;
6256   esac
6257   ;;
6258
6259 interix[3-9]*)
6260   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6261   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6262   ;;
6263
6264 irix5* | irix6* | nonstopux*)
6265   case $LD in
6266   *-32|*"-32 ") libmagic=32-bit;;
6267   *-n32|*"-n32 ") libmagic=N32;;
6268   *-64|*"-64 ") libmagic=64-bit;;
6269   *) libmagic=never-match;;
6270   esac
6271   lt_cv_deplibs_check_method=pass_all
6272   ;;
6273
6274 # This must be glibc/ELF.
6275 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6276   lt_cv_deplibs_check_method=pass_all
6277   ;;
6278
6279 netbsd* | netbsdelf*-gnu)
6280   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6281     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6282   else
6283     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6284   fi
6285   ;;
6286
6287 newos6*)
6288   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6289   lt_cv_file_magic_cmd=/usr/bin/file
6290   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6291   ;;
6292
6293 *nto* | *qnx*)
6294   lt_cv_deplibs_check_method=pass_all
6295   ;;
6296
6297 openbsd* | bitrig*)
6298   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6299     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6300   else
6301     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6302   fi
6303   ;;
6304
6305 osf3* | osf4* | osf5*)
6306   lt_cv_deplibs_check_method=pass_all
6307   ;;
6308
6309 rdos*)
6310   lt_cv_deplibs_check_method=pass_all
6311   ;;
6312
6313 solaris*)
6314   lt_cv_deplibs_check_method=pass_all
6315   ;;
6316
6317 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6318   lt_cv_deplibs_check_method=pass_all
6319   ;;
6320
6321 sysv4 | sysv4.3*)
6322   case $host_vendor in
6323   motorola)
6324     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6325     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6326     ;;
6327   ncr)
6328     lt_cv_deplibs_check_method=pass_all
6329     ;;
6330   sequent)
6331     lt_cv_file_magic_cmd='/bin/file'
6332     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6333     ;;
6334   sni)
6335     lt_cv_file_magic_cmd='/bin/file'
6336     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6337     lt_cv_file_magic_test_file=/lib/libc.so
6338     ;;
6339   siemens)
6340     lt_cv_deplibs_check_method=pass_all
6341     ;;
6342   pc)
6343     lt_cv_deplibs_check_method=pass_all
6344     ;;
6345   esac
6346   ;;
6347
6348 tpf*)
6349   lt_cv_deplibs_check_method=pass_all
6350   ;;
6351 os2*)
6352   lt_cv_deplibs_check_method=pass_all
6353   ;;
6354 esac
6355
6356 fi
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6358 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6359
6360 file_magic_glob=
6361 want_nocaseglob=no
6362 if test "$build" = "$host"; then
6363   case $host_os in
6364   mingw* | pw32*)
6365     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6366       want_nocaseglob=yes
6367     else
6368       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6369     fi
6370     ;;
6371   esac
6372 fi
6373
6374 file_magic_cmd=$lt_cv_file_magic_cmd
6375 deplibs_check_method=$lt_cv_deplibs_check_method
6376 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399 if test -n "$ac_tool_prefix"; then
6400   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6401 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6403 $as_echo_n "checking for $ac_word... " >&6; }
6404 if ${ac_cv_prog_DLLTOOL+:} false; then :
6405   $as_echo_n "(cached) " >&6
6406 else
6407   if test -n "$DLLTOOL"; then
6408   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6409 else
6410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411 for as_dir in $PATH
6412 do
6413   IFS=$as_save_IFS
6414   test -z "$as_dir" && as_dir=.
6415     for ac_exec_ext in '' $ac_executable_extensions; do
6416   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6417     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6419     break 2
6420   fi
6421 done
6422   done
6423 IFS=$as_save_IFS
6424
6425 fi
6426 fi
6427 DLLTOOL=$ac_cv_prog_DLLTOOL
6428 if test -n "$DLLTOOL"; then
6429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6430 $as_echo "$DLLTOOL" >&6; }
6431 else
6432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6433 $as_echo "no" >&6; }
6434 fi
6435
6436
6437 fi
6438 if test -z "$ac_cv_prog_DLLTOOL"; then
6439   ac_ct_DLLTOOL=$DLLTOOL
6440   # Extract the first word of "dlltool", so it can be a program name with args.
6441 set dummy dlltool; ac_word=$2
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443 $as_echo_n "checking for $ac_word... " >&6; }
6444 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6445   $as_echo_n "(cached) " >&6
6446 else
6447   if test -n "$ac_ct_DLLTOOL"; then
6448   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6449 else
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 for as_dir in $PATH
6452 do
6453   IFS=$as_save_IFS
6454   test -z "$as_dir" && as_dir=.
6455     for ac_exec_ext in '' $ac_executable_extensions; do
6456   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6457     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6459     break 2
6460   fi
6461 done
6462   done
6463 IFS=$as_save_IFS
6464
6465 fi
6466 fi
6467 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6468 if test -n "$ac_ct_DLLTOOL"; then
6469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6470 $as_echo "$ac_ct_DLLTOOL" >&6; }
6471 else
6472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473 $as_echo "no" >&6; }
6474 fi
6475
6476   if test "x$ac_ct_DLLTOOL" = x; then
6477     DLLTOOL="false"
6478   else
6479     case $cross_compiling:$ac_tool_warned in
6480 yes:)
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6483 ac_tool_warned=yes ;;
6484 esac
6485     DLLTOOL=$ac_ct_DLLTOOL
6486   fi
6487 else
6488   DLLTOOL="$ac_cv_prog_DLLTOOL"
6489 fi
6490
6491 test -z "$DLLTOOL" && DLLTOOL=dlltool
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6503 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6504 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6505   $as_echo_n "(cached) " >&6
6506 else
6507   lt_cv_sharedlib_from_linklib_cmd='unknown'
6508
6509 case $host_os in
6510 cygwin* | mingw* | pw32* | cegcc*)
6511   # two different shell functions defined in ltmain.sh;
6512   # decide which one to use based on capabilities of $DLLTOOL
6513   case `$DLLTOOL --help 2>&1` in
6514   *--identify-strict*)
6515     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6516     ;;
6517   *)
6518     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6519     ;;
6520   esac
6521   ;;
6522 *)
6523   # fallback: assume linklib IS sharedlib
6524   lt_cv_sharedlib_from_linklib_cmd=$ECHO
6525   ;;
6526 esac
6527
6528 fi
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6530 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6531 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6532 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6533
6534
6535
6536
6537
6538
6539
6540 if test -n "$ac_tool_prefix"; then
6541   for ac_prog in ar
6542   do
6543     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6544 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546 $as_echo_n "checking for $ac_word... " >&6; }
6547 if ${ac_cv_prog_AR+:} false; then :
6548   $as_echo_n "(cached) " >&6
6549 else
6550   if test -n "$AR"; then
6551   ac_cv_prog_AR="$AR" # Let the user override the test.
6552 else
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 for as_dir in $PATH
6555 do
6556   IFS=$as_save_IFS
6557   test -z "$as_dir" && as_dir=.
6558     for ac_exec_ext in '' $ac_executable_extensions; do
6559   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6560     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6562     break 2
6563   fi
6564 done
6565   done
6566 IFS=$as_save_IFS
6567
6568 fi
6569 fi
6570 AR=$ac_cv_prog_AR
6571 if test -n "$AR"; then
6572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6573 $as_echo "$AR" >&6; }
6574 else
6575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576 $as_echo "no" >&6; }
6577 fi
6578
6579
6580     test -n "$AR" && break
6581   done
6582 fi
6583 if test -z "$AR"; then
6584   ac_ct_AR=$AR
6585   for ac_prog in ar
6586 do
6587   # Extract the first word of "$ac_prog", so it can be a program name with args.
6588 set dummy $ac_prog; ac_word=$2
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6590 $as_echo_n "checking for $ac_word... " >&6; }
6591 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6592   $as_echo_n "(cached) " >&6
6593 else
6594   if test -n "$ac_ct_AR"; then
6595   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6596 else
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 for as_dir in $PATH
6599 do
6600   IFS=$as_save_IFS
6601   test -z "$as_dir" && as_dir=.
6602     for ac_exec_ext in '' $ac_executable_extensions; do
6603   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6604     ac_cv_prog_ac_ct_AR="$ac_prog"
6605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6606     break 2
6607   fi
6608 done
6609   done
6610 IFS=$as_save_IFS
6611
6612 fi
6613 fi
6614 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6615 if test -n "$ac_ct_AR"; then
6616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6617 $as_echo "$ac_ct_AR" >&6; }
6618 else
6619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620 $as_echo "no" >&6; }
6621 fi
6622
6623
6624   test -n "$ac_ct_AR" && break
6625 done
6626
6627   if test "x$ac_ct_AR" = x; then
6628     AR="false"
6629   else
6630     case $cross_compiling:$ac_tool_warned in
6631 yes:)
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6634 ac_tool_warned=yes ;;
6635 esac
6636     AR=$ac_ct_AR
6637   fi
6638 fi
6639
6640 : ${AR=ar}
6641 : ${AR_FLAGS=cr}
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6654 $as_echo_n "checking for archiver @FILE support... " >&6; }
6655 if ${lt_cv_ar_at_file+:} false; then :
6656   $as_echo_n "(cached) " >&6
6657 else
6658   lt_cv_ar_at_file=no
6659    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6660 /* end confdefs.h.  */
6661
6662 int
6663 main ()
6664 {
6665
6666   ;
6667   return 0;
6668 }
6669 _ACEOF
6670 if ac_fn_c_try_compile "$LINENO"; then :
6671   echo conftest.$ac_objext > conftest.lst
6672       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6673       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6674   (eval $lt_ar_try) 2>&5
6675   ac_status=$?
6676   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6677   test $ac_status = 0; }
6678       if test 0 -eq "$ac_status"; then
6679         # Ensure the archiver fails upon bogus file names.
6680         rm -f conftest.$ac_objext libconftest.a
6681         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6682   (eval $lt_ar_try) 2>&5
6683   ac_status=$?
6684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6685   test $ac_status = 0; }
6686         if test 0 -ne "$ac_status"; then
6687           lt_cv_ar_at_file=@
6688         fi
6689       fi
6690       rm -f conftest.* libconftest.a
6691
6692 fi
6693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6694
6695 fi
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6697 $as_echo "$lt_cv_ar_at_file" >&6; }
6698
6699 if test no = "$lt_cv_ar_at_file"; then
6700   archiver_list_spec=
6701 else
6702   archiver_list_spec=$lt_cv_ar_at_file
6703 fi
6704
6705
6706
6707
6708
6709
6710
6711 if test -n "$ac_tool_prefix"; then
6712   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6713 set dummy ${ac_tool_prefix}strip; ac_word=$2
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6715 $as_echo_n "checking for $ac_word... " >&6; }
6716 if ${ac_cv_prog_STRIP+:} false; then :
6717   $as_echo_n "(cached) " >&6
6718 else
6719   if test -n "$STRIP"; then
6720   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6721 else
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 for as_dir in $PATH
6724 do
6725   IFS=$as_save_IFS
6726   test -z "$as_dir" && as_dir=.
6727     for ac_exec_ext in '' $ac_executable_extensions; do
6728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6729     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6731     break 2
6732   fi
6733 done
6734   done
6735 IFS=$as_save_IFS
6736
6737 fi
6738 fi
6739 STRIP=$ac_cv_prog_STRIP
6740 if test -n "$STRIP"; then
6741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6742 $as_echo "$STRIP" >&6; }
6743 else
6744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745 $as_echo "no" >&6; }
6746 fi
6747
6748
6749 fi
6750 if test -z "$ac_cv_prog_STRIP"; then
6751   ac_ct_STRIP=$STRIP
6752   # Extract the first word of "strip", so it can be a program name with args.
6753 set dummy strip; ac_word=$2
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6755 $as_echo_n "checking for $ac_word... " >&6; }
6756 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6757   $as_echo_n "(cached) " >&6
6758 else
6759   if test -n "$ac_ct_STRIP"; then
6760   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6761 else
6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 for as_dir in $PATH
6764 do
6765   IFS=$as_save_IFS
6766   test -z "$as_dir" && as_dir=.
6767     for ac_exec_ext in '' $ac_executable_extensions; do
6768   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6769     ac_cv_prog_ac_ct_STRIP="strip"
6770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6771     break 2
6772   fi
6773 done
6774   done
6775 IFS=$as_save_IFS
6776
6777 fi
6778 fi
6779 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6780 if test -n "$ac_ct_STRIP"; then
6781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6782 $as_echo "$ac_ct_STRIP" >&6; }
6783 else
6784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6785 $as_echo "no" >&6; }
6786 fi
6787
6788   if test "x$ac_ct_STRIP" = x; then
6789     STRIP=":"
6790   else
6791     case $cross_compiling:$ac_tool_warned in
6792 yes:)
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6795 ac_tool_warned=yes ;;
6796 esac
6797     STRIP=$ac_ct_STRIP
6798   fi
6799 else
6800   STRIP="$ac_cv_prog_STRIP"
6801 fi
6802
6803 test -z "$STRIP" && STRIP=:
6804
6805
6806
6807
6808
6809
6810 if test -n "$ac_tool_prefix"; then
6811   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6812 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6814 $as_echo_n "checking for $ac_word... " >&6; }
6815 if ${ac_cv_prog_RANLIB+:} false; then :
6816   $as_echo_n "(cached) " >&6
6817 else
6818   if test -n "$RANLIB"; then
6819   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6820 else
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 for as_dir in $PATH
6823 do
6824   IFS=$as_save_IFS
6825   test -z "$as_dir" && as_dir=.
6826     for ac_exec_ext in '' $ac_executable_extensions; do
6827   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6828     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6830     break 2
6831   fi
6832 done
6833   done
6834 IFS=$as_save_IFS
6835
6836 fi
6837 fi
6838 RANLIB=$ac_cv_prog_RANLIB
6839 if test -n "$RANLIB"; then
6840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6841 $as_echo "$RANLIB" >&6; }
6842 else
6843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6844 $as_echo "no" >&6; }
6845 fi
6846
6847
6848 fi
6849 if test -z "$ac_cv_prog_RANLIB"; then
6850   ac_ct_RANLIB=$RANLIB
6851   # Extract the first word of "ranlib", so it can be a program name with args.
6852 set dummy ranlib; ac_word=$2
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6854 $as_echo_n "checking for $ac_word... " >&6; }
6855 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6856   $as_echo_n "(cached) " >&6
6857 else
6858   if test -n "$ac_ct_RANLIB"; then
6859   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6860 else
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862 for as_dir in $PATH
6863 do
6864   IFS=$as_save_IFS
6865   test -z "$as_dir" && as_dir=.
6866     for ac_exec_ext in '' $ac_executable_extensions; do
6867   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6868     ac_cv_prog_ac_ct_RANLIB="ranlib"
6869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6870     break 2
6871   fi
6872 done
6873   done
6874 IFS=$as_save_IFS
6875
6876 fi
6877 fi
6878 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6879 if test -n "$ac_ct_RANLIB"; then
6880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6881 $as_echo "$ac_ct_RANLIB" >&6; }
6882 else
6883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6884 $as_echo "no" >&6; }
6885 fi
6886
6887   if test "x$ac_ct_RANLIB" = x; then
6888     RANLIB=":"
6889   else
6890     case $cross_compiling:$ac_tool_warned in
6891 yes:)
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6894 ac_tool_warned=yes ;;
6895 esac
6896     RANLIB=$ac_ct_RANLIB
6897   fi
6898 else
6899   RANLIB="$ac_cv_prog_RANLIB"
6900 fi
6901
6902 test -z "$RANLIB" && RANLIB=:
6903
6904
6905
6906
6907
6908
6909 # Determine commands to create old-style static archives.
6910 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6911 old_postinstall_cmds='chmod 644 $oldlib'
6912 old_postuninstall_cmds=
6913
6914 if test -n "$RANLIB"; then
6915   case $host_os in
6916   bitrig* | openbsd*)
6917     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6918     ;;
6919   *)
6920     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6921     ;;
6922   esac
6923   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6924 fi
6925
6926 case $host_os in
6927   darwin*)
6928     lock_old_archive_extraction=yes ;;
6929   *)
6930     lock_old_archive_extraction=no ;;
6931 esac
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971 # If no C compiler was specified, use CC.
6972 LTCC=${LTCC-"$CC"}
6973
6974 # If no C compiler flags were specified, use CFLAGS.
6975 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6976
6977 # Allow CC to be a program name with arguments.
6978 compiler=$CC
6979
6980
6981 # Check for command to grab the raw symbol name followed by C symbol from nm.
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6983 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6984 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6985   $as_echo_n "(cached) " >&6
6986 else
6987
6988 # These are sane defaults that work on at least a few old systems.
6989 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6990
6991 # Character class describing NM global symbol codes.
6992 symcode='[BCDEGRST]'
6993
6994 # Regexp to match symbols that can be accessed directly from C.
6995 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6996
6997 # Define system-specific variables.
6998 case $host_os in
6999 aix*)
7000   symcode='[BCDT]'
7001   ;;
7002 cygwin* | mingw* | pw32* | cegcc*)
7003   symcode='[ABCDGISTW]'
7004   ;;
7005 hpux*)
7006   if test ia64 = "$host_cpu"; then
7007     symcode='[ABCDEGRST]'
7008   fi
7009   ;;
7010 irix* | nonstopux*)
7011   symcode='[BCDEGRST]'
7012   ;;
7013 osf*)
7014   symcode='[BCDEGQRST]'
7015   ;;
7016 solaris*)
7017   symcode='[BDRT]'
7018   ;;
7019 sco3.2v5*)
7020   symcode='[DT]'
7021   ;;
7022 sysv4.2uw2*)
7023   symcode='[DT]'
7024   ;;
7025 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7026   symcode='[ABDT]'
7027   ;;
7028 sysv4)
7029   symcode='[DFNSTU]'
7030   ;;
7031 esac
7032
7033 # If we're using GNU nm, then use its standard symbol codes.
7034 case `$NM -V 2>&1` in
7035 *GNU* | *'with BFD'*)
7036   symcode='[ABCDGIRSTW]' ;;
7037 esac
7038
7039 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7040   # Gets list of data symbols to import.
7041   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7042   # Adjust the below global symbol transforms to fixup imported variables.
7043   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7044   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7045   lt_c_name_lib_hook="\
7046   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7047   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7048 else
7049   # Disable hooks by default.
7050   lt_cv_sys_global_symbol_to_import=
7051   lt_cdecl_hook=
7052   lt_c_name_hook=
7053   lt_c_name_lib_hook=
7054 fi
7055
7056 # Transform an extracted symbol line into a proper C declaration.
7057 # Some systems (esp. on ia64) link data and code symbols differently,
7058 # so use this general approach.
7059 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7060 $lt_cdecl_hook\
7061 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7062 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7063
7064 # Transform an extracted symbol line into symbol name and symbol address
7065 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7066 $lt_c_name_hook\
7067 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7068 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7069
7070 # Transform an extracted symbol line into symbol name with lib prefix and
7071 # symbol address.
7072 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7073 $lt_c_name_lib_hook\
7074 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7075 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7076 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7077
7078 # Handle CRLF in mingw tool chain
7079 opt_cr=
7080 case $build_os in
7081 mingw*)
7082   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7083   ;;
7084 esac
7085
7086 # Try without a prefix underscore, then with it.
7087 for ac_symprfx in "" "_"; do
7088
7089   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7090   symxfrm="\\1 $ac_symprfx\\2 \\2"
7091
7092   # Write the raw and C identifiers.
7093   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7094     # Fake it for dumpbin and say T for any non-static function,
7095     # D for any global variable and I for any imported variable.
7096     # Also find C++ and __fastcall symbols from MSVC++,
7097     # which start with @ or ?.
7098     lt_cv_sys_global_symbol_pipe="$AWK '"\
7099 "     {last_section=section; section=\$ 3};"\
7100 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7101 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7102 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7103 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7104 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7105 "     \$ 0!~/External *\|/{next};"\
7106 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7107 "     {if(hide[section]) next};"\
7108 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7109 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7110 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7111 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7112 "     ' prfx=^$ac_symprfx"
7113   else
7114     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7115   fi
7116   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7117
7118   # Check to see that the pipe works correctly.
7119   pipe_works=no
7120
7121   rm -f conftest*
7122   cat > conftest.$ac_ext <<_LT_EOF
7123 #ifdef __cplusplus
7124 extern "C" {
7125 #endif
7126 char nm_test_var;
7127 void nm_test_func(void);
7128 void nm_test_func(void){}
7129 #ifdef __cplusplus
7130 }
7131 #endif
7132 int main(){nm_test_var='a';nm_test_func();return(0);}
7133 _LT_EOF
7134
7135   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7136   (eval $ac_compile) 2>&5
7137   ac_status=$?
7138   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7139   test $ac_status = 0; }; then
7140     # Now try to grab the symbols.
7141     nlist=conftest.nm
7142     $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7143     if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7144       # Try sorting and uniquifying the output.
7145       if sort "$nlist" | uniq > "$nlist"T; then
7146         mv -f "$nlist"T "$nlist"
7147       else
7148         rm -f "$nlist"T
7149       fi
7150
7151       # Make sure that we snagged all the symbols we need.
7152       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7153         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7154           cat <<_LT_EOF > conftest.$ac_ext
7155 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7156 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7157 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7158    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7159 # define LT_DLSYM_CONST
7160 #elif defined __osf__
7161 /* This system does not cope well with relocations in const data.  */
7162 # define LT_DLSYM_CONST
7163 #else
7164 # define LT_DLSYM_CONST const
7165 #endif
7166
7167 #ifdef __cplusplus
7168 extern "C" {
7169 #endif
7170
7171 _LT_EOF
7172           # Now generate the symbol file.
7173           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7174
7175           cat <<_LT_EOF >> conftest.$ac_ext
7176
7177 /* The mapping between symbol names and symbols.  */
7178 LT_DLSYM_CONST struct {
7179   const char *name;
7180   void       *address;
7181 }
7182 lt__PROGRAM__LTX_preloaded_symbols[] =
7183 {
7184   { "@PROGRAM@", (void *) 0 },
7185 _LT_EOF
7186           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7187           cat <<\_LT_EOF >> conftest.$ac_ext
7188   {0, (void *) 0}
7189 };
7190
7191 /* This works around a problem in FreeBSD linker */
7192 #ifdef FREEBSD_WORKAROUND
7193 static const void *lt_preloaded_setup() {
7194   return lt__PROGRAM__LTX_preloaded_symbols;
7195 }
7196 #endif
7197
7198 #ifdef __cplusplus
7199 }
7200 #endif
7201 _LT_EOF
7202           # Now try linking the two files.
7203           mv conftest.$ac_objext conftstm.$ac_objext
7204           lt_globsym_save_LIBS=$LIBS
7205           lt_globsym_save_CFLAGS=$CFLAGS
7206           LIBS=conftstm.$ac_objext
7207           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7208           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7209   (eval $ac_link) 2>&5
7210   ac_status=$?
7211   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7212   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7213             pipe_works=yes
7214           fi
7215           LIBS=$lt_globsym_save_LIBS
7216           CFLAGS=$lt_globsym_save_CFLAGS
7217         else
7218           echo "cannot find nm_test_func in $nlist" >&5
7219         fi
7220       else
7221         echo "cannot find nm_test_var in $nlist" >&5
7222       fi
7223     else
7224       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7225     fi
7226   else
7227     echo "$progname: failed program was:" >&5
7228     cat conftest.$ac_ext >&5
7229   fi
7230   rm -rf conftest* conftst*
7231
7232   # Do not use the global_symbol_pipe unless it works.
7233   if test yes = "$pipe_works"; then
7234     break
7235   else
7236     lt_cv_sys_global_symbol_pipe=
7237   fi
7238 done
7239
7240 fi
7241
7242 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7243   lt_cv_sys_global_symbol_to_cdecl=
7244 fi
7245 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7247 $as_echo "failed" >&6; }
7248 else
7249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7250 $as_echo "ok" >&6; }
7251 fi
7252
7253 # Response file support.
7254 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7255   nm_file_list_spec='@'
7256 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7257   nm_file_list_spec='@'
7258 fi
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7297 $as_echo_n "checking for sysroot... " >&6; }
7298
7299 # Check whether --with-sysroot was given.
7300 if test "${with_sysroot+set}" = set; then :
7301   withval=$with_sysroot;
7302 else
7303   with_sysroot=no
7304 fi
7305
7306
7307 lt_sysroot=
7308 case $with_sysroot in #(
7309  yes)
7310    if test yes = "$GCC"; then
7311      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7312    fi
7313    ;; #(
7314  /*)
7315    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7316    ;; #(
7317  no|'')
7318    ;; #(
7319  *)
7320    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7321 $as_echo "$with_sysroot" >&6; }
7322    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7323    ;;
7324 esac
7325
7326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7327 $as_echo "${lt_sysroot:-no}" >&6; }
7328
7329
7330
7331
7332
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7334 $as_echo_n "checking for a working dd... " >&6; }
7335 if ${ac_cv_path_lt_DD+:} false; then :
7336   $as_echo_n "(cached) " >&6
7337 else
7338   printf 0123456789abcdef0123456789abcdef >conftest.i
7339 cat conftest.i conftest.i >conftest2.i
7340 : ${lt_DD:=$DD}
7341 if test -z "$lt_DD"; then
7342   ac_path_lt_DD_found=false
7343   # Loop through the user's path and test for each of PROGNAME-LIST
7344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7346 do
7347   IFS=$as_save_IFS
7348   test -z "$as_dir" && as_dir=.
7349     for ac_prog in dd; do
7350     for ac_exec_ext in '' $ac_executable_extensions; do
7351       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7352       as_fn_executable_p "$ac_path_lt_DD" || continue
7353 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7354   cmp -s conftest.i conftest.out \
7355   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7356 fi
7357       $ac_path_lt_DD_found && break 3
7358     done
7359   done
7360   done
7361 IFS=$as_save_IFS
7362   if test -z "$ac_cv_path_lt_DD"; then
7363     :
7364   fi
7365 else
7366   ac_cv_path_lt_DD=$lt_DD
7367 fi
7368
7369 rm -f conftest.i conftest2.i conftest.out
7370 fi
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7372 $as_echo "$ac_cv_path_lt_DD" >&6; }
7373
7374
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7376 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7377 if ${lt_cv_truncate_bin+:} false; then :
7378   $as_echo_n "(cached) " >&6
7379 else
7380   printf 0123456789abcdef0123456789abcdef >conftest.i
7381 cat conftest.i conftest.i >conftest2.i
7382 lt_cv_truncate_bin=
7383 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7384   cmp -s conftest.i conftest.out \
7385   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7386 fi
7387 rm -f conftest.i conftest2.i conftest.out
7388 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7389 fi
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7391 $as_echo "$lt_cv_truncate_bin" >&6; }
7392
7393
7394
7395
7396
7397
7398
7399 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7400 func_cc_basename ()
7401 {
7402     for cc_temp in $*""; do
7403       case $cc_temp in
7404         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7405         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7406         \-*) ;;
7407         *) break;;
7408       esac
7409     done
7410     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7411 }
7412
7413 # Check whether --enable-libtool-lock was given.
7414 if test "${enable_libtool_lock+set}" = set; then :
7415   enableval=$enable_libtool_lock;
7416 fi
7417
7418 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7419
7420 # Some flags need to be propagated to the compiler or linker for good
7421 # libtool support.
7422 case $host in
7423 ia64-*-hpux*)
7424   # Find out what ABI is being produced by ac_compile, and set mode
7425   # options accordingly.
7426   echo 'int i;' > conftest.$ac_ext
7427   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7428   (eval $ac_compile) 2>&5
7429   ac_status=$?
7430   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7431   test $ac_status = 0; }; then
7432     case `/usr/bin/file conftest.$ac_objext` in
7433       *ELF-32*)
7434         HPUX_IA64_MODE=32
7435         ;;
7436       *ELF-64*)
7437         HPUX_IA64_MODE=64
7438         ;;
7439     esac
7440   fi
7441   rm -rf conftest*
7442   ;;
7443 *-*-irix6*)
7444   # Find out what ABI is being produced by ac_compile, and set linker
7445   # options accordingly.
7446   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7447   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7448   (eval $ac_compile) 2>&5
7449   ac_status=$?
7450   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7451   test $ac_status = 0; }; then
7452     if test yes = "$lt_cv_prog_gnu_ld"; then
7453       case `/usr/bin/file conftest.$ac_objext` in
7454         *32-bit*)
7455           LD="${LD-ld} -melf32bsmip"
7456           ;;
7457         *N32*)
7458           LD="${LD-ld} -melf32bmipn32"
7459           ;;
7460         *64-bit*)
7461           LD="${LD-ld} -melf64bmip"
7462         ;;
7463       esac
7464     else
7465       case `/usr/bin/file conftest.$ac_objext` in
7466         *32-bit*)
7467           LD="${LD-ld} -32"
7468           ;;
7469         *N32*)
7470           LD="${LD-ld} -n32"
7471           ;;
7472         *64-bit*)
7473           LD="${LD-ld} -64"
7474           ;;
7475       esac
7476     fi
7477   fi
7478   rm -rf conftest*
7479   ;;
7480
7481 mips64*-*linux*)
7482   # Find out what ABI is being produced by ac_compile, and set linker
7483   # options accordingly.
7484   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7485   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7486   (eval $ac_compile) 2>&5
7487   ac_status=$?
7488   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7489   test $ac_status = 0; }; then
7490     emul=elf
7491     case `/usr/bin/file conftest.$ac_objext` in
7492       *32-bit*)
7493         emul="${emul}32"
7494         ;;
7495       *64-bit*)
7496         emul="${emul}64"
7497         ;;
7498     esac
7499     case `/usr/bin/file conftest.$ac_objext` in
7500       *MSB*)
7501         emul="${emul}btsmip"
7502         ;;
7503       *LSB*)
7504         emul="${emul}ltsmip"
7505         ;;
7506     esac
7507     case `/usr/bin/file conftest.$ac_objext` in
7508       *N32*)
7509         emul="${emul}n32"
7510         ;;
7511     esac
7512     LD="${LD-ld} -m $emul"
7513   fi
7514   rm -rf conftest*
7515   ;;
7516
7517 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7518 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7519   # Find out what ABI is being produced by ac_compile, and set linker
7520   # options accordingly.  Note that the listed cases only cover the
7521   # situations where additional linker options are needed (such as when
7522   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7523   # vice versa); the common cases where no linker options are needed do
7524   # not appear in the list.
7525   echo 'int i;' > conftest.$ac_ext
7526   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7527   (eval $ac_compile) 2>&5
7528   ac_status=$?
7529   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7530   test $ac_status = 0; }; then
7531     case `/usr/bin/file conftest.o` in
7532       *32-bit*)
7533         case $host in
7534           x86_64-*kfreebsd*-gnu)
7535             LD="${LD-ld} -m elf_i386_fbsd"
7536             ;;
7537           x86_64-*linux*)
7538             case `/usr/bin/file conftest.o` in
7539               *x86-64*)
7540                 LD="${LD-ld} -m elf32_x86_64"
7541                 ;;
7542               *)
7543                 LD="${LD-ld} -m elf_i386"
7544                 ;;
7545             esac
7546             ;;
7547           powerpc64le-*linux*)
7548             LD="${LD-ld} -m elf32lppclinux"
7549             ;;
7550           powerpc64-*linux*)
7551             LD="${LD-ld} -m elf32ppclinux"
7552             ;;
7553           s390x-*linux*)
7554             LD="${LD-ld} -m elf_s390"
7555             ;;
7556           sparc64-*linux*)
7557             LD="${LD-ld} -m elf32_sparc"
7558             ;;
7559         esac
7560         ;;
7561       *64-bit*)
7562         case $host in
7563           x86_64-*kfreebsd*-gnu)
7564             LD="${LD-ld} -m elf_x86_64_fbsd"
7565             ;;
7566           x86_64-*linux*)
7567             LD="${LD-ld} -m elf_x86_64"
7568             ;;
7569           powerpcle-*linux*)
7570             LD="${LD-ld} -m elf64lppc"
7571             ;;
7572           powerpc-*linux*)
7573             LD="${LD-ld} -m elf64ppc"
7574             ;;
7575           s390*-*linux*|s390*-*tpf*)
7576             LD="${LD-ld} -m elf64_s390"
7577             ;;
7578           sparc*-*linux*)
7579             LD="${LD-ld} -m elf64_sparc"
7580             ;;
7581         esac
7582         ;;
7583     esac
7584   fi
7585   rm -rf conftest*
7586   ;;
7587
7588 *-*-sco3.2v5*)
7589   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7590   SAVE_CFLAGS=$CFLAGS
7591   CFLAGS="$CFLAGS -belf"
7592   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7593 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7594 if ${lt_cv_cc_needs_belf+:} false; then :
7595   $as_echo_n "(cached) " >&6
7596 else
7597   ac_ext=c
7598 ac_cpp='$CPP $CPPFLAGS'
7599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7602
7603      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7604 /* end confdefs.h.  */
7605
7606 int
7607 main ()
7608 {
7609
7610   ;
7611   return 0;
7612 }
7613 _ACEOF
7614 if ac_fn_c_try_link "$LINENO"; then :
7615   lt_cv_cc_needs_belf=yes
7616 else
7617   lt_cv_cc_needs_belf=no
7618 fi
7619 rm -f core conftest.err conftest.$ac_objext \
7620     conftest$ac_exeext conftest.$ac_ext
7621      ac_ext=c
7622 ac_cpp='$CPP $CPPFLAGS'
7623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7626
7627 fi
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7629 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7630   if test yes != "$lt_cv_cc_needs_belf"; then
7631     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7632     CFLAGS=$SAVE_CFLAGS
7633   fi
7634   ;;
7635 *-*solaris*)
7636   # Find out what ABI is being produced by ac_compile, and set linker
7637   # options accordingly.
7638   echo 'int i;' > conftest.$ac_ext
7639   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7640   (eval $ac_compile) 2>&5
7641   ac_status=$?
7642   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7643   test $ac_status = 0; }; then
7644     case `/usr/bin/file conftest.o` in
7645     *64-bit*)
7646       case $lt_cv_prog_gnu_ld in
7647       yes*)
7648         case $host in
7649         i?86-*-solaris*|x86_64-*-solaris*)
7650           LD="${LD-ld} -m elf_x86_64"
7651           ;;
7652         sparc*-*-solaris*)
7653           LD="${LD-ld} -m elf64_sparc"
7654           ;;
7655         esac
7656         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7657         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7658           LD=${LD-ld}_sol2
7659         fi
7660         ;;
7661       *)
7662         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7663           LD="${LD-ld} -64"
7664         fi
7665         ;;
7666       esac
7667       ;;
7668     esac
7669   fi
7670   rm -rf conftest*
7671   ;;
7672 esac
7673
7674 need_locks=$enable_libtool_lock
7675
7676 if test -n "$ac_tool_prefix"; then
7677   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7678 set dummy ${ac_tool_prefix}mt; ac_word=$2
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7680 $as_echo_n "checking for $ac_word... " >&6; }
7681 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7682   $as_echo_n "(cached) " >&6
7683 else
7684   if test -n "$MANIFEST_TOOL"; then
7685   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7686 else
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688 for as_dir in $PATH
7689 do
7690   IFS=$as_save_IFS
7691   test -z "$as_dir" && as_dir=.
7692     for ac_exec_ext in '' $ac_executable_extensions; do
7693   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7694     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7696     break 2
7697   fi
7698 done
7699   done
7700 IFS=$as_save_IFS
7701
7702 fi
7703 fi
7704 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7705 if test -n "$MANIFEST_TOOL"; then
7706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7707 $as_echo "$MANIFEST_TOOL" >&6; }
7708 else
7709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710 $as_echo "no" >&6; }
7711 fi
7712
7713
7714 fi
7715 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7716   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7717   # Extract the first word of "mt", so it can be a program name with args.
7718 set dummy mt; ac_word=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7722   $as_echo_n "(cached) " >&6
7723 else
7724   if test -n "$ac_ct_MANIFEST_TOOL"; then
7725   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7726 else
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 for as_dir in $PATH
7729 do
7730   IFS=$as_save_IFS
7731   test -z "$as_dir" && as_dir=.
7732     for ac_exec_ext in '' $ac_executable_extensions; do
7733   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7734     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7736     break 2
7737   fi
7738 done
7739   done
7740 IFS=$as_save_IFS
7741
7742 fi
7743 fi
7744 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7745 if test -n "$ac_ct_MANIFEST_TOOL"; then
7746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7747 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7748 else
7749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7751 fi
7752
7753   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7754     MANIFEST_TOOL=":"
7755   else
7756     case $cross_compiling:$ac_tool_warned in
7757 yes:)
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7760 ac_tool_warned=yes ;;
7761 esac
7762     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7763   fi
7764 else
7765   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7766 fi
7767
7768 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7770 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7771 if ${lt_cv_path_mainfest_tool+:} false; then :
7772   $as_echo_n "(cached) " >&6
7773 else
7774   lt_cv_path_mainfest_tool=no
7775   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7776   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7777   cat conftest.err >&5
7778   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7779     lt_cv_path_mainfest_tool=yes
7780   fi
7781   rm -f conftest*
7782 fi
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7784 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7785 if test yes != "$lt_cv_path_mainfest_tool"; then
7786   MANIFEST_TOOL=:
7787 fi
7788
7789
7790
7791
7792
7793
7794   case $host_os in
7795     rhapsody* | darwin*)
7796     if test -n "$ac_tool_prefix"; then
7797   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7798 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800 $as_echo_n "checking for $ac_word... " >&6; }
7801 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7802   $as_echo_n "(cached) " >&6
7803 else
7804   if test -n "$DSYMUTIL"; then
7805   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7806 else
7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 for as_dir in $PATH
7809 do
7810   IFS=$as_save_IFS
7811   test -z "$as_dir" && as_dir=.
7812     for ac_exec_ext in '' $ac_executable_extensions; do
7813   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7814     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7816     break 2
7817   fi
7818 done
7819   done
7820 IFS=$as_save_IFS
7821
7822 fi
7823 fi
7824 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7825 if test -n "$DSYMUTIL"; then
7826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7827 $as_echo "$DSYMUTIL" >&6; }
7828 else
7829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7831 fi
7832
7833
7834 fi
7835 if test -z "$ac_cv_prog_DSYMUTIL"; then
7836   ac_ct_DSYMUTIL=$DSYMUTIL
7837   # Extract the first word of "dsymutil", so it can be a program name with args.
7838 set dummy dsymutil; ac_word=$2
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840 $as_echo_n "checking for $ac_word... " >&6; }
7841 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7842   $as_echo_n "(cached) " >&6
7843 else
7844   if test -n "$ac_ct_DSYMUTIL"; then
7845   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7846 else
7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848 for as_dir in $PATH
7849 do
7850   IFS=$as_save_IFS
7851   test -z "$as_dir" && as_dir=.
7852     for ac_exec_ext in '' $ac_executable_extensions; do
7853   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7854     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7856     break 2
7857   fi
7858 done
7859   done
7860 IFS=$as_save_IFS
7861
7862 fi
7863 fi
7864 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7865 if test -n "$ac_ct_DSYMUTIL"; then
7866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7867 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7868 else
7869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870 $as_echo "no" >&6; }
7871 fi
7872
7873   if test "x$ac_ct_DSYMUTIL" = x; then
7874     DSYMUTIL=":"
7875   else
7876     case $cross_compiling:$ac_tool_warned in
7877 yes:)
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7880 ac_tool_warned=yes ;;
7881 esac
7882     DSYMUTIL=$ac_ct_DSYMUTIL
7883   fi
7884 else
7885   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7886 fi
7887
7888     if test -n "$ac_tool_prefix"; then
7889   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7890 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892 $as_echo_n "checking for $ac_word... " >&6; }
7893 if ${ac_cv_prog_NMEDIT+:} false; then :
7894   $as_echo_n "(cached) " >&6
7895 else
7896   if test -n "$NMEDIT"; then
7897   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7898 else
7899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900 for as_dir in $PATH
7901 do
7902   IFS=$as_save_IFS
7903   test -z "$as_dir" && as_dir=.
7904     for ac_exec_ext in '' $ac_executable_extensions; do
7905   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7906     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7908     break 2
7909   fi
7910 done
7911   done
7912 IFS=$as_save_IFS
7913
7914 fi
7915 fi
7916 NMEDIT=$ac_cv_prog_NMEDIT
7917 if test -n "$NMEDIT"; then
7918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7919 $as_echo "$NMEDIT" >&6; }
7920 else
7921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922 $as_echo "no" >&6; }
7923 fi
7924
7925
7926 fi
7927 if test -z "$ac_cv_prog_NMEDIT"; then
7928   ac_ct_NMEDIT=$NMEDIT
7929   # Extract the first word of "nmedit", so it can be a program name with args.
7930 set dummy nmedit; ac_word=$2
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7932 $as_echo_n "checking for $ac_word... " >&6; }
7933 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7934   $as_echo_n "(cached) " >&6
7935 else
7936   if test -n "$ac_ct_NMEDIT"; then
7937   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7938 else
7939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940 for as_dir in $PATH
7941 do
7942   IFS=$as_save_IFS
7943   test -z "$as_dir" && as_dir=.
7944     for ac_exec_ext in '' $ac_executable_extensions; do
7945   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7946     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7948     break 2
7949   fi
7950 done
7951   done
7952 IFS=$as_save_IFS
7953
7954 fi
7955 fi
7956 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7957 if test -n "$ac_ct_NMEDIT"; then
7958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7959 $as_echo "$ac_ct_NMEDIT" >&6; }
7960 else
7961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7962 $as_echo "no" >&6; }
7963 fi
7964
7965   if test "x$ac_ct_NMEDIT" = x; then
7966     NMEDIT=":"
7967   else
7968     case $cross_compiling:$ac_tool_warned in
7969 yes:)
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7972 ac_tool_warned=yes ;;
7973 esac
7974     NMEDIT=$ac_ct_NMEDIT
7975   fi
7976 else
7977   NMEDIT="$ac_cv_prog_NMEDIT"
7978 fi
7979
7980     if test -n "$ac_tool_prefix"; then
7981   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7982 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984 $as_echo_n "checking for $ac_word... " >&6; }
7985 if ${ac_cv_prog_LIPO+:} false; then :
7986   $as_echo_n "(cached) " >&6
7987 else
7988   if test -n "$LIPO"; then
7989   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7990 else
7991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992 for as_dir in $PATH
7993 do
7994   IFS=$as_save_IFS
7995   test -z "$as_dir" && as_dir=.
7996     for ac_exec_ext in '' $ac_executable_extensions; do
7997   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7998     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8000     break 2
8001   fi
8002 done
8003   done
8004 IFS=$as_save_IFS
8005
8006 fi
8007 fi
8008 LIPO=$ac_cv_prog_LIPO
8009 if test -n "$LIPO"; then
8010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8011 $as_echo "$LIPO" >&6; }
8012 else
8013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8014 $as_echo "no" >&6; }
8015 fi
8016
8017
8018 fi
8019 if test -z "$ac_cv_prog_LIPO"; then
8020   ac_ct_LIPO=$LIPO
8021   # Extract the first word of "lipo", so it can be a program name with args.
8022 set dummy lipo; ac_word=$2
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8024 $as_echo_n "checking for $ac_word... " >&6; }
8025 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8026   $as_echo_n "(cached) " >&6
8027 else
8028   if test -n "$ac_ct_LIPO"; then
8029   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8030 else
8031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032 for as_dir in $PATH
8033 do
8034   IFS=$as_save_IFS
8035   test -z "$as_dir" && as_dir=.
8036     for ac_exec_ext in '' $ac_executable_extensions; do
8037   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8038     ac_cv_prog_ac_ct_LIPO="lipo"
8039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8040     break 2
8041   fi
8042 done
8043   done
8044 IFS=$as_save_IFS
8045
8046 fi
8047 fi
8048 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8049 if test -n "$ac_ct_LIPO"; then
8050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8051 $as_echo "$ac_ct_LIPO" >&6; }
8052 else
8053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054 $as_echo "no" >&6; }
8055 fi
8056
8057   if test "x$ac_ct_LIPO" = x; then
8058     LIPO=":"
8059   else
8060     case $cross_compiling:$ac_tool_warned in
8061 yes:)
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8064 ac_tool_warned=yes ;;
8065 esac
8066     LIPO=$ac_ct_LIPO
8067   fi
8068 else
8069   LIPO="$ac_cv_prog_LIPO"
8070 fi
8071
8072     if test -n "$ac_tool_prefix"; then
8073   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8074 set dummy ${ac_tool_prefix}otool; ac_word=$2
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076 $as_echo_n "checking for $ac_word... " >&6; }
8077 if ${ac_cv_prog_OTOOL+:} false; then :
8078   $as_echo_n "(cached) " >&6
8079 else
8080   if test -n "$OTOOL"; then
8081   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8082 else
8083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084 for as_dir in $PATH
8085 do
8086   IFS=$as_save_IFS
8087   test -z "$as_dir" && as_dir=.
8088     for ac_exec_ext in '' $ac_executable_extensions; do
8089   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8090     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8092     break 2
8093   fi
8094 done
8095   done
8096 IFS=$as_save_IFS
8097
8098 fi
8099 fi
8100 OTOOL=$ac_cv_prog_OTOOL
8101 if test -n "$OTOOL"; then
8102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8103 $as_echo "$OTOOL" >&6; }
8104 else
8105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106 $as_echo "no" >&6; }
8107 fi
8108
8109
8110 fi
8111 if test -z "$ac_cv_prog_OTOOL"; then
8112   ac_ct_OTOOL=$OTOOL
8113   # Extract the first word of "otool", so it can be a program name with args.
8114 set dummy otool; ac_word=$2
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8116 $as_echo_n "checking for $ac_word... " >&6; }
8117 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8118   $as_echo_n "(cached) " >&6
8119 else
8120   if test -n "$ac_ct_OTOOL"; then
8121   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8122 else
8123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124 for as_dir in $PATH
8125 do
8126   IFS=$as_save_IFS
8127   test -z "$as_dir" && as_dir=.
8128     for ac_exec_ext in '' $ac_executable_extensions; do
8129   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8130     ac_cv_prog_ac_ct_OTOOL="otool"
8131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8132     break 2
8133   fi
8134 done
8135   done
8136 IFS=$as_save_IFS
8137
8138 fi
8139 fi
8140 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8141 if test -n "$ac_ct_OTOOL"; then
8142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8143 $as_echo "$ac_ct_OTOOL" >&6; }
8144 else
8145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146 $as_echo "no" >&6; }
8147 fi
8148
8149   if test "x$ac_ct_OTOOL" = x; then
8150     OTOOL=":"
8151   else
8152     case $cross_compiling:$ac_tool_warned in
8153 yes:)
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8156 ac_tool_warned=yes ;;
8157 esac
8158     OTOOL=$ac_ct_OTOOL
8159   fi
8160 else
8161   OTOOL="$ac_cv_prog_OTOOL"
8162 fi
8163
8164     if test -n "$ac_tool_prefix"; then
8165   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8166 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8168 $as_echo_n "checking for $ac_word... " >&6; }
8169 if ${ac_cv_prog_OTOOL64+:} false; then :
8170   $as_echo_n "(cached) " >&6
8171 else
8172   if test -n "$OTOOL64"; then
8173   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8174 else
8175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176 for as_dir in $PATH
8177 do
8178   IFS=$as_save_IFS
8179   test -z "$as_dir" && as_dir=.
8180     for ac_exec_ext in '' $ac_executable_extensions; do
8181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8182     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8184     break 2
8185   fi
8186 done
8187   done
8188 IFS=$as_save_IFS
8189
8190 fi
8191 fi
8192 OTOOL64=$ac_cv_prog_OTOOL64
8193 if test -n "$OTOOL64"; then
8194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8195 $as_echo "$OTOOL64" >&6; }
8196 else
8197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8198 $as_echo "no" >&6; }
8199 fi
8200
8201
8202 fi
8203 if test -z "$ac_cv_prog_OTOOL64"; then
8204   ac_ct_OTOOL64=$OTOOL64
8205   # Extract the first word of "otool64", so it can be a program name with args.
8206 set dummy otool64; ac_word=$2
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8208 $as_echo_n "checking for $ac_word... " >&6; }
8209 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8210   $as_echo_n "(cached) " >&6
8211 else
8212   if test -n "$ac_ct_OTOOL64"; then
8213   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8214 else
8215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8216 for as_dir in $PATH
8217 do
8218   IFS=$as_save_IFS
8219   test -z "$as_dir" && as_dir=.
8220     for ac_exec_ext in '' $ac_executable_extensions; do
8221   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8222     ac_cv_prog_ac_ct_OTOOL64="otool64"
8223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8224     break 2
8225   fi
8226 done
8227   done
8228 IFS=$as_save_IFS
8229
8230 fi
8231 fi
8232 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8233 if test -n "$ac_ct_OTOOL64"; then
8234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8235 $as_echo "$ac_ct_OTOOL64" >&6; }
8236 else
8237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8238 $as_echo "no" >&6; }
8239 fi
8240
8241   if test "x$ac_ct_OTOOL64" = x; then
8242     OTOOL64=":"
8243   else
8244     case $cross_compiling:$ac_tool_warned in
8245 yes:)
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8248 ac_tool_warned=yes ;;
8249 esac
8250     OTOOL64=$ac_ct_OTOOL64
8251   fi
8252 else
8253   OTOOL64="$ac_cv_prog_OTOOL64"
8254 fi
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8283 $as_echo_n "checking for -single_module linker flag... " >&6; }
8284 if ${lt_cv_apple_cc_single_mod+:} false; then :
8285   $as_echo_n "(cached) " >&6
8286 else
8287   lt_cv_apple_cc_single_mod=no
8288       if test -z "$LT_MULTI_MODULE"; then
8289         # By default we will add the -single_module flag. You can override
8290         # by either setting the environment variable LT_MULTI_MODULE
8291         # non-empty at configure time, or by adding -multi_module to the
8292         # link flags.
8293         rm -rf libconftest.dylib*
8294         echo "int foo(void){return 1;}" > conftest.c
8295         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8296 -dynamiclib -Wl,-single_module conftest.c" >&5
8297         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8298           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8299         _lt_result=$?
8300         # If there is a non-empty error log, and "single_module"
8301         # appears in it, assume the flag caused a linker warning
8302         if test -s conftest.err && $GREP single_module conftest.err; then
8303           cat conftest.err >&5
8304         # Otherwise, if the output was created with a 0 exit code from
8305         # the compiler, it worked.
8306         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8307           lt_cv_apple_cc_single_mod=yes
8308         else
8309           cat conftest.err >&5
8310         fi
8311         rm -rf libconftest.dylib*
8312         rm -f conftest.*
8313       fi
8314 fi
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8316 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8317
8318     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8319 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8320 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8321   $as_echo_n "(cached) " >&6
8322 else
8323   lt_cv_ld_exported_symbols_list=no
8324       save_LDFLAGS=$LDFLAGS
8325       echo "_main" > conftest.sym
8326       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8327       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h.  */
8329
8330 int
8331 main ()
8332 {
8333
8334   ;
8335   return 0;
8336 }
8337 _ACEOF
8338 if ac_fn_c_try_link "$LINENO"; then :
8339   lt_cv_ld_exported_symbols_list=yes
8340 else
8341   lt_cv_ld_exported_symbols_list=no
8342 fi
8343 rm -f core conftest.err conftest.$ac_objext \
8344     conftest$ac_exeext conftest.$ac_ext
8345         LDFLAGS=$save_LDFLAGS
8346
8347 fi
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8349 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8350
8351     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8352 $as_echo_n "checking for -force_load linker flag... " >&6; }
8353 if ${lt_cv_ld_force_load+:} false; then :
8354   $as_echo_n "(cached) " >&6
8355 else
8356   lt_cv_ld_force_load=no
8357       cat > conftest.c << _LT_EOF
8358 int forced_loaded() { return 2;}
8359 _LT_EOF
8360       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8361       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8362       echo "$AR cr libconftest.a conftest.o" >&5
8363       $AR cr libconftest.a conftest.o 2>&5
8364       echo "$RANLIB libconftest.a" >&5
8365       $RANLIB libconftest.a 2>&5
8366       cat > conftest.c << _LT_EOF
8367 int main() { return 0;}
8368 _LT_EOF
8369       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8370       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8371       _lt_result=$?
8372       if test -s conftest.err && $GREP force_load conftest.err; then
8373         cat conftest.err >&5
8374       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8375         lt_cv_ld_force_load=yes
8376       else
8377         cat conftest.err >&5
8378       fi
8379         rm -f conftest.err libconftest.a conftest conftest.c
8380         rm -rf conftest.dSYM
8381
8382 fi
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8384 $as_echo "$lt_cv_ld_force_load" >&6; }
8385     case $host_os in
8386     rhapsody* | darwin1.[012])
8387       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8388     darwin1.*)
8389       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8390     darwin*) # darwin 5.x on
8391       # if running on 10.5 or later, the deployment target defaults
8392       # to the OS version, if on x86, and 10.4, the deployment
8393       # target defaults to 10.4. Don't you love it?
8394       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8395         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8396           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8397         10.[012][,.]*)
8398           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8399         10.*)
8400           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8401       esac
8402     ;;
8403   esac
8404     if test yes = "$lt_cv_apple_cc_single_mod"; then
8405       _lt_dar_single_mod='$single_module'
8406     fi
8407     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8408       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8409     else
8410       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8411     fi
8412     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8413       _lt_dsymutil='~$DSYMUTIL $lib || :'
8414     else
8415       _lt_dsymutil=
8416     fi
8417     ;;
8418   esac
8419
8420 # func_munge_path_list VARIABLE PATH
8421 # -----------------------------------
8422 # VARIABLE is name of variable containing _space_ separated list of
8423 # directories to be munged by the contents of PATH, which is string
8424 # having a format:
8425 # "DIR[:DIR]:"
8426 #       string "DIR[ DIR]" will be prepended to VARIABLE
8427 # ":DIR[:DIR]"
8428 #       string "DIR[ DIR]" will be appended to VARIABLE
8429 # "DIRP[:DIRP]::[DIRA:]DIRA"
8430 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8431 #       "DIRA[ DIRA]" will be appended to VARIABLE
8432 # "DIR[:DIR]"
8433 #       VARIABLE will be replaced by "DIR[ DIR]"
8434 func_munge_path_list ()
8435 {
8436     case x$2 in
8437     x)
8438         ;;
8439     *:)
8440         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8441         ;;
8442     x:*)
8443         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8444         ;;
8445     *::*)
8446         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8447         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8448         ;;
8449     *)
8450         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8451         ;;
8452     esac
8453 }
8454
8455 for ac_header in dlfcn.h
8456 do :
8457   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8458 "
8459 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8460   cat >>confdefs.h <<_ACEOF
8461 #define HAVE_DLFCN_H 1
8462 _ACEOF
8463
8464 fi
8465
8466 done
8467
8468
8469
8470
8471
8472 # Set options
8473 # Check whether --enable-static was given.
8474 if test "${enable_static+set}" = set; then :
8475   enableval=$enable_static; p=${PACKAGE-default}
8476     case $enableval in
8477     yes) enable_static=yes ;;
8478     no) enable_static=no ;;
8479     *)
8480      enable_static=no
8481       # Look at the argument we got.  We use all the common list separators.
8482       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8483       for pkg in $enableval; do
8484         IFS=$lt_save_ifs
8485         if test "X$pkg" = "X$p"; then
8486           enable_static=yes
8487         fi
8488       done
8489       IFS=$lt_save_ifs
8490       ;;
8491     esac
8492 else
8493   enable_static=no
8494 fi
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505         enable_dlopen=no
8506
8507
8508   enable_win32_dll=no
8509
8510
8511             # Check whether --enable-shared was given.
8512 if test "${enable_shared+set}" = set; then :
8513   enableval=$enable_shared; p=${PACKAGE-default}
8514     case $enableval in
8515     yes) enable_shared=yes ;;
8516     no) enable_shared=no ;;
8517     *)
8518       enable_shared=no
8519       # Look at the argument we got.  We use all the common list separators.
8520       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8521       for pkg in $enableval; do
8522         IFS=$lt_save_ifs
8523         if test "X$pkg" = "X$p"; then
8524           enable_shared=yes
8525         fi
8526       done
8527       IFS=$lt_save_ifs
8528       ;;
8529     esac
8530 else
8531   enable_shared=yes
8532 fi
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544 # Check whether --with-pic was given.
8545 if test "${with_pic+set}" = set; then :
8546   withval=$with_pic; lt_p=${PACKAGE-default}
8547     case $withval in
8548     yes|no) pic_mode=$withval ;;
8549     *)
8550       pic_mode=default
8551       # Look at the argument we got.  We use all the common list separators.
8552       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8553       for lt_pkg in $withval; do
8554         IFS=$lt_save_ifs
8555         if test "X$lt_pkg" = "X$lt_p"; then
8556           pic_mode=yes
8557         fi
8558       done
8559       IFS=$lt_save_ifs
8560       ;;
8561     esac
8562 else
8563   pic_mode=default
8564 fi
8565
8566
8567
8568
8569
8570
8571
8572
8573   # Check whether --enable-fast-install was given.
8574 if test "${enable_fast_install+set}" = set; then :
8575   enableval=$enable_fast_install; p=${PACKAGE-default}
8576     case $enableval in
8577     yes) enable_fast_install=yes ;;
8578     no) enable_fast_install=no ;;
8579     *)
8580       enable_fast_install=no
8581       # Look at the argument we got.  We use all the common list separators.
8582       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8583       for pkg in $enableval; do
8584         IFS=$lt_save_ifs
8585         if test "X$pkg" = "X$p"; then
8586           enable_fast_install=yes
8587         fi
8588       done
8589       IFS=$lt_save_ifs
8590       ;;
8591     esac
8592 else
8593   enable_fast_install=yes
8594 fi
8595
8596
8597
8598
8599
8600
8601
8602
8603   shared_archive_member_spec=
8604 case $host,$enable_shared in
8605 power*-*-aix[5-9]*,yes)
8606   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8607 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8608
8609 # Check whether --with-aix-soname was given.
8610 if test "${with_aix_soname+set}" = set; then :
8611   withval=$with_aix_soname; case $withval in
8612     aix|svr4|both)
8613       ;;
8614     *)
8615       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8616       ;;
8617     esac
8618     lt_cv_with_aix_soname=$with_aix_soname
8619 else
8620   if ${lt_cv_with_aix_soname+:} false; then :
8621   $as_echo_n "(cached) " >&6
8622 else
8623   lt_cv_with_aix_soname=aix
8624 fi
8625
8626     with_aix_soname=$lt_cv_with_aix_soname
8627 fi
8628
8629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8630 $as_echo "$with_aix_soname" >&6; }
8631   if test aix != "$with_aix_soname"; then
8632     # For the AIX way of multilib, we name the shared archive member
8633     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8634     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8635     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8636     # the AIX toolchain works better with OBJECT_MODE set (default 32).
8637     if test 64 = "${OBJECT_MODE-32}"; then
8638       shared_archive_member_spec=shr_64
8639     else
8640       shared_archive_member_spec=shr
8641     fi
8642   fi
8643   ;;
8644 *)
8645   with_aix_soname=aix
8646   ;;
8647 esac
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658 # This can be used to rebuild libtool when needed
8659 LIBTOOL_DEPS=$ltmain
8660
8661 # Always use our own libtool.
8662 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693 test -z "$LN_S" && LN_S="ln -s"
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708 if test -n "${ZSH_VERSION+set}"; then
8709    setopt NO_GLOB_SUBST
8710 fi
8711
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8713 $as_echo_n "checking for objdir... " >&6; }
8714 if ${lt_cv_objdir+:} false; then :
8715   $as_echo_n "(cached) " >&6
8716 else
8717   rm -f .libs 2>/dev/null
8718 mkdir .libs 2>/dev/null
8719 if test -d .libs; then
8720   lt_cv_objdir=.libs
8721 else
8722   # MS-DOS does not allow filenames that begin with a dot.
8723   lt_cv_objdir=_libs
8724 fi
8725 rmdir .libs 2>/dev/null
8726 fi
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8728 $as_echo "$lt_cv_objdir" >&6; }
8729 objdir=$lt_cv_objdir
8730
8731
8732
8733
8734
8735 cat >>confdefs.h <<_ACEOF
8736 #define LT_OBJDIR "$lt_cv_objdir/"
8737 _ACEOF
8738
8739
8740
8741
8742 case $host_os in
8743 aix3*)
8744   # AIX sometimes has problems with the GCC collect2 program.  For some
8745   # reason, if we set the COLLECT_NAMES environment variable, the problems
8746   # vanish in a puff of smoke.
8747   if test set != "${COLLECT_NAMES+set}"; then
8748     COLLECT_NAMES=
8749     export COLLECT_NAMES
8750   fi
8751   ;;
8752 esac
8753
8754 # Global variables:
8755 ofile=libtool
8756 can_build_shared=yes
8757
8758 # All known linkers require a '.a' archive for static linking (except MSVC,
8759 # which needs '.lib').
8760 libext=a
8761
8762 with_gnu_ld=$lt_cv_prog_gnu_ld
8763
8764 old_CC=$CC
8765 old_CFLAGS=$CFLAGS
8766
8767 # Set sane defaults for various variables
8768 test -z "$CC" && CC=cc
8769 test -z "$LTCC" && LTCC=$CC
8770 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8771 test -z "$LD" && LD=ld
8772 test -z "$ac_objext" && ac_objext=o
8773
8774 func_cc_basename $compiler
8775 cc_basename=$func_cc_basename_result
8776
8777
8778 # Only perform the check for file, if the check method requires it
8779 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8780 case $deplibs_check_method in
8781 file_magic*)
8782   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8783     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8784 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8785 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8786   $as_echo_n "(cached) " >&6
8787 else
8788   case $MAGIC_CMD in
8789 [\\/*] |  ?:[\\/]*)
8790   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8791   ;;
8792 *)
8793   lt_save_MAGIC_CMD=$MAGIC_CMD
8794   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8795   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8796   for ac_dir in $ac_dummy; do
8797     IFS=$lt_save_ifs
8798     test -z "$ac_dir" && ac_dir=.
8799     if test -f "$ac_dir/${ac_tool_prefix}file"; then
8800       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8801       if test -n "$file_magic_test_file"; then
8802         case $deplibs_check_method in
8803         "file_magic "*)
8804           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8805           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8806           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8807             $EGREP "$file_magic_regex" > /dev/null; then
8808             :
8809           else
8810             cat <<_LT_EOF 1>&2
8811
8812 *** Warning: the command libtool uses to detect shared libraries,
8813 *** $file_magic_cmd, produces output that libtool cannot recognize.
8814 *** The result is that libtool may fail to recognize shared libraries
8815 *** as such.  This will affect the creation of libtool libraries that
8816 *** depend on shared libraries, but programs linked with such libtool
8817 *** libraries will work regardless of this problem.  Nevertheless, you
8818 *** may want to report the problem to your system manager and/or to
8819 *** bug-libtool@gnu.org
8820
8821 _LT_EOF
8822           fi ;;
8823         esac
8824       fi
8825       break
8826     fi
8827   done
8828   IFS=$lt_save_ifs
8829   MAGIC_CMD=$lt_save_MAGIC_CMD
8830   ;;
8831 esac
8832 fi
8833
8834 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8835 if test -n "$MAGIC_CMD"; then
8836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8837 $as_echo "$MAGIC_CMD" >&6; }
8838 else
8839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840 $as_echo "no" >&6; }
8841 fi
8842
8843
8844
8845
8846
8847 if test -z "$lt_cv_path_MAGIC_CMD"; then
8848   if test -n "$ac_tool_prefix"; then
8849     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8850 $as_echo_n "checking for file... " >&6; }
8851 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8852   $as_echo_n "(cached) " >&6
8853 else
8854   case $MAGIC_CMD in
8855 [\\/*] |  ?:[\\/]*)
8856   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8857   ;;
8858 *)
8859   lt_save_MAGIC_CMD=$MAGIC_CMD
8860   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8861   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8862   for ac_dir in $ac_dummy; do
8863     IFS=$lt_save_ifs
8864     test -z "$ac_dir" && ac_dir=.
8865     if test -f "$ac_dir/file"; then
8866       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8867       if test -n "$file_magic_test_file"; then
8868         case $deplibs_check_method in
8869         "file_magic "*)
8870           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8871           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8872           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8873             $EGREP "$file_magic_regex" > /dev/null; then
8874             :
8875           else
8876             cat <<_LT_EOF 1>&2
8877
8878 *** Warning: the command libtool uses to detect shared libraries,
8879 *** $file_magic_cmd, produces output that libtool cannot recognize.
8880 *** The result is that libtool may fail to recognize shared libraries
8881 *** as such.  This will affect the creation of libtool libraries that
8882 *** depend on shared libraries, but programs linked with such libtool
8883 *** libraries will work regardless of this problem.  Nevertheless, you
8884 *** may want to report the problem to your system manager and/or to
8885 *** bug-libtool@gnu.org
8886
8887 _LT_EOF
8888           fi ;;
8889         esac
8890       fi
8891       break
8892     fi
8893   done
8894   IFS=$lt_save_ifs
8895   MAGIC_CMD=$lt_save_MAGIC_CMD
8896   ;;
8897 esac
8898 fi
8899
8900 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8901 if test -n "$MAGIC_CMD"; then
8902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8903 $as_echo "$MAGIC_CMD" >&6; }
8904 else
8905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906 $as_echo "no" >&6; }
8907 fi
8908
8909
8910   else
8911     MAGIC_CMD=:
8912   fi
8913 fi
8914
8915   fi
8916   ;;
8917 esac
8918
8919 # Use C for the default configuration in the libtool script
8920
8921 lt_save_CC=$CC
8922 ac_ext=c
8923 ac_cpp='$CPP $CPPFLAGS'
8924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8927
8928
8929 # Source file extension for C test sources.
8930 ac_ext=c
8931
8932 # Object file extension for compiled C test sources.
8933 objext=o
8934 objext=$objext
8935
8936 # Code to be used in simple compile tests
8937 lt_simple_compile_test_code="int some_variable = 0;"
8938
8939 # Code to be used in simple link tests
8940 lt_simple_link_test_code='int main(){return(0);}'
8941
8942
8943
8944
8945
8946
8947
8948 # If no C compiler was specified, use CC.
8949 LTCC=${LTCC-"$CC"}
8950
8951 # If no C compiler flags were specified, use CFLAGS.
8952 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8953
8954 # Allow CC to be a program name with arguments.
8955 compiler=$CC
8956
8957 # Save the default compiler, since it gets overwritten when the other
8958 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8959 compiler_DEFAULT=$CC
8960
8961 # save warnings/boilerplate of simple test code
8962 ac_outfile=conftest.$ac_objext
8963 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8964 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8965 _lt_compiler_boilerplate=`cat conftest.err`
8966 $RM conftest*
8967
8968 ac_outfile=conftest.$ac_objext
8969 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8970 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8971 _lt_linker_boilerplate=`cat conftest.err`
8972 $RM -r conftest*
8973
8974
8975 ## CAVEAT EMPTOR:
8976 ## There is no encapsulation within the following macros, do not change
8977 ## the running order or otherwise move them around unless you know exactly
8978 ## what you are doing...
8979 if test -n "$compiler"; then
8980
8981 lt_prog_compiler_no_builtin_flag=
8982
8983 if test yes = "$GCC"; then
8984   case $cc_basename in
8985   nvcc*)
8986     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8987   *)
8988     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8989   esac
8990
8991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8992 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8993 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8994   $as_echo_n "(cached) " >&6
8995 else
8996   lt_cv_prog_compiler_rtti_exceptions=no
8997    ac_outfile=conftest.$ac_objext
8998    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8999    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9000    # Insert the option either (1) after the last *FLAGS variable, or
9001    # (2) before a word containing "conftest.", or (3) at the end.
9002    # Note that $ac_compile itself does not contain backslashes and begins
9003    # with a dollar sign (not a hyphen), so the echo should work correctly.
9004    # The option is referenced via a variable to avoid confusing sed.
9005    lt_compile=`echo "$ac_compile" | $SED \
9006    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9007    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9008    -e 's:$: $lt_compiler_flag:'`
9009    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9010    (eval "$lt_compile" 2>conftest.err)
9011    ac_status=$?
9012    cat conftest.err >&5
9013    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014    if (exit $ac_status) && test -s "$ac_outfile"; then
9015      # The compiler can only warn and ignore the option if not recognized
9016      # So say no if there are warnings other than the usual output.
9017      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9018      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9019      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9020        lt_cv_prog_compiler_rtti_exceptions=yes
9021      fi
9022    fi
9023    $RM conftest*
9024
9025 fi
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9027 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9028
9029 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9030     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9031 else
9032     :
9033 fi
9034
9035 fi
9036
9037
9038
9039
9040
9041
9042   lt_prog_compiler_wl=
9043 lt_prog_compiler_pic=
9044 lt_prog_compiler_static=
9045
9046
9047   if test yes = "$GCC"; then
9048     lt_prog_compiler_wl='-Wl,'
9049     lt_prog_compiler_static='-static'
9050
9051     case $host_os in
9052       aix*)
9053       # All AIX code is PIC.
9054       if test ia64 = "$host_cpu"; then
9055         # AIX 5 now supports IA64 processor
9056         lt_prog_compiler_static='-Bstatic'
9057       fi
9058       lt_prog_compiler_pic='-fPIC'
9059       ;;
9060
9061     amigaos*)
9062       case $host_cpu in
9063       powerpc)
9064             # see comment about AmigaOS4 .so support
9065             lt_prog_compiler_pic='-fPIC'
9066         ;;
9067       m68k)
9068             # FIXME: we need at least 68020 code to build shared libraries, but
9069             # adding the '-m68020' flag to GCC prevents building anything better,
9070             # like '-m68040'.
9071             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9072         ;;
9073       esac
9074       ;;
9075
9076     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9077       # PIC is the default for these OSes.
9078       ;;
9079
9080     mingw* | cygwin* | pw32* | os2* | cegcc*)
9081       # This hack is so that the source file can tell whether it is being
9082       # built for inclusion in a dll (and should export symbols for example).
9083       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9084       # (--disable-auto-import) libraries
9085       lt_prog_compiler_pic='-DDLL_EXPORT'
9086       case $host_os in
9087       os2*)
9088         lt_prog_compiler_static='$wl-static'
9089         ;;
9090       esac
9091       ;;
9092
9093     darwin* | rhapsody*)
9094       # PIC is the default on this platform
9095       # Common symbols not allowed in MH_DYLIB files
9096       lt_prog_compiler_pic='-fno-common'
9097       ;;
9098
9099     haiku*)
9100       # PIC is the default for Haiku.
9101       # The "-static" flag exists, but is broken.
9102       lt_prog_compiler_static=
9103       ;;
9104
9105     hpux*)
9106       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9107       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9108       # sets the default TLS model and affects inlining.
9109       case $host_cpu in
9110       hppa*64*)
9111         # +Z the default
9112         ;;
9113       *)
9114         lt_prog_compiler_pic='-fPIC'
9115         ;;
9116       esac
9117       ;;
9118
9119     interix[3-9]*)
9120       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9121       # Instead, we relocate shared libraries at runtime.
9122       ;;
9123
9124     msdosdjgpp*)
9125       # Just because we use GCC doesn't mean we suddenly get shared libraries
9126       # on systems that don't support them.
9127       lt_prog_compiler_can_build_shared=no
9128       enable_shared=no
9129       ;;
9130
9131     *nto* | *qnx*)
9132       # QNX uses GNU C++, but need to define -shared option too, otherwise
9133       # it will coredump.
9134       lt_prog_compiler_pic='-fPIC -shared'
9135       ;;
9136
9137     sysv4*MP*)
9138       if test -d /usr/nec; then
9139         lt_prog_compiler_pic=-Kconform_pic
9140       fi
9141       ;;
9142
9143     *)
9144       lt_prog_compiler_pic='-fPIC'
9145       ;;
9146     esac
9147
9148     case $cc_basename in
9149     nvcc*) # Cuda Compiler Driver 2.2
9150       lt_prog_compiler_wl='-Xlinker '
9151       if test -n "$lt_prog_compiler_pic"; then
9152         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9153       fi
9154       ;;
9155     esac
9156   else
9157     # PORTME Check for flag to pass linker flags through the system compiler.
9158     case $host_os in
9159     aix*)
9160       lt_prog_compiler_wl='-Wl,'
9161       if test ia64 = "$host_cpu"; then
9162         # AIX 5 now supports IA64 processor
9163         lt_prog_compiler_static='-Bstatic'
9164       else
9165         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9166       fi
9167       ;;
9168
9169     darwin* | rhapsody*)
9170       # PIC is the default on this platform
9171       # Common symbols not allowed in MH_DYLIB files
9172       lt_prog_compiler_pic='-fno-common'
9173       case $cc_basename in
9174       nagfor*)
9175         # NAG Fortran compiler
9176         lt_prog_compiler_wl='-Wl,-Wl,,'
9177         lt_prog_compiler_pic='-PIC'
9178         lt_prog_compiler_static='-Bstatic'
9179         ;;
9180       esac
9181       ;;
9182
9183     mingw* | cygwin* | pw32* | os2* | cegcc*)
9184       # This hack is so that the source file can tell whether it is being
9185       # built for inclusion in a dll (and should export symbols for example).
9186       lt_prog_compiler_pic='-DDLL_EXPORT'
9187       case $host_os in
9188       os2*)
9189         lt_prog_compiler_static='$wl-static'
9190         ;;
9191       esac
9192       ;;
9193
9194     hpux9* | hpux10* | hpux11*)
9195       lt_prog_compiler_wl='-Wl,'
9196       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9197       # not for PA HP-UX.
9198       case $host_cpu in
9199       hppa*64*|ia64*)
9200         # +Z the default
9201         ;;
9202       *)
9203         lt_prog_compiler_pic='+Z'
9204         ;;
9205       esac
9206       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9207       lt_prog_compiler_static='$wl-a ${wl}archive'
9208       ;;
9209
9210     irix5* | irix6* | nonstopux*)
9211       lt_prog_compiler_wl='-Wl,'
9212       # PIC (with -KPIC) is the default.
9213       lt_prog_compiler_static='-non_shared'
9214       ;;
9215
9216     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9217       case $cc_basename in
9218       # old Intel for x86_64, which still supported -KPIC.
9219       ecc*)
9220         lt_prog_compiler_wl='-Wl,'
9221         lt_prog_compiler_pic='-KPIC'
9222         lt_prog_compiler_static='-static'
9223         ;;
9224       # flang / f18. f95 an alias for gfortran or flang on Debian
9225       flang* | f18* | f95*)
9226         lt_prog_compiler_wl='-Wl,'
9227         lt_prog_compiler_pic='-fPIC'
9228         lt_prog_compiler_static='-static'
9229         ;;
9230       # icc used to be incompatible with GCC.
9231       # ICC 10 doesn't accept -KPIC any more.
9232       icc* | ifort*)
9233         lt_prog_compiler_wl='-Wl,'
9234         lt_prog_compiler_pic='-fPIC'
9235         lt_prog_compiler_static='-static'
9236         ;;
9237       # Lahey Fortran 8.1.
9238       lf95*)
9239         lt_prog_compiler_wl='-Wl,'
9240         lt_prog_compiler_pic='--shared'
9241         lt_prog_compiler_static='--static'
9242         ;;
9243       nagfor*)
9244         # NAG Fortran compiler
9245         lt_prog_compiler_wl='-Wl,-Wl,,'
9246         lt_prog_compiler_pic='-PIC'
9247         lt_prog_compiler_static='-Bstatic'
9248         ;;
9249       tcc*)
9250         # Fabrice Bellard et al's Tiny C Compiler
9251         lt_prog_compiler_wl='-Wl,'
9252         lt_prog_compiler_pic='-fPIC'
9253         lt_prog_compiler_static='-static'
9254         ;;
9255       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9256         # Portland Group compilers (*not* the Pentium gcc compiler,
9257         # which looks to be a dead project)
9258         lt_prog_compiler_wl='-Wl,'
9259         lt_prog_compiler_pic='-fpic'
9260         lt_prog_compiler_static='-Bstatic'
9261         ;;
9262       ccc*)
9263         lt_prog_compiler_wl='-Wl,'
9264         # All Alpha code is PIC.
9265         lt_prog_compiler_static='-non_shared'
9266         ;;
9267       xl* | bgxl* | bgf* | mpixl*)
9268         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9269         lt_prog_compiler_wl='-Wl,'
9270         lt_prog_compiler_pic='-qpic'
9271         lt_prog_compiler_static='-qstaticlink'
9272         ;;
9273       *)
9274         case `$CC -V 2>&1 | sed 5q` in
9275         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9276           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9277           lt_prog_compiler_pic='-KPIC'
9278           lt_prog_compiler_static='-Bstatic'
9279           lt_prog_compiler_wl=''
9280           ;;
9281         *Sun\ F* | *Sun*Fortran*)
9282           lt_prog_compiler_pic='-KPIC'
9283           lt_prog_compiler_static='-Bstatic'
9284           lt_prog_compiler_wl='-Qoption ld '
9285           ;;
9286         *Sun\ C*)
9287           # Sun C 5.9
9288           lt_prog_compiler_pic='-KPIC'
9289           lt_prog_compiler_static='-Bstatic'
9290           lt_prog_compiler_wl='-Wl,'
9291           ;;
9292         *Intel*\ [CF]*Compiler*)
9293           lt_prog_compiler_wl='-Wl,'
9294           lt_prog_compiler_pic='-fPIC'
9295           lt_prog_compiler_static='-static'
9296           ;;
9297         *Portland\ Group*)
9298           lt_prog_compiler_wl='-Wl,'
9299           lt_prog_compiler_pic='-fpic'
9300           lt_prog_compiler_static='-Bstatic'
9301           ;;
9302         esac
9303         ;;
9304       esac
9305       ;;
9306
9307     newsos6)
9308       lt_prog_compiler_pic='-KPIC'
9309       lt_prog_compiler_static='-Bstatic'
9310       ;;
9311
9312     *nto* | *qnx*)
9313       # QNX uses GNU C++, but need to define -shared option too, otherwise
9314       # it will coredump.
9315       lt_prog_compiler_pic='-fPIC -shared'
9316       ;;
9317
9318     osf3* | osf4* | osf5*)
9319       lt_prog_compiler_wl='-Wl,'
9320       # All OSF/1 code is PIC.
9321       lt_prog_compiler_static='-non_shared'
9322       ;;
9323
9324     rdos*)
9325       lt_prog_compiler_static='-non_shared'
9326       ;;
9327
9328     solaris*)
9329       lt_prog_compiler_pic='-KPIC'
9330       lt_prog_compiler_static='-Bstatic'
9331       case $cc_basename in
9332       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9333         lt_prog_compiler_wl='-Qoption ld ';;
9334       *)
9335         lt_prog_compiler_wl='-Wl,';;
9336       esac
9337       ;;
9338
9339     sunos4*)
9340       lt_prog_compiler_wl='-Qoption ld '
9341       lt_prog_compiler_pic='-PIC'
9342       lt_prog_compiler_static='-Bstatic'
9343       ;;
9344
9345     sysv4 | sysv4.2uw2* | sysv4.3*)
9346       lt_prog_compiler_wl='-Wl,'
9347       lt_prog_compiler_pic='-KPIC'
9348       lt_prog_compiler_static='-Bstatic'
9349       ;;
9350
9351     sysv4*MP*)
9352       if test -d /usr/nec; then
9353         lt_prog_compiler_pic='-Kconform_pic'
9354         lt_prog_compiler_static='-Bstatic'
9355       fi
9356       ;;
9357
9358     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9359       lt_prog_compiler_wl='-Wl,'
9360       lt_prog_compiler_pic='-KPIC'
9361       lt_prog_compiler_static='-Bstatic'
9362       ;;
9363
9364     unicos*)
9365       lt_prog_compiler_wl='-Wl,'
9366       lt_prog_compiler_can_build_shared=no
9367       ;;
9368
9369     uts4*)
9370       lt_prog_compiler_pic='-pic'
9371       lt_prog_compiler_static='-Bstatic'
9372       ;;
9373
9374     *)
9375       lt_prog_compiler_can_build_shared=no
9376       ;;
9377     esac
9378   fi
9379
9380 case $host_os in
9381   # For platforms that do not support PIC, -DPIC is meaningless:
9382   *djgpp*)
9383     lt_prog_compiler_pic=
9384     ;;
9385   *)
9386     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9387     ;;
9388 esac
9389
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9391 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9392 if ${lt_cv_prog_compiler_pic+:} false; then :
9393   $as_echo_n "(cached) " >&6
9394 else
9395   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9396 fi
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9398 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9399 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9400
9401 #
9402 # Check to make sure the PIC flag actually works.
9403 #
9404 if test -n "$lt_prog_compiler_pic"; then
9405   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9406 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9407 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9408   $as_echo_n "(cached) " >&6
9409 else
9410   lt_cv_prog_compiler_pic_works=no
9411    ac_outfile=conftest.$ac_objext
9412    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9413    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9414    # Insert the option either (1) after the last *FLAGS variable, or
9415    # (2) before a word containing "conftest.", or (3) at the end.
9416    # Note that $ac_compile itself does not contain backslashes and begins
9417    # with a dollar sign (not a hyphen), so the echo should work correctly.
9418    # The option is referenced via a variable to avoid confusing sed.
9419    lt_compile=`echo "$ac_compile" | $SED \
9420    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9421    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9422    -e 's:$: $lt_compiler_flag:'`
9423    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9424    (eval "$lt_compile" 2>conftest.err)
9425    ac_status=$?
9426    cat conftest.err >&5
9427    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428    if (exit $ac_status) && test -s "$ac_outfile"; then
9429      # The compiler can only warn and ignore the option if not recognized
9430      # So say no if there are warnings other than the usual output.
9431      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9432      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9433      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9434        lt_cv_prog_compiler_pic_works=yes
9435      fi
9436    fi
9437    $RM conftest*
9438
9439 fi
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9441 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9442
9443 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9444     case $lt_prog_compiler_pic in
9445      "" | " "*) ;;
9446      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9447      esac
9448 else
9449     lt_prog_compiler_pic=
9450      lt_prog_compiler_can_build_shared=no
9451 fi
9452
9453 fi
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465 #
9466 # Check to make sure the static flag actually works.
9467 #
9468 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9470 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9471 if ${lt_cv_prog_compiler_static_works+:} false; then :
9472   $as_echo_n "(cached) " >&6
9473 else
9474   lt_cv_prog_compiler_static_works=no
9475    save_LDFLAGS=$LDFLAGS
9476    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9477    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9478    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9479      # The linker can only warn and ignore the option if not recognized
9480      # So say no if there are warnings
9481      if test -s conftest.err; then
9482        # Append any errors to the config.log.
9483        cat conftest.err 1>&5
9484        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9485        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9486        if diff conftest.exp conftest.er2 >/dev/null; then
9487          lt_cv_prog_compiler_static_works=yes
9488        fi
9489      else
9490        lt_cv_prog_compiler_static_works=yes
9491      fi
9492    fi
9493    $RM -r conftest*
9494    LDFLAGS=$save_LDFLAGS
9495
9496 fi
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9498 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9499
9500 if test yes = "$lt_cv_prog_compiler_static_works"; then
9501     :
9502 else
9503     lt_prog_compiler_static=
9504 fi
9505
9506
9507
9508
9509
9510
9511
9512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9513 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9514 if ${lt_cv_prog_compiler_c_o+:} false; then :
9515   $as_echo_n "(cached) " >&6
9516 else
9517   lt_cv_prog_compiler_c_o=no
9518    $RM -r conftest 2>/dev/null
9519    mkdir conftest
9520    cd conftest
9521    mkdir out
9522    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9523
9524    lt_compiler_flag="-o out/conftest2.$ac_objext"
9525    # Insert the option either (1) after the last *FLAGS variable, or
9526    # (2) before a word containing "conftest.", or (3) at the end.
9527    # Note that $ac_compile itself does not contain backslashes and begins
9528    # with a dollar sign (not a hyphen), so the echo should work correctly.
9529    lt_compile=`echo "$ac_compile" | $SED \
9530    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9531    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9532    -e 's:$: $lt_compiler_flag:'`
9533    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9534    (eval "$lt_compile" 2>out/conftest.err)
9535    ac_status=$?
9536    cat out/conftest.err >&5
9537    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9539    then
9540      # The compiler can only warn and ignore the option if not recognized
9541      # So say no if there are warnings
9542      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9543      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9544      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9545        lt_cv_prog_compiler_c_o=yes
9546      fi
9547    fi
9548    chmod u+w . 2>&5
9549    $RM conftest*
9550    # SGI C++ compiler will create directory out/ii_files/ for
9551    # template instantiation
9552    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9553    $RM out/* && rmdir out
9554    cd ..
9555    $RM -r conftest
9556    $RM conftest*
9557
9558 fi
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9560 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9561
9562
9563
9564
9565
9566
9567   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9568 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9569 if ${lt_cv_prog_compiler_c_o+:} false; then :
9570   $as_echo_n "(cached) " >&6
9571 else
9572   lt_cv_prog_compiler_c_o=no
9573    $RM -r conftest 2>/dev/null
9574    mkdir conftest
9575    cd conftest
9576    mkdir out
9577    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9578
9579    lt_compiler_flag="-o out/conftest2.$ac_objext"
9580    # Insert the option either (1) after the last *FLAGS variable, or
9581    # (2) before a word containing "conftest.", or (3) at the end.
9582    # Note that $ac_compile itself does not contain backslashes and begins
9583    # with a dollar sign (not a hyphen), so the echo should work correctly.
9584    lt_compile=`echo "$ac_compile" | $SED \
9585    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9586    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9587    -e 's:$: $lt_compiler_flag:'`
9588    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9589    (eval "$lt_compile" 2>out/conftest.err)
9590    ac_status=$?
9591    cat out/conftest.err >&5
9592    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9594    then
9595      # The compiler can only warn and ignore the option if not recognized
9596      # So say no if there are warnings
9597      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9598      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9599      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9600        lt_cv_prog_compiler_c_o=yes
9601      fi
9602    fi
9603    chmod u+w . 2>&5
9604    $RM conftest*
9605    # SGI C++ compiler will create directory out/ii_files/ for
9606    # template instantiation
9607    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9608    $RM out/* && rmdir out
9609    cd ..
9610    $RM -r conftest
9611    $RM conftest*
9612
9613 fi
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9615 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9616
9617
9618
9619
9620 hard_links=nottested
9621 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9622   # do not overwrite the value of need_locks provided by the user
9623   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9624 $as_echo_n "checking if we can lock with hard links... " >&6; }
9625   hard_links=yes
9626   $RM conftest*
9627   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9628   touch conftest.a
9629   ln conftest.a conftest.b 2>&5 || hard_links=no
9630   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9632 $as_echo "$hard_links" >&6; }
9633   if test no = "$hard_links"; then
9634     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9635 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9636     need_locks=warn
9637   fi
9638 else
9639   need_locks=no
9640 fi
9641
9642
9643
9644
9645
9646
9647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9648 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9649
9650   runpath_var=
9651   allow_undefined_flag=
9652   always_export_symbols=no
9653   archive_cmds=
9654   archive_expsym_cmds=
9655   compiler_needs_object=no
9656   enable_shared_with_static_runtimes=no
9657   export_dynamic_flag_spec=
9658   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9659   hardcode_automatic=no
9660   hardcode_direct=no
9661   hardcode_direct_absolute=no
9662   hardcode_libdir_flag_spec=
9663   hardcode_libdir_separator=
9664   hardcode_minus_L=no
9665   hardcode_shlibpath_var=unsupported
9666   inherit_rpath=no
9667   link_all_deplibs=unknown
9668   module_cmds=
9669   module_expsym_cmds=
9670   old_archive_from_new_cmds=
9671   old_archive_from_expsyms_cmds=
9672   thread_safe_flag_spec=
9673   whole_archive_flag_spec=
9674   # include_expsyms should be a list of space-separated symbols to be *always*
9675   # included in the symbol list
9676   include_expsyms=
9677   # exclude_expsyms can be an extended regexp of symbols to exclude
9678   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9679   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9680   # as well as any symbol that contains 'd'.
9681   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9682   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9683   # platforms (ab)use it in PIC code, but their linkers get confused if
9684   # the symbol is explicitly referenced.  Since portable code cannot
9685   # rely on this symbol name, it's probably fine to never include it in
9686   # preloaded symbol tables.
9687   # Exclude shared library initialization/finalization symbols.
9688   extract_expsyms_cmds=
9689
9690   case $host_os in
9691   cygwin* | mingw* | pw32* | cegcc*)
9692     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9693     # When not using gcc, we currently assume that we are using
9694     # Microsoft Visual C++.
9695     if test yes != "$GCC"; then
9696       with_gnu_ld=no
9697     fi
9698     ;;
9699   interix*)
9700     # we just hope/assume this is gcc and not c89 (= MSVC++)
9701     with_gnu_ld=yes
9702     ;;
9703   openbsd* | bitrig*)
9704     with_gnu_ld=no
9705     ;;
9706   linux* | k*bsd*-gnu | gnu*)
9707     link_all_deplibs=no
9708     ;;
9709   esac
9710
9711   ld_shlibs=yes
9712
9713   # On some targets, GNU ld is compatible enough with the native linker
9714   # that we're better off using the native interface for both.
9715   lt_use_gnu_ld_interface=no
9716   if test yes = "$with_gnu_ld"; then
9717     case $host_os in
9718       aix*)
9719         # The AIX port of GNU ld has always aspired to compatibility
9720         # with the native linker.  However, as the warning in the GNU ld
9721         # block says, versions before 2.19.5* couldn't really create working
9722         # shared libraries, regardless of the interface used.
9723         case `$LD -v 2>&1` in
9724           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9725           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9726           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9727           *)
9728             lt_use_gnu_ld_interface=yes
9729             ;;
9730         esac
9731         ;;
9732       *)
9733         lt_use_gnu_ld_interface=yes
9734         ;;
9735     esac
9736   fi
9737
9738   if test yes = "$lt_use_gnu_ld_interface"; then
9739     # If archive_cmds runs LD, not CC, wlarc should be empty
9740     wlarc='$wl'
9741
9742     # Set some defaults for GNU ld with shared library support. These
9743     # are reset later if shared libraries are not supported. Putting them
9744     # here allows them to be overridden if necessary.
9745     runpath_var=LD_RUN_PATH
9746     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9747     export_dynamic_flag_spec='$wl--export-dynamic'
9748     # ancient GNU ld didn't support --whole-archive et. al.
9749     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9750       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9751     else
9752       whole_archive_flag_spec=
9753     fi
9754     supports_anon_versioning=no
9755     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9756       *GNU\ gold*) supports_anon_versioning=yes ;;
9757       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9758       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9759       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9760       *\ 2.11.*) ;; # other 2.11 versions
9761       *) supports_anon_versioning=yes ;;
9762     esac
9763
9764     # See if GNU ld supports shared libraries.
9765     case $host_os in
9766     aix[3-9]*)
9767       # On AIX/PPC, the GNU linker is very broken
9768       if test ia64 != "$host_cpu"; then
9769         ld_shlibs=no
9770         cat <<_LT_EOF 1>&2
9771
9772 *** Warning: the GNU linker, at least up to release 2.19, is reported
9773 *** to be unable to reliably create shared libraries on AIX.
9774 *** Therefore, libtool is disabling shared libraries support.  If you
9775 *** really care for shared libraries, you may want to install binutils
9776 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9777 *** You will then need to restart the configuration process.
9778
9779 _LT_EOF
9780       fi
9781       ;;
9782
9783     amigaos*)
9784       case $host_cpu in
9785       powerpc)
9786             # see comment about AmigaOS4 .so support
9787             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9788             archive_expsym_cmds=''
9789         ;;
9790       m68k)
9791             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9792             hardcode_libdir_flag_spec='-L$libdir'
9793             hardcode_minus_L=yes
9794         ;;
9795       esac
9796       ;;
9797
9798     beos*)
9799       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9800         allow_undefined_flag=unsupported
9801         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9802         # support --undefined.  This deserves some investigation.  FIXME
9803         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9804       else
9805         ld_shlibs=no
9806       fi
9807       ;;
9808
9809     cygwin* | mingw* | pw32* | cegcc*)
9810       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9811       # as there is no search path for DLLs.
9812       hardcode_libdir_flag_spec='-L$libdir'
9813       export_dynamic_flag_spec='$wl--export-all-symbols'
9814       allow_undefined_flag=unsupported
9815       always_export_symbols=no
9816       enable_shared_with_static_runtimes=yes
9817       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9818       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9819
9820       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9821         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9822         # If the export-symbols file already is a .def file, use it as
9823         # is; otherwise, prepend EXPORTS...
9824         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9825           cp $export_symbols $output_objdir/$soname.def;
9826         else
9827           echo EXPORTS > $output_objdir/$soname.def;
9828           cat $export_symbols >> $output_objdir/$soname.def;
9829         fi~
9830         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9831       else
9832         ld_shlibs=no
9833       fi
9834       ;;
9835
9836     haiku*)
9837       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9838       link_all_deplibs=yes
9839       ;;
9840
9841     os2*)
9842       hardcode_libdir_flag_spec='-L$libdir'
9843       hardcode_minus_L=yes
9844       allow_undefined_flag=unsupported
9845       shrext_cmds=.dll
9846       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9847         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9848         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9849         $ECHO EXPORTS >> $output_objdir/$libname.def~
9850         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9851         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9852         emximp -o $lib $output_objdir/$libname.def'
9853       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9854         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9855         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9856         $ECHO EXPORTS >> $output_objdir/$libname.def~
9857         prefix_cmds="$SED"~
9858         if test EXPORTS = "`$SED 1q $export_symbols`"; then
9859           prefix_cmds="$prefix_cmds -e 1d";
9860         fi~
9861         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9862         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9863         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9864         emximp -o $lib $output_objdir/$libname.def'
9865       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9866       enable_shared_with_static_runtimes=yes
9867       ;;
9868
9869     interix[3-9]*)
9870       hardcode_direct=no
9871       hardcode_shlibpath_var=no
9872       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9873       export_dynamic_flag_spec='$wl-E'
9874       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9875       # Instead, shared libraries are loaded at an image base (0x10000000 by
9876       # default) and relocated if they conflict, which is a slow very memory
9877       # consuming and fragmenting process.  To avoid this, we pick a random,
9878       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9879       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9880       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9881       archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9882       ;;
9883
9884     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9885       tmp_diet=no
9886       if test linux-dietlibc = "$host_os"; then
9887         case $cc_basename in
9888           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9889         esac
9890       fi
9891       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9892          && test no = "$tmp_diet"
9893       then
9894         tmp_addflag=' $pic_flag'
9895         tmp_sharedflag='-shared'
9896         case $cc_basename,$host_cpu in
9897         pgcc*)                          # Portland Group C compiler
9898           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9899           tmp_addflag=' $pic_flag'
9900           ;;
9901         pgf77* | pgf90* | pgf95* | pgfortran*)
9902                                         # Portland Group f77 and f90 compilers
9903           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9904           tmp_addflag=' $pic_flag -Mnomain' ;;
9905         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9906           tmp_addflag=' -i_dynamic' ;;
9907         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9908           tmp_addflag=' -i_dynamic -nofor_main' ;;
9909         ifc* | ifort*)                  # Intel Fortran compiler
9910           tmp_addflag=' -nofor_main' ;;
9911         lf95*)                          # Lahey Fortran 8.1
9912           whole_archive_flag_spec=
9913           tmp_sharedflag='--shared' ;;
9914         nagfor*)                        # NAGFOR 5.3
9915           tmp_sharedflag='-Wl,-shared' ;;
9916         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9917           tmp_sharedflag='-qmkshrobj'
9918           tmp_addflag= ;;
9919         nvcc*)  # Cuda Compiler Driver 2.2
9920           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9921           compiler_needs_object=yes
9922           ;;
9923         esac
9924         case `$CC -V 2>&1 | sed 5q` in
9925         *Sun\ C*)                       # Sun C 5.9
9926           whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9927           compiler_needs_object=yes
9928           tmp_sharedflag='-G' ;;
9929         *Sun\ F*)                       # Sun Fortran 8.3
9930           tmp_sharedflag='-G' ;;
9931         esac
9932         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9933
9934         if test yes = "$supports_anon_versioning"; then
9935           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9936             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9937             echo "local: *; };" >> $output_objdir/$libname.ver~
9938             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9939         fi
9940
9941         case $cc_basename in
9942         tcc*)
9943           export_dynamic_flag_spec='-rdynamic'
9944           ;;
9945         xlf* | bgf* | bgxlf* | mpixlf*)
9946           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9947           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9948           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9949           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9950           if test yes = "$supports_anon_versioning"; then
9951             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9952               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9953               echo "local: *; };" >> $output_objdir/$libname.ver~
9954               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9955           fi
9956           ;;
9957         esac
9958       else
9959         ld_shlibs=no
9960       fi
9961       ;;
9962
9963     netbsd* | netbsdelf*-gnu)
9964       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9965         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9966         wlarc=
9967       else
9968         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9969         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9970       fi
9971       ;;
9972
9973     solaris*)
9974       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9975         ld_shlibs=no
9976         cat <<_LT_EOF 1>&2
9977
9978 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9979 *** create shared libraries on Solaris systems.  Therefore, libtool
9980 *** is disabling shared libraries support.  We urge you to upgrade GNU
9981 *** binutils to release 2.9.1 or newer.  Another option is to modify
9982 *** your PATH or compiler configuration so that the native linker is
9983 *** used, and then restart.
9984
9985 _LT_EOF
9986       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9987         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9988         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9989       else
9990         ld_shlibs=no
9991       fi
9992       ;;
9993
9994     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9995       case `$LD -v 2>&1` in
9996         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9997         ld_shlibs=no
9998         cat <<_LT_EOF 1>&2
9999
10000 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10001 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10002 *** is disabling shared libraries support.  We urge you to upgrade GNU
10003 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10004 *** your PATH or compiler configuration so that the native linker is
10005 *** used, and then restart.
10006
10007 _LT_EOF
10008         ;;
10009         *)
10010           # For security reasons, it is highly recommended that you always
10011           # use absolute paths for naming shared libraries, and exclude the
10012           # DT_RUNPATH tag from executables and libraries.  But doing so
10013           # requires that you compile everything twice, which is a pain.
10014           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10015             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10016             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10017             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10018           else
10019             ld_shlibs=no
10020           fi
10021         ;;
10022       esac
10023       ;;
10024
10025     sunos4*)
10026       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10027       wlarc=
10028       hardcode_direct=yes
10029       hardcode_shlibpath_var=no
10030       ;;
10031
10032     *)
10033       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10034         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10035         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10036       else
10037         ld_shlibs=no
10038       fi
10039       ;;
10040     esac
10041
10042     if test no = "$ld_shlibs"; then
10043       runpath_var=
10044       hardcode_libdir_flag_spec=
10045       export_dynamic_flag_spec=
10046       whole_archive_flag_spec=
10047     fi
10048   else
10049     # PORTME fill in a description of your system's linker (not GNU ld)
10050     case $host_os in
10051     aix3*)
10052       allow_undefined_flag=unsupported
10053       always_export_symbols=yes
10054       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10055       # Note: this linker hardcodes the directories in LIBPATH if there
10056       # are no directories specified by -L.
10057       hardcode_minus_L=yes
10058       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10059         # Neither direct hardcoding nor static linking is supported with a
10060         # broken collect2.
10061         hardcode_direct=unsupported
10062       fi
10063       ;;
10064
10065     aix[4-9]*)
10066       if test ia64 = "$host_cpu"; then
10067         # On IA64, the linker does run time linking by default, so we don't
10068         # have to do anything special.
10069         aix_use_runtimelinking=no
10070         exp_sym_flag='-Bexport'
10071         no_entry_flag=
10072       else
10073         # If we're using GNU nm, then we don't want the "-C" option.
10074         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10075         # Without the "-l" option, or with the "-B" option, AIX nm treats
10076         # weak defined symbols like other global defined symbols, whereas
10077         # GNU nm marks them as "W".
10078         # While the 'weak' keyword is ignored in the Export File, we need
10079         # it in the Import File for the 'aix-soname' feature, so we have
10080         # to replace the "-B" option with "-P" for AIX nm.
10081         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10082           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10083         else
10084           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10085         fi
10086         aix_use_runtimelinking=no
10087
10088         # Test if we are trying to use run time linking or normal
10089         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10090         # have runtime linking enabled, and use it for executables.
10091         # For shared libraries, we enable/disable runtime linking
10092         # depending on the kind of the shared library created -
10093         # when "with_aix_soname,aix_use_runtimelinking" is:
10094         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10095         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10096         #            lib.a           static archive
10097         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10098         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10099         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10100         #            lib.a(lib.so.V) shared, rtl:no
10101         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10102         #            lib.a           static archive
10103         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10104           for ld_flag in $LDFLAGS; do
10105           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10106             aix_use_runtimelinking=yes
10107             break
10108           fi
10109           done
10110           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10111             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10112             # so we don't have lib.a shared libs to link our executables.
10113             # We have to force runtime linking in this case.
10114             aix_use_runtimelinking=yes
10115             LDFLAGS="$LDFLAGS -Wl,-brtl"
10116           fi
10117           ;;
10118         esac
10119
10120         exp_sym_flag='-bexport'
10121         no_entry_flag='-bnoentry'
10122       fi
10123
10124       # When large executables or shared objects are built, AIX ld can
10125       # have problems creating the table of contents.  If linking a library
10126       # or program results in "error TOC overflow" add -mminimal-toc to
10127       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10128       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10129
10130       archive_cmds=''
10131       hardcode_direct=yes
10132       hardcode_direct_absolute=yes
10133       hardcode_libdir_separator=':'
10134       link_all_deplibs=yes
10135       file_list_spec='$wl-f,'
10136       case $with_aix_soname,$aix_use_runtimelinking in
10137       aix,*) ;; # traditional, no import file
10138       svr4,* | *,yes) # use import file
10139         # The Import File defines what to hardcode.
10140         hardcode_direct=no
10141         hardcode_direct_absolute=no
10142         ;;
10143       esac
10144
10145       if test yes = "$GCC"; then
10146         case $host_os in aix4.[012]|aix4.[012].*)
10147         # We only want to do this on AIX 4.2 and lower, the check
10148         # below for broken collect2 doesn't work under 4.3+
10149           collect2name=`$CC -print-prog-name=collect2`
10150           if test -f "$collect2name" &&
10151            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10152           then
10153           # We have reworked collect2
10154           :
10155           else
10156           # We have old collect2
10157           hardcode_direct=unsupported
10158           # It fails to find uninstalled libraries when the uninstalled
10159           # path is not listed in the libpath.  Setting hardcode_minus_L
10160           # to unsupported forces relinking
10161           hardcode_minus_L=yes
10162           hardcode_libdir_flag_spec='-L$libdir'
10163           hardcode_libdir_separator=
10164           fi
10165           ;;
10166         esac
10167         shared_flag='-shared'
10168         if test yes = "$aix_use_runtimelinking"; then
10169           shared_flag="$shared_flag "'$wl-G'
10170         fi
10171         # Need to ensure runtime linking is disabled for the traditional
10172         # shared library, or the linker may eventually find shared libraries
10173         # /with/ Import File - we do not want to mix them.
10174         shared_flag_aix='-shared'
10175         shared_flag_svr4='-shared $wl-G'
10176       else
10177         # not using gcc
10178         if test ia64 = "$host_cpu"; then
10179         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10180         # chokes on -Wl,-G. The following line is correct:
10181           shared_flag='-G'
10182         else
10183           if test yes = "$aix_use_runtimelinking"; then
10184             shared_flag='$wl-G'
10185           else
10186             shared_flag='$wl-bM:SRE'
10187           fi
10188           shared_flag_aix='$wl-bM:SRE'
10189           shared_flag_svr4='$wl-G'
10190         fi
10191       fi
10192
10193       export_dynamic_flag_spec='$wl-bexpall'
10194       # It seems that -bexpall does not export symbols beginning with
10195       # underscore (_), so it is better to generate a list of symbols to export.
10196       always_export_symbols=yes
10197       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10198         # Warning - without using the other runtime loading flags (-brtl),
10199         # -berok will link without error, but may produce a broken library.
10200         allow_undefined_flag='-berok'
10201         # Determine the default libpath from the value encoded in an
10202         # empty executable.
10203         if test set = "${lt_cv_aix_libpath+set}"; then
10204   aix_libpath=$lt_cv_aix_libpath
10205 else
10206   if ${lt_cv_aix_libpath_+:} false; then :
10207   $as_echo_n "(cached) " >&6
10208 else
10209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10210 /* end confdefs.h.  */
10211
10212 int
10213 main ()
10214 {
10215
10216   ;
10217   return 0;
10218 }
10219 _ACEOF
10220 if ac_fn_c_try_link "$LINENO"; then :
10221
10222   lt_aix_libpath_sed='
10223       /Import File Strings/,/^$/ {
10224           /^0/ {
10225               s/^0  *\([^ ]*\) *$/\1/
10226               p
10227           }
10228       }'
10229   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10230   # Check for a 64-bit object if we didn't find anything.
10231   if test -z "$lt_cv_aix_libpath_"; then
10232     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10233   fi
10234 fi
10235 rm -f core conftest.err conftest.$ac_objext \
10236     conftest$ac_exeext conftest.$ac_ext
10237   if test -z "$lt_cv_aix_libpath_"; then
10238     lt_cv_aix_libpath_=/usr/lib:/lib
10239   fi
10240
10241 fi
10242
10243   aix_libpath=$lt_cv_aix_libpath_
10244 fi
10245
10246         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10247         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10248       else
10249         if test ia64 = "$host_cpu"; then
10250           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10251           allow_undefined_flag="-z nodefs"
10252           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
10253         else
10254          # Determine the default libpath from the value encoded in an
10255          # empty executable.
10256          if test set = "${lt_cv_aix_libpath+set}"; then
10257   aix_libpath=$lt_cv_aix_libpath
10258 else
10259   if ${lt_cv_aix_libpath_+:} false; then :
10260   $as_echo_n "(cached) " >&6
10261 else
10262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10263 /* end confdefs.h.  */
10264
10265 int
10266 main ()
10267 {
10268
10269   ;
10270   return 0;
10271 }
10272 _ACEOF
10273 if ac_fn_c_try_link "$LINENO"; then :
10274
10275   lt_aix_libpath_sed='
10276       /Import File Strings/,/^$/ {
10277           /^0/ {
10278               s/^0  *\([^ ]*\) *$/\1/
10279               p
10280           }
10281       }'
10282   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10283   # Check for a 64-bit object if we didn't find anything.
10284   if test -z "$lt_cv_aix_libpath_"; then
10285     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10286   fi
10287 fi
10288 rm -f core conftest.err conftest.$ac_objext \
10289     conftest$ac_exeext conftest.$ac_ext
10290   if test -z "$lt_cv_aix_libpath_"; then
10291     lt_cv_aix_libpath_=/usr/lib:/lib
10292   fi
10293
10294 fi
10295
10296   aix_libpath=$lt_cv_aix_libpath_
10297 fi
10298
10299          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10300           # Warning - without using the other run time loading flags,
10301           # -berok will link without error, but may produce a broken library.
10302           no_undefined_flag=' $wl-bernotok'
10303           allow_undefined_flag=' $wl-berok'
10304           if test yes = "$with_gnu_ld"; then
10305             # We only use this code for GNU lds that support --whole-archive.
10306             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10307           else
10308             # Exported symbols can be pulled into shared objects from archives
10309             whole_archive_flag_spec='$convenience'
10310           fi
10311           archive_cmds_need_lc=yes
10312           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10313           # -brtl affects multiple linker settings, -berok does not and is overridden later
10314           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10315           if test svr4 != "$with_aix_soname"; then
10316             # This is similar to how AIX traditionally builds its shared libraries.
10317             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10318           fi
10319           if test aix != "$with_aix_soname"; then
10320             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10321           else
10322             # used by -dlpreopen to get the symbols
10323             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10324           fi
10325           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10326         fi
10327       fi
10328       ;;
10329
10330     amigaos*)
10331       case $host_cpu in
10332       powerpc)
10333             # see comment about AmigaOS4 .so support
10334             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10335             archive_expsym_cmds=''
10336         ;;
10337       m68k)
10338             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10339             hardcode_libdir_flag_spec='-L$libdir'
10340             hardcode_minus_L=yes
10341         ;;
10342       esac
10343       ;;
10344
10345     bsdi[45]*)
10346       export_dynamic_flag_spec=-rdynamic
10347       ;;
10348
10349     cygwin* | mingw* | pw32* | cegcc*)
10350       # When not using gcc, we currently assume that we are using
10351       # Microsoft Visual C++.
10352       # hardcode_libdir_flag_spec is actually meaningless, as there is
10353       # no search path for DLLs.
10354       case $cc_basename in
10355       cl*)
10356         # Native MSVC
10357         hardcode_libdir_flag_spec=' '
10358         allow_undefined_flag=unsupported
10359         always_export_symbols=yes
10360         file_list_spec='@'
10361         # Tell ltmain to make .lib files, not .a files.
10362         libext=lib
10363         # Tell ltmain to make .dll files, not .so files.
10364         shrext_cmds=.dll
10365         # FIXME: Setting linknames here is a bad hack.
10366         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10367         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10368             cp "$export_symbols" "$output_objdir/$soname.def";
10369             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10370           else
10371             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10372           fi~
10373           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10374           linknames='
10375         # The linker will not automatically build a static lib if we build a DLL.
10376         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10377         enable_shared_with_static_runtimes=yes
10378         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10379         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10380         # Don't use ranlib
10381         old_postinstall_cmds='chmod 644 $oldlib'
10382         postlink_cmds='lt_outputfile="@OUTPUT@"~
10383           lt_tool_outputfile="@TOOL_OUTPUT@"~
10384           case $lt_outputfile in
10385             *.exe|*.EXE) ;;
10386             *)
10387               lt_outputfile=$lt_outputfile.exe
10388               lt_tool_outputfile=$lt_tool_outputfile.exe
10389               ;;
10390           esac~
10391           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10392             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10393             $RM "$lt_outputfile.manifest";
10394           fi'
10395         ;;
10396       *)
10397         # Assume MSVC wrapper
10398         hardcode_libdir_flag_spec=' '
10399         allow_undefined_flag=unsupported
10400         # Tell ltmain to make .lib files, not .a files.
10401         libext=lib
10402         # Tell ltmain to make .dll files, not .so files.
10403         shrext_cmds=.dll
10404         # FIXME: Setting linknames here is a bad hack.
10405         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10406         # The linker will automatically build a .lib file if we build a DLL.
10407         old_archive_from_new_cmds='true'
10408         # FIXME: Should let the user specify the lib program.
10409         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10410         enable_shared_with_static_runtimes=yes
10411         ;;
10412       esac
10413       ;;
10414
10415     darwin* | rhapsody*)
10416
10417
10418   archive_cmds_need_lc=no
10419   hardcode_direct=no
10420   hardcode_automatic=yes
10421   hardcode_shlibpath_var=unsupported
10422   if test yes = "$lt_cv_ld_force_load"; then
10423     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10424
10425   else
10426     whole_archive_flag_spec=''
10427   fi
10428   link_all_deplibs=yes
10429   allow_undefined_flag=$_lt_dar_allow_undefined
10430   case $cc_basename in
10431      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10432      *) _lt_dar_can_shared=$GCC ;;
10433   esac
10434   if test yes = "$_lt_dar_can_shared"; then
10435     output_verbose_link_cmd=func_echo_all
10436     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10437     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10438     archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
10439     module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
10440
10441   else
10442   ld_shlibs=no
10443   fi
10444
10445       ;;
10446
10447     dgux*)
10448       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10449       hardcode_libdir_flag_spec='-L$libdir'
10450       hardcode_shlibpath_var=no
10451       ;;
10452
10453     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10454     # support.  Future versions do this automatically, but an explicit c++rt0.o
10455     # does not break anything, and helps significantly (at the cost of a little
10456     # extra space).
10457     freebsd2.2*)
10458       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10459       hardcode_libdir_flag_spec='-R$libdir'
10460       hardcode_direct=yes
10461       hardcode_shlibpath_var=no
10462       ;;
10463
10464     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10465     freebsd2.*)
10466       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10467       hardcode_direct=yes
10468       hardcode_minus_L=yes
10469       hardcode_shlibpath_var=no
10470       ;;
10471
10472     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10473     freebsd* | dragonfly*)
10474       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10475       hardcode_libdir_flag_spec='-R$libdir'
10476       hardcode_direct=yes
10477       hardcode_shlibpath_var=no
10478       ;;
10479
10480     hpux9*)
10481       if test yes = "$GCC"; then
10482         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10483       else
10484         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10485       fi
10486       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10487       hardcode_libdir_separator=:
10488       hardcode_direct=yes
10489
10490       # hardcode_minus_L: Not really in the search PATH,
10491       # but as the default location of the library.
10492       hardcode_minus_L=yes
10493       export_dynamic_flag_spec='$wl-E'
10494       ;;
10495
10496     hpux10*)
10497       if test yes,no = "$GCC,$with_gnu_ld"; then
10498         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10499       else
10500         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10501       fi
10502       if test no = "$with_gnu_ld"; then
10503         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10504         hardcode_libdir_separator=:
10505         hardcode_direct=yes
10506         hardcode_direct_absolute=yes
10507         export_dynamic_flag_spec='$wl-E'
10508         # hardcode_minus_L: Not really in the search PATH,
10509         # but as the default location of the library.
10510         hardcode_minus_L=yes
10511       fi
10512       ;;
10513
10514     hpux11*)
10515       if test yes,no = "$GCC,$with_gnu_ld"; then
10516         case $host_cpu in
10517         hppa*64*)
10518           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10519           ;;
10520         ia64*)
10521           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10522           ;;
10523         *)
10524           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10525           ;;
10526         esac
10527       else
10528         case $host_cpu in
10529         hppa*64*)
10530           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10531           ;;
10532         ia64*)
10533           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10534           ;;
10535         *)
10536
10537           # Older versions of the 11.00 compiler do not understand -b yet
10538           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10539           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10540 $as_echo_n "checking if $CC understands -b... " >&6; }
10541 if ${lt_cv_prog_compiler__b+:} false; then :
10542   $as_echo_n "(cached) " >&6
10543 else
10544   lt_cv_prog_compiler__b=no
10545    save_LDFLAGS=$LDFLAGS
10546    LDFLAGS="$LDFLAGS -b"
10547    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10548    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10549      # The linker can only warn and ignore the option if not recognized
10550      # So say no if there are warnings
10551      if test -s conftest.err; then
10552        # Append any errors to the config.log.
10553        cat conftest.err 1>&5
10554        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10555        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10556        if diff conftest.exp conftest.er2 >/dev/null; then
10557          lt_cv_prog_compiler__b=yes
10558        fi
10559      else
10560        lt_cv_prog_compiler__b=yes
10561      fi
10562    fi
10563    $RM -r conftest*
10564    LDFLAGS=$save_LDFLAGS
10565
10566 fi
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10568 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10569
10570 if test yes = "$lt_cv_prog_compiler__b"; then
10571     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10572 else
10573     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10574 fi
10575
10576           ;;
10577         esac
10578       fi
10579       if test no = "$with_gnu_ld"; then
10580         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10581         hardcode_libdir_separator=:
10582
10583         case $host_cpu in
10584         hppa*64*|ia64*)
10585           hardcode_direct=no
10586           hardcode_shlibpath_var=no
10587           ;;
10588         *)
10589           hardcode_direct=yes
10590           hardcode_direct_absolute=yes
10591           export_dynamic_flag_spec='$wl-E'
10592
10593           # hardcode_minus_L: Not really in the search PATH,
10594           # but as the default location of the library.
10595           hardcode_minus_L=yes
10596           ;;
10597         esac
10598       fi
10599       ;;
10600
10601     irix5* | irix6* | nonstopux*)
10602       if test yes = "$GCC"; then
10603         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10604         # Try to use the -exported_symbol ld option, if it does not
10605         # work, assume that -exports_file does not work either and
10606         # implicitly export all symbols.
10607         # This should be the same for all languages, so no per-tag cache variable.
10608         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10609 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10610 if ${lt_cv_irix_exported_symbol+:} false; then :
10611   $as_echo_n "(cached) " >&6
10612 else
10613   save_LDFLAGS=$LDFLAGS
10614            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10615            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10616 /* end confdefs.h.  */
10617 int foo (void) { return 0; }
10618 _ACEOF
10619 if ac_fn_c_try_link "$LINENO"; then :
10620   lt_cv_irix_exported_symbol=yes
10621 else
10622   lt_cv_irix_exported_symbol=no
10623 fi
10624 rm -f core conftest.err conftest.$ac_objext \
10625     conftest$ac_exeext conftest.$ac_ext
10626            LDFLAGS=$save_LDFLAGS
10627 fi
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10629 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10630         if test yes = "$lt_cv_irix_exported_symbol"; then
10631           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10632         fi
10633         link_all_deplibs=no
10634       else
10635         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10636         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10637       fi
10638       archive_cmds_need_lc='no'
10639       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10640       hardcode_libdir_separator=:
10641       inherit_rpath=yes
10642       link_all_deplibs=yes
10643       ;;
10644
10645     linux*)
10646       case $cc_basename in
10647       tcc*)
10648         # Fabrice Bellard et al's Tiny C Compiler
10649         ld_shlibs=yes
10650         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10651         ;;
10652       esac
10653       ;;
10654
10655     netbsd* | netbsdelf*-gnu)
10656       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10657         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10658       else
10659         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10660       fi
10661       hardcode_libdir_flag_spec='-R$libdir'
10662       hardcode_direct=yes
10663       hardcode_shlibpath_var=no
10664       ;;
10665
10666     newsos6)
10667       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10668       hardcode_direct=yes
10669       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10670       hardcode_libdir_separator=:
10671       hardcode_shlibpath_var=no
10672       ;;
10673
10674     *nto* | *qnx*)
10675       ;;
10676
10677     openbsd* | bitrig*)
10678       if test -f /usr/libexec/ld.so; then
10679         hardcode_direct=yes
10680         hardcode_shlibpath_var=no
10681         hardcode_direct_absolute=yes
10682         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10683           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10684           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10685           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10686           export_dynamic_flag_spec='$wl-E'
10687         else
10688           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10689           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10690         fi
10691       else
10692         ld_shlibs=no
10693       fi
10694       ;;
10695
10696     os2*)
10697       hardcode_libdir_flag_spec='-L$libdir'
10698       hardcode_minus_L=yes
10699       allow_undefined_flag=unsupported
10700       shrext_cmds=.dll
10701       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10702         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10703         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10704         $ECHO EXPORTS >> $output_objdir/$libname.def~
10705         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10706         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10707         emximp -o $lib $output_objdir/$libname.def'
10708       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10709         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10710         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10711         $ECHO EXPORTS >> $output_objdir/$libname.def~
10712         prefix_cmds="$SED"~
10713         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10714           prefix_cmds="$prefix_cmds -e 1d";
10715         fi~
10716         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10717         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10718         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10719         emximp -o $lib $output_objdir/$libname.def'
10720       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10721       enable_shared_with_static_runtimes=yes
10722       ;;
10723
10724     osf3*)
10725       if test yes = "$GCC"; then
10726         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10727         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10728       else
10729         allow_undefined_flag=' -expect_unresolved \*'
10730         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10731       fi
10732       archive_cmds_need_lc='no'
10733       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10734       hardcode_libdir_separator=:
10735       ;;
10736
10737     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10738       if test yes = "$GCC"; then
10739         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10740         archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10741         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10742       else
10743         allow_undefined_flag=' -expect_unresolved \*'
10744         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10745         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10746           $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10747
10748         # Both c and cxx compiler support -rpath directly
10749         hardcode_libdir_flag_spec='-rpath $libdir'
10750       fi
10751       archive_cmds_need_lc='no'
10752       hardcode_libdir_separator=:
10753       ;;
10754
10755     solaris*)
10756       no_undefined_flag=' -z defs'
10757       if test yes = "$GCC"; then
10758         wlarc='$wl'
10759         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10760         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10761           $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10762       else
10763         case `$CC -V 2>&1` in
10764         *"Compilers 5.0"*)
10765           wlarc=''
10766           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10767           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10768             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10769           ;;
10770         *)
10771           wlarc='$wl'
10772           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10773           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10774             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10775           ;;
10776         esac
10777       fi
10778       hardcode_libdir_flag_spec='-R$libdir'
10779       hardcode_shlibpath_var=no
10780       case $host_os in
10781       solaris2.[0-5] | solaris2.[0-5].*) ;;
10782       *)
10783         # The compiler driver will combine and reorder linker options,
10784         # but understands '-z linker_flag'.  GCC discards it without '$wl',
10785         # but is careful enough not to reorder.
10786         # Supported since Solaris 2.6 (maybe 2.5.1?)
10787         if test yes = "$GCC"; then
10788           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10789         else
10790           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10791         fi
10792         ;;
10793       esac
10794       link_all_deplibs=yes
10795       ;;
10796
10797     sunos4*)
10798       if test sequent = "$host_vendor"; then
10799         # Use $CC to link under sequent, because it throws in some extra .o
10800         # files that make .init and .fini sections work.
10801         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10802       else
10803         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10804       fi
10805       hardcode_libdir_flag_spec='-L$libdir'
10806       hardcode_direct=yes
10807       hardcode_minus_L=yes
10808       hardcode_shlibpath_var=no
10809       ;;
10810
10811     sysv4)
10812       case $host_vendor in
10813         sni)
10814           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10815           hardcode_direct=yes # is this really true???
10816         ;;
10817         siemens)
10818           ## LD is ld it makes a PLAMLIB
10819           ## CC just makes a GrossModule.
10820           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10821           reload_cmds='$CC -r -o $output$reload_objs'
10822           hardcode_direct=no
10823         ;;
10824         motorola)
10825           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10826           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10827         ;;
10828       esac
10829       runpath_var='LD_RUN_PATH'
10830       hardcode_shlibpath_var=no
10831       ;;
10832
10833     sysv4.3*)
10834       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10835       hardcode_shlibpath_var=no
10836       export_dynamic_flag_spec='-Bexport'
10837       ;;
10838
10839     sysv4*MP*)
10840       if test -d /usr/nec; then
10841         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10842         hardcode_shlibpath_var=no
10843         runpath_var=LD_RUN_PATH
10844         hardcode_runpath_var=yes
10845         ld_shlibs=yes
10846       fi
10847       ;;
10848
10849     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10850       no_undefined_flag='$wl-z,text'
10851       archive_cmds_need_lc=no
10852       hardcode_shlibpath_var=no
10853       runpath_var='LD_RUN_PATH'
10854
10855       if test yes = "$GCC"; then
10856         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10857         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10858       else
10859         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10860         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10861       fi
10862       ;;
10863
10864     sysv5* | sco3.2v5* | sco5v6*)
10865       # Note: We CANNOT use -z defs as we might desire, because we do not
10866       # link with -lc, and that would cause any symbols used from libc to
10867       # always be unresolved, which means just about no library would
10868       # ever link correctly.  If we're not using GNU ld we use -z text
10869       # though, which does catch some bad symbols but isn't as heavy-handed
10870       # as -z defs.
10871       no_undefined_flag='$wl-z,text'
10872       allow_undefined_flag='$wl-z,nodefs'
10873       archive_cmds_need_lc=no
10874       hardcode_shlibpath_var=no
10875       hardcode_libdir_flag_spec='$wl-R,$libdir'
10876       hardcode_libdir_separator=':'
10877       link_all_deplibs=yes
10878       export_dynamic_flag_spec='$wl-Bexport'
10879       runpath_var='LD_RUN_PATH'
10880
10881       if test yes = "$GCC"; then
10882         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10883         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10884       else
10885         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10886         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10887       fi
10888       ;;
10889
10890     uts4*)
10891       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10892       hardcode_libdir_flag_spec='-L$libdir'
10893       hardcode_shlibpath_var=no
10894       ;;
10895
10896     *)
10897       ld_shlibs=no
10898       ;;
10899     esac
10900
10901     if test sni = "$host_vendor"; then
10902       case $host in
10903       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10904         export_dynamic_flag_spec='$wl-Blargedynsym'
10905         ;;
10906       esac
10907     fi
10908   fi
10909
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10911 $as_echo "$ld_shlibs" >&6; }
10912 test no = "$ld_shlibs" && can_build_shared=no
10913
10914 with_gnu_ld=$with_gnu_ld
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930 #
10931 # Do we need to explicitly link libc?
10932 #
10933 case "x$archive_cmds_need_lc" in
10934 x|xyes)
10935   # Assume -lc should be added
10936   archive_cmds_need_lc=yes
10937
10938   if test yes,yes = "$GCC,$enable_shared"; then
10939     case $archive_cmds in
10940     *'~'*)
10941       # FIXME: we may have to deal with multi-command sequences.
10942       ;;
10943     '$CC '*)
10944       # Test whether the compiler implicitly links with -lc since on some
10945       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10946       # to ld, don't add -lc before -lgcc.
10947       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10948 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10949 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10950   $as_echo_n "(cached) " >&6
10951 else
10952   $RM conftest*
10953         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10954
10955         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10956   (eval $ac_compile) 2>&5
10957   ac_status=$?
10958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10959   test $ac_status = 0; } 2>conftest.err; then
10960           soname=conftest
10961           lib=conftest
10962           libobjs=conftest.$ac_objext
10963           deplibs=
10964           wl=$lt_prog_compiler_wl
10965           pic_flag=$lt_prog_compiler_pic
10966           compiler_flags=-v
10967           linker_flags=-v
10968           verstring=
10969           output_objdir=.
10970           libname=conftest
10971           lt_save_allow_undefined_flag=$allow_undefined_flag
10972           allow_undefined_flag=
10973           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10974   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10975   ac_status=$?
10976   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10977   test $ac_status = 0; }
10978           then
10979             lt_cv_archive_cmds_need_lc=no
10980           else
10981             lt_cv_archive_cmds_need_lc=yes
10982           fi
10983           allow_undefined_flag=$lt_save_allow_undefined_flag
10984         else
10985           cat conftest.err 1>&5
10986         fi
10987         $RM conftest*
10988
10989 fi
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10991 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10992       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10993       ;;
10994     esac
10995   fi
10996   ;;
10997 esac
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11151 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11152
11153 if test yes = "$GCC"; then
11154   case $host_os in
11155     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11156     *) lt_awk_arg='/^libraries:/' ;;
11157   esac
11158   case $host_os in
11159     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11160     *) lt_sed_strip_eq='s|=/|/|g' ;;
11161   esac
11162   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11163   case $lt_search_path_spec in
11164   *\;*)
11165     # if the path contains ";" then we assume it to be the separator
11166     # otherwise default to the standard path separator (i.e. ":") - it is
11167     # assumed that no part of a normal pathname contains ";" but that should
11168     # okay in the real world where ";" in dirpaths is itself problematic.
11169     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11170     ;;
11171   *)
11172     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11173     ;;
11174   esac
11175   # Ok, now we have the path, separated by spaces, we can step through it
11176   # and add multilib dir if necessary...
11177   lt_tmp_lt_search_path_spec=
11178   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11179   # ...but if some path component already ends with the multilib dir we assume
11180   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11181   case "$lt_multi_os_dir; $lt_search_path_spec " in
11182   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11183     lt_multi_os_dir=
11184     ;;
11185   esac
11186   for lt_sys_path in $lt_search_path_spec; do
11187     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11188       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11189     elif test -n "$lt_multi_os_dir"; then
11190       test -d "$lt_sys_path" && \
11191         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11192     fi
11193   done
11194   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11195 BEGIN {RS = " "; FS = "/|\n";} {
11196   lt_foo = "";
11197   lt_count = 0;
11198   for (lt_i = NF; lt_i > 0; lt_i--) {
11199     if ($lt_i != "" && $lt_i != ".") {
11200       if ($lt_i == "..") {
11201         lt_count++;
11202       } else {
11203         if (lt_count == 0) {
11204           lt_foo = "/" $lt_i lt_foo;
11205         } else {
11206           lt_count--;
11207         }
11208       }
11209     }
11210   }
11211   if (lt_foo != "") { lt_freq[lt_foo]++; }
11212   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11213 }'`
11214   # AWK program above erroneously prepends '/' to C:/dos/paths
11215   # for these hosts.
11216   case $host_os in
11217     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11218       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11219   esac
11220   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11221 else
11222   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11223 fi
11224 library_names_spec=
11225 libname_spec='lib$name'
11226 soname_spec=
11227 shrext_cmds=.so
11228 postinstall_cmds=
11229 postuninstall_cmds=
11230 finish_cmds=
11231 finish_eval=
11232 shlibpath_var=
11233 shlibpath_overrides_runpath=unknown
11234 version_type=none
11235 dynamic_linker="$host_os ld.so"
11236 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11237 need_lib_prefix=unknown
11238 hardcode_into_libs=no
11239
11240 # when you set need_version to no, make sure it does not cause -set_version
11241 # flags to be left without arguments
11242 need_version=unknown
11243
11244
11245
11246 case $host_os in
11247 aix3*)
11248   version_type=linux # correct to gnu/linux during the next big refactor
11249   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11250   shlibpath_var=LIBPATH
11251
11252   # AIX 3 has no versioning support, so we append a major version to the name.
11253   soname_spec='$libname$release$shared_ext$major'
11254   ;;
11255
11256 aix[4-9]*)
11257   version_type=linux # correct to gnu/linux during the next big refactor
11258   need_lib_prefix=no
11259   need_version=no
11260   hardcode_into_libs=yes
11261   if test ia64 = "$host_cpu"; then
11262     # AIX 5 supports IA64
11263     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11264     shlibpath_var=LD_LIBRARY_PATH
11265   else
11266     # With GCC up to 2.95.x, collect2 would create an import file
11267     # for dependence libraries.  The import file would start with
11268     # the line '#! .'.  This would cause the generated library to
11269     # depend on '.', always an invalid library.  This was fixed in
11270     # development snapshots of GCC prior to 3.0.
11271     case $host_os in
11272       aix4 | aix4.[01] | aix4.[01].*)
11273       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11274            echo ' yes '
11275            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11276         :
11277       else
11278         can_build_shared=no
11279       fi
11280       ;;
11281     esac
11282     # Using Import Files as archive members, it is possible to support
11283     # filename-based versioning of shared library archives on AIX. While
11284     # this would work for both with and without runtime linking, it will
11285     # prevent static linking of such archives. So we do filename-based
11286     # shared library versioning with .so extension only, which is used
11287     # when both runtime linking and shared linking is enabled.
11288     # Unfortunately, runtime linking may impact performance, so we do
11289     # not want this to be the default eventually. Also, we use the
11290     # versioned .so libs for executables only if there is the -brtl
11291     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11292     # To allow for filename-based versioning support, we need to create
11293     # libNAME.so.V as an archive file, containing:
11294     # *) an Import File, referring to the versioned filename of the
11295     #    archive as well as the shared archive member, telling the
11296     #    bitwidth (32 or 64) of that shared object, and providing the
11297     #    list of exported symbols of that shared object, eventually
11298     #    decorated with the 'weak' keyword
11299     # *) the shared object with the F_LOADONLY flag set, to really avoid
11300     #    it being seen by the linker.
11301     # At run time we better use the real file rather than another symlink,
11302     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11303
11304     case $with_aix_soname,$aix_use_runtimelinking in
11305     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11306     # soname into executable. Probably we can add versioning support to
11307     # collect2, so additional links can be useful in future.
11308     aix,yes) # traditional libtool
11309       dynamic_linker='AIX unversionable lib.so'
11310       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11311       # instead of lib<name>.a to let people know that these are not
11312       # typical AIX shared libraries.
11313       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11314       ;;
11315     aix,no) # traditional AIX only
11316       dynamic_linker='AIX lib.a(lib.so.V)'
11317       # We preserve .a as extension for shared libraries through AIX4.2
11318       # and later when we are not doing run time linking.
11319       library_names_spec='$libname$release.a $libname.a'
11320       soname_spec='$libname$release$shared_ext$major'
11321       ;;
11322     svr4,*) # full svr4 only
11323       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11324       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11325       # We do not specify a path in Import Files, so LIBPATH fires.
11326       shlibpath_overrides_runpath=yes
11327       ;;
11328     *,yes) # both, prefer svr4
11329       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11330       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11331       # unpreferred sharedlib libNAME.a needs extra handling
11332       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11333       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11334       # We do not specify a path in Import Files, so LIBPATH fires.
11335       shlibpath_overrides_runpath=yes
11336       ;;
11337     *,no) # both, prefer aix
11338       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11339       library_names_spec='$libname$release.a $libname.a'
11340       soname_spec='$libname$release$shared_ext$major'
11341       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11342       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11343       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11344       ;;
11345     esac
11346     shlibpath_var=LIBPATH
11347   fi
11348   ;;
11349
11350 amigaos*)
11351   case $host_cpu in
11352   powerpc)
11353     # Since July 2007 AmigaOS4 officially supports .so libraries.
11354     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11355     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11356     ;;
11357   m68k)
11358     library_names_spec='$libname.ixlibrary $libname.a'
11359     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11360     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11361     ;;
11362   esac
11363   ;;
11364
11365 beos*)
11366   library_names_spec='$libname$shared_ext'
11367   dynamic_linker="$host_os ld.so"
11368   shlibpath_var=LIBRARY_PATH
11369   ;;
11370
11371 bsdi[45]*)
11372   version_type=linux # correct to gnu/linux during the next big refactor
11373   need_version=no
11374   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11375   soname_spec='$libname$release$shared_ext$major'
11376   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11377   shlibpath_var=LD_LIBRARY_PATH
11378   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11379   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11380   # the default ld.so.conf also contains /usr/contrib/lib and
11381   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11382   # libtool to hard-code these into programs
11383   ;;
11384
11385 cygwin* | mingw* | pw32* | cegcc*)
11386   version_type=windows
11387   shrext_cmds=.dll
11388   need_version=no
11389   need_lib_prefix=no
11390
11391   case $GCC,$cc_basename in
11392   yes,*)
11393     # gcc
11394     library_names_spec='$libname.dll.a'
11395     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11396     postinstall_cmds='base_file=`basename \$file`~
11397       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11398       dldir=$destdir/`dirname \$dlpath`~
11399       test -d \$dldir || mkdir -p \$dldir~
11400       $install_prog $dir/$dlname \$dldir/$dlname~
11401       chmod a+x \$dldir/$dlname~
11402       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11403         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11404       fi'
11405     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11406       dlpath=$dir/\$dldll~
11407        $RM \$dlpath'
11408     shlibpath_overrides_runpath=yes
11409
11410     case $host_os in
11411     cygwin*)
11412       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11413       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11414
11415       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11416       ;;
11417     mingw* | cegcc*)
11418       # MinGW DLLs use traditional 'lib' prefix
11419       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11420       ;;
11421     pw32*)
11422       # pw32 DLLs use 'pw' prefix rather than 'lib'
11423       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11424       ;;
11425     esac
11426     dynamic_linker='Win32 ld.exe'
11427     ;;
11428
11429   *,cl*)
11430     # Native MSVC
11431     libname_spec='$name'
11432     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11433     library_names_spec='$libname.dll.lib'
11434
11435     case $build_os in
11436     mingw*)
11437       sys_lib_search_path_spec=
11438       lt_save_ifs=$IFS
11439       IFS=';'
11440       for lt_path in $LIB
11441       do
11442         IFS=$lt_save_ifs
11443         # Let DOS variable expansion print the short 8.3 style file name.
11444         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11445         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11446       done
11447       IFS=$lt_save_ifs
11448       # Convert to MSYS style.
11449       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11450       ;;
11451     cygwin*)
11452       # Convert to unix form, then to dos form, then back to unix form
11453       # but this time dos style (no spaces!) so that the unix form looks
11454       # like /cygdrive/c/PROGRA~1:/cygdr...
11455       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11456       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11457       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11458       ;;
11459     *)
11460       sys_lib_search_path_spec=$LIB
11461       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11462         # It is most probably a Windows format PATH.
11463         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11464       else
11465         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11466       fi
11467       # FIXME: find the short name or the path components, as spaces are
11468       # common. (e.g. "Program Files" -> "PROGRA~1")
11469       ;;
11470     esac
11471
11472     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11473     postinstall_cmds='base_file=`basename \$file`~
11474       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11475       dldir=$destdir/`dirname \$dlpath`~
11476       test -d \$dldir || mkdir -p \$dldir~
11477       $install_prog $dir/$dlname \$dldir/$dlname'
11478     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11479       dlpath=$dir/\$dldll~
11480        $RM \$dlpath'
11481     shlibpath_overrides_runpath=yes
11482     dynamic_linker='Win32 link.exe'
11483     ;;
11484
11485   *)
11486     # Assume MSVC wrapper
11487     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11488     dynamic_linker='Win32 ld.exe'
11489     ;;
11490   esac
11491   # FIXME: first we should search . and the directory the executable is in
11492   shlibpath_var=PATH
11493   ;;
11494
11495 darwin* | rhapsody*)
11496   dynamic_linker="$host_os dyld"
11497   version_type=darwin
11498   need_lib_prefix=no
11499   need_version=no
11500   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11501   soname_spec='$libname$release$major$shared_ext'
11502   shlibpath_overrides_runpath=yes
11503   shlibpath_var=DYLD_LIBRARY_PATH
11504   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11505
11506   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11507   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11508   ;;
11509
11510 dgux*)
11511   version_type=linux # correct to gnu/linux during the next big refactor
11512   need_lib_prefix=no
11513   need_version=no
11514   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11515   soname_spec='$libname$release$shared_ext$major'
11516   shlibpath_var=LD_LIBRARY_PATH
11517   ;;
11518
11519 freebsd* | dragonfly*)
11520   # DragonFly does not have aout.  When/if they implement a new
11521   # versioning mechanism, adjust this.
11522   if test -x /usr/bin/objformat; then
11523     objformat=`/usr/bin/objformat`
11524   else
11525     case $host_os in
11526     freebsd[23].*) objformat=aout ;;
11527     *) objformat=elf ;;
11528     esac
11529   fi
11530   version_type=freebsd-$objformat
11531   case $version_type in
11532     freebsd-elf*)
11533       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11534       soname_spec='$libname$release$shared_ext$major'
11535       need_version=no
11536       need_lib_prefix=no
11537       ;;
11538     freebsd-*)
11539       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11540       need_version=yes
11541       ;;
11542   esac
11543   shlibpath_var=LD_LIBRARY_PATH
11544   case $host_os in
11545   freebsd2.*)
11546     shlibpath_overrides_runpath=yes
11547     ;;
11548   freebsd3.[01]* | freebsdelf3.[01]*)
11549     shlibpath_overrides_runpath=yes
11550     hardcode_into_libs=yes
11551     ;;
11552   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11553   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11554     shlibpath_overrides_runpath=no
11555     hardcode_into_libs=yes
11556     ;;
11557   *) # from 4.6 on, and DragonFly
11558     shlibpath_overrides_runpath=yes
11559     hardcode_into_libs=yes
11560     ;;
11561   esac
11562   ;;
11563
11564 haiku*)
11565   version_type=linux # correct to gnu/linux during the next big refactor
11566   need_lib_prefix=no
11567   need_version=no
11568   dynamic_linker="$host_os runtime_loader"
11569   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11570   soname_spec='$libname$release$shared_ext$major'
11571   shlibpath_var=LIBRARY_PATH
11572   shlibpath_overrides_runpath=no
11573   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11574   hardcode_into_libs=yes
11575   ;;
11576
11577 hpux9* | hpux10* | hpux11*)
11578   # Give a soname corresponding to the major version so that dld.sl refuses to
11579   # link against other versions.
11580   version_type=sunos
11581   need_lib_prefix=no
11582   need_version=no
11583   case $host_cpu in
11584   ia64*)
11585     shrext_cmds='.so'
11586     hardcode_into_libs=yes
11587     dynamic_linker="$host_os dld.so"
11588     shlibpath_var=LD_LIBRARY_PATH
11589     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11590     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11591     soname_spec='$libname$release$shared_ext$major'
11592     if test 32 = "$HPUX_IA64_MODE"; then
11593       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11594       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11595     else
11596       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11597       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11598     fi
11599     ;;
11600   hppa*64*)
11601     shrext_cmds='.sl'
11602     hardcode_into_libs=yes
11603     dynamic_linker="$host_os dld.sl"
11604     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11605     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11606     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11607     soname_spec='$libname$release$shared_ext$major'
11608     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11609     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11610     ;;
11611   *)
11612     shrext_cmds='.sl'
11613     dynamic_linker="$host_os dld.sl"
11614     shlibpath_var=SHLIB_PATH
11615     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11616     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11617     soname_spec='$libname$release$shared_ext$major'
11618     ;;
11619   esac
11620   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11621   postinstall_cmds='chmod 555 $lib'
11622   # or fails outright, so override atomically:
11623   install_override_mode=555
11624   ;;
11625
11626 interix[3-9]*)
11627   version_type=linux # correct to gnu/linux during the next big refactor
11628   need_lib_prefix=no
11629   need_version=no
11630   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11631   soname_spec='$libname$release$shared_ext$major'
11632   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11633   shlibpath_var=LD_LIBRARY_PATH
11634   shlibpath_overrides_runpath=no
11635   hardcode_into_libs=yes
11636   ;;
11637
11638 irix5* | irix6* | nonstopux*)
11639   case $host_os in
11640     nonstopux*) version_type=nonstopux ;;
11641     *)
11642         if test yes = "$lt_cv_prog_gnu_ld"; then
11643                 version_type=linux # correct to gnu/linux during the next big refactor
11644         else
11645                 version_type=irix
11646         fi ;;
11647   esac
11648   need_lib_prefix=no
11649   need_version=no
11650   soname_spec='$libname$release$shared_ext$major'
11651   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11652   case $host_os in
11653   irix5* | nonstopux*)
11654     libsuff= shlibsuff=
11655     ;;
11656   *)
11657     case $LD in # libtool.m4 will add one of these switches to LD
11658     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11659       libsuff= shlibsuff= libmagic=32-bit;;
11660     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11661       libsuff=32 shlibsuff=N32 libmagic=N32;;
11662     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11663       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11664     *) libsuff= shlibsuff= libmagic=never-match;;
11665     esac
11666     ;;
11667   esac
11668   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11669   shlibpath_overrides_runpath=no
11670   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11671   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11672   hardcode_into_libs=yes
11673   ;;
11674
11675 # No shared lib support for Linux oldld, aout, or coff.
11676 linux*oldld* | linux*aout* | linux*coff*)
11677   dynamic_linker=no
11678   ;;
11679
11680 linux*android*)
11681   version_type=none # Android doesn't support versioned libraries.
11682   need_lib_prefix=no
11683   need_version=no
11684   library_names_spec='$libname$release$shared_ext'
11685   soname_spec='$libname$release$shared_ext'
11686   finish_cmds=
11687   shlibpath_var=LD_LIBRARY_PATH
11688   shlibpath_overrides_runpath=yes
11689
11690   # This implies no fast_install, which is unacceptable.
11691   # Some rework will be needed to allow for fast_install
11692   # before this can be enabled.
11693   hardcode_into_libs=yes
11694
11695   dynamic_linker='Android linker'
11696   # Don't embed -rpath directories since the linker doesn't support them.
11697   hardcode_libdir_flag_spec='-L$libdir'
11698   ;;
11699
11700 # This must be glibc/ELF.
11701 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11702   version_type=linux # correct to gnu/linux during the next big refactor
11703   need_lib_prefix=no
11704   need_version=no
11705   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11706   soname_spec='$libname$release$shared_ext$major'
11707   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11708   shlibpath_var=LD_LIBRARY_PATH
11709   shlibpath_overrides_runpath=no
11710
11711   # Some binutils ld are patched to set DT_RUNPATH
11712   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11713   $as_echo_n "(cached) " >&6
11714 else
11715   lt_cv_shlibpath_overrides_runpath=no
11716     save_LDFLAGS=$LDFLAGS
11717     save_libdir=$libdir
11718     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11719          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11720     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11721 /* end confdefs.h.  */
11722
11723 int
11724 main ()
11725 {
11726
11727   ;
11728   return 0;
11729 }
11730 _ACEOF
11731 if ac_fn_c_try_link "$LINENO"; then :
11732   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11733   lt_cv_shlibpath_overrides_runpath=yes
11734 fi
11735 fi
11736 rm -f core conftest.err conftest.$ac_objext \
11737     conftest$ac_exeext conftest.$ac_ext
11738     LDFLAGS=$save_LDFLAGS
11739     libdir=$save_libdir
11740
11741 fi
11742
11743   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11744
11745   # This implies no fast_install, which is unacceptable.
11746   # Some rework will be needed to allow for fast_install
11747   # before this can be enabled.
11748   hardcode_into_libs=yes
11749
11750   # Ideally, we could use ldconfig to report *all* directores which are
11751   # searched for libraries, however this is still not possible.  Aside from not
11752   # being certain /sbin/ldconfig is available, command
11753   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11754   # even though it is searched at run-time.  Try to do the best guess by
11755   # appending ld.so.conf contents (and includes) to the search path.
11756   if test -f /etc/ld.so.conf; then
11757     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11758     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11759   fi
11760
11761   # We used to test for /lib/ld.so.1 and disable shared libraries on
11762   # powerpc, because MkLinux only supported shared libraries with the
11763   # GNU dynamic linker.  Since this was broken with cross compilers,
11764   # most powerpc-linux boxes support dynamic linking these days and
11765   # people can always --disable-shared, the test was removed, and we
11766   # assume the GNU/Linux dynamic linker is in use.
11767   dynamic_linker='GNU/Linux ld.so'
11768   ;;
11769
11770 netbsdelf*-gnu)
11771   version_type=linux
11772   need_lib_prefix=no
11773   need_version=no
11774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11775   soname_spec='${libname}${release}${shared_ext}$major'
11776   shlibpath_var=LD_LIBRARY_PATH
11777   shlibpath_overrides_runpath=no
11778   hardcode_into_libs=yes
11779   dynamic_linker='NetBSD ld.elf_so'
11780   ;;
11781
11782 netbsd*)
11783   version_type=sunos
11784   need_lib_prefix=no
11785   need_version=no
11786   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11787     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11788     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11789     dynamic_linker='NetBSD (a.out) ld.so'
11790   else
11791     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11792     soname_spec='$libname$release$shared_ext$major'
11793     dynamic_linker='NetBSD ld.elf_so'
11794   fi
11795   shlibpath_var=LD_LIBRARY_PATH
11796   shlibpath_overrides_runpath=yes
11797   hardcode_into_libs=yes
11798   ;;
11799
11800 newsos6)
11801   version_type=linux # correct to gnu/linux during the next big refactor
11802   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11803   shlibpath_var=LD_LIBRARY_PATH
11804   shlibpath_overrides_runpath=yes
11805   ;;
11806
11807 *nto* | *qnx*)
11808   version_type=qnx
11809   need_lib_prefix=no
11810   need_version=no
11811   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11812   soname_spec='$libname$release$shared_ext$major'
11813   shlibpath_var=LD_LIBRARY_PATH
11814   shlibpath_overrides_runpath=no
11815   hardcode_into_libs=yes
11816   dynamic_linker='ldqnx.so'
11817   ;;
11818
11819 openbsd* | bitrig*)
11820   version_type=sunos
11821   sys_lib_dlsearch_path_spec=/usr/lib
11822   need_lib_prefix=no
11823   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11824     need_version=no
11825   else
11826     need_version=yes
11827   fi
11828   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11829   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11830   shlibpath_var=LD_LIBRARY_PATH
11831   shlibpath_overrides_runpath=yes
11832   ;;
11833
11834 os2*)
11835   libname_spec='$name'
11836   version_type=windows
11837   shrext_cmds=.dll
11838   need_version=no
11839   need_lib_prefix=no
11840   # OS/2 can only load a DLL with a base name of 8 characters or less.
11841   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11842     v=$($ECHO $release$versuffix | tr -d .-);
11843     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11844     $ECHO $n$v`$shared_ext'
11845   library_names_spec='${libname}_dll.$libext'
11846   dynamic_linker='OS/2 ld.exe'
11847   shlibpath_var=BEGINLIBPATH
11848   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11849   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11850   postinstall_cmds='base_file=`basename \$file`~
11851     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11852     dldir=$destdir/`dirname \$dlpath`~
11853     test -d \$dldir || mkdir -p \$dldir~
11854     $install_prog $dir/$dlname \$dldir/$dlname~
11855     chmod a+x \$dldir/$dlname~
11856     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11857       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11858     fi'
11859   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11860     dlpath=$dir/\$dldll~
11861     $RM \$dlpath'
11862   ;;
11863
11864 osf3* | osf4* | osf5*)
11865   version_type=osf
11866   need_lib_prefix=no
11867   need_version=no
11868   soname_spec='$libname$release$shared_ext$major'
11869   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11870   shlibpath_var=LD_LIBRARY_PATH
11871   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11872   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11873   ;;
11874
11875 rdos*)
11876   dynamic_linker=no
11877   ;;
11878
11879 solaris*)
11880   version_type=linux # correct to gnu/linux during the next big refactor
11881   need_lib_prefix=no
11882   need_version=no
11883   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11884   soname_spec='$libname$release$shared_ext$major'
11885   shlibpath_var=LD_LIBRARY_PATH
11886   shlibpath_overrides_runpath=yes
11887   hardcode_into_libs=yes
11888   # ldd complains unless libraries are executable
11889   postinstall_cmds='chmod +x $lib'
11890   ;;
11891
11892 sunos4*)
11893   version_type=sunos
11894   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11895   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11896   shlibpath_var=LD_LIBRARY_PATH
11897   shlibpath_overrides_runpath=yes
11898   if test yes = "$with_gnu_ld"; then
11899     need_lib_prefix=no
11900   fi
11901   need_version=yes
11902   ;;
11903
11904 sysv4 | sysv4.3*)
11905   version_type=linux # correct to gnu/linux during the next big refactor
11906   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11907   soname_spec='$libname$release$shared_ext$major'
11908   shlibpath_var=LD_LIBRARY_PATH
11909   case $host_vendor in
11910     sni)
11911       shlibpath_overrides_runpath=no
11912       need_lib_prefix=no
11913       runpath_var=LD_RUN_PATH
11914       ;;
11915     siemens)
11916       need_lib_prefix=no
11917       ;;
11918     motorola)
11919       need_lib_prefix=no
11920       need_version=no
11921       shlibpath_overrides_runpath=no
11922       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11923       ;;
11924   esac
11925   ;;
11926
11927 sysv4*MP*)
11928   if test -d /usr/nec; then
11929     version_type=linux # correct to gnu/linux during the next big refactor
11930     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11931     soname_spec='$libname$shared_ext.$major'
11932     shlibpath_var=LD_LIBRARY_PATH
11933   fi
11934   ;;
11935
11936 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11937   version_type=sco
11938   need_lib_prefix=no
11939   need_version=no
11940   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11941   soname_spec='$libname$release$shared_ext$major'
11942   shlibpath_var=LD_LIBRARY_PATH
11943   shlibpath_overrides_runpath=yes
11944   hardcode_into_libs=yes
11945   if test yes = "$with_gnu_ld"; then
11946     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11947   else
11948     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11949     case $host_os in
11950       sco3.2v5*)
11951         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11952         ;;
11953     esac
11954   fi
11955   sys_lib_dlsearch_path_spec='/usr/lib'
11956   ;;
11957
11958 tpf*)
11959   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11960   version_type=linux # correct to gnu/linux during the next big refactor
11961   need_lib_prefix=no
11962   need_version=no
11963   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11964   shlibpath_var=LD_LIBRARY_PATH
11965   shlibpath_overrides_runpath=no
11966   hardcode_into_libs=yes
11967   ;;
11968
11969 uts4*)
11970   version_type=linux # correct to gnu/linux during the next big refactor
11971   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11972   soname_spec='$libname$release$shared_ext$major'
11973   shlibpath_var=LD_LIBRARY_PATH
11974   ;;
11975
11976 *)
11977   dynamic_linker=no
11978   ;;
11979 esac
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11981 $as_echo "$dynamic_linker" >&6; }
11982 test no = "$dynamic_linker" && can_build_shared=no
11983
11984 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11985 if test yes = "$GCC"; then
11986   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11987 fi
11988
11989 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11990   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11991 fi
11992
11993 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11994   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11995 fi
11996
11997 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11998 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11999
12000 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12001 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12002
12003 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12004 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12103 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12104 hardcode_action=
12105 if test -n "$hardcode_libdir_flag_spec" ||
12106    test -n "$runpath_var" ||
12107    test yes = "$hardcode_automatic"; then
12108
12109   # We can hardcode non-existent directories.
12110   if test no != "$hardcode_direct" &&
12111      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12112      # have to relink, otherwise we might link with an installed library
12113      # when we should be linking with a yet-to-be-installed one
12114      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12115      test no != "$hardcode_minus_L"; then
12116     # Linking always hardcodes the temporary library directory.
12117     hardcode_action=relink
12118   else
12119     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12120     hardcode_action=immediate
12121   fi
12122 else
12123   # We cannot hardcode anything, or else we can only hardcode existing
12124   # directories.
12125   hardcode_action=unsupported
12126 fi
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12128 $as_echo "$hardcode_action" >&6; }
12129
12130 if test relink = "$hardcode_action" ||
12131    test yes = "$inherit_rpath"; then
12132   # Fast installation is not supported
12133   enable_fast_install=no
12134 elif test yes = "$shlibpath_overrides_runpath" ||
12135      test no = "$enable_shared"; then
12136   # Fast installation is not necessary
12137   enable_fast_install=needless
12138 fi
12139
12140
12141
12142
12143
12144
12145   if test yes != "$enable_dlopen"; then
12146   enable_dlopen=unknown
12147   enable_dlopen_self=unknown
12148   enable_dlopen_self_static=unknown
12149 else
12150   lt_cv_dlopen=no
12151   lt_cv_dlopen_libs=
12152
12153   case $host_os in
12154   beos*)
12155     lt_cv_dlopen=load_add_on
12156     lt_cv_dlopen_libs=
12157     lt_cv_dlopen_self=yes
12158     ;;
12159
12160   mingw* | pw32* | cegcc*)
12161     lt_cv_dlopen=LoadLibrary
12162     lt_cv_dlopen_libs=
12163     ;;
12164
12165   cygwin*)
12166     lt_cv_dlopen=dlopen
12167     lt_cv_dlopen_libs=
12168     ;;
12169
12170   darwin*)
12171     # if libdl is installed we need to link against it
12172     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12173 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12174 if ${ac_cv_lib_dl_dlopen+:} false; then :
12175   $as_echo_n "(cached) " >&6
12176 else
12177   ac_check_lib_save_LIBS=$LIBS
12178 LIBS="-ldl  $LIBS"
12179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12180 /* end confdefs.h.  */
12181
12182 /* Override any GCC internal prototype to avoid an error.
12183    Use char because int might match the return type of a GCC
12184    builtin and then its argument prototype would still apply.  */
12185 #ifdef __cplusplus
12186 extern "C"
12187 #endif
12188 char dlopen ();
12189 int
12190 main ()
12191 {
12192 return dlopen ();
12193   ;
12194   return 0;
12195 }
12196 _ACEOF
12197 if ac_fn_c_try_link "$LINENO"; then :
12198   ac_cv_lib_dl_dlopen=yes
12199 else
12200   ac_cv_lib_dl_dlopen=no
12201 fi
12202 rm -f core conftest.err conftest.$ac_objext \
12203     conftest$ac_exeext conftest.$ac_ext
12204 LIBS=$ac_check_lib_save_LIBS
12205 fi
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12207 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12208 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12209   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12210 else
12211
12212     lt_cv_dlopen=dyld
12213     lt_cv_dlopen_libs=
12214     lt_cv_dlopen_self=yes
12215
12216 fi
12217
12218     ;;
12219
12220   tpf*)
12221     # Don't try to run any link tests for TPF.  We know it's impossible
12222     # because TPF is a cross-compiler, and we know how we open DSOs.
12223     lt_cv_dlopen=dlopen
12224     lt_cv_dlopen_libs=
12225     lt_cv_dlopen_self=no
12226     ;;
12227
12228   *)
12229     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12230 if test "x$ac_cv_func_shl_load" = xyes; then :
12231   lt_cv_dlopen=shl_load
12232 else
12233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12234 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12235 if ${ac_cv_lib_dld_shl_load+:} false; then :
12236   $as_echo_n "(cached) " >&6
12237 else
12238   ac_check_lib_save_LIBS=$LIBS
12239 LIBS="-ldld  $LIBS"
12240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12241 /* end confdefs.h.  */
12242
12243 /* Override any GCC internal prototype to avoid an error.
12244    Use char because int might match the return type of a GCC
12245    builtin and then its argument prototype would still apply.  */
12246 #ifdef __cplusplus
12247 extern "C"
12248 #endif
12249 char shl_load ();
12250 int
12251 main ()
12252 {
12253 return shl_load ();
12254   ;
12255   return 0;
12256 }
12257 _ACEOF
12258 if ac_fn_c_try_link "$LINENO"; then :
12259   ac_cv_lib_dld_shl_load=yes
12260 else
12261   ac_cv_lib_dld_shl_load=no
12262 fi
12263 rm -f core conftest.err conftest.$ac_objext \
12264     conftest$ac_exeext conftest.$ac_ext
12265 LIBS=$ac_check_lib_save_LIBS
12266 fi
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12268 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12269 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12270   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12271 else
12272   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12273 if test "x$ac_cv_func_dlopen" = xyes; then :
12274   lt_cv_dlopen=dlopen
12275 else
12276   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12277 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12278 if ${ac_cv_lib_dl_dlopen+:} false; then :
12279   $as_echo_n "(cached) " >&6
12280 else
12281   ac_check_lib_save_LIBS=$LIBS
12282 LIBS="-ldl  $LIBS"
12283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12284 /* end confdefs.h.  */
12285
12286 /* Override any GCC internal prototype to avoid an error.
12287    Use char because int might match the return type of a GCC
12288    builtin and then its argument prototype would still apply.  */
12289 #ifdef __cplusplus
12290 extern "C"
12291 #endif
12292 char dlopen ();
12293 int
12294 main ()
12295 {
12296 return dlopen ();
12297   ;
12298   return 0;
12299 }
12300 _ACEOF
12301 if ac_fn_c_try_link "$LINENO"; then :
12302   ac_cv_lib_dl_dlopen=yes
12303 else
12304   ac_cv_lib_dl_dlopen=no
12305 fi
12306 rm -f core conftest.err conftest.$ac_objext \
12307     conftest$ac_exeext conftest.$ac_ext
12308 LIBS=$ac_check_lib_save_LIBS
12309 fi
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12311 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12312 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12313   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12314 else
12315   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12316 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12317 if ${ac_cv_lib_svld_dlopen+:} false; then :
12318   $as_echo_n "(cached) " >&6
12319 else
12320   ac_check_lib_save_LIBS=$LIBS
12321 LIBS="-lsvld  $LIBS"
12322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12323 /* end confdefs.h.  */
12324
12325 /* Override any GCC internal prototype to avoid an error.
12326    Use char because int might match the return type of a GCC
12327    builtin and then its argument prototype would still apply.  */
12328 #ifdef __cplusplus
12329 extern "C"
12330 #endif
12331 char dlopen ();
12332 int
12333 main ()
12334 {
12335 return dlopen ();
12336   ;
12337   return 0;
12338 }
12339 _ACEOF
12340 if ac_fn_c_try_link "$LINENO"; then :
12341   ac_cv_lib_svld_dlopen=yes
12342 else
12343   ac_cv_lib_svld_dlopen=no
12344 fi
12345 rm -f core conftest.err conftest.$ac_objext \
12346     conftest$ac_exeext conftest.$ac_ext
12347 LIBS=$ac_check_lib_save_LIBS
12348 fi
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12350 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12351 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12352   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12353 else
12354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12355 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12356 if ${ac_cv_lib_dld_dld_link+:} false; then :
12357   $as_echo_n "(cached) " >&6
12358 else
12359   ac_check_lib_save_LIBS=$LIBS
12360 LIBS="-ldld  $LIBS"
12361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12362 /* end confdefs.h.  */
12363
12364 /* Override any GCC internal prototype to avoid an error.
12365    Use char because int might match the return type of a GCC
12366    builtin and then its argument prototype would still apply.  */
12367 #ifdef __cplusplus
12368 extern "C"
12369 #endif
12370 char dld_link ();
12371 int
12372 main ()
12373 {
12374 return dld_link ();
12375   ;
12376   return 0;
12377 }
12378 _ACEOF
12379 if ac_fn_c_try_link "$LINENO"; then :
12380   ac_cv_lib_dld_dld_link=yes
12381 else
12382   ac_cv_lib_dld_dld_link=no
12383 fi
12384 rm -f core conftest.err conftest.$ac_objext \
12385     conftest$ac_exeext conftest.$ac_ext
12386 LIBS=$ac_check_lib_save_LIBS
12387 fi
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12389 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12390 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12391   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12392 fi
12393
12394
12395 fi
12396
12397
12398 fi
12399
12400
12401 fi
12402
12403
12404 fi
12405
12406
12407 fi
12408
12409     ;;
12410   esac
12411
12412   if test no = "$lt_cv_dlopen"; then
12413     enable_dlopen=no
12414   else
12415     enable_dlopen=yes
12416   fi
12417
12418   case $lt_cv_dlopen in
12419   dlopen)
12420     save_CPPFLAGS=$CPPFLAGS
12421     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12422
12423     save_LDFLAGS=$LDFLAGS
12424     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12425
12426     save_LIBS=$LIBS
12427     LIBS="$lt_cv_dlopen_libs $LIBS"
12428
12429     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12430 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12431 if ${lt_cv_dlopen_self+:} false; then :
12432   $as_echo_n "(cached) " >&6
12433 else
12434           if test yes = "$cross_compiling"; then :
12435   lt_cv_dlopen_self=cross
12436 else
12437   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12438   lt_status=$lt_dlunknown
12439   cat > conftest.$ac_ext <<_LT_EOF
12440 #line $LINENO "configure"
12441 #include "confdefs.h"
12442
12443 #if HAVE_DLFCN_H
12444 #include <dlfcn.h>
12445 #endif
12446
12447 #include <stdio.h>
12448
12449 #ifdef RTLD_GLOBAL
12450 #  define LT_DLGLOBAL           RTLD_GLOBAL
12451 #else
12452 #  ifdef DL_GLOBAL
12453 #    define LT_DLGLOBAL         DL_GLOBAL
12454 #  else
12455 #    define LT_DLGLOBAL         0
12456 #  endif
12457 #endif
12458
12459 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12460    find out it does not work in some platform. */
12461 #ifndef LT_DLLAZY_OR_NOW
12462 #  ifdef RTLD_LAZY
12463 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12464 #  else
12465 #    ifdef DL_LAZY
12466 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12467 #    else
12468 #      ifdef RTLD_NOW
12469 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12470 #      else
12471 #        ifdef DL_NOW
12472 #          define LT_DLLAZY_OR_NOW      DL_NOW
12473 #        else
12474 #          define LT_DLLAZY_OR_NOW      0
12475 #        endif
12476 #      endif
12477 #    endif
12478 #  endif
12479 #endif
12480
12481 /* When -fvisibility=hidden is used, assume the code has been annotated
12482    correspondingly for the symbols needed.  */
12483 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12484 int fnord () __attribute__((visibility("default")));
12485 #endif
12486
12487 int fnord () { return 42; }
12488 int main ()
12489 {
12490   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12491   int status = $lt_dlunknown;
12492
12493   if (self)
12494     {
12495       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12496       else
12497         {
12498           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12499           else puts (dlerror ());
12500         }
12501       /* dlclose (self); */
12502     }
12503   else
12504     puts (dlerror ());
12505
12506   return status;
12507 }
12508 _LT_EOF
12509   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12510   (eval $ac_link) 2>&5
12511   ac_status=$?
12512   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12513   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12514     (./conftest; exit; ) >&5 2>/dev/null
12515     lt_status=$?
12516     case x$lt_status in
12517       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12518       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12519       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12520     esac
12521   else :
12522     # compilation failed
12523     lt_cv_dlopen_self=no
12524   fi
12525 fi
12526 rm -fr conftest*
12527
12528
12529 fi
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12531 $as_echo "$lt_cv_dlopen_self" >&6; }
12532
12533     if test yes = "$lt_cv_dlopen_self"; then
12534       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12535       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12536 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12537 if ${lt_cv_dlopen_self_static+:} false; then :
12538   $as_echo_n "(cached) " >&6
12539 else
12540           if test yes = "$cross_compiling"; then :
12541   lt_cv_dlopen_self_static=cross
12542 else
12543   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12544   lt_status=$lt_dlunknown
12545   cat > conftest.$ac_ext <<_LT_EOF
12546 #line $LINENO "configure"
12547 #include "confdefs.h"
12548
12549 #if HAVE_DLFCN_H
12550 #include <dlfcn.h>
12551 #endif
12552
12553 #include <stdio.h>
12554
12555 #ifdef RTLD_GLOBAL
12556 #  define LT_DLGLOBAL           RTLD_GLOBAL
12557 #else
12558 #  ifdef DL_GLOBAL
12559 #    define LT_DLGLOBAL         DL_GLOBAL
12560 #  else
12561 #    define LT_DLGLOBAL         0
12562 #  endif
12563 #endif
12564
12565 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12566    find out it does not work in some platform. */
12567 #ifndef LT_DLLAZY_OR_NOW
12568 #  ifdef RTLD_LAZY
12569 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12570 #  else
12571 #    ifdef DL_LAZY
12572 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12573 #    else
12574 #      ifdef RTLD_NOW
12575 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12576 #      else
12577 #        ifdef DL_NOW
12578 #          define LT_DLLAZY_OR_NOW      DL_NOW
12579 #        else
12580 #          define LT_DLLAZY_OR_NOW      0
12581 #        endif
12582 #      endif
12583 #    endif
12584 #  endif
12585 #endif
12586
12587 /* When -fvisibility=hidden is used, assume the code has been annotated
12588    correspondingly for the symbols needed.  */
12589 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12590 int fnord () __attribute__((visibility("default")));
12591 #endif
12592
12593 int fnord () { return 42; }
12594 int main ()
12595 {
12596   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12597   int status = $lt_dlunknown;
12598
12599   if (self)
12600     {
12601       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12602       else
12603         {
12604           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12605           else puts (dlerror ());
12606         }
12607       /* dlclose (self); */
12608     }
12609   else
12610     puts (dlerror ());
12611
12612   return status;
12613 }
12614 _LT_EOF
12615   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12616   (eval $ac_link) 2>&5
12617   ac_status=$?
12618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12619   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12620     (./conftest; exit; ) >&5 2>/dev/null
12621     lt_status=$?
12622     case x$lt_status in
12623       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12624       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12625       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12626     esac
12627   else :
12628     # compilation failed
12629     lt_cv_dlopen_self_static=no
12630   fi
12631 fi
12632 rm -fr conftest*
12633
12634
12635 fi
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12637 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12638     fi
12639
12640     CPPFLAGS=$save_CPPFLAGS
12641     LDFLAGS=$save_LDFLAGS
12642     LIBS=$save_LIBS
12643     ;;
12644   esac
12645
12646   case $lt_cv_dlopen_self in
12647   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12648   *) enable_dlopen_self=unknown ;;
12649   esac
12650
12651   case $lt_cv_dlopen_self_static in
12652   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12653   *) enable_dlopen_self_static=unknown ;;
12654   esac
12655 fi
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673 striplib=
12674 old_striplib=
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12676 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12677 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12678   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12679   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12681 $as_echo "yes" >&6; }
12682 else
12683 # FIXME - insert some real tests, host_os isn't really good enough
12684   case $host_os in
12685   darwin*)
12686     if test -n "$STRIP"; then
12687       striplib="$STRIP -x"
12688       old_striplib="$STRIP -S"
12689       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12690 $as_echo "yes" >&6; }
12691     else
12692       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12693 $as_echo "no" >&6; }
12694     fi
12695     ;;
12696   *)
12697     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12698 $as_echo "no" >&6; }
12699     ;;
12700   esac
12701 fi
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714   # Report what library types will actually be built
12715   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12716 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12718 $as_echo "$can_build_shared" >&6; }
12719
12720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12721 $as_echo_n "checking whether to build shared libraries... " >&6; }
12722   test no = "$can_build_shared" && enable_shared=no
12723
12724   # On AIX, shared libraries and static libraries use the same namespace, and
12725   # are all built from PIC.
12726   case $host_os in
12727   aix3*)
12728     test yes = "$enable_shared" && enable_static=no
12729     if test -n "$RANLIB"; then
12730       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12731       postinstall_cmds='$RANLIB $lib'
12732     fi
12733     ;;
12734
12735   aix[4-9]*)
12736     if test ia64 != "$host_cpu"; then
12737       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12738       yes,aix,yes) ;;                   # shared object as lib.so file only
12739       yes,svr4,*) ;;                    # shared object as lib.so archive member only
12740       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12741       esac
12742     fi
12743     ;;
12744   esac
12745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12746 $as_echo "$enable_shared" >&6; }
12747
12748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12749 $as_echo_n "checking whether to build static libraries... " >&6; }
12750   # Make sure either enable_shared or enable_static is yes.
12751   test yes = "$enable_shared" || enable_static=yes
12752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12753 $as_echo "$enable_static" >&6; }
12754
12755
12756
12757
12758 fi
12759 ac_ext=c
12760 ac_cpp='$CPP $CPPFLAGS'
12761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12764
12765 CC=$lt_save_CC
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781         ac_config_commands="$ac_config_commands libtool"
12782
12783
12784
12785
12786 # Only expand once:
12787
12788
12789
12790
12791 # Automatically update the libtool script if it becomes out-of-date.
12792
12793
12794 # Checks for header files.
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12796 $as_echo_n "checking for ANSI C header files... " >&6; }
12797 if ${ac_cv_header_stdc+:} false; then :
12798   $as_echo_n "(cached) " >&6
12799 else
12800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12801 /* end confdefs.h.  */
12802 #include <stdlib.h>
12803 #include <stdarg.h>
12804 #include <string.h>
12805 #include <float.h>
12806
12807 int
12808 main ()
12809 {
12810
12811   ;
12812   return 0;
12813 }
12814 _ACEOF
12815 if ac_fn_c_try_compile "$LINENO"; then :
12816   ac_cv_header_stdc=yes
12817 else
12818   ac_cv_header_stdc=no
12819 fi
12820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12821
12822 if test $ac_cv_header_stdc = yes; then
12823   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12825 /* end confdefs.h.  */
12826 #include <string.h>
12827
12828 _ACEOF
12829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12830   $EGREP "memchr" >/dev/null 2>&1; then :
12831
12832 else
12833   ac_cv_header_stdc=no
12834 fi
12835 rm -f conftest*
12836
12837 fi
12838
12839 if test $ac_cv_header_stdc = yes; then
12840   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12842 /* end confdefs.h.  */
12843 #include <stdlib.h>
12844
12845 _ACEOF
12846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12847   $EGREP "free" >/dev/null 2>&1; then :
12848
12849 else
12850   ac_cv_header_stdc=no
12851 fi
12852 rm -f conftest*
12853
12854 fi
12855
12856 if test $ac_cv_header_stdc = yes; then
12857   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12858   if test "$cross_compiling" = yes; then :
12859   :
12860 else
12861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12862 /* end confdefs.h.  */
12863 #include <ctype.h>
12864 #include <stdlib.h>
12865 #if ((' ' & 0x0FF) == 0x020)
12866 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12867 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12868 #else
12869 # define ISLOWER(c) \
12870                    (('a' <= (c) && (c) <= 'i') \
12871                      || ('j' <= (c) && (c) <= 'r') \
12872                      || ('s' <= (c) && (c) <= 'z'))
12873 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12874 #endif
12875
12876 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12877 int
12878 main ()
12879 {
12880   int i;
12881   for (i = 0; i < 256; i++)
12882     if (XOR (islower (i), ISLOWER (i))
12883         || toupper (i) != TOUPPER (i))
12884       return 2;
12885   return 0;
12886 }
12887 _ACEOF
12888 if ac_fn_c_try_run "$LINENO"; then :
12889
12890 else
12891   ac_cv_header_stdc=no
12892 fi
12893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12894   conftest.$ac_objext conftest.beam conftest.$ac_ext
12895 fi
12896
12897 fi
12898 fi
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12900 $as_echo "$ac_cv_header_stdc" >&6; }
12901 if test $ac_cv_header_stdc = yes; then
12902
12903 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12904
12905 fi
12906
12907 for ac_header in errno.h fcntl.h stdlib.h unistd.h termios.h string.h sys/time.h sys/types.h stdarg.h arpa/inet.h stdio.h
12908 do :
12909   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12910 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12911 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12912   cat >>confdefs.h <<_ACEOF
12913 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12914 _ACEOF
12915
12916 else
12917   as_fn_error $? "some header files not found" "$LINENO" 5
12918 fi
12919
12920 done
12921
12922
12923 # Checks for typedefs, structures, and compiler characteristics.
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12925 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12926 if ${ac_cv_c_const+:} false; then :
12927   $as_echo_n "(cached) " >&6
12928 else
12929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12930 /* end confdefs.h.  */
12931
12932 int
12933 main ()
12934 {
12935
12936 #ifndef __cplusplus
12937   /* Ultrix mips cc rejects this sort of thing.  */
12938   typedef int charset[2];
12939   const charset cs = { 0, 0 };
12940   /* SunOS 4.1.1 cc rejects this.  */
12941   char const *const *pcpcc;
12942   char **ppc;
12943   /* NEC SVR4.0.2 mips cc rejects this.  */
12944   struct point {int x, y;};
12945   static struct point const zero = {0,0};
12946   /* AIX XL C 1.02.0.0 rejects this.
12947      It does not let you subtract one const X* pointer from another in
12948      an arm of an if-expression whose if-part is not a constant
12949      expression */
12950   const char *g = "string";
12951   pcpcc = &g + (g ? g-g : 0);
12952   /* HPUX 7.0 cc rejects these. */
12953   ++pcpcc;
12954   ppc = (char**) pcpcc;
12955   pcpcc = (char const *const *) ppc;
12956   { /* SCO 3.2v4 cc rejects this sort of thing.  */
12957     char tx;
12958     char *t = &tx;
12959     char const *s = 0 ? (char *) 0 : (char const *) 0;
12960
12961     *t++ = 0;
12962     if (s) return 0;
12963   }
12964   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12965     int x[] = {25, 17};
12966     const int *foo = &x[0];
12967     ++foo;
12968   }
12969   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12970     typedef const int *iptr;
12971     iptr p = 0;
12972     ++p;
12973   }
12974   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12975        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12976     struct s { int j; const int *ap[3]; } bx;
12977     struct s *b = &bx; b->j = 5;
12978   }
12979   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12980     const int foo = 10;
12981     if (!foo) return 0;
12982   }
12983   return !cs[0] && !zero.x;
12984 #endif
12985
12986   ;
12987   return 0;
12988 }
12989 _ACEOF
12990 if ac_fn_c_try_compile "$LINENO"; then :
12991   ac_cv_c_const=yes
12992 else
12993   ac_cv_c_const=no
12994 fi
12995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12996 fi
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12998 $as_echo "$ac_cv_c_const" >&6; }
12999 if test $ac_cv_c_const = no; then
13000
13001 $as_echo "#define const /**/" >>confdefs.h
13002
13003 fi
13004
13005 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13006 if test "x$ac_cv_type_size_t" = xyes; then :
13007
13008 else
13009
13010 cat >>confdefs.h <<_ACEOF
13011 #define size_t unsigned int
13012 _ACEOF
13013
13014 fi
13015
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13017 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13018 if ${ac_cv_header_time+:} false; then :
13019   $as_echo_n "(cached) " >&6
13020 else
13021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13022 /* end confdefs.h.  */
13023 #include <sys/types.h>
13024 #include <sys/time.h>
13025 #include <time.h>
13026
13027 int
13028 main ()
13029 {
13030 if ((struct tm *) 0)
13031 return 0;
13032   ;
13033   return 0;
13034 }
13035 _ACEOF
13036 if ac_fn_c_try_compile "$LINENO"; then :
13037   ac_cv_header_time=yes
13038 else
13039   ac_cv_header_time=no
13040 fi
13041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13042 fi
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13044 $as_echo "$ac_cv_header_time" >&6; }
13045 if test $ac_cv_header_time = yes; then
13046
13047 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13048
13049 fi
13050
13051
13052 # Checks for library functions.
13053 for ac_func in select strerror strncpy memcpy strlcpy strlcat
13054 do :
13055   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13056 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13057 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13058   cat >>confdefs.h <<_ACEOF
13059 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13060 _ACEOF
13061
13062 fi
13063 done
13064
13065
13066 # Select OS specific versions of source files.
13067
13068
13069 BUNDLE_HOST=`uname | sed -e s,/,_,`
13070 DYN_LIB_EXT="so"
13071 case "$BUNDLE_HOST" in
13072 Darwin)
13073         BUNDLE_HOST=MacOS
13074         DYN_LIB_EXT="dylib"
13075         ;;
13076 SunOS)
13077         BUNDLE_HOST=Solaris
13078         ;;
13079         esac
13080
13081 # --disable-libusb
13082 # Check whether --enable-libusb was given.
13083 if test "${enable_libusb+set}" = set; then :
13084   enableval=$enable_libusb;  use_libusb="${enableval}"
13085 else
13086    use_libusb=yes
13087 fi
13088
13089
13090 # check if libusb is used
13091 LIBUSB_NEEDED_VERSION="1.0.9"
13092 if test "x$use_libusb" != xno ; then
13093         if test -n "$PKG_CONFIG" && \
13094     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
13095   ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
13096   ac_status=$?
13097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13098   test $ac_status = 0; }; then
13099
13100
13101 pkg_failed=no
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0 >= $LIBUSB_NEEDED_VERSION" >&5
13103 $as_echo_n "checking for libusb-1.0 >= $LIBUSB_NEEDED_VERSION... " >&6; }
13104
13105 if test -n "$LIBUSB_CFLAGS"; then
13106     pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
13107  elif test -n "$PKG_CONFIG"; then
13108     if test -n "$PKG_CONFIG" && \
13109     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= \$LIBUSB_NEEDED_VERSION\""; } >&5
13110   ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= $LIBUSB_NEEDED_VERSION") 2>&5
13111   ac_status=$?
13112   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13113   test $ac_status = 0; }; then
13114   pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0 >= $LIBUSB_NEEDED_VERSION" 2>/dev/null`
13115                       test "x$?" != "x0" && pkg_failed=yes
13116 else
13117   pkg_failed=yes
13118 fi
13119  else
13120     pkg_failed=untried
13121 fi
13122 if test -n "$LIBUSB_LIBS"; then
13123     pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
13124  elif test -n "$PKG_CONFIG"; then
13125     if test -n "$PKG_CONFIG" && \
13126     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= \$LIBUSB_NEEDED_VERSION\""; } >&5
13127   ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= $LIBUSB_NEEDED_VERSION") 2>&5
13128   ac_status=$?
13129   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13130   test $ac_status = 0; }; then
13131   pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0 >= $LIBUSB_NEEDED_VERSION" 2>/dev/null`
13132                       test "x$?" != "x0" && pkg_failed=yes
13133 else
13134   pkg_failed=yes
13135 fi
13136  else
13137     pkg_failed=untried
13138 fi
13139
13140
13141
13142 if test $pkg_failed = yes; then
13143         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13144 $as_echo "no" >&6; }
13145
13146 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13147         _pkg_short_errors_supported=yes
13148 else
13149         _pkg_short_errors_supported=no
13150 fi
13151         if test $_pkg_short_errors_supported = yes; then
13152                 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0 >= $LIBUSB_NEEDED_VERSION" 2>&1`
13153         else
13154                 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0 >= $LIBUSB_NEEDED_VERSION" 2>&1`
13155         fi
13156         # Put the nasty error message in config.log where it belongs
13157         echo "$LIBUSB_PKG_ERRORS" >&5
13158
13159
13160                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: install libusb $LIBUSB_NEEDED_VERSION or later" >&5
13161 $as_echo "$as_me: WARNING: install libusb $LIBUSB_NEEDED_VERSION or later" >&2;}
13162
13163 pkg_failed=no
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
13165 $as_echo_n "checking for libusb-1.0... " >&6; }
13166
13167 if test -n "$LIBUSB_CFLAGS"; then
13168     pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
13169  elif test -n "$PKG_CONFIG"; then
13170     if test -n "$PKG_CONFIG" && \
13171     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
13172   ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
13173   ac_status=$?
13174   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13175   test $ac_status = 0; }; then
13176   pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
13177                       test "x$?" != "x0" && pkg_failed=yes
13178 else
13179   pkg_failed=yes
13180 fi
13181  else
13182     pkg_failed=untried
13183 fi
13184 if test -n "$LIBUSB_LIBS"; then
13185     pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
13186  elif test -n "$PKG_CONFIG"; then
13187     if test -n "$PKG_CONFIG" && \
13188     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
13189   ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
13190   ac_status=$?
13191   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13192   test $ac_status = 0; }; then
13193   pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
13194                       test "x$?" != "x0" && pkg_failed=yes
13195 else
13196   pkg_failed=yes
13197 fi
13198  else
13199     pkg_failed=untried
13200 fi
13201
13202
13203
13204 if test $pkg_failed = yes; then
13205         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13206 $as_echo "no" >&6; }
13207
13208 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13209         _pkg_short_errors_supported=yes
13210 else
13211         _pkg_short_errors_supported=no
13212 fi
13213         if test $_pkg_short_errors_supported = yes; then
13214                 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
13215         else
13216                 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
13217         fi
13218         # Put the nasty error message in config.log where it belongs
13219         echo "$LIBUSB_PKG_ERRORS" >&5
13220
13221         as_fn_error $? "Package requirements (libusb-1.0) were not met:
13222
13223 $LIBUSB_PKG_ERRORS
13224
13225 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13226 installed software in a non-standard prefix.
13227
13228 Alternatively, you may set the environment variables LIBUSB_CFLAGS
13229 and LIBUSB_LIBS to avoid the need to call pkg-config.
13230 See the pkg-config man page for more details." "$LINENO" 5
13231 elif test $pkg_failed = untried; then
13232         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13233 $as_echo "no" >&6; }
13234         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13236 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13237 is in your PATH or set the PKG_CONFIG environment variable to the full
13238 path to pkg-config.
13239
13240 Alternatively, you may set the environment variables LIBUSB_CFLAGS
13241 and LIBUSB_LIBS to avoid the need to call pkg-config.
13242 See the pkg-config man page for more details.
13243
13244 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13245 See \`config.log' for more details" "$LINENO" 5; }
13246 else
13247         LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
13248         LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
13249         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13250 $as_echo "yes" >&6; }
13251
13252 fi
13253
13254 elif test $pkg_failed = untried; then
13255         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13256 $as_echo "no" >&6; }
13257
13258                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: install libusb $LIBUSB_NEEDED_VERSION or later" >&5
13259 $as_echo "$as_me: WARNING: install libusb $LIBUSB_NEEDED_VERSION or later" >&2;}
13260
13261 pkg_failed=no
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
13263 $as_echo_n "checking for libusb-1.0... " >&6; }
13264
13265 if test -n "$LIBUSB_CFLAGS"; then
13266     pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
13267  elif test -n "$PKG_CONFIG"; then
13268     if test -n "$PKG_CONFIG" && \
13269     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
13270   ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
13271   ac_status=$?
13272   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13273   test $ac_status = 0; }; then
13274   pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
13275                       test "x$?" != "x0" && pkg_failed=yes
13276 else
13277   pkg_failed=yes
13278 fi
13279  else
13280     pkg_failed=untried
13281 fi
13282 if test -n "$LIBUSB_LIBS"; then
13283     pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
13284  elif test -n "$PKG_CONFIG"; then
13285     if test -n "$PKG_CONFIG" && \
13286     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
13287   ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
13288   ac_status=$?
13289   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13290   test $ac_status = 0; }; then
13291   pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
13292                       test "x$?" != "x0" && pkg_failed=yes
13293 else
13294   pkg_failed=yes
13295 fi
13296  else
13297     pkg_failed=untried
13298 fi
13299
13300
13301
13302 if test $pkg_failed = yes; then
13303         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13304 $as_echo "no" >&6; }
13305
13306 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13307         _pkg_short_errors_supported=yes
13308 else
13309         _pkg_short_errors_supported=no
13310 fi
13311         if test $_pkg_short_errors_supported = yes; then
13312                 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
13313         else
13314                 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
13315         fi
13316         # Put the nasty error message in config.log where it belongs
13317         echo "$LIBUSB_PKG_ERRORS" >&5
13318
13319         as_fn_error $? "Package requirements (libusb-1.0) were not met:
13320
13321 $LIBUSB_PKG_ERRORS
13322
13323 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13324 installed software in a non-standard prefix.
13325
13326 Alternatively, you may set the environment variables LIBUSB_CFLAGS
13327 and LIBUSB_LIBS to avoid the need to call pkg-config.
13328 See the pkg-config man page for more details." "$LINENO" 5
13329 elif test $pkg_failed = untried; then
13330         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13331 $as_echo "no" >&6; }
13332         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13334 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13335 is in your PATH or set the PKG_CONFIG environment variable to the full
13336 path to pkg-config.
13337
13338 Alternatively, you may set the environment variables LIBUSB_CFLAGS
13339 and LIBUSB_LIBS to avoid the need to call pkg-config.
13340 See the pkg-config man page for more details.
13341
13342 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13343 See \`config.log' for more details" "$LINENO" 5; }
13344 else
13345         LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
13346         LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
13347         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13348 $as_echo "yes" >&6; }
13349
13350 fi
13351
13352 else
13353         LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
13354         LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
13355         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13356 $as_echo "yes" >&6; }
13357
13358 fi
13359
13360 fi
13361
13362         saved_CPPFLAGS="$CPPFLAGS"
13363         saved_LIBS="$LIBS"
13364
13365         CPPFLAGS="$CPPFLAGS $LIBUSB_CFLAGS"
13366         LIBS="$LDFLAGS $LIBUSB_LIBS"
13367
13368         for ac_header in libusb.h
13369 do :
13370   ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
13371 if test "x$ac_cv_header_libusb_h" = xyes; then :
13372   cat >>confdefs.h <<_ACEOF
13373 #define HAVE_LIBUSB_H 1
13374 _ACEOF
13375
13376 else
13377    as_fn_error $? "libusb.h not found, install libusb or use ./configure LIBUSB_CFLAGS=..." "$LINENO" 5
13378 fi
13379
13380 done
13381
13382
13383         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb_init" >&5
13384 $as_echo_n "checking for libusb_init... " >&6; }
13385         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386 /* end confdefs.h.  */
13387
13388 /* Override any GCC internal prototype to avoid an error.
13389    Use char because int might match the return type of a GCC
13390    builtin and then its argument prototype would still apply.  */
13391 #ifdef __cplusplus
13392 extern "C"
13393 #endif
13394 char libusb_init ();
13395 int
13396 main ()
13397 {
13398 return libusb_init ();
13399   ;
13400   return 0;
13401 }
13402 _ACEOF
13403 if ac_fn_c_try_link "$LINENO"; then :
13404    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13405 $as_echo "yes" >&6; }
13406 else
13407    as_fn_error $? "libusb not found, use ./configure LIBUSB_LIBS=..." "$LINENO" 5
13408 fi
13409 rm -f core conftest.err conftest.$ac_objext \
13410     conftest$ac_exeext conftest.$ac_ext
13411
13412         CPPFLAGS="$saved_CPPFLAGS"
13413         LIBS="$saved_LIBS"
13414
13415         use_libusb=yes
13416 fi
13417
13418
13419  if test "${use_libusb}" != "no"; then
13420   WITH_LIBUSB_TRUE=
13421   WITH_LIBUSB_FALSE='#'
13422 else
13423   WITH_LIBUSB_TRUE='#'
13424   WITH_LIBUSB_FALSE=
13425 fi
13426
13427
13428 # --enable-composite-as-multislot
13429 use_composite_as_multislot=no
13430 # Check whether --enable-composite-as-multislot was given.
13431 if test "${enable_composite_as_multislot+set}" = set; then :
13432   enableval=$enable_composite_as_multislot;  use_composite_as_multislot="${enableval}"
13433 fi
13434
13435
13436 if test "x$use_composite_as_multislot" = xyes; then
13437
13438 $as_echo "#define USE_COMPOSITE_AS_MULTISLOT 1" >>confdefs.h
13439
13440 fi
13441
13442 # check if the compiler support -fvisibility=hidden (GCC >= 4)
13443 saved_CFLAGS="$CFLAGS"
13444 CFLAGS="$CFLAGS -fvisibility=hidden"
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fvisibility=hidden" >&5
13446 $as_echo_n "checking for -fvisibility=hidden... " >&6; }
13447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13448 /* end confdefs.h.  */
13449 char foo;
13450 _ACEOF
13451 if ac_fn_c_try_compile "$LINENO"; then :
13452      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13453 $as_echo "yes" >&6; }
13454         SYMBOL_VISIBILITY="-fvisibility=hidden"
13455 else
13456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13457 $as_echo "no" >&6; }
13458 fi
13459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13460 CFLAGS="$saved_CFLAGS"
13461
13462
13463 # --disable-multi-thread
13464 # Check whether --enable-multi-thread was given.
13465 if test "${enable_multi_thread+set}" = set; then :
13466   enableval=$enable_multi_thread;  multithread="${enableval}"
13467 else
13468    multithread=yes
13469 fi
13470
13471
13472 if test "${multithread}" != no ; then
13473
13474
13475 ac_ext=c
13476 ac_cpp='$CPP $CPPFLAGS'
13477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13480
13481 ax_pthread_ok=no
13482
13483 # We used to check for pthread.h first, but this fails if pthread.h
13484 # requires special compiler flags (e.g. on True64 or Sequent).
13485 # It gets checked for in the link test anyway.
13486
13487 # First of all, check if the user has set any of the PTHREAD_LIBS,
13488 # etcetera environment variables, and if threads linking works using
13489 # them:
13490 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
13491         save_CFLAGS="$CFLAGS"
13492         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13493         save_LIBS="$LIBS"
13494         LIBS="$PTHREAD_LIBS $LIBS"
13495         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
13496 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
13497         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13498 /* end confdefs.h.  */
13499
13500 /* Override any GCC internal prototype to avoid an error.
13501    Use char because int might match the return type of a GCC
13502    builtin and then its argument prototype would still apply.  */
13503 #ifdef __cplusplus
13504 extern "C"
13505 #endif
13506 char pthread_join ();
13507 int
13508 main ()
13509 {
13510 return pthread_join ();
13511   ;
13512   return 0;
13513 }
13514 _ACEOF
13515 if ac_fn_c_try_link "$LINENO"; then :
13516   ax_pthread_ok=yes
13517 fi
13518 rm -f core conftest.err conftest.$ac_objext \
13519     conftest$ac_exeext conftest.$ac_ext
13520         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
13521 $as_echo "$ax_pthread_ok" >&6; }
13522         if test x"$ax_pthread_ok" = xno; then
13523                 PTHREAD_LIBS=""
13524                 PTHREAD_CFLAGS=""
13525         fi
13526         LIBS="$save_LIBS"
13527         CFLAGS="$save_CFLAGS"
13528 fi
13529
13530 # We must check for the threads library under a number of different
13531 # names; the ordering is very important because some systems
13532 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
13533 # libraries is broken (non-POSIX).
13534
13535 # Create a list of thread flags to try.  Items starting with a "-" are
13536 # C compiler flags, and other items are library names, except for "none"
13537 # which indicates that we try without any flags at all, and "pthread-config"
13538 # which is a program returning the flags for the Pth emulation library.
13539
13540 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
13541
13542 # The ordering *is* (sometimes) important.  Some notes on the
13543 # individual items follow:
13544
13545 # pthreads: AIX (must check this before -lpthread)
13546 # none: in case threads are in libc; should be tried before -Kthread and
13547 #       other compiler flags to prevent continual compiler warnings
13548 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
13549 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
13550 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
13551 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
13552 # -pthreads: Solaris/gcc
13553 # -mthreads: Mingw32/gcc, Lynx/gcc
13554 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
13555 #      doesn't hurt to check since this sometimes defines pthreads too;
13556 #      also defines -D_REENTRANT)
13557 #      ... -mt is also the pthreads flag for HP/aCC
13558 # pthread: Linux, etcetera
13559 # --thread-safe: KAI C++
13560 # pthread-config: use pthread-config program (for GNU Pth library)
13561
13562 case ${host_os} in
13563         solaris*)
13564
13565         # On Solaris (at least, for some versions), libc contains stubbed
13566         # (non-functional) versions of the pthreads routines, so link-based
13567         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
13568         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
13569         # a function called by this macro, so we could check for that, but
13570         # who knows whether they'll stub that too in a future libc.)  So,
13571         # we'll just look for -pthreads and -lpthread first:
13572
13573         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
13574         ;;
13575
13576         darwin*)
13577         ax_pthread_flags="-pthread $ax_pthread_flags"
13578         ;;
13579 esac
13580
13581 if test x"$ax_pthread_ok" = xno; then
13582 for flag in $ax_pthread_flags; do
13583
13584         case $flag in
13585                 none)
13586                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
13587 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
13588                 ;;
13589
13590                 -*)
13591                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
13592 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
13593                 PTHREAD_CFLAGS="$flag"
13594                 ;;
13595
13596                 pthread-config)
13597                 # Extract the first word of "pthread-config", so it can be a program name with args.
13598 set dummy pthread-config; ac_word=$2
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13600 $as_echo_n "checking for $ac_word... " >&6; }
13601 if ${ac_cv_prog_ax_pthread_config+:} false; then :
13602   $as_echo_n "(cached) " >&6
13603 else
13604   if test -n "$ax_pthread_config"; then
13605   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
13606 else
13607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13608 for as_dir in $PATH
13609 do
13610   IFS=$as_save_IFS
13611   test -z "$as_dir" && as_dir=.
13612     for ac_exec_ext in '' $ac_executable_extensions; do
13613   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13614     ac_cv_prog_ax_pthread_config="yes"
13615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13616     break 2
13617   fi
13618 done
13619   done
13620 IFS=$as_save_IFS
13621
13622   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
13623 fi
13624 fi
13625 ax_pthread_config=$ac_cv_prog_ax_pthread_config
13626 if test -n "$ax_pthread_config"; then
13627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
13628 $as_echo "$ax_pthread_config" >&6; }
13629 else
13630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13631 $as_echo "no" >&6; }
13632 fi
13633
13634
13635                 if test x"$ax_pthread_config" = xno; then continue; fi
13636                 PTHREAD_CFLAGS="`pthread-config --cflags`"
13637                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
13638                 ;;
13639
13640                 *)
13641                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
13642 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
13643                 PTHREAD_LIBS="-l$flag"
13644                 ;;
13645         esac
13646
13647         save_LIBS="$LIBS"
13648         save_CFLAGS="$CFLAGS"
13649         LIBS="$PTHREAD_LIBS $LIBS"
13650         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13651
13652         # Check for various functions.  We must include pthread.h,
13653         # since some functions may be macros.  (On the Sequent, we
13654         # need a special flag -Kthread to make this header compile.)
13655         # We check for pthread_join because it is in -lpthread on IRIX
13656         # while pthread_create is in libc.  We check for pthread_attr_init
13657         # due to DEC craziness with -lpthreads.  We check for
13658         # pthread_cleanup_push because it is one of the few pthread
13659         # functions on Solaris that doesn't have a non-functional libc stub.
13660         # We try pthread_create on general principles.
13661         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13662 /* end confdefs.h.  */
13663 #include <pthread.h>
13664                         static void routine(void *a) { a = 0; }
13665                         static void *start_routine(void *a) { return a; }
13666 int
13667 main ()
13668 {
13669 pthread_t th; pthread_attr_t attr;
13670                         pthread_create(&th, 0, start_routine, 0);
13671                         pthread_join(th, 0);
13672                         pthread_attr_init(&attr);
13673                         pthread_cleanup_push(routine, 0);
13674                         pthread_cleanup_pop(0) /* ; */
13675   ;
13676   return 0;
13677 }
13678 _ACEOF
13679 if ac_fn_c_try_link "$LINENO"; then :
13680   ax_pthread_ok=yes
13681 fi
13682 rm -f core conftest.err conftest.$ac_objext \
13683     conftest$ac_exeext conftest.$ac_ext
13684
13685         LIBS="$save_LIBS"
13686         CFLAGS="$save_CFLAGS"
13687
13688         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
13689 $as_echo "$ax_pthread_ok" >&6; }
13690         if test "x$ax_pthread_ok" = xyes; then
13691                 break;
13692         fi
13693
13694         PTHREAD_LIBS=""
13695         PTHREAD_CFLAGS=""
13696 done
13697 fi
13698
13699 # Various other checks:
13700 if test "x$ax_pthread_ok" = xyes; then
13701         save_LIBS="$LIBS"
13702         LIBS="$PTHREAD_LIBS $LIBS"
13703         save_CFLAGS="$CFLAGS"
13704         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13705
13706         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
13707         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
13708 $as_echo_n "checking for joinable pthread attribute... " >&6; }
13709         attr_name=unknown
13710         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
13711             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13712 /* end confdefs.h.  */
13713 #include <pthread.h>
13714 int
13715 main ()
13716 {
13717 int attr = $attr; return attr /* ; */
13718   ;
13719   return 0;
13720 }
13721 _ACEOF
13722 if ac_fn_c_try_link "$LINENO"; then :
13723   attr_name=$attr; break
13724 fi
13725 rm -f core conftest.err conftest.$ac_objext \
13726     conftest$ac_exeext conftest.$ac_ext
13727         done
13728         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
13729 $as_echo "$attr_name" >&6; }
13730         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
13731
13732 cat >>confdefs.h <<_ACEOF
13733 #define PTHREAD_CREATE_JOINABLE $attr_name
13734 _ACEOF
13735
13736         fi
13737
13738         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
13739 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
13740         flag=no
13741         case ${host_os} in
13742             aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
13743             osf* | hpux*) flag="-D_REENTRANT";;
13744             solaris*)
13745             if test "$GCC" = "yes"; then
13746                 flag="-D_REENTRANT"
13747             else
13748                 flag="-mt -D_REENTRANT"
13749             fi
13750             ;;
13751         esac
13752         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
13753 $as_echo "${flag}" >&6; }
13754         if test "x$flag" != xno; then
13755             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
13756         fi
13757
13758         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
13759 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
13760 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
13761   $as_echo_n "(cached) " >&6
13762 else
13763
13764                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13765 /* end confdefs.h.  */
13766
13767                     #include <pthread.h>
13768 int
13769 main ()
13770 {
13771 int i = PTHREAD_PRIO_INHERIT;
13772   ;
13773   return 0;
13774 }
13775 _ACEOF
13776 if ac_fn_c_try_link "$LINENO"; then :
13777   ax_cv_PTHREAD_PRIO_INHERIT=yes
13778 else
13779   ax_cv_PTHREAD_PRIO_INHERIT=no
13780 fi
13781 rm -f core conftest.err conftest.$ac_objext \
13782     conftest$ac_exeext conftest.$ac_ext
13783
13784 fi
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
13786 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
13787         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
13788
13789 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
13790
13791 fi
13792
13793         LIBS="$save_LIBS"
13794         CFLAGS="$save_CFLAGS"
13795
13796         # More AIX lossage: must compile with xlc_r or cc_r
13797         if test x"$GCC" != xyes; then
13798           for ac_prog in xlc_r cc_r
13799 do
13800   # Extract the first word of "$ac_prog", so it can be a program name with args.
13801 set dummy $ac_prog; ac_word=$2
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13803 $as_echo_n "checking for $ac_word... " >&6; }
13804 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
13805   $as_echo_n "(cached) " >&6
13806 else
13807   if test -n "$PTHREAD_CC"; then
13808   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
13809 else
13810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13811 for as_dir in $PATH
13812 do
13813   IFS=$as_save_IFS
13814   test -z "$as_dir" && as_dir=.
13815     for ac_exec_ext in '' $ac_executable_extensions; do
13816   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13817     ac_cv_prog_PTHREAD_CC="$ac_prog"
13818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13819     break 2
13820   fi
13821 done
13822   done
13823 IFS=$as_save_IFS
13824
13825 fi
13826 fi
13827 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
13828 if test -n "$PTHREAD_CC"; then
13829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
13830 $as_echo "$PTHREAD_CC" >&6; }
13831 else
13832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13833 $as_echo "no" >&6; }
13834 fi
13835
13836
13837   test -n "$PTHREAD_CC" && break
13838 done
13839 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
13840
13841         else
13842           PTHREAD_CC=$CC
13843         fi
13844 else
13845         PTHREAD_CC="$CC"
13846 fi
13847
13848
13849
13850
13851
13852 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
13853 if test x"$ax_pthread_ok" = xyes; then
13854
13855 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
13856
13857
13858         :
13859 else
13860         ax_pthread_ok=no
13861          as_fn_error $? "POSIX thread support required" "$LINENO" 5
13862 fi
13863 ac_ext=c
13864 ac_cpp='$CPP $CPPFLAGS'
13865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13868
13869
13870
13871         multithread=yes
13872 fi
13873
13874 # --enable-bundle=NAME
13875 # Check whether --enable-bundle was given.
13876 if test "${enable_bundle+set}" = set; then :
13877   enableval=$enable_bundle; bundle="${enableval}"
13878 else
13879   bundle=false
13880 fi
13881
13882 if test "${bundle}" = false ; then
13883         bundle="ifd-ccid.bundle"
13884 fi
13885
13886 cat >>confdefs.h <<_ACEOF
13887 #define BUNDLE "$bundle"
13888 _ACEOF
13889
13890
13891 # --enable-usbdropdir=DIR
13892 # Check whether --enable-usbdropdir was given.
13893 if test "${enable_usbdropdir+set}" = set; then :
13894   enableval=$enable_usbdropdir; usbdropdir="${enableval}"
13895 else
13896   usbdropdir=false
13897 fi
13898
13899 if test "${usbdropdir}" = false ; then
13900         usbdropdir=`$PKG_CONFIG libpcsclite --variable=usbdropdir`
13901 fi
13902
13903 cat >>confdefs.h <<_ACEOF
13904 #define PCSCLITE_HP_DROPDIR "$usbdropdir"
13905 _ACEOF
13906
13907 if test "${usbdropdir}" = "" ; then
13908         as_fn_error $? "use --enable-usbdropdir=DIR" "$LINENO" 5
13909 fi
13910
13911 # --enable-twinserial
13912 # Check whether --enable-twinserial was given.
13913 if test "${enable_twinserial+set}" = set; then :
13914   enableval=$enable_twinserial; twinserial="${enableval}"
13915 else
13916   twinserial=no
13917 fi
13918
13919  if test "${twinserial}" != "no"; then
13920   WITH_TWIN_SERIAL_TRUE=
13921   WITH_TWIN_SERIAL_FALSE='#'
13922 else
13923   WITH_TWIN_SERIAL_TRUE='#'
13924   WITH_TWIN_SERIAL_FALSE=
13925 fi
13926
13927
13928 # --enable-ccidtwindir=DIR
13929 # Check whether --enable-ccidtwindir was given.
13930 if test "${enable_ccidtwindir+set}" = set; then :
13931   enableval=$enable_ccidtwindir; ccidtwindir="${enableval}"
13932 else
13933   ccidtwindir=false
13934 fi
13935
13936 if test "${ccidtwindir}" = false ; then
13937         ccidtwindir=$usbdropdir/serial
13938 fi
13939
13940 # --enable-serialconfdir=DIR
13941 # Check whether --enable-serialconfdir was given.
13942 if test "${enable_serialconfdir+set}" = set; then :
13943   enableval=$enable_serialconfdir; serialconfdir="${enableval}"
13944 else
13945   serialconfdir=false
13946 fi
13947
13948 if test "${serialconfdir}" = false ; then
13949         serialconfdir=`$PKG_CONFIG libpcsclite --variable=serialconfdir`
13950 fi
13951
13952 # --disable-pcsclite
13953 # Check whether --enable-pcsclite was given.
13954 if test "${enable_pcsclite+set}" = set; then :
13955   enableval=$enable_pcsclite;  pcsclite="${enableval}"
13956 else
13957    pcsclite=yes
13958 fi
13959
13960
13961 if test "${pcsclite}" != no ; then
13962         # check that pcsc-lite is installed
13963         OLD_LIBS="$LIBS"
13964         OLD_CFLAGS="$CFLAGS"
13965         LIBS="$LIBS $PCSC_LIBS"
13966         CFLAGS="$CFLAGS $PCSC_CFLAGS"
13967         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SCardEstablishContext" >&5
13968 $as_echo_n "checking for SCardEstablishContext... " >&6; }
13969         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13970 /* end confdefs.h.  */
13971
13972 /* Override any GCC internal prototype to avoid an error.
13973    Use char because int might match the return type of a GCC
13974    builtin and then its argument prototype would still apply.  */
13975 #ifdef __cplusplus
13976 extern "C"
13977 #endif
13978 char SCardEstablishContext ();
13979 int
13980 main ()
13981 {
13982 return SCardEstablishContext ();
13983   ;
13984   return 0;
13985 }
13986 _ACEOF
13987 if ac_fn_c_try_link "$LINENO"; then :
13988    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13989 $as_echo "yes" >&6; }
13990 else
13991    as_fn_error $? "SCardEstablishContext() not found, install pcsc-lite, or use PCSC_LIBS=...  ./configure" "$LINENO" 5
13992 fi
13993 rm -f core conftest.err conftest.$ac_objext \
13994     conftest$ac_exeext conftest.$ac_ext
13995         LIBS="$OLD_LIBS"
13996         CFLAGS="$OLD_CFLAGS"
13997
13998         pcsclite=yes
13999 fi
14000  if test "${pcsclite}" != "yes"; then
14001   WITHOUT_PCSC_TRUE=
14002   WITHOUT_PCSC_FALSE='#'
14003 else
14004   WITHOUT_PCSC_TRUE='#'
14005   WITHOUT_PCSC_FALSE=
14006 fi
14007
14008
14009
14010
14011 # --enable-syslog
14012 # Check whether --enable-syslog was given.
14013 if test "${enable_syslog+set}" = set; then :
14014   enableval=$enable_syslog;  use_syslog="${enableval}"
14015 else
14016    use_syslog=no
14017 fi
14018
14019
14020 if test x$use_syslog = xyes; then
14021
14022 $as_echo "#define USE_SYSLOG 1" >>confdefs.h
14023
14024 fi
14025
14026 # --enable-oslog
14027 # Check whether --enable-oslog was given.
14028 if test "${enable_oslog+set}" = set; then :
14029   enableval=$enable_oslog;  use_oslog="${enableval}"
14030 else
14031    use_oslog=no
14032 fi
14033
14034
14035 if test x$use_oslog = xyes; then
14036
14037 $as_echo "#define USE_OS_LOG 1" >>confdefs.h
14038
14039 fi
14040
14041
14042 # --disable-class
14043 # Check whether --enable-class was given.
14044 if test "${enable_class+set}" = set; then :
14045   enableval=$enable_class; class="${enableval}"
14046 else
14047   class=yes
14048 fi
14049
14050 if test "${class}" != yes ; then
14051         NOCLASS="--no-class"
14052 fi
14053
14054
14055 # --enable-embedded
14056 # Check whether --enable-embedded was given.
14057 if test "${enable_embedded+set}" = set; then :
14058   enableval=$enable_embedded;  use_embedded="${enableval}"
14059 fi
14060
14061
14062 if test x$use_embedded = xyes; then
14063
14064 $as_echo "#define NO_LOG 1" >>confdefs.h
14065
14066 fi
14067
14068 # --enable-zlp
14069 # Check whether --enable-zlp was given.
14070 if test "${enable_zlp+set}" = set; then :
14071   enableval=$enable_zlp;  use_zlp="${enableval}"
14072 fi
14073
14074
14075 if test x$use_zlp = xyes; then
14076
14077 $as_echo "#define ENABLE_ZLP 1" >>confdefs.h
14078
14079 fi
14080
14081 # Setup dist stuff
14082
14083
14084
14085
14086
14087
14088   EXP_VAR=bindir_exp
14089   FROM_VAR=$bindir
14090
14091     prefix_save=$prefix
14092   exec_prefix_save=$exec_prefix
14093
14094     if test "x$prefix" = "xNONE"; then
14095     prefix="$ac_default_prefix"
14096   fi
14097     if test "x$exec_prefix" = "xNONE"; then
14098     exec_prefix=$prefix
14099   fi
14100
14101   full_var="$FROM_VAR"
14102     while true; do
14103     new_full_var="`eval echo $full_var`"
14104     if test "x$new_full_var" = "x$full_var"; then break; fi
14105     full_var=$new_full_var
14106   done
14107
14108     full_var=$new_full_var
14109   bindir_exp="$full_var"
14110
14111
14112     prefix=$prefix_save
14113   exec_prefix=$exec_prefix_save
14114
14115
14116   EXP_VAR=sysconfdir_exp
14117   FROM_VAR=$sysconfdir
14118
14119     prefix_save=$prefix
14120   exec_prefix_save=$exec_prefix
14121
14122     if test "x$prefix" = "xNONE"; then
14123     prefix="$ac_default_prefix"
14124   fi
14125     if test "x$exec_prefix" = "xNONE"; then
14126     exec_prefix=$prefix
14127   fi
14128
14129   full_var="$FROM_VAR"
14130     while true; do
14131     new_full_var="`eval echo $full_var`"
14132     if test "x$new_full_var" = "x$full_var"; then break; fi
14133     full_var=$new_full_var
14134   done
14135
14136     full_var=$new_full_var
14137   sysconfdir_exp="$full_var"
14138
14139
14140     prefix=$prefix_save
14141   exec_prefix=$exec_prefix_save
14142
14143
14144 cat << EOF
14145
14146 libccid has been configured with following options:
14147
14148 Version:             ${PACKAGE_VERSION}
14149 User binaries:       $(eval eval eval echo "${bindir_exp}")
14150 Configuration files: $(eval eval eval echo "${sysconfdir_exp}")
14151
14152
14153 Host:                ${host}
14154 Compiler:            ${CC}
14155 Preprocessor flags:  ${CPPFLAGS}
14156 Compiler flags:      ${CFLAGS}
14157 Preprocessor flags:  ${CPPFLAGS}
14158 Linker flags:        ${LDFLAGS}
14159 Libraries:           ${LIBS}
14160
14161 PCSC_CFLAGS:         ${PCSC_CFLAGS}
14162 PCSC_LIBS:           ${PCSC_LIBS}
14163 PTHREAD_CFLAGS:      ${PTHREAD_CFLAGS}
14164 PTHREAD_LIBS:        ${PTHREAD_LIBS}
14165 BUNDLE_HOST:         ${BUNDLE_HOST}
14166 DYN_LIB_EXT:         ${DYN_LIB_EXT}
14167 LIBUSB_CFLAGS:       ${LIBUSB_CFLAGS}
14168 LIBUSB_LIBS:         ${LIBUSB_LIBS}
14169 SYMBOL_VISIBILITY:   ${SYMBOL_VISIBILITY}
14170 NOCLASS:             ${NOCLASS}
14171
14172 libusb support:          ${use_libusb}
14173 composite as multislot:  ${use_composite_as_multislot}
14174 multi threading:         ${multithread}
14175 bundle directory name:   ${bundle}
14176 USB drop directory:      ${usbdropdir}
14177 serial Twin support:     ${twinserial}
14178 serial twin install dir: ${ccidtwindir}
14179 serial config directory: ${serialconfdir}
14180 compiled for pcsc-lite:  ${pcsclite}
14181 syslog debug:            ${use_syslog}
14182 os_log debug:            ${use_oslog}
14183 class driver:            ${class}
14184
14185 EOF
14186
14187 # Write Makefiles.
14188 ac_config_files="$ac_config_files Makefile src/Makefile readers/Makefile contrib/Makefile contrib/Kobil_mIDentity_switch/Makefile contrib/RSA_SecurID/Makefile examples/Makefile"
14189
14190
14191 cat >confcache <<\_ACEOF
14192 # This file is a shell script that caches the results of configure
14193 # tests run on this system so they can be shared between configure
14194 # scripts and configure runs, see configure's option --config-cache.
14195 # It is not useful on other systems.  If it contains results you don't
14196 # want to keep, you may remove or edit it.
14197 #
14198 # config.status only pays attention to the cache file if you give it
14199 # the --recheck option to rerun configure.
14200 #
14201 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14202 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14203 # following values.
14204
14205 _ACEOF
14206
14207 # The following way of writing the cache mishandles newlines in values,
14208 # but we know of no workaround that is simple, portable, and efficient.
14209 # So, we kill variables containing newlines.
14210 # Ultrix sh set writes to stderr and can't be redirected directly,
14211 # and sets the high bit in the cache file unless we assign to the vars.
14212 (
14213   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14214     eval ac_val=\$$ac_var
14215     case $ac_val in #(
14216     *${as_nl}*)
14217       case $ac_var in #(
14218       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14219 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14220       esac
14221       case $ac_var in #(
14222       _ | IFS | as_nl) ;; #(
14223       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14224       *) { eval $ac_var=; unset $ac_var;} ;;
14225       esac ;;
14226     esac
14227   done
14228
14229   (set) 2>&1 |
14230     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14231     *${as_nl}ac_space=\ *)
14232       # `set' does not quote correctly, so add quotes: double-quote
14233       # substitution turns \\\\ into \\, and sed turns \\ into \.
14234       sed -n \
14235         "s/'/'\\\\''/g;
14236           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14237       ;; #(
14238     *)
14239       # `set' quotes correctly as required by POSIX, so do not add quotes.
14240       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14241       ;;
14242     esac |
14243     sort
14244 ) |
14245   sed '
14246      /^ac_cv_env_/b end
14247      t clear
14248      :clear
14249      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14250      t end
14251      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14252      :end' >>confcache
14253 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14254   if test -w "$cache_file"; then
14255     if test "x$cache_file" != "x/dev/null"; then
14256       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14257 $as_echo "$as_me: updating cache $cache_file" >&6;}
14258       if test ! -f "$cache_file" || test -h "$cache_file"; then
14259         cat confcache >"$cache_file"
14260       else
14261         case $cache_file in #(
14262         */* | ?:*)
14263           mv -f confcache "$cache_file"$$ &&
14264           mv -f "$cache_file"$$ "$cache_file" ;; #(
14265         *)
14266           mv -f confcache "$cache_file" ;;
14267         esac
14268       fi
14269     fi
14270   else
14271     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14272 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14273   fi
14274 fi
14275 rm -f confcache
14276
14277 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14278 # Let make expand exec_prefix.
14279 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14280
14281 DEFS=-DHAVE_CONFIG_H
14282
14283 ac_libobjs=
14284 ac_ltlibobjs=
14285 U=
14286 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14287   # 1. Remove the extension, and $U if already installed.
14288   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14289   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14290   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14291   #    will be set to the directory where LIBOBJS objects are built.
14292   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14293   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14294 done
14295 LIBOBJS=$ac_libobjs
14296
14297 LTLIBOBJS=$ac_ltlibobjs
14298
14299
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14301 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14302    if test -n "$am_sleep_pid"; then
14303      # Hide warnings about reused PIDs.
14304      wait $am_sleep_pid 2>/dev/null
14305    fi
14306    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14307 $as_echo "done" >&6; }
14308  if test -n "$EXEEXT"; then
14309   am__EXEEXT_TRUE=
14310   am__EXEEXT_FALSE='#'
14311 else
14312   am__EXEEXT_TRUE='#'
14313   am__EXEEXT_FALSE=
14314 fi
14315
14316 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14317   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14319 fi
14320 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14321   as_fn_error $? "conditional \"AMDEP\" was never defined.
14322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14323 fi
14324 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14325   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14327 fi
14328 if test -z "${WITH_LIBUSB_TRUE}" && test -z "${WITH_LIBUSB_FALSE}"; then
14329   as_fn_error $? "conditional \"WITH_LIBUSB\" was never defined.
14330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14331 fi
14332 if test -z "${WITH_TWIN_SERIAL_TRUE}" && test -z "${WITH_TWIN_SERIAL_FALSE}"; then
14333   as_fn_error $? "conditional \"WITH_TWIN_SERIAL\" was never defined.
14334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14335 fi
14336 if test -z "${WITHOUT_PCSC_TRUE}" && test -z "${WITHOUT_PCSC_FALSE}"; then
14337   as_fn_error $? "conditional \"WITHOUT_PCSC\" was never defined.
14338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14339 fi
14340
14341 : "${CONFIG_STATUS=./config.status}"
14342 ac_write_fail=0
14343 ac_clean_files_save=$ac_clean_files
14344 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14346 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14347 as_write_fail=0
14348 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14349 #! $SHELL
14350 # Generated by $as_me.
14351 # Run this file to recreate the current configuration.
14352 # Compiler output produced by configure, useful for debugging
14353 # configure, is in config.log if it exists.
14354
14355 debug=false
14356 ac_cs_recheck=false
14357 ac_cs_silent=false
14358
14359 SHELL=\${CONFIG_SHELL-$SHELL}
14360 export SHELL
14361 _ASEOF
14362 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14363 ## -------------------- ##
14364 ## M4sh Initialization. ##
14365 ## -------------------- ##
14366
14367 # Be more Bourne compatible
14368 DUALCASE=1; export DUALCASE # for MKS sh
14369 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14370   emulate sh
14371   NULLCMD=:
14372   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14373   # is contrary to our usage.  Disable this feature.
14374   alias -g '${1+"$@"}'='"$@"'
14375   setopt NO_GLOB_SUBST
14376 else
14377   case `(set -o) 2>/dev/null` in #(
14378   *posix*) :
14379     set -o posix ;; #(
14380   *) :
14381      ;;
14382 esac
14383 fi
14384
14385
14386 as_nl='
14387 '
14388 export as_nl
14389 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14390 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14391 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14392 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14393 # Prefer a ksh shell builtin over an external printf program on Solaris,
14394 # but without wasting forks for bash or zsh.
14395 if test -z "$BASH_VERSION$ZSH_VERSION" \
14396     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14397   as_echo='print -r --'
14398   as_echo_n='print -rn --'
14399 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14400   as_echo='printf %s\n'
14401   as_echo_n='printf %s'
14402 else
14403   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14404     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14405     as_echo_n='/usr/ucb/echo -n'
14406   else
14407     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14408     as_echo_n_body='eval
14409       arg=$1;
14410       case $arg in #(
14411       *"$as_nl"*)
14412         expr "X$arg" : "X\\(.*\\)$as_nl";
14413         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14414       esac;
14415       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14416     '
14417     export as_echo_n_body
14418     as_echo_n='sh -c $as_echo_n_body as_echo'
14419   fi
14420   export as_echo_body
14421   as_echo='sh -c $as_echo_body as_echo'
14422 fi
14423
14424 # The user is always right.
14425 if test "${PATH_SEPARATOR+set}" != set; then
14426   PATH_SEPARATOR=:
14427   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14428     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14429       PATH_SEPARATOR=';'
14430   }
14431 fi
14432
14433
14434 # IFS
14435 # We need space, tab and new line, in precisely that order.  Quoting is
14436 # there to prevent editors from complaining about space-tab.
14437 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14438 # splitting by setting IFS to empty value.)
14439 IFS=" ""        $as_nl"
14440
14441 # Find who we are.  Look in the path if we contain no directory separator.
14442 as_myself=
14443 case $0 in #((
14444   *[\\/]* ) as_myself=$0 ;;
14445   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14446 for as_dir in $PATH
14447 do
14448   IFS=$as_save_IFS
14449   test -z "$as_dir" && as_dir=.
14450     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14451   done
14452 IFS=$as_save_IFS
14453
14454      ;;
14455 esac
14456 # We did not find ourselves, most probably we were run as `sh COMMAND'
14457 # in which case we are not to be found in the path.
14458 if test "x$as_myself" = x; then
14459   as_myself=$0
14460 fi
14461 if test ! -f "$as_myself"; then
14462   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14463   exit 1
14464 fi
14465
14466 # Unset variables that we do not need and which cause bugs (e.g. in
14467 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14468 # suppresses any "Segmentation fault" message there.  '((' could
14469 # trigger a bug in pdksh 5.2.14.
14470 for as_var in BASH_ENV ENV MAIL MAILPATH
14471 do eval test x\${$as_var+set} = xset \
14472   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14473 done
14474 PS1='$ '
14475 PS2='> '
14476 PS4='+ '
14477
14478 # NLS nuisances.
14479 LC_ALL=C
14480 export LC_ALL
14481 LANGUAGE=C
14482 export LANGUAGE
14483
14484 # CDPATH.
14485 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14486
14487
14488 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14489 # ----------------------------------------
14490 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14491 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14492 # script with STATUS, using 1 if that was 0.
14493 as_fn_error ()
14494 {
14495   as_status=$1; test $as_status -eq 0 && as_status=1
14496   if test "$4"; then
14497     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14498     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14499   fi
14500   $as_echo "$as_me: error: $2" >&2
14501   as_fn_exit $as_status
14502 } # as_fn_error
14503
14504
14505 # as_fn_set_status STATUS
14506 # -----------------------
14507 # Set $? to STATUS, without forking.
14508 as_fn_set_status ()
14509 {
14510   return $1
14511 } # as_fn_set_status
14512
14513 # as_fn_exit STATUS
14514 # -----------------
14515 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14516 as_fn_exit ()
14517 {
14518   set +e
14519   as_fn_set_status $1
14520   exit $1
14521 } # as_fn_exit
14522
14523 # as_fn_unset VAR
14524 # ---------------
14525 # Portably unset VAR.
14526 as_fn_unset ()
14527 {
14528   { eval $1=; unset $1;}
14529 }
14530 as_unset=as_fn_unset
14531 # as_fn_append VAR VALUE
14532 # ----------------------
14533 # Append the text in VALUE to the end of the definition contained in VAR. Take
14534 # advantage of any shell optimizations that allow amortized linear growth over
14535 # repeated appends, instead of the typical quadratic growth present in naive
14536 # implementations.
14537 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14538   eval 'as_fn_append ()
14539   {
14540     eval $1+=\$2
14541   }'
14542 else
14543   as_fn_append ()
14544   {
14545     eval $1=\$$1\$2
14546   }
14547 fi # as_fn_append
14548
14549 # as_fn_arith ARG...
14550 # ------------------
14551 # Perform arithmetic evaluation on the ARGs, and store the result in the
14552 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14553 # must be portable across $(()) and expr.
14554 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14555   eval 'as_fn_arith ()
14556   {
14557     as_val=$(( $* ))
14558   }'
14559 else
14560   as_fn_arith ()
14561   {
14562     as_val=`expr "$@" || test $? -eq 1`
14563   }
14564 fi # as_fn_arith
14565
14566
14567 if expr a : '\(a\)' >/dev/null 2>&1 &&
14568    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14569   as_expr=expr
14570 else
14571   as_expr=false
14572 fi
14573
14574 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14575   as_basename=basename
14576 else
14577   as_basename=false
14578 fi
14579
14580 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14581   as_dirname=dirname
14582 else
14583   as_dirname=false
14584 fi
14585
14586 as_me=`$as_basename -- "$0" ||
14587 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14588          X"$0" : 'X\(//\)$' \| \
14589          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14590 $as_echo X/"$0" |
14591     sed '/^.*\/\([^/][^/]*\)\/*$/{
14592             s//\1/
14593             q
14594           }
14595           /^X\/\(\/\/\)$/{
14596             s//\1/
14597             q
14598           }
14599           /^X\/\(\/\).*/{
14600             s//\1/
14601             q
14602           }
14603           s/.*/./; q'`
14604
14605 # Avoid depending upon Character Ranges.
14606 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14607 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14608 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14609 as_cr_digits='0123456789'
14610 as_cr_alnum=$as_cr_Letters$as_cr_digits
14611
14612 ECHO_C= ECHO_N= ECHO_T=
14613 case `echo -n x` in #(((((
14614 -n*)
14615   case `echo 'xy\c'` in
14616   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14617   xy)  ECHO_C='\c';;
14618   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14619        ECHO_T=' ';;
14620   esac;;
14621 *)
14622   ECHO_N='-n';;
14623 esac
14624
14625 rm -f conf$$ conf$$.exe conf$$.file
14626 if test -d conf$$.dir; then
14627   rm -f conf$$.dir/conf$$.file
14628 else
14629   rm -f conf$$.dir
14630   mkdir conf$$.dir 2>/dev/null
14631 fi
14632 if (echo >conf$$.file) 2>/dev/null; then
14633   if ln -s conf$$.file conf$$ 2>/dev/null; then
14634     as_ln_s='ln -s'
14635     # ... but there are two gotchas:
14636     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14637     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14638     # In both cases, we have to default to `cp -pR'.
14639     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14640       as_ln_s='cp -pR'
14641   elif ln conf$$.file conf$$ 2>/dev/null; then
14642     as_ln_s=ln
14643   else
14644     as_ln_s='cp -pR'
14645   fi
14646 else
14647   as_ln_s='cp -pR'
14648 fi
14649 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14650 rmdir conf$$.dir 2>/dev/null
14651
14652
14653 # as_fn_mkdir_p
14654 # -------------
14655 # Create "$as_dir" as a directory, including parents if necessary.
14656 as_fn_mkdir_p ()
14657 {
14658
14659   case $as_dir in #(
14660   -*) as_dir=./$as_dir;;
14661   esac
14662   test -d "$as_dir" || eval $as_mkdir_p || {
14663     as_dirs=
14664     while :; do
14665       case $as_dir in #(
14666       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14667       *) as_qdir=$as_dir;;
14668       esac
14669       as_dirs="'$as_qdir' $as_dirs"
14670       as_dir=`$as_dirname -- "$as_dir" ||
14671 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14672          X"$as_dir" : 'X\(//\)[^/]' \| \
14673          X"$as_dir" : 'X\(//\)$' \| \
14674          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14675 $as_echo X"$as_dir" |
14676     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14677             s//\1/
14678             q
14679           }
14680           /^X\(\/\/\)[^/].*/{
14681             s//\1/
14682             q
14683           }
14684           /^X\(\/\/\)$/{
14685             s//\1/
14686             q
14687           }
14688           /^X\(\/\).*/{
14689             s//\1/
14690             q
14691           }
14692           s/.*/./; q'`
14693       test -d "$as_dir" && break
14694     done
14695     test -z "$as_dirs" || eval "mkdir $as_dirs"
14696   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14697
14698
14699 } # as_fn_mkdir_p
14700 if mkdir -p . 2>/dev/null; then
14701   as_mkdir_p='mkdir -p "$as_dir"'
14702 else
14703   test -d ./-p && rmdir ./-p
14704   as_mkdir_p=false
14705 fi
14706
14707
14708 # as_fn_executable_p FILE
14709 # -----------------------
14710 # Test if FILE is an executable regular file.
14711 as_fn_executable_p ()
14712 {
14713   test -f "$1" && test -x "$1"
14714 } # as_fn_executable_p
14715 as_test_x='test -x'
14716 as_executable_p=as_fn_executable_p
14717
14718 # Sed expression to map a string onto a valid CPP name.
14719 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14720
14721 # Sed expression to map a string onto a valid variable name.
14722 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14723
14724
14725 exec 6>&1
14726 ## ----------------------------------- ##
14727 ## Main body of $CONFIG_STATUS script. ##
14728 ## ----------------------------------- ##
14729 _ASEOF
14730 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14731
14732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14733 # Save the log message, to keep $0 and so on meaningful, and to
14734 # report actual input values of CONFIG_FILES etc. instead of their
14735 # values after options handling.
14736 ac_log="
14737 This file was extended by ccid $as_me 1.4.33, which was
14738 generated by GNU Autoconf 2.69.  Invocation command line was
14739
14740   CONFIG_FILES    = $CONFIG_FILES
14741   CONFIG_HEADERS  = $CONFIG_HEADERS
14742   CONFIG_LINKS    = $CONFIG_LINKS
14743   CONFIG_COMMANDS = $CONFIG_COMMANDS
14744   $ $0 $@
14745
14746 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14747 "
14748
14749 _ACEOF
14750
14751 case $ac_config_files in *"
14752 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14753 esac
14754
14755 case $ac_config_headers in *"
14756 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14757 esac
14758
14759
14760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14761 # Files that config.status was made for.
14762 config_files="$ac_config_files"
14763 config_headers="$ac_config_headers"
14764 config_commands="$ac_config_commands"
14765
14766 _ACEOF
14767
14768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14769 ac_cs_usage="\
14770 \`$as_me' instantiates files and other configuration actions
14771 from templates according to the current configuration.  Unless the files
14772 and actions are specified as TAGs, all are instantiated by default.
14773
14774 Usage: $0 [OPTION]... [TAG]...
14775
14776   -h, --help       print this help, then exit
14777   -V, --version    print version number and configuration settings, then exit
14778       --config     print configuration, then exit
14779   -q, --quiet, --silent
14780                    do not print progress messages
14781   -d, --debug      don't remove temporary files
14782       --recheck    update $as_me by reconfiguring in the same conditions
14783       --file=FILE[:TEMPLATE]
14784                    instantiate the configuration file FILE
14785       --header=FILE[:TEMPLATE]
14786                    instantiate the configuration header FILE
14787
14788 Configuration files:
14789 $config_files
14790
14791 Configuration headers:
14792 $config_headers
14793
14794 Configuration commands:
14795 $config_commands
14796
14797 Report bugs to the package provider."
14798
14799 _ACEOF
14800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14801 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14802 ac_cs_version="\\
14803 ccid config.status 1.4.33
14804 configured by $0, generated by GNU Autoconf 2.69,
14805   with options \\"\$ac_cs_config\\"
14806
14807 Copyright (C) 2012 Free Software Foundation, Inc.
14808 This config.status script is free software; the Free Software Foundation
14809 gives unlimited permission to copy, distribute and modify it."
14810
14811 ac_pwd='$ac_pwd'
14812 srcdir='$srcdir'
14813 INSTALL='$INSTALL'
14814 MKDIR_P='$MKDIR_P'
14815 AWK='$AWK'
14816 test -n "\$AWK" || AWK=awk
14817 _ACEOF
14818
14819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14820 # The default lists apply if the user does not specify any file.
14821 ac_need_defaults=:
14822 while test $# != 0
14823 do
14824   case $1 in
14825   --*=?*)
14826     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14827     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14828     ac_shift=:
14829     ;;
14830   --*=)
14831     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14832     ac_optarg=
14833     ac_shift=:
14834     ;;
14835   *)
14836     ac_option=$1
14837     ac_optarg=$2
14838     ac_shift=shift
14839     ;;
14840   esac
14841
14842   case $ac_option in
14843   # Handling of the options.
14844   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14845     ac_cs_recheck=: ;;
14846   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14847     $as_echo "$ac_cs_version"; exit ;;
14848   --config | --confi | --conf | --con | --co | --c )
14849     $as_echo "$ac_cs_config"; exit ;;
14850   --debug | --debu | --deb | --de | --d | -d )
14851     debug=: ;;
14852   --file | --fil | --fi | --f )
14853     $ac_shift
14854     case $ac_optarg in
14855     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14856     '') as_fn_error $? "missing file argument" ;;
14857     esac
14858     as_fn_append CONFIG_FILES " '$ac_optarg'"
14859     ac_need_defaults=false;;
14860   --header | --heade | --head | --hea )
14861     $ac_shift
14862     case $ac_optarg in
14863     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14864     esac
14865     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14866     ac_need_defaults=false;;
14867   --he | --h)
14868     # Conflict between --help and --header
14869     as_fn_error $? "ambiguous option: \`$1'
14870 Try \`$0 --help' for more information.";;
14871   --help | --hel | -h )
14872     $as_echo "$ac_cs_usage"; exit ;;
14873   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14874   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14875     ac_cs_silent=: ;;
14876
14877   # This is an error.
14878   -*) as_fn_error $? "unrecognized option: \`$1'
14879 Try \`$0 --help' for more information." ;;
14880
14881   *) as_fn_append ac_config_targets " $1"
14882      ac_need_defaults=false ;;
14883
14884   esac
14885   shift
14886 done
14887
14888 ac_configure_extra_args=
14889
14890 if $ac_cs_silent; then
14891   exec 6>/dev/null
14892   ac_configure_extra_args="$ac_configure_extra_args --silent"
14893 fi
14894
14895 _ACEOF
14896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14897 if \$ac_cs_recheck; then
14898   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14899   shift
14900   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14901   CONFIG_SHELL='$SHELL'
14902   export CONFIG_SHELL
14903   exec "\$@"
14904 fi
14905
14906 _ACEOF
14907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14908 exec 5>>config.log
14909 {
14910   echo
14911   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14912 ## Running $as_me. ##
14913 _ASBOX
14914   $as_echo "$ac_log"
14915 } >&5
14916
14917 _ACEOF
14918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14919 #
14920 # INIT-COMMANDS
14921 #
14922 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14923
14924
14925 # The HP-UX ksh and POSIX shell print the target directory to stdout
14926 # if CDPATH is set.
14927 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14928
14929 sed_quote_subst='$sed_quote_subst'
14930 double_quote_subst='$double_quote_subst'
14931 delay_variable_subst='$delay_variable_subst'
14932 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14933 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14934 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14935 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14936 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14937 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14938 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14939 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14940 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14941 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14942 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14943 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14944 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14945 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14946 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14947 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14948 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14949 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14950 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14951 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14952 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14953 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14954 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14955 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14956 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14957 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14958 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14959 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14960 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14961 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14962 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14963 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14964 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14965 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14966 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14967 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14968 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14969 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14970 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14971 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14972 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14973 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14974 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14975 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14976 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14977 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14978 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14979 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14980 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14981 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14982 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14983 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14984 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14985 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14986 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14987 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14988 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14989 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14990 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
14991 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14992 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14993 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14994 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14995 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14996 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14997 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14998 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14999 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15000 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15001 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15002 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15003 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15004 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15005 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15006 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15007 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15008 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15009 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15010 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15011 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15012 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15013 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15014 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15015 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15016 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15017 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15018 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15019 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15020 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15021 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15022 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15023 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15024 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15025 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15026 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15027 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15028 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15029 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15030 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15031 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15032 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15033 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15034 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15035 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15036 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15037 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15038 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15039 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15040 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15041 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15042 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15043 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15044 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15045 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15046 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15047 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15048 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15049 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15050 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15051 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15052 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15053 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15054 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15055 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15056 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15057 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15058 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15059 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15060 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15061 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15062 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15063 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15064 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15065 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15066 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15067
15068 LTCC='$LTCC'
15069 LTCFLAGS='$LTCFLAGS'
15070 compiler='$compiler_DEFAULT'
15071
15072 # A function that is used when there is no print builtin or printf.
15073 func_fallback_echo ()
15074 {
15075   eval 'cat <<_LTECHO_EOF
15076 \$1
15077 _LTECHO_EOF'
15078 }
15079
15080 # Quote evaled strings.
15081 for var in SHELL \
15082 ECHO \
15083 PATH_SEPARATOR \
15084 SED \
15085 GREP \
15086 EGREP \
15087 FGREP \
15088 LD \
15089 NM \
15090 LN_S \
15091 lt_SP2NL \
15092 lt_NL2SP \
15093 reload_flag \
15094 OBJDUMP \
15095 deplibs_check_method \
15096 file_magic_cmd \
15097 file_magic_glob \
15098 want_nocaseglob \
15099 DLLTOOL \
15100 sharedlib_from_linklib_cmd \
15101 AR \
15102 AR_FLAGS \
15103 archiver_list_spec \
15104 STRIP \
15105 RANLIB \
15106 CC \
15107 CFLAGS \
15108 compiler \
15109 lt_cv_sys_global_symbol_pipe \
15110 lt_cv_sys_global_symbol_to_cdecl \
15111 lt_cv_sys_global_symbol_to_import \
15112 lt_cv_sys_global_symbol_to_c_name_address \
15113 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15114 lt_cv_nm_interface \
15115 nm_file_list_spec \
15116 lt_cv_truncate_bin \
15117 lt_prog_compiler_no_builtin_flag \
15118 lt_prog_compiler_pic \
15119 lt_prog_compiler_wl \
15120 lt_prog_compiler_static \
15121 lt_cv_prog_compiler_c_o \
15122 need_locks \
15123 MANIFEST_TOOL \
15124 DSYMUTIL \
15125 NMEDIT \
15126 LIPO \
15127 OTOOL \
15128 OTOOL64 \
15129 shrext_cmds \
15130 export_dynamic_flag_spec \
15131 whole_archive_flag_spec \
15132 compiler_needs_object \
15133 with_gnu_ld \
15134 allow_undefined_flag \
15135 no_undefined_flag \
15136 hardcode_libdir_flag_spec \
15137 hardcode_libdir_separator \
15138 exclude_expsyms \
15139 include_expsyms \
15140 file_list_spec \
15141 variables_saved_for_relink \
15142 libname_spec \
15143 library_names_spec \
15144 soname_spec \
15145 install_override_mode \
15146 finish_eval \
15147 old_striplib \
15148 striplib; do
15149     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15150     *[\\\\\\\`\\"\\\$]*)
15151       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15152       ;;
15153     *)
15154       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15155       ;;
15156     esac
15157 done
15158
15159 # Double-quote double-evaled strings.
15160 for var in reload_cmds \
15161 old_postinstall_cmds \
15162 old_postuninstall_cmds \
15163 old_archive_cmds \
15164 extract_expsyms_cmds \
15165 old_archive_from_new_cmds \
15166 old_archive_from_expsyms_cmds \
15167 archive_cmds \
15168 archive_expsym_cmds \
15169 module_cmds \
15170 module_expsym_cmds \
15171 export_symbols_cmds \
15172 prelink_cmds \
15173 postlink_cmds \
15174 postinstall_cmds \
15175 postuninstall_cmds \
15176 finish_cmds \
15177 sys_lib_search_path_spec \
15178 configure_time_dlsearch_path \
15179 configure_time_lt_sys_library_path; do
15180     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15181     *[\\\\\\\`\\"\\\$]*)
15182       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15183       ;;
15184     *)
15185       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15186       ;;
15187     esac
15188 done
15189
15190 ac_aux_dir='$ac_aux_dir'
15191
15192 # See if we are running on zsh, and set the options that allow our
15193 # commands through without removal of \ escapes INIT.
15194 if test -n "\${ZSH_VERSION+set}"; then
15195    setopt NO_GLOB_SUBST
15196 fi
15197
15198
15199     PACKAGE='$PACKAGE'
15200     VERSION='$VERSION'
15201     RM='$RM'
15202     ofile='$ofile'
15203
15204
15205
15206
15207 _ACEOF
15208
15209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15210
15211 # Handling of arguments.
15212 for ac_config_target in $ac_config_targets
15213 do
15214   case $ac_config_target in
15215     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15216     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15217     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15218     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15219     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15220     "readers/Makefile") CONFIG_FILES="$CONFIG_FILES readers/Makefile" ;;
15221     "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
15222     "contrib/Kobil_mIDentity_switch/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Kobil_mIDentity_switch/Makefile" ;;
15223     "contrib/RSA_SecurID/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/RSA_SecurID/Makefile" ;;
15224     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
15225
15226   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15227   esac
15228 done
15229
15230
15231 # If the user did not use the arguments to specify the items to instantiate,
15232 # then the envvar interface is used.  Set only those that are not.
15233 # We use the long form for the default assignment because of an extremely
15234 # bizarre bug on SunOS 4.1.3.
15235 if $ac_need_defaults; then
15236   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15237   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15238   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15239 fi
15240
15241 # Have a temporary directory for convenience.  Make it in the build tree
15242 # simply because there is no reason against having it here, and in addition,
15243 # creating and moving files from /tmp can sometimes cause problems.
15244 # Hook for its removal unless debugging.
15245 # Note that there is a small window in which the directory will not be cleaned:
15246 # after its creation but before its name has been assigned to `$tmp'.
15247 $debug ||
15248 {
15249   tmp= ac_tmp=
15250   trap 'exit_status=$?
15251   : "${ac_tmp:=$tmp}"
15252   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15253 ' 0
15254   trap 'as_fn_exit 1' 1 2 13 15
15255 }
15256 # Create a (secure) tmp directory for tmp files.
15257
15258 {
15259   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15260   test -d "$tmp"
15261 }  ||
15262 {
15263   tmp=./conf$$-$RANDOM
15264   (umask 077 && mkdir "$tmp")
15265 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15266 ac_tmp=$tmp
15267
15268 # Set up the scripts for CONFIG_FILES section.
15269 # No need to generate them if there are no CONFIG_FILES.
15270 # This happens for instance with `./config.status config.h'.
15271 if test -n "$CONFIG_FILES"; then
15272
15273
15274 ac_cr=`echo X | tr X '\015'`
15275 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15276 # But we know of no other shell where ac_cr would be empty at this
15277 # point, so we can use a bashism as a fallback.
15278 if test "x$ac_cr" = x; then
15279   eval ac_cr=\$\'\\r\'
15280 fi
15281 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15282 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15283   ac_cs_awk_cr='\\r'
15284 else
15285   ac_cs_awk_cr=$ac_cr
15286 fi
15287
15288 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15289 _ACEOF
15290
15291
15292 {
15293   echo "cat >conf$$subs.awk <<_ACEOF" &&
15294   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15295   echo "_ACEOF"
15296 } >conf$$subs.sh ||
15297   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15298 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15299 ac_delim='%!_!# '
15300 for ac_last_try in false false false false false :; do
15301   . ./conf$$subs.sh ||
15302     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15303
15304   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15305   if test $ac_delim_n = $ac_delim_num; then
15306     break
15307   elif $ac_last_try; then
15308     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15309   else
15310     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15311   fi
15312 done
15313 rm -f conf$$subs.sh
15314
15315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15316 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15317 _ACEOF
15318 sed -n '
15319 h
15320 s/^/S["/; s/!.*/"]=/
15321 p
15322 g
15323 s/^[^!]*!//
15324 :repl
15325 t repl
15326 s/'"$ac_delim"'$//
15327 t delim
15328 :nl
15329 h
15330 s/\(.\{148\}\)..*/\1/
15331 t more1
15332 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15333 p
15334 n
15335 b repl
15336 :more1
15337 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15338 p
15339 g
15340 s/.\{148\}//
15341 t nl
15342 :delim
15343 h
15344 s/\(.\{148\}\)..*/\1/
15345 t more2
15346 s/["\\]/\\&/g; s/^/"/; s/$/"/
15347 p
15348 b
15349 :more2
15350 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15351 p
15352 g
15353 s/.\{148\}//
15354 t delim
15355 ' <conf$$subs.awk | sed '
15356 /^[^""]/{
15357   N
15358   s/\n//
15359 }
15360 ' >>$CONFIG_STATUS || ac_write_fail=1
15361 rm -f conf$$subs.awk
15362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15363 _ACAWK
15364 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15365   for (key in S) S_is_set[key] = 1
15366   FS = "\a"
15367
15368 }
15369 {
15370   line = $ 0
15371   nfields = split(line, field, "@")
15372   substed = 0
15373   len = length(field[1])
15374   for (i = 2; i < nfields; i++) {
15375     key = field[i]
15376     keylen = length(key)
15377     if (S_is_set[key]) {
15378       value = S[key]
15379       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15380       len += length(value) + length(field[++i])
15381       substed = 1
15382     } else
15383       len += 1 + keylen
15384   }
15385
15386   print line
15387 }
15388
15389 _ACAWK
15390 _ACEOF
15391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15392 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15393   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15394 else
15395   cat
15396 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15397   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15398 _ACEOF
15399
15400 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15401 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15402 # trailing colons and then remove the whole line if VPATH becomes empty
15403 # (actually we leave an empty line to preserve line numbers).
15404 if test "x$srcdir" = x.; then
15405   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15406 h
15407 s///
15408 s/^/:/
15409 s/[      ]*$/:/
15410 s/:\$(srcdir):/:/g
15411 s/:\${srcdir}:/:/g
15412 s/:@srcdir@:/:/g
15413 s/^:*//
15414 s/:*$//
15415 x
15416 s/\(=[   ]*\).*/\1/
15417 G
15418 s/\n//
15419 s/^[^=]*=[       ]*$//
15420 }'
15421 fi
15422
15423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15424 fi # test -n "$CONFIG_FILES"
15425
15426 # Set up the scripts for CONFIG_HEADERS section.
15427 # No need to generate them if there are no CONFIG_HEADERS.
15428 # This happens for instance with `./config.status Makefile'.
15429 if test -n "$CONFIG_HEADERS"; then
15430 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15431 BEGIN {
15432 _ACEOF
15433
15434 # Transform confdefs.h into an awk script `defines.awk', embedded as
15435 # here-document in config.status, that substitutes the proper values into
15436 # config.h.in to produce config.h.
15437
15438 # Create a delimiter string that does not exist in confdefs.h, to ease
15439 # handling of long lines.
15440 ac_delim='%!_!# '
15441 for ac_last_try in false false :; do
15442   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15443   if test -z "$ac_tt"; then
15444     break
15445   elif $ac_last_try; then
15446     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15447   else
15448     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15449   fi
15450 done
15451
15452 # For the awk script, D is an array of macro values keyed by name,
15453 # likewise P contains macro parameters if any.  Preserve backslash
15454 # newline sequences.
15455
15456 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15457 sed -n '
15458 s/.\{148\}/&'"$ac_delim"'/g
15459 t rset
15460 :rset
15461 s/^[     ]*#[    ]*define[       ][      ]*/ /
15462 t def
15463 d
15464 :def
15465 s/\\$//
15466 t bsnl
15467 s/["\\]/\\&/g
15468 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15469 D["\1"]=" \3"/p
15470 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15471 d
15472 :bsnl
15473 s/["\\]/\\&/g
15474 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15475 D["\1"]=" \3\\\\\\n"\\/p
15476 t cont
15477 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15478 t cont
15479 d
15480 :cont
15481 n
15482 s/.\{148\}/&'"$ac_delim"'/g
15483 t clear
15484 :clear
15485 s/\\$//
15486 t bsnlc
15487 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15488 d
15489 :bsnlc
15490 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15491 b cont
15492 ' <confdefs.h | sed '
15493 s/'"$ac_delim"'/"\\\
15494 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15495
15496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15497   for (key in D) D_is_set[key] = 1
15498   FS = "\a"
15499 }
15500 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15501   line = \$ 0
15502   split(line, arg, " ")
15503   if (arg[1] == "#") {
15504     defundef = arg[2]
15505     mac1 = arg[3]
15506   } else {
15507     defundef = substr(arg[1], 2)
15508     mac1 = arg[2]
15509   }
15510   split(mac1, mac2, "(") #)
15511   macro = mac2[1]
15512   prefix = substr(line, 1, index(line, defundef) - 1)
15513   if (D_is_set[macro]) {
15514     # Preserve the white space surrounding the "#".
15515     print prefix "define", macro P[macro] D[macro]
15516     next
15517   } else {
15518     # Replace #undef with comments.  This is necessary, for example,
15519     # in the case of _POSIX_SOURCE, which is predefined and required
15520     # on some systems where configure will not decide to define it.
15521     if (defundef == "undef") {
15522       print "/*", prefix defundef, macro, "*/"
15523       next
15524     }
15525   }
15526 }
15527 { print }
15528 _ACAWK
15529 _ACEOF
15530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15531   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15532 fi # test -n "$CONFIG_HEADERS"
15533
15534
15535 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15536 shift
15537 for ac_tag
15538 do
15539   case $ac_tag in
15540   :[FHLC]) ac_mode=$ac_tag; continue;;
15541   esac
15542   case $ac_mode$ac_tag in
15543   :[FHL]*:*);;
15544   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15545   :[FH]-) ac_tag=-:-;;
15546   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15547   esac
15548   ac_save_IFS=$IFS
15549   IFS=:
15550   set x $ac_tag
15551   IFS=$ac_save_IFS
15552   shift
15553   ac_file=$1
15554   shift
15555
15556   case $ac_mode in
15557   :L) ac_source=$1;;
15558   :[FH])
15559     ac_file_inputs=
15560     for ac_f
15561     do
15562       case $ac_f in
15563       -) ac_f="$ac_tmp/stdin";;
15564       *) # Look for the file first in the build tree, then in the source tree
15565          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15566          # because $ac_f cannot contain `:'.
15567          test -f "$ac_f" ||
15568            case $ac_f in
15569            [\\/$]*) false;;
15570            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15571            esac ||
15572            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15573       esac
15574       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15575       as_fn_append ac_file_inputs " '$ac_f'"
15576     done
15577
15578     # Let's still pretend it is `configure' which instantiates (i.e., don't
15579     # use $as_me), people would be surprised to read:
15580     #    /* config.h.  Generated by config.status.  */
15581     configure_input='Generated from '`
15582           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15583         `' by configure.'
15584     if test x"$ac_file" != x-; then
15585       configure_input="$ac_file.  $configure_input"
15586       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15587 $as_echo "$as_me: creating $ac_file" >&6;}
15588     fi
15589     # Neutralize special characters interpreted by sed in replacement strings.
15590     case $configure_input in #(
15591     *\&* | *\|* | *\\* )
15592        ac_sed_conf_input=`$as_echo "$configure_input" |
15593        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15594     *) ac_sed_conf_input=$configure_input;;
15595     esac
15596
15597     case $ac_tag in
15598     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15599       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15600     esac
15601     ;;
15602   esac
15603
15604   ac_dir=`$as_dirname -- "$ac_file" ||
15605 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15606          X"$ac_file" : 'X\(//\)[^/]' \| \
15607          X"$ac_file" : 'X\(//\)$' \| \
15608          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15609 $as_echo X"$ac_file" |
15610     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15611             s//\1/
15612             q
15613           }
15614           /^X\(\/\/\)[^/].*/{
15615             s//\1/
15616             q
15617           }
15618           /^X\(\/\/\)$/{
15619             s//\1/
15620             q
15621           }
15622           /^X\(\/\).*/{
15623             s//\1/
15624             q
15625           }
15626           s/.*/./; q'`
15627   as_dir="$ac_dir"; as_fn_mkdir_p
15628   ac_builddir=.
15629
15630 case "$ac_dir" in
15631 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15632 *)
15633   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15634   # A ".." for each directory in $ac_dir_suffix.
15635   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15636   case $ac_top_builddir_sub in
15637   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15638   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15639   esac ;;
15640 esac
15641 ac_abs_top_builddir=$ac_pwd
15642 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15643 # for backward compatibility:
15644 ac_top_builddir=$ac_top_build_prefix
15645
15646 case $srcdir in
15647   .)  # We are building in place.
15648     ac_srcdir=.
15649     ac_top_srcdir=$ac_top_builddir_sub
15650     ac_abs_top_srcdir=$ac_pwd ;;
15651   [\\/]* | ?:[\\/]* )  # Absolute name.
15652     ac_srcdir=$srcdir$ac_dir_suffix;
15653     ac_top_srcdir=$srcdir
15654     ac_abs_top_srcdir=$srcdir ;;
15655   *) # Relative name.
15656     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15657     ac_top_srcdir=$ac_top_build_prefix$srcdir
15658     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15659 esac
15660 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15661
15662
15663   case $ac_mode in
15664   :F)
15665   #
15666   # CONFIG_FILE
15667   #
15668
15669   case $INSTALL in
15670   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15671   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15672   esac
15673   ac_MKDIR_P=$MKDIR_P
15674   case $MKDIR_P in
15675   [\\/$]* | ?:[\\/]* ) ;;
15676   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15677   esac
15678 _ACEOF
15679
15680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15681 # If the template does not know about datarootdir, expand it.
15682 # FIXME: This hack should be removed a few years after 2.60.
15683 ac_datarootdir_hack=; ac_datarootdir_seen=
15684 ac_sed_dataroot='
15685 /datarootdir/ {
15686   p
15687   q
15688 }
15689 /@datadir@/p
15690 /@docdir@/p
15691 /@infodir@/p
15692 /@localedir@/p
15693 /@mandir@/p'
15694 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15695 *datarootdir*) ac_datarootdir_seen=yes;;
15696 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15697   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15698 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15699 _ACEOF
15700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15701   ac_datarootdir_hack='
15702   s&@datadir@&$datadir&g
15703   s&@docdir@&$docdir&g
15704   s&@infodir@&$infodir&g
15705   s&@localedir@&$localedir&g
15706   s&@mandir@&$mandir&g
15707   s&\\\${datarootdir}&$datarootdir&g' ;;
15708 esac
15709 _ACEOF
15710
15711 # Neutralize VPATH when `$srcdir' = `.'.
15712 # Shell code in configure.ac might set extrasub.
15713 # FIXME: do we really want to maintain this feature?
15714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15715 ac_sed_extra="$ac_vpsub
15716 $extrasub
15717 _ACEOF
15718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15719 :t
15720 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15721 s|@configure_input@|$ac_sed_conf_input|;t t
15722 s&@top_builddir@&$ac_top_builddir_sub&;t t
15723 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15724 s&@srcdir@&$ac_srcdir&;t t
15725 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15726 s&@top_srcdir@&$ac_top_srcdir&;t t
15727 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15728 s&@builddir@&$ac_builddir&;t t
15729 s&@abs_builddir@&$ac_abs_builddir&;t t
15730 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15731 s&@INSTALL@&$ac_INSTALL&;t t
15732 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15733 $ac_datarootdir_hack
15734 "
15735 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15736   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15737
15738 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15739   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15740   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15741       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15742   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15743 which seems to be undefined.  Please make sure it is defined" >&5
15744 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15745 which seems to be undefined.  Please make sure it is defined" >&2;}
15746
15747   rm -f "$ac_tmp/stdin"
15748   case $ac_file in
15749   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15750   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15751   esac \
15752   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15753  ;;
15754   :H)
15755   #
15756   # CONFIG_HEADER
15757   #
15758   if test x"$ac_file" != x-; then
15759     {
15760       $as_echo "/* $configure_input  */" \
15761       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15762     } >"$ac_tmp/config.h" \
15763       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15764     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15765       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15766 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15767     else
15768       rm -f "$ac_file"
15769       mv "$ac_tmp/config.h" "$ac_file" \
15770         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15771     fi
15772   else
15773     $as_echo "/* $configure_input  */" \
15774       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15775       || as_fn_error $? "could not create -" "$LINENO" 5
15776   fi
15777 # Compute "$ac_file"'s index in $config_headers.
15778 _am_arg="$ac_file"
15779 _am_stamp_count=1
15780 for _am_header in $config_headers :; do
15781   case $_am_header in
15782     $_am_arg | $_am_arg:* )
15783       break ;;
15784     * )
15785       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15786   esac
15787 done
15788 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15789 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15790          X"$_am_arg" : 'X\(//\)[^/]' \| \
15791          X"$_am_arg" : 'X\(//\)$' \| \
15792          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15793 $as_echo X"$_am_arg" |
15794     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15795             s//\1/
15796             q
15797           }
15798           /^X\(\/\/\)[^/].*/{
15799             s//\1/
15800             q
15801           }
15802           /^X\(\/\/\)$/{
15803             s//\1/
15804             q
15805           }
15806           /^X\(\/\).*/{
15807             s//\1/
15808             q
15809           }
15810           s/.*/./; q'`/stamp-h$_am_stamp_count
15811  ;;
15812
15813   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15814 $as_echo "$as_me: executing $ac_file commands" >&6;}
15815  ;;
15816   esac
15817
15818
15819   case $ac_file$ac_mode in
15820     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15821   # Older Autoconf quotes --file arguments for eval, but not when files
15822   # are listed without --file.  Let's play safe and only enable the eval
15823   # if we detect the quoting.
15824   # TODO: see whether this extra hack can be removed once we start
15825   # requiring Autoconf 2.70 or later.
15826   case $CONFIG_FILES in #(
15827   *\'*) :
15828     eval set x "$CONFIG_FILES" ;; #(
15829   *) :
15830     set x $CONFIG_FILES ;; #(
15831   *) :
15832      ;;
15833 esac
15834   shift
15835   # Used to flag and report bootstrapping failures.
15836   am_rc=0
15837   for am_mf
15838   do
15839     # Strip MF so we end up with the name of the file.
15840     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
15841     # Check whether this is an Automake generated Makefile which includes
15842     # dependency-tracking related rules and includes.
15843     # Grep'ing the whole file directly is not great: AIX grep has a line
15844     # limit of 2048, but all sed's we know have understand at least 4000.
15845     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15846       || continue
15847     am_dirpart=`$as_dirname -- "$am_mf" ||
15848 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15849          X"$am_mf" : 'X\(//\)[^/]' \| \
15850          X"$am_mf" : 'X\(//\)$' \| \
15851          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15852 $as_echo X"$am_mf" |
15853     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15854             s//\1/
15855             q
15856           }
15857           /^X\(\/\/\)[^/].*/{
15858             s//\1/
15859             q
15860           }
15861           /^X\(\/\/\)$/{
15862             s//\1/
15863             q
15864           }
15865           /^X\(\/\).*/{
15866             s//\1/
15867             q
15868           }
15869           s/.*/./; q'`
15870     am_filepart=`$as_basename -- "$am_mf" ||
15871 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15872          X"$am_mf" : 'X\(//\)$' \| \
15873          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15874 $as_echo X/"$am_mf" |
15875     sed '/^.*\/\([^/][^/]*\)\/*$/{
15876             s//\1/
15877             q
15878           }
15879           /^X\/\(\/\/\)$/{
15880             s//\1/
15881             q
15882           }
15883           /^X\/\(\/\).*/{
15884             s//\1/
15885             q
15886           }
15887           s/.*/./; q'`
15888     { echo "$as_me:$LINENO: cd "$am_dirpart" \
15889       && sed -e '/# am--include-marker/d' "$am_filepart" \
15890         | $MAKE -f - am--depfiles" >&5
15891    (cd "$am_dirpart" \
15892       && sed -e '/# am--include-marker/d' "$am_filepart" \
15893         | $MAKE -f - am--depfiles) >&5 2>&5
15894    ac_status=$?
15895    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896    (exit $ac_status); } || am_rc=$?
15897   done
15898   if test $am_rc -ne 0; then
15899     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15901 as_fn_error $? "Something went wrong bootstrapping makefile fragments
15902     for automatic dependency tracking.  If GNU make was not used, consider
15903     re-running the configure script with MAKE=\"gmake\" (or whatever is
15904     necessary).  You can also try re-running configure with the
15905     '--disable-dependency-tracking' option to at least be able to build
15906     the package (albeit without support for automatic dependency tracking).
15907 See \`config.log' for more details" "$LINENO" 5; }
15908   fi
15909   { am_dirpart=; unset am_dirpart;}
15910   { am_filepart=; unset am_filepart;}
15911   { am_mf=; unset am_mf;}
15912   { am_rc=; unset am_rc;}
15913   rm -f conftest-deps.mk
15914 }
15915  ;;
15916     "libtool":C)
15917
15918     # See if we are running on zsh, and set the options that allow our
15919     # commands through without removal of \ escapes.
15920     if test -n "${ZSH_VERSION+set}"; then
15921       setopt NO_GLOB_SUBST
15922     fi
15923
15924     cfgfile=${ofile}T
15925     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15926     $RM "$cfgfile"
15927
15928     cat <<_LT_EOF >> "$cfgfile"
15929 #! $SHELL
15930 # Generated automatically by $as_me ($PACKAGE) $VERSION
15931 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15932
15933 # Provide generalized library-building support services.
15934 # Written by Gordon Matzigkeit, 1996
15935
15936 # Copyright (C) 2014 Free Software Foundation, Inc.
15937 # This is free software; see the source for copying conditions.  There is NO
15938 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15939
15940 # GNU Libtool is free software; you can redistribute it and/or modify
15941 # it under the terms of the GNU General Public License as published by
15942 # the Free Software Foundation; either version 2 of of the License, or
15943 # (at your option) any later version.
15944 #
15945 # As a special exception to the GNU General Public License, if you
15946 # distribute this file as part of a program or library that is built
15947 # using GNU Libtool, you may include this file under the  same
15948 # distribution terms that you use for the rest of that program.
15949 #
15950 # GNU Libtool is distributed in the hope that it will be useful, but
15951 # WITHOUT ANY WARRANTY; without even the implied warranty of
15952 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15953 # GNU General Public License for more details.
15954 #
15955 # You should have received a copy of the GNU General Public License
15956 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
15957
15958
15959 # The names of the tagged configurations supported by this script.
15960 available_tags=''
15961
15962 # Configured defaults for sys_lib_dlsearch_path munging.
15963 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15964
15965 # ### BEGIN LIBTOOL CONFIG
15966
15967 # Which release of libtool.m4 was used?
15968 macro_version=$macro_version
15969 macro_revision=$macro_revision
15970
15971 # Whether or not to build static libraries.
15972 build_old_libs=$enable_static
15973
15974 # Whether or not to build shared libraries.
15975 build_libtool_libs=$enable_shared
15976
15977 # What type of objects to build.
15978 pic_mode=$pic_mode
15979
15980 # Whether or not to optimize for fast installation.
15981 fast_install=$enable_fast_install
15982
15983 # Shared archive member basename,for filename based shared library versioning on AIX.
15984 shared_archive_member_spec=$shared_archive_member_spec
15985
15986 # Shell to use when invoking shell scripts.
15987 SHELL=$lt_SHELL
15988
15989 # An echo program that protects backslashes.
15990 ECHO=$lt_ECHO
15991
15992 # The PATH separator for the build system.
15993 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15994
15995 # The host system.
15996 host_alias=$host_alias
15997 host=$host
15998 host_os=$host_os
15999
16000 # The build system.
16001 build_alias=$build_alias
16002 build=$build
16003 build_os=$build_os
16004
16005 # A sed program that does not truncate output.
16006 SED=$lt_SED
16007
16008 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16009 Xsed="\$SED -e 1s/^X//"
16010
16011 # A grep program that handles long lines.
16012 GREP=$lt_GREP
16013
16014 # An ERE matcher.
16015 EGREP=$lt_EGREP
16016
16017 # A literal string matcher.
16018 FGREP=$lt_FGREP
16019
16020 # A BSD- or MS-compatible name lister.
16021 NM=$lt_NM
16022
16023 # Whether we need soft or hard links.
16024 LN_S=$lt_LN_S
16025
16026 # What is the maximum length of a command?
16027 max_cmd_len=$max_cmd_len
16028
16029 # Object file suffix (normally "o").
16030 objext=$ac_objext
16031
16032 # Executable file suffix (normally "").
16033 exeext=$exeext
16034
16035 # whether the shell understands "unset".
16036 lt_unset=$lt_unset
16037
16038 # turn spaces into newlines.
16039 SP2NL=$lt_lt_SP2NL
16040
16041 # turn newlines into spaces.
16042 NL2SP=$lt_lt_NL2SP
16043
16044 # convert \$build file names to \$host format.
16045 to_host_file_cmd=$lt_cv_to_host_file_cmd
16046
16047 # convert \$build files to toolchain format.
16048 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16049
16050 # An object symbol dumper.
16051 OBJDUMP=$lt_OBJDUMP
16052
16053 # Method to check whether dependent libraries are shared objects.
16054 deplibs_check_method=$lt_deplibs_check_method
16055
16056 # Command to use when deplibs_check_method = "file_magic".
16057 file_magic_cmd=$lt_file_magic_cmd
16058
16059 # How to find potential files when deplibs_check_method = "file_magic".
16060 file_magic_glob=$lt_file_magic_glob
16061
16062 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16063 want_nocaseglob=$lt_want_nocaseglob
16064
16065 # DLL creation program.
16066 DLLTOOL=$lt_DLLTOOL
16067
16068 # Command to associate shared and link libraries.
16069 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16070
16071 # The archiver.
16072 AR=$lt_AR
16073
16074 # Flags to create an archive.
16075 AR_FLAGS=$lt_AR_FLAGS
16076
16077 # How to feed a file listing to the archiver.
16078 archiver_list_spec=$lt_archiver_list_spec
16079
16080 # A symbol stripping program.
16081 STRIP=$lt_STRIP
16082
16083 # Commands used to install an old-style archive.
16084 RANLIB=$lt_RANLIB
16085 old_postinstall_cmds=$lt_old_postinstall_cmds
16086 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16087
16088 # Whether to use a lock for old archive extraction.
16089 lock_old_archive_extraction=$lock_old_archive_extraction
16090
16091 # A C compiler.
16092 LTCC=$lt_CC
16093
16094 # LTCC compiler flags.
16095 LTCFLAGS=$lt_CFLAGS
16096
16097 # Take the output of nm and produce a listing of raw symbols and C names.
16098 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16099
16100 # Transform the output of nm in a proper C declaration.
16101 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16102
16103 # Transform the output of nm into a list of symbols to manually relocate.
16104 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16105
16106 # Transform the output of nm in a C name address pair.
16107 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16108
16109 # Transform the output of nm in a C name address pair when lib prefix is needed.
16110 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16111
16112 # The name lister interface.
16113 nm_interface=$lt_lt_cv_nm_interface
16114
16115 # Specify filename containing input files for \$NM.
16116 nm_file_list_spec=$lt_nm_file_list_spec
16117
16118 # The root where to search for dependent libraries,and where our libraries should be installed.
16119 lt_sysroot=$lt_sysroot
16120
16121 # Command to truncate a binary pipe.
16122 lt_truncate_bin=$lt_lt_cv_truncate_bin
16123
16124 # The name of the directory that contains temporary libtool files.
16125 objdir=$objdir
16126
16127 # Used to examine libraries when file_magic_cmd begins with "file".
16128 MAGIC_CMD=$MAGIC_CMD
16129
16130 # Must we lock files when doing compilation?
16131 need_locks=$lt_need_locks
16132
16133 # Manifest tool.
16134 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16135
16136 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16137 DSYMUTIL=$lt_DSYMUTIL
16138
16139 # Tool to change global to local symbols on Mac OS X.
16140 NMEDIT=$lt_NMEDIT
16141
16142 # Tool to manipulate fat objects and archives on Mac OS X.
16143 LIPO=$lt_LIPO
16144
16145 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16146 OTOOL=$lt_OTOOL
16147
16148 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16149 OTOOL64=$lt_OTOOL64
16150
16151 # Old archive suffix (normally "a").
16152 libext=$libext
16153
16154 # Shared library suffix (normally ".so").
16155 shrext_cmds=$lt_shrext_cmds
16156
16157 # The commands to extract the exported symbol list from a shared archive.
16158 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16159
16160 # Variables whose values should be saved in libtool wrapper scripts and
16161 # restored at link time.
16162 variables_saved_for_relink=$lt_variables_saved_for_relink
16163
16164 # Do we need the "lib" prefix for modules?
16165 need_lib_prefix=$need_lib_prefix
16166
16167 # Do we need a version for libraries?
16168 need_version=$need_version
16169
16170 # Library versioning type.
16171 version_type=$version_type
16172
16173 # Shared library runtime path variable.
16174 runpath_var=$runpath_var
16175
16176 # Shared library path variable.
16177 shlibpath_var=$shlibpath_var
16178
16179 # Is shlibpath searched before the hard-coded library search path?
16180 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16181
16182 # Format of library name prefix.
16183 libname_spec=$lt_libname_spec
16184
16185 # List of archive names.  First name is the real one, the rest are links.
16186 # The last name is the one that the linker finds with -lNAME
16187 library_names_spec=$lt_library_names_spec
16188
16189 # The coded name of the library, if different from the real name.
16190 soname_spec=$lt_soname_spec
16191
16192 # Permission mode override for installation of shared libraries.
16193 install_override_mode=$lt_install_override_mode
16194
16195 # Command to use after installation of a shared archive.
16196 postinstall_cmds=$lt_postinstall_cmds
16197
16198 # Command to use after uninstallation of a shared archive.
16199 postuninstall_cmds=$lt_postuninstall_cmds
16200
16201 # Commands used to finish a libtool library installation in a directory.
16202 finish_cmds=$lt_finish_cmds
16203
16204 # As "finish_cmds", except a single script fragment to be evaled but
16205 # not shown.
16206 finish_eval=$lt_finish_eval
16207
16208 # Whether we should hardcode library paths into libraries.
16209 hardcode_into_libs=$hardcode_into_libs
16210
16211 # Compile-time system search path for libraries.
16212 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16213
16214 # Detected run-time system search path for libraries.
16215 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16216
16217 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16218 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16219
16220 # Whether dlopen is supported.
16221 dlopen_support=$enable_dlopen
16222
16223 # Whether dlopen of programs is supported.
16224 dlopen_self=$enable_dlopen_self
16225
16226 # Whether dlopen of statically linked programs is supported.
16227 dlopen_self_static=$enable_dlopen_self_static
16228
16229 # Commands to strip libraries.
16230 old_striplib=$lt_old_striplib
16231 striplib=$lt_striplib
16232
16233
16234 # The linker used to build libraries.
16235 LD=$lt_LD
16236
16237 # How to create reloadable object files.
16238 reload_flag=$lt_reload_flag
16239 reload_cmds=$lt_reload_cmds
16240
16241 # Commands used to build an old-style archive.
16242 old_archive_cmds=$lt_old_archive_cmds
16243
16244 # A language specific compiler.
16245 CC=$lt_compiler
16246
16247 # Is the compiler the GNU compiler?
16248 with_gcc=$GCC
16249
16250 # Compiler flag to turn off builtin functions.
16251 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16252
16253 # Additional compiler flags for building library objects.
16254 pic_flag=$lt_lt_prog_compiler_pic
16255
16256 # How to pass a linker flag through the compiler.
16257 wl=$lt_lt_prog_compiler_wl
16258
16259 # Compiler flag to prevent dynamic linking.
16260 link_static_flag=$lt_lt_prog_compiler_static
16261
16262 # Does compiler simultaneously support -c and -o options?
16263 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16264
16265 # Whether or not to add -lc for building shared libraries.
16266 build_libtool_need_lc=$archive_cmds_need_lc
16267
16268 # Whether or not to disallow shared libs when runtime libs are static.
16269 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16270
16271 # Compiler flag to allow reflexive dlopens.
16272 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16273
16274 # Compiler flag to generate shared objects directly from archives.
16275 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16276
16277 # Whether the compiler copes with passing no objects directly.
16278 compiler_needs_object=$lt_compiler_needs_object
16279
16280 # Create an old-style archive from a shared archive.
16281 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16282
16283 # Create a temporary old-style archive to link instead of a shared archive.
16284 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16285
16286 # Commands used to build a shared archive.
16287 archive_cmds=$lt_archive_cmds
16288 archive_expsym_cmds=$lt_archive_expsym_cmds
16289
16290 # Commands used to build a loadable module if different from building
16291 # a shared archive.
16292 module_cmds=$lt_module_cmds
16293 module_expsym_cmds=$lt_module_expsym_cmds
16294
16295 # Whether we are building with GNU ld or not.
16296 with_gnu_ld=$lt_with_gnu_ld
16297
16298 # Flag that allows shared libraries with undefined symbols to be built.
16299 allow_undefined_flag=$lt_allow_undefined_flag
16300
16301 # Flag that enforces no undefined symbols.
16302 no_undefined_flag=$lt_no_undefined_flag
16303
16304 # Flag to hardcode \$libdir into a binary during linking.
16305 # This must work even if \$libdir does not exist
16306 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16307
16308 # Whether we need a single "-rpath" flag with a separated argument.
16309 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16310
16311 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16312 # DIR into the resulting binary.
16313 hardcode_direct=$hardcode_direct
16314
16315 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16316 # DIR into the resulting binary and the resulting library dependency is
16317 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16318 # library is relocated.
16319 hardcode_direct_absolute=$hardcode_direct_absolute
16320
16321 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16322 # into the resulting binary.
16323 hardcode_minus_L=$hardcode_minus_L
16324
16325 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16326 # into the resulting binary.
16327 hardcode_shlibpath_var=$hardcode_shlibpath_var
16328
16329 # Set to "yes" if building a shared library automatically hardcodes DIR
16330 # into the library and all subsequent libraries and executables linked
16331 # against it.
16332 hardcode_automatic=$hardcode_automatic
16333
16334 # Set to yes if linker adds runtime paths of dependent libraries
16335 # to runtime path list.
16336 inherit_rpath=$inherit_rpath
16337
16338 # Whether libtool must link a program against all its dependency libraries.
16339 link_all_deplibs=$link_all_deplibs
16340
16341 # Set to "yes" if exported symbols are required.
16342 always_export_symbols=$always_export_symbols
16343
16344 # The commands to list exported symbols.
16345 export_symbols_cmds=$lt_export_symbols_cmds
16346
16347 # Symbols that should not be listed in the preloaded symbols.
16348 exclude_expsyms=$lt_exclude_expsyms
16349
16350 # Symbols that must always be exported.
16351 include_expsyms=$lt_include_expsyms
16352
16353 # Commands necessary for linking programs (against libraries) with templates.
16354 prelink_cmds=$lt_prelink_cmds
16355
16356 # Commands necessary for finishing linking programs.
16357 postlink_cmds=$lt_postlink_cmds
16358
16359 # Specify filename containing input files.
16360 file_list_spec=$lt_file_list_spec
16361
16362 # How to hardcode a shared library path into an executable.
16363 hardcode_action=$hardcode_action
16364
16365 # ### END LIBTOOL CONFIG
16366
16367 _LT_EOF
16368
16369     cat <<'_LT_EOF' >> "$cfgfile"
16370
16371 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16372
16373 # func_munge_path_list VARIABLE PATH
16374 # -----------------------------------
16375 # VARIABLE is name of variable containing _space_ separated list of
16376 # directories to be munged by the contents of PATH, which is string
16377 # having a format:
16378 # "DIR[:DIR]:"
16379 #       string "DIR[ DIR]" will be prepended to VARIABLE
16380 # ":DIR[:DIR]"
16381 #       string "DIR[ DIR]" will be appended to VARIABLE
16382 # "DIRP[:DIRP]::[DIRA:]DIRA"
16383 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16384 #       "DIRA[ DIRA]" will be appended to VARIABLE
16385 # "DIR[:DIR]"
16386 #       VARIABLE will be replaced by "DIR[ DIR]"
16387 func_munge_path_list ()
16388 {
16389     case x$2 in
16390     x)
16391         ;;
16392     *:)
16393         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16394         ;;
16395     x:*)
16396         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16397         ;;
16398     *::*)
16399         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16400         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16401         ;;
16402     *)
16403         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16404         ;;
16405     esac
16406 }
16407
16408
16409 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
16410 func_cc_basename ()
16411 {
16412     for cc_temp in $*""; do
16413       case $cc_temp in
16414         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16415         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16416         \-*) ;;
16417         *) break;;
16418       esac
16419     done
16420     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16421 }
16422
16423
16424 # ### END FUNCTIONS SHARED WITH CONFIGURE
16425
16426 _LT_EOF
16427
16428   case $host_os in
16429   aix3*)
16430     cat <<\_LT_EOF >> "$cfgfile"
16431 # AIX sometimes has problems with the GCC collect2 program.  For some
16432 # reason, if we set the COLLECT_NAMES environment variable, the problems
16433 # vanish in a puff of smoke.
16434 if test set != "${COLLECT_NAMES+set}"; then
16435   COLLECT_NAMES=
16436   export COLLECT_NAMES
16437 fi
16438 _LT_EOF
16439     ;;
16440   esac
16441
16442
16443 ltmain=$ac_aux_dir/ltmain.sh
16444
16445
16446   # We use sed instead of cat because bash on DJGPP gets confused if
16447   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16448   # text mode, it properly converts lines to CR/LF.  This bash problem
16449   # is reportedly fixed, but why not run on old versions too?
16450   sed '$q' "$ltmain" >> "$cfgfile" \
16451      || (rm -f "$cfgfile"; exit 1)
16452
16453    mv -f "$cfgfile" "$ofile" ||
16454     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16455   chmod +x "$ofile"
16456
16457  ;;
16458
16459   esac
16460 done # for ac_tag
16461
16462
16463 as_fn_exit 0
16464 _ACEOF
16465 ac_clean_files=$ac_clean_files_save
16466
16467 test $ac_write_fail = 0 ||
16468   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16469
16470
16471 # configure is writing to config.log, and then calls config.status.
16472 # config.status does its own redirection, appending to config.log.
16473 # Unfortunately, on DOS this fails, as config.log is still kept open
16474 # by configure, so config.status won't be able to write to it; its
16475 # output is simply discarded.  So we exec the FD to /dev/null,
16476 # effectively closing config.log, so it can be properly (re)opened and
16477 # appended to by config.status.  When coming back to configure, we
16478 # need to make the FD available again.
16479 if test "$no_create" != yes; then
16480   ac_cs_success=:
16481   ac_config_status_args=
16482   test "$silent" = yes &&
16483     ac_config_status_args="$ac_config_status_args --quiet"
16484   exec 5>/dev/null
16485   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16486   exec 5>>config.log
16487   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16488   # would make configure fail if this is the last instruction.
16489   $ac_cs_success || as_fn_exit 1
16490 fi
16491 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16492   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16493 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16494 fi
16495
16496