• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libevdev 1.10.0.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=libevdev>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=libevdev
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='libevdev'
593PACKAGE_TARNAME='libevdev'
594PACKAGE_VERSION='1.10.0'
595PACKAGE_STRING='libevdev 1.10.0'
596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=libevdev'
597PACKAGE_URL='http://freedesktop.org/wiki/Software/libevdev/'
598
599ac_unique_file="libevdev/libevdev.c"
600# Factoring default headers for most tests.
601ac_includes_default="\
602#include <stdio.h>
603#ifdef HAVE_SYS_TYPES_H
604# include <sys/types.h>
605#endif
606#ifdef HAVE_SYS_STAT_H
607# include <sys/stat.h>
608#endif
609#ifdef STDC_HEADERS
610# include <stdlib.h>
611# include <stddef.h>
612#else
613# ifdef HAVE_STDLIB_H
614#  include <stdlib.h>
615# endif
616#endif
617#ifdef HAVE_STRING_H
618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619#  include <memory.h>
620# endif
621# include <string.h>
622#endif
623#ifdef HAVE_STRINGS_H
624# include <strings.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_UNISTD_H
633# include <unistd.h>
634#endif"
635
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640ENABLE_STATIC_SYMBOL_LEAKS_TEST_FALSE
641ENABLE_STATIC_SYMBOL_LEAKS_TEST_TRUE
642HAVE_NM_FALSE
643HAVE_NM_TRUE
644pkgpyexecdir
645pyexecdir
646pkgpythondir
647pythondir
648PYTHON_PLATFORM
649PYTHON_EXEC_PREFIX
650PYTHON_PREFIX
651PYTHON_VERSION
652PYTHON
653GCOV_LDFLAGS
654GCOV_CFLAGS
655GCOV_ENABLED_FALSE
656GCOV_ENABLED_TRUE
657HAVE_DOXYGEN_FALSE
658HAVE_DOXYGEN_TRUE
659DOXYGEN
660GCC_CFLAGS
661ENABLE_STATIC_LINK_TEST_FALSE
662ENABLE_STATIC_LINK_TEST_TRUE
663ENABLE_RUNTIME_TESTS_FALSE
664ENABLE_RUNTIME_TESTS_TRUE
665HAVE_VALGRIND_FALSE
666HAVE_VALGRIND_TRUE
667VALGRIND
668CHECK_LIBS
669CHECK_CFLAGS
670PKG_CONFIG_LIBDIR
671PKG_CONFIG_PATH
672PKG_CONFIG
673OS
674GNU_LD_FLAGS
675LT_SYS_LIBRARY_PATH
676OTOOL64
677OTOOL
678LIPO
679NMEDIT
680DSYMUTIL
681MANIFEST_TOOL
682RANLIB
683ac_ct_AR
684AR
685DLLTOOL
686OBJDUMP
687LN_S
688NM
689ac_ct_DUMPBIN
690DUMPBIN
691LD
692FGREP
693SED
694host_os
695host_vendor
696host_cpu
697host
698build_os
699build_vendor
700build_cpu
701build
702LIBTOOL
703LIBEVDEV_LT_VERSION
704AM_BACKSLASH
705AM_DEFAULT_VERBOSITY
706AM_DEFAULT_V
707AM_V
708am__fastdepCC_FALSE
709am__fastdepCC_TRUE
710CCDEPMODE
711am__nodep
712AMDEPBACKSLASH
713AMDEP_FALSE
714AMDEP_TRUE
715am__include
716DEPDIR
717am__untar
718am__tar
719AMTAR
720am__leading_dot
721SET_MAKE
722AWK
723mkdir_p
724MKDIR_P
725INSTALL_STRIP_PROGRAM
726STRIP
727install_sh
728MAKEINFO
729AUTOHEADER
730AUTOMAKE
731AUTOCONF
732ACLOCAL
733VERSION
734PACKAGE
735CYGPATH_W
736am__isrc
737INSTALL_DATA
738INSTALL_SCRIPT
739INSTALL_PROGRAM
740EGREP
741GREP
742CPP
743OBJEXT
744EXEEXT
745ac_ct_CC
746CPPFLAGS
747LDFLAGS
748CFLAGS
749CC
750target_alias
751host_alias
752build_alias
753LIBS
754ECHO_T
755ECHO_N
756ECHO_C
757DEFS
758mandir
759localedir
760libdir
761psdir
762pdfdir
763dvidir
764htmldir
765infodir
766docdir
767oldincludedir
768includedir
769localstatedir
770sharedstatedir
771sysconfdir
772datadir
773datarootdir
774libexecdir
775sbindir
776bindir
777program_transform_name
778prefix
779exec_prefix
780PACKAGE_URL
781PACKAGE_BUGREPORT
782PACKAGE_STRING
783PACKAGE_VERSION
784PACKAGE_TARNAME
785PACKAGE_NAME
786PATH_SEPARATOR
787SHELL
788am__quote'
789ac_subst_files=''
790ac_user_opts='
791enable_option_checking
792enable_dependency_tracking
793enable_silent_rules
794enable_shared
795enable_static
796with_pic
797enable_fast_install
798with_aix_soname
799with_gnu_ld
800with_sysroot
801enable_libtool_lock
802enable_gcov
803enable_coverity
804'
805      ac_precious_vars='build_alias
806host_alias
807target_alias
808CC
809CFLAGS
810LDFLAGS
811LIBS
812CPPFLAGS
813CPP
814LT_SYS_LIBRARY_PATH
815PKG_CONFIG
816PKG_CONFIG_PATH
817PKG_CONFIG_LIBDIR
818CHECK_CFLAGS
819CHECK_LIBS
820PYTHON'
821
822
823# Initialize some variables set by options.
824ac_init_help=
825ac_init_version=false
826ac_unrecognized_opts=
827ac_unrecognized_sep=
828# The variables have the same names as the options, with
829# dashes changed to underlines.
830cache_file=/dev/null
831exec_prefix=NONE
832no_create=
833no_recursion=
834prefix=NONE
835program_prefix=NONE
836program_suffix=NONE
837program_transform_name=s,x,x,
838silent=
839site=
840srcdir=
841verbose=
842x_includes=NONE
843x_libraries=NONE
844
845# Installation directory options.
846# These are left unexpanded so users can "make install exec_prefix=/foo"
847# and all the variables that are supposed to be based on exec_prefix
848# by default will actually change.
849# Use braces instead of parens because sh, perl, etc. also accept them.
850# (The list follows the same order as the GNU Coding Standards.)
851bindir='${exec_prefix}/bin'
852sbindir='${exec_prefix}/sbin'
853libexecdir='${exec_prefix}/libexec'
854datarootdir='${prefix}/share'
855datadir='${datarootdir}'
856sysconfdir='${prefix}/etc'
857sharedstatedir='${prefix}/com'
858localstatedir='${prefix}/var'
859includedir='${prefix}/include'
860oldincludedir='/usr/include'
861docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862infodir='${datarootdir}/info'
863htmldir='${docdir}'
864dvidir='${docdir}'
865pdfdir='${docdir}'
866psdir='${docdir}'
867libdir='${exec_prefix}/lib'
868localedir='${datarootdir}/locale'
869mandir='${datarootdir}/man'
870
871ac_prev=
872ac_dashdash=
873for ac_option
874do
875  # If the previous option needs an argument, assign it.
876  if test -n "$ac_prev"; then
877    eval $ac_prev=\$ac_option
878    ac_prev=
879    continue
880  fi
881
882  case $ac_option in
883  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884  *=)   ac_optarg= ;;
885  *)    ac_optarg=yes ;;
886  esac
887
888  # Accept the important Cygnus configure options, so we can diagnose typos.
889
890  case $ac_dashdash$ac_option in
891  --)
892    ac_dashdash=yes ;;
893
894  -bindir | --bindir | --bindi | --bind | --bin | --bi)
895    ac_prev=bindir ;;
896  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
897    bindir=$ac_optarg ;;
898
899  -build | --build | --buil | --bui | --bu)
900    ac_prev=build_alias ;;
901  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
902    build_alias=$ac_optarg ;;
903
904  -cache-file | --cache-file | --cache-fil | --cache-fi \
905  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
906    ac_prev=cache_file ;;
907  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
908  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
909    cache_file=$ac_optarg ;;
910
911  --config-cache | -C)
912    cache_file=config.cache ;;
913
914  -datadir | --datadir | --datadi | --datad)
915    ac_prev=datadir ;;
916  -datadir=* | --datadir=* | --datadi=* | --datad=*)
917    datadir=$ac_optarg ;;
918
919  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
920  | --dataroo | --dataro | --datar)
921    ac_prev=datarootdir ;;
922  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
923  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
924    datarootdir=$ac_optarg ;;
925
926  -disable-* | --disable-*)
927    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928    # Reject names that are not valid shell variable names.
929    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930      as_fn_error $? "invalid feature name: $ac_useropt"
931    ac_useropt_orig=$ac_useropt
932    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933    case $ac_user_opts in
934      *"
935"enable_$ac_useropt"
936"*) ;;
937      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
938	 ac_unrecognized_sep=', ';;
939    esac
940    eval enable_$ac_useropt=no ;;
941
942  -docdir | --docdir | --docdi | --doc | --do)
943    ac_prev=docdir ;;
944  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945    docdir=$ac_optarg ;;
946
947  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948    ac_prev=dvidir ;;
949  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950    dvidir=$ac_optarg ;;
951
952  -enable-* | --enable-*)
953    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954    # Reject names that are not valid shell variable names.
955    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956      as_fn_error $? "invalid feature name: $ac_useropt"
957    ac_useropt_orig=$ac_useropt
958    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959    case $ac_user_opts in
960      *"
961"enable_$ac_useropt"
962"*) ;;
963      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
964	 ac_unrecognized_sep=', ';;
965    esac
966    eval enable_$ac_useropt=\$ac_optarg ;;
967
968  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
969  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
970  | --exec | --exe | --ex)
971    ac_prev=exec_prefix ;;
972  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
973  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
974  | --exec=* | --exe=* | --ex=*)
975    exec_prefix=$ac_optarg ;;
976
977  -gas | --gas | --ga | --g)
978    # Obsolete; use --with-gas.
979    with_gas=yes ;;
980
981  -help | --help | --hel | --he | -h)
982    ac_init_help=long ;;
983  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
984    ac_init_help=recursive ;;
985  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
986    ac_init_help=short ;;
987
988  -host | --host | --hos | --ho)
989    ac_prev=host_alias ;;
990  -host=* | --host=* | --hos=* | --ho=*)
991    host_alias=$ac_optarg ;;
992
993  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
994    ac_prev=htmldir ;;
995  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
996  | --ht=*)
997    htmldir=$ac_optarg ;;
998
999  -includedir | --includedir | --includedi | --included | --include \
1000  | --includ | --inclu | --incl | --inc)
1001    ac_prev=includedir ;;
1002  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1003  | --includ=* | --inclu=* | --incl=* | --inc=*)
1004    includedir=$ac_optarg ;;
1005
1006  -infodir | --infodir | --infodi | --infod | --info | --inf)
1007    ac_prev=infodir ;;
1008  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1009    infodir=$ac_optarg ;;
1010
1011  -libdir | --libdir | --libdi | --libd)
1012    ac_prev=libdir ;;
1013  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1014    libdir=$ac_optarg ;;
1015
1016  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1017  | --libexe | --libex | --libe)
1018    ac_prev=libexecdir ;;
1019  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1020  | --libexe=* | --libex=* | --libe=*)
1021    libexecdir=$ac_optarg ;;
1022
1023  -localedir | --localedir | --localedi | --localed | --locale)
1024    ac_prev=localedir ;;
1025  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1026    localedir=$ac_optarg ;;
1027
1028  -localstatedir | --localstatedir | --localstatedi | --localstated \
1029  | --localstate | --localstat | --localsta | --localst | --locals)
1030    ac_prev=localstatedir ;;
1031  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1032  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1033    localstatedir=$ac_optarg ;;
1034
1035  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1036    ac_prev=mandir ;;
1037  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1038    mandir=$ac_optarg ;;
1039
1040  -nfp | --nfp | --nf)
1041    # Obsolete; use --without-fp.
1042    with_fp=no ;;
1043
1044  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1045  | --no-cr | --no-c | -n)
1046    no_create=yes ;;
1047
1048  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1049  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1050    no_recursion=yes ;;
1051
1052  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1053  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1054  | --oldin | --oldi | --old | --ol | --o)
1055    ac_prev=oldincludedir ;;
1056  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1057  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1058  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1059    oldincludedir=$ac_optarg ;;
1060
1061  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1062    ac_prev=prefix ;;
1063  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1064    prefix=$ac_optarg ;;
1065
1066  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1067  | --program-pre | --program-pr | --program-p)
1068    ac_prev=program_prefix ;;
1069  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1070  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1071    program_prefix=$ac_optarg ;;
1072
1073  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1074  | --program-suf | --program-su | --program-s)
1075    ac_prev=program_suffix ;;
1076  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1077  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1078    program_suffix=$ac_optarg ;;
1079
1080  -program-transform-name | --program-transform-name \
1081  | --program-transform-nam | --program-transform-na \
1082  | --program-transform-n | --program-transform- \
1083  | --program-transform | --program-transfor \
1084  | --program-transfo | --program-transf \
1085  | --program-trans | --program-tran \
1086  | --progr-tra | --program-tr | --program-t)
1087    ac_prev=program_transform_name ;;
1088  -program-transform-name=* | --program-transform-name=* \
1089  | --program-transform-nam=* | --program-transform-na=* \
1090  | --program-transform-n=* | --program-transform-=* \
1091  | --program-transform=* | --program-transfor=* \
1092  | --program-transfo=* | --program-transf=* \
1093  | --program-trans=* | --program-tran=* \
1094  | --progr-tra=* | --program-tr=* | --program-t=*)
1095    program_transform_name=$ac_optarg ;;
1096
1097  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1098    ac_prev=pdfdir ;;
1099  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1100    pdfdir=$ac_optarg ;;
1101
1102  -psdir | --psdir | --psdi | --psd | --ps)
1103    ac_prev=psdir ;;
1104  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1105    psdir=$ac_optarg ;;
1106
1107  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1108  | -silent | --silent | --silen | --sile | --sil)
1109    silent=yes ;;
1110
1111  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1112    ac_prev=sbindir ;;
1113  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1114  | --sbi=* | --sb=*)
1115    sbindir=$ac_optarg ;;
1116
1117  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1118  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1119  | --sharedst | --shareds | --shared | --share | --shar \
1120  | --sha | --sh)
1121    ac_prev=sharedstatedir ;;
1122  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1123  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1124  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1125  | --sha=* | --sh=*)
1126    sharedstatedir=$ac_optarg ;;
1127
1128  -site | --site | --sit)
1129    ac_prev=site ;;
1130  -site=* | --site=* | --sit=*)
1131    site=$ac_optarg ;;
1132
1133  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1134    ac_prev=srcdir ;;
1135  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1136    srcdir=$ac_optarg ;;
1137
1138  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1139  | --syscon | --sysco | --sysc | --sys | --sy)
1140    ac_prev=sysconfdir ;;
1141  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1142  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1143    sysconfdir=$ac_optarg ;;
1144
1145  -target | --target | --targe | --targ | --tar | --ta | --t)
1146    ac_prev=target_alias ;;
1147  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1148    target_alias=$ac_optarg ;;
1149
1150  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1151    verbose=yes ;;
1152
1153  -version | --version | --versio | --versi | --vers | -V)
1154    ac_init_version=: ;;
1155
1156  -with-* | --with-*)
1157    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1158    # Reject names that are not valid shell variable names.
1159    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160      as_fn_error $? "invalid package name: $ac_useropt"
1161    ac_useropt_orig=$ac_useropt
1162    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163    case $ac_user_opts in
1164      *"
1165"with_$ac_useropt"
1166"*) ;;
1167      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1168	 ac_unrecognized_sep=', ';;
1169    esac
1170    eval with_$ac_useropt=\$ac_optarg ;;
1171
1172  -without-* | --without-*)
1173    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1174    # Reject names that are not valid shell variable names.
1175    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176      as_fn_error $? "invalid package name: $ac_useropt"
1177    ac_useropt_orig=$ac_useropt
1178    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179    case $ac_user_opts in
1180      *"
1181"with_$ac_useropt"
1182"*) ;;
1183      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1184	 ac_unrecognized_sep=', ';;
1185    esac
1186    eval with_$ac_useropt=no ;;
1187
1188  --x)
1189    # Obsolete; use --with-x.
1190    with_x=yes ;;
1191
1192  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1193  | --x-incl | --x-inc | --x-in | --x-i)
1194    ac_prev=x_includes ;;
1195  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1196  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1197    x_includes=$ac_optarg ;;
1198
1199  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1200  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1201    ac_prev=x_libraries ;;
1202  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1203  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1204    x_libraries=$ac_optarg ;;
1205
1206  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1207Try \`$0 --help' for more information"
1208    ;;
1209
1210  *=*)
1211    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1212    # Reject names that are not valid shell variable names.
1213    case $ac_envvar in #(
1214      '' | [0-9]* | *[!_$as_cr_alnum]* )
1215      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1216    esac
1217    eval $ac_envvar=\$ac_optarg
1218    export $ac_envvar ;;
1219
1220  *)
1221    # FIXME: should be removed in autoconf 3.0.
1222    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1223    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1225    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1226    ;;
1227
1228  esac
1229done
1230
1231if test -n "$ac_prev"; then
1232  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1233  as_fn_error $? "missing argument to $ac_option"
1234fi
1235
1236if test -n "$ac_unrecognized_opts"; then
1237  case $enable_option_checking in
1238    no) ;;
1239    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1240    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1241  esac
1242fi
1243
1244# Check all directory arguments for consistency.
1245for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1246		datadir sysconfdir sharedstatedir localstatedir includedir \
1247		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1248		libdir localedir mandir
1249do
1250  eval ac_val=\$$ac_var
1251  # Remove trailing slashes.
1252  case $ac_val in
1253    */ )
1254      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1255      eval $ac_var=\$ac_val;;
1256  esac
1257  # Be sure to have absolute directory names.
1258  case $ac_val in
1259    [\\/$]* | ?:[\\/]* )  continue;;
1260    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1261  esac
1262  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1263done
1264
1265# There might be people who depend on the old broken behavior: `$host'
1266# used to hold the argument of --host etc.
1267# FIXME: To remove some day.
1268build=$build_alias
1269host=$host_alias
1270target=$target_alias
1271
1272# FIXME: To remove some day.
1273if test "x$host_alias" != x; then
1274  if test "x$build_alias" = x; then
1275    cross_compiling=maybe
1276  elif test "x$build_alias" != "x$host_alias"; then
1277    cross_compiling=yes
1278  fi
1279fi
1280
1281ac_tool_prefix=
1282test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283
1284test "$silent" = yes && exec 6>/dev/null
1285
1286
1287ac_pwd=`pwd` && test -n "$ac_pwd" &&
1288ac_ls_di=`ls -di .` &&
1289ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1290  as_fn_error $? "working directory cannot be determined"
1291test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1292  as_fn_error $? "pwd does not report name of working directory"
1293
1294
1295# Find the source files, if location was not specified.
1296if test -z "$srcdir"; then
1297  ac_srcdir_defaulted=yes
1298  # Try the directory containing this script, then the parent directory.
1299  ac_confdir=`$as_dirname -- "$as_myself" ||
1300$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1301	 X"$as_myself" : 'X\(//\)[^/]' \| \
1302	 X"$as_myself" : 'X\(//\)$' \| \
1303	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1304$as_echo X"$as_myself" |
1305    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1306	    s//\1/
1307	    q
1308	  }
1309	  /^X\(\/\/\)[^/].*/{
1310	    s//\1/
1311	    q
1312	  }
1313	  /^X\(\/\/\)$/{
1314	    s//\1/
1315	    q
1316	  }
1317	  /^X\(\/\).*/{
1318	    s//\1/
1319	    q
1320	  }
1321	  s/.*/./; q'`
1322  srcdir=$ac_confdir
1323  if test ! -r "$srcdir/$ac_unique_file"; then
1324    srcdir=..
1325  fi
1326else
1327  ac_srcdir_defaulted=no
1328fi
1329if test ! -r "$srcdir/$ac_unique_file"; then
1330  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1331  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1332fi
1333ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1334ac_abs_confdir=`(
1335	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1336	pwd)`
1337# When building in place, set srcdir=.
1338if test "$ac_abs_confdir" = "$ac_pwd"; then
1339  srcdir=.
1340fi
1341# Remove unnecessary trailing slashes from srcdir.
1342# Double slashes in file names in object file debugging info
1343# mess up M-x gdb in Emacs.
1344case $srcdir in
1345*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1346esac
1347for ac_var in $ac_precious_vars; do
1348  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1349  eval ac_env_${ac_var}_value=\$${ac_var}
1350  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1351  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1352done
1353
1354#
1355# Report the --help message.
1356#
1357if test "$ac_init_help" = "long"; then
1358  # Omit some internal or obsolete options to make the list less imposing.
1359  # This message is too long to be a string in the A/UX 3.1 sh.
1360  cat <<_ACEOF
1361\`configure' configures libevdev 1.10.0 to adapt to many kinds of systems.
1362
1363Usage: $0 [OPTION]... [VAR=VALUE]...
1364
1365To assign environment variables (e.g., CC, CFLAGS...), specify them as
1366VAR=VALUE.  See below for descriptions of some of the useful variables.
1367
1368Defaults for the options are specified in brackets.
1369
1370Configuration:
1371  -h, --help              display this help and exit
1372      --help=short        display options specific to this package
1373      --help=recursive    display the short help of all the included packages
1374  -V, --version           display version information and exit
1375  -q, --quiet, --silent   do not print \`checking ...' messages
1376      --cache-file=FILE   cache test results in FILE [disabled]
1377  -C, --config-cache      alias for \`--cache-file=config.cache'
1378  -n, --no-create         do not create output files
1379      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1380
1381Installation directories:
1382  --prefix=PREFIX         install architecture-independent files in PREFIX
1383                          [$ac_default_prefix]
1384  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1385                          [PREFIX]
1386
1387By default, \`make install' will install all the files in
1388\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1389an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1390for instance \`--prefix=\$HOME'.
1391
1392For better control, use the options below.
1393
1394Fine tuning of the installation directories:
1395  --bindir=DIR            user executables [EPREFIX/bin]
1396  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1397  --libexecdir=DIR        program executables [EPREFIX/libexec]
1398  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1399  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1400  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1401  --libdir=DIR            object code libraries [EPREFIX/lib]
1402  --includedir=DIR        C header files [PREFIX/include]
1403  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1404  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1405  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1406  --infodir=DIR           info documentation [DATAROOTDIR/info]
1407  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1408  --mandir=DIR            man documentation [DATAROOTDIR/man]
1409  --docdir=DIR            documentation root [DATAROOTDIR/doc/libevdev]
1410  --htmldir=DIR           html documentation [DOCDIR]
1411  --dvidir=DIR            dvi documentation [DOCDIR]
1412  --pdfdir=DIR            pdf documentation [DOCDIR]
1413  --psdir=DIR             ps documentation [DOCDIR]
1414_ACEOF
1415
1416  cat <<\_ACEOF
1417
1418Program names:
1419  --program-prefix=PREFIX            prepend PREFIX to installed program names
1420  --program-suffix=SUFFIX            append SUFFIX to installed program names
1421  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1422
1423System types:
1424  --build=BUILD     configure for building on BUILD [guessed]
1425  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1426_ACEOF
1427fi
1428
1429if test -n "$ac_init_help"; then
1430  case $ac_init_help in
1431     short | recursive ) echo "Configuration of libevdev 1.10.0:";;
1432   esac
1433  cat <<\_ACEOF
1434
1435Optional Features:
1436  --disable-option-checking  ignore unrecognized --enable/--with options
1437  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1438  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1439  --enable-dependency-tracking
1440                          do not reject slow dependency extractors
1441  --disable-dependency-tracking
1442                          speeds up one-time build
1443  --enable-silent-rules   less verbose build output (undo: "make V=1")
1444  --disable-silent-rules  verbose build output (undo: "make V=0")
1445  --enable-shared[=PKGS]  build shared libraries [default=yes]
1446  --enable-static[=PKGS]  build static libraries [default=yes]
1447  --enable-fast-install[=PKGS]
1448                          optimize for fast installation [default=yes]
1449  --disable-libtool-lock  avoid locking (might break parallel builds)
1450  --enable-gcov           Whether to enable coverage testing
1451                          (default:disabled)
1452  --enable-coverity       Whether to build with coverity support (default:
1453                          disabled)
1454
1455Optional Packages:
1456  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1457  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1458  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1459                          both]
1460  --with-aix-soname=aix|svr4|both
1461                          shared library versioning (aka "SONAME") variant to
1462                          provide on AIX, [default=aix].
1463  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1464  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1465                          compiler's sysroot if not specified).
1466
1467Some influential environment variables:
1468  CC          C compiler command
1469  CFLAGS      C compiler flags
1470  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1471              nonstandard directory <lib dir>
1472  LIBS        libraries to pass to the linker, e.g. -l<library>
1473  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1474              you have headers in a nonstandard directory <include dir>
1475  CPP         C preprocessor
1476  LT_SYS_LIBRARY_PATH
1477              User-defined run-time library search path.
1478  PKG_CONFIG  path to pkg-config utility
1479  PKG_CONFIG_PATH
1480              directories to add to pkg-config's search path
1481  PKG_CONFIG_LIBDIR
1482              path overriding pkg-config's built-in search path
1483  CHECK_CFLAGS
1484              C compiler flags for CHECK, overriding pkg-config
1485  CHECK_LIBS  linker flags for CHECK, overriding pkg-config
1486  PYTHON      the Python interpreter
1487
1488Use these variables to override the choices made by `configure' or to help
1489it to find libraries and programs with nonstandard names/locations.
1490
1491Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=libevdev>.
1492libevdev home page: <http://freedesktop.org/wiki/Software/libevdev/>.
1493_ACEOF
1494ac_status=$?
1495fi
1496
1497if test "$ac_init_help" = "recursive"; then
1498  # If there are subdirs, report their specific --help.
1499  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500    test -d "$ac_dir" ||
1501      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1502      continue
1503    ac_builddir=.
1504
1505case "$ac_dir" in
1506.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507*)
1508  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1509  # A ".." for each directory in $ac_dir_suffix.
1510  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1511  case $ac_top_builddir_sub in
1512  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514  esac ;;
1515esac
1516ac_abs_top_builddir=$ac_pwd
1517ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518# for backward compatibility:
1519ac_top_builddir=$ac_top_build_prefix
1520
1521case $srcdir in
1522  .)  # We are building in place.
1523    ac_srcdir=.
1524    ac_top_srcdir=$ac_top_builddir_sub
1525    ac_abs_top_srcdir=$ac_pwd ;;
1526  [\\/]* | ?:[\\/]* )  # Absolute name.
1527    ac_srcdir=$srcdir$ac_dir_suffix;
1528    ac_top_srcdir=$srcdir
1529    ac_abs_top_srcdir=$srcdir ;;
1530  *) # Relative name.
1531    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532    ac_top_srcdir=$ac_top_build_prefix$srcdir
1533    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534esac
1535ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536
1537    cd "$ac_dir" || { ac_status=$?; continue; }
1538    # Check for guested configure.
1539    if test -f "$ac_srcdir/configure.gnu"; then
1540      echo &&
1541      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542    elif test -f "$ac_srcdir/configure"; then
1543      echo &&
1544      $SHELL "$ac_srcdir/configure" --help=recursive
1545    else
1546      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1547    fi || ac_status=$?
1548    cd "$ac_pwd" || { ac_status=$?; break; }
1549  done
1550fi
1551
1552test -n "$ac_init_help" && exit $ac_status
1553if $ac_init_version; then
1554  cat <<\_ACEOF
1555libevdev configure 1.10.0
1556generated by GNU Autoconf 2.69
1557
1558Copyright (C) 2012 Free Software Foundation, Inc.
1559This configure script is free software; the Free Software Foundation
1560gives unlimited permission to copy, distribute and modify it.
1561_ACEOF
1562  exit
1563fi
1564
1565## ------------------------ ##
1566## Autoconf initialization. ##
1567## ------------------------ ##
1568
1569# ac_fn_c_try_compile LINENO
1570# --------------------------
1571# Try to compile conftest.$ac_ext, and return whether this succeeded.
1572ac_fn_c_try_compile ()
1573{
1574  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575  rm -f conftest.$ac_objext
1576  if { { ac_try="$ac_compile"
1577case "(($ac_try" in
1578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579  *) ac_try_echo=$ac_try;;
1580esac
1581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582$as_echo "$ac_try_echo"; } >&5
1583  (eval "$ac_compile") 2>conftest.err
1584  ac_status=$?
1585  if test -s conftest.err; then
1586    grep -v '^ *+' conftest.err >conftest.er1
1587    cat conftest.er1 >&5
1588    mv -f conftest.er1 conftest.err
1589  fi
1590  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591  test $ac_status = 0; } && {
1592	 test -z "$ac_c_werror_flag" ||
1593	 test ! -s conftest.err
1594       } && test -s conftest.$ac_objext; then :
1595  ac_retval=0
1596else
1597  $as_echo "$as_me: failed program was:" >&5
1598sed 's/^/| /' conftest.$ac_ext >&5
1599
1600	ac_retval=1
1601fi
1602  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603  as_fn_set_status $ac_retval
1604
1605} # ac_fn_c_try_compile
1606
1607# ac_fn_c_try_cpp LINENO
1608# ----------------------
1609# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1610ac_fn_c_try_cpp ()
1611{
1612  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613  if { { ac_try="$ac_cpp conftest.$ac_ext"
1614case "(($ac_try" in
1615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616  *) ac_try_echo=$ac_try;;
1617esac
1618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619$as_echo "$ac_try_echo"; } >&5
1620  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1621  ac_status=$?
1622  if test -s conftest.err; then
1623    grep -v '^ *+' conftest.err >conftest.er1
1624    cat conftest.er1 >&5
1625    mv -f conftest.er1 conftest.err
1626  fi
1627  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628  test $ac_status = 0; } > conftest.i && {
1629	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1630	 test ! -s conftest.err
1631       }; then :
1632  ac_retval=0
1633else
1634  $as_echo "$as_me: failed program was:" >&5
1635sed 's/^/| /' conftest.$ac_ext >&5
1636
1637    ac_retval=1
1638fi
1639  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640  as_fn_set_status $ac_retval
1641
1642} # ac_fn_c_try_cpp
1643
1644# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1645# -------------------------------------------------------
1646# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1647# the include files in INCLUDES and setting the cache variable VAR
1648# accordingly.
1649ac_fn_c_check_header_mongrel ()
1650{
1651  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652  if eval \${$3+:} false; then :
1653  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1654$as_echo_n "checking for $2... " >&6; }
1655if eval \${$3+:} false; then :
1656  $as_echo_n "(cached) " >&6
1657fi
1658eval ac_res=\$$3
1659	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1660$as_echo "$ac_res" >&6; }
1661else
1662  # Is the header compilable?
1663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1664$as_echo_n "checking $2 usability... " >&6; }
1665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666/* end confdefs.h.  */
1667$4
1668#include <$2>
1669_ACEOF
1670if ac_fn_c_try_compile "$LINENO"; then :
1671  ac_header_compiler=yes
1672else
1673  ac_header_compiler=no
1674fi
1675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1677$as_echo "$ac_header_compiler" >&6; }
1678
1679# Is the header present?
1680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1681$as_echo_n "checking $2 presence... " >&6; }
1682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683/* end confdefs.h.  */
1684#include <$2>
1685_ACEOF
1686if ac_fn_c_try_cpp "$LINENO"; then :
1687  ac_header_preproc=yes
1688else
1689  ac_header_preproc=no
1690fi
1691rm -f conftest.err conftest.i conftest.$ac_ext
1692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1693$as_echo "$ac_header_preproc" >&6; }
1694
1695# So?  What about this header?
1696case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1697  yes:no: )
1698    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1699$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1700    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1701$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1702    ;;
1703  no:yes:* )
1704    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1705$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1706    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1707$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1708    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1709$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1710    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1711$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1712    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1713$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1714( $as_echo "## -------------------------------------------------------------------------- ##
1715## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=libevdev ##
1716## -------------------------------------------------------------------------- ##"
1717     ) | sed "s/^/$as_me: WARNING:     /" >&2
1718    ;;
1719esac
1720  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721$as_echo_n "checking for $2... " >&6; }
1722if eval \${$3+:} false; then :
1723  $as_echo_n "(cached) " >&6
1724else
1725  eval "$3=\$ac_header_compiler"
1726fi
1727eval ac_res=\$$3
1728	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729$as_echo "$ac_res" >&6; }
1730fi
1731  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732
1733} # ac_fn_c_check_header_mongrel
1734
1735# ac_fn_c_try_run LINENO
1736# ----------------------
1737# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1738# that executables *can* be run.
1739ac_fn_c_try_run ()
1740{
1741  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742  if { { ac_try="$ac_link"
1743case "(($ac_try" in
1744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745  *) ac_try_echo=$ac_try;;
1746esac
1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748$as_echo "$ac_try_echo"; } >&5
1749  (eval "$ac_link") 2>&5
1750  ac_status=$?
1751  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1753  { { case "(($ac_try" in
1754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755  *) ac_try_echo=$ac_try;;
1756esac
1757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758$as_echo "$ac_try_echo"; } >&5
1759  (eval "$ac_try") 2>&5
1760  ac_status=$?
1761  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762  test $ac_status = 0; }; }; then :
1763  ac_retval=0
1764else
1765  $as_echo "$as_me: program exited with status $ac_status" >&5
1766       $as_echo "$as_me: failed program was:" >&5
1767sed 's/^/| /' conftest.$ac_ext >&5
1768
1769       ac_retval=$ac_status
1770fi
1771  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773  as_fn_set_status $ac_retval
1774
1775} # ac_fn_c_try_run
1776
1777# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1778# -------------------------------------------------------
1779# Tests whether HEADER exists and can be compiled using the include files in
1780# INCLUDES, setting the cache variable VAR accordingly.
1781ac_fn_c_check_header_compile ()
1782{
1783  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785$as_echo_n "checking for $2... " >&6; }
1786if eval \${$3+:} false; then :
1787  $as_echo_n "(cached) " >&6
1788else
1789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790/* end confdefs.h.  */
1791$4
1792#include <$2>
1793_ACEOF
1794if ac_fn_c_try_compile "$LINENO"; then :
1795  eval "$3=yes"
1796else
1797  eval "$3=no"
1798fi
1799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800fi
1801eval ac_res=\$$3
1802	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803$as_echo "$ac_res" >&6; }
1804  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805
1806} # ac_fn_c_check_header_compile
1807
1808# ac_fn_c_try_link LINENO
1809# -----------------------
1810# Try to link conftest.$ac_ext, and return whether this succeeded.
1811ac_fn_c_try_link ()
1812{
1813  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814  rm -f conftest.$ac_objext conftest$ac_exeext
1815  if { { ac_try="$ac_link"
1816case "(($ac_try" in
1817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818  *) ac_try_echo=$ac_try;;
1819esac
1820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821$as_echo "$ac_try_echo"; } >&5
1822  (eval "$ac_link") 2>conftest.err
1823  ac_status=$?
1824  if test -s conftest.err; then
1825    grep -v '^ *+' conftest.err >conftest.er1
1826    cat conftest.er1 >&5
1827    mv -f conftest.er1 conftest.err
1828  fi
1829  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830  test $ac_status = 0; } && {
1831	 test -z "$ac_c_werror_flag" ||
1832	 test ! -s conftest.err
1833       } && test -s conftest$ac_exeext && {
1834	 test "$cross_compiling" = yes ||
1835	 test -x conftest$ac_exeext
1836       }; then :
1837  ac_retval=0
1838else
1839  $as_echo "$as_me: failed program was:" >&5
1840sed 's/^/| /' conftest.$ac_ext >&5
1841
1842	ac_retval=1
1843fi
1844  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1845  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1846  # interfere with the next link command; also delete a directory that is
1847  # left behind by Apple's compiler.  We do this before executing the actions.
1848  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850  as_fn_set_status $ac_retval
1851
1852} # ac_fn_c_try_link
1853
1854# ac_fn_c_check_func LINENO FUNC VAR
1855# ----------------------------------
1856# Tests whether FUNC exists, setting the cache variable VAR accordingly
1857ac_fn_c_check_func ()
1858{
1859  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861$as_echo_n "checking for $2... " >&6; }
1862if eval \${$3+:} false; then :
1863  $as_echo_n "(cached) " >&6
1864else
1865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866/* end confdefs.h.  */
1867/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1868   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1869#define $2 innocuous_$2
1870
1871/* System header to define __stub macros and hopefully few prototypes,
1872    which can conflict with char $2 (); below.
1873    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1874    <limits.h> exists even on freestanding compilers.  */
1875
1876#ifdef __STDC__
1877# include <limits.h>
1878#else
1879# include <assert.h>
1880#endif
1881
1882#undef $2
1883
1884/* Override any GCC internal prototype to avoid an error.
1885   Use char because int might match the return type of a GCC
1886   builtin and then its argument prototype would still apply.  */
1887#ifdef __cplusplus
1888extern "C"
1889#endif
1890char $2 ();
1891/* The GNU C library defines this for functions which it implements
1892    to always fail with ENOSYS.  Some functions are actually named
1893    something starting with __ and the normal name is an alias.  */
1894#if defined __stub_$2 || defined __stub___$2
1895choke me
1896#endif
1897
1898int
1899main ()
1900{
1901return $2 ();
1902  ;
1903  return 0;
1904}
1905_ACEOF
1906if ac_fn_c_try_link "$LINENO"; then :
1907  eval "$3=yes"
1908else
1909  eval "$3=no"
1910fi
1911rm -f core conftest.err conftest.$ac_objext \
1912    conftest$ac_exeext conftest.$ac_ext
1913fi
1914eval ac_res=\$$3
1915	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916$as_echo "$ac_res" >&6; }
1917  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918
1919} # ac_fn_c_check_func
1920cat >config.log <<_ACEOF
1921This file contains any messages produced by compilers while
1922running configure, to aid debugging if configure makes a mistake.
1923
1924It was created by libevdev $as_me 1.10.0, which was
1925generated by GNU Autoconf 2.69.  Invocation command line was
1926
1927  $ $0 $@
1928
1929_ACEOF
1930exec 5>>config.log
1931{
1932cat <<_ASUNAME
1933## --------- ##
1934## Platform. ##
1935## --------- ##
1936
1937hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1938uname -m = `(uname -m) 2>/dev/null || echo unknown`
1939uname -r = `(uname -r) 2>/dev/null || echo unknown`
1940uname -s = `(uname -s) 2>/dev/null || echo unknown`
1941uname -v = `(uname -v) 2>/dev/null || echo unknown`
1942
1943/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1944/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1945
1946/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1947/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1948/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1949/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1950/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1951/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1952/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1953
1954_ASUNAME
1955
1956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957for as_dir in $PATH
1958do
1959  IFS=$as_save_IFS
1960  test -z "$as_dir" && as_dir=.
1961    $as_echo "PATH: $as_dir"
1962  done
1963IFS=$as_save_IFS
1964
1965} >&5
1966
1967cat >&5 <<_ACEOF
1968
1969
1970## ----------- ##
1971## Core tests. ##
1972## ----------- ##
1973
1974_ACEOF
1975
1976
1977# Keep a trace of the command line.
1978# Strip out --no-create and --no-recursion so they do not pile up.
1979# Strip out --silent because we don't want to record it for future runs.
1980# Also quote any args containing shell meta-characters.
1981# Make two passes to allow for proper duplicate-argument suppression.
1982ac_configure_args=
1983ac_configure_args0=
1984ac_configure_args1=
1985ac_must_keep_next=false
1986for ac_pass in 1 2
1987do
1988  for ac_arg
1989  do
1990    case $ac_arg in
1991    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1992    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1993    | -silent | --silent | --silen | --sile | --sil)
1994      continue ;;
1995    *\'*)
1996      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1997    esac
1998    case $ac_pass in
1999    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2000    2)
2001      as_fn_append ac_configure_args1 " '$ac_arg'"
2002      if test $ac_must_keep_next = true; then
2003	ac_must_keep_next=false # Got value, back to normal.
2004      else
2005	case $ac_arg in
2006	  *=* | --config-cache | -C | -disable-* | --disable-* \
2007	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2008	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2009	  | -with-* | --with-* | -without-* | --without-* | --x)
2010	    case "$ac_configure_args0 " in
2011	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2012	    esac
2013	    ;;
2014	  -* ) ac_must_keep_next=true ;;
2015	esac
2016      fi
2017      as_fn_append ac_configure_args " '$ac_arg'"
2018      ;;
2019    esac
2020  done
2021done
2022{ ac_configure_args0=; unset ac_configure_args0;}
2023{ ac_configure_args1=; unset ac_configure_args1;}
2024
2025# When interrupted or exit'd, cleanup temporary files, and complete
2026# config.log.  We remove comments because anyway the quotes in there
2027# would cause problems or look ugly.
2028# WARNING: Use '\'' to represent an apostrophe within the trap.
2029# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2030trap 'exit_status=$?
2031  # Save into config.log some information that might help in debugging.
2032  {
2033    echo
2034
2035    $as_echo "## ---------------- ##
2036## Cache variables. ##
2037## ---------------- ##"
2038    echo
2039    # The following way of writing the cache mishandles newlines in values,
2040(
2041  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2042    eval ac_val=\$$ac_var
2043    case $ac_val in #(
2044    *${as_nl}*)
2045      case $ac_var in #(
2046      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2047$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2048      esac
2049      case $ac_var in #(
2050      _ | IFS | as_nl) ;; #(
2051      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2052      *) { eval $ac_var=; unset $ac_var;} ;;
2053      esac ;;
2054    esac
2055  done
2056  (set) 2>&1 |
2057    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2058    *${as_nl}ac_space=\ *)
2059      sed -n \
2060	"s/'\''/'\''\\\\'\'''\''/g;
2061	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2062      ;; #(
2063    *)
2064      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2065      ;;
2066    esac |
2067    sort
2068)
2069    echo
2070
2071    $as_echo "## ----------------- ##
2072## Output variables. ##
2073## ----------------- ##"
2074    echo
2075    for ac_var in $ac_subst_vars
2076    do
2077      eval ac_val=\$$ac_var
2078      case $ac_val in
2079      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2080      esac
2081      $as_echo "$ac_var='\''$ac_val'\''"
2082    done | sort
2083    echo
2084
2085    if test -n "$ac_subst_files"; then
2086      $as_echo "## ------------------- ##
2087## File substitutions. ##
2088## ------------------- ##"
2089      echo
2090      for ac_var in $ac_subst_files
2091      do
2092	eval ac_val=\$$ac_var
2093	case $ac_val in
2094	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2095	esac
2096	$as_echo "$ac_var='\''$ac_val'\''"
2097      done | sort
2098      echo
2099    fi
2100
2101    if test -s confdefs.h; then
2102      $as_echo "## ----------- ##
2103## confdefs.h. ##
2104## ----------- ##"
2105      echo
2106      cat confdefs.h
2107      echo
2108    fi
2109    test "$ac_signal" != 0 &&
2110      $as_echo "$as_me: caught signal $ac_signal"
2111    $as_echo "$as_me: exit $exit_status"
2112  } >&5
2113  rm -f core *.core core.conftest.* &&
2114    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2115    exit $exit_status
2116' 0
2117for ac_signal in 1 2 13 15; do
2118  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2119done
2120ac_signal=0
2121
2122# confdefs.h avoids OS command line length limits that DEFS can exceed.
2123rm -f -r conftest* confdefs.h
2124
2125$as_echo "/* confdefs.h */" > confdefs.h
2126
2127# Predefined preprocessor variables.
2128
2129cat >>confdefs.h <<_ACEOF
2130#define PACKAGE_NAME "$PACKAGE_NAME"
2131_ACEOF
2132
2133cat >>confdefs.h <<_ACEOF
2134#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2135_ACEOF
2136
2137cat >>confdefs.h <<_ACEOF
2138#define PACKAGE_VERSION "$PACKAGE_VERSION"
2139_ACEOF
2140
2141cat >>confdefs.h <<_ACEOF
2142#define PACKAGE_STRING "$PACKAGE_STRING"
2143_ACEOF
2144
2145cat >>confdefs.h <<_ACEOF
2146#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2147_ACEOF
2148
2149cat >>confdefs.h <<_ACEOF
2150#define PACKAGE_URL "$PACKAGE_URL"
2151_ACEOF
2152
2153
2154# Let the site file select an alternate cache file if it wants to.
2155# Prefer an explicitly selected file to automatically selected ones.
2156ac_site_file1=NONE
2157ac_site_file2=NONE
2158if test -n "$CONFIG_SITE"; then
2159  # We do not want a PATH search for config.site.
2160  case $CONFIG_SITE in #((
2161    -*)  ac_site_file1=./$CONFIG_SITE;;
2162    */*) ac_site_file1=$CONFIG_SITE;;
2163    *)   ac_site_file1=./$CONFIG_SITE;;
2164  esac
2165elif test "x$prefix" != xNONE; then
2166  ac_site_file1=$prefix/share/config.site
2167  ac_site_file2=$prefix/etc/config.site
2168else
2169  ac_site_file1=$ac_default_prefix/share/config.site
2170  ac_site_file2=$ac_default_prefix/etc/config.site
2171fi
2172for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2173do
2174  test "x$ac_site_file" = xNONE && continue
2175  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2176    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2177$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2178    sed 's/^/| /' "$ac_site_file" >&5
2179    . "$ac_site_file" \
2180      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2182as_fn_error $? "failed to load site script $ac_site_file
2183See \`config.log' for more details" "$LINENO" 5; }
2184  fi
2185done
2186
2187if test -r "$cache_file"; then
2188  # Some versions of bash will fail to source /dev/null (special files
2189  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2190  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2191    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2192$as_echo "$as_me: loading cache $cache_file" >&6;}
2193    case $cache_file in
2194      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2195      *)                      . "./$cache_file";;
2196    esac
2197  fi
2198else
2199  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2200$as_echo "$as_me: creating cache $cache_file" >&6;}
2201  >$cache_file
2202fi
2203
2204# Check that the precious variables saved in the cache have kept the same
2205# value.
2206ac_cache_corrupted=false
2207for ac_var in $ac_precious_vars; do
2208  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2209  eval ac_new_set=\$ac_env_${ac_var}_set
2210  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2211  eval ac_new_val=\$ac_env_${ac_var}_value
2212  case $ac_old_set,$ac_new_set in
2213    set,)
2214      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2215$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2216      ac_cache_corrupted=: ;;
2217    ,set)
2218      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2219$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2220      ac_cache_corrupted=: ;;
2221    ,);;
2222    *)
2223      if test "x$ac_old_val" != "x$ac_new_val"; then
2224	# differences in whitespace do not lead to failure.
2225	ac_old_val_w=`echo x $ac_old_val`
2226	ac_new_val_w=`echo x $ac_new_val`
2227	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2228	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2229$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2230	  ac_cache_corrupted=:
2231	else
2232	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2233$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2234	  eval $ac_var=\$ac_old_val
2235	fi
2236	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2237$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2238	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2239$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2240      fi;;
2241  esac
2242  # Pass precious variables to config.status.
2243  if test "$ac_new_set" = set; then
2244    case $ac_new_val in
2245    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2246    *) ac_arg=$ac_var=$ac_new_val ;;
2247    esac
2248    case " $ac_configure_args " in
2249      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2250      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2251    esac
2252  fi
2253done
2254if $ac_cache_corrupted; then
2255  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2257  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2258$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2259  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2260fi
2261## -------------------- ##
2262## Main body of script. ##
2263## -------------------- ##
2264
2265ac_ext=c
2266ac_cpp='$CPP $CPPFLAGS'
2267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2269ac_compiler_gnu=$ac_cv_c_compiler_gnu
2270
2271
2272
2273
2274ac_config_headers="$ac_config_headers config.h"
2275
2276
2277ac_aux_dir=
2278for ac_dir in build-aux "$srcdir"/build-aux; do
2279  if test -f "$ac_dir/install-sh"; then
2280    ac_aux_dir=$ac_dir
2281    ac_install_sh="$ac_aux_dir/install-sh -c"
2282    break
2283  elif test -f "$ac_dir/install.sh"; then
2284    ac_aux_dir=$ac_dir
2285    ac_install_sh="$ac_aux_dir/install.sh -c"
2286    break
2287  elif test -f "$ac_dir/shtool"; then
2288    ac_aux_dir=$ac_dir
2289    ac_install_sh="$ac_aux_dir/shtool install -c"
2290    break
2291  fi
2292done
2293if test -z "$ac_aux_dir"; then
2294  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2295fi
2296
2297# These three variables are undocumented and unsupported,
2298# and are intended to be withdrawn in a future Autoconf release.
2299# They can cause serious problems if a builder's source tree is in a directory
2300# whose full name contains unusual characters.
2301ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2302ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2303ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2304
2305
2306# Expand $ac_aux_dir to an absolute path.
2307am_aux_dir=`cd "$ac_aux_dir" && pwd`
2308
2309ac_ext=c
2310ac_cpp='$CPP $CPPFLAGS'
2311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2313ac_compiler_gnu=$ac_cv_c_compiler_gnu
2314if test -n "$ac_tool_prefix"; then
2315  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2316set dummy ${ac_tool_prefix}gcc; ac_word=$2
2317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2318$as_echo_n "checking for $ac_word... " >&6; }
2319if ${ac_cv_prog_CC+:} false; then :
2320  $as_echo_n "(cached) " >&6
2321else
2322  if test -n "$CC"; then
2323  ac_cv_prog_CC="$CC" # Let the user override the test.
2324else
2325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326for as_dir in $PATH
2327do
2328  IFS=$as_save_IFS
2329  test -z "$as_dir" && as_dir=.
2330    for ac_exec_ext in '' $ac_executable_extensions; do
2331  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2332    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2333    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2334    break 2
2335  fi
2336done
2337  done
2338IFS=$as_save_IFS
2339
2340fi
2341fi
2342CC=$ac_cv_prog_CC
2343if test -n "$CC"; then
2344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2345$as_echo "$CC" >&6; }
2346else
2347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2348$as_echo "no" >&6; }
2349fi
2350
2351
2352fi
2353if test -z "$ac_cv_prog_CC"; then
2354  ac_ct_CC=$CC
2355  # Extract the first word of "gcc", so it can be a program name with args.
2356set dummy gcc; ac_word=$2
2357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2358$as_echo_n "checking for $ac_word... " >&6; }
2359if ${ac_cv_prog_ac_ct_CC+:} false; then :
2360  $as_echo_n "(cached) " >&6
2361else
2362  if test -n "$ac_ct_CC"; then
2363  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2364else
2365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366for as_dir in $PATH
2367do
2368  IFS=$as_save_IFS
2369  test -z "$as_dir" && as_dir=.
2370    for ac_exec_ext in '' $ac_executable_extensions; do
2371  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2372    ac_cv_prog_ac_ct_CC="gcc"
2373    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2374    break 2
2375  fi
2376done
2377  done
2378IFS=$as_save_IFS
2379
2380fi
2381fi
2382ac_ct_CC=$ac_cv_prog_ac_ct_CC
2383if test -n "$ac_ct_CC"; then
2384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2385$as_echo "$ac_ct_CC" >&6; }
2386else
2387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2388$as_echo "no" >&6; }
2389fi
2390
2391  if test "x$ac_ct_CC" = x; then
2392    CC=""
2393  else
2394    case $cross_compiling:$ac_tool_warned in
2395yes:)
2396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2398ac_tool_warned=yes ;;
2399esac
2400    CC=$ac_ct_CC
2401  fi
2402else
2403  CC="$ac_cv_prog_CC"
2404fi
2405
2406if test -z "$CC"; then
2407          if test -n "$ac_tool_prefix"; then
2408    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2409set dummy ${ac_tool_prefix}cc; ac_word=$2
2410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2411$as_echo_n "checking for $ac_word... " >&6; }
2412if ${ac_cv_prog_CC+:} false; then :
2413  $as_echo_n "(cached) " >&6
2414else
2415  if test -n "$CC"; then
2416  ac_cv_prog_CC="$CC" # Let the user override the test.
2417else
2418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419for as_dir in $PATH
2420do
2421  IFS=$as_save_IFS
2422  test -z "$as_dir" && as_dir=.
2423    for ac_exec_ext in '' $ac_executable_extensions; do
2424  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2425    ac_cv_prog_CC="${ac_tool_prefix}cc"
2426    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2427    break 2
2428  fi
2429done
2430  done
2431IFS=$as_save_IFS
2432
2433fi
2434fi
2435CC=$ac_cv_prog_CC
2436if test -n "$CC"; then
2437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2438$as_echo "$CC" >&6; }
2439else
2440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2441$as_echo "no" >&6; }
2442fi
2443
2444
2445  fi
2446fi
2447if test -z "$CC"; then
2448  # Extract the first word of "cc", so it can be a program name with args.
2449set dummy cc; ac_word=$2
2450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2451$as_echo_n "checking for $ac_word... " >&6; }
2452if ${ac_cv_prog_CC+:} false; then :
2453  $as_echo_n "(cached) " >&6
2454else
2455  if test -n "$CC"; then
2456  ac_cv_prog_CC="$CC" # Let the user override the test.
2457else
2458  ac_prog_rejected=no
2459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460for as_dir in $PATH
2461do
2462  IFS=$as_save_IFS
2463  test -z "$as_dir" && as_dir=.
2464    for ac_exec_ext in '' $ac_executable_extensions; do
2465  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2466    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2467       ac_prog_rejected=yes
2468       continue
2469     fi
2470    ac_cv_prog_CC="cc"
2471    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2472    break 2
2473  fi
2474done
2475  done
2476IFS=$as_save_IFS
2477
2478if test $ac_prog_rejected = yes; then
2479  # We found a bogon in the path, so make sure we never use it.
2480  set dummy $ac_cv_prog_CC
2481  shift
2482  if test $# != 0; then
2483    # We chose a different compiler from the bogus one.
2484    # However, it has the same basename, so the bogon will be chosen
2485    # first if we set CC to just the basename; use the full file name.
2486    shift
2487    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2488  fi
2489fi
2490fi
2491fi
2492CC=$ac_cv_prog_CC
2493if test -n "$CC"; then
2494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2495$as_echo "$CC" >&6; }
2496else
2497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2498$as_echo "no" >&6; }
2499fi
2500
2501
2502fi
2503if test -z "$CC"; then
2504  if test -n "$ac_tool_prefix"; then
2505  for ac_prog in cl.exe
2506  do
2507    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2508set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2510$as_echo_n "checking for $ac_word... " >&6; }
2511if ${ac_cv_prog_CC+:} false; then :
2512  $as_echo_n "(cached) " >&6
2513else
2514  if test -n "$CC"; then
2515  ac_cv_prog_CC="$CC" # Let the user override the test.
2516else
2517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518for as_dir in $PATH
2519do
2520  IFS=$as_save_IFS
2521  test -z "$as_dir" && as_dir=.
2522    for ac_exec_ext in '' $ac_executable_extensions; do
2523  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2524    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2525    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2526    break 2
2527  fi
2528done
2529  done
2530IFS=$as_save_IFS
2531
2532fi
2533fi
2534CC=$ac_cv_prog_CC
2535if test -n "$CC"; then
2536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2537$as_echo "$CC" >&6; }
2538else
2539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2540$as_echo "no" >&6; }
2541fi
2542
2543
2544    test -n "$CC" && break
2545  done
2546fi
2547if test -z "$CC"; then
2548  ac_ct_CC=$CC
2549  for ac_prog in cl.exe
2550do
2551  # Extract the first word of "$ac_prog", so it can be a program name with args.
2552set dummy $ac_prog; ac_word=$2
2553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2554$as_echo_n "checking for $ac_word... " >&6; }
2555if ${ac_cv_prog_ac_ct_CC+:} false; then :
2556  $as_echo_n "(cached) " >&6
2557else
2558  if test -n "$ac_ct_CC"; then
2559  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2560else
2561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562for as_dir in $PATH
2563do
2564  IFS=$as_save_IFS
2565  test -z "$as_dir" && as_dir=.
2566    for ac_exec_ext in '' $ac_executable_extensions; do
2567  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2568    ac_cv_prog_ac_ct_CC="$ac_prog"
2569    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2570    break 2
2571  fi
2572done
2573  done
2574IFS=$as_save_IFS
2575
2576fi
2577fi
2578ac_ct_CC=$ac_cv_prog_ac_ct_CC
2579if test -n "$ac_ct_CC"; then
2580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2581$as_echo "$ac_ct_CC" >&6; }
2582else
2583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2584$as_echo "no" >&6; }
2585fi
2586
2587
2588  test -n "$ac_ct_CC" && break
2589done
2590
2591  if test "x$ac_ct_CC" = x; then
2592    CC=""
2593  else
2594    case $cross_compiling:$ac_tool_warned in
2595yes:)
2596{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2597$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2598ac_tool_warned=yes ;;
2599esac
2600    CC=$ac_ct_CC
2601  fi
2602fi
2603
2604fi
2605
2606
2607test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2609as_fn_error $? "no acceptable C compiler found in \$PATH
2610See \`config.log' for more details" "$LINENO" 5; }
2611
2612# Provide some information about the compiler.
2613$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2614set X $ac_compile
2615ac_compiler=$2
2616for ac_option in --version -v -V -qversion; do
2617  { { ac_try="$ac_compiler $ac_option >&5"
2618case "(($ac_try" in
2619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620  *) ac_try_echo=$ac_try;;
2621esac
2622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2623$as_echo "$ac_try_echo"; } >&5
2624  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2625  ac_status=$?
2626  if test -s conftest.err; then
2627    sed '10a\
2628... rest of stderr output deleted ...
2629         10q' conftest.err >conftest.er1
2630    cat conftest.er1 >&5
2631  fi
2632  rm -f conftest.er1 conftest.err
2633  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2634  test $ac_status = 0; }
2635done
2636
2637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2638/* end confdefs.h.  */
2639
2640int
2641main ()
2642{
2643
2644  ;
2645  return 0;
2646}
2647_ACEOF
2648ac_clean_files_save=$ac_clean_files
2649ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2650# Try to create an executable without -o first, disregard a.out.
2651# It will help us diagnose broken compilers, and finding out an intuition
2652# of exeext.
2653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2654$as_echo_n "checking whether the C compiler works... " >&6; }
2655ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2656
2657# The possible output files:
2658ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2659
2660ac_rmfiles=
2661for ac_file in $ac_files
2662do
2663  case $ac_file in
2664    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2665    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2666  esac
2667done
2668rm -f $ac_rmfiles
2669
2670if { { ac_try="$ac_link_default"
2671case "(($ac_try" in
2672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2673  *) ac_try_echo=$ac_try;;
2674esac
2675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2676$as_echo "$ac_try_echo"; } >&5
2677  (eval "$ac_link_default") 2>&5
2678  ac_status=$?
2679  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2680  test $ac_status = 0; }; then :
2681  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2682# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2683# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2684# so that the user can short-circuit this test for compilers unknown to
2685# Autoconf.
2686for ac_file in $ac_files ''
2687do
2688  test -f "$ac_file" || continue
2689  case $ac_file in
2690    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2691	;;
2692    [ab].out )
2693	# We found the default executable, but exeext='' is most
2694	# certainly right.
2695	break;;
2696    *.* )
2697	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2698	then :; else
2699	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2700	fi
2701	# We set ac_cv_exeext here because the later test for it is not
2702	# safe: cross compilers may not add the suffix if given an `-o'
2703	# argument, so we may need to know it at that point already.
2704	# Even if this section looks crufty: it has the advantage of
2705	# actually working.
2706	break;;
2707    * )
2708	break;;
2709  esac
2710done
2711test "$ac_cv_exeext" = no && ac_cv_exeext=
2712
2713else
2714  ac_file=''
2715fi
2716if test -z "$ac_file"; then :
2717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718$as_echo "no" >&6; }
2719$as_echo "$as_me: failed program was:" >&5
2720sed 's/^/| /' conftest.$ac_ext >&5
2721
2722{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2723$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2724as_fn_error 77 "C compiler cannot create executables
2725See \`config.log' for more details" "$LINENO" 5; }
2726else
2727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2728$as_echo "yes" >&6; }
2729fi
2730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2731$as_echo_n "checking for C compiler default output file name... " >&6; }
2732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2733$as_echo "$ac_file" >&6; }
2734ac_exeext=$ac_cv_exeext
2735
2736rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2737ac_clean_files=$ac_clean_files_save
2738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2739$as_echo_n "checking for suffix of executables... " >&6; }
2740if { { ac_try="$ac_link"
2741case "(($ac_try" in
2742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743  *) ac_try_echo=$ac_try;;
2744esac
2745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2746$as_echo "$ac_try_echo"; } >&5
2747  (eval "$ac_link") 2>&5
2748  ac_status=$?
2749  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2750  test $ac_status = 0; }; then :
2751  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2752# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2753# work properly (i.e., refer to `conftest.exe'), while it won't with
2754# `rm'.
2755for ac_file in conftest.exe conftest conftest.*; do
2756  test -f "$ac_file" || continue
2757  case $ac_file in
2758    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2759    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2760	  break;;
2761    * ) break;;
2762  esac
2763done
2764else
2765  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2767as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2768See \`config.log' for more details" "$LINENO" 5; }
2769fi
2770rm -f conftest conftest$ac_cv_exeext
2771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2772$as_echo "$ac_cv_exeext" >&6; }
2773
2774rm -f conftest.$ac_ext
2775EXEEXT=$ac_cv_exeext
2776ac_exeext=$EXEEXT
2777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2778/* end confdefs.h.  */
2779#include <stdio.h>
2780int
2781main ()
2782{
2783FILE *f = fopen ("conftest.out", "w");
2784 return ferror (f) || fclose (f) != 0;
2785
2786  ;
2787  return 0;
2788}
2789_ACEOF
2790ac_clean_files="$ac_clean_files conftest.out"
2791# Check that the compiler produces executables we can run.  If not, either
2792# the compiler is broken, or we cross compile.
2793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2794$as_echo_n "checking whether we are cross compiling... " >&6; }
2795if test "$cross_compiling" != yes; then
2796  { { ac_try="$ac_link"
2797case "(($ac_try" in
2798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799  *) ac_try_echo=$ac_try;;
2800esac
2801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2802$as_echo "$ac_try_echo"; } >&5
2803  (eval "$ac_link") 2>&5
2804  ac_status=$?
2805  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2806  test $ac_status = 0; }
2807  if { ac_try='./conftest$ac_cv_exeext'
2808  { { case "(($ac_try" in
2809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810  *) ac_try_echo=$ac_try;;
2811esac
2812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2813$as_echo "$ac_try_echo"; } >&5
2814  (eval "$ac_try") 2>&5
2815  ac_status=$?
2816  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2817  test $ac_status = 0; }; }; then
2818    cross_compiling=no
2819  else
2820    if test "$cross_compiling" = maybe; then
2821	cross_compiling=yes
2822    else
2823	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2824$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2825as_fn_error $? "cannot run C compiled programs.
2826If you meant to cross compile, use \`--host'.
2827See \`config.log' for more details" "$LINENO" 5; }
2828    fi
2829  fi
2830fi
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2832$as_echo "$cross_compiling" >&6; }
2833
2834rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2835ac_clean_files=$ac_clean_files_save
2836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2837$as_echo_n "checking for suffix of object files... " >&6; }
2838if ${ac_cv_objext+:} false; then :
2839  $as_echo_n "(cached) " >&6
2840else
2841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2842/* end confdefs.h.  */
2843
2844int
2845main ()
2846{
2847
2848  ;
2849  return 0;
2850}
2851_ACEOF
2852rm -f conftest.o conftest.obj
2853if { { ac_try="$ac_compile"
2854case "(($ac_try" in
2855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2856  *) ac_try_echo=$ac_try;;
2857esac
2858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2859$as_echo "$ac_try_echo"; } >&5
2860  (eval "$ac_compile") 2>&5
2861  ac_status=$?
2862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2863  test $ac_status = 0; }; then :
2864  for ac_file in conftest.o conftest.obj conftest.*; do
2865  test -f "$ac_file" || continue;
2866  case $ac_file in
2867    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2868    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2869       break;;
2870  esac
2871done
2872else
2873  $as_echo "$as_me: failed program was:" >&5
2874sed 's/^/| /' conftest.$ac_ext >&5
2875
2876{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2877$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2878as_fn_error $? "cannot compute suffix of object files: cannot compile
2879See \`config.log' for more details" "$LINENO" 5; }
2880fi
2881rm -f conftest.$ac_cv_objext conftest.$ac_ext
2882fi
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2884$as_echo "$ac_cv_objext" >&6; }
2885OBJEXT=$ac_cv_objext
2886ac_objext=$OBJEXT
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2888$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2889if ${ac_cv_c_compiler_gnu+:} false; then :
2890  $as_echo_n "(cached) " >&6
2891else
2892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2893/* end confdefs.h.  */
2894
2895int
2896main ()
2897{
2898#ifndef __GNUC__
2899       choke me
2900#endif
2901
2902  ;
2903  return 0;
2904}
2905_ACEOF
2906if ac_fn_c_try_compile "$LINENO"; then :
2907  ac_compiler_gnu=yes
2908else
2909  ac_compiler_gnu=no
2910fi
2911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912ac_cv_c_compiler_gnu=$ac_compiler_gnu
2913
2914fi
2915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2916$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2917if test $ac_compiler_gnu = yes; then
2918  GCC=yes
2919else
2920  GCC=
2921fi
2922ac_test_CFLAGS=${CFLAGS+set}
2923ac_save_CFLAGS=$CFLAGS
2924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2925$as_echo_n "checking whether $CC accepts -g... " >&6; }
2926if ${ac_cv_prog_cc_g+:} false; then :
2927  $as_echo_n "(cached) " >&6
2928else
2929  ac_save_c_werror_flag=$ac_c_werror_flag
2930   ac_c_werror_flag=yes
2931   ac_cv_prog_cc_g=no
2932   CFLAGS="-g"
2933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2934/* end confdefs.h.  */
2935
2936int
2937main ()
2938{
2939
2940  ;
2941  return 0;
2942}
2943_ACEOF
2944if ac_fn_c_try_compile "$LINENO"; then :
2945  ac_cv_prog_cc_g=yes
2946else
2947  CFLAGS=""
2948      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2949/* end confdefs.h.  */
2950
2951int
2952main ()
2953{
2954
2955  ;
2956  return 0;
2957}
2958_ACEOF
2959if ac_fn_c_try_compile "$LINENO"; then :
2960
2961else
2962  ac_c_werror_flag=$ac_save_c_werror_flag
2963	 CFLAGS="-g"
2964	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2965/* end confdefs.h.  */
2966
2967int
2968main ()
2969{
2970
2971  ;
2972  return 0;
2973}
2974_ACEOF
2975if ac_fn_c_try_compile "$LINENO"; then :
2976  ac_cv_prog_cc_g=yes
2977fi
2978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2979fi
2980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2981fi
2982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2983   ac_c_werror_flag=$ac_save_c_werror_flag
2984fi
2985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2986$as_echo "$ac_cv_prog_cc_g" >&6; }
2987if test "$ac_test_CFLAGS" = set; then
2988  CFLAGS=$ac_save_CFLAGS
2989elif test $ac_cv_prog_cc_g = yes; then
2990  if test "$GCC" = yes; then
2991    CFLAGS="-g -O2"
2992  else
2993    CFLAGS="-g"
2994  fi
2995else
2996  if test "$GCC" = yes; then
2997    CFLAGS="-O2"
2998  else
2999    CFLAGS=
3000  fi
3001fi
3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3003$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3004if ${ac_cv_prog_cc_c89+:} false; then :
3005  $as_echo_n "(cached) " >&6
3006else
3007  ac_cv_prog_cc_c89=no
3008ac_save_CC=$CC
3009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3010/* end confdefs.h.  */
3011#include <stdarg.h>
3012#include <stdio.h>
3013struct stat;
3014/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3015struct buf { int x; };
3016FILE * (*rcsopen) (struct buf *, struct stat *, int);
3017static char *e (p, i)
3018     char **p;
3019     int i;
3020{
3021  return p[i];
3022}
3023static char *f (char * (*g) (char **, int), char **p, ...)
3024{
3025  char *s;
3026  va_list v;
3027  va_start (v,p);
3028  s = g (p, va_arg (v,int));
3029  va_end (v);
3030  return s;
3031}
3032
3033/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3034   function prototypes and stuff, but not '\xHH' hex character constants.
3035   These don't provoke an error unfortunately, instead are silently treated
3036   as 'x'.  The following induces an error, until -std is added to get
3037   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3038   array size at least.  It's necessary to write '\x00'==0 to get something
3039   that's true only with -std.  */
3040int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3041
3042/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3043   inside strings and character constants.  */
3044#define FOO(x) 'x'
3045int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3046
3047int test (int i, double x);
3048struct s1 {int (*f) (int a);};
3049struct s2 {int (*f) (double a);};
3050int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3051int argc;
3052char **argv;
3053int
3054main ()
3055{
3056return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3057  ;
3058  return 0;
3059}
3060_ACEOF
3061for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3062	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3063do
3064  CC="$ac_save_CC $ac_arg"
3065  if ac_fn_c_try_compile "$LINENO"; then :
3066  ac_cv_prog_cc_c89=$ac_arg
3067fi
3068rm -f core conftest.err conftest.$ac_objext
3069  test "x$ac_cv_prog_cc_c89" != "xno" && break
3070done
3071rm -f conftest.$ac_ext
3072CC=$ac_save_CC
3073
3074fi
3075# AC_CACHE_VAL
3076case "x$ac_cv_prog_cc_c89" in
3077  x)
3078    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3079$as_echo "none needed" >&6; } ;;
3080  xno)
3081    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3082$as_echo "unsupported" >&6; } ;;
3083  *)
3084    CC="$CC $ac_cv_prog_cc_c89"
3085    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3086$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3087esac
3088if test "x$ac_cv_prog_cc_c89" != xno; then :
3089
3090fi
3091
3092ac_ext=c
3093ac_cpp='$CPP $CPPFLAGS'
3094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3096ac_compiler_gnu=$ac_cv_c_compiler_gnu
3097
3098ac_ext=c
3099ac_cpp='$CPP $CPPFLAGS'
3100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3102ac_compiler_gnu=$ac_cv_c_compiler_gnu
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3104$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3105if ${am_cv_prog_cc_c_o+:} false; then :
3106  $as_echo_n "(cached) " >&6
3107else
3108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109/* end confdefs.h.  */
3110
3111int
3112main ()
3113{
3114
3115  ;
3116  return 0;
3117}
3118_ACEOF
3119  # Make sure it works both with $CC and with simple cc.
3120  # Following AC_PROG_CC_C_O, we do the test twice because some
3121  # compilers refuse to overwrite an existing .o file with -o,
3122  # though they will create one.
3123  am_cv_prog_cc_c_o=yes
3124  for am_i in 1 2; do
3125    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3126   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3127   ac_status=$?
3128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129   (exit $ac_status); } \
3130         && test -f conftest2.$ac_objext; then
3131      : OK
3132    else
3133      am_cv_prog_cc_c_o=no
3134      break
3135    fi
3136  done
3137  rm -f core conftest*
3138  unset am_i
3139fi
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3141$as_echo "$am_cv_prog_cc_c_o" >&6; }
3142if test "$am_cv_prog_cc_c_o" != yes; then
3143   # Losing compiler, so override with the script.
3144   # FIXME: It is wrong to rewrite CC.
3145   # But if we don't then we get into trouble of one sort or another.
3146   # A longer-term fix would be to have automake use am__CC in this case,
3147   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3148   CC="$am_aux_dir/compile $CC"
3149fi
3150ac_ext=c
3151ac_cpp='$CPP $CPPFLAGS'
3152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3154ac_compiler_gnu=$ac_cv_c_compiler_gnu
3155
3156
3157
3158ac_ext=c
3159ac_cpp='$CPP $CPPFLAGS'
3160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3162ac_compiler_gnu=$ac_cv_c_compiler_gnu
3163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3164$as_echo_n "checking how to run the C preprocessor... " >&6; }
3165# On Suns, sometimes $CPP names a directory.
3166if test -n "$CPP" && test -d "$CPP"; then
3167  CPP=
3168fi
3169if test -z "$CPP"; then
3170  if ${ac_cv_prog_CPP+:} false; then :
3171  $as_echo_n "(cached) " >&6
3172else
3173      # Double quotes because CPP needs to be expanded
3174    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3175    do
3176      ac_preproc_ok=false
3177for ac_c_preproc_warn_flag in '' yes
3178do
3179  # Use a header file that comes with gcc, so configuring glibc
3180  # with a fresh cross-compiler works.
3181  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3182  # <limits.h> exists even on freestanding compilers.
3183  # On the NeXT, cc -E runs the code through the compiler's parser,
3184  # not just through cpp. "Syntax error" is here to catch this case.
3185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3186/* end confdefs.h.  */
3187#ifdef __STDC__
3188# include <limits.h>
3189#else
3190# include <assert.h>
3191#endif
3192		     Syntax error
3193_ACEOF
3194if ac_fn_c_try_cpp "$LINENO"; then :
3195
3196else
3197  # Broken: fails on valid input.
3198continue
3199fi
3200rm -f conftest.err conftest.i conftest.$ac_ext
3201
3202  # OK, works on sane cases.  Now check whether nonexistent headers
3203  # can be detected and how.
3204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3205/* end confdefs.h.  */
3206#include <ac_nonexistent.h>
3207_ACEOF
3208if ac_fn_c_try_cpp "$LINENO"; then :
3209  # Broken: success on invalid input.
3210continue
3211else
3212  # Passes both tests.
3213ac_preproc_ok=:
3214break
3215fi
3216rm -f conftest.err conftest.i conftest.$ac_ext
3217
3218done
3219# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3220rm -f conftest.i conftest.err conftest.$ac_ext
3221if $ac_preproc_ok; then :
3222  break
3223fi
3224
3225    done
3226    ac_cv_prog_CPP=$CPP
3227
3228fi
3229  CPP=$ac_cv_prog_CPP
3230else
3231  ac_cv_prog_CPP=$CPP
3232fi
3233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3234$as_echo "$CPP" >&6; }
3235ac_preproc_ok=false
3236for ac_c_preproc_warn_flag in '' yes
3237do
3238  # Use a header file that comes with gcc, so configuring glibc
3239  # with a fresh cross-compiler works.
3240  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3241  # <limits.h> exists even on freestanding compilers.
3242  # On the NeXT, cc -E runs the code through the compiler's parser,
3243  # not just through cpp. "Syntax error" is here to catch this case.
3244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245/* end confdefs.h.  */
3246#ifdef __STDC__
3247# include <limits.h>
3248#else
3249# include <assert.h>
3250#endif
3251		     Syntax error
3252_ACEOF
3253if ac_fn_c_try_cpp "$LINENO"; then :
3254
3255else
3256  # Broken: fails on valid input.
3257continue
3258fi
3259rm -f conftest.err conftest.i conftest.$ac_ext
3260
3261  # OK, works on sane cases.  Now check whether nonexistent headers
3262  # can be detected and how.
3263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264/* end confdefs.h.  */
3265#include <ac_nonexistent.h>
3266_ACEOF
3267if ac_fn_c_try_cpp "$LINENO"; then :
3268  # Broken: success on invalid input.
3269continue
3270else
3271  # Passes both tests.
3272ac_preproc_ok=:
3273break
3274fi
3275rm -f conftest.err conftest.i conftest.$ac_ext
3276
3277done
3278# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3279rm -f conftest.i conftest.err conftest.$ac_ext
3280if $ac_preproc_ok; then :
3281
3282else
3283  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3284$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3285as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3286See \`config.log' for more details" "$LINENO" 5; }
3287fi
3288
3289ac_ext=c
3290ac_cpp='$CPP $CPPFLAGS'
3291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294
3295
3296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3297$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3298if ${ac_cv_path_GREP+:} false; then :
3299  $as_echo_n "(cached) " >&6
3300else
3301  if test -z "$GREP"; then
3302  ac_path_GREP_found=false
3303  # Loop through the user's path and test for each of PROGNAME-LIST
3304  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3306do
3307  IFS=$as_save_IFS
3308  test -z "$as_dir" && as_dir=.
3309    for ac_prog in grep ggrep; do
3310    for ac_exec_ext in '' $ac_executable_extensions; do
3311      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3312      as_fn_executable_p "$ac_path_GREP" || continue
3313# Check for GNU ac_path_GREP and select it if it is found.
3314  # Check for GNU $ac_path_GREP
3315case `"$ac_path_GREP" --version 2>&1` in
3316*GNU*)
3317  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3318*)
3319  ac_count=0
3320  $as_echo_n 0123456789 >"conftest.in"
3321  while :
3322  do
3323    cat "conftest.in" "conftest.in" >"conftest.tmp"
3324    mv "conftest.tmp" "conftest.in"
3325    cp "conftest.in" "conftest.nl"
3326    $as_echo 'GREP' >> "conftest.nl"
3327    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3328    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3329    as_fn_arith $ac_count + 1 && ac_count=$as_val
3330    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3331      # Best one so far, save it but keep looking for a better one
3332      ac_cv_path_GREP="$ac_path_GREP"
3333      ac_path_GREP_max=$ac_count
3334    fi
3335    # 10*(2^10) chars as input seems more than enough
3336    test $ac_count -gt 10 && break
3337  done
3338  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3339esac
3340
3341      $ac_path_GREP_found && break 3
3342    done
3343  done
3344  done
3345IFS=$as_save_IFS
3346  if test -z "$ac_cv_path_GREP"; then
3347    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3348  fi
3349else
3350  ac_cv_path_GREP=$GREP
3351fi
3352
3353fi
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3355$as_echo "$ac_cv_path_GREP" >&6; }
3356 GREP="$ac_cv_path_GREP"
3357
3358
3359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3360$as_echo_n "checking for egrep... " >&6; }
3361if ${ac_cv_path_EGREP+:} false; then :
3362  $as_echo_n "(cached) " >&6
3363else
3364  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3365   then ac_cv_path_EGREP="$GREP -E"
3366   else
3367     if test -z "$EGREP"; then
3368  ac_path_EGREP_found=false
3369  # Loop through the user's path and test for each of PROGNAME-LIST
3370  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3372do
3373  IFS=$as_save_IFS
3374  test -z "$as_dir" && as_dir=.
3375    for ac_prog in egrep; do
3376    for ac_exec_ext in '' $ac_executable_extensions; do
3377      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3378      as_fn_executable_p "$ac_path_EGREP" || continue
3379# Check for GNU ac_path_EGREP and select it if it is found.
3380  # Check for GNU $ac_path_EGREP
3381case `"$ac_path_EGREP" --version 2>&1` in
3382*GNU*)
3383  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3384*)
3385  ac_count=0
3386  $as_echo_n 0123456789 >"conftest.in"
3387  while :
3388  do
3389    cat "conftest.in" "conftest.in" >"conftest.tmp"
3390    mv "conftest.tmp" "conftest.in"
3391    cp "conftest.in" "conftest.nl"
3392    $as_echo 'EGREP' >> "conftest.nl"
3393    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3394    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3395    as_fn_arith $ac_count + 1 && ac_count=$as_val
3396    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3397      # Best one so far, save it but keep looking for a better one
3398      ac_cv_path_EGREP="$ac_path_EGREP"
3399      ac_path_EGREP_max=$ac_count
3400    fi
3401    # 10*(2^10) chars as input seems more than enough
3402    test $ac_count -gt 10 && break
3403  done
3404  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3405esac
3406
3407      $ac_path_EGREP_found && break 3
3408    done
3409  done
3410  done
3411IFS=$as_save_IFS
3412  if test -z "$ac_cv_path_EGREP"; then
3413    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3414  fi
3415else
3416  ac_cv_path_EGREP=$EGREP
3417fi
3418
3419   fi
3420fi
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3422$as_echo "$ac_cv_path_EGREP" >&6; }
3423 EGREP="$ac_cv_path_EGREP"
3424
3425
3426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3427$as_echo_n "checking for ANSI C header files... " >&6; }
3428if ${ac_cv_header_stdc+:} false; then :
3429  $as_echo_n "(cached) " >&6
3430else
3431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432/* end confdefs.h.  */
3433#include <stdlib.h>
3434#include <stdarg.h>
3435#include <string.h>
3436#include <float.h>
3437
3438int
3439main ()
3440{
3441
3442  ;
3443  return 0;
3444}
3445_ACEOF
3446if ac_fn_c_try_compile "$LINENO"; then :
3447  ac_cv_header_stdc=yes
3448else
3449  ac_cv_header_stdc=no
3450fi
3451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452
3453if test $ac_cv_header_stdc = yes; then
3454  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456/* end confdefs.h.  */
3457#include <string.h>
3458
3459_ACEOF
3460if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3461  $EGREP "memchr" >/dev/null 2>&1; then :
3462
3463else
3464  ac_cv_header_stdc=no
3465fi
3466rm -f conftest*
3467
3468fi
3469
3470if test $ac_cv_header_stdc = yes; then
3471  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473/* end confdefs.h.  */
3474#include <stdlib.h>
3475
3476_ACEOF
3477if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3478  $EGREP "free" >/dev/null 2>&1; then :
3479
3480else
3481  ac_cv_header_stdc=no
3482fi
3483rm -f conftest*
3484
3485fi
3486
3487if test $ac_cv_header_stdc = yes; then
3488  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3489  if test "$cross_compiling" = yes; then :
3490  :
3491else
3492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493/* end confdefs.h.  */
3494#include <ctype.h>
3495#include <stdlib.h>
3496#if ((' ' & 0x0FF) == 0x020)
3497# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3498# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3499#else
3500# define ISLOWER(c) \
3501		   (('a' <= (c) && (c) <= 'i') \
3502		     || ('j' <= (c) && (c) <= 'r') \
3503		     || ('s' <= (c) && (c) <= 'z'))
3504# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3505#endif
3506
3507#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3508int
3509main ()
3510{
3511  int i;
3512  for (i = 0; i < 256; i++)
3513    if (XOR (islower (i), ISLOWER (i))
3514	|| toupper (i) != TOUPPER (i))
3515      return 2;
3516  return 0;
3517}
3518_ACEOF
3519if ac_fn_c_try_run "$LINENO"; then :
3520
3521else
3522  ac_cv_header_stdc=no
3523fi
3524rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3525  conftest.$ac_objext conftest.beam conftest.$ac_ext
3526fi
3527
3528fi
3529fi
3530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3531$as_echo "$ac_cv_header_stdc" >&6; }
3532if test $ac_cv_header_stdc = yes; then
3533
3534$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3535
3536fi
3537
3538# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3539for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3540		  inttypes.h stdint.h unistd.h
3541do :
3542  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3543ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3544"
3545if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3546  cat >>confdefs.h <<_ACEOF
3547#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3548_ACEOF
3549
3550fi
3551
3552done
3553
3554
3555
3556  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3557if test "x$ac_cv_header_minix_config_h" = xyes; then :
3558  MINIX=yes
3559else
3560  MINIX=
3561fi
3562
3563
3564  if test "$MINIX" = yes; then
3565
3566$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3567
3568
3569$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3570
3571
3572$as_echo "#define _MINIX 1" >>confdefs.h
3573
3574  fi
3575
3576
3577  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3578$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3579if ${ac_cv_safe_to_define___extensions__+:} false; then :
3580  $as_echo_n "(cached) " >&6
3581else
3582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583/* end confdefs.h.  */
3584
3585#         define __EXTENSIONS__ 1
3586          $ac_includes_default
3587int
3588main ()
3589{
3590
3591  ;
3592  return 0;
3593}
3594_ACEOF
3595if ac_fn_c_try_compile "$LINENO"; then :
3596  ac_cv_safe_to_define___extensions__=yes
3597else
3598  ac_cv_safe_to_define___extensions__=no
3599fi
3600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601fi
3602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3603$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3604  test $ac_cv_safe_to_define___extensions__ = yes &&
3605    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3606
3607  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3608
3609  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3610
3611  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3612
3613  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3614
3615
3616
3617am__api_version='1.16'
3618
3619# Find a good install program.  We prefer a C program (faster),
3620# so one script is as good as another.  But avoid the broken or
3621# incompatible versions:
3622# SysV /etc/install, /usr/sbin/install
3623# SunOS /usr/etc/install
3624# IRIX /sbin/install
3625# AIX /bin/install
3626# AmigaOS /C/install, which installs bootblocks on floppy discs
3627# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3628# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3629# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3630# OS/2's system install, which has a completely different semantic
3631# ./install, which can be erroneously created by make from ./install.sh.
3632# Reject install programs that cannot install multiple files.
3633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3634$as_echo_n "checking for a BSD-compatible install... " >&6; }
3635if test -z "$INSTALL"; then
3636if ${ac_cv_path_install+:} false; then :
3637  $as_echo_n "(cached) " >&6
3638else
3639  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640for as_dir in $PATH
3641do
3642  IFS=$as_save_IFS
3643  test -z "$as_dir" && as_dir=.
3644    # Account for people who put trailing slashes in PATH elements.
3645case $as_dir/ in #((
3646  ./ | .// | /[cC]/* | \
3647  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3648  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3649  /usr/ucb/* ) ;;
3650  *)
3651    # OSF1 and SCO ODT 3.0 have their own names for install.
3652    # Don't use installbsd from OSF since it installs stuff as root
3653    # by default.
3654    for ac_prog in ginstall scoinst install; do
3655      for ac_exec_ext in '' $ac_executable_extensions; do
3656	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3657	  if test $ac_prog = install &&
3658	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3659	    # AIX install.  It has an incompatible calling convention.
3660	    :
3661	  elif test $ac_prog = install &&
3662	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3663	    # program-specific install script used by HP pwplus--don't use.
3664	    :
3665	  else
3666	    rm -rf conftest.one conftest.two conftest.dir
3667	    echo one > conftest.one
3668	    echo two > conftest.two
3669	    mkdir conftest.dir
3670	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3671	      test -s conftest.one && test -s conftest.two &&
3672	      test -s conftest.dir/conftest.one &&
3673	      test -s conftest.dir/conftest.two
3674	    then
3675	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3676	      break 3
3677	    fi
3678	  fi
3679	fi
3680      done
3681    done
3682    ;;
3683esac
3684
3685  done
3686IFS=$as_save_IFS
3687
3688rm -rf conftest.one conftest.two conftest.dir
3689
3690fi
3691  if test "${ac_cv_path_install+set}" = set; then
3692    INSTALL=$ac_cv_path_install
3693  else
3694    # As a last resort, use the slow shell script.  Don't cache a
3695    # value for INSTALL within a source directory, because that will
3696    # break other packages using the cache if that directory is
3697    # removed, or if the value is a relative name.
3698    INSTALL=$ac_install_sh
3699  fi
3700fi
3701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3702$as_echo "$INSTALL" >&6; }
3703
3704# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3705# It thinks the first close brace ends the variable substitution.
3706test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3707
3708test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3709
3710test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3711
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3713$as_echo_n "checking whether build environment is sane... " >&6; }
3714# Reject unsafe characters in $srcdir or the absolute working directory
3715# name.  Accept space and tab only in the latter.
3716am_lf='
3717'
3718case `pwd` in
3719  *[\\\"\#\$\&\'\`$am_lf]*)
3720    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3721esac
3722case $srcdir in
3723  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3724    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3725esac
3726
3727# Do 'set' in a subshell so we don't clobber the current shell's
3728# arguments.  Must try -L first in case configure is actually a
3729# symlink; some systems play weird games with the mod time of symlinks
3730# (eg FreeBSD returns the mod time of the symlink's containing
3731# directory).
3732if (
3733   am_has_slept=no
3734   for am_try in 1 2; do
3735     echo "timestamp, slept: $am_has_slept" > conftest.file
3736     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3737     if test "$*" = "X"; then
3738	# -L didn't work.
3739	set X `ls -t "$srcdir/configure" conftest.file`
3740     fi
3741     if test "$*" != "X $srcdir/configure conftest.file" \
3742	&& test "$*" != "X conftest.file $srcdir/configure"; then
3743
3744	# If neither matched, then we have a broken ls.  This can happen
3745	# if, for instance, CONFIG_SHELL is bash and it inherits a
3746	# broken ls alias from the environment.  This has actually
3747	# happened.  Such a system could not be considered "sane".
3748	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3749  alias in your environment" "$LINENO" 5
3750     fi
3751     if test "$2" = conftest.file || test $am_try -eq 2; then
3752       break
3753     fi
3754     # Just in case.
3755     sleep 1
3756     am_has_slept=yes
3757   done
3758   test "$2" = conftest.file
3759   )
3760then
3761   # Ok.
3762   :
3763else
3764   as_fn_error $? "newly created file is older than distributed files!
3765Check your system clock" "$LINENO" 5
3766fi
3767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3768$as_echo "yes" >&6; }
3769# If we didn't sleep, we still need to ensure time stamps of config.status and
3770# generated files are strictly newer.
3771am_sleep_pid=
3772if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3773  ( sleep 1 ) &
3774  am_sleep_pid=$!
3775fi
3776
3777rm -f conftest.file
3778
3779test "$program_prefix" != NONE &&
3780  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3781# Use a double $ so make ignores it.
3782test "$program_suffix" != NONE &&
3783  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3784# Double any \ or $.
3785# By default was `s,x,x', remove it if useless.
3786ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3787program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3788
3789if test x"${MISSING+set}" != xset; then
3790  case $am_aux_dir in
3791  *\ * | *\	*)
3792    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3793  *)
3794    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3795  esac
3796fi
3797# Use eval to expand $SHELL
3798if eval "$MISSING --is-lightweight"; then
3799  am_missing_run="$MISSING "
3800else
3801  am_missing_run=
3802  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3803$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3804fi
3805
3806if test x"${install_sh+set}" != xset; then
3807  case $am_aux_dir in
3808  *\ * | *\	*)
3809    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3810  *)
3811    install_sh="\${SHELL} $am_aux_dir/install-sh"
3812  esac
3813fi
3814
3815# Installed binaries are usually stripped using 'strip' when the user
3816# run "make install-strip".  However 'strip' might not be the right
3817# tool to use in cross-compilation environments, therefore Automake
3818# will honor the 'STRIP' environment variable to overrule this program.
3819if test "$cross_compiling" != no; then
3820  if test -n "$ac_tool_prefix"; then
3821  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3822set dummy ${ac_tool_prefix}strip; ac_word=$2
3823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3824$as_echo_n "checking for $ac_word... " >&6; }
3825if ${ac_cv_prog_STRIP+:} false; then :
3826  $as_echo_n "(cached) " >&6
3827else
3828  if test -n "$STRIP"; then
3829  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3830else
3831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832for as_dir in $PATH
3833do
3834  IFS=$as_save_IFS
3835  test -z "$as_dir" && as_dir=.
3836    for ac_exec_ext in '' $ac_executable_extensions; do
3837  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3838    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3839    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3840    break 2
3841  fi
3842done
3843  done
3844IFS=$as_save_IFS
3845
3846fi
3847fi
3848STRIP=$ac_cv_prog_STRIP
3849if test -n "$STRIP"; then
3850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3851$as_echo "$STRIP" >&6; }
3852else
3853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3854$as_echo "no" >&6; }
3855fi
3856
3857
3858fi
3859if test -z "$ac_cv_prog_STRIP"; then
3860  ac_ct_STRIP=$STRIP
3861  # Extract the first word of "strip", so it can be a program name with args.
3862set dummy strip; ac_word=$2
3863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3864$as_echo_n "checking for $ac_word... " >&6; }
3865if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3866  $as_echo_n "(cached) " >&6
3867else
3868  if test -n "$ac_ct_STRIP"; then
3869  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3870else
3871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872for as_dir in $PATH
3873do
3874  IFS=$as_save_IFS
3875  test -z "$as_dir" && as_dir=.
3876    for ac_exec_ext in '' $ac_executable_extensions; do
3877  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3878    ac_cv_prog_ac_ct_STRIP="strip"
3879    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3880    break 2
3881  fi
3882done
3883  done
3884IFS=$as_save_IFS
3885
3886fi
3887fi
3888ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3889if test -n "$ac_ct_STRIP"; then
3890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3891$as_echo "$ac_ct_STRIP" >&6; }
3892else
3893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3894$as_echo "no" >&6; }
3895fi
3896
3897  if test "x$ac_ct_STRIP" = x; then
3898    STRIP=":"
3899  else
3900    case $cross_compiling:$ac_tool_warned in
3901yes:)
3902{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3904ac_tool_warned=yes ;;
3905esac
3906    STRIP=$ac_ct_STRIP
3907  fi
3908else
3909  STRIP="$ac_cv_prog_STRIP"
3910fi
3911
3912fi
3913INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3914
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3916$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3917if test -z "$MKDIR_P"; then
3918  if ${ac_cv_path_mkdir+:} false; then :
3919  $as_echo_n "(cached) " >&6
3920else
3921  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3923do
3924  IFS=$as_save_IFS
3925  test -z "$as_dir" && as_dir=.
3926    for ac_prog in mkdir gmkdir; do
3927	 for ac_exec_ext in '' $ac_executable_extensions; do
3928	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3929	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3930	     'mkdir (GNU coreutils) '* | \
3931	     'mkdir (coreutils) '* | \
3932	     'mkdir (fileutils) '4.1*)
3933	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3934	       break 3;;
3935	   esac
3936	 done
3937       done
3938  done
3939IFS=$as_save_IFS
3940
3941fi
3942
3943  test -d ./--version && rmdir ./--version
3944  if test "${ac_cv_path_mkdir+set}" = set; then
3945    MKDIR_P="$ac_cv_path_mkdir -p"
3946  else
3947    # As a last resort, use the slow shell script.  Don't cache a
3948    # value for MKDIR_P within a source directory, because that will
3949    # break other packages using the cache if that directory is
3950    # removed, or if the value is a relative name.
3951    MKDIR_P="$ac_install_sh -d"
3952  fi
3953fi
3954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3955$as_echo "$MKDIR_P" >&6; }
3956
3957for ac_prog in gawk mawk nawk awk
3958do
3959  # Extract the first word of "$ac_prog", so it can be a program name with args.
3960set dummy $ac_prog; ac_word=$2
3961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3962$as_echo_n "checking for $ac_word... " >&6; }
3963if ${ac_cv_prog_AWK+:} false; then :
3964  $as_echo_n "(cached) " >&6
3965else
3966  if test -n "$AWK"; then
3967  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3968else
3969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970for as_dir in $PATH
3971do
3972  IFS=$as_save_IFS
3973  test -z "$as_dir" && as_dir=.
3974    for ac_exec_ext in '' $ac_executable_extensions; do
3975  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3976    ac_cv_prog_AWK="$ac_prog"
3977    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3978    break 2
3979  fi
3980done
3981  done
3982IFS=$as_save_IFS
3983
3984fi
3985fi
3986AWK=$ac_cv_prog_AWK
3987if test -n "$AWK"; then
3988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3989$as_echo "$AWK" >&6; }
3990else
3991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3992$as_echo "no" >&6; }
3993fi
3994
3995
3996  test -n "$AWK" && break
3997done
3998
3999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4000$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4001set x ${MAKE-make}
4002ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4003if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4004  $as_echo_n "(cached) " >&6
4005else
4006  cat >conftest.make <<\_ACEOF
4007SHELL = /bin/sh
4008all:
4009	@echo '@@@%%%=$(MAKE)=@@@%%%'
4010_ACEOF
4011# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4012case `${MAKE-make} -f conftest.make 2>/dev/null` in
4013  *@@@%%%=?*=@@@%%%*)
4014    eval ac_cv_prog_make_${ac_make}_set=yes;;
4015  *)
4016    eval ac_cv_prog_make_${ac_make}_set=no;;
4017esac
4018rm -f conftest.make
4019fi
4020if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4022$as_echo "yes" >&6; }
4023  SET_MAKE=
4024else
4025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4026$as_echo "no" >&6; }
4027  SET_MAKE="MAKE=${MAKE-make}"
4028fi
4029
4030rm -rf .tst 2>/dev/null
4031mkdir .tst 2>/dev/null
4032if test -d .tst; then
4033  am__leading_dot=.
4034else
4035  am__leading_dot=_
4036fi
4037rmdir .tst 2>/dev/null
4038
4039DEPDIR="${am__leading_dot}deps"
4040
4041ac_config_commands="$ac_config_commands depfiles"
4042
4043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4044$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4045cat > confinc.mk << 'END'
4046am__doit:
4047	@echo this is the am__doit target >confinc.out
4048.PHONY: am__doit
4049END
4050am__include="#"
4051am__quote=
4052# BSD make does it like this.
4053echo '.include "confinc.mk" # ignored' > confmf.BSD
4054# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4055echo 'include confinc.mk # ignored' > confmf.GNU
4056_am_result=no
4057for s in GNU BSD; do
4058  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4059   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4060   ac_status=$?
4061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062   (exit $ac_status); }
4063  case $?:`cat confinc.out 2>/dev/null` in #(
4064  '0:this is the am__doit target') :
4065    case $s in #(
4066  BSD) :
4067    am__include='.include' am__quote='"' ;; #(
4068  *) :
4069    am__include='include' am__quote='' ;;
4070esac ;; #(
4071  *) :
4072     ;;
4073esac
4074  if test "$am__include" != "#"; then
4075    _am_result="yes ($s style)"
4076    break
4077  fi
4078done
4079rm -f confinc.* confmf.*
4080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4081$as_echo "${_am_result}" >&6; }
4082
4083# Check whether --enable-dependency-tracking was given.
4084if test "${enable_dependency_tracking+set}" = set; then :
4085  enableval=$enable_dependency_tracking;
4086fi
4087
4088if test "x$enable_dependency_tracking" != xno; then
4089  am_depcomp="$ac_aux_dir/depcomp"
4090  AMDEPBACKSLASH='\'
4091  am__nodep='_no'
4092fi
4093 if test "x$enable_dependency_tracking" != xno; then
4094  AMDEP_TRUE=
4095  AMDEP_FALSE='#'
4096else
4097  AMDEP_TRUE='#'
4098  AMDEP_FALSE=
4099fi
4100
4101
4102# Check whether --enable-silent-rules was given.
4103if test "${enable_silent_rules+set}" = set; then :
4104  enableval=$enable_silent_rules;
4105fi
4106
4107case $enable_silent_rules in # (((
4108  yes) AM_DEFAULT_VERBOSITY=0;;
4109   no) AM_DEFAULT_VERBOSITY=1;;
4110    *) AM_DEFAULT_VERBOSITY=1;;
4111esac
4112am_make=${MAKE-make}
4113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4114$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4115if ${am_cv_make_support_nested_variables+:} false; then :
4116  $as_echo_n "(cached) " >&6
4117else
4118  if $as_echo 'TRUE=$(BAR$(V))
4119BAR0=false
4120BAR1=true
4121V=1
4122am__doit:
4123	@$(TRUE)
4124.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4125  am_cv_make_support_nested_variables=yes
4126else
4127  am_cv_make_support_nested_variables=no
4128fi
4129fi
4130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4131$as_echo "$am_cv_make_support_nested_variables" >&6; }
4132if test $am_cv_make_support_nested_variables = yes; then
4133    AM_V='$(V)'
4134  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4135else
4136  AM_V=$AM_DEFAULT_VERBOSITY
4137  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4138fi
4139AM_BACKSLASH='\'
4140
4141if test "`cd $srcdir && pwd`" != "`pwd`"; then
4142  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4143  # is not polluted with repeated "-I."
4144  am__isrc=' -I$(srcdir)'
4145  # test to see if srcdir already configured
4146  if test -f $srcdir/config.status; then
4147    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4148  fi
4149fi
4150
4151# test whether we have cygpath
4152if test -z "$CYGPATH_W"; then
4153  if (cygpath --version) >/dev/null 2>/dev/null; then
4154    CYGPATH_W='cygpath -w'
4155  else
4156    CYGPATH_W=echo
4157  fi
4158fi
4159
4160
4161# Define the identity of the package.
4162 PACKAGE='libevdev'
4163 VERSION='1.10.0'
4164
4165
4166cat >>confdefs.h <<_ACEOF
4167#define PACKAGE "$PACKAGE"
4168_ACEOF
4169
4170
4171cat >>confdefs.h <<_ACEOF
4172#define VERSION "$VERSION"
4173_ACEOF
4174
4175# Some tools Automake needs.
4176
4177ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4178
4179
4180AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4181
4182
4183AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4184
4185
4186AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4187
4188
4189MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4190
4191# For better backward compatibility.  To be removed once Automake 1.9.x
4192# dies out for good.  For more background, see:
4193# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4194# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4195mkdir_p='$(MKDIR_P)'
4196
4197# We need awk for the "check" target (and possibly the TAP driver).  The
4198# system "awk" is bad on some platforms.
4199# Always define AMTAR for backward compatibility.  Yes, it's still used
4200# in the wild :-(  We should find a proper way to deprecate it ...
4201AMTAR='$${TAR-tar}'
4202
4203
4204# We'll loop over all known methods to create a tar archive until one works.
4205_am_tools='gnutar  pax cpio none'
4206
4207am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4208
4209
4210
4211
4212
4213depcc="$CC"   am_compiler_list=
4214
4215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4216$as_echo_n "checking dependency style of $depcc... " >&6; }
4217if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4218  $as_echo_n "(cached) " >&6
4219else
4220  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4221  # We make a subdir and do the tests there.  Otherwise we can end up
4222  # making bogus files that we don't know about and never remove.  For
4223  # instance it was reported that on HP-UX the gcc test will end up
4224  # making a dummy file named 'D' -- because '-MD' means "put the output
4225  # in D".
4226  rm -rf conftest.dir
4227  mkdir conftest.dir
4228  # Copy depcomp to subdir because otherwise we won't find it if we're
4229  # using a relative directory.
4230  cp "$am_depcomp" conftest.dir
4231  cd conftest.dir
4232  # We will build objects and dependencies in a subdirectory because
4233  # it helps to detect inapplicable dependency modes.  For instance
4234  # both Tru64's cc and ICC support -MD to output dependencies as a
4235  # side effect of compilation, but ICC will put the dependencies in
4236  # the current directory while Tru64 will put them in the object
4237  # directory.
4238  mkdir sub
4239
4240  am_cv_CC_dependencies_compiler_type=none
4241  if test "$am_compiler_list" = ""; then
4242     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4243  fi
4244  am__universal=false
4245  case " $depcc " in #(
4246     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4247     esac
4248
4249  for depmode in $am_compiler_list; do
4250    # Setup a source with many dependencies, because some compilers
4251    # like to wrap large dependency lists on column 80 (with \), and
4252    # we should not choose a depcomp mode which is confused by this.
4253    #
4254    # We need to recreate these files for each test, as the compiler may
4255    # overwrite some of them when testing with obscure command lines.
4256    # This happens at least with the AIX C compiler.
4257    : > sub/conftest.c
4258    for i in 1 2 3 4 5 6; do
4259      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4260      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4261      # Solaris 10 /bin/sh.
4262      echo '/* dummy */' > sub/conftst$i.h
4263    done
4264    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4265
4266    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4267    # mode.  It turns out that the SunPro C++ compiler does not properly
4268    # handle '-M -o', and we need to detect this.  Also, some Intel
4269    # versions had trouble with output in subdirs.
4270    am__obj=sub/conftest.${OBJEXT-o}
4271    am__minus_obj="-o $am__obj"
4272    case $depmode in
4273    gcc)
4274      # This depmode causes a compiler race in universal mode.
4275      test "$am__universal" = false || continue
4276      ;;
4277    nosideeffect)
4278      # After this tag, mechanisms are not by side-effect, so they'll
4279      # only be used when explicitly requested.
4280      if test "x$enable_dependency_tracking" = xyes; then
4281	continue
4282      else
4283	break
4284      fi
4285      ;;
4286    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4287      # This compiler won't grok '-c -o', but also, the minuso test has
4288      # not run yet.  These depmodes are late enough in the game, and
4289      # so weak that their functioning should not be impacted.
4290      am__obj=conftest.${OBJEXT-o}
4291      am__minus_obj=
4292      ;;
4293    none) break ;;
4294    esac
4295    if depmode=$depmode \
4296       source=sub/conftest.c object=$am__obj \
4297       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4298       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4299         >/dev/null 2>conftest.err &&
4300       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4301       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4302       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4303       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4304      # icc doesn't choke on unknown options, it will just issue warnings
4305      # or remarks (even with -Werror).  So we grep stderr for any message
4306      # that says an option was ignored or not supported.
4307      # When given -MP, icc 7.0 and 7.1 complain thusly:
4308      #   icc: Command line warning: ignoring option '-M'; no argument required
4309      # The diagnosis changed in icc 8.0:
4310      #   icc: Command line remark: option '-MP' not supported
4311      if (grep 'ignoring option' conftest.err ||
4312          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4313        am_cv_CC_dependencies_compiler_type=$depmode
4314        break
4315      fi
4316    fi
4317  done
4318
4319  cd ..
4320  rm -rf conftest.dir
4321else
4322  am_cv_CC_dependencies_compiler_type=none
4323fi
4324
4325fi
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4327$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4328CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4329
4330 if
4331  test "x$enable_dependency_tracking" != xno \
4332  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4333  am__fastdepCC_TRUE=
4334  am__fastdepCC_FALSE='#'
4335else
4336  am__fastdepCC_TRUE='#'
4337  am__fastdepCC_FALSE=
4338fi
4339
4340
4341
4342# POSIX will say in a future version that running "rm -f" with no argument
4343# is OK; and we want to be able to make that assumption in our Makefile
4344# recipes.  So use an aggressive probe to check that the usage we want is
4345# actually supported "in the wild" to an acceptable degree.
4346# See automake bug#10828.
4347# To make any issue more visible, cause the running configure to be aborted
4348# by default if the 'rm' program in use doesn't match our expectations; the
4349# user can still override this though.
4350if rm -f && rm -fr && rm -rf; then : OK; else
4351  cat >&2 <<'END'
4352Oops!
4353
4354Your 'rm' program seems unable to run without file operands specified
4355on the command line, even when the '-f' option is present.  This is contrary
4356to the behaviour of most rm programs out there, and not conforming with
4357the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4358
4359Please tell bug-automake@gnu.org about your system, including the value
4360of your $PATH and any error possibly output before this message.  This
4361can help us improve future automake versions.
4362
4363END
4364  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4365    echo 'Configuration will proceed anyway, since you have set the' >&2
4366    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4367    echo >&2
4368  else
4369    cat >&2 <<'END'
4370Aborting the configuration process, to ensure you take notice of the issue.
4371
4372You can download and install GNU coreutils to get an 'rm' implementation
4373that behaves properly: <https://www.gnu.org/software/coreutils/>.
4374
4375If you want to complete the configuration process using your problematic
4376'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4377to "yes", and re-run configure.
4378
4379END
4380    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4381  fi
4382fi
4383
4384
4385# DO NOT MODIFY THIS
4386# Use symbol versioning instead.
4387LIBEVDEV_LT_VERSION=5:0:3
4388
4389
4390
4391# Check whether --enable-silent-rules was given.
4392if test "${enable_silent_rules+set}" = set; then :
4393  enableval=$enable_silent_rules;
4394fi
4395
4396case $enable_silent_rules in # (((
4397  yes) AM_DEFAULT_VERBOSITY=0;;
4398   no) AM_DEFAULT_VERBOSITY=1;;
4399    *) AM_DEFAULT_VERBOSITY=0;;
4400esac
4401am_make=${MAKE-make}
4402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4403$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4404if ${am_cv_make_support_nested_variables+:} false; then :
4405  $as_echo_n "(cached) " >&6
4406else
4407  if $as_echo 'TRUE=$(BAR$(V))
4408BAR0=false
4409BAR1=true
4410V=1
4411am__doit:
4412	@$(TRUE)
4413.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4414  am_cv_make_support_nested_variables=yes
4415else
4416  am_cv_make_support_nested_variables=no
4417fi
4418fi
4419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4420$as_echo "$am_cv_make_support_nested_variables" >&6; }
4421if test $am_cv_make_support_nested_variables = yes; then
4422    AM_V='$(V)'
4423  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4424else
4425  AM_V=$AM_DEFAULT_VERBOSITY
4426  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4427fi
4428AM_BACKSLASH='\'
4429
4430
4431# Check for programs
4432   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4433$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4434if ${ac_cv_prog_cc_c99+:} false; then :
4435  $as_echo_n "(cached) " >&6
4436else
4437  ac_cv_prog_cc_c99=no
4438ac_save_CC=$CC
4439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440/* end confdefs.h.  */
4441#include <stdarg.h>
4442#include <stdbool.h>
4443#include <stdlib.h>
4444#include <wchar.h>
4445#include <stdio.h>
4446
4447// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4448#define debug(...) fprintf (stderr, __VA_ARGS__)
4449#define showlist(...) puts (#__VA_ARGS__)
4450#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4451static void
4452test_varargs_macros (void)
4453{
4454  int x = 1234;
4455  int y = 5678;
4456  debug ("Flag");
4457  debug ("X = %d\n", x);
4458  showlist (The first, second, and third items.);
4459  report (x>y, "x is %d but y is %d", x, y);
4460}
4461
4462// Check long long types.
4463#define BIG64 18446744073709551615ull
4464#define BIG32 4294967295ul
4465#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4466#if !BIG_OK
4467  your preprocessor is broken;
4468#endif
4469#if BIG_OK
4470#else
4471  your preprocessor is broken;
4472#endif
4473static long long int bignum = -9223372036854775807LL;
4474static unsigned long long int ubignum = BIG64;
4475
4476struct incomplete_array
4477{
4478  int datasize;
4479  double data[];
4480};
4481
4482struct named_init {
4483  int number;
4484  const wchar_t *name;
4485  double average;
4486};
4487
4488typedef const char *ccp;
4489
4490static inline int
4491test_restrict (ccp restrict text)
4492{
4493  // See if C++-style comments work.
4494  // Iterate through items via the restricted pointer.
4495  // Also check for declarations in for loops.
4496  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4497    continue;
4498  return 0;
4499}
4500
4501// Check varargs and va_copy.
4502static void
4503test_varargs (const char *format, ...)
4504{
4505  va_list args;
4506  va_start (args, format);
4507  va_list args_copy;
4508  va_copy (args_copy, args);
4509
4510  const char *str;
4511  int number;
4512  float fnumber;
4513
4514  while (*format)
4515    {
4516      switch (*format++)
4517	{
4518	case 's': // string
4519	  str = va_arg (args_copy, const char *);
4520	  break;
4521	case 'd': // int
4522	  number = va_arg (args_copy, int);
4523	  break;
4524	case 'f': // float
4525	  fnumber = va_arg (args_copy, double);
4526	  break;
4527	default:
4528	  break;
4529	}
4530    }
4531  va_end (args_copy);
4532  va_end (args);
4533}
4534
4535int
4536main ()
4537{
4538
4539  // Check bool.
4540  _Bool success = false;
4541
4542  // Check restrict.
4543  if (test_restrict ("String literal") == 0)
4544    success = true;
4545  char *restrict newvar = "Another string";
4546
4547  // Check varargs.
4548  test_varargs ("s, d' f .", "string", 65, 34.234);
4549  test_varargs_macros ();
4550
4551  // Check flexible array members.
4552  struct incomplete_array *ia =
4553    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4554  ia->datasize = 10;
4555  for (int i = 0; i < ia->datasize; ++i)
4556    ia->data[i] = i * 1.234;
4557
4558  // Check named initializers.
4559  struct named_init ni = {
4560    .number = 34,
4561    .name = L"Test wide string",
4562    .average = 543.34343,
4563  };
4564
4565  ni.number = 58;
4566
4567  int dynamic_array[ni.number];
4568  dynamic_array[ni.number - 1] = 543;
4569
4570  // work around unused variable warnings
4571  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4572	  || dynamic_array[ni.number - 1] != 543);
4573
4574  ;
4575  return 0;
4576}
4577_ACEOF
4578for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4579do
4580  CC="$ac_save_CC $ac_arg"
4581  if ac_fn_c_try_compile "$LINENO"; then :
4582  ac_cv_prog_cc_c99=$ac_arg
4583fi
4584rm -f core conftest.err conftest.$ac_objext
4585  test "x$ac_cv_prog_cc_c99" != "xno" && break
4586done
4587rm -f conftest.$ac_ext
4588CC=$ac_save_CC
4589
4590fi
4591# AC_CACHE_VAL
4592case "x$ac_cv_prog_cc_c99" in
4593  x)
4594    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4595$as_echo "none needed" >&6; } ;;
4596  xno)
4597    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4598$as_echo "unsupported" >&6; } ;;
4599  *)
4600    CC="$CC $ac_cv_prog_cc_c99"
4601    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4602$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4603esac
4604if test "x$ac_cv_prog_cc_c99" != xno; then :
4605
4606fi
4607
4608
4609
4610# Initialize libtool
4611
4612case `pwd` in
4613  *\ * | *\	*)
4614    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4615$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4616esac
4617
4618
4619
4620macro_version='2.4.6'
4621macro_revision='2.4.6'
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635ltmain=$ac_aux_dir/ltmain.sh
4636
4637# Make sure we can run config.sub.
4638$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4639  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4640
4641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4642$as_echo_n "checking build system type... " >&6; }
4643if ${ac_cv_build+:} false; then :
4644  $as_echo_n "(cached) " >&6
4645else
4646  ac_build_alias=$build_alias
4647test "x$ac_build_alias" = x &&
4648  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4649test "x$ac_build_alias" = x &&
4650  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4651ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4652  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4653
4654fi
4655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4656$as_echo "$ac_cv_build" >&6; }
4657case $ac_cv_build in
4658*-*-*) ;;
4659*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4660esac
4661build=$ac_cv_build
4662ac_save_IFS=$IFS; IFS='-'
4663set x $ac_cv_build
4664shift
4665build_cpu=$1
4666build_vendor=$2
4667shift; shift
4668# Remember, the first character of IFS is used to create $*,
4669# except with old shells:
4670build_os=$*
4671IFS=$ac_save_IFS
4672case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4673
4674
4675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4676$as_echo_n "checking host system type... " >&6; }
4677if ${ac_cv_host+:} false; then :
4678  $as_echo_n "(cached) " >&6
4679else
4680  if test "x$host_alias" = x; then
4681  ac_cv_host=$ac_cv_build
4682else
4683  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4684    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4685fi
4686
4687fi
4688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4689$as_echo "$ac_cv_host" >&6; }
4690case $ac_cv_host in
4691*-*-*) ;;
4692*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4693esac
4694host=$ac_cv_host
4695ac_save_IFS=$IFS; IFS='-'
4696set x $ac_cv_host
4697shift
4698host_cpu=$1
4699host_vendor=$2
4700shift; shift
4701# Remember, the first character of IFS is used to create $*,
4702# except with old shells:
4703host_os=$*
4704IFS=$ac_save_IFS
4705case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4706
4707
4708# Backslashify metacharacters that are still active within
4709# double-quoted strings.
4710sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4711
4712# Same as above, but do not quote variable references.
4713double_quote_subst='s/\(["`\\]\)/\\\1/g'
4714
4715# Sed substitution to delay expansion of an escaped shell variable in a
4716# double_quote_subst'ed string.
4717delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4718
4719# Sed substitution to delay expansion of an escaped single quote.
4720delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4721
4722# Sed substitution to avoid accidental globbing in evaled expressions
4723no_glob_subst='s/\*/\\\*/g'
4724
4725ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4726ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4727ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4728
4729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4730$as_echo_n "checking how to print strings... " >&6; }
4731# Test print first, because it will be a builtin if present.
4732if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4733   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4734  ECHO='print -r --'
4735elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4736  ECHO='printf %s\n'
4737else
4738  # Use this function as a fallback that always works.
4739  func_fallback_echo ()
4740  {
4741    eval 'cat <<_LTECHO_EOF
4742$1
4743_LTECHO_EOF'
4744  }
4745  ECHO='func_fallback_echo'
4746fi
4747
4748# func_echo_all arg...
4749# Invoke $ECHO with all args, space-separated.
4750func_echo_all ()
4751{
4752    $ECHO ""
4753}
4754
4755case $ECHO in
4756  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4757$as_echo "printf" >&6; } ;;
4758  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4759$as_echo "print -r" >&6; } ;;
4760  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4761$as_echo "cat" >&6; } ;;
4762esac
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4778$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4779if ${ac_cv_path_SED+:} false; then :
4780  $as_echo_n "(cached) " >&6
4781else
4782            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4783     for ac_i in 1 2 3 4 5 6 7; do
4784       ac_script="$ac_script$as_nl$ac_script"
4785     done
4786     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4787     { ac_script=; unset ac_script;}
4788     if test -z "$SED"; then
4789  ac_path_SED_found=false
4790  # Loop through the user's path and test for each of PROGNAME-LIST
4791  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792for as_dir in $PATH
4793do
4794  IFS=$as_save_IFS
4795  test -z "$as_dir" && as_dir=.
4796    for ac_prog in sed gsed; do
4797    for ac_exec_ext in '' $ac_executable_extensions; do
4798      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4799      as_fn_executable_p "$ac_path_SED" || continue
4800# Check for GNU ac_path_SED and select it if it is found.
4801  # Check for GNU $ac_path_SED
4802case `"$ac_path_SED" --version 2>&1` in
4803*GNU*)
4804  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4805*)
4806  ac_count=0
4807  $as_echo_n 0123456789 >"conftest.in"
4808  while :
4809  do
4810    cat "conftest.in" "conftest.in" >"conftest.tmp"
4811    mv "conftest.tmp" "conftest.in"
4812    cp "conftest.in" "conftest.nl"
4813    $as_echo '' >> "conftest.nl"
4814    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4815    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4816    as_fn_arith $ac_count + 1 && ac_count=$as_val
4817    if test $ac_count -gt ${ac_path_SED_max-0}; then
4818      # Best one so far, save it but keep looking for a better one
4819      ac_cv_path_SED="$ac_path_SED"
4820      ac_path_SED_max=$ac_count
4821    fi
4822    # 10*(2^10) chars as input seems more than enough
4823    test $ac_count -gt 10 && break
4824  done
4825  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4826esac
4827
4828      $ac_path_SED_found && break 3
4829    done
4830  done
4831  done
4832IFS=$as_save_IFS
4833  if test -z "$ac_cv_path_SED"; then
4834    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4835  fi
4836else
4837  ac_cv_path_SED=$SED
4838fi
4839
4840fi
4841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4842$as_echo "$ac_cv_path_SED" >&6; }
4843 SED="$ac_cv_path_SED"
4844  rm -f conftest.sed
4845
4846test -z "$SED" && SED=sed
4847Xsed="$SED -e 1s/^X//"
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4860$as_echo_n "checking for fgrep... " >&6; }
4861if ${ac_cv_path_FGREP+:} false; then :
4862  $as_echo_n "(cached) " >&6
4863else
4864  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4865   then ac_cv_path_FGREP="$GREP -F"
4866   else
4867     if test -z "$FGREP"; then
4868  ac_path_FGREP_found=false
4869  # Loop through the user's path and test for each of PROGNAME-LIST
4870  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4872do
4873  IFS=$as_save_IFS
4874  test -z "$as_dir" && as_dir=.
4875    for ac_prog in fgrep; do
4876    for ac_exec_ext in '' $ac_executable_extensions; do
4877      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4878      as_fn_executable_p "$ac_path_FGREP" || continue
4879# Check for GNU ac_path_FGREP and select it if it is found.
4880  # Check for GNU $ac_path_FGREP
4881case `"$ac_path_FGREP" --version 2>&1` in
4882*GNU*)
4883  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4884*)
4885  ac_count=0
4886  $as_echo_n 0123456789 >"conftest.in"
4887  while :
4888  do
4889    cat "conftest.in" "conftest.in" >"conftest.tmp"
4890    mv "conftest.tmp" "conftest.in"
4891    cp "conftest.in" "conftest.nl"
4892    $as_echo 'FGREP' >> "conftest.nl"
4893    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4894    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4895    as_fn_arith $ac_count + 1 && ac_count=$as_val
4896    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4897      # Best one so far, save it but keep looking for a better one
4898      ac_cv_path_FGREP="$ac_path_FGREP"
4899      ac_path_FGREP_max=$ac_count
4900    fi
4901    # 10*(2^10) chars as input seems more than enough
4902    test $ac_count -gt 10 && break
4903  done
4904  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4905esac
4906
4907      $ac_path_FGREP_found && break 3
4908    done
4909  done
4910  done
4911IFS=$as_save_IFS
4912  if test -z "$ac_cv_path_FGREP"; then
4913    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4914  fi
4915else
4916  ac_cv_path_FGREP=$FGREP
4917fi
4918
4919   fi
4920fi
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4922$as_echo "$ac_cv_path_FGREP" >&6; }
4923 FGREP="$ac_cv_path_FGREP"
4924
4925
4926test -z "$GREP" && GREP=grep
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946# Check whether --with-gnu-ld was given.
4947if test "${with_gnu_ld+set}" = set; then :
4948  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4949else
4950  with_gnu_ld=no
4951fi
4952
4953ac_prog=ld
4954if test yes = "$GCC"; then
4955  # Check if gcc -print-prog-name=ld gives a path.
4956  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4957$as_echo_n "checking for ld used by $CC... " >&6; }
4958  case $host in
4959  *-*-mingw*)
4960    # gcc leaves a trailing carriage return, which upsets mingw
4961    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4962  *)
4963    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4964  esac
4965  case $ac_prog in
4966    # Accept absolute paths.
4967    [\\/]* | ?:[\\/]*)
4968      re_direlt='/[^/][^/]*/\.\./'
4969      # Canonicalize the pathname of ld
4970      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4971      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4972	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4973      done
4974      test -z "$LD" && LD=$ac_prog
4975      ;;
4976  "")
4977    # If it fails, then pretend we aren't using GCC.
4978    ac_prog=ld
4979    ;;
4980  *)
4981    # If it is relative, then search for the first ld in PATH.
4982    with_gnu_ld=unknown
4983    ;;
4984  esac
4985elif test yes = "$with_gnu_ld"; then
4986  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4987$as_echo_n "checking for GNU ld... " >&6; }
4988else
4989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4990$as_echo_n "checking for non-GNU ld... " >&6; }
4991fi
4992if ${lt_cv_path_LD+:} false; then :
4993  $as_echo_n "(cached) " >&6
4994else
4995  if test -z "$LD"; then
4996  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4997  for ac_dir in $PATH; do
4998    IFS=$lt_save_ifs
4999    test -z "$ac_dir" && ac_dir=.
5000    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5001      lt_cv_path_LD=$ac_dir/$ac_prog
5002      # Check to see if the program is GNU ld.  I'd rather use --version,
5003      # but apparently some variants of GNU ld only accept -v.
5004      # Break only if it was the GNU/non-GNU ld that we prefer.
5005      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5006      *GNU* | *'with BFD'*)
5007	test no != "$with_gnu_ld" && break
5008	;;
5009      *)
5010	test yes != "$with_gnu_ld" && break
5011	;;
5012      esac
5013    fi
5014  done
5015  IFS=$lt_save_ifs
5016else
5017  lt_cv_path_LD=$LD # Let the user override the test with a path.
5018fi
5019fi
5020
5021LD=$lt_cv_path_LD
5022if test -n "$LD"; then
5023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5024$as_echo "$LD" >&6; }
5025else
5026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027$as_echo "no" >&6; }
5028fi
5029test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5031$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5032if ${lt_cv_prog_gnu_ld+:} false; then :
5033  $as_echo_n "(cached) " >&6
5034else
5035  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5036case `$LD -v 2>&1 </dev/null` in
5037*GNU* | *'with BFD'*)
5038  lt_cv_prog_gnu_ld=yes
5039  ;;
5040*)
5041  lt_cv_prog_gnu_ld=no
5042  ;;
5043esac
5044fi
5045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5046$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5047with_gnu_ld=$lt_cv_prog_gnu_ld
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5058$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5059if ${lt_cv_path_NM+:} false; then :
5060  $as_echo_n "(cached) " >&6
5061else
5062  if test -n "$NM"; then
5063  # Let the user override the test.
5064  lt_cv_path_NM=$NM
5065else
5066  lt_nm_to_check=${ac_tool_prefix}nm
5067  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5068    lt_nm_to_check="$lt_nm_to_check nm"
5069  fi
5070  for lt_tmp_nm in $lt_nm_to_check; do
5071    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5072    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5073      IFS=$lt_save_ifs
5074      test -z "$ac_dir" && ac_dir=.
5075      tmp_nm=$ac_dir/$lt_tmp_nm
5076      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5077	# Check to see if the nm accepts a BSD-compat flag.
5078	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5079	#   nm: unknown option "B" ignored
5080	# Tru64's nm complains that /dev/null is an invalid object file
5081	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5082	case $build_os in
5083	mingw*) lt_bad_file=conftest.nm/nofile ;;
5084	*) lt_bad_file=/dev/null ;;
5085	esac
5086	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5087	*$lt_bad_file* | *'Invalid file or object type'*)
5088	  lt_cv_path_NM="$tmp_nm -B"
5089	  break 2
5090	  ;;
5091	*)
5092	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5093	  */dev/null*)
5094	    lt_cv_path_NM="$tmp_nm -p"
5095	    break 2
5096	    ;;
5097	  *)
5098	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5099	    continue # so that we can try to find one that supports BSD flags
5100	    ;;
5101	  esac
5102	  ;;
5103	esac
5104      fi
5105    done
5106    IFS=$lt_save_ifs
5107  done
5108  : ${lt_cv_path_NM=no}
5109fi
5110fi
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5112$as_echo "$lt_cv_path_NM" >&6; }
5113if test no != "$lt_cv_path_NM"; then
5114  NM=$lt_cv_path_NM
5115else
5116  # Didn't find any BSD compatible name lister, look for dumpbin.
5117  if test -n "$DUMPBIN"; then :
5118    # Let the user override the test.
5119  else
5120    if test -n "$ac_tool_prefix"; then
5121  for ac_prog in dumpbin "link -dump"
5122  do
5123    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5124set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5126$as_echo_n "checking for $ac_word... " >&6; }
5127if ${ac_cv_prog_DUMPBIN+:} false; then :
5128  $as_echo_n "(cached) " >&6
5129else
5130  if test -n "$DUMPBIN"; then
5131  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5132else
5133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134for as_dir in $PATH
5135do
5136  IFS=$as_save_IFS
5137  test -z "$as_dir" && as_dir=.
5138    for ac_exec_ext in '' $ac_executable_extensions; do
5139  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5140    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5141    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5142    break 2
5143  fi
5144done
5145  done
5146IFS=$as_save_IFS
5147
5148fi
5149fi
5150DUMPBIN=$ac_cv_prog_DUMPBIN
5151if test -n "$DUMPBIN"; then
5152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5153$as_echo "$DUMPBIN" >&6; }
5154else
5155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156$as_echo "no" >&6; }
5157fi
5158
5159
5160    test -n "$DUMPBIN" && break
5161  done
5162fi
5163if test -z "$DUMPBIN"; then
5164  ac_ct_DUMPBIN=$DUMPBIN
5165  for ac_prog in dumpbin "link -dump"
5166do
5167  # Extract the first word of "$ac_prog", so it can be a program name with args.
5168set dummy $ac_prog; ac_word=$2
5169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170$as_echo_n "checking for $ac_word... " >&6; }
5171if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5172  $as_echo_n "(cached) " >&6
5173else
5174  if test -n "$ac_ct_DUMPBIN"; then
5175  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5176else
5177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178for as_dir in $PATH
5179do
5180  IFS=$as_save_IFS
5181  test -z "$as_dir" && as_dir=.
5182    for ac_exec_ext in '' $ac_executable_extensions; do
5183  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5184    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5185    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5186    break 2
5187  fi
5188done
5189  done
5190IFS=$as_save_IFS
5191
5192fi
5193fi
5194ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5195if test -n "$ac_ct_DUMPBIN"; then
5196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5197$as_echo "$ac_ct_DUMPBIN" >&6; }
5198else
5199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200$as_echo "no" >&6; }
5201fi
5202
5203
5204  test -n "$ac_ct_DUMPBIN" && break
5205done
5206
5207  if test "x$ac_ct_DUMPBIN" = x; then
5208    DUMPBIN=":"
5209  else
5210    case $cross_compiling:$ac_tool_warned in
5211yes:)
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5214ac_tool_warned=yes ;;
5215esac
5216    DUMPBIN=$ac_ct_DUMPBIN
5217  fi
5218fi
5219
5220    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5221    *COFF*)
5222      DUMPBIN="$DUMPBIN -symbols -headers"
5223      ;;
5224    *)
5225      DUMPBIN=:
5226      ;;
5227    esac
5228  fi
5229
5230  if test : != "$DUMPBIN"; then
5231    NM=$DUMPBIN
5232  fi
5233fi
5234test -z "$NM" && NM=nm
5235
5236
5237
5238
5239
5240
5241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5242$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5243if ${lt_cv_nm_interface+:} false; then :
5244  $as_echo_n "(cached) " >&6
5245else
5246  lt_cv_nm_interface="BSD nm"
5247  echo "int some_variable = 0;" > conftest.$ac_ext
5248  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5249  (eval "$ac_compile" 2>conftest.err)
5250  cat conftest.err >&5
5251  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5252  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5253  cat conftest.err >&5
5254  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5255  cat conftest.out >&5
5256  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5257    lt_cv_nm_interface="MS dumpbin"
5258  fi
5259  rm -f conftest*
5260fi
5261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5262$as_echo "$lt_cv_nm_interface" >&6; }
5263
5264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5265$as_echo_n "checking whether ln -s works... " >&6; }
5266LN_S=$as_ln_s
5267if test "$LN_S" = "ln -s"; then
5268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5269$as_echo "yes" >&6; }
5270else
5271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5272$as_echo "no, using $LN_S" >&6; }
5273fi
5274
5275# find the maximum length of command line arguments
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5277$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5278if ${lt_cv_sys_max_cmd_len+:} false; then :
5279  $as_echo_n "(cached) " >&6
5280else
5281    i=0
5282  teststring=ABCD
5283
5284  case $build_os in
5285  msdosdjgpp*)
5286    # On DJGPP, this test can blow up pretty badly due to problems in libc
5287    # (any single argument exceeding 2000 bytes causes a buffer overrun
5288    # during glob expansion).  Even if it were fixed, the result of this
5289    # check would be larger than it should be.
5290    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5291    ;;
5292
5293  gnu*)
5294    # Under GNU Hurd, this test is not required because there is
5295    # no limit to the length of command line arguments.
5296    # Libtool will interpret -1 as no limit whatsoever
5297    lt_cv_sys_max_cmd_len=-1;
5298    ;;
5299
5300  cygwin* | mingw* | cegcc*)
5301    # On Win9x/ME, this test blows up -- it succeeds, but takes
5302    # about 5 minutes as the teststring grows exponentially.
5303    # Worse, since 9x/ME are not pre-emptively multitasking,
5304    # you end up with a "frozen" computer, even though with patience
5305    # the test eventually succeeds (with a max line length of 256k).
5306    # Instead, let's just punt: use the minimum linelength reported by
5307    # all of the supported platforms: 8192 (on NT/2K/XP).
5308    lt_cv_sys_max_cmd_len=8192;
5309    ;;
5310
5311  mint*)
5312    # On MiNT this can take a long time and run out of memory.
5313    lt_cv_sys_max_cmd_len=8192;
5314    ;;
5315
5316  amigaos*)
5317    # On AmigaOS with pdksh, this test takes hours, literally.
5318    # So we just punt and use a minimum line length of 8192.
5319    lt_cv_sys_max_cmd_len=8192;
5320    ;;
5321
5322  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5323    # This has been around since 386BSD, at least.  Likely further.
5324    if test -x /sbin/sysctl; then
5325      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5326    elif test -x /usr/sbin/sysctl; then
5327      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5328    else
5329      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5330    fi
5331    # And add a safety zone
5332    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5333    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5334    ;;
5335
5336  interix*)
5337    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5338    lt_cv_sys_max_cmd_len=196608
5339    ;;
5340
5341  os2*)
5342    # The test takes a long time on OS/2.
5343    lt_cv_sys_max_cmd_len=8192
5344    ;;
5345
5346  osf*)
5347    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5348    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5349    # nice to cause kernel panics so lets avoid the loop below.
5350    # First set a reasonable default.
5351    lt_cv_sys_max_cmd_len=16384
5352    #
5353    if test -x /sbin/sysconfig; then
5354      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5355        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5356      esac
5357    fi
5358    ;;
5359  sco3.2v5*)
5360    lt_cv_sys_max_cmd_len=102400
5361    ;;
5362  sysv5* | sco5v6* | sysv4.2uw2*)
5363    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5364    if test -n "$kargmax"; then
5365      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5366    else
5367      lt_cv_sys_max_cmd_len=32768
5368    fi
5369    ;;
5370  *)
5371    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5372    if test -n "$lt_cv_sys_max_cmd_len" && \
5373       test undefined != "$lt_cv_sys_max_cmd_len"; then
5374      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5375      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5376    else
5377      # Make teststring a little bigger before we do anything with it.
5378      # a 1K string should be a reasonable start.
5379      for i in 1 2 3 4 5 6 7 8; do
5380        teststring=$teststring$teststring
5381      done
5382      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5383      # If test is not a shell built-in, we'll probably end up computing a
5384      # maximum length that is only half of the actual maximum length, but
5385      # we can't tell.
5386      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5387	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5388	      test 17 != "$i" # 1/2 MB should be enough
5389      do
5390        i=`expr $i + 1`
5391        teststring=$teststring$teststring
5392      done
5393      # Only check the string length outside the loop.
5394      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5395      teststring=
5396      # Add a significant safety factor because C++ compilers can tack on
5397      # massive amounts of additional arguments before passing them to the
5398      # linker.  It appears as though 1/2 is a usable value.
5399      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5400    fi
5401    ;;
5402  esac
5403
5404fi
5405
5406if test -n "$lt_cv_sys_max_cmd_len"; then
5407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5408$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5409else
5410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5411$as_echo "none" >&6; }
5412fi
5413max_cmd_len=$lt_cv_sys_max_cmd_len
5414
5415
5416
5417
5418
5419
5420: ${CP="cp -f"}
5421: ${MV="mv -f"}
5422: ${RM="rm -f"}
5423
5424if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5425  lt_unset=unset
5426else
5427  lt_unset=false
5428fi
5429
5430
5431
5432
5433
5434# test EBCDIC or ASCII
5435case `echo X|tr X '\101'` in
5436 A) # ASCII based system
5437    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5438  lt_SP2NL='tr \040 \012'
5439  lt_NL2SP='tr \015\012 \040\040'
5440  ;;
5441 *) # EBCDIC based system
5442  lt_SP2NL='tr \100 \n'
5443  lt_NL2SP='tr \r\n \100\100'
5444  ;;
5445esac
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5456$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5457if ${lt_cv_to_host_file_cmd+:} false; then :
5458  $as_echo_n "(cached) " >&6
5459else
5460  case $host in
5461  *-*-mingw* )
5462    case $build in
5463      *-*-mingw* ) # actually msys
5464        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5465        ;;
5466      *-*-cygwin* )
5467        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5468        ;;
5469      * ) # otherwise, assume *nix
5470        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5471        ;;
5472    esac
5473    ;;
5474  *-*-cygwin* )
5475    case $build in
5476      *-*-mingw* ) # actually msys
5477        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5478        ;;
5479      *-*-cygwin* )
5480        lt_cv_to_host_file_cmd=func_convert_file_noop
5481        ;;
5482      * ) # otherwise, assume *nix
5483        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5484        ;;
5485    esac
5486    ;;
5487  * ) # unhandled hosts (and "normal" native builds)
5488    lt_cv_to_host_file_cmd=func_convert_file_noop
5489    ;;
5490esac
5491
5492fi
5493
5494to_host_file_cmd=$lt_cv_to_host_file_cmd
5495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5496$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5497
5498
5499
5500
5501
5502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5503$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5504if ${lt_cv_to_tool_file_cmd+:} false; then :
5505  $as_echo_n "(cached) " >&6
5506else
5507  #assume ordinary cross tools, or native build.
5508lt_cv_to_tool_file_cmd=func_convert_file_noop
5509case $host in
5510  *-*-mingw* )
5511    case $build in
5512      *-*-mingw* ) # actually msys
5513        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5514        ;;
5515    esac
5516    ;;
5517esac
5518
5519fi
5520
5521to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5523$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5524
5525
5526
5527
5528
5529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5530$as_echo_n "checking for $LD option to reload object files... " >&6; }
5531if ${lt_cv_ld_reload_flag+:} false; then :
5532  $as_echo_n "(cached) " >&6
5533else
5534  lt_cv_ld_reload_flag='-r'
5535fi
5536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5537$as_echo "$lt_cv_ld_reload_flag" >&6; }
5538reload_flag=$lt_cv_ld_reload_flag
5539case $reload_flag in
5540"" | " "*) ;;
5541*) reload_flag=" $reload_flag" ;;
5542esac
5543reload_cmds='$LD$reload_flag -o $output$reload_objs'
5544case $host_os in
5545  cygwin* | mingw* | pw32* | cegcc*)
5546    if test yes != "$GCC"; then
5547      reload_cmds=false
5548    fi
5549    ;;
5550  darwin*)
5551    if test yes = "$GCC"; then
5552      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5553    else
5554      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5555    fi
5556    ;;
5557esac
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567if test -n "$ac_tool_prefix"; then
5568  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5569set dummy ${ac_tool_prefix}objdump; ac_word=$2
5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571$as_echo_n "checking for $ac_word... " >&6; }
5572if ${ac_cv_prog_OBJDUMP+:} false; then :
5573  $as_echo_n "(cached) " >&6
5574else
5575  if test -n "$OBJDUMP"; then
5576  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5577else
5578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579for as_dir in $PATH
5580do
5581  IFS=$as_save_IFS
5582  test -z "$as_dir" && as_dir=.
5583    for ac_exec_ext in '' $ac_executable_extensions; do
5584  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5585    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5586    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5587    break 2
5588  fi
5589done
5590  done
5591IFS=$as_save_IFS
5592
5593fi
5594fi
5595OBJDUMP=$ac_cv_prog_OBJDUMP
5596if test -n "$OBJDUMP"; then
5597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5598$as_echo "$OBJDUMP" >&6; }
5599else
5600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601$as_echo "no" >&6; }
5602fi
5603
5604
5605fi
5606if test -z "$ac_cv_prog_OBJDUMP"; then
5607  ac_ct_OBJDUMP=$OBJDUMP
5608  # Extract the first word of "objdump", so it can be a program name with args.
5609set dummy objdump; ac_word=$2
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5611$as_echo_n "checking for $ac_word... " >&6; }
5612if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5613  $as_echo_n "(cached) " >&6
5614else
5615  if test -n "$ac_ct_OBJDUMP"; then
5616  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5617else
5618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619for as_dir in $PATH
5620do
5621  IFS=$as_save_IFS
5622  test -z "$as_dir" && as_dir=.
5623    for ac_exec_ext in '' $ac_executable_extensions; do
5624  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5625    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5626    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5627    break 2
5628  fi
5629done
5630  done
5631IFS=$as_save_IFS
5632
5633fi
5634fi
5635ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5636if test -n "$ac_ct_OBJDUMP"; then
5637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5638$as_echo "$ac_ct_OBJDUMP" >&6; }
5639else
5640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5641$as_echo "no" >&6; }
5642fi
5643
5644  if test "x$ac_ct_OBJDUMP" = x; then
5645    OBJDUMP="false"
5646  else
5647    case $cross_compiling:$ac_tool_warned in
5648yes:)
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5650$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5651ac_tool_warned=yes ;;
5652esac
5653    OBJDUMP=$ac_ct_OBJDUMP
5654  fi
5655else
5656  OBJDUMP="$ac_cv_prog_OBJDUMP"
5657fi
5658
5659test -z "$OBJDUMP" && OBJDUMP=objdump
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5670$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5671if ${lt_cv_deplibs_check_method+:} false; then :
5672  $as_echo_n "(cached) " >&6
5673else
5674  lt_cv_file_magic_cmd='$MAGIC_CMD'
5675lt_cv_file_magic_test_file=
5676lt_cv_deplibs_check_method='unknown'
5677# Need to set the preceding variable on all platforms that support
5678# interlibrary dependencies.
5679# 'none' -- dependencies not supported.
5680# 'unknown' -- same as none, but documents that we really don't know.
5681# 'pass_all' -- all dependencies passed with no checks.
5682# 'test_compile' -- check by making test program.
5683# 'file_magic [[regex]]' -- check by looking for files in library path
5684# that responds to the $file_magic_cmd with a given extended regex.
5685# If you have 'file' or equivalent on your system and you're not sure
5686# whether 'pass_all' will *always* work, you probably want this one.
5687
5688case $host_os in
5689aix[4-9]*)
5690  lt_cv_deplibs_check_method=pass_all
5691  ;;
5692
5693beos*)
5694  lt_cv_deplibs_check_method=pass_all
5695  ;;
5696
5697bsdi[45]*)
5698  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5699  lt_cv_file_magic_cmd='/usr/bin/file -L'
5700  lt_cv_file_magic_test_file=/shlib/libc.so
5701  ;;
5702
5703cygwin*)
5704  # func_win32_libid is a shell function defined in ltmain.sh
5705  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5706  lt_cv_file_magic_cmd='func_win32_libid'
5707  ;;
5708
5709mingw* | pw32*)
5710  # Base MSYS/MinGW do not provide the 'file' command needed by
5711  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5712  # unless we find 'file', for example because we are cross-compiling.
5713  if ( file / ) >/dev/null 2>&1; then
5714    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5715    lt_cv_file_magic_cmd='func_win32_libid'
5716  else
5717    # Keep this pattern in sync with the one in func_win32_libid.
5718    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5719    lt_cv_file_magic_cmd='$OBJDUMP -f'
5720  fi
5721  ;;
5722
5723cegcc*)
5724  # use the weaker test based on 'objdump'. See mingw*.
5725  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5726  lt_cv_file_magic_cmd='$OBJDUMP -f'
5727  ;;
5728
5729darwin* | rhapsody*)
5730  lt_cv_deplibs_check_method=pass_all
5731  ;;
5732
5733freebsd* | dragonfly*)
5734  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5735    case $host_cpu in
5736    i*86 )
5737      # Not sure whether the presence of OpenBSD here was a mistake.
5738      # Let's accept both of them until this is cleared up.
5739      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5740      lt_cv_file_magic_cmd=/usr/bin/file
5741      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5742      ;;
5743    esac
5744  else
5745    lt_cv_deplibs_check_method=pass_all
5746  fi
5747  ;;
5748
5749haiku*)
5750  lt_cv_deplibs_check_method=pass_all
5751  ;;
5752
5753hpux10.20* | hpux11*)
5754  lt_cv_file_magic_cmd=/usr/bin/file
5755  case $host_cpu in
5756  ia64*)
5757    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5758    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5759    ;;
5760  hppa*64*)
5761    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]'
5762    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5763    ;;
5764  *)
5765    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5766    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5767    ;;
5768  esac
5769  ;;
5770
5771interix[3-9]*)
5772  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5773  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5774  ;;
5775
5776irix5* | irix6* | nonstopux*)
5777  case $LD in
5778  *-32|*"-32 ") libmagic=32-bit;;
5779  *-n32|*"-n32 ") libmagic=N32;;
5780  *-64|*"-64 ") libmagic=64-bit;;
5781  *) libmagic=never-match;;
5782  esac
5783  lt_cv_deplibs_check_method=pass_all
5784  ;;
5785
5786# This must be glibc/ELF.
5787linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5788  lt_cv_deplibs_check_method=pass_all
5789  ;;
5790
5791netbsd*)
5792  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5793    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5794  else
5795    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5796  fi
5797  ;;
5798
5799newos6*)
5800  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5801  lt_cv_file_magic_cmd=/usr/bin/file
5802  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5803  ;;
5804
5805*nto* | *qnx*)
5806  lt_cv_deplibs_check_method=pass_all
5807  ;;
5808
5809openbsd* | bitrig*)
5810  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5811    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5812  else
5813    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5814  fi
5815  ;;
5816
5817osf3* | osf4* | osf5*)
5818  lt_cv_deplibs_check_method=pass_all
5819  ;;
5820
5821rdos*)
5822  lt_cv_deplibs_check_method=pass_all
5823  ;;
5824
5825solaris*)
5826  lt_cv_deplibs_check_method=pass_all
5827  ;;
5828
5829sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5830  lt_cv_deplibs_check_method=pass_all
5831  ;;
5832
5833sysv4 | sysv4.3*)
5834  case $host_vendor in
5835  motorola)
5836    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]'
5837    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5838    ;;
5839  ncr)
5840    lt_cv_deplibs_check_method=pass_all
5841    ;;
5842  sequent)
5843    lt_cv_file_magic_cmd='/bin/file'
5844    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5845    ;;
5846  sni)
5847    lt_cv_file_magic_cmd='/bin/file'
5848    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5849    lt_cv_file_magic_test_file=/lib/libc.so
5850    ;;
5851  siemens)
5852    lt_cv_deplibs_check_method=pass_all
5853    ;;
5854  pc)
5855    lt_cv_deplibs_check_method=pass_all
5856    ;;
5857  esac
5858  ;;
5859
5860tpf*)
5861  lt_cv_deplibs_check_method=pass_all
5862  ;;
5863os2*)
5864  lt_cv_deplibs_check_method=pass_all
5865  ;;
5866esac
5867
5868fi
5869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5870$as_echo "$lt_cv_deplibs_check_method" >&6; }
5871
5872file_magic_glob=
5873want_nocaseglob=no
5874if test "$build" = "$host"; then
5875  case $host_os in
5876  mingw* | pw32*)
5877    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5878      want_nocaseglob=yes
5879    else
5880      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5881    fi
5882    ;;
5883  esac
5884fi
5885
5886file_magic_cmd=$lt_cv_file_magic_cmd
5887deplibs_check_method=$lt_cv_deplibs_check_method
5888test -z "$deplibs_check_method" && deplibs_check_method=unknown
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911if test -n "$ac_tool_prefix"; then
5912  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5913set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5915$as_echo_n "checking for $ac_word... " >&6; }
5916if ${ac_cv_prog_DLLTOOL+:} false; then :
5917  $as_echo_n "(cached) " >&6
5918else
5919  if test -n "$DLLTOOL"; then
5920  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5921else
5922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923for as_dir in $PATH
5924do
5925  IFS=$as_save_IFS
5926  test -z "$as_dir" && as_dir=.
5927    for ac_exec_ext in '' $ac_executable_extensions; do
5928  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5930    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5931    break 2
5932  fi
5933done
5934  done
5935IFS=$as_save_IFS
5936
5937fi
5938fi
5939DLLTOOL=$ac_cv_prog_DLLTOOL
5940if test -n "$DLLTOOL"; then
5941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5942$as_echo "$DLLTOOL" >&6; }
5943else
5944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5945$as_echo "no" >&6; }
5946fi
5947
5948
5949fi
5950if test -z "$ac_cv_prog_DLLTOOL"; then
5951  ac_ct_DLLTOOL=$DLLTOOL
5952  # Extract the first word of "dlltool", so it can be a program name with args.
5953set dummy dlltool; ac_word=$2
5954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5955$as_echo_n "checking for $ac_word... " >&6; }
5956if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5957  $as_echo_n "(cached) " >&6
5958else
5959  if test -n "$ac_ct_DLLTOOL"; then
5960  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5961else
5962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963for as_dir in $PATH
5964do
5965  IFS=$as_save_IFS
5966  test -z "$as_dir" && as_dir=.
5967    for ac_exec_ext in '' $ac_executable_extensions; do
5968  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5969    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5970    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5971    break 2
5972  fi
5973done
5974  done
5975IFS=$as_save_IFS
5976
5977fi
5978fi
5979ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5980if test -n "$ac_ct_DLLTOOL"; then
5981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5982$as_echo "$ac_ct_DLLTOOL" >&6; }
5983else
5984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5985$as_echo "no" >&6; }
5986fi
5987
5988  if test "x$ac_ct_DLLTOOL" = x; then
5989    DLLTOOL="false"
5990  else
5991    case $cross_compiling:$ac_tool_warned in
5992yes:)
5993{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5994$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5995ac_tool_warned=yes ;;
5996esac
5997    DLLTOOL=$ac_ct_DLLTOOL
5998  fi
5999else
6000  DLLTOOL="$ac_cv_prog_DLLTOOL"
6001fi
6002
6003test -z "$DLLTOOL" && DLLTOOL=dlltool
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6015$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6016if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6017  $as_echo_n "(cached) " >&6
6018else
6019  lt_cv_sharedlib_from_linklib_cmd='unknown'
6020
6021case $host_os in
6022cygwin* | mingw* | pw32* | cegcc*)
6023  # two different shell functions defined in ltmain.sh;
6024  # decide which one to use based on capabilities of $DLLTOOL
6025  case `$DLLTOOL --help 2>&1` in
6026  *--identify-strict*)
6027    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6028    ;;
6029  *)
6030    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6031    ;;
6032  esac
6033  ;;
6034*)
6035  # fallback: assume linklib IS sharedlib
6036  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6037  ;;
6038esac
6039
6040fi
6041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6042$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6043sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6044test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6045
6046
6047
6048
6049
6050
6051
6052if test -n "$ac_tool_prefix"; then
6053  for ac_prog in ar
6054  do
6055    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6056set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6058$as_echo_n "checking for $ac_word... " >&6; }
6059if ${ac_cv_prog_AR+:} false; then :
6060  $as_echo_n "(cached) " >&6
6061else
6062  if test -n "$AR"; then
6063  ac_cv_prog_AR="$AR" # Let the user override the test.
6064else
6065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066for as_dir in $PATH
6067do
6068  IFS=$as_save_IFS
6069  test -z "$as_dir" && as_dir=.
6070    for ac_exec_ext in '' $ac_executable_extensions; do
6071  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6072    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6073    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6074    break 2
6075  fi
6076done
6077  done
6078IFS=$as_save_IFS
6079
6080fi
6081fi
6082AR=$ac_cv_prog_AR
6083if test -n "$AR"; then
6084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6085$as_echo "$AR" >&6; }
6086else
6087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6088$as_echo "no" >&6; }
6089fi
6090
6091
6092    test -n "$AR" && break
6093  done
6094fi
6095if test -z "$AR"; then
6096  ac_ct_AR=$AR
6097  for ac_prog in ar
6098do
6099  # Extract the first word of "$ac_prog", so it can be a program name with args.
6100set dummy $ac_prog; ac_word=$2
6101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6102$as_echo_n "checking for $ac_word... " >&6; }
6103if ${ac_cv_prog_ac_ct_AR+:} false; then :
6104  $as_echo_n "(cached) " >&6
6105else
6106  if test -n "$ac_ct_AR"; then
6107  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6108else
6109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110for as_dir in $PATH
6111do
6112  IFS=$as_save_IFS
6113  test -z "$as_dir" && as_dir=.
6114    for ac_exec_ext in '' $ac_executable_extensions; do
6115  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6116    ac_cv_prog_ac_ct_AR="$ac_prog"
6117    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6118    break 2
6119  fi
6120done
6121  done
6122IFS=$as_save_IFS
6123
6124fi
6125fi
6126ac_ct_AR=$ac_cv_prog_ac_ct_AR
6127if test -n "$ac_ct_AR"; then
6128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6129$as_echo "$ac_ct_AR" >&6; }
6130else
6131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6132$as_echo "no" >&6; }
6133fi
6134
6135
6136  test -n "$ac_ct_AR" && break
6137done
6138
6139  if test "x$ac_ct_AR" = x; then
6140    AR="false"
6141  else
6142    case $cross_compiling:$ac_tool_warned in
6143yes:)
6144{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6145$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6146ac_tool_warned=yes ;;
6147esac
6148    AR=$ac_ct_AR
6149  fi
6150fi
6151
6152: ${AR=ar}
6153: ${AR_FLAGS=cru}
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6166$as_echo_n "checking for archiver @FILE support... " >&6; }
6167if ${lt_cv_ar_at_file+:} false; then :
6168  $as_echo_n "(cached) " >&6
6169else
6170  lt_cv_ar_at_file=no
6171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172/* end confdefs.h.  */
6173
6174int
6175main ()
6176{
6177
6178  ;
6179  return 0;
6180}
6181_ACEOF
6182if ac_fn_c_try_compile "$LINENO"; then :
6183  echo conftest.$ac_objext > conftest.lst
6184      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6185      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6186  (eval $lt_ar_try) 2>&5
6187  ac_status=$?
6188  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6189  test $ac_status = 0; }
6190      if test 0 -eq "$ac_status"; then
6191	# Ensure the archiver fails upon bogus file names.
6192	rm -f conftest.$ac_objext libconftest.a
6193	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6194  (eval $lt_ar_try) 2>&5
6195  ac_status=$?
6196  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6197  test $ac_status = 0; }
6198	if test 0 -ne "$ac_status"; then
6199          lt_cv_ar_at_file=@
6200        fi
6201      fi
6202      rm -f conftest.* libconftest.a
6203
6204fi
6205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6206
6207fi
6208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6209$as_echo "$lt_cv_ar_at_file" >&6; }
6210
6211if test no = "$lt_cv_ar_at_file"; then
6212  archiver_list_spec=
6213else
6214  archiver_list_spec=$lt_cv_ar_at_file
6215fi
6216
6217
6218
6219
6220
6221
6222
6223if test -n "$ac_tool_prefix"; then
6224  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6225set dummy ${ac_tool_prefix}strip; ac_word=$2
6226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6227$as_echo_n "checking for $ac_word... " >&6; }
6228if ${ac_cv_prog_STRIP+:} false; then :
6229  $as_echo_n "(cached) " >&6
6230else
6231  if test -n "$STRIP"; then
6232  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6233else
6234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235for as_dir in $PATH
6236do
6237  IFS=$as_save_IFS
6238  test -z "$as_dir" && as_dir=.
6239    for ac_exec_ext in '' $ac_executable_extensions; do
6240  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6241    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6243    break 2
6244  fi
6245done
6246  done
6247IFS=$as_save_IFS
6248
6249fi
6250fi
6251STRIP=$ac_cv_prog_STRIP
6252if test -n "$STRIP"; then
6253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6254$as_echo "$STRIP" >&6; }
6255else
6256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257$as_echo "no" >&6; }
6258fi
6259
6260
6261fi
6262if test -z "$ac_cv_prog_STRIP"; then
6263  ac_ct_STRIP=$STRIP
6264  # Extract the first word of "strip", so it can be a program name with args.
6265set dummy strip; ac_word=$2
6266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6267$as_echo_n "checking for $ac_word... " >&6; }
6268if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6269  $as_echo_n "(cached) " >&6
6270else
6271  if test -n "$ac_ct_STRIP"; then
6272  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6273else
6274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275for as_dir in $PATH
6276do
6277  IFS=$as_save_IFS
6278  test -z "$as_dir" && as_dir=.
6279    for ac_exec_ext in '' $ac_executable_extensions; do
6280  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6281    ac_cv_prog_ac_ct_STRIP="strip"
6282    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6283    break 2
6284  fi
6285done
6286  done
6287IFS=$as_save_IFS
6288
6289fi
6290fi
6291ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6292if test -n "$ac_ct_STRIP"; then
6293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6294$as_echo "$ac_ct_STRIP" >&6; }
6295else
6296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6297$as_echo "no" >&6; }
6298fi
6299
6300  if test "x$ac_ct_STRIP" = x; then
6301    STRIP=":"
6302  else
6303    case $cross_compiling:$ac_tool_warned in
6304yes:)
6305{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6306$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6307ac_tool_warned=yes ;;
6308esac
6309    STRIP=$ac_ct_STRIP
6310  fi
6311else
6312  STRIP="$ac_cv_prog_STRIP"
6313fi
6314
6315test -z "$STRIP" && STRIP=:
6316
6317
6318
6319
6320
6321
6322if test -n "$ac_tool_prefix"; then
6323  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6324set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6326$as_echo_n "checking for $ac_word... " >&6; }
6327if ${ac_cv_prog_RANLIB+:} false; then :
6328  $as_echo_n "(cached) " >&6
6329else
6330  if test -n "$RANLIB"; then
6331  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6332else
6333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334for as_dir in $PATH
6335do
6336  IFS=$as_save_IFS
6337  test -z "$as_dir" && as_dir=.
6338    for ac_exec_ext in '' $ac_executable_extensions; do
6339  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6340    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6341    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6342    break 2
6343  fi
6344done
6345  done
6346IFS=$as_save_IFS
6347
6348fi
6349fi
6350RANLIB=$ac_cv_prog_RANLIB
6351if test -n "$RANLIB"; then
6352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6353$as_echo "$RANLIB" >&6; }
6354else
6355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6356$as_echo "no" >&6; }
6357fi
6358
6359
6360fi
6361if test -z "$ac_cv_prog_RANLIB"; then
6362  ac_ct_RANLIB=$RANLIB
6363  # Extract the first word of "ranlib", so it can be a program name with args.
6364set dummy ranlib; ac_word=$2
6365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6366$as_echo_n "checking for $ac_word... " >&6; }
6367if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6368  $as_echo_n "(cached) " >&6
6369else
6370  if test -n "$ac_ct_RANLIB"; then
6371  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6372else
6373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374for as_dir in $PATH
6375do
6376  IFS=$as_save_IFS
6377  test -z "$as_dir" && as_dir=.
6378    for ac_exec_ext in '' $ac_executable_extensions; do
6379  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6380    ac_cv_prog_ac_ct_RANLIB="ranlib"
6381    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6382    break 2
6383  fi
6384done
6385  done
6386IFS=$as_save_IFS
6387
6388fi
6389fi
6390ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6391if test -n "$ac_ct_RANLIB"; then
6392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6393$as_echo "$ac_ct_RANLIB" >&6; }
6394else
6395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6396$as_echo "no" >&6; }
6397fi
6398
6399  if test "x$ac_ct_RANLIB" = x; then
6400    RANLIB=":"
6401  else
6402    case $cross_compiling:$ac_tool_warned in
6403yes:)
6404{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6406ac_tool_warned=yes ;;
6407esac
6408    RANLIB=$ac_ct_RANLIB
6409  fi
6410else
6411  RANLIB="$ac_cv_prog_RANLIB"
6412fi
6413
6414test -z "$RANLIB" && RANLIB=:
6415
6416
6417
6418
6419
6420
6421# Determine commands to create old-style static archives.
6422old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6423old_postinstall_cmds='chmod 644 $oldlib'
6424old_postuninstall_cmds=
6425
6426if test -n "$RANLIB"; then
6427  case $host_os in
6428  bitrig* | openbsd*)
6429    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6430    ;;
6431  *)
6432    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6433    ;;
6434  esac
6435  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6436fi
6437
6438case $host_os in
6439  darwin*)
6440    lock_old_archive_extraction=yes ;;
6441  *)
6442    lock_old_archive_extraction=no ;;
6443esac
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483# If no C compiler was specified, use CC.
6484LTCC=${LTCC-"$CC"}
6485
6486# If no C compiler flags were specified, use CFLAGS.
6487LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6488
6489# Allow CC to be a program name with arguments.
6490compiler=$CC
6491
6492
6493# Check for command to grab the raw symbol name followed by C symbol from nm.
6494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6495$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6496if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6497  $as_echo_n "(cached) " >&6
6498else
6499
6500# These are sane defaults that work on at least a few old systems.
6501# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6502
6503# Character class describing NM global symbol codes.
6504symcode='[BCDEGRST]'
6505
6506# Regexp to match symbols that can be accessed directly from C.
6507sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6508
6509# Define system-specific variables.
6510case $host_os in
6511aix*)
6512  symcode='[BCDT]'
6513  ;;
6514cygwin* | mingw* | pw32* | cegcc*)
6515  symcode='[ABCDGISTW]'
6516  ;;
6517hpux*)
6518  if test ia64 = "$host_cpu"; then
6519    symcode='[ABCDEGRST]'
6520  fi
6521  ;;
6522irix* | nonstopux*)
6523  symcode='[BCDEGRST]'
6524  ;;
6525osf*)
6526  symcode='[BCDEGQRST]'
6527  ;;
6528solaris*)
6529  symcode='[BDRT]'
6530  ;;
6531sco3.2v5*)
6532  symcode='[DT]'
6533  ;;
6534sysv4.2uw2*)
6535  symcode='[DT]'
6536  ;;
6537sysv5* | sco5v6* | unixware* | OpenUNIX*)
6538  symcode='[ABDT]'
6539  ;;
6540sysv4)
6541  symcode='[DFNSTU]'
6542  ;;
6543esac
6544
6545# If we're using GNU nm, then use its standard symbol codes.
6546case `$NM -V 2>&1` in
6547*GNU* | *'with BFD'*)
6548  symcode='[ABCDGIRSTW]' ;;
6549esac
6550
6551if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6552  # Gets list of data symbols to import.
6553  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6554  # Adjust the below global symbol transforms to fixup imported variables.
6555  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6556  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6557  lt_c_name_lib_hook="\
6558  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6559  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6560else
6561  # Disable hooks by default.
6562  lt_cv_sys_global_symbol_to_import=
6563  lt_cdecl_hook=
6564  lt_c_name_hook=
6565  lt_c_name_lib_hook=
6566fi
6567
6568# Transform an extracted symbol line into a proper C declaration.
6569# Some systems (esp. on ia64) link data and code symbols differently,
6570# so use this general approach.
6571lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6572$lt_cdecl_hook\
6573" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6574" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6575
6576# Transform an extracted symbol line into symbol name and symbol address
6577lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6578$lt_c_name_hook\
6579" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6580" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6581
6582# Transform an extracted symbol line into symbol name with lib prefix and
6583# symbol address.
6584lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6585$lt_c_name_lib_hook\
6586" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6587" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6588" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6589
6590# Handle CRLF in mingw tool chain
6591opt_cr=
6592case $build_os in
6593mingw*)
6594  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6595  ;;
6596esac
6597
6598# Try without a prefix underscore, then with it.
6599for ac_symprfx in "" "_"; do
6600
6601  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6602  symxfrm="\\1 $ac_symprfx\\2 \\2"
6603
6604  # Write the raw and C identifiers.
6605  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6606    # Fake it for dumpbin and say T for any non-static function,
6607    # D for any global variable and I for any imported variable.
6608    # Also find C++ and __fastcall symbols from MSVC++,
6609    # which start with @ or ?.
6610    lt_cv_sys_global_symbol_pipe="$AWK '"\
6611"     {last_section=section; section=\$ 3};"\
6612"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6613"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6614"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6615"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6616"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6617"     \$ 0!~/External *\|/{next};"\
6618"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6619"     {if(hide[section]) next};"\
6620"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6621"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6622"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6623"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6624"     ' prfx=^$ac_symprfx"
6625  else
6626    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6627  fi
6628  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6629
6630  # Check to see that the pipe works correctly.
6631  pipe_works=no
6632
6633  rm -f conftest*
6634  cat > conftest.$ac_ext <<_LT_EOF
6635#ifdef __cplusplus
6636extern "C" {
6637#endif
6638char nm_test_var;
6639void nm_test_func(void);
6640void nm_test_func(void){}
6641#ifdef __cplusplus
6642}
6643#endif
6644int main(){nm_test_var='a';nm_test_func();return(0);}
6645_LT_EOF
6646
6647  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6648  (eval $ac_compile) 2>&5
6649  ac_status=$?
6650  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6651  test $ac_status = 0; }; then
6652    # Now try to grab the symbols.
6653    nlist=conftest.nm
6654    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6655  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6656  ac_status=$?
6657  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6658  test $ac_status = 0; } && test -s "$nlist"; then
6659      # Try sorting and uniquifying the output.
6660      if sort "$nlist" | uniq > "$nlist"T; then
6661	mv -f "$nlist"T "$nlist"
6662      else
6663	rm -f "$nlist"T
6664      fi
6665
6666      # Make sure that we snagged all the symbols we need.
6667      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6668	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6669	  cat <<_LT_EOF > conftest.$ac_ext
6670/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6671#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6672/* DATA imports from DLLs on WIN32 can't be const, because runtime
6673   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6674# define LT_DLSYM_CONST
6675#elif defined __osf__
6676/* This system does not cope well with relocations in const data.  */
6677# define LT_DLSYM_CONST
6678#else
6679# define LT_DLSYM_CONST const
6680#endif
6681
6682#ifdef __cplusplus
6683extern "C" {
6684#endif
6685
6686_LT_EOF
6687	  # Now generate the symbol file.
6688	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6689
6690	  cat <<_LT_EOF >> conftest.$ac_ext
6691
6692/* The mapping between symbol names and symbols.  */
6693LT_DLSYM_CONST struct {
6694  const char *name;
6695  void       *address;
6696}
6697lt__PROGRAM__LTX_preloaded_symbols[] =
6698{
6699  { "@PROGRAM@", (void *) 0 },
6700_LT_EOF
6701	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6702	  cat <<\_LT_EOF >> conftest.$ac_ext
6703  {0, (void *) 0}
6704};
6705
6706/* This works around a problem in FreeBSD linker */
6707#ifdef FREEBSD_WORKAROUND
6708static const void *lt_preloaded_setup() {
6709  return lt__PROGRAM__LTX_preloaded_symbols;
6710}
6711#endif
6712
6713#ifdef __cplusplus
6714}
6715#endif
6716_LT_EOF
6717	  # Now try linking the two files.
6718	  mv conftest.$ac_objext conftstm.$ac_objext
6719	  lt_globsym_save_LIBS=$LIBS
6720	  lt_globsym_save_CFLAGS=$CFLAGS
6721	  LIBS=conftstm.$ac_objext
6722	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6723	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6724  (eval $ac_link) 2>&5
6725  ac_status=$?
6726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6727  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6728	    pipe_works=yes
6729	  fi
6730	  LIBS=$lt_globsym_save_LIBS
6731	  CFLAGS=$lt_globsym_save_CFLAGS
6732	else
6733	  echo "cannot find nm_test_func in $nlist" >&5
6734	fi
6735      else
6736	echo "cannot find nm_test_var in $nlist" >&5
6737      fi
6738    else
6739      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6740    fi
6741  else
6742    echo "$progname: failed program was:" >&5
6743    cat conftest.$ac_ext >&5
6744  fi
6745  rm -rf conftest* conftst*
6746
6747  # Do not use the global_symbol_pipe unless it works.
6748  if test yes = "$pipe_works"; then
6749    break
6750  else
6751    lt_cv_sys_global_symbol_pipe=
6752  fi
6753done
6754
6755fi
6756
6757if test -z "$lt_cv_sys_global_symbol_pipe"; then
6758  lt_cv_sys_global_symbol_to_cdecl=
6759fi
6760if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6762$as_echo "failed" >&6; }
6763else
6764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6765$as_echo "ok" >&6; }
6766fi
6767
6768# Response file support.
6769if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6770  nm_file_list_spec='@'
6771elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6772  nm_file_list_spec='@'
6773fi
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6812$as_echo_n "checking for sysroot... " >&6; }
6813
6814# Check whether --with-sysroot was given.
6815if test "${with_sysroot+set}" = set; then :
6816  withval=$with_sysroot;
6817else
6818  with_sysroot=no
6819fi
6820
6821
6822lt_sysroot=
6823case $with_sysroot in #(
6824 yes)
6825   if test yes = "$GCC"; then
6826     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6827   fi
6828   ;; #(
6829 /*)
6830   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6831   ;; #(
6832 no|'')
6833   ;; #(
6834 *)
6835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6836$as_echo "$with_sysroot" >&6; }
6837   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6838   ;;
6839esac
6840
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6842$as_echo "${lt_sysroot:-no}" >&6; }
6843
6844
6845
6846
6847
6848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6849$as_echo_n "checking for a working dd... " >&6; }
6850if ${ac_cv_path_lt_DD+:} false; then :
6851  $as_echo_n "(cached) " >&6
6852else
6853  printf 0123456789abcdef0123456789abcdef >conftest.i
6854cat conftest.i conftest.i >conftest2.i
6855: ${lt_DD:=$DD}
6856if test -z "$lt_DD"; then
6857  ac_path_lt_DD_found=false
6858  # Loop through the user's path and test for each of PROGNAME-LIST
6859  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860for as_dir in $PATH
6861do
6862  IFS=$as_save_IFS
6863  test -z "$as_dir" && as_dir=.
6864    for ac_prog in dd; do
6865    for ac_exec_ext in '' $ac_executable_extensions; do
6866      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6867      as_fn_executable_p "$ac_path_lt_DD" || continue
6868if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6869  cmp -s conftest.i conftest.out \
6870  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6871fi
6872      $ac_path_lt_DD_found && break 3
6873    done
6874  done
6875  done
6876IFS=$as_save_IFS
6877  if test -z "$ac_cv_path_lt_DD"; then
6878    :
6879  fi
6880else
6881  ac_cv_path_lt_DD=$lt_DD
6882fi
6883
6884rm -f conftest.i conftest2.i conftest.out
6885fi
6886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6887$as_echo "$ac_cv_path_lt_DD" >&6; }
6888
6889
6890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6891$as_echo_n "checking how to truncate binary pipes... " >&6; }
6892if ${lt_cv_truncate_bin+:} false; then :
6893  $as_echo_n "(cached) " >&6
6894else
6895  printf 0123456789abcdef0123456789abcdef >conftest.i
6896cat conftest.i conftest.i >conftest2.i
6897lt_cv_truncate_bin=
6898if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6899  cmp -s conftest.i conftest.out \
6900  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6901fi
6902rm -f conftest.i conftest2.i conftest.out
6903test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6904fi
6905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6906$as_echo "$lt_cv_truncate_bin" >&6; }
6907
6908
6909
6910
6911
6912
6913
6914# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6915func_cc_basename ()
6916{
6917    for cc_temp in $*""; do
6918      case $cc_temp in
6919        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6920        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6921        \-*) ;;
6922        *) break;;
6923      esac
6924    done
6925    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6926}
6927
6928# Check whether --enable-libtool-lock was given.
6929if test "${enable_libtool_lock+set}" = set; then :
6930  enableval=$enable_libtool_lock;
6931fi
6932
6933test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6934
6935# Some flags need to be propagated to the compiler or linker for good
6936# libtool support.
6937case $host in
6938ia64-*-hpux*)
6939  # Find out what ABI is being produced by ac_compile, and set mode
6940  # options accordingly.
6941  echo 'int i;' > conftest.$ac_ext
6942  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6943  (eval $ac_compile) 2>&5
6944  ac_status=$?
6945  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6946  test $ac_status = 0; }; then
6947    case `/usr/bin/file conftest.$ac_objext` in
6948      *ELF-32*)
6949	HPUX_IA64_MODE=32
6950	;;
6951      *ELF-64*)
6952	HPUX_IA64_MODE=64
6953	;;
6954    esac
6955  fi
6956  rm -rf conftest*
6957  ;;
6958*-*-irix6*)
6959  # Find out what ABI is being produced by ac_compile, and set linker
6960  # options accordingly.
6961  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6962  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6963  (eval $ac_compile) 2>&5
6964  ac_status=$?
6965  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6966  test $ac_status = 0; }; then
6967    if test yes = "$lt_cv_prog_gnu_ld"; then
6968      case `/usr/bin/file conftest.$ac_objext` in
6969	*32-bit*)
6970	  LD="${LD-ld} -melf32bsmip"
6971	  ;;
6972	*N32*)
6973	  LD="${LD-ld} -melf32bmipn32"
6974	  ;;
6975	*64-bit*)
6976	  LD="${LD-ld} -melf64bmip"
6977	;;
6978      esac
6979    else
6980      case `/usr/bin/file conftest.$ac_objext` in
6981	*32-bit*)
6982	  LD="${LD-ld} -32"
6983	  ;;
6984	*N32*)
6985	  LD="${LD-ld} -n32"
6986	  ;;
6987	*64-bit*)
6988	  LD="${LD-ld} -64"
6989	  ;;
6990      esac
6991    fi
6992  fi
6993  rm -rf conftest*
6994  ;;
6995
6996mips64*-*linux*)
6997  # Find out what ABI is being produced by ac_compile, and set linker
6998  # options accordingly.
6999  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7000  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7001  (eval $ac_compile) 2>&5
7002  ac_status=$?
7003  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7004  test $ac_status = 0; }; then
7005    emul=elf
7006    case `/usr/bin/file conftest.$ac_objext` in
7007      *32-bit*)
7008	emul="${emul}32"
7009	;;
7010      *64-bit*)
7011	emul="${emul}64"
7012	;;
7013    esac
7014    case `/usr/bin/file conftest.$ac_objext` in
7015      *MSB*)
7016	emul="${emul}btsmip"
7017	;;
7018      *LSB*)
7019	emul="${emul}ltsmip"
7020	;;
7021    esac
7022    case `/usr/bin/file conftest.$ac_objext` in
7023      *N32*)
7024	emul="${emul}n32"
7025	;;
7026    esac
7027    LD="${LD-ld} -m $emul"
7028  fi
7029  rm -rf conftest*
7030  ;;
7031
7032x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7033s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7034  # Find out what ABI is being produced by ac_compile, and set linker
7035  # options accordingly.  Note that the listed cases only cover the
7036  # situations where additional linker options are needed (such as when
7037  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7038  # vice versa); the common cases where no linker options are needed do
7039  # not appear in the list.
7040  echo 'int i;' > conftest.$ac_ext
7041  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7042  (eval $ac_compile) 2>&5
7043  ac_status=$?
7044  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7045  test $ac_status = 0; }; then
7046    case `/usr/bin/file conftest.o` in
7047      *32-bit*)
7048	case $host in
7049	  x86_64-*kfreebsd*-gnu)
7050	    LD="${LD-ld} -m elf_i386_fbsd"
7051	    ;;
7052	  x86_64-*linux*)
7053	    case `/usr/bin/file conftest.o` in
7054	      *x86-64*)
7055		LD="${LD-ld} -m elf32_x86_64"
7056		;;
7057	      *)
7058		LD="${LD-ld} -m elf_i386"
7059		;;
7060	    esac
7061	    ;;
7062	  powerpc64le-*linux*)
7063	    LD="${LD-ld} -m elf32lppclinux"
7064	    ;;
7065	  powerpc64-*linux*)
7066	    LD="${LD-ld} -m elf32ppclinux"
7067	    ;;
7068	  s390x-*linux*)
7069	    LD="${LD-ld} -m elf_s390"
7070	    ;;
7071	  sparc64-*linux*)
7072	    LD="${LD-ld} -m elf32_sparc"
7073	    ;;
7074	esac
7075	;;
7076      *64-bit*)
7077	case $host in
7078	  x86_64-*kfreebsd*-gnu)
7079	    LD="${LD-ld} -m elf_x86_64_fbsd"
7080	    ;;
7081	  x86_64-*linux*)
7082	    LD="${LD-ld} -m elf_x86_64"
7083	    ;;
7084	  powerpcle-*linux*)
7085	    LD="${LD-ld} -m elf64lppc"
7086	    ;;
7087	  powerpc-*linux*)
7088	    LD="${LD-ld} -m elf64ppc"
7089	    ;;
7090	  s390*-*linux*|s390*-*tpf*)
7091	    LD="${LD-ld} -m elf64_s390"
7092	    ;;
7093	  sparc*-*linux*)
7094	    LD="${LD-ld} -m elf64_sparc"
7095	    ;;
7096	esac
7097	;;
7098    esac
7099  fi
7100  rm -rf conftest*
7101  ;;
7102
7103*-*-sco3.2v5*)
7104  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7105  SAVE_CFLAGS=$CFLAGS
7106  CFLAGS="$CFLAGS -belf"
7107  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7108$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7109if ${lt_cv_cc_needs_belf+:} false; then :
7110  $as_echo_n "(cached) " >&6
7111else
7112  ac_ext=c
7113ac_cpp='$CPP $CPPFLAGS'
7114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7116ac_compiler_gnu=$ac_cv_c_compiler_gnu
7117
7118     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7119/* end confdefs.h.  */
7120
7121int
7122main ()
7123{
7124
7125  ;
7126  return 0;
7127}
7128_ACEOF
7129if ac_fn_c_try_link "$LINENO"; then :
7130  lt_cv_cc_needs_belf=yes
7131else
7132  lt_cv_cc_needs_belf=no
7133fi
7134rm -f core conftest.err conftest.$ac_objext \
7135    conftest$ac_exeext conftest.$ac_ext
7136     ac_ext=c
7137ac_cpp='$CPP $CPPFLAGS'
7138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7140ac_compiler_gnu=$ac_cv_c_compiler_gnu
7141
7142fi
7143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7144$as_echo "$lt_cv_cc_needs_belf" >&6; }
7145  if test yes != "$lt_cv_cc_needs_belf"; then
7146    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7147    CFLAGS=$SAVE_CFLAGS
7148  fi
7149  ;;
7150*-*solaris*)
7151  # Find out what ABI is being produced by ac_compile, and set linker
7152  # options accordingly.
7153  echo 'int i;' > conftest.$ac_ext
7154  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7155  (eval $ac_compile) 2>&5
7156  ac_status=$?
7157  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7158  test $ac_status = 0; }; then
7159    case `/usr/bin/file conftest.o` in
7160    *64-bit*)
7161      case $lt_cv_prog_gnu_ld in
7162      yes*)
7163        case $host in
7164        i?86-*-solaris*|x86_64-*-solaris*)
7165          LD="${LD-ld} -m elf_x86_64"
7166          ;;
7167        sparc*-*-solaris*)
7168          LD="${LD-ld} -m elf64_sparc"
7169          ;;
7170        esac
7171        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7172        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7173          LD=${LD-ld}_sol2
7174        fi
7175        ;;
7176      *)
7177	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7178	  LD="${LD-ld} -64"
7179	fi
7180	;;
7181      esac
7182      ;;
7183    esac
7184  fi
7185  rm -rf conftest*
7186  ;;
7187esac
7188
7189need_locks=$enable_libtool_lock
7190
7191if test -n "$ac_tool_prefix"; then
7192  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7193set dummy ${ac_tool_prefix}mt; ac_word=$2
7194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7195$as_echo_n "checking for $ac_word... " >&6; }
7196if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7197  $as_echo_n "(cached) " >&6
7198else
7199  if test -n "$MANIFEST_TOOL"; then
7200  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7201else
7202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203for as_dir in $PATH
7204do
7205  IFS=$as_save_IFS
7206  test -z "$as_dir" && as_dir=.
7207    for ac_exec_ext in '' $ac_executable_extensions; do
7208  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7209    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7210    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7211    break 2
7212  fi
7213done
7214  done
7215IFS=$as_save_IFS
7216
7217fi
7218fi
7219MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7220if test -n "$MANIFEST_TOOL"; then
7221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7222$as_echo "$MANIFEST_TOOL" >&6; }
7223else
7224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7225$as_echo "no" >&6; }
7226fi
7227
7228
7229fi
7230if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7231  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7232  # Extract the first word of "mt", so it can be a program name with args.
7233set dummy mt; ac_word=$2
7234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7235$as_echo_n "checking for $ac_word... " >&6; }
7236if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7237  $as_echo_n "(cached) " >&6
7238else
7239  if test -n "$ac_ct_MANIFEST_TOOL"; then
7240  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7241else
7242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243for as_dir in $PATH
7244do
7245  IFS=$as_save_IFS
7246  test -z "$as_dir" && as_dir=.
7247    for ac_exec_ext in '' $ac_executable_extensions; do
7248  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7249    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7250    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7251    break 2
7252  fi
7253done
7254  done
7255IFS=$as_save_IFS
7256
7257fi
7258fi
7259ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7260if test -n "$ac_ct_MANIFEST_TOOL"; then
7261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7262$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7263else
7264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7265$as_echo "no" >&6; }
7266fi
7267
7268  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7269    MANIFEST_TOOL=":"
7270  else
7271    case $cross_compiling:$ac_tool_warned in
7272yes:)
7273{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7275ac_tool_warned=yes ;;
7276esac
7277    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7278  fi
7279else
7280  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7281fi
7282
7283test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7285$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7286if ${lt_cv_path_mainfest_tool+:} false; then :
7287  $as_echo_n "(cached) " >&6
7288else
7289  lt_cv_path_mainfest_tool=no
7290  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7291  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7292  cat conftest.err >&5
7293  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7294    lt_cv_path_mainfest_tool=yes
7295  fi
7296  rm -f conftest*
7297fi
7298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7299$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7300if test yes != "$lt_cv_path_mainfest_tool"; then
7301  MANIFEST_TOOL=:
7302fi
7303
7304
7305
7306
7307
7308
7309  case $host_os in
7310    rhapsody* | darwin*)
7311    if test -n "$ac_tool_prefix"; then
7312  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7313set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7315$as_echo_n "checking for $ac_word... " >&6; }
7316if ${ac_cv_prog_DSYMUTIL+:} false; then :
7317  $as_echo_n "(cached) " >&6
7318else
7319  if test -n "$DSYMUTIL"; then
7320  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7321else
7322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323for as_dir in $PATH
7324do
7325  IFS=$as_save_IFS
7326  test -z "$as_dir" && as_dir=.
7327    for ac_exec_ext in '' $ac_executable_extensions; do
7328  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7329    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7330    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7331    break 2
7332  fi
7333done
7334  done
7335IFS=$as_save_IFS
7336
7337fi
7338fi
7339DSYMUTIL=$ac_cv_prog_DSYMUTIL
7340if test -n "$DSYMUTIL"; then
7341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7342$as_echo "$DSYMUTIL" >&6; }
7343else
7344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345$as_echo "no" >&6; }
7346fi
7347
7348
7349fi
7350if test -z "$ac_cv_prog_DSYMUTIL"; then
7351  ac_ct_DSYMUTIL=$DSYMUTIL
7352  # Extract the first word of "dsymutil", so it can be a program name with args.
7353set dummy dsymutil; ac_word=$2
7354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355$as_echo_n "checking for $ac_word... " >&6; }
7356if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7357  $as_echo_n "(cached) " >&6
7358else
7359  if test -n "$ac_ct_DSYMUTIL"; then
7360  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7361else
7362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363for as_dir in $PATH
7364do
7365  IFS=$as_save_IFS
7366  test -z "$as_dir" && as_dir=.
7367    for ac_exec_ext in '' $ac_executable_extensions; do
7368  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7369    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371    break 2
7372  fi
7373done
7374  done
7375IFS=$as_save_IFS
7376
7377fi
7378fi
7379ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7380if test -n "$ac_ct_DSYMUTIL"; then
7381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7382$as_echo "$ac_ct_DSYMUTIL" >&6; }
7383else
7384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385$as_echo "no" >&6; }
7386fi
7387
7388  if test "x$ac_ct_DSYMUTIL" = x; then
7389    DSYMUTIL=":"
7390  else
7391    case $cross_compiling:$ac_tool_warned in
7392yes:)
7393{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7394$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7395ac_tool_warned=yes ;;
7396esac
7397    DSYMUTIL=$ac_ct_DSYMUTIL
7398  fi
7399else
7400  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7401fi
7402
7403    if test -n "$ac_tool_prefix"; then
7404  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7405set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407$as_echo_n "checking for $ac_word... " >&6; }
7408if ${ac_cv_prog_NMEDIT+:} false; then :
7409  $as_echo_n "(cached) " >&6
7410else
7411  if test -n "$NMEDIT"; then
7412  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7413else
7414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415for as_dir in $PATH
7416do
7417  IFS=$as_save_IFS
7418  test -z "$as_dir" && as_dir=.
7419    for ac_exec_ext in '' $ac_executable_extensions; do
7420  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7421    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7422    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423    break 2
7424  fi
7425done
7426  done
7427IFS=$as_save_IFS
7428
7429fi
7430fi
7431NMEDIT=$ac_cv_prog_NMEDIT
7432if test -n "$NMEDIT"; then
7433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7434$as_echo "$NMEDIT" >&6; }
7435else
7436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437$as_echo "no" >&6; }
7438fi
7439
7440
7441fi
7442if test -z "$ac_cv_prog_NMEDIT"; then
7443  ac_ct_NMEDIT=$NMEDIT
7444  # Extract the first word of "nmedit", so it can be a program name with args.
7445set dummy nmedit; ac_word=$2
7446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447$as_echo_n "checking for $ac_word... " >&6; }
7448if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7449  $as_echo_n "(cached) " >&6
7450else
7451  if test -n "$ac_ct_NMEDIT"; then
7452  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7453else
7454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455for as_dir in $PATH
7456do
7457  IFS=$as_save_IFS
7458  test -z "$as_dir" && as_dir=.
7459    for ac_exec_ext in '' $ac_executable_extensions; do
7460  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7461    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7462    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463    break 2
7464  fi
7465done
7466  done
7467IFS=$as_save_IFS
7468
7469fi
7470fi
7471ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7472if test -n "$ac_ct_NMEDIT"; then
7473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7474$as_echo "$ac_ct_NMEDIT" >&6; }
7475else
7476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477$as_echo "no" >&6; }
7478fi
7479
7480  if test "x$ac_ct_NMEDIT" = x; then
7481    NMEDIT=":"
7482  else
7483    case $cross_compiling:$ac_tool_warned in
7484yes:)
7485{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7486$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7487ac_tool_warned=yes ;;
7488esac
7489    NMEDIT=$ac_ct_NMEDIT
7490  fi
7491else
7492  NMEDIT="$ac_cv_prog_NMEDIT"
7493fi
7494
7495    if test -n "$ac_tool_prefix"; then
7496  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7497set dummy ${ac_tool_prefix}lipo; ac_word=$2
7498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7499$as_echo_n "checking for $ac_word... " >&6; }
7500if ${ac_cv_prog_LIPO+:} false; then :
7501  $as_echo_n "(cached) " >&6
7502else
7503  if test -n "$LIPO"; then
7504  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7505else
7506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507for as_dir in $PATH
7508do
7509  IFS=$as_save_IFS
7510  test -z "$as_dir" && as_dir=.
7511    for ac_exec_ext in '' $ac_executable_extensions; do
7512  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7513    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7515    break 2
7516  fi
7517done
7518  done
7519IFS=$as_save_IFS
7520
7521fi
7522fi
7523LIPO=$ac_cv_prog_LIPO
7524if test -n "$LIPO"; then
7525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7526$as_echo "$LIPO" >&6; }
7527else
7528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7529$as_echo "no" >&6; }
7530fi
7531
7532
7533fi
7534if test -z "$ac_cv_prog_LIPO"; then
7535  ac_ct_LIPO=$LIPO
7536  # Extract the first word of "lipo", so it can be a program name with args.
7537set dummy lipo; ac_word=$2
7538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7539$as_echo_n "checking for $ac_word... " >&6; }
7540if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7541  $as_echo_n "(cached) " >&6
7542else
7543  if test -n "$ac_ct_LIPO"; then
7544  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7545else
7546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547for as_dir in $PATH
7548do
7549  IFS=$as_save_IFS
7550  test -z "$as_dir" && as_dir=.
7551    for ac_exec_ext in '' $ac_executable_extensions; do
7552  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7553    ac_cv_prog_ac_ct_LIPO="lipo"
7554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7555    break 2
7556  fi
7557done
7558  done
7559IFS=$as_save_IFS
7560
7561fi
7562fi
7563ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7564if test -n "$ac_ct_LIPO"; then
7565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7566$as_echo "$ac_ct_LIPO" >&6; }
7567else
7568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569$as_echo "no" >&6; }
7570fi
7571
7572  if test "x$ac_ct_LIPO" = x; then
7573    LIPO=":"
7574  else
7575    case $cross_compiling:$ac_tool_warned in
7576yes:)
7577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7579ac_tool_warned=yes ;;
7580esac
7581    LIPO=$ac_ct_LIPO
7582  fi
7583else
7584  LIPO="$ac_cv_prog_LIPO"
7585fi
7586
7587    if test -n "$ac_tool_prefix"; then
7588  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7589set dummy ${ac_tool_prefix}otool; ac_word=$2
7590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7591$as_echo_n "checking for $ac_word... " >&6; }
7592if ${ac_cv_prog_OTOOL+:} false; then :
7593  $as_echo_n "(cached) " >&6
7594else
7595  if test -n "$OTOOL"; then
7596  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7597else
7598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599for as_dir in $PATH
7600do
7601  IFS=$as_save_IFS
7602  test -z "$as_dir" && as_dir=.
7603    for ac_exec_ext in '' $ac_executable_extensions; do
7604  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7605    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7606    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7607    break 2
7608  fi
7609done
7610  done
7611IFS=$as_save_IFS
7612
7613fi
7614fi
7615OTOOL=$ac_cv_prog_OTOOL
7616if test -n "$OTOOL"; then
7617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7618$as_echo "$OTOOL" >&6; }
7619else
7620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621$as_echo "no" >&6; }
7622fi
7623
7624
7625fi
7626if test -z "$ac_cv_prog_OTOOL"; then
7627  ac_ct_OTOOL=$OTOOL
7628  # Extract the first word of "otool", so it can be a program name with args.
7629set dummy otool; ac_word=$2
7630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7631$as_echo_n "checking for $ac_word... " >&6; }
7632if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7633  $as_echo_n "(cached) " >&6
7634else
7635  if test -n "$ac_ct_OTOOL"; then
7636  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7637else
7638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639for as_dir in $PATH
7640do
7641  IFS=$as_save_IFS
7642  test -z "$as_dir" && as_dir=.
7643    for ac_exec_ext in '' $ac_executable_extensions; do
7644  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7645    ac_cv_prog_ac_ct_OTOOL="otool"
7646    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7647    break 2
7648  fi
7649done
7650  done
7651IFS=$as_save_IFS
7652
7653fi
7654fi
7655ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7656if test -n "$ac_ct_OTOOL"; then
7657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7658$as_echo "$ac_ct_OTOOL" >&6; }
7659else
7660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661$as_echo "no" >&6; }
7662fi
7663
7664  if test "x$ac_ct_OTOOL" = x; then
7665    OTOOL=":"
7666  else
7667    case $cross_compiling:$ac_tool_warned in
7668yes:)
7669{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7670$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7671ac_tool_warned=yes ;;
7672esac
7673    OTOOL=$ac_ct_OTOOL
7674  fi
7675else
7676  OTOOL="$ac_cv_prog_OTOOL"
7677fi
7678
7679    if test -n "$ac_tool_prefix"; then
7680  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7681set dummy ${ac_tool_prefix}otool64; ac_word=$2
7682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7683$as_echo_n "checking for $ac_word... " >&6; }
7684if ${ac_cv_prog_OTOOL64+:} false; then :
7685  $as_echo_n "(cached) " >&6
7686else
7687  if test -n "$OTOOL64"; then
7688  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7689else
7690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691for as_dir in $PATH
7692do
7693  IFS=$as_save_IFS
7694  test -z "$as_dir" && as_dir=.
7695    for ac_exec_ext in '' $ac_executable_extensions; do
7696  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7697    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7698    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7699    break 2
7700  fi
7701done
7702  done
7703IFS=$as_save_IFS
7704
7705fi
7706fi
7707OTOOL64=$ac_cv_prog_OTOOL64
7708if test -n "$OTOOL64"; then
7709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7710$as_echo "$OTOOL64" >&6; }
7711else
7712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713$as_echo "no" >&6; }
7714fi
7715
7716
7717fi
7718if test -z "$ac_cv_prog_OTOOL64"; then
7719  ac_ct_OTOOL64=$OTOOL64
7720  # Extract the first word of "otool64", so it can be a program name with args.
7721set dummy otool64; ac_word=$2
7722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7723$as_echo_n "checking for $ac_word... " >&6; }
7724if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7725  $as_echo_n "(cached) " >&6
7726else
7727  if test -n "$ac_ct_OTOOL64"; then
7728  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7729else
7730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731for as_dir in $PATH
7732do
7733  IFS=$as_save_IFS
7734  test -z "$as_dir" && as_dir=.
7735    for ac_exec_ext in '' $ac_executable_extensions; do
7736  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7737    ac_cv_prog_ac_ct_OTOOL64="otool64"
7738    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7739    break 2
7740  fi
7741done
7742  done
7743IFS=$as_save_IFS
7744
7745fi
7746fi
7747ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7748if test -n "$ac_ct_OTOOL64"; then
7749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7750$as_echo "$ac_ct_OTOOL64" >&6; }
7751else
7752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753$as_echo "no" >&6; }
7754fi
7755
7756  if test "x$ac_ct_OTOOL64" = x; then
7757    OTOOL64=":"
7758  else
7759    case $cross_compiling:$ac_tool_warned in
7760yes:)
7761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7763ac_tool_warned=yes ;;
7764esac
7765    OTOOL64=$ac_ct_OTOOL64
7766  fi
7767else
7768  OTOOL64="$ac_cv_prog_OTOOL64"
7769fi
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7798$as_echo_n "checking for -single_module linker flag... " >&6; }
7799if ${lt_cv_apple_cc_single_mod+:} false; then :
7800  $as_echo_n "(cached) " >&6
7801else
7802  lt_cv_apple_cc_single_mod=no
7803      if test -z "$LT_MULTI_MODULE"; then
7804	# By default we will add the -single_module flag. You can override
7805	# by either setting the environment variable LT_MULTI_MODULE
7806	# non-empty at configure time, or by adding -multi_module to the
7807	# link flags.
7808	rm -rf libconftest.dylib*
7809	echo "int foo(void){return 1;}" > conftest.c
7810	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7811-dynamiclib -Wl,-single_module conftest.c" >&5
7812	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7813	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7814        _lt_result=$?
7815	# If there is a non-empty error log, and "single_module"
7816	# appears in it, assume the flag caused a linker warning
7817        if test -s conftest.err && $GREP single_module conftest.err; then
7818	  cat conftest.err >&5
7819	# Otherwise, if the output was created with a 0 exit code from
7820	# the compiler, it worked.
7821	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7822	  lt_cv_apple_cc_single_mod=yes
7823	else
7824	  cat conftest.err >&5
7825	fi
7826	rm -rf libconftest.dylib*
7827	rm -f conftest.*
7828      fi
7829fi
7830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7831$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7832
7833    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7834$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7835if ${lt_cv_ld_exported_symbols_list+:} false; then :
7836  $as_echo_n "(cached) " >&6
7837else
7838  lt_cv_ld_exported_symbols_list=no
7839      save_LDFLAGS=$LDFLAGS
7840      echo "_main" > conftest.sym
7841      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7842      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843/* end confdefs.h.  */
7844
7845int
7846main ()
7847{
7848
7849  ;
7850  return 0;
7851}
7852_ACEOF
7853if ac_fn_c_try_link "$LINENO"; then :
7854  lt_cv_ld_exported_symbols_list=yes
7855else
7856  lt_cv_ld_exported_symbols_list=no
7857fi
7858rm -f core conftest.err conftest.$ac_objext \
7859    conftest$ac_exeext conftest.$ac_ext
7860	LDFLAGS=$save_LDFLAGS
7861
7862fi
7863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7864$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7865
7866    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7867$as_echo_n "checking for -force_load linker flag... " >&6; }
7868if ${lt_cv_ld_force_load+:} false; then :
7869  $as_echo_n "(cached) " >&6
7870else
7871  lt_cv_ld_force_load=no
7872      cat > conftest.c << _LT_EOF
7873int forced_loaded() { return 2;}
7874_LT_EOF
7875      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7876      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7877      echo "$AR cru libconftest.a conftest.o" >&5
7878      $AR cru libconftest.a conftest.o 2>&5
7879      echo "$RANLIB libconftest.a" >&5
7880      $RANLIB libconftest.a 2>&5
7881      cat > conftest.c << _LT_EOF
7882int main() { return 0;}
7883_LT_EOF
7884      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7885      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7886      _lt_result=$?
7887      if test -s conftest.err && $GREP force_load conftest.err; then
7888	cat conftest.err >&5
7889      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7890	lt_cv_ld_force_load=yes
7891      else
7892	cat conftest.err >&5
7893      fi
7894        rm -f conftest.err libconftest.a conftest conftest.c
7895        rm -rf conftest.dSYM
7896
7897fi
7898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7899$as_echo "$lt_cv_ld_force_load" >&6; }
7900    case $host_os in
7901    rhapsody* | darwin1.[012])
7902      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7903    darwin1.*)
7904      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7905    darwin*) # darwin 5.x on
7906      # if running on 10.5 or later, the deployment target defaults
7907      # to the OS version, if on x86, and 10.4, the deployment
7908      # target defaults to 10.4. Don't you love it?
7909      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7910	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7911	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7912	10.[012][,.]*)
7913	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7914	10.*)
7915	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7916      esac
7917    ;;
7918  esac
7919    if test yes = "$lt_cv_apple_cc_single_mod"; then
7920      _lt_dar_single_mod='$single_module'
7921    fi
7922    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7923      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7924    else
7925      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7926    fi
7927    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7928      _lt_dsymutil='~$DSYMUTIL $lib || :'
7929    else
7930      _lt_dsymutil=
7931    fi
7932    ;;
7933  esac
7934
7935# func_munge_path_list VARIABLE PATH
7936# -----------------------------------
7937# VARIABLE is name of variable containing _space_ separated list of
7938# directories to be munged by the contents of PATH, which is string
7939# having a format:
7940# "DIR[:DIR]:"
7941#       string "DIR[ DIR]" will be prepended to VARIABLE
7942# ":DIR[:DIR]"
7943#       string "DIR[ DIR]" will be appended to VARIABLE
7944# "DIRP[:DIRP]::[DIRA:]DIRA"
7945#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7946#       "DIRA[ DIRA]" will be appended to VARIABLE
7947# "DIR[:DIR]"
7948#       VARIABLE will be replaced by "DIR[ DIR]"
7949func_munge_path_list ()
7950{
7951    case x$2 in
7952    x)
7953        ;;
7954    *:)
7955        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7956        ;;
7957    x:*)
7958        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7959        ;;
7960    *::*)
7961        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7962        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7963        ;;
7964    *)
7965        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7966        ;;
7967    esac
7968}
7969
7970for ac_header in dlfcn.h
7971do :
7972  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7973"
7974if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7975  cat >>confdefs.h <<_ACEOF
7976#define HAVE_DLFCN_H 1
7977_ACEOF
7978
7979fi
7980
7981done
7982
7983
7984
7985
7986
7987# Set options
7988
7989
7990
7991        enable_dlopen=no
7992
7993
7994  enable_win32_dll=no
7995
7996
7997            # Check whether --enable-shared was given.
7998if test "${enable_shared+set}" = set; then :
7999  enableval=$enable_shared; p=${PACKAGE-default}
8000    case $enableval in
8001    yes) enable_shared=yes ;;
8002    no) enable_shared=no ;;
8003    *)
8004      enable_shared=no
8005      # Look at the argument we got.  We use all the common list separators.
8006      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8007      for pkg in $enableval; do
8008	IFS=$lt_save_ifs
8009	if test "X$pkg" = "X$p"; then
8010	  enable_shared=yes
8011	fi
8012      done
8013      IFS=$lt_save_ifs
8014      ;;
8015    esac
8016else
8017  enable_shared=yes
8018fi
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028  # Check whether --enable-static was given.
8029if test "${enable_static+set}" = set; then :
8030  enableval=$enable_static; p=${PACKAGE-default}
8031    case $enableval in
8032    yes) enable_static=yes ;;
8033    no) enable_static=no ;;
8034    *)
8035     enable_static=no
8036      # Look at the argument we got.  We use all the common list separators.
8037      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8038      for pkg in $enableval; do
8039	IFS=$lt_save_ifs
8040	if test "X$pkg" = "X$p"; then
8041	  enable_static=yes
8042	fi
8043      done
8044      IFS=$lt_save_ifs
8045      ;;
8046    esac
8047else
8048  enable_static=yes
8049fi
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060# Check whether --with-pic was given.
8061if test "${with_pic+set}" = set; then :
8062  withval=$with_pic; lt_p=${PACKAGE-default}
8063    case $withval in
8064    yes|no) pic_mode=$withval ;;
8065    *)
8066      pic_mode=default
8067      # Look at the argument we got.  We use all the common list separators.
8068      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8069      for lt_pkg in $withval; do
8070	IFS=$lt_save_ifs
8071	if test "X$lt_pkg" = "X$lt_p"; then
8072	  pic_mode=yes
8073	fi
8074      done
8075      IFS=$lt_save_ifs
8076      ;;
8077    esac
8078else
8079  pic_mode=default
8080fi
8081
8082
8083
8084
8085
8086
8087
8088
8089  # Check whether --enable-fast-install was given.
8090if test "${enable_fast_install+set}" = set; then :
8091  enableval=$enable_fast_install; p=${PACKAGE-default}
8092    case $enableval in
8093    yes) enable_fast_install=yes ;;
8094    no) enable_fast_install=no ;;
8095    *)
8096      enable_fast_install=no
8097      # Look at the argument we got.  We use all the common list separators.
8098      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8099      for pkg in $enableval; do
8100	IFS=$lt_save_ifs
8101	if test "X$pkg" = "X$p"; then
8102	  enable_fast_install=yes
8103	fi
8104      done
8105      IFS=$lt_save_ifs
8106      ;;
8107    esac
8108else
8109  enable_fast_install=yes
8110fi
8111
8112
8113
8114
8115
8116
8117
8118
8119  shared_archive_member_spec=
8120case $host,$enable_shared in
8121power*-*-aix[5-9]*,yes)
8122  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8123$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8124
8125# Check whether --with-aix-soname was given.
8126if test "${with_aix_soname+set}" = set; then :
8127  withval=$with_aix_soname; case $withval in
8128    aix|svr4|both)
8129      ;;
8130    *)
8131      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8132      ;;
8133    esac
8134    lt_cv_with_aix_soname=$with_aix_soname
8135else
8136  if ${lt_cv_with_aix_soname+:} false; then :
8137  $as_echo_n "(cached) " >&6
8138else
8139  lt_cv_with_aix_soname=aix
8140fi
8141
8142    with_aix_soname=$lt_cv_with_aix_soname
8143fi
8144
8145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8146$as_echo "$with_aix_soname" >&6; }
8147  if test aix != "$with_aix_soname"; then
8148    # For the AIX way of multilib, we name the shared archive member
8149    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8150    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8151    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8152    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8153    if test 64 = "${OBJECT_MODE-32}"; then
8154      shared_archive_member_spec=shr_64
8155    else
8156      shared_archive_member_spec=shr
8157    fi
8158  fi
8159  ;;
8160*)
8161  with_aix_soname=aix
8162  ;;
8163esac
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174# This can be used to rebuild libtool when needed
8175LIBTOOL_DEPS=$ltmain
8176
8177# Always use our own libtool.
8178LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209test -z "$LN_S" && LN_S="ln -s"
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224if test -n "${ZSH_VERSION+set}"; then
8225   setopt NO_GLOB_SUBST
8226fi
8227
8228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8229$as_echo_n "checking for objdir... " >&6; }
8230if ${lt_cv_objdir+:} false; then :
8231  $as_echo_n "(cached) " >&6
8232else
8233  rm -f .libs 2>/dev/null
8234mkdir .libs 2>/dev/null
8235if test -d .libs; then
8236  lt_cv_objdir=.libs
8237else
8238  # MS-DOS does not allow filenames that begin with a dot.
8239  lt_cv_objdir=_libs
8240fi
8241rmdir .libs 2>/dev/null
8242fi
8243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8244$as_echo "$lt_cv_objdir" >&6; }
8245objdir=$lt_cv_objdir
8246
8247
8248
8249
8250
8251cat >>confdefs.h <<_ACEOF
8252#define LT_OBJDIR "$lt_cv_objdir/"
8253_ACEOF
8254
8255
8256
8257
8258case $host_os in
8259aix3*)
8260  # AIX sometimes has problems with the GCC collect2 program.  For some
8261  # reason, if we set the COLLECT_NAMES environment variable, the problems
8262  # vanish in a puff of smoke.
8263  if test set != "${COLLECT_NAMES+set}"; then
8264    COLLECT_NAMES=
8265    export COLLECT_NAMES
8266  fi
8267  ;;
8268esac
8269
8270# Global variables:
8271ofile=libtool
8272can_build_shared=yes
8273
8274# All known linkers require a '.a' archive for static linking (except MSVC,
8275# which needs '.lib').
8276libext=a
8277
8278with_gnu_ld=$lt_cv_prog_gnu_ld
8279
8280old_CC=$CC
8281old_CFLAGS=$CFLAGS
8282
8283# Set sane defaults for various variables
8284test -z "$CC" && CC=cc
8285test -z "$LTCC" && LTCC=$CC
8286test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8287test -z "$LD" && LD=ld
8288test -z "$ac_objext" && ac_objext=o
8289
8290func_cc_basename $compiler
8291cc_basename=$func_cc_basename_result
8292
8293
8294# Only perform the check for file, if the check method requires it
8295test -z "$MAGIC_CMD" && MAGIC_CMD=file
8296case $deplibs_check_method in
8297file_magic*)
8298  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8299    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8300$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8301if ${lt_cv_path_MAGIC_CMD+:} false; then :
8302  $as_echo_n "(cached) " >&6
8303else
8304  case $MAGIC_CMD in
8305[\\/*] |  ?:[\\/]*)
8306  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8307  ;;
8308*)
8309  lt_save_MAGIC_CMD=$MAGIC_CMD
8310  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8311  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8312  for ac_dir in $ac_dummy; do
8313    IFS=$lt_save_ifs
8314    test -z "$ac_dir" && ac_dir=.
8315    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8316      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8317      if test -n "$file_magic_test_file"; then
8318	case $deplibs_check_method in
8319	"file_magic "*)
8320	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8321	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8322	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8323	    $EGREP "$file_magic_regex" > /dev/null; then
8324	    :
8325	  else
8326	    cat <<_LT_EOF 1>&2
8327
8328*** Warning: the command libtool uses to detect shared libraries,
8329*** $file_magic_cmd, produces output that libtool cannot recognize.
8330*** The result is that libtool may fail to recognize shared libraries
8331*** as such.  This will affect the creation of libtool libraries that
8332*** depend on shared libraries, but programs linked with such libtool
8333*** libraries will work regardless of this problem.  Nevertheless, you
8334*** may want to report the problem to your system manager and/or to
8335*** bug-libtool@gnu.org
8336
8337_LT_EOF
8338	  fi ;;
8339	esac
8340      fi
8341      break
8342    fi
8343  done
8344  IFS=$lt_save_ifs
8345  MAGIC_CMD=$lt_save_MAGIC_CMD
8346  ;;
8347esac
8348fi
8349
8350MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8351if test -n "$MAGIC_CMD"; then
8352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8353$as_echo "$MAGIC_CMD" >&6; }
8354else
8355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8356$as_echo "no" >&6; }
8357fi
8358
8359
8360
8361
8362
8363if test -z "$lt_cv_path_MAGIC_CMD"; then
8364  if test -n "$ac_tool_prefix"; then
8365    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8366$as_echo_n "checking for file... " >&6; }
8367if ${lt_cv_path_MAGIC_CMD+:} false; then :
8368  $as_echo_n "(cached) " >&6
8369else
8370  case $MAGIC_CMD in
8371[\\/*] |  ?:[\\/]*)
8372  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8373  ;;
8374*)
8375  lt_save_MAGIC_CMD=$MAGIC_CMD
8376  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8377  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8378  for ac_dir in $ac_dummy; do
8379    IFS=$lt_save_ifs
8380    test -z "$ac_dir" && ac_dir=.
8381    if test -f "$ac_dir/file"; then
8382      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8383      if test -n "$file_magic_test_file"; then
8384	case $deplibs_check_method in
8385	"file_magic "*)
8386	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8387	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8388	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8389	    $EGREP "$file_magic_regex" > /dev/null; then
8390	    :
8391	  else
8392	    cat <<_LT_EOF 1>&2
8393
8394*** Warning: the command libtool uses to detect shared libraries,
8395*** $file_magic_cmd, produces output that libtool cannot recognize.
8396*** The result is that libtool may fail to recognize shared libraries
8397*** as such.  This will affect the creation of libtool libraries that
8398*** depend on shared libraries, but programs linked with such libtool
8399*** libraries will work regardless of this problem.  Nevertheless, you
8400*** may want to report the problem to your system manager and/or to
8401*** bug-libtool@gnu.org
8402
8403_LT_EOF
8404	  fi ;;
8405	esac
8406      fi
8407      break
8408    fi
8409  done
8410  IFS=$lt_save_ifs
8411  MAGIC_CMD=$lt_save_MAGIC_CMD
8412  ;;
8413esac
8414fi
8415
8416MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8417if test -n "$MAGIC_CMD"; then
8418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8419$as_echo "$MAGIC_CMD" >&6; }
8420else
8421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8422$as_echo "no" >&6; }
8423fi
8424
8425
8426  else
8427    MAGIC_CMD=:
8428  fi
8429fi
8430
8431  fi
8432  ;;
8433esac
8434
8435# Use C for the default configuration in the libtool script
8436
8437lt_save_CC=$CC
8438ac_ext=c
8439ac_cpp='$CPP $CPPFLAGS'
8440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8442ac_compiler_gnu=$ac_cv_c_compiler_gnu
8443
8444
8445# Source file extension for C test sources.
8446ac_ext=c
8447
8448# Object file extension for compiled C test sources.
8449objext=o
8450objext=$objext
8451
8452# Code to be used in simple compile tests
8453lt_simple_compile_test_code="int some_variable = 0;"
8454
8455# Code to be used in simple link tests
8456lt_simple_link_test_code='int main(){return(0);}'
8457
8458
8459
8460
8461
8462
8463
8464# If no C compiler was specified, use CC.
8465LTCC=${LTCC-"$CC"}
8466
8467# If no C compiler flags were specified, use CFLAGS.
8468LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8469
8470# Allow CC to be a program name with arguments.
8471compiler=$CC
8472
8473# Save the default compiler, since it gets overwritten when the other
8474# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8475compiler_DEFAULT=$CC
8476
8477# save warnings/boilerplate of simple test code
8478ac_outfile=conftest.$ac_objext
8479echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8480eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8481_lt_compiler_boilerplate=`cat conftest.err`
8482$RM conftest*
8483
8484ac_outfile=conftest.$ac_objext
8485echo "$lt_simple_link_test_code" >conftest.$ac_ext
8486eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8487_lt_linker_boilerplate=`cat conftest.err`
8488$RM -r conftest*
8489
8490
8491## CAVEAT EMPTOR:
8492## There is no encapsulation within the following macros, do not change
8493## the running order or otherwise move them around unless you know exactly
8494## what you are doing...
8495if test -n "$compiler"; then
8496
8497lt_prog_compiler_no_builtin_flag=
8498
8499if test yes = "$GCC"; then
8500  case $cc_basename in
8501  nvcc*)
8502    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8503  *)
8504    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8505  esac
8506
8507  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8508$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8509if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8510  $as_echo_n "(cached) " >&6
8511else
8512  lt_cv_prog_compiler_rtti_exceptions=no
8513   ac_outfile=conftest.$ac_objext
8514   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8515   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8516   # Insert the option either (1) after the last *FLAGS variable, or
8517   # (2) before a word containing "conftest.", or (3) at the end.
8518   # Note that $ac_compile itself does not contain backslashes and begins
8519   # with a dollar sign (not a hyphen), so the echo should work correctly.
8520   # The option is referenced via a variable to avoid confusing sed.
8521   lt_compile=`echo "$ac_compile" | $SED \
8522   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8523   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8524   -e 's:$: $lt_compiler_flag:'`
8525   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8526   (eval "$lt_compile" 2>conftest.err)
8527   ac_status=$?
8528   cat conftest.err >&5
8529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530   if (exit $ac_status) && test -s "$ac_outfile"; then
8531     # The compiler can only warn and ignore the option if not recognized
8532     # So say no if there are warnings other than the usual output.
8533     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8534     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8535     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8536       lt_cv_prog_compiler_rtti_exceptions=yes
8537     fi
8538   fi
8539   $RM conftest*
8540
8541fi
8542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8543$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8544
8545if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8546    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8547else
8548    :
8549fi
8550
8551fi
8552
8553
8554
8555
8556
8557
8558  lt_prog_compiler_wl=
8559lt_prog_compiler_pic=
8560lt_prog_compiler_static=
8561
8562
8563  if test yes = "$GCC"; then
8564    lt_prog_compiler_wl='-Wl,'
8565    lt_prog_compiler_static='-static'
8566
8567    case $host_os in
8568      aix*)
8569      # All AIX code is PIC.
8570      if test ia64 = "$host_cpu"; then
8571	# AIX 5 now supports IA64 processor
8572	lt_prog_compiler_static='-Bstatic'
8573      fi
8574      lt_prog_compiler_pic='-fPIC'
8575      ;;
8576
8577    amigaos*)
8578      case $host_cpu in
8579      powerpc)
8580            # see comment about AmigaOS4 .so support
8581            lt_prog_compiler_pic='-fPIC'
8582        ;;
8583      m68k)
8584            # FIXME: we need at least 68020 code to build shared libraries, but
8585            # adding the '-m68020' flag to GCC prevents building anything better,
8586            # like '-m68040'.
8587            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8588        ;;
8589      esac
8590      ;;
8591
8592    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8593      # PIC is the default for these OSes.
8594      ;;
8595
8596    mingw* | cygwin* | pw32* | os2* | cegcc*)
8597      # This hack is so that the source file can tell whether it is being
8598      # built for inclusion in a dll (and should export symbols for example).
8599      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8600      # (--disable-auto-import) libraries
8601      lt_prog_compiler_pic='-DDLL_EXPORT'
8602      case $host_os in
8603      os2*)
8604	lt_prog_compiler_static='$wl-static'
8605	;;
8606      esac
8607      ;;
8608
8609    darwin* | rhapsody*)
8610      # PIC is the default on this platform
8611      # Common symbols not allowed in MH_DYLIB files
8612      lt_prog_compiler_pic='-fno-common'
8613      ;;
8614
8615    haiku*)
8616      # PIC is the default for Haiku.
8617      # The "-static" flag exists, but is broken.
8618      lt_prog_compiler_static=
8619      ;;
8620
8621    hpux*)
8622      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8623      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8624      # sets the default TLS model and affects inlining.
8625      case $host_cpu in
8626      hppa*64*)
8627	# +Z the default
8628	;;
8629      *)
8630	lt_prog_compiler_pic='-fPIC'
8631	;;
8632      esac
8633      ;;
8634
8635    interix[3-9]*)
8636      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8637      # Instead, we relocate shared libraries at runtime.
8638      ;;
8639
8640    msdosdjgpp*)
8641      # Just because we use GCC doesn't mean we suddenly get shared libraries
8642      # on systems that don't support them.
8643      lt_prog_compiler_can_build_shared=no
8644      enable_shared=no
8645      ;;
8646
8647    *nto* | *qnx*)
8648      # QNX uses GNU C++, but need to define -shared option too, otherwise
8649      # it will coredump.
8650      lt_prog_compiler_pic='-fPIC -shared'
8651      ;;
8652
8653    sysv4*MP*)
8654      if test -d /usr/nec; then
8655	lt_prog_compiler_pic=-Kconform_pic
8656      fi
8657      ;;
8658
8659    *)
8660      lt_prog_compiler_pic='-fPIC'
8661      ;;
8662    esac
8663
8664    case $cc_basename in
8665    nvcc*) # Cuda Compiler Driver 2.2
8666      lt_prog_compiler_wl='-Xlinker '
8667      if test -n "$lt_prog_compiler_pic"; then
8668        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8669      fi
8670      ;;
8671    esac
8672  else
8673    # PORTME Check for flag to pass linker flags through the system compiler.
8674    case $host_os in
8675    aix*)
8676      lt_prog_compiler_wl='-Wl,'
8677      if test ia64 = "$host_cpu"; then
8678	# AIX 5 now supports IA64 processor
8679	lt_prog_compiler_static='-Bstatic'
8680      else
8681	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8682      fi
8683      ;;
8684
8685    darwin* | rhapsody*)
8686      # PIC is the default on this platform
8687      # Common symbols not allowed in MH_DYLIB files
8688      lt_prog_compiler_pic='-fno-common'
8689      case $cc_basename in
8690      nagfor*)
8691        # NAG Fortran compiler
8692        lt_prog_compiler_wl='-Wl,-Wl,,'
8693        lt_prog_compiler_pic='-PIC'
8694        lt_prog_compiler_static='-Bstatic'
8695        ;;
8696      esac
8697      ;;
8698
8699    mingw* | cygwin* | pw32* | os2* | cegcc*)
8700      # This hack is so that the source file can tell whether it is being
8701      # built for inclusion in a dll (and should export symbols for example).
8702      lt_prog_compiler_pic='-DDLL_EXPORT'
8703      case $host_os in
8704      os2*)
8705	lt_prog_compiler_static='$wl-static'
8706	;;
8707      esac
8708      ;;
8709
8710    hpux9* | hpux10* | hpux11*)
8711      lt_prog_compiler_wl='-Wl,'
8712      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8713      # not for PA HP-UX.
8714      case $host_cpu in
8715      hppa*64*|ia64*)
8716	# +Z the default
8717	;;
8718      *)
8719	lt_prog_compiler_pic='+Z'
8720	;;
8721      esac
8722      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8723      lt_prog_compiler_static='$wl-a ${wl}archive'
8724      ;;
8725
8726    irix5* | irix6* | nonstopux*)
8727      lt_prog_compiler_wl='-Wl,'
8728      # PIC (with -KPIC) is the default.
8729      lt_prog_compiler_static='-non_shared'
8730      ;;
8731
8732    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8733      case $cc_basename in
8734      # old Intel for x86_64, which still supported -KPIC.
8735      ecc*)
8736	lt_prog_compiler_wl='-Wl,'
8737	lt_prog_compiler_pic='-KPIC'
8738	lt_prog_compiler_static='-static'
8739        ;;
8740      # icc used to be incompatible with GCC.
8741      # ICC 10 doesn't accept -KPIC any more.
8742      icc* | ifort*)
8743	lt_prog_compiler_wl='-Wl,'
8744	lt_prog_compiler_pic='-fPIC'
8745	lt_prog_compiler_static='-static'
8746        ;;
8747      # Lahey Fortran 8.1.
8748      lf95*)
8749	lt_prog_compiler_wl='-Wl,'
8750	lt_prog_compiler_pic='--shared'
8751	lt_prog_compiler_static='--static'
8752	;;
8753      nagfor*)
8754	# NAG Fortran compiler
8755	lt_prog_compiler_wl='-Wl,-Wl,,'
8756	lt_prog_compiler_pic='-PIC'
8757	lt_prog_compiler_static='-Bstatic'
8758	;;
8759      tcc*)
8760	# Fabrice Bellard et al's Tiny C Compiler
8761	lt_prog_compiler_wl='-Wl,'
8762	lt_prog_compiler_pic='-fPIC'
8763	lt_prog_compiler_static='-static'
8764	;;
8765      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8766        # Portland Group compilers (*not* the Pentium gcc compiler,
8767	# which looks to be a dead project)
8768	lt_prog_compiler_wl='-Wl,'
8769	lt_prog_compiler_pic='-fpic'
8770	lt_prog_compiler_static='-Bstatic'
8771        ;;
8772      ccc*)
8773        lt_prog_compiler_wl='-Wl,'
8774        # All Alpha code is PIC.
8775        lt_prog_compiler_static='-non_shared'
8776        ;;
8777      xl* | bgxl* | bgf* | mpixl*)
8778	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8779	lt_prog_compiler_wl='-Wl,'
8780	lt_prog_compiler_pic='-qpic'
8781	lt_prog_compiler_static='-qstaticlink'
8782	;;
8783      *)
8784	case `$CC -V 2>&1 | sed 5q` in
8785	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8786	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8787	  lt_prog_compiler_pic='-KPIC'
8788	  lt_prog_compiler_static='-Bstatic'
8789	  lt_prog_compiler_wl=''
8790	  ;;
8791	*Sun\ F* | *Sun*Fortran*)
8792	  lt_prog_compiler_pic='-KPIC'
8793	  lt_prog_compiler_static='-Bstatic'
8794	  lt_prog_compiler_wl='-Qoption ld '
8795	  ;;
8796	*Sun\ C*)
8797	  # Sun C 5.9
8798	  lt_prog_compiler_pic='-KPIC'
8799	  lt_prog_compiler_static='-Bstatic'
8800	  lt_prog_compiler_wl='-Wl,'
8801	  ;;
8802        *Intel*\ [CF]*Compiler*)
8803	  lt_prog_compiler_wl='-Wl,'
8804	  lt_prog_compiler_pic='-fPIC'
8805	  lt_prog_compiler_static='-static'
8806	  ;;
8807	*Portland\ Group*)
8808	  lt_prog_compiler_wl='-Wl,'
8809	  lt_prog_compiler_pic='-fpic'
8810	  lt_prog_compiler_static='-Bstatic'
8811	  ;;
8812	esac
8813	;;
8814      esac
8815      ;;
8816
8817    newsos6)
8818      lt_prog_compiler_pic='-KPIC'
8819      lt_prog_compiler_static='-Bstatic'
8820      ;;
8821
8822    *nto* | *qnx*)
8823      # QNX uses GNU C++, but need to define -shared option too, otherwise
8824      # it will coredump.
8825      lt_prog_compiler_pic='-fPIC -shared'
8826      ;;
8827
8828    osf3* | osf4* | osf5*)
8829      lt_prog_compiler_wl='-Wl,'
8830      # All OSF/1 code is PIC.
8831      lt_prog_compiler_static='-non_shared'
8832      ;;
8833
8834    rdos*)
8835      lt_prog_compiler_static='-non_shared'
8836      ;;
8837
8838    solaris*)
8839      lt_prog_compiler_pic='-KPIC'
8840      lt_prog_compiler_static='-Bstatic'
8841      case $cc_basename in
8842      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8843	lt_prog_compiler_wl='-Qoption ld ';;
8844      *)
8845	lt_prog_compiler_wl='-Wl,';;
8846      esac
8847      ;;
8848
8849    sunos4*)
8850      lt_prog_compiler_wl='-Qoption ld '
8851      lt_prog_compiler_pic='-PIC'
8852      lt_prog_compiler_static='-Bstatic'
8853      ;;
8854
8855    sysv4 | sysv4.2uw2* | sysv4.3*)
8856      lt_prog_compiler_wl='-Wl,'
8857      lt_prog_compiler_pic='-KPIC'
8858      lt_prog_compiler_static='-Bstatic'
8859      ;;
8860
8861    sysv4*MP*)
8862      if test -d /usr/nec; then
8863	lt_prog_compiler_pic='-Kconform_pic'
8864	lt_prog_compiler_static='-Bstatic'
8865      fi
8866      ;;
8867
8868    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8869      lt_prog_compiler_wl='-Wl,'
8870      lt_prog_compiler_pic='-KPIC'
8871      lt_prog_compiler_static='-Bstatic'
8872      ;;
8873
8874    unicos*)
8875      lt_prog_compiler_wl='-Wl,'
8876      lt_prog_compiler_can_build_shared=no
8877      ;;
8878
8879    uts4*)
8880      lt_prog_compiler_pic='-pic'
8881      lt_prog_compiler_static='-Bstatic'
8882      ;;
8883
8884    *)
8885      lt_prog_compiler_can_build_shared=no
8886      ;;
8887    esac
8888  fi
8889
8890case $host_os in
8891  # For platforms that do not support PIC, -DPIC is meaningless:
8892  *djgpp*)
8893    lt_prog_compiler_pic=
8894    ;;
8895  *)
8896    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8897    ;;
8898esac
8899
8900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8901$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8902if ${lt_cv_prog_compiler_pic+:} false; then :
8903  $as_echo_n "(cached) " >&6
8904else
8905  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8906fi
8907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8908$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8909lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8910
8911#
8912# Check to make sure the PIC flag actually works.
8913#
8914if test -n "$lt_prog_compiler_pic"; then
8915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8916$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8917if ${lt_cv_prog_compiler_pic_works+:} false; then :
8918  $as_echo_n "(cached) " >&6
8919else
8920  lt_cv_prog_compiler_pic_works=no
8921   ac_outfile=conftest.$ac_objext
8922   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8923   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8924   # Insert the option either (1) after the last *FLAGS variable, or
8925   # (2) before a word containing "conftest.", or (3) at the end.
8926   # Note that $ac_compile itself does not contain backslashes and begins
8927   # with a dollar sign (not a hyphen), so the echo should work correctly.
8928   # The option is referenced via a variable to avoid confusing sed.
8929   lt_compile=`echo "$ac_compile" | $SED \
8930   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8931   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8932   -e 's:$: $lt_compiler_flag:'`
8933   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8934   (eval "$lt_compile" 2>conftest.err)
8935   ac_status=$?
8936   cat conftest.err >&5
8937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938   if (exit $ac_status) && test -s "$ac_outfile"; then
8939     # The compiler can only warn and ignore the option if not recognized
8940     # So say no if there are warnings other than the usual output.
8941     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8942     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8943     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8944       lt_cv_prog_compiler_pic_works=yes
8945     fi
8946   fi
8947   $RM conftest*
8948
8949fi
8950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8951$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8952
8953if test yes = "$lt_cv_prog_compiler_pic_works"; then
8954    case $lt_prog_compiler_pic in
8955     "" | " "*) ;;
8956     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8957     esac
8958else
8959    lt_prog_compiler_pic=
8960     lt_prog_compiler_can_build_shared=no
8961fi
8962
8963fi
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975#
8976# Check to make sure the static flag actually works.
8977#
8978wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8980$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8981if ${lt_cv_prog_compiler_static_works+:} false; then :
8982  $as_echo_n "(cached) " >&6
8983else
8984  lt_cv_prog_compiler_static_works=no
8985   save_LDFLAGS=$LDFLAGS
8986   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8987   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8988   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8989     # The linker can only warn and ignore the option if not recognized
8990     # So say no if there are warnings
8991     if test -s conftest.err; then
8992       # Append any errors to the config.log.
8993       cat conftest.err 1>&5
8994       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8995       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8996       if diff conftest.exp conftest.er2 >/dev/null; then
8997         lt_cv_prog_compiler_static_works=yes
8998       fi
8999     else
9000       lt_cv_prog_compiler_static_works=yes
9001     fi
9002   fi
9003   $RM -r conftest*
9004   LDFLAGS=$save_LDFLAGS
9005
9006fi
9007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9008$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9009
9010if test yes = "$lt_cv_prog_compiler_static_works"; then
9011    :
9012else
9013    lt_prog_compiler_static=
9014fi
9015
9016
9017
9018
9019
9020
9021
9022  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9023$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9024if ${lt_cv_prog_compiler_c_o+:} false; then :
9025  $as_echo_n "(cached) " >&6
9026else
9027  lt_cv_prog_compiler_c_o=no
9028   $RM -r conftest 2>/dev/null
9029   mkdir conftest
9030   cd conftest
9031   mkdir out
9032   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9033
9034   lt_compiler_flag="-o out/conftest2.$ac_objext"
9035   # Insert the option either (1) after the last *FLAGS variable, or
9036   # (2) before a word containing "conftest.", or (3) at the end.
9037   # Note that $ac_compile itself does not contain backslashes and begins
9038   # with a dollar sign (not a hyphen), so the echo should work correctly.
9039   lt_compile=`echo "$ac_compile" | $SED \
9040   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9041   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9042   -e 's:$: $lt_compiler_flag:'`
9043   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9044   (eval "$lt_compile" 2>out/conftest.err)
9045   ac_status=$?
9046   cat out/conftest.err >&5
9047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9049   then
9050     # The compiler can only warn and ignore the option if not recognized
9051     # So say no if there are warnings
9052     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9053     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9054     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9055       lt_cv_prog_compiler_c_o=yes
9056     fi
9057   fi
9058   chmod u+w . 2>&5
9059   $RM conftest*
9060   # SGI C++ compiler will create directory out/ii_files/ for
9061   # template instantiation
9062   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9063   $RM out/* && rmdir out
9064   cd ..
9065   $RM -r conftest
9066   $RM conftest*
9067
9068fi
9069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9070$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9071
9072
9073
9074
9075
9076
9077  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9078$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9079if ${lt_cv_prog_compiler_c_o+:} false; then :
9080  $as_echo_n "(cached) " >&6
9081else
9082  lt_cv_prog_compiler_c_o=no
9083   $RM -r conftest 2>/dev/null
9084   mkdir conftest
9085   cd conftest
9086   mkdir out
9087   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9088
9089   lt_compiler_flag="-o out/conftest2.$ac_objext"
9090   # Insert the option either (1) after the last *FLAGS variable, or
9091   # (2) before a word containing "conftest.", or (3) at the end.
9092   # Note that $ac_compile itself does not contain backslashes and begins
9093   # with a dollar sign (not a hyphen), so the echo should work correctly.
9094   lt_compile=`echo "$ac_compile" | $SED \
9095   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9096   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9097   -e 's:$: $lt_compiler_flag:'`
9098   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9099   (eval "$lt_compile" 2>out/conftest.err)
9100   ac_status=$?
9101   cat out/conftest.err >&5
9102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9104   then
9105     # The compiler can only warn and ignore the option if not recognized
9106     # So say no if there are warnings
9107     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9108     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9109     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9110       lt_cv_prog_compiler_c_o=yes
9111     fi
9112   fi
9113   chmod u+w . 2>&5
9114   $RM conftest*
9115   # SGI C++ compiler will create directory out/ii_files/ for
9116   # template instantiation
9117   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9118   $RM out/* && rmdir out
9119   cd ..
9120   $RM -r conftest
9121   $RM conftest*
9122
9123fi
9124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9125$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9126
9127
9128
9129
9130hard_links=nottested
9131if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9132  # do not overwrite the value of need_locks provided by the user
9133  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9134$as_echo_n "checking if we can lock with hard links... " >&6; }
9135  hard_links=yes
9136  $RM conftest*
9137  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9138  touch conftest.a
9139  ln conftest.a conftest.b 2>&5 || hard_links=no
9140  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9142$as_echo "$hard_links" >&6; }
9143  if test no = "$hard_links"; then
9144    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9145$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9146    need_locks=warn
9147  fi
9148else
9149  need_locks=no
9150fi
9151
9152
9153
9154
9155
9156
9157  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9158$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9159
9160  runpath_var=
9161  allow_undefined_flag=
9162  always_export_symbols=no
9163  archive_cmds=
9164  archive_expsym_cmds=
9165  compiler_needs_object=no
9166  enable_shared_with_static_runtimes=no
9167  export_dynamic_flag_spec=
9168  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9169  hardcode_automatic=no
9170  hardcode_direct=no
9171  hardcode_direct_absolute=no
9172  hardcode_libdir_flag_spec=
9173  hardcode_libdir_separator=
9174  hardcode_minus_L=no
9175  hardcode_shlibpath_var=unsupported
9176  inherit_rpath=no
9177  link_all_deplibs=unknown
9178  module_cmds=
9179  module_expsym_cmds=
9180  old_archive_from_new_cmds=
9181  old_archive_from_expsyms_cmds=
9182  thread_safe_flag_spec=
9183  whole_archive_flag_spec=
9184  # include_expsyms should be a list of space-separated symbols to be *always*
9185  # included in the symbol list
9186  include_expsyms=
9187  # exclude_expsyms can be an extended regexp of symbols to exclude
9188  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9189  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9190  # as well as any symbol that contains 'd'.
9191  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9192  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9193  # platforms (ab)use it in PIC code, but their linkers get confused if
9194  # the symbol is explicitly referenced.  Since portable code cannot
9195  # rely on this symbol name, it's probably fine to never include it in
9196  # preloaded symbol tables.
9197  # Exclude shared library initialization/finalization symbols.
9198  extract_expsyms_cmds=
9199
9200  case $host_os in
9201  cygwin* | mingw* | pw32* | cegcc*)
9202    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9203    # When not using gcc, we currently assume that we are using
9204    # Microsoft Visual C++.
9205    if test yes != "$GCC"; then
9206      with_gnu_ld=no
9207    fi
9208    ;;
9209  interix*)
9210    # we just hope/assume this is gcc and not c89 (= MSVC++)
9211    with_gnu_ld=yes
9212    ;;
9213  openbsd* | bitrig*)
9214    with_gnu_ld=no
9215    ;;
9216  esac
9217
9218  ld_shlibs=yes
9219
9220  # On some targets, GNU ld is compatible enough with the native linker
9221  # that we're better off using the native interface for both.
9222  lt_use_gnu_ld_interface=no
9223  if test yes = "$with_gnu_ld"; then
9224    case $host_os in
9225      aix*)
9226	# The AIX port of GNU ld has always aspired to compatibility
9227	# with the native linker.  However, as the warning in the GNU ld
9228	# block says, versions before 2.19.5* couldn't really create working
9229	# shared libraries, regardless of the interface used.
9230	case `$LD -v 2>&1` in
9231	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9232	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9233	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9234	  *)
9235	    lt_use_gnu_ld_interface=yes
9236	    ;;
9237	esac
9238	;;
9239      *)
9240	lt_use_gnu_ld_interface=yes
9241	;;
9242    esac
9243  fi
9244
9245  if test yes = "$lt_use_gnu_ld_interface"; then
9246    # If archive_cmds runs LD, not CC, wlarc should be empty
9247    wlarc='$wl'
9248
9249    # Set some defaults for GNU ld with shared library support. These
9250    # are reset later if shared libraries are not supported. Putting them
9251    # here allows them to be overridden if necessary.
9252    runpath_var=LD_RUN_PATH
9253    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9254    export_dynamic_flag_spec='$wl--export-dynamic'
9255    # ancient GNU ld didn't support --whole-archive et. al.
9256    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9257      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9258    else
9259      whole_archive_flag_spec=
9260    fi
9261    supports_anon_versioning=no
9262    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9263      *GNU\ gold*) supports_anon_versioning=yes ;;
9264      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9265      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9266      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9267      *\ 2.11.*) ;; # other 2.11 versions
9268      *) supports_anon_versioning=yes ;;
9269    esac
9270
9271    # See if GNU ld supports shared libraries.
9272    case $host_os in
9273    aix[3-9]*)
9274      # On AIX/PPC, the GNU linker is very broken
9275      if test ia64 != "$host_cpu"; then
9276	ld_shlibs=no
9277	cat <<_LT_EOF 1>&2
9278
9279*** Warning: the GNU linker, at least up to release 2.19, is reported
9280*** to be unable to reliably create shared libraries on AIX.
9281*** Therefore, libtool is disabling shared libraries support.  If you
9282*** really care for shared libraries, you may want to install binutils
9283*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9284*** You will then need to restart the configuration process.
9285
9286_LT_EOF
9287      fi
9288      ;;
9289
9290    amigaos*)
9291      case $host_cpu in
9292      powerpc)
9293            # see comment about AmigaOS4 .so support
9294            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9295            archive_expsym_cmds=''
9296        ;;
9297      m68k)
9298            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)'
9299            hardcode_libdir_flag_spec='-L$libdir'
9300            hardcode_minus_L=yes
9301        ;;
9302      esac
9303      ;;
9304
9305    beos*)
9306      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9307	allow_undefined_flag=unsupported
9308	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9309	# support --undefined.  This deserves some investigation.  FIXME
9310	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9311      else
9312	ld_shlibs=no
9313      fi
9314      ;;
9315
9316    cygwin* | mingw* | pw32* | cegcc*)
9317      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9318      # as there is no search path for DLLs.
9319      hardcode_libdir_flag_spec='-L$libdir'
9320      export_dynamic_flag_spec='$wl--export-all-symbols'
9321      allow_undefined_flag=unsupported
9322      always_export_symbols=no
9323      enable_shared_with_static_runtimes=yes
9324      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'
9325      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9326
9327      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9328        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9329	# If the export-symbols file already is a .def file, use it as
9330	# is; otherwise, prepend EXPORTS...
9331	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9332          cp $export_symbols $output_objdir/$soname.def;
9333        else
9334          echo EXPORTS > $output_objdir/$soname.def;
9335          cat $export_symbols >> $output_objdir/$soname.def;
9336        fi~
9337        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9338      else
9339	ld_shlibs=no
9340      fi
9341      ;;
9342
9343    haiku*)
9344      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9345      link_all_deplibs=yes
9346      ;;
9347
9348    os2*)
9349      hardcode_libdir_flag_spec='-L$libdir'
9350      hardcode_minus_L=yes
9351      allow_undefined_flag=unsupported
9352      shrext_cmds=.dll
9353      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9354	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9355	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9356	$ECHO EXPORTS >> $output_objdir/$libname.def~
9357	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9358	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9359	emximp -o $lib $output_objdir/$libname.def'
9360      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9361	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9362	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9363	$ECHO EXPORTS >> $output_objdir/$libname.def~
9364	prefix_cmds="$SED"~
9365	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9366	  prefix_cmds="$prefix_cmds -e 1d";
9367	fi~
9368	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9369	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9370	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9371	emximp -o $lib $output_objdir/$libname.def'
9372      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9373      enable_shared_with_static_runtimes=yes
9374      ;;
9375
9376    interix[3-9]*)
9377      hardcode_direct=no
9378      hardcode_shlibpath_var=no
9379      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9380      export_dynamic_flag_spec='$wl-E'
9381      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9382      # Instead, shared libraries are loaded at an image base (0x10000000 by
9383      # default) and relocated if they conflict, which is a slow very memory
9384      # consuming and fragmenting process.  To avoid this, we pick a random,
9385      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9386      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9387      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9388      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'
9389      ;;
9390
9391    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9392      tmp_diet=no
9393      if test linux-dietlibc = "$host_os"; then
9394	case $cc_basename in
9395	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9396	esac
9397      fi
9398      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9399	 && test no = "$tmp_diet"
9400      then
9401	tmp_addflag=' $pic_flag'
9402	tmp_sharedflag='-shared'
9403	case $cc_basename,$host_cpu in
9404        pgcc*)				# Portland Group C compiler
9405	  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'
9406	  tmp_addflag=' $pic_flag'
9407	  ;;
9408	pgf77* | pgf90* | pgf95* | pgfortran*)
9409					# Portland Group f77 and f90 compilers
9410	  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'
9411	  tmp_addflag=' $pic_flag -Mnomain' ;;
9412	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9413	  tmp_addflag=' -i_dynamic' ;;
9414	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9415	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9416	ifc* | ifort*)			# Intel Fortran compiler
9417	  tmp_addflag=' -nofor_main' ;;
9418	lf95*)				# Lahey Fortran 8.1
9419	  whole_archive_flag_spec=
9420	  tmp_sharedflag='--shared' ;;
9421        nagfor*)                        # NAGFOR 5.3
9422          tmp_sharedflag='-Wl,-shared' ;;
9423	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9424	  tmp_sharedflag='-qmkshrobj'
9425	  tmp_addflag= ;;
9426	nvcc*)	# Cuda Compiler Driver 2.2
9427	  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'
9428	  compiler_needs_object=yes
9429	  ;;
9430	esac
9431	case `$CC -V 2>&1 | sed 5q` in
9432	*Sun\ C*)			# Sun C 5.9
9433	  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'
9434	  compiler_needs_object=yes
9435	  tmp_sharedflag='-G' ;;
9436	*Sun\ F*)			# Sun Fortran 8.3
9437	  tmp_sharedflag='-G' ;;
9438	esac
9439	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9440
9441        if test yes = "$supports_anon_versioning"; then
9442          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9443            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9444            echo "local: *; };" >> $output_objdir/$libname.ver~
9445            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9446        fi
9447
9448	case $cc_basename in
9449	tcc*)
9450	  export_dynamic_flag_spec='-rdynamic'
9451	  ;;
9452	xlf* | bgf* | bgxlf* | mpixlf*)
9453	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9454	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9455	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9456	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9457	  if test yes = "$supports_anon_versioning"; then
9458	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9459              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9460              echo "local: *; };" >> $output_objdir/$libname.ver~
9461              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9462	  fi
9463	  ;;
9464	esac
9465      else
9466        ld_shlibs=no
9467      fi
9468      ;;
9469
9470    netbsd*)
9471      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9472	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9473	wlarc=
9474      else
9475	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9476	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9477      fi
9478      ;;
9479
9480    solaris*)
9481      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9482	ld_shlibs=no
9483	cat <<_LT_EOF 1>&2
9484
9485*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9486*** create shared libraries on Solaris systems.  Therefore, libtool
9487*** is disabling shared libraries support.  We urge you to upgrade GNU
9488*** binutils to release 2.9.1 or newer.  Another option is to modify
9489*** your PATH or compiler configuration so that the native linker is
9490*** used, and then restart.
9491
9492_LT_EOF
9493      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9494	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9495	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9496      else
9497	ld_shlibs=no
9498      fi
9499      ;;
9500
9501    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9502      case `$LD -v 2>&1` in
9503        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9504	ld_shlibs=no
9505	cat <<_LT_EOF 1>&2
9506
9507*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9508*** reliably create shared libraries on SCO systems.  Therefore, libtool
9509*** is disabling shared libraries support.  We urge you to upgrade GNU
9510*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9511*** your PATH or compiler configuration so that the native linker is
9512*** used, and then restart.
9513
9514_LT_EOF
9515	;;
9516	*)
9517	  # For security reasons, it is highly recommended that you always
9518	  # use absolute paths for naming shared libraries, and exclude the
9519	  # DT_RUNPATH tag from executables and libraries.  But doing so
9520	  # requires that you compile everything twice, which is a pain.
9521	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9522	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9523	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9524	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9525	  else
9526	    ld_shlibs=no
9527	  fi
9528	;;
9529      esac
9530      ;;
9531
9532    sunos4*)
9533      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9534      wlarc=
9535      hardcode_direct=yes
9536      hardcode_shlibpath_var=no
9537      ;;
9538
9539    *)
9540      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9541	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9542	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9543      else
9544	ld_shlibs=no
9545      fi
9546      ;;
9547    esac
9548
9549    if test no = "$ld_shlibs"; then
9550      runpath_var=
9551      hardcode_libdir_flag_spec=
9552      export_dynamic_flag_spec=
9553      whole_archive_flag_spec=
9554    fi
9555  else
9556    # PORTME fill in a description of your system's linker (not GNU ld)
9557    case $host_os in
9558    aix3*)
9559      allow_undefined_flag=unsupported
9560      always_export_symbols=yes
9561      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'
9562      # Note: this linker hardcodes the directories in LIBPATH if there
9563      # are no directories specified by -L.
9564      hardcode_minus_L=yes
9565      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9566	# Neither direct hardcoding nor static linking is supported with a
9567	# broken collect2.
9568	hardcode_direct=unsupported
9569      fi
9570      ;;
9571
9572    aix[4-9]*)
9573      if test ia64 = "$host_cpu"; then
9574	# On IA64, the linker does run time linking by default, so we don't
9575	# have to do anything special.
9576	aix_use_runtimelinking=no
9577	exp_sym_flag='-Bexport'
9578	no_entry_flag=
9579      else
9580	# If we're using GNU nm, then we don't want the "-C" option.
9581	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9582	# Without the "-l" option, or with the "-B" option, AIX nm treats
9583	# weak defined symbols like other global defined symbols, whereas
9584	# GNU nm marks them as "W".
9585	# While the 'weak' keyword is ignored in the Export File, we need
9586	# it in the Import File for the 'aix-soname' feature, so we have
9587	# to replace the "-B" option with "-P" for AIX nm.
9588	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9589	  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'
9590	else
9591	  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'
9592	fi
9593	aix_use_runtimelinking=no
9594
9595	# Test if we are trying to use run time linking or normal
9596	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9597	# have runtime linking enabled, and use it for executables.
9598	# For shared libraries, we enable/disable runtime linking
9599	# depending on the kind of the shared library created -
9600	# when "with_aix_soname,aix_use_runtimelinking" is:
9601	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9602	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9603	#            lib.a           static archive
9604	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9605	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9606	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9607	#            lib.a(lib.so.V) shared, rtl:no
9608	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9609	#            lib.a           static archive
9610	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9611	  for ld_flag in $LDFLAGS; do
9612	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9613	    aix_use_runtimelinking=yes
9614	    break
9615	  fi
9616	  done
9617	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9618	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9619	    # so we don't have lib.a shared libs to link our executables.
9620	    # We have to force runtime linking in this case.
9621	    aix_use_runtimelinking=yes
9622	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9623	  fi
9624	  ;;
9625	esac
9626
9627	exp_sym_flag='-bexport'
9628	no_entry_flag='-bnoentry'
9629      fi
9630
9631      # When large executables or shared objects are built, AIX ld can
9632      # have problems creating the table of contents.  If linking a library
9633      # or program results in "error TOC overflow" add -mminimal-toc to
9634      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9635      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9636
9637      archive_cmds=''
9638      hardcode_direct=yes
9639      hardcode_direct_absolute=yes
9640      hardcode_libdir_separator=':'
9641      link_all_deplibs=yes
9642      file_list_spec='$wl-f,'
9643      case $with_aix_soname,$aix_use_runtimelinking in
9644      aix,*) ;; # traditional, no import file
9645      svr4,* | *,yes) # use import file
9646	# The Import File defines what to hardcode.
9647	hardcode_direct=no
9648	hardcode_direct_absolute=no
9649	;;
9650      esac
9651
9652      if test yes = "$GCC"; then
9653	case $host_os in aix4.[012]|aix4.[012].*)
9654	# We only want to do this on AIX 4.2 and lower, the check
9655	# below for broken collect2 doesn't work under 4.3+
9656	  collect2name=`$CC -print-prog-name=collect2`
9657	  if test -f "$collect2name" &&
9658	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9659	  then
9660	  # We have reworked collect2
9661	  :
9662	  else
9663	  # We have old collect2
9664	  hardcode_direct=unsupported
9665	  # It fails to find uninstalled libraries when the uninstalled
9666	  # path is not listed in the libpath.  Setting hardcode_minus_L
9667	  # to unsupported forces relinking
9668	  hardcode_minus_L=yes
9669	  hardcode_libdir_flag_spec='-L$libdir'
9670	  hardcode_libdir_separator=
9671	  fi
9672	  ;;
9673	esac
9674	shared_flag='-shared'
9675	if test yes = "$aix_use_runtimelinking"; then
9676	  shared_flag="$shared_flag "'$wl-G'
9677	fi
9678	# Need to ensure runtime linking is disabled for the traditional
9679	# shared library, or the linker may eventually find shared libraries
9680	# /with/ Import File - we do not want to mix them.
9681	shared_flag_aix='-shared'
9682	shared_flag_svr4='-shared $wl-G'
9683      else
9684	# not using gcc
9685	if test ia64 = "$host_cpu"; then
9686	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9687	# chokes on -Wl,-G. The following line is correct:
9688	  shared_flag='-G'
9689	else
9690	  if test yes = "$aix_use_runtimelinking"; then
9691	    shared_flag='$wl-G'
9692	  else
9693	    shared_flag='$wl-bM:SRE'
9694	  fi
9695	  shared_flag_aix='$wl-bM:SRE'
9696	  shared_flag_svr4='$wl-G'
9697	fi
9698      fi
9699
9700      export_dynamic_flag_spec='$wl-bexpall'
9701      # It seems that -bexpall does not export symbols beginning with
9702      # underscore (_), so it is better to generate a list of symbols to export.
9703      always_export_symbols=yes
9704      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9705	# Warning - without using the other runtime loading flags (-brtl),
9706	# -berok will link without error, but may produce a broken library.
9707	allow_undefined_flag='-berok'
9708        # Determine the default libpath from the value encoded in an
9709        # empty executable.
9710        if test set = "${lt_cv_aix_libpath+set}"; then
9711  aix_libpath=$lt_cv_aix_libpath
9712else
9713  if ${lt_cv_aix_libpath_+:} false; then :
9714  $as_echo_n "(cached) " >&6
9715else
9716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9717/* end confdefs.h.  */
9718
9719int
9720main ()
9721{
9722
9723  ;
9724  return 0;
9725}
9726_ACEOF
9727if ac_fn_c_try_link "$LINENO"; then :
9728
9729  lt_aix_libpath_sed='
9730      /Import File Strings/,/^$/ {
9731	  /^0/ {
9732	      s/^0  *\([^ ]*\) *$/\1/
9733	      p
9734	  }
9735      }'
9736  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9737  # Check for a 64-bit object if we didn't find anything.
9738  if test -z "$lt_cv_aix_libpath_"; then
9739    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9740  fi
9741fi
9742rm -f core conftest.err conftest.$ac_objext \
9743    conftest$ac_exeext conftest.$ac_ext
9744  if test -z "$lt_cv_aix_libpath_"; then
9745    lt_cv_aix_libpath_=/usr/lib:/lib
9746  fi
9747
9748fi
9749
9750  aix_libpath=$lt_cv_aix_libpath_
9751fi
9752
9753        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9754        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
9755      else
9756	if test ia64 = "$host_cpu"; then
9757	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9758	  allow_undefined_flag="-z nodefs"
9759	  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"
9760	else
9761	 # Determine the default libpath from the value encoded in an
9762	 # empty executable.
9763	 if test set = "${lt_cv_aix_libpath+set}"; then
9764  aix_libpath=$lt_cv_aix_libpath
9765else
9766  if ${lt_cv_aix_libpath_+:} false; then :
9767  $as_echo_n "(cached) " >&6
9768else
9769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9770/* end confdefs.h.  */
9771
9772int
9773main ()
9774{
9775
9776  ;
9777  return 0;
9778}
9779_ACEOF
9780if ac_fn_c_try_link "$LINENO"; then :
9781
9782  lt_aix_libpath_sed='
9783      /Import File Strings/,/^$/ {
9784	  /^0/ {
9785	      s/^0  *\([^ ]*\) *$/\1/
9786	      p
9787	  }
9788      }'
9789  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9790  # Check for a 64-bit object if we didn't find anything.
9791  if test -z "$lt_cv_aix_libpath_"; then
9792    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9793  fi
9794fi
9795rm -f core conftest.err conftest.$ac_objext \
9796    conftest$ac_exeext conftest.$ac_ext
9797  if test -z "$lt_cv_aix_libpath_"; then
9798    lt_cv_aix_libpath_=/usr/lib:/lib
9799  fi
9800
9801fi
9802
9803  aix_libpath=$lt_cv_aix_libpath_
9804fi
9805
9806	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9807	  # Warning - without using the other run time loading flags,
9808	  # -berok will link without error, but may produce a broken library.
9809	  no_undefined_flag=' $wl-bernotok'
9810	  allow_undefined_flag=' $wl-berok'
9811	  if test yes = "$with_gnu_ld"; then
9812	    # We only use this code for GNU lds that support --whole-archive.
9813	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9814	  else
9815	    # Exported symbols can be pulled into shared objects from archives
9816	    whole_archive_flag_spec='$convenience'
9817	  fi
9818	  archive_cmds_need_lc=yes
9819	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9820	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9821	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9822	  if test svr4 != "$with_aix_soname"; then
9823	    # This is similar to how AIX traditionally builds its shared libraries.
9824	    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'
9825	  fi
9826	  if test aix != "$with_aix_soname"; then
9827	    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'
9828	  else
9829	    # used by -dlpreopen to get the symbols
9830	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9831	  fi
9832	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9833	fi
9834      fi
9835      ;;
9836
9837    amigaos*)
9838      case $host_cpu in
9839      powerpc)
9840            # see comment about AmigaOS4 .so support
9841            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9842            archive_expsym_cmds=''
9843        ;;
9844      m68k)
9845            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)'
9846            hardcode_libdir_flag_spec='-L$libdir'
9847            hardcode_minus_L=yes
9848        ;;
9849      esac
9850      ;;
9851
9852    bsdi[45]*)
9853      export_dynamic_flag_spec=-rdynamic
9854      ;;
9855
9856    cygwin* | mingw* | pw32* | cegcc*)
9857      # When not using gcc, we currently assume that we are using
9858      # Microsoft Visual C++.
9859      # hardcode_libdir_flag_spec is actually meaningless, as there is
9860      # no search path for DLLs.
9861      case $cc_basename in
9862      cl*)
9863	# Native MSVC
9864	hardcode_libdir_flag_spec=' '
9865	allow_undefined_flag=unsupported
9866	always_export_symbols=yes
9867	file_list_spec='@'
9868	# Tell ltmain to make .lib files, not .a files.
9869	libext=lib
9870	# Tell ltmain to make .dll files, not .so files.
9871	shrext_cmds=.dll
9872	# FIXME: Setting linknames here is a bad hack.
9873	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9874	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9875            cp "$export_symbols" "$output_objdir/$soname.def";
9876            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9877          else
9878            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9879          fi~
9880          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9881          linknames='
9882	# The linker will not automatically build a static lib if we build a DLL.
9883	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9884	enable_shared_with_static_runtimes=yes
9885	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9886	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9887	# Don't use ranlib
9888	old_postinstall_cmds='chmod 644 $oldlib'
9889	postlink_cmds='lt_outputfile="@OUTPUT@"~
9890          lt_tool_outputfile="@TOOL_OUTPUT@"~
9891          case $lt_outputfile in
9892            *.exe|*.EXE) ;;
9893            *)
9894              lt_outputfile=$lt_outputfile.exe
9895              lt_tool_outputfile=$lt_tool_outputfile.exe
9896              ;;
9897          esac~
9898          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9899            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9900            $RM "$lt_outputfile.manifest";
9901          fi'
9902	;;
9903      *)
9904	# Assume MSVC wrapper
9905	hardcode_libdir_flag_spec=' '
9906	allow_undefined_flag=unsupported
9907	# Tell ltmain to make .lib files, not .a files.
9908	libext=lib
9909	# Tell ltmain to make .dll files, not .so files.
9910	shrext_cmds=.dll
9911	# FIXME: Setting linknames here is a bad hack.
9912	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9913	# The linker will automatically build a .lib file if we build a DLL.
9914	old_archive_from_new_cmds='true'
9915	# FIXME: Should let the user specify the lib program.
9916	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9917	enable_shared_with_static_runtimes=yes
9918	;;
9919      esac
9920      ;;
9921
9922    darwin* | rhapsody*)
9923
9924
9925  archive_cmds_need_lc=no
9926  hardcode_direct=no
9927  hardcode_automatic=yes
9928  hardcode_shlibpath_var=unsupported
9929  if test yes = "$lt_cv_ld_force_load"; then
9930    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\"`'
9931
9932  else
9933    whole_archive_flag_spec=''
9934  fi
9935  link_all_deplibs=yes
9936  allow_undefined_flag=$_lt_dar_allow_undefined
9937  case $cc_basename in
9938     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9939     *) _lt_dar_can_shared=$GCC ;;
9940  esac
9941  if test yes = "$_lt_dar_can_shared"; then
9942    output_verbose_link_cmd=func_echo_all
9943    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9944    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9945    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"
9946    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"
9947
9948  else
9949  ld_shlibs=no
9950  fi
9951
9952      ;;
9953
9954    dgux*)
9955      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9956      hardcode_libdir_flag_spec='-L$libdir'
9957      hardcode_shlibpath_var=no
9958      ;;
9959
9960    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9961    # support.  Future versions do this automatically, but an explicit c++rt0.o
9962    # does not break anything, and helps significantly (at the cost of a little
9963    # extra space).
9964    freebsd2.2*)
9965      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9966      hardcode_libdir_flag_spec='-R$libdir'
9967      hardcode_direct=yes
9968      hardcode_shlibpath_var=no
9969      ;;
9970
9971    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9972    freebsd2.*)
9973      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9974      hardcode_direct=yes
9975      hardcode_minus_L=yes
9976      hardcode_shlibpath_var=no
9977      ;;
9978
9979    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9980    freebsd* | dragonfly*)
9981      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9982      hardcode_libdir_flag_spec='-R$libdir'
9983      hardcode_direct=yes
9984      hardcode_shlibpath_var=no
9985      ;;
9986
9987    hpux9*)
9988      if test yes = "$GCC"; then
9989	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'
9990      else
9991	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'
9992      fi
9993      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9994      hardcode_libdir_separator=:
9995      hardcode_direct=yes
9996
9997      # hardcode_minus_L: Not really in the search PATH,
9998      # but as the default location of the library.
9999      hardcode_minus_L=yes
10000      export_dynamic_flag_spec='$wl-E'
10001      ;;
10002
10003    hpux10*)
10004      if test yes,no = "$GCC,$with_gnu_ld"; then
10005	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10006      else
10007	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10008      fi
10009      if test no = "$with_gnu_ld"; then
10010	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10011	hardcode_libdir_separator=:
10012	hardcode_direct=yes
10013	hardcode_direct_absolute=yes
10014	export_dynamic_flag_spec='$wl-E'
10015	# hardcode_minus_L: Not really in the search PATH,
10016	# but as the default location of the library.
10017	hardcode_minus_L=yes
10018      fi
10019      ;;
10020
10021    hpux11*)
10022      if test yes,no = "$GCC,$with_gnu_ld"; then
10023	case $host_cpu in
10024	hppa*64*)
10025	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10026	  ;;
10027	ia64*)
10028	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10029	  ;;
10030	*)
10031	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10032	  ;;
10033	esac
10034      else
10035	case $host_cpu in
10036	hppa*64*)
10037	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10038	  ;;
10039	ia64*)
10040	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10041	  ;;
10042	*)
10043
10044	  # Older versions of the 11.00 compiler do not understand -b yet
10045	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10046	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10047$as_echo_n "checking if $CC understands -b... " >&6; }
10048if ${lt_cv_prog_compiler__b+:} false; then :
10049  $as_echo_n "(cached) " >&6
10050else
10051  lt_cv_prog_compiler__b=no
10052   save_LDFLAGS=$LDFLAGS
10053   LDFLAGS="$LDFLAGS -b"
10054   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10055   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10056     # The linker can only warn and ignore the option if not recognized
10057     # So say no if there are warnings
10058     if test -s conftest.err; then
10059       # Append any errors to the config.log.
10060       cat conftest.err 1>&5
10061       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10062       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10063       if diff conftest.exp conftest.er2 >/dev/null; then
10064         lt_cv_prog_compiler__b=yes
10065       fi
10066     else
10067       lt_cv_prog_compiler__b=yes
10068     fi
10069   fi
10070   $RM -r conftest*
10071   LDFLAGS=$save_LDFLAGS
10072
10073fi
10074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10075$as_echo "$lt_cv_prog_compiler__b" >&6; }
10076
10077if test yes = "$lt_cv_prog_compiler__b"; then
10078    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10079else
10080    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10081fi
10082
10083	  ;;
10084	esac
10085      fi
10086      if test no = "$with_gnu_ld"; then
10087	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10088	hardcode_libdir_separator=:
10089
10090	case $host_cpu in
10091	hppa*64*|ia64*)
10092	  hardcode_direct=no
10093	  hardcode_shlibpath_var=no
10094	  ;;
10095	*)
10096	  hardcode_direct=yes
10097	  hardcode_direct_absolute=yes
10098	  export_dynamic_flag_spec='$wl-E'
10099
10100	  # hardcode_minus_L: Not really in the search PATH,
10101	  # but as the default location of the library.
10102	  hardcode_minus_L=yes
10103	  ;;
10104	esac
10105      fi
10106      ;;
10107
10108    irix5* | irix6* | nonstopux*)
10109      if test yes = "$GCC"; then
10110	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'
10111	# Try to use the -exported_symbol ld option, if it does not
10112	# work, assume that -exports_file does not work either and
10113	# implicitly export all symbols.
10114	# This should be the same for all languages, so no per-tag cache variable.
10115	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10116$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10117if ${lt_cv_irix_exported_symbol+:} false; then :
10118  $as_echo_n "(cached) " >&6
10119else
10120  save_LDFLAGS=$LDFLAGS
10121	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10122	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123/* end confdefs.h.  */
10124int foo (void) { return 0; }
10125_ACEOF
10126if ac_fn_c_try_link "$LINENO"; then :
10127  lt_cv_irix_exported_symbol=yes
10128else
10129  lt_cv_irix_exported_symbol=no
10130fi
10131rm -f core conftest.err conftest.$ac_objext \
10132    conftest$ac_exeext conftest.$ac_ext
10133           LDFLAGS=$save_LDFLAGS
10134fi
10135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10136$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10137	if test yes = "$lt_cv_irix_exported_symbol"; then
10138          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'
10139	fi
10140      else
10141	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'
10142	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'
10143      fi
10144      archive_cmds_need_lc='no'
10145      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10146      hardcode_libdir_separator=:
10147      inherit_rpath=yes
10148      link_all_deplibs=yes
10149      ;;
10150
10151    linux*)
10152      case $cc_basename in
10153      tcc*)
10154	# Fabrice Bellard et al's Tiny C Compiler
10155	ld_shlibs=yes
10156	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10157	;;
10158      esac
10159      ;;
10160
10161    netbsd*)
10162      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10163	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10164      else
10165	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10166      fi
10167      hardcode_libdir_flag_spec='-R$libdir'
10168      hardcode_direct=yes
10169      hardcode_shlibpath_var=no
10170      ;;
10171
10172    newsos6)
10173      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10174      hardcode_direct=yes
10175      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10176      hardcode_libdir_separator=:
10177      hardcode_shlibpath_var=no
10178      ;;
10179
10180    *nto* | *qnx*)
10181      ;;
10182
10183    openbsd* | bitrig*)
10184      if test -f /usr/libexec/ld.so; then
10185	hardcode_direct=yes
10186	hardcode_shlibpath_var=no
10187	hardcode_direct_absolute=yes
10188	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10189	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10190	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10191	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10192	  export_dynamic_flag_spec='$wl-E'
10193	else
10194	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10195	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10196	fi
10197      else
10198	ld_shlibs=no
10199      fi
10200      ;;
10201
10202    os2*)
10203      hardcode_libdir_flag_spec='-L$libdir'
10204      hardcode_minus_L=yes
10205      allow_undefined_flag=unsupported
10206      shrext_cmds=.dll
10207      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10208	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10209	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10210	$ECHO EXPORTS >> $output_objdir/$libname.def~
10211	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10212	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10213	emximp -o $lib $output_objdir/$libname.def'
10214      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10215	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10216	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10217	$ECHO EXPORTS >> $output_objdir/$libname.def~
10218	prefix_cmds="$SED"~
10219	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10220	  prefix_cmds="$prefix_cmds -e 1d";
10221	fi~
10222	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10223	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10224	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10225	emximp -o $lib $output_objdir/$libname.def'
10226      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10227      enable_shared_with_static_runtimes=yes
10228      ;;
10229
10230    osf3*)
10231      if test yes = "$GCC"; then
10232	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10233	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'
10234      else
10235	allow_undefined_flag=' -expect_unresolved \*'
10236	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'
10237      fi
10238      archive_cmds_need_lc='no'
10239      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10240      hardcode_libdir_separator=:
10241      ;;
10242
10243    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10244      if test yes = "$GCC"; then
10245	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10246	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'
10247	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10248      else
10249	allow_undefined_flag=' -expect_unresolved \*'
10250	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'
10251	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~
10252          $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'
10253
10254	# Both c and cxx compiler support -rpath directly
10255	hardcode_libdir_flag_spec='-rpath $libdir'
10256      fi
10257      archive_cmds_need_lc='no'
10258      hardcode_libdir_separator=:
10259      ;;
10260
10261    solaris*)
10262      no_undefined_flag=' -z defs'
10263      if test yes = "$GCC"; then
10264	wlarc='$wl'
10265	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10266	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10267          $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'
10268      else
10269	case `$CC -V 2>&1` in
10270	*"Compilers 5.0"*)
10271	  wlarc=''
10272	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10273	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10274            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10275	  ;;
10276	*)
10277	  wlarc='$wl'
10278	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10279	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10280            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10281	  ;;
10282	esac
10283      fi
10284      hardcode_libdir_flag_spec='-R$libdir'
10285      hardcode_shlibpath_var=no
10286      case $host_os in
10287      solaris2.[0-5] | solaris2.[0-5].*) ;;
10288      *)
10289	# The compiler driver will combine and reorder linker options,
10290	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10291	# but is careful enough not to reorder.
10292	# Supported since Solaris 2.6 (maybe 2.5.1?)
10293	if test yes = "$GCC"; then
10294	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10295	else
10296	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10297	fi
10298	;;
10299      esac
10300      link_all_deplibs=yes
10301      ;;
10302
10303    sunos4*)
10304      if test sequent = "$host_vendor"; then
10305	# Use $CC to link under sequent, because it throws in some extra .o
10306	# files that make .init and .fini sections work.
10307	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10308      else
10309	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10310      fi
10311      hardcode_libdir_flag_spec='-L$libdir'
10312      hardcode_direct=yes
10313      hardcode_minus_L=yes
10314      hardcode_shlibpath_var=no
10315      ;;
10316
10317    sysv4)
10318      case $host_vendor in
10319	sni)
10320	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10321	  hardcode_direct=yes # is this really true???
10322	;;
10323	siemens)
10324	  ## LD is ld it makes a PLAMLIB
10325	  ## CC just makes a GrossModule.
10326	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10327	  reload_cmds='$CC -r -o $output$reload_objs'
10328	  hardcode_direct=no
10329        ;;
10330	motorola)
10331	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10332	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10333	;;
10334      esac
10335      runpath_var='LD_RUN_PATH'
10336      hardcode_shlibpath_var=no
10337      ;;
10338
10339    sysv4.3*)
10340      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10341      hardcode_shlibpath_var=no
10342      export_dynamic_flag_spec='-Bexport'
10343      ;;
10344
10345    sysv4*MP*)
10346      if test -d /usr/nec; then
10347	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10348	hardcode_shlibpath_var=no
10349	runpath_var=LD_RUN_PATH
10350	hardcode_runpath_var=yes
10351	ld_shlibs=yes
10352      fi
10353      ;;
10354
10355    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10356      no_undefined_flag='$wl-z,text'
10357      archive_cmds_need_lc=no
10358      hardcode_shlibpath_var=no
10359      runpath_var='LD_RUN_PATH'
10360
10361      if test yes = "$GCC"; then
10362	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10363	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10364      else
10365	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10366	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10367      fi
10368      ;;
10369
10370    sysv5* | sco3.2v5* | sco5v6*)
10371      # Note: We CANNOT use -z defs as we might desire, because we do not
10372      # link with -lc, and that would cause any symbols used from libc to
10373      # always be unresolved, which means just about no library would
10374      # ever link correctly.  If we're not using GNU ld we use -z text
10375      # though, which does catch some bad symbols but isn't as heavy-handed
10376      # as -z defs.
10377      no_undefined_flag='$wl-z,text'
10378      allow_undefined_flag='$wl-z,nodefs'
10379      archive_cmds_need_lc=no
10380      hardcode_shlibpath_var=no
10381      hardcode_libdir_flag_spec='$wl-R,$libdir'
10382      hardcode_libdir_separator=':'
10383      link_all_deplibs=yes
10384      export_dynamic_flag_spec='$wl-Bexport'
10385      runpath_var='LD_RUN_PATH'
10386
10387      if test yes = "$GCC"; then
10388	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10389	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10390      else
10391	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10392	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10393      fi
10394      ;;
10395
10396    uts4*)
10397      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10398      hardcode_libdir_flag_spec='-L$libdir'
10399      hardcode_shlibpath_var=no
10400      ;;
10401
10402    *)
10403      ld_shlibs=no
10404      ;;
10405    esac
10406
10407    if test sni = "$host_vendor"; then
10408      case $host in
10409      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10410	export_dynamic_flag_spec='$wl-Blargedynsym'
10411	;;
10412      esac
10413    fi
10414  fi
10415
10416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10417$as_echo "$ld_shlibs" >&6; }
10418test no = "$ld_shlibs" && can_build_shared=no
10419
10420with_gnu_ld=$with_gnu_ld
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436#
10437# Do we need to explicitly link libc?
10438#
10439case "x$archive_cmds_need_lc" in
10440x|xyes)
10441  # Assume -lc should be added
10442  archive_cmds_need_lc=yes
10443
10444  if test yes,yes = "$GCC,$enable_shared"; then
10445    case $archive_cmds in
10446    *'~'*)
10447      # FIXME: we may have to deal with multi-command sequences.
10448      ;;
10449    '$CC '*)
10450      # Test whether the compiler implicitly links with -lc since on some
10451      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10452      # to ld, don't add -lc before -lgcc.
10453      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10454$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10455if ${lt_cv_archive_cmds_need_lc+:} false; then :
10456  $as_echo_n "(cached) " >&6
10457else
10458  $RM conftest*
10459	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10460
10461	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10462  (eval $ac_compile) 2>&5
10463  ac_status=$?
10464  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10465  test $ac_status = 0; } 2>conftest.err; then
10466	  soname=conftest
10467	  lib=conftest
10468	  libobjs=conftest.$ac_objext
10469	  deplibs=
10470	  wl=$lt_prog_compiler_wl
10471	  pic_flag=$lt_prog_compiler_pic
10472	  compiler_flags=-v
10473	  linker_flags=-v
10474	  verstring=
10475	  output_objdir=.
10476	  libname=conftest
10477	  lt_save_allow_undefined_flag=$allow_undefined_flag
10478	  allow_undefined_flag=
10479	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10480  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10481  ac_status=$?
10482  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10483  test $ac_status = 0; }
10484	  then
10485	    lt_cv_archive_cmds_need_lc=no
10486	  else
10487	    lt_cv_archive_cmds_need_lc=yes
10488	  fi
10489	  allow_undefined_flag=$lt_save_allow_undefined_flag
10490	else
10491	  cat conftest.err 1>&5
10492	fi
10493	$RM conftest*
10494
10495fi
10496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10497$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10498      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10499      ;;
10500    esac
10501  fi
10502  ;;
10503esac
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10657$as_echo_n "checking dynamic linker characteristics... " >&6; }
10658
10659if test yes = "$GCC"; then
10660  case $host_os in
10661    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10662    *) lt_awk_arg='/^libraries:/' ;;
10663  esac
10664  case $host_os in
10665    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10666    *) lt_sed_strip_eq='s|=/|/|g' ;;
10667  esac
10668  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10669  case $lt_search_path_spec in
10670  *\;*)
10671    # if the path contains ";" then we assume it to be the separator
10672    # otherwise default to the standard path separator (i.e. ":") - it is
10673    # assumed that no part of a normal pathname contains ";" but that should
10674    # okay in the real world where ";" in dirpaths is itself problematic.
10675    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10676    ;;
10677  *)
10678    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10679    ;;
10680  esac
10681  # Ok, now we have the path, separated by spaces, we can step through it
10682  # and add multilib dir if necessary...
10683  lt_tmp_lt_search_path_spec=
10684  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10685  # ...but if some path component already ends with the multilib dir we assume
10686  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10687  case "$lt_multi_os_dir; $lt_search_path_spec " in
10688  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10689    lt_multi_os_dir=
10690    ;;
10691  esac
10692  for lt_sys_path in $lt_search_path_spec; do
10693    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10694      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10695    elif test -n "$lt_multi_os_dir"; then
10696      test -d "$lt_sys_path" && \
10697	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10698    fi
10699  done
10700  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10701BEGIN {RS = " "; FS = "/|\n";} {
10702  lt_foo = "";
10703  lt_count = 0;
10704  for (lt_i = NF; lt_i > 0; lt_i--) {
10705    if ($lt_i != "" && $lt_i != ".") {
10706      if ($lt_i == "..") {
10707        lt_count++;
10708      } else {
10709        if (lt_count == 0) {
10710          lt_foo = "/" $lt_i lt_foo;
10711        } else {
10712          lt_count--;
10713        }
10714      }
10715    }
10716  }
10717  if (lt_foo != "") { lt_freq[lt_foo]++; }
10718  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10719}'`
10720  # AWK program above erroneously prepends '/' to C:/dos/paths
10721  # for these hosts.
10722  case $host_os in
10723    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10724      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10725  esac
10726  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10727else
10728  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10729fi
10730library_names_spec=
10731libname_spec='lib$name'
10732soname_spec=
10733shrext_cmds=.so
10734postinstall_cmds=
10735postuninstall_cmds=
10736finish_cmds=
10737finish_eval=
10738shlibpath_var=
10739shlibpath_overrides_runpath=unknown
10740version_type=none
10741dynamic_linker="$host_os ld.so"
10742sys_lib_dlsearch_path_spec="/lib /usr/lib"
10743need_lib_prefix=unknown
10744hardcode_into_libs=no
10745
10746# when you set need_version to no, make sure it does not cause -set_version
10747# flags to be left without arguments
10748need_version=unknown
10749
10750
10751
10752case $host_os in
10753aix3*)
10754  version_type=linux # correct to gnu/linux during the next big refactor
10755  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10756  shlibpath_var=LIBPATH
10757
10758  # AIX 3 has no versioning support, so we append a major version to the name.
10759  soname_spec='$libname$release$shared_ext$major'
10760  ;;
10761
10762aix[4-9]*)
10763  version_type=linux # correct to gnu/linux during the next big refactor
10764  need_lib_prefix=no
10765  need_version=no
10766  hardcode_into_libs=yes
10767  if test ia64 = "$host_cpu"; then
10768    # AIX 5 supports IA64
10769    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10770    shlibpath_var=LD_LIBRARY_PATH
10771  else
10772    # With GCC up to 2.95.x, collect2 would create an import file
10773    # for dependence libraries.  The import file would start with
10774    # the line '#! .'.  This would cause the generated library to
10775    # depend on '.', always an invalid library.  This was fixed in
10776    # development snapshots of GCC prior to 3.0.
10777    case $host_os in
10778      aix4 | aix4.[01] | aix4.[01].*)
10779      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10780	   echo ' yes '
10781	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10782	:
10783      else
10784	can_build_shared=no
10785      fi
10786      ;;
10787    esac
10788    # Using Import Files as archive members, it is possible to support
10789    # filename-based versioning of shared library archives on AIX. While
10790    # this would work for both with and without runtime linking, it will
10791    # prevent static linking of such archives. So we do filename-based
10792    # shared library versioning with .so extension only, which is used
10793    # when both runtime linking and shared linking is enabled.
10794    # Unfortunately, runtime linking may impact performance, so we do
10795    # not want this to be the default eventually. Also, we use the
10796    # versioned .so libs for executables only if there is the -brtl
10797    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10798    # To allow for filename-based versioning support, we need to create
10799    # libNAME.so.V as an archive file, containing:
10800    # *) an Import File, referring to the versioned filename of the
10801    #    archive as well as the shared archive member, telling the
10802    #    bitwidth (32 or 64) of that shared object, and providing the
10803    #    list of exported symbols of that shared object, eventually
10804    #    decorated with the 'weak' keyword
10805    # *) the shared object with the F_LOADONLY flag set, to really avoid
10806    #    it being seen by the linker.
10807    # At run time we better use the real file rather than another symlink,
10808    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10809
10810    case $with_aix_soname,$aix_use_runtimelinking in
10811    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10812    # soname into executable. Probably we can add versioning support to
10813    # collect2, so additional links can be useful in future.
10814    aix,yes) # traditional libtool
10815      dynamic_linker='AIX unversionable lib.so'
10816      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10817      # instead of lib<name>.a to let people know that these are not
10818      # typical AIX shared libraries.
10819      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10820      ;;
10821    aix,no) # traditional AIX only
10822      dynamic_linker='AIX lib.a(lib.so.V)'
10823      # We preserve .a as extension for shared libraries through AIX4.2
10824      # and later when we are not doing run time linking.
10825      library_names_spec='$libname$release.a $libname.a'
10826      soname_spec='$libname$release$shared_ext$major'
10827      ;;
10828    svr4,*) # full svr4 only
10829      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10830      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10831      # We do not specify a path in Import Files, so LIBPATH fires.
10832      shlibpath_overrides_runpath=yes
10833      ;;
10834    *,yes) # both, prefer svr4
10835      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10836      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10837      # unpreferred sharedlib libNAME.a needs extra handling
10838      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"'
10839      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"'
10840      # We do not specify a path in Import Files, so LIBPATH fires.
10841      shlibpath_overrides_runpath=yes
10842      ;;
10843    *,no) # both, prefer aix
10844      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10845      library_names_spec='$libname$release.a $libname.a'
10846      soname_spec='$libname$release$shared_ext$major'
10847      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10848      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)'
10849      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"'
10850      ;;
10851    esac
10852    shlibpath_var=LIBPATH
10853  fi
10854  ;;
10855
10856amigaos*)
10857  case $host_cpu in
10858  powerpc)
10859    # Since July 2007 AmigaOS4 officially supports .so libraries.
10860    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10861    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10862    ;;
10863  m68k)
10864    library_names_spec='$libname.ixlibrary $libname.a'
10865    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10866    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'
10867    ;;
10868  esac
10869  ;;
10870
10871beos*)
10872  library_names_spec='$libname$shared_ext'
10873  dynamic_linker="$host_os ld.so"
10874  shlibpath_var=LIBRARY_PATH
10875  ;;
10876
10877bsdi[45]*)
10878  version_type=linux # correct to gnu/linux during the next big refactor
10879  need_version=no
10880  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10881  soname_spec='$libname$release$shared_ext$major'
10882  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10883  shlibpath_var=LD_LIBRARY_PATH
10884  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10885  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10886  # the default ld.so.conf also contains /usr/contrib/lib and
10887  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10888  # libtool to hard-code these into programs
10889  ;;
10890
10891cygwin* | mingw* | pw32* | cegcc*)
10892  version_type=windows
10893  shrext_cmds=.dll
10894  need_version=no
10895  need_lib_prefix=no
10896
10897  case $GCC,$cc_basename in
10898  yes,*)
10899    # gcc
10900    library_names_spec='$libname.dll.a'
10901    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10902    postinstall_cmds='base_file=`basename \$file`~
10903      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10904      dldir=$destdir/`dirname \$dlpath`~
10905      test -d \$dldir || mkdir -p \$dldir~
10906      $install_prog $dir/$dlname \$dldir/$dlname~
10907      chmod a+x \$dldir/$dlname~
10908      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10909        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10910      fi'
10911    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10912      dlpath=$dir/\$dldll~
10913       $RM \$dlpath'
10914    shlibpath_overrides_runpath=yes
10915
10916    case $host_os in
10917    cygwin*)
10918      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10919      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10920
10921      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10922      ;;
10923    mingw* | cegcc*)
10924      # MinGW DLLs use traditional 'lib' prefix
10925      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10926      ;;
10927    pw32*)
10928      # pw32 DLLs use 'pw' prefix rather than 'lib'
10929      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10930      ;;
10931    esac
10932    dynamic_linker='Win32 ld.exe'
10933    ;;
10934
10935  *,cl*)
10936    # Native MSVC
10937    libname_spec='$name'
10938    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10939    library_names_spec='$libname.dll.lib'
10940
10941    case $build_os in
10942    mingw*)
10943      sys_lib_search_path_spec=
10944      lt_save_ifs=$IFS
10945      IFS=';'
10946      for lt_path in $LIB
10947      do
10948        IFS=$lt_save_ifs
10949        # Let DOS variable expansion print the short 8.3 style file name.
10950        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10951        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10952      done
10953      IFS=$lt_save_ifs
10954      # Convert to MSYS style.
10955      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10956      ;;
10957    cygwin*)
10958      # Convert to unix form, then to dos form, then back to unix form
10959      # but this time dos style (no spaces!) so that the unix form looks
10960      # like /cygdrive/c/PROGRA~1:/cygdr...
10961      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10962      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10963      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10964      ;;
10965    *)
10966      sys_lib_search_path_spec=$LIB
10967      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10968        # It is most probably a Windows format PATH.
10969        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10970      else
10971        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10972      fi
10973      # FIXME: find the short name or the path components, as spaces are
10974      # common. (e.g. "Program Files" -> "PROGRA~1")
10975      ;;
10976    esac
10977
10978    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10979    postinstall_cmds='base_file=`basename \$file`~
10980      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10981      dldir=$destdir/`dirname \$dlpath`~
10982      test -d \$dldir || mkdir -p \$dldir~
10983      $install_prog $dir/$dlname \$dldir/$dlname'
10984    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10985      dlpath=$dir/\$dldll~
10986       $RM \$dlpath'
10987    shlibpath_overrides_runpath=yes
10988    dynamic_linker='Win32 link.exe'
10989    ;;
10990
10991  *)
10992    # Assume MSVC wrapper
10993    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10994    dynamic_linker='Win32 ld.exe'
10995    ;;
10996  esac
10997  # FIXME: first we should search . and the directory the executable is in
10998  shlibpath_var=PATH
10999  ;;
11000
11001darwin* | rhapsody*)
11002  dynamic_linker="$host_os dyld"
11003  version_type=darwin
11004  need_lib_prefix=no
11005  need_version=no
11006  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11007  soname_spec='$libname$release$major$shared_ext'
11008  shlibpath_overrides_runpath=yes
11009  shlibpath_var=DYLD_LIBRARY_PATH
11010  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11011
11012  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11013  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11014  ;;
11015
11016dgux*)
11017  version_type=linux # correct to gnu/linux during the next big refactor
11018  need_lib_prefix=no
11019  need_version=no
11020  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11021  soname_spec='$libname$release$shared_ext$major'
11022  shlibpath_var=LD_LIBRARY_PATH
11023  ;;
11024
11025freebsd* | dragonfly*)
11026  # DragonFly does not have aout.  When/if they implement a new
11027  # versioning mechanism, adjust this.
11028  if test -x /usr/bin/objformat; then
11029    objformat=`/usr/bin/objformat`
11030  else
11031    case $host_os in
11032    freebsd[23].*) objformat=aout ;;
11033    *) objformat=elf ;;
11034    esac
11035  fi
11036  version_type=freebsd-$objformat
11037  case $version_type in
11038    freebsd-elf*)
11039      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11040      soname_spec='$libname$release$shared_ext$major'
11041      need_version=no
11042      need_lib_prefix=no
11043      ;;
11044    freebsd-*)
11045      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11046      need_version=yes
11047      ;;
11048  esac
11049  shlibpath_var=LD_LIBRARY_PATH
11050  case $host_os in
11051  freebsd2.*)
11052    shlibpath_overrides_runpath=yes
11053    ;;
11054  freebsd3.[01]* | freebsdelf3.[01]*)
11055    shlibpath_overrides_runpath=yes
11056    hardcode_into_libs=yes
11057    ;;
11058  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11059  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11060    shlibpath_overrides_runpath=no
11061    hardcode_into_libs=yes
11062    ;;
11063  *) # from 4.6 on, and DragonFly
11064    shlibpath_overrides_runpath=yes
11065    hardcode_into_libs=yes
11066    ;;
11067  esac
11068  ;;
11069
11070haiku*)
11071  version_type=linux # correct to gnu/linux during the next big refactor
11072  need_lib_prefix=no
11073  need_version=no
11074  dynamic_linker="$host_os runtime_loader"
11075  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11076  soname_spec='$libname$release$shared_ext$major'
11077  shlibpath_var=LIBRARY_PATH
11078  shlibpath_overrides_runpath=no
11079  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11080  hardcode_into_libs=yes
11081  ;;
11082
11083hpux9* | hpux10* | hpux11*)
11084  # Give a soname corresponding to the major version so that dld.sl refuses to
11085  # link against other versions.
11086  version_type=sunos
11087  need_lib_prefix=no
11088  need_version=no
11089  case $host_cpu in
11090  ia64*)
11091    shrext_cmds='.so'
11092    hardcode_into_libs=yes
11093    dynamic_linker="$host_os dld.so"
11094    shlibpath_var=LD_LIBRARY_PATH
11095    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11096    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11097    soname_spec='$libname$release$shared_ext$major'
11098    if test 32 = "$HPUX_IA64_MODE"; then
11099      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11100      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11101    else
11102      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11103      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11104    fi
11105    ;;
11106  hppa*64*)
11107    shrext_cmds='.sl'
11108    hardcode_into_libs=yes
11109    dynamic_linker="$host_os dld.sl"
11110    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11111    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11112    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11113    soname_spec='$libname$release$shared_ext$major'
11114    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11115    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11116    ;;
11117  *)
11118    shrext_cmds='.sl'
11119    dynamic_linker="$host_os dld.sl"
11120    shlibpath_var=SHLIB_PATH
11121    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11122    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11123    soname_spec='$libname$release$shared_ext$major'
11124    ;;
11125  esac
11126  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11127  postinstall_cmds='chmod 555 $lib'
11128  # or fails outright, so override atomically:
11129  install_override_mode=555
11130  ;;
11131
11132interix[3-9]*)
11133  version_type=linux # correct to gnu/linux during the next big refactor
11134  need_lib_prefix=no
11135  need_version=no
11136  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11137  soname_spec='$libname$release$shared_ext$major'
11138  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11139  shlibpath_var=LD_LIBRARY_PATH
11140  shlibpath_overrides_runpath=no
11141  hardcode_into_libs=yes
11142  ;;
11143
11144irix5* | irix6* | nonstopux*)
11145  case $host_os in
11146    nonstopux*) version_type=nonstopux ;;
11147    *)
11148	if test yes = "$lt_cv_prog_gnu_ld"; then
11149		version_type=linux # correct to gnu/linux during the next big refactor
11150	else
11151		version_type=irix
11152	fi ;;
11153  esac
11154  need_lib_prefix=no
11155  need_version=no
11156  soname_spec='$libname$release$shared_ext$major'
11157  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11158  case $host_os in
11159  irix5* | nonstopux*)
11160    libsuff= shlibsuff=
11161    ;;
11162  *)
11163    case $LD in # libtool.m4 will add one of these switches to LD
11164    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11165      libsuff= shlibsuff= libmagic=32-bit;;
11166    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11167      libsuff=32 shlibsuff=N32 libmagic=N32;;
11168    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11169      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11170    *) libsuff= shlibsuff= libmagic=never-match;;
11171    esac
11172    ;;
11173  esac
11174  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11175  shlibpath_overrides_runpath=no
11176  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11177  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11178  hardcode_into_libs=yes
11179  ;;
11180
11181# No shared lib support for Linux oldld, aout, or coff.
11182linux*oldld* | linux*aout* | linux*coff*)
11183  dynamic_linker=no
11184  ;;
11185
11186linux*android*)
11187  version_type=none # Android doesn't support versioned libraries.
11188  need_lib_prefix=no
11189  need_version=no
11190  library_names_spec='$libname$release$shared_ext'
11191  soname_spec='$libname$release$shared_ext'
11192  finish_cmds=
11193  shlibpath_var=LD_LIBRARY_PATH
11194  shlibpath_overrides_runpath=yes
11195
11196  # This implies no fast_install, which is unacceptable.
11197  # Some rework will be needed to allow for fast_install
11198  # before this can be enabled.
11199  hardcode_into_libs=yes
11200
11201  dynamic_linker='Android linker'
11202  # Don't embed -rpath directories since the linker doesn't support them.
11203  hardcode_libdir_flag_spec='-L$libdir'
11204  ;;
11205
11206# This must be glibc/ELF.
11207linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11208  version_type=linux # correct to gnu/linux during the next big refactor
11209  need_lib_prefix=no
11210  need_version=no
11211  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11212  soname_spec='$libname$release$shared_ext$major'
11213  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11214  shlibpath_var=LD_LIBRARY_PATH
11215  shlibpath_overrides_runpath=no
11216
11217  # Some binutils ld are patched to set DT_RUNPATH
11218  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11219  $as_echo_n "(cached) " >&6
11220else
11221  lt_cv_shlibpath_overrides_runpath=no
11222    save_LDFLAGS=$LDFLAGS
11223    save_libdir=$libdir
11224    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11225	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11226    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11227/* end confdefs.h.  */
11228
11229int
11230main ()
11231{
11232
11233  ;
11234  return 0;
11235}
11236_ACEOF
11237if ac_fn_c_try_link "$LINENO"; then :
11238  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11239  lt_cv_shlibpath_overrides_runpath=yes
11240fi
11241fi
11242rm -f core conftest.err conftest.$ac_objext \
11243    conftest$ac_exeext conftest.$ac_ext
11244    LDFLAGS=$save_LDFLAGS
11245    libdir=$save_libdir
11246
11247fi
11248
11249  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11250
11251  # This implies no fast_install, which is unacceptable.
11252  # Some rework will be needed to allow for fast_install
11253  # before this can be enabled.
11254  hardcode_into_libs=yes
11255
11256  # Add ABI-specific directories to the system library path.
11257  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11258
11259  # Ideally, we could use ldconfig to report *all* directores which are
11260  # searched for libraries, however this is still not possible.  Aside from not
11261  # being certain /sbin/ldconfig is available, command
11262  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11263  # even though it is searched at run-time.  Try to do the best guess by
11264  # appending ld.so.conf contents (and includes) to the search path.
11265  if test -f /etc/ld.so.conf; then
11266    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' ' '`
11267    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11268  fi
11269
11270  # We used to test for /lib/ld.so.1 and disable shared libraries on
11271  # powerpc, because MkLinux only supported shared libraries with the
11272  # GNU dynamic linker.  Since this was broken with cross compilers,
11273  # most powerpc-linux boxes support dynamic linking these days and
11274  # people can always --disable-shared, the test was removed, and we
11275  # assume the GNU/Linux dynamic linker is in use.
11276  dynamic_linker='GNU/Linux ld.so'
11277  ;;
11278
11279netbsd*)
11280  version_type=sunos
11281  need_lib_prefix=no
11282  need_version=no
11283  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11284    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11285    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11286    dynamic_linker='NetBSD (a.out) ld.so'
11287  else
11288    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11289    soname_spec='$libname$release$shared_ext$major'
11290    dynamic_linker='NetBSD ld.elf_so'
11291  fi
11292  shlibpath_var=LD_LIBRARY_PATH
11293  shlibpath_overrides_runpath=yes
11294  hardcode_into_libs=yes
11295  ;;
11296
11297newsos6)
11298  version_type=linux # correct to gnu/linux during the next big refactor
11299  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11300  shlibpath_var=LD_LIBRARY_PATH
11301  shlibpath_overrides_runpath=yes
11302  ;;
11303
11304*nto* | *qnx*)
11305  version_type=qnx
11306  need_lib_prefix=no
11307  need_version=no
11308  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11309  soname_spec='$libname$release$shared_ext$major'
11310  shlibpath_var=LD_LIBRARY_PATH
11311  shlibpath_overrides_runpath=no
11312  hardcode_into_libs=yes
11313  dynamic_linker='ldqnx.so'
11314  ;;
11315
11316openbsd* | bitrig*)
11317  version_type=sunos
11318  sys_lib_dlsearch_path_spec=/usr/lib
11319  need_lib_prefix=no
11320  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11321    need_version=no
11322  else
11323    need_version=yes
11324  fi
11325  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11326  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11327  shlibpath_var=LD_LIBRARY_PATH
11328  shlibpath_overrides_runpath=yes
11329  ;;
11330
11331os2*)
11332  libname_spec='$name'
11333  version_type=windows
11334  shrext_cmds=.dll
11335  need_version=no
11336  need_lib_prefix=no
11337  # OS/2 can only load a DLL with a base name of 8 characters or less.
11338  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11339    v=$($ECHO $release$versuffix | tr -d .-);
11340    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11341    $ECHO $n$v`$shared_ext'
11342  library_names_spec='${libname}_dll.$libext'
11343  dynamic_linker='OS/2 ld.exe'
11344  shlibpath_var=BEGINLIBPATH
11345  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11346  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11347  postinstall_cmds='base_file=`basename \$file`~
11348    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11349    dldir=$destdir/`dirname \$dlpath`~
11350    test -d \$dldir || mkdir -p \$dldir~
11351    $install_prog $dir/$dlname \$dldir/$dlname~
11352    chmod a+x \$dldir/$dlname~
11353    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11354      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11355    fi'
11356  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11357    dlpath=$dir/\$dldll~
11358    $RM \$dlpath'
11359  ;;
11360
11361osf3* | osf4* | osf5*)
11362  version_type=osf
11363  need_lib_prefix=no
11364  need_version=no
11365  soname_spec='$libname$release$shared_ext$major'
11366  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11367  shlibpath_var=LD_LIBRARY_PATH
11368  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11369  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11370  ;;
11371
11372rdos*)
11373  dynamic_linker=no
11374  ;;
11375
11376solaris*)
11377  version_type=linux # correct to gnu/linux during the next big refactor
11378  need_lib_prefix=no
11379  need_version=no
11380  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11381  soname_spec='$libname$release$shared_ext$major'
11382  shlibpath_var=LD_LIBRARY_PATH
11383  shlibpath_overrides_runpath=yes
11384  hardcode_into_libs=yes
11385  # ldd complains unless libraries are executable
11386  postinstall_cmds='chmod +x $lib'
11387  ;;
11388
11389sunos4*)
11390  version_type=sunos
11391  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11392  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11393  shlibpath_var=LD_LIBRARY_PATH
11394  shlibpath_overrides_runpath=yes
11395  if test yes = "$with_gnu_ld"; then
11396    need_lib_prefix=no
11397  fi
11398  need_version=yes
11399  ;;
11400
11401sysv4 | sysv4.3*)
11402  version_type=linux # correct to gnu/linux during the next big refactor
11403  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11404  soname_spec='$libname$release$shared_ext$major'
11405  shlibpath_var=LD_LIBRARY_PATH
11406  case $host_vendor in
11407    sni)
11408      shlibpath_overrides_runpath=no
11409      need_lib_prefix=no
11410      runpath_var=LD_RUN_PATH
11411      ;;
11412    siemens)
11413      need_lib_prefix=no
11414      ;;
11415    motorola)
11416      need_lib_prefix=no
11417      need_version=no
11418      shlibpath_overrides_runpath=no
11419      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11420      ;;
11421  esac
11422  ;;
11423
11424sysv4*MP*)
11425  if test -d /usr/nec; then
11426    version_type=linux # correct to gnu/linux during the next big refactor
11427    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11428    soname_spec='$libname$shared_ext.$major'
11429    shlibpath_var=LD_LIBRARY_PATH
11430  fi
11431  ;;
11432
11433sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11434  version_type=sco
11435  need_lib_prefix=no
11436  need_version=no
11437  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11438  soname_spec='$libname$release$shared_ext$major'
11439  shlibpath_var=LD_LIBRARY_PATH
11440  shlibpath_overrides_runpath=yes
11441  hardcode_into_libs=yes
11442  if test yes = "$with_gnu_ld"; then
11443    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11444  else
11445    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11446    case $host_os in
11447      sco3.2v5*)
11448        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11449	;;
11450    esac
11451  fi
11452  sys_lib_dlsearch_path_spec='/usr/lib'
11453  ;;
11454
11455tpf*)
11456  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11457  version_type=linux # correct to gnu/linux during the next big refactor
11458  need_lib_prefix=no
11459  need_version=no
11460  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11461  shlibpath_var=LD_LIBRARY_PATH
11462  shlibpath_overrides_runpath=no
11463  hardcode_into_libs=yes
11464  ;;
11465
11466uts4*)
11467  version_type=linux # correct to gnu/linux during the next big refactor
11468  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11469  soname_spec='$libname$release$shared_ext$major'
11470  shlibpath_var=LD_LIBRARY_PATH
11471  ;;
11472
11473*)
11474  dynamic_linker=no
11475  ;;
11476esac
11477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11478$as_echo "$dynamic_linker" >&6; }
11479test no = "$dynamic_linker" && can_build_shared=no
11480
11481variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11482if test yes = "$GCC"; then
11483  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11484fi
11485
11486if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11487  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11488fi
11489
11490if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11491  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11492fi
11493
11494# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11495configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11496
11497# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11498func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11499
11500# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11501configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11600$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11601hardcode_action=
11602if test -n "$hardcode_libdir_flag_spec" ||
11603   test -n "$runpath_var" ||
11604   test yes = "$hardcode_automatic"; then
11605
11606  # We can hardcode non-existent directories.
11607  if test no != "$hardcode_direct" &&
11608     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11609     # have to relink, otherwise we might link with an installed library
11610     # when we should be linking with a yet-to-be-installed one
11611     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11612     test no != "$hardcode_minus_L"; then
11613    # Linking always hardcodes the temporary library directory.
11614    hardcode_action=relink
11615  else
11616    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11617    hardcode_action=immediate
11618  fi
11619else
11620  # We cannot hardcode anything, or else we can only hardcode existing
11621  # directories.
11622  hardcode_action=unsupported
11623fi
11624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11625$as_echo "$hardcode_action" >&6; }
11626
11627if test relink = "$hardcode_action" ||
11628   test yes = "$inherit_rpath"; then
11629  # Fast installation is not supported
11630  enable_fast_install=no
11631elif test yes = "$shlibpath_overrides_runpath" ||
11632     test no = "$enable_shared"; then
11633  # Fast installation is not necessary
11634  enable_fast_install=needless
11635fi
11636
11637
11638
11639
11640
11641
11642  if test yes != "$enable_dlopen"; then
11643  enable_dlopen=unknown
11644  enable_dlopen_self=unknown
11645  enable_dlopen_self_static=unknown
11646else
11647  lt_cv_dlopen=no
11648  lt_cv_dlopen_libs=
11649
11650  case $host_os in
11651  beos*)
11652    lt_cv_dlopen=load_add_on
11653    lt_cv_dlopen_libs=
11654    lt_cv_dlopen_self=yes
11655    ;;
11656
11657  mingw* | pw32* | cegcc*)
11658    lt_cv_dlopen=LoadLibrary
11659    lt_cv_dlopen_libs=
11660    ;;
11661
11662  cygwin*)
11663    lt_cv_dlopen=dlopen
11664    lt_cv_dlopen_libs=
11665    ;;
11666
11667  darwin*)
11668    # if libdl is installed we need to link against it
11669    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11670$as_echo_n "checking for dlopen in -ldl... " >&6; }
11671if ${ac_cv_lib_dl_dlopen+:} false; then :
11672  $as_echo_n "(cached) " >&6
11673else
11674  ac_check_lib_save_LIBS=$LIBS
11675LIBS="-ldl  $LIBS"
11676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11677/* end confdefs.h.  */
11678
11679/* Override any GCC internal prototype to avoid an error.
11680   Use char because int might match the return type of a GCC
11681   builtin and then its argument prototype would still apply.  */
11682#ifdef __cplusplus
11683extern "C"
11684#endif
11685char dlopen ();
11686int
11687main ()
11688{
11689return dlopen ();
11690  ;
11691  return 0;
11692}
11693_ACEOF
11694if ac_fn_c_try_link "$LINENO"; then :
11695  ac_cv_lib_dl_dlopen=yes
11696else
11697  ac_cv_lib_dl_dlopen=no
11698fi
11699rm -f core conftest.err conftest.$ac_objext \
11700    conftest$ac_exeext conftest.$ac_ext
11701LIBS=$ac_check_lib_save_LIBS
11702fi
11703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11704$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11705if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11706  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11707else
11708
11709    lt_cv_dlopen=dyld
11710    lt_cv_dlopen_libs=
11711    lt_cv_dlopen_self=yes
11712
11713fi
11714
11715    ;;
11716
11717  tpf*)
11718    # Don't try to run any link tests for TPF.  We know it's impossible
11719    # because TPF is a cross-compiler, and we know how we open DSOs.
11720    lt_cv_dlopen=dlopen
11721    lt_cv_dlopen_libs=
11722    lt_cv_dlopen_self=no
11723    ;;
11724
11725  *)
11726    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11727if test "x$ac_cv_func_shl_load" = xyes; then :
11728  lt_cv_dlopen=shl_load
11729else
11730  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11731$as_echo_n "checking for shl_load in -ldld... " >&6; }
11732if ${ac_cv_lib_dld_shl_load+:} false; then :
11733  $as_echo_n "(cached) " >&6
11734else
11735  ac_check_lib_save_LIBS=$LIBS
11736LIBS="-ldld  $LIBS"
11737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11738/* end confdefs.h.  */
11739
11740/* Override any GCC internal prototype to avoid an error.
11741   Use char because int might match the return type of a GCC
11742   builtin and then its argument prototype would still apply.  */
11743#ifdef __cplusplus
11744extern "C"
11745#endif
11746char shl_load ();
11747int
11748main ()
11749{
11750return shl_load ();
11751  ;
11752  return 0;
11753}
11754_ACEOF
11755if ac_fn_c_try_link "$LINENO"; then :
11756  ac_cv_lib_dld_shl_load=yes
11757else
11758  ac_cv_lib_dld_shl_load=no
11759fi
11760rm -f core conftest.err conftest.$ac_objext \
11761    conftest$ac_exeext conftest.$ac_ext
11762LIBS=$ac_check_lib_save_LIBS
11763fi
11764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11765$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11766if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11767  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11768else
11769  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11770if test "x$ac_cv_func_dlopen" = xyes; then :
11771  lt_cv_dlopen=dlopen
11772else
11773  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11774$as_echo_n "checking for dlopen in -ldl... " >&6; }
11775if ${ac_cv_lib_dl_dlopen+:} false; then :
11776  $as_echo_n "(cached) " >&6
11777else
11778  ac_check_lib_save_LIBS=$LIBS
11779LIBS="-ldl  $LIBS"
11780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11781/* end confdefs.h.  */
11782
11783/* Override any GCC internal prototype to avoid an error.
11784   Use char because int might match the return type of a GCC
11785   builtin and then its argument prototype would still apply.  */
11786#ifdef __cplusplus
11787extern "C"
11788#endif
11789char dlopen ();
11790int
11791main ()
11792{
11793return dlopen ();
11794  ;
11795  return 0;
11796}
11797_ACEOF
11798if ac_fn_c_try_link "$LINENO"; then :
11799  ac_cv_lib_dl_dlopen=yes
11800else
11801  ac_cv_lib_dl_dlopen=no
11802fi
11803rm -f core conftest.err conftest.$ac_objext \
11804    conftest$ac_exeext conftest.$ac_ext
11805LIBS=$ac_check_lib_save_LIBS
11806fi
11807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11808$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11809if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11810  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11811else
11812  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11813$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11814if ${ac_cv_lib_svld_dlopen+:} false; then :
11815  $as_echo_n "(cached) " >&6
11816else
11817  ac_check_lib_save_LIBS=$LIBS
11818LIBS="-lsvld  $LIBS"
11819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11820/* end confdefs.h.  */
11821
11822/* Override any GCC internal prototype to avoid an error.
11823   Use char because int might match the return type of a GCC
11824   builtin and then its argument prototype would still apply.  */
11825#ifdef __cplusplus
11826extern "C"
11827#endif
11828char dlopen ();
11829int
11830main ()
11831{
11832return dlopen ();
11833  ;
11834  return 0;
11835}
11836_ACEOF
11837if ac_fn_c_try_link "$LINENO"; then :
11838  ac_cv_lib_svld_dlopen=yes
11839else
11840  ac_cv_lib_svld_dlopen=no
11841fi
11842rm -f core conftest.err conftest.$ac_objext \
11843    conftest$ac_exeext conftest.$ac_ext
11844LIBS=$ac_check_lib_save_LIBS
11845fi
11846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11847$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11848if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11849  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11850else
11851  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11852$as_echo_n "checking for dld_link in -ldld... " >&6; }
11853if ${ac_cv_lib_dld_dld_link+:} false; then :
11854  $as_echo_n "(cached) " >&6
11855else
11856  ac_check_lib_save_LIBS=$LIBS
11857LIBS="-ldld  $LIBS"
11858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11859/* end confdefs.h.  */
11860
11861/* Override any GCC internal prototype to avoid an error.
11862   Use char because int might match the return type of a GCC
11863   builtin and then its argument prototype would still apply.  */
11864#ifdef __cplusplus
11865extern "C"
11866#endif
11867char dld_link ();
11868int
11869main ()
11870{
11871return dld_link ();
11872  ;
11873  return 0;
11874}
11875_ACEOF
11876if ac_fn_c_try_link "$LINENO"; then :
11877  ac_cv_lib_dld_dld_link=yes
11878else
11879  ac_cv_lib_dld_dld_link=no
11880fi
11881rm -f core conftest.err conftest.$ac_objext \
11882    conftest$ac_exeext conftest.$ac_ext
11883LIBS=$ac_check_lib_save_LIBS
11884fi
11885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11886$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11887if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11888  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11889fi
11890
11891
11892fi
11893
11894
11895fi
11896
11897
11898fi
11899
11900
11901fi
11902
11903
11904fi
11905
11906    ;;
11907  esac
11908
11909  if test no = "$lt_cv_dlopen"; then
11910    enable_dlopen=no
11911  else
11912    enable_dlopen=yes
11913  fi
11914
11915  case $lt_cv_dlopen in
11916  dlopen)
11917    save_CPPFLAGS=$CPPFLAGS
11918    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11919
11920    save_LDFLAGS=$LDFLAGS
11921    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11922
11923    save_LIBS=$LIBS
11924    LIBS="$lt_cv_dlopen_libs $LIBS"
11925
11926    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11927$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11928if ${lt_cv_dlopen_self+:} false; then :
11929  $as_echo_n "(cached) " >&6
11930else
11931  	  if test yes = "$cross_compiling"; then :
11932  lt_cv_dlopen_self=cross
11933else
11934  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11935  lt_status=$lt_dlunknown
11936  cat > conftest.$ac_ext <<_LT_EOF
11937#line $LINENO "configure"
11938#include "confdefs.h"
11939
11940#if HAVE_DLFCN_H
11941#include <dlfcn.h>
11942#endif
11943
11944#include <stdio.h>
11945
11946#ifdef RTLD_GLOBAL
11947#  define LT_DLGLOBAL		RTLD_GLOBAL
11948#else
11949#  ifdef DL_GLOBAL
11950#    define LT_DLGLOBAL		DL_GLOBAL
11951#  else
11952#    define LT_DLGLOBAL		0
11953#  endif
11954#endif
11955
11956/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11957   find out it does not work in some platform. */
11958#ifndef LT_DLLAZY_OR_NOW
11959#  ifdef RTLD_LAZY
11960#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11961#  else
11962#    ifdef DL_LAZY
11963#      define LT_DLLAZY_OR_NOW		DL_LAZY
11964#    else
11965#      ifdef RTLD_NOW
11966#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11967#      else
11968#        ifdef DL_NOW
11969#          define LT_DLLAZY_OR_NOW	DL_NOW
11970#        else
11971#          define LT_DLLAZY_OR_NOW	0
11972#        endif
11973#      endif
11974#    endif
11975#  endif
11976#endif
11977
11978/* When -fvisibility=hidden is used, assume the code has been annotated
11979   correspondingly for the symbols needed.  */
11980#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11981int fnord () __attribute__((visibility("default")));
11982#endif
11983
11984int fnord () { return 42; }
11985int main ()
11986{
11987  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11988  int status = $lt_dlunknown;
11989
11990  if (self)
11991    {
11992      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11993      else
11994        {
11995	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11996          else puts (dlerror ());
11997	}
11998      /* dlclose (self); */
11999    }
12000  else
12001    puts (dlerror ());
12002
12003  return status;
12004}
12005_LT_EOF
12006  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12007  (eval $ac_link) 2>&5
12008  ac_status=$?
12009  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12010  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12011    (./conftest; exit; ) >&5 2>/dev/null
12012    lt_status=$?
12013    case x$lt_status in
12014      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12015      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12016      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12017    esac
12018  else :
12019    # compilation failed
12020    lt_cv_dlopen_self=no
12021  fi
12022fi
12023rm -fr conftest*
12024
12025
12026fi
12027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12028$as_echo "$lt_cv_dlopen_self" >&6; }
12029
12030    if test yes = "$lt_cv_dlopen_self"; then
12031      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12032      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12033$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12034if ${lt_cv_dlopen_self_static+:} false; then :
12035  $as_echo_n "(cached) " >&6
12036else
12037  	  if test yes = "$cross_compiling"; then :
12038  lt_cv_dlopen_self_static=cross
12039else
12040  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12041  lt_status=$lt_dlunknown
12042  cat > conftest.$ac_ext <<_LT_EOF
12043#line $LINENO "configure"
12044#include "confdefs.h"
12045
12046#if HAVE_DLFCN_H
12047#include <dlfcn.h>
12048#endif
12049
12050#include <stdio.h>
12051
12052#ifdef RTLD_GLOBAL
12053#  define LT_DLGLOBAL		RTLD_GLOBAL
12054#else
12055#  ifdef DL_GLOBAL
12056#    define LT_DLGLOBAL		DL_GLOBAL
12057#  else
12058#    define LT_DLGLOBAL		0
12059#  endif
12060#endif
12061
12062/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12063   find out it does not work in some platform. */
12064#ifndef LT_DLLAZY_OR_NOW
12065#  ifdef RTLD_LAZY
12066#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12067#  else
12068#    ifdef DL_LAZY
12069#      define LT_DLLAZY_OR_NOW		DL_LAZY
12070#    else
12071#      ifdef RTLD_NOW
12072#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12073#      else
12074#        ifdef DL_NOW
12075#          define LT_DLLAZY_OR_NOW	DL_NOW
12076#        else
12077#          define LT_DLLAZY_OR_NOW	0
12078#        endif
12079#      endif
12080#    endif
12081#  endif
12082#endif
12083
12084/* When -fvisibility=hidden is used, assume the code has been annotated
12085   correspondingly for the symbols needed.  */
12086#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12087int fnord () __attribute__((visibility("default")));
12088#endif
12089
12090int fnord () { return 42; }
12091int main ()
12092{
12093  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12094  int status = $lt_dlunknown;
12095
12096  if (self)
12097    {
12098      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12099      else
12100        {
12101	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12102          else puts (dlerror ());
12103	}
12104      /* dlclose (self); */
12105    }
12106  else
12107    puts (dlerror ());
12108
12109  return status;
12110}
12111_LT_EOF
12112  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12113  (eval $ac_link) 2>&5
12114  ac_status=$?
12115  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12116  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12117    (./conftest; exit; ) >&5 2>/dev/null
12118    lt_status=$?
12119    case x$lt_status in
12120      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12121      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12122      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12123    esac
12124  else :
12125    # compilation failed
12126    lt_cv_dlopen_self_static=no
12127  fi
12128fi
12129rm -fr conftest*
12130
12131
12132fi
12133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12134$as_echo "$lt_cv_dlopen_self_static" >&6; }
12135    fi
12136
12137    CPPFLAGS=$save_CPPFLAGS
12138    LDFLAGS=$save_LDFLAGS
12139    LIBS=$save_LIBS
12140    ;;
12141  esac
12142
12143  case $lt_cv_dlopen_self in
12144  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12145  *) enable_dlopen_self=unknown ;;
12146  esac
12147
12148  case $lt_cv_dlopen_self_static in
12149  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12150  *) enable_dlopen_self_static=unknown ;;
12151  esac
12152fi
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170striplib=
12171old_striplib=
12172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12173$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12174if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12175  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12176  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12178$as_echo "yes" >&6; }
12179else
12180# FIXME - insert some real tests, host_os isn't really good enough
12181  case $host_os in
12182  darwin*)
12183    if test -n "$STRIP"; then
12184      striplib="$STRIP -x"
12185      old_striplib="$STRIP -S"
12186      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12187$as_echo "yes" >&6; }
12188    else
12189      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12190$as_echo "no" >&6; }
12191    fi
12192    ;;
12193  *)
12194    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12195$as_echo "no" >&6; }
12196    ;;
12197  esac
12198fi
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211  # Report what library types will actually be built
12212  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12213$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12215$as_echo "$can_build_shared" >&6; }
12216
12217  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12218$as_echo_n "checking whether to build shared libraries... " >&6; }
12219  test no = "$can_build_shared" && enable_shared=no
12220
12221  # On AIX, shared libraries and static libraries use the same namespace, and
12222  # are all built from PIC.
12223  case $host_os in
12224  aix3*)
12225    test yes = "$enable_shared" && enable_static=no
12226    if test -n "$RANLIB"; then
12227      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12228      postinstall_cmds='$RANLIB $lib'
12229    fi
12230    ;;
12231
12232  aix[4-9]*)
12233    if test ia64 != "$host_cpu"; then
12234      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12235      yes,aix,yes) ;;			# shared object as lib.so file only
12236      yes,svr4,*) ;;			# shared object as lib.so archive member only
12237      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12238      esac
12239    fi
12240    ;;
12241  esac
12242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12243$as_echo "$enable_shared" >&6; }
12244
12245  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12246$as_echo_n "checking whether to build static libraries... " >&6; }
12247  # Make sure either enable_shared or enable_static is yes.
12248  test yes = "$enable_shared" || enable_static=yes
12249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12250$as_echo "$enable_static" >&6; }
12251
12252
12253
12254
12255fi
12256ac_ext=c
12257ac_cpp='$CPP $CPPFLAGS'
12258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12260ac_compiler_gnu=$ac_cv_c_compiler_gnu
12261
12262CC=$lt_save_CC
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278        ac_config_commands="$ac_config_commands libtool"
12279
12280
12281
12282
12283# Only expand once:
12284
12285
12286
12287
12288# Check whether --with-gnu-ld was given.
12289if test "${with_gnu_ld+set}" = set; then :
12290  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12291else
12292  with_gnu_ld=no
12293fi
12294
12295ac_prog=ld
12296if test yes = "$GCC"; then
12297  # Check if gcc -print-prog-name=ld gives a path.
12298  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12299$as_echo_n "checking for ld used by $CC... " >&6; }
12300  case $host in
12301  *-*-mingw*)
12302    # gcc leaves a trailing carriage return, which upsets mingw
12303    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12304  *)
12305    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12306  esac
12307  case $ac_prog in
12308    # Accept absolute paths.
12309    [\\/]* | ?:[\\/]*)
12310      re_direlt='/[^/][^/]*/\.\./'
12311      # Canonicalize the pathname of ld
12312      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12313      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12314	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12315      done
12316      test -z "$LD" && LD=$ac_prog
12317      ;;
12318  "")
12319    # If it fails, then pretend we aren't using GCC.
12320    ac_prog=ld
12321    ;;
12322  *)
12323    # If it is relative, then search for the first ld in PATH.
12324    with_gnu_ld=unknown
12325    ;;
12326  esac
12327elif test yes = "$with_gnu_ld"; then
12328  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12329$as_echo_n "checking for GNU ld... " >&6; }
12330else
12331  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12332$as_echo_n "checking for non-GNU ld... " >&6; }
12333fi
12334if ${lt_cv_path_LD+:} false; then :
12335  $as_echo_n "(cached) " >&6
12336else
12337  if test -z "$LD"; then
12338  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12339  for ac_dir in $PATH; do
12340    IFS=$lt_save_ifs
12341    test -z "$ac_dir" && ac_dir=.
12342    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12343      lt_cv_path_LD=$ac_dir/$ac_prog
12344      # Check to see if the program is GNU ld.  I'd rather use --version,
12345      # but apparently some variants of GNU ld only accept -v.
12346      # Break only if it was the GNU/non-GNU ld that we prefer.
12347      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12348      *GNU* | *'with BFD'*)
12349	test no != "$with_gnu_ld" && break
12350	;;
12351      *)
12352	test yes != "$with_gnu_ld" && break
12353	;;
12354      esac
12355    fi
12356  done
12357  IFS=$lt_save_ifs
12358else
12359  lt_cv_path_LD=$LD # Let the user override the test with a path.
12360fi
12361fi
12362
12363LD=$lt_cv_path_LD
12364if test -n "$LD"; then
12365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12366$as_echo "$LD" >&6; }
12367else
12368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12369$as_echo "no" >&6; }
12370fi
12371test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12373$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12374if ${lt_cv_prog_gnu_ld+:} false; then :
12375  $as_echo_n "(cached) " >&6
12376else
12377  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12378case `$LD -v 2>&1 </dev/null` in
12379*GNU* | *'with BFD'*)
12380  lt_cv_prog_gnu_ld=yes
12381  ;;
12382*)
12383  lt_cv_prog_gnu_ld=no
12384  ;;
12385esac
12386fi
12387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12388$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12389with_gnu_ld=$lt_cv_prog_gnu_ld
12390
12391
12392
12393
12394
12395
12396
12397with_ldflags=""
12398if test "x$lt_cv_prog_gnu_ld" = "xyes"; then
12399
12400  for flag in \
12401				-Wl,--as-needed \
12402				-Wl,--gc-sections \
12403				-Wl,-z,relro \
12404				-Wl,-z,now; do
12405
12406  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports flag $flag in envvar LDFLAGS" >&5
12407$as_echo_n "checking if $CC supports flag $flag in envvar LDFLAGS... " >&6; }
12408if { as_var=`$as_echo "cc_cv_LDFLAGS_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12409  $as_echo_n "(cached) " >&6
12410else
12411  eval "cc_save_LDFLAGS='${LDFLAGS}'"
12412           eval "LDFLAGS='-Werror $flag'"
12413           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12414/* end confdefs.h.  */
12415int a = 0; int main(void) { return a; }
12416_ACEOF
12417if ac_fn_c_try_link "$LINENO"; then :
12418  eval "`$as_echo "cc_cv_LDFLAGS_$flag" | $as_tr_sh`='yes'"
12419else
12420  eval "`$as_echo "cc_cv_LDFLAGS_$flag" | $as_tr_sh`='no'"
12421fi
12422rm -f core conftest.err conftest.$ac_objext \
12423    conftest$ac_exeext conftest.$ac_ext
12424           eval "LDFLAGS='$cc_save_LDFLAGS'"
12425fi
12426eval ac_res=\$`$as_echo "cc_cv_LDFLAGS_$flag" | $as_tr_sh`
12427	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12428$as_echo "$ac_res" >&6; }
12429
12430  if eval test x$`$as_echo "cc_cv_LDFLAGS_$flag" | $as_tr_sh` = xyes; then :
12431  eval "with_ldflags='${with_ldflags} $flag'"
12432fi
12433
12434  done
12435
12436fi
12437GNU_LD_FLAGS=$with_ldflags
12438
12439
12440case "${host_os}" in
12441    freebsd*)
12442OS=freebsd
12443
12444        ;;
12445    *)
12446OS=linux
12447
12448        ;;
12449esac
12450
12451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for round in -lm" >&5
12452$as_echo_n "checking for round in -lm... " >&6; }
12453if ${ac_cv_lib_m_round+:} false; then :
12454  $as_echo_n "(cached) " >&6
12455else
12456  ac_check_lib_save_LIBS=$LIBS
12457LIBS="-lm  $LIBS"
12458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12459/* end confdefs.h.  */
12460
12461/* Override any GCC internal prototype to avoid an error.
12462   Use char because int might match the return type of a GCC
12463   builtin and then its argument prototype would still apply.  */
12464#ifdef __cplusplus
12465extern "C"
12466#endif
12467char round ();
12468int
12469main ()
12470{
12471return round ();
12472  ;
12473  return 0;
12474}
12475_ACEOF
12476if ac_fn_c_try_link "$LINENO"; then :
12477  ac_cv_lib_m_round=yes
12478else
12479  ac_cv_lib_m_round=no
12480fi
12481rm -f core conftest.err conftest.$ac_objext \
12482    conftest$ac_exeext conftest.$ac_ext
12483LIBS=$ac_check_lib_save_LIBS
12484fi
12485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_round" >&5
12486$as_echo "$ac_cv_lib_m_round" >&6; }
12487if test "x$ac_cv_lib_m_round" = xyes; then :
12488  cat >>confdefs.h <<_ACEOF
12489#define HAVE_LIBM 1
12490_ACEOF
12491
12492  LIBS="-lm $LIBS"
12493
12494fi
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12505	if test -n "$ac_tool_prefix"; then
12506  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12507set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12509$as_echo_n "checking for $ac_word... " >&6; }
12510if ${ac_cv_path_PKG_CONFIG+:} false; then :
12511  $as_echo_n "(cached) " >&6
12512else
12513  case $PKG_CONFIG in
12514  [\\/]* | ?:[\\/]*)
12515  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12516  ;;
12517  *)
12518  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12519for as_dir in $PATH
12520do
12521  IFS=$as_save_IFS
12522  test -z "$as_dir" && as_dir=.
12523    for ac_exec_ext in '' $ac_executable_extensions; do
12524  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12525    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12526    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12527    break 2
12528  fi
12529done
12530  done
12531IFS=$as_save_IFS
12532
12533  ;;
12534esac
12535fi
12536PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12537if test -n "$PKG_CONFIG"; then
12538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12539$as_echo "$PKG_CONFIG" >&6; }
12540else
12541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12542$as_echo "no" >&6; }
12543fi
12544
12545
12546fi
12547if test -z "$ac_cv_path_PKG_CONFIG"; then
12548  ac_pt_PKG_CONFIG=$PKG_CONFIG
12549  # Extract the first word of "pkg-config", so it can be a program name with args.
12550set dummy pkg-config; ac_word=$2
12551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12552$as_echo_n "checking for $ac_word... " >&6; }
12553if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12554  $as_echo_n "(cached) " >&6
12555else
12556  case $ac_pt_PKG_CONFIG in
12557  [\\/]* | ?:[\\/]*)
12558  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12559  ;;
12560  *)
12561  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12562for as_dir in $PATH
12563do
12564  IFS=$as_save_IFS
12565  test -z "$as_dir" && as_dir=.
12566    for ac_exec_ext in '' $ac_executable_extensions; do
12567  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12568    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12569    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12570    break 2
12571  fi
12572done
12573  done
12574IFS=$as_save_IFS
12575
12576  ;;
12577esac
12578fi
12579ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12580if test -n "$ac_pt_PKG_CONFIG"; then
12581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12582$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12583else
12584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12585$as_echo "no" >&6; }
12586fi
12587
12588  if test "x$ac_pt_PKG_CONFIG" = x; then
12589    PKG_CONFIG=""
12590  else
12591    case $cross_compiling:$ac_tool_warned in
12592yes:)
12593{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12595ac_tool_warned=yes ;;
12596esac
12597    PKG_CONFIG=$ac_pt_PKG_CONFIG
12598  fi
12599else
12600  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12601fi
12602
12603fi
12604if test -n "$PKG_CONFIG"; then
12605	_pkg_min_version=0.9.0
12606	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12607$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12608	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12609		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12610$as_echo "yes" >&6; }
12611	else
12612		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12613$as_echo "no" >&6; }
12614		PKG_CONFIG=""
12615	fi
12616fi
12617
12618pkg_failed=no
12619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
12620$as_echo_n "checking for CHECK... " >&6; }
12621
12622if test -n "$CHECK_CFLAGS"; then
12623    pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
12624 elif test -n "$PKG_CONFIG"; then
12625    if test -n "$PKG_CONFIG" && \
12626    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.9\""; } >&5
12627  ($PKG_CONFIG --exists --print-errors "check >= 0.9.9") 2>&5
12628  ac_status=$?
12629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12630  test $ac_status = 0; }; then
12631  pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.9" 2>/dev/null`
12632		      test "x$?" != "x0" && pkg_failed=yes
12633else
12634  pkg_failed=yes
12635fi
12636 else
12637    pkg_failed=untried
12638fi
12639if test -n "$CHECK_LIBS"; then
12640    pkg_cv_CHECK_LIBS="$CHECK_LIBS"
12641 elif test -n "$PKG_CONFIG"; then
12642    if test -n "$PKG_CONFIG" && \
12643    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.9\""; } >&5
12644  ($PKG_CONFIG --exists --print-errors "check >= 0.9.9") 2>&5
12645  ac_status=$?
12646  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12647  test $ac_status = 0; }; then
12648  pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.9" 2>/dev/null`
12649		      test "x$?" != "x0" && pkg_failed=yes
12650else
12651  pkg_failed=yes
12652fi
12653 else
12654    pkg_failed=untried
12655fi
12656
12657
12658
12659if test $pkg_failed = yes; then
12660   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12661$as_echo "no" >&6; }
12662
12663if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12664        _pkg_short_errors_supported=yes
12665else
12666        _pkg_short_errors_supported=no
12667fi
12668        if test $_pkg_short_errors_supported = yes; then
12669	        CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.9" 2>&1`
12670        else
12671	        CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.9" 2>&1`
12672        fi
12673	# Put the nasty error message in config.log where it belongs
12674	echo "$CHECK_PKG_ERRORS" >&5
12675
12676	HAVE_CHECK="no"
12677elif test $pkg_failed = untried; then
12678     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12679$as_echo "no" >&6; }
12680	HAVE_CHECK="no"
12681else
12682	CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
12683	CHECK_LIBS=$pkg_cv_CHECK_LIBS
12684        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12685$as_echo "yes" >&6; }
12686	HAVE_CHECK="yes"
12687fi
12688if test "x$HAVE_CHECK" = "xyes"; then
12689	# Extract the first word of "valgrind", so it can be a program name with args.
12690set dummy valgrind; ac_word=$2
12691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12692$as_echo_n "checking for $ac_word... " >&6; }
12693if ${ac_cv_path_VALGRIND+:} false; then :
12694  $as_echo_n "(cached) " >&6
12695else
12696  case $VALGRIND in
12697  [\\/]* | ?:[\\/]*)
12698  ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path.
12699  ;;
12700  *)
12701  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12702for as_dir in $PATH
12703do
12704  IFS=$as_save_IFS
12705  test -z "$as_dir" && as_dir=.
12706    for ac_exec_ext in '' $ac_executable_extensions; do
12707  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12708    ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext"
12709    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12710    break 2
12711  fi
12712done
12713  done
12714IFS=$as_save_IFS
12715
12716  ;;
12717esac
12718fi
12719VALGRIND=$ac_cv_path_VALGRIND
12720if test -n "$VALGRIND"; then
12721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
12722$as_echo "$VALGRIND" >&6; }
12723else
12724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12725$as_echo "no" >&6; }
12726fi
12727
12728
12729else
12730	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: check not found - skipping building unit tests" >&5
12731$as_echo "$as_me: WARNING: check not found - skipping building unit tests" >&2;}
12732fi
12733 if test "x$VALGRIND" != "x"; then
12734  HAVE_VALGRIND_TRUE=
12735  HAVE_VALGRIND_FALSE='#'
12736else
12737  HAVE_VALGRIND_TRUE='#'
12738  HAVE_VALGRIND_FALSE=
12739fi
12740
12741 if test "x$HAVE_CHECK" = "xyes"; then
12742  ENABLE_RUNTIME_TESTS_TRUE=
12743  ENABLE_RUNTIME_TESTS_FALSE='#'
12744else
12745  ENABLE_RUNTIME_TESTS_TRUE='#'
12746  ENABLE_RUNTIME_TESTS_FALSE=
12747fi
12748
12749 if test "x$enable_static" = "xyes"; then
12750  ENABLE_STATIC_LINK_TEST_TRUE=
12751  ENABLE_STATIC_LINK_TEST_FALSE='#'
12752else
12753  ENABLE_STATIC_LINK_TEST_TRUE='#'
12754  ENABLE_STATIC_LINK_TEST_FALSE=
12755fi
12756
12757
12758with_cflags=""
12759if test "x$GCC" = "xyes"; then
12760
12761  for flag in \
12762				-Wall \
12763				-Wextra \
12764				-Wno-unused-parameter \
12765				-Wstrict-prototypes \
12766				-Wmissing-prototypes \
12767				-fvisibility=hidden \
12768				-pipe \
12769				-fno-strict-aliasing \
12770				-ffunction-sections \
12771				-fdata-sections \
12772				-fno-strict-aliasing \
12773				-fdiagnostics-show-option \
12774				-fno-common; do
12775
12776  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports flag $flag in envvar CFLAGS" >&5
12777$as_echo_n "checking if $CC supports flag $flag in envvar CFLAGS... " >&6; }
12778if { as_var=`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12779  $as_echo_n "(cached) " >&6
12780else
12781  eval "cc_save_CFLAGS='${CFLAGS}'"
12782           eval "CFLAGS='-Werror $flag'"
12783           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12784/* end confdefs.h.  */
12785int a = 0; int main(void) { return a; }
12786_ACEOF
12787if ac_fn_c_try_link "$LINENO"; then :
12788  eval "`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh`='yes'"
12789else
12790  eval "`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh`='no'"
12791fi
12792rm -f core conftest.err conftest.$ac_objext \
12793    conftest$ac_exeext conftest.$ac_ext
12794           eval "CFLAGS='$cc_save_CFLAGS'"
12795fi
12796eval ac_res=\$`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh`
12797	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12798$as_echo "$ac_res" >&6; }
12799
12800  if eval test x$`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh` = xyes; then :
12801  eval "with_cflags='${with_cflags} $flag'"
12802fi
12803
12804  done
12805
12806fi
12807GCC_CFLAGS=$with_cflags
12808
12809
12810# Extract the first word of "doxygen", so it can be a program name with args.
12811set dummy doxygen; ac_word=$2
12812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12813$as_echo_n "checking for $ac_word... " >&6; }
12814if ${ac_cv_path_DOXYGEN+:} false; then :
12815  $as_echo_n "(cached) " >&6
12816else
12817  case $DOXYGEN in
12818  [\\/]* | ?:[\\/]*)
12819  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
12820  ;;
12821  *)
12822  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12823for as_dir in $PATH
12824do
12825  IFS=$as_save_IFS
12826  test -z "$as_dir" && as_dir=.
12827    for ac_exec_ext in '' $ac_executable_extensions; do
12828  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12829    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
12830    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12831    break 2
12832  fi
12833done
12834  done
12835IFS=$as_save_IFS
12836
12837  ;;
12838esac
12839fi
12840DOXYGEN=$ac_cv_path_DOXYGEN
12841if test -n "$DOXYGEN"; then
12842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
12843$as_echo "$DOXYGEN" >&6; }
12844else
12845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12846$as_echo "no" >&6; }
12847fi
12848
12849
12850if test "x$DOXYGEN" = "x"; then
12851	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - required for documentation" >&5
12852$as_echo "$as_me: WARNING: doxygen not found - required for documentation" >&2;}
12853	have_doxygen="no"
12854else
12855	have_doxygen="yes"
12856fi
12857 if test "x$have_doxygen" = "xyes"; then
12858  HAVE_DOXYGEN_TRUE=
12859  HAVE_DOXYGEN_FALSE='#'
12860else
12861  HAVE_DOXYGEN_TRUE='#'
12862  HAVE_DOXYGEN_FALSE=
12863fi
12864
12865
12866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with gcov" >&5
12867$as_echo_n "checking whether to build with gcov... " >&6; }
12868# Check whether --enable-gcov was given.
12869if test "${enable_gcov+set}" = set; then :
12870  enableval=$enable_gcov;
12871else
12872  enable_gcov=no
12873fi
12874
12875if test "x$enable_gcov" != "xno"; then :
12876
12877       GCOV_CFLAGS="-fprofile-arcs -ftest-coverage"
12878       GCOV_LDFLAGS="-lgcov"
12879       enable_gcov=yes
12880
12881fi
12882 if test "x$enable_gcov" != "xno"; then
12883  GCOV_ENABLED_TRUE=
12884  GCOV_ENABLED_FALSE='#'
12885else
12886  GCOV_ENABLED_TRUE='#'
12887  GCOV_ENABLED_FALSE=
12888fi
12889
12890
12891
12892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gcov" >&5
12893$as_echo "$enable_gcov" >&6; }
12894
12895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with coverity support" >&5
12896$as_echo_n "checking whether to build with coverity support... " >&6; }
12897# Check whether --enable-coverity was given.
12898if test "${enable_coverity+set}" = set; then :
12899  enableval=$enable_coverity;
12900else
12901  enable_coverity=no
12902fi
12903
12904if test "x$enable_coverity" != "xno"; then :
12905
12906
12907$as_echo "#define _Float128 __uint128_t" >>confdefs.h
12908
12909
12910$as_echo "#define _Float32 int" >>confdefs.h
12911
12912
12913$as_echo "#define _Float32x int" >>confdefs.h
12914
12915
12916$as_echo "#define _Float64 long" >>confdefs.h
12917
12918
12919$as_echo "#define _Float64x long" >>confdefs.h
12920
12921       enable_coverity=yes
12922
12923fi
12924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_coverity" >&5
12925$as_echo "$enable_coverity" >&6; }
12926
12927
12928
12929
12930
12931
12932
12933
12934        if test -n "$PYTHON"; then
12935      # If the user set $PYTHON, use it and don't search something else.
12936      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5
12937$as_echo_n "checking whether $PYTHON version is >= 2.6... " >&6; }
12938      prog="import sys
12939# split strings by '.' and convert to numeric.  Append some zeros
12940# because we need at least 4 digits for the hex conversion.
12941# map returns an iterator in Python 3.0 and a list in 2.x
12942minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
12943minverhex = 0
12944# xrange is not present in Python 3.0 and range returns an iterator
12945for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12946sys.exit(sys.hexversion < minverhex)"
12947  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12948   ($PYTHON -c "$prog") >&5 2>&5
12949   ac_status=$?
12950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951   (exit $ac_status); }; then :
12952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12953$as_echo "yes" >&6; }
12954else
12955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12956$as_echo "no" >&6; }
12957			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
12958fi
12959      am_display_PYTHON=$PYTHON
12960    else
12961      # Otherwise, try each interpreter until we find one that satisfies
12962      # VERSION.
12963      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
12964$as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
12965if ${am_cv_pathless_PYTHON+:} false; then :
12966  $as_echo_n "(cached) " >&6
12967else
12968
12969	for am_cv_pathless_PYTHON in python python2 python3  python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3  python3.2 python3.1 python3.0  python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1  python2.0 none; do
12970	  test "$am_cv_pathless_PYTHON" = none && break
12971	  prog="import sys
12972# split strings by '.' and convert to numeric.  Append some zeros
12973# because we need at least 4 digits for the hex conversion.
12974# map returns an iterator in Python 3.0 and a list in 2.x
12975minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
12976minverhex = 0
12977# xrange is not present in Python 3.0 and range returns an iterator
12978for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12979sys.exit(sys.hexversion < minverhex)"
12980  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
12981   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
12982   ac_status=$?
12983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984   (exit $ac_status); }; then :
12985  break
12986fi
12987	done
12988fi
12989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
12990$as_echo "$am_cv_pathless_PYTHON" >&6; }
12991      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
12992      if test "$am_cv_pathless_PYTHON" = none; then
12993	PYTHON=:
12994      else
12995        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
12996set dummy $am_cv_pathless_PYTHON; ac_word=$2
12997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12998$as_echo_n "checking for $ac_word... " >&6; }
12999if ${ac_cv_path_PYTHON+:} false; then :
13000  $as_echo_n "(cached) " >&6
13001else
13002  case $PYTHON in
13003  [\\/]* | ?:[\\/]*)
13004  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13005  ;;
13006  *)
13007  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13008for as_dir in $PATH
13009do
13010  IFS=$as_save_IFS
13011  test -z "$as_dir" && as_dir=.
13012    for ac_exec_ext in '' $ac_executable_extensions; do
13013  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13014    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
13015    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13016    break 2
13017  fi
13018done
13019  done
13020IFS=$as_save_IFS
13021
13022  ;;
13023esac
13024fi
13025PYTHON=$ac_cv_path_PYTHON
13026if test -n "$PYTHON"; then
13027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13028$as_echo "$PYTHON" >&6; }
13029else
13030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13031$as_echo "no" >&6; }
13032fi
13033
13034
13035      fi
13036      am_display_PYTHON=$am_cv_pathless_PYTHON
13037    fi
13038
13039
13040  if test "$PYTHON" = :; then
13041      as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
13042  else
13043
13044
13045  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
13046$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
13047if ${am_cv_python_version+:} false; then :
13048  $as_echo_n "(cached) " >&6
13049else
13050  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
13051fi
13052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
13053$as_echo "$am_cv_python_version" >&6; }
13054  PYTHON_VERSION=$am_cv_python_version
13055
13056
13057
13058  PYTHON_PREFIX='${prefix}'
13059
13060  PYTHON_EXEC_PREFIX='${exec_prefix}'
13061
13062
13063
13064  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
13065$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
13066if ${am_cv_python_platform+:} false; then :
13067  $as_echo_n "(cached) " >&6
13068else
13069  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
13070fi
13071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
13072$as_echo "$am_cv_python_platform" >&6; }
13073  PYTHON_PLATFORM=$am_cv_python_platform
13074
13075
13076  # Just factor out some code duplication.
13077  am_python_setup_sysconfig="\
13078import sys
13079# Prefer sysconfig over distutils.sysconfig, for better compatibility
13080# with python 3.x.  See automake bug#10227.
13081try:
13082    import sysconfig
13083except ImportError:
13084    can_use_sysconfig = 0
13085else:
13086    can_use_sysconfig = 1
13087# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
13088# <https://github.com/pypa/virtualenv/issues/118>
13089try:
13090    from platform import python_implementation
13091    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
13092        can_use_sysconfig = 0
13093except ImportError:
13094    pass"
13095
13096
13097            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
13098$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
13099if ${am_cv_python_pythondir+:} false; then :
13100  $as_echo_n "(cached) " >&6
13101else
13102  if test "x$prefix" = xNONE
13103     then
13104       am_py_prefix=$ac_default_prefix
13105     else
13106       am_py_prefix=$prefix
13107     fi
13108     am_cv_python_pythondir=`$PYTHON -c "
13109$am_python_setup_sysconfig
13110if can_use_sysconfig:
13111    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
13112else:
13113    from distutils import sysconfig
13114    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
13115sys.stdout.write(sitedir)"`
13116     case $am_cv_python_pythondir in
13117     $am_py_prefix*)
13118       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
13119       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
13120       ;;
13121     *)
13122       case $am_py_prefix in
13123         /usr|/System*) ;;
13124         *)
13125	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
13126	  ;;
13127       esac
13128       ;;
13129     esac
13130
13131fi
13132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
13133$as_echo "$am_cv_python_pythondir" >&6; }
13134  pythondir=$am_cv_python_pythondir
13135
13136
13137
13138  pkgpythondir=\${pythondir}/$PACKAGE
13139
13140
13141        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
13142$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
13143if ${am_cv_python_pyexecdir+:} false; then :
13144  $as_echo_n "(cached) " >&6
13145else
13146  if test "x$exec_prefix" = xNONE
13147     then
13148       am_py_exec_prefix=$am_py_prefix
13149     else
13150       am_py_exec_prefix=$exec_prefix
13151     fi
13152     am_cv_python_pyexecdir=`$PYTHON -c "
13153$am_python_setup_sysconfig
13154if can_use_sysconfig:
13155    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
13156else:
13157    from distutils import sysconfig
13158    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
13159sys.stdout.write(sitedir)"`
13160     case $am_cv_python_pyexecdir in
13161     $am_py_exec_prefix*)
13162       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
13163       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
13164       ;;
13165     *)
13166       case $am_py_exec_prefix in
13167         /usr|/System*) ;;
13168         *)
13169	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
13170	   ;;
13171       esac
13172       ;;
13173     esac
13174
13175fi
13176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
13177$as_echo "$am_cv_python_pyexecdir" >&6; }
13178  pyexecdir=$am_cv_python_pyexecdir
13179
13180
13181
13182  pkgpyexecdir=\${pyexecdir}/$PACKAGE
13183
13184
13185
13186  fi
13187
13188
13189
13190# nm to check for leaking symbols in the static library
13191# Extract the first word of "nm", so it can be a program name with args.
13192set dummy nm; ac_word=$2
13193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13194$as_echo_n "checking for $ac_word... " >&6; }
13195if ${ac_cv_path_NM+:} false; then :
13196  $as_echo_n "(cached) " >&6
13197else
13198  case $NM in
13199  [\\/]* | ?:[\\/]*)
13200  ac_cv_path_NM="$NM" # Let the user override the test with a path.
13201  ;;
13202  *)
13203  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13204for as_dir in $PATH
13205do
13206  IFS=$as_save_IFS
13207  test -z "$as_dir" && as_dir=.
13208    for ac_exec_ext in '' $ac_executable_extensions; do
13209  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13210    ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
13211    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13212    break 2
13213  fi
13214done
13215  done
13216IFS=$as_save_IFS
13217
13218  ;;
13219esac
13220fi
13221NM=$ac_cv_path_NM
13222if test -n "$NM"; then
13223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
13224$as_echo "$NM" >&6; }
13225else
13226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13227$as_echo "no" >&6; }
13228fi
13229
13230
13231 if test "x$NM" != "x"; then
13232  HAVE_NM_TRUE=
13233  HAVE_NM_FALSE='#'
13234else
13235  HAVE_NM_TRUE='#'
13236  HAVE_NM_FALSE=
13237fi
13238
13239if test "x$enable_static" = "xno"; then
13240	static_symbol_leaks_test="no - static build disabled"
13241else
13242	if test "x$NM" = "x"; then
13243		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: nm not found - skipping symbol leak test" >&5
13244$as_echo "$as_me: WARNING: nm not found - skipping symbol leak test" >&2;}
13245		have_nm="no"
13246		static_symbol_leaks_test="no - nm not found"
13247	else
13248		have_nm="yes"
13249		static_symbol_leaks_test="yes"
13250	fi
13251fi
13252
13253 if test "x$static_symbol_leaks_test" = "xyes"; then
13254  ENABLE_STATIC_SYMBOL_LEAKS_TEST_TRUE=
13255  ENABLE_STATIC_SYMBOL_LEAKS_TEST_FALSE='#'
13256else
13257  ENABLE_STATIC_SYMBOL_LEAKS_TEST_TRUE='#'
13258  ENABLE_STATIC_SYMBOL_LEAKS_TEST_FALSE=
13259fi
13260
13261
13262ac_config_files="$ac_config_files Makefile libevdev/Makefile doc/Makefile doc/libevdev.doxygen doc/libevdev.man tools/Makefile test/Makefile libevdev.pc"
13263
13264cat >confcache <<\_ACEOF
13265# This file is a shell script that caches the results of configure
13266# tests run on this system so they can be shared between configure
13267# scripts and configure runs, see configure's option --config-cache.
13268# It is not useful on other systems.  If it contains results you don't
13269# want to keep, you may remove or edit it.
13270#
13271# config.status only pays attention to the cache file if you give it
13272# the --recheck option to rerun configure.
13273#
13274# `ac_cv_env_foo' variables (set or unset) will be overridden when
13275# loading this file, other *unset* `ac_cv_foo' will be assigned the
13276# following values.
13277
13278_ACEOF
13279
13280# The following way of writing the cache mishandles newlines in values,
13281# but we know of no workaround that is simple, portable, and efficient.
13282# So, we kill variables containing newlines.
13283# Ultrix sh set writes to stderr and can't be redirected directly,
13284# and sets the high bit in the cache file unless we assign to the vars.
13285(
13286  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13287    eval ac_val=\$$ac_var
13288    case $ac_val in #(
13289    *${as_nl}*)
13290      case $ac_var in #(
13291      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13292$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13293      esac
13294      case $ac_var in #(
13295      _ | IFS | as_nl) ;; #(
13296      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13297      *) { eval $ac_var=; unset $ac_var;} ;;
13298      esac ;;
13299    esac
13300  done
13301
13302  (set) 2>&1 |
13303    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13304    *${as_nl}ac_space=\ *)
13305      # `set' does not quote correctly, so add quotes: double-quote
13306      # substitution turns \\\\ into \\, and sed turns \\ into \.
13307      sed -n \
13308	"s/'/'\\\\''/g;
13309	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13310      ;; #(
13311    *)
13312      # `set' quotes correctly as required by POSIX, so do not add quotes.
13313      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13314      ;;
13315    esac |
13316    sort
13317) |
13318  sed '
13319     /^ac_cv_env_/b end
13320     t clear
13321     :clear
13322     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13323     t end
13324     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13325     :end' >>confcache
13326if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13327  if test -w "$cache_file"; then
13328    if test "x$cache_file" != "x/dev/null"; then
13329      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13330$as_echo "$as_me: updating cache $cache_file" >&6;}
13331      if test ! -f "$cache_file" || test -h "$cache_file"; then
13332	cat confcache >"$cache_file"
13333      else
13334        case $cache_file in #(
13335        */* | ?:*)
13336	  mv -f confcache "$cache_file"$$ &&
13337	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13338        *)
13339	  mv -f confcache "$cache_file" ;;
13340	esac
13341      fi
13342    fi
13343  else
13344    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13345$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13346  fi
13347fi
13348rm -f confcache
13349
13350test "x$prefix" = xNONE && prefix=$ac_default_prefix
13351# Let make expand exec_prefix.
13352test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13353
13354DEFS=-DHAVE_CONFIG_H
13355
13356ac_libobjs=
13357ac_ltlibobjs=
13358U=
13359for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13360  # 1. Remove the extension, and $U if already installed.
13361  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13362  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13363  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13364  #    will be set to the directory where LIBOBJS objects are built.
13365  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13366  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13367done
13368LIBOBJS=$ac_libobjs
13369
13370LTLIBOBJS=$ac_ltlibobjs
13371
13372
13373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13374$as_echo_n "checking that generated files are newer than configure... " >&6; }
13375   if test -n "$am_sleep_pid"; then
13376     # Hide warnings about reused PIDs.
13377     wait $am_sleep_pid 2>/dev/null
13378   fi
13379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13380$as_echo "done" >&6; }
13381if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13382  as_fn_error $? "conditional \"AMDEP\" was never defined.
13383Usually this means the macro was only invoked conditionally." "$LINENO" 5
13384fi
13385if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13386  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13387Usually this means the macro was only invoked conditionally." "$LINENO" 5
13388fi
13389 if test -n "$EXEEXT"; then
13390  am__EXEEXT_TRUE=
13391  am__EXEEXT_FALSE='#'
13392else
13393  am__EXEEXT_TRUE='#'
13394  am__EXEEXT_FALSE=
13395fi
13396
13397if test -z "${HAVE_VALGRIND_TRUE}" && test -z "${HAVE_VALGRIND_FALSE}"; then
13398  as_fn_error $? "conditional \"HAVE_VALGRIND\" was never defined.
13399Usually this means the macro was only invoked conditionally." "$LINENO" 5
13400fi
13401if test -z "${ENABLE_RUNTIME_TESTS_TRUE}" && test -z "${ENABLE_RUNTIME_TESTS_FALSE}"; then
13402  as_fn_error $? "conditional \"ENABLE_RUNTIME_TESTS\" was never defined.
13403Usually this means the macro was only invoked conditionally." "$LINENO" 5
13404fi
13405if test -z "${ENABLE_STATIC_LINK_TEST_TRUE}" && test -z "${ENABLE_STATIC_LINK_TEST_FALSE}"; then
13406  as_fn_error $? "conditional \"ENABLE_STATIC_LINK_TEST\" was never defined.
13407Usually this means the macro was only invoked conditionally." "$LINENO" 5
13408fi
13409if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
13410  as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
13411Usually this means the macro was only invoked conditionally." "$LINENO" 5
13412fi
13413if test -z "${GCOV_ENABLED_TRUE}" && test -z "${GCOV_ENABLED_FALSE}"; then
13414  as_fn_error $? "conditional \"GCOV_ENABLED\" was never defined.
13415Usually this means the macro was only invoked conditionally." "$LINENO" 5
13416fi
13417if test -z "${HAVE_NM_TRUE}" && test -z "${HAVE_NM_FALSE}"; then
13418  as_fn_error $? "conditional \"HAVE_NM\" was never defined.
13419Usually this means the macro was only invoked conditionally." "$LINENO" 5
13420fi
13421if test -z "${ENABLE_STATIC_SYMBOL_LEAKS_TEST_TRUE}" && test -z "${ENABLE_STATIC_SYMBOL_LEAKS_TEST_FALSE}"; then
13422  as_fn_error $? "conditional \"ENABLE_STATIC_SYMBOL_LEAKS_TEST\" was never defined.
13423Usually this means the macro was only invoked conditionally." "$LINENO" 5
13424fi
13425
13426: "${CONFIG_STATUS=./config.status}"
13427ac_write_fail=0
13428ac_clean_files_save=$ac_clean_files
13429ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13430{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13431$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13432as_write_fail=0
13433cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13434#! $SHELL
13435# Generated by $as_me.
13436# Run this file to recreate the current configuration.
13437# Compiler output produced by configure, useful for debugging
13438# configure, is in config.log if it exists.
13439
13440debug=false
13441ac_cs_recheck=false
13442ac_cs_silent=false
13443
13444SHELL=\${CONFIG_SHELL-$SHELL}
13445export SHELL
13446_ASEOF
13447cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13448## -------------------- ##
13449## M4sh Initialization. ##
13450## -------------------- ##
13451
13452# Be more Bourne compatible
13453DUALCASE=1; export DUALCASE # for MKS sh
13454if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13455  emulate sh
13456  NULLCMD=:
13457  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13458  # is contrary to our usage.  Disable this feature.
13459  alias -g '${1+"$@"}'='"$@"'
13460  setopt NO_GLOB_SUBST
13461else
13462  case `(set -o) 2>/dev/null` in #(
13463  *posix*) :
13464    set -o posix ;; #(
13465  *) :
13466     ;;
13467esac
13468fi
13469
13470
13471as_nl='
13472'
13473export as_nl
13474# Printing a long string crashes Solaris 7 /usr/bin/printf.
13475as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13476as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13477as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13478# Prefer a ksh shell builtin over an external printf program on Solaris,
13479# but without wasting forks for bash or zsh.
13480if test -z "$BASH_VERSION$ZSH_VERSION" \
13481    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13482  as_echo='print -r --'
13483  as_echo_n='print -rn --'
13484elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13485  as_echo='printf %s\n'
13486  as_echo_n='printf %s'
13487else
13488  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13489    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13490    as_echo_n='/usr/ucb/echo -n'
13491  else
13492    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13493    as_echo_n_body='eval
13494      arg=$1;
13495      case $arg in #(
13496      *"$as_nl"*)
13497	expr "X$arg" : "X\\(.*\\)$as_nl";
13498	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13499      esac;
13500      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13501    '
13502    export as_echo_n_body
13503    as_echo_n='sh -c $as_echo_n_body as_echo'
13504  fi
13505  export as_echo_body
13506  as_echo='sh -c $as_echo_body as_echo'
13507fi
13508
13509# The user is always right.
13510if test "${PATH_SEPARATOR+set}" != set; then
13511  PATH_SEPARATOR=:
13512  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13513    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13514      PATH_SEPARATOR=';'
13515  }
13516fi
13517
13518
13519# IFS
13520# We need space, tab and new line, in precisely that order.  Quoting is
13521# there to prevent editors from complaining about space-tab.
13522# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13523# splitting by setting IFS to empty value.)
13524IFS=" ""	$as_nl"
13525
13526# Find who we are.  Look in the path if we contain no directory separator.
13527as_myself=
13528case $0 in #((
13529  *[\\/]* ) as_myself=$0 ;;
13530  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13531for as_dir in $PATH
13532do
13533  IFS=$as_save_IFS
13534  test -z "$as_dir" && as_dir=.
13535    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13536  done
13537IFS=$as_save_IFS
13538
13539     ;;
13540esac
13541# We did not find ourselves, most probably we were run as `sh COMMAND'
13542# in which case we are not to be found in the path.
13543if test "x$as_myself" = x; then
13544  as_myself=$0
13545fi
13546if test ! -f "$as_myself"; then
13547  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13548  exit 1
13549fi
13550
13551# Unset variables that we do not need and which cause bugs (e.g. in
13552# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13553# suppresses any "Segmentation fault" message there.  '((' could
13554# trigger a bug in pdksh 5.2.14.
13555for as_var in BASH_ENV ENV MAIL MAILPATH
13556do eval test x\${$as_var+set} = xset \
13557  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13558done
13559PS1='$ '
13560PS2='> '
13561PS4='+ '
13562
13563# NLS nuisances.
13564LC_ALL=C
13565export LC_ALL
13566LANGUAGE=C
13567export LANGUAGE
13568
13569# CDPATH.
13570(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13571
13572
13573# as_fn_error STATUS ERROR [LINENO LOG_FD]
13574# ----------------------------------------
13575# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13576# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13577# script with STATUS, using 1 if that was 0.
13578as_fn_error ()
13579{
13580  as_status=$1; test $as_status -eq 0 && as_status=1
13581  if test "$4"; then
13582    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13583    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13584  fi
13585  $as_echo "$as_me: error: $2" >&2
13586  as_fn_exit $as_status
13587} # as_fn_error
13588
13589
13590# as_fn_set_status STATUS
13591# -----------------------
13592# Set $? to STATUS, without forking.
13593as_fn_set_status ()
13594{
13595  return $1
13596} # as_fn_set_status
13597
13598# as_fn_exit STATUS
13599# -----------------
13600# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13601as_fn_exit ()
13602{
13603  set +e
13604  as_fn_set_status $1
13605  exit $1
13606} # as_fn_exit
13607
13608# as_fn_unset VAR
13609# ---------------
13610# Portably unset VAR.
13611as_fn_unset ()
13612{
13613  { eval $1=; unset $1;}
13614}
13615as_unset=as_fn_unset
13616# as_fn_append VAR VALUE
13617# ----------------------
13618# Append the text in VALUE to the end of the definition contained in VAR. Take
13619# advantage of any shell optimizations that allow amortized linear growth over
13620# repeated appends, instead of the typical quadratic growth present in naive
13621# implementations.
13622if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13623  eval 'as_fn_append ()
13624  {
13625    eval $1+=\$2
13626  }'
13627else
13628  as_fn_append ()
13629  {
13630    eval $1=\$$1\$2
13631  }
13632fi # as_fn_append
13633
13634# as_fn_arith ARG...
13635# ------------------
13636# Perform arithmetic evaluation on the ARGs, and store the result in the
13637# global $as_val. Take advantage of shells that can avoid forks. The arguments
13638# must be portable across $(()) and expr.
13639if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13640  eval 'as_fn_arith ()
13641  {
13642    as_val=$(( $* ))
13643  }'
13644else
13645  as_fn_arith ()
13646  {
13647    as_val=`expr "$@" || test $? -eq 1`
13648  }
13649fi # as_fn_arith
13650
13651
13652if expr a : '\(a\)' >/dev/null 2>&1 &&
13653   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13654  as_expr=expr
13655else
13656  as_expr=false
13657fi
13658
13659if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13660  as_basename=basename
13661else
13662  as_basename=false
13663fi
13664
13665if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13666  as_dirname=dirname
13667else
13668  as_dirname=false
13669fi
13670
13671as_me=`$as_basename -- "$0" ||
13672$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13673	 X"$0" : 'X\(//\)$' \| \
13674	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13675$as_echo X/"$0" |
13676    sed '/^.*\/\([^/][^/]*\)\/*$/{
13677	    s//\1/
13678	    q
13679	  }
13680	  /^X\/\(\/\/\)$/{
13681	    s//\1/
13682	    q
13683	  }
13684	  /^X\/\(\/\).*/{
13685	    s//\1/
13686	    q
13687	  }
13688	  s/.*/./; q'`
13689
13690# Avoid depending upon Character Ranges.
13691as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13692as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13693as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13694as_cr_digits='0123456789'
13695as_cr_alnum=$as_cr_Letters$as_cr_digits
13696
13697ECHO_C= ECHO_N= ECHO_T=
13698case `echo -n x` in #(((((
13699-n*)
13700  case `echo 'xy\c'` in
13701  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13702  xy)  ECHO_C='\c';;
13703  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13704       ECHO_T='	';;
13705  esac;;
13706*)
13707  ECHO_N='-n';;
13708esac
13709
13710rm -f conf$$ conf$$.exe conf$$.file
13711if test -d conf$$.dir; then
13712  rm -f conf$$.dir/conf$$.file
13713else
13714  rm -f conf$$.dir
13715  mkdir conf$$.dir 2>/dev/null
13716fi
13717if (echo >conf$$.file) 2>/dev/null; then
13718  if ln -s conf$$.file conf$$ 2>/dev/null; then
13719    as_ln_s='ln -s'
13720    # ... but there are two gotchas:
13721    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13722    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13723    # In both cases, we have to default to `cp -pR'.
13724    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13725      as_ln_s='cp -pR'
13726  elif ln conf$$.file conf$$ 2>/dev/null; then
13727    as_ln_s=ln
13728  else
13729    as_ln_s='cp -pR'
13730  fi
13731else
13732  as_ln_s='cp -pR'
13733fi
13734rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13735rmdir conf$$.dir 2>/dev/null
13736
13737
13738# as_fn_mkdir_p
13739# -------------
13740# Create "$as_dir" as a directory, including parents if necessary.
13741as_fn_mkdir_p ()
13742{
13743
13744  case $as_dir in #(
13745  -*) as_dir=./$as_dir;;
13746  esac
13747  test -d "$as_dir" || eval $as_mkdir_p || {
13748    as_dirs=
13749    while :; do
13750      case $as_dir in #(
13751      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13752      *) as_qdir=$as_dir;;
13753      esac
13754      as_dirs="'$as_qdir' $as_dirs"
13755      as_dir=`$as_dirname -- "$as_dir" ||
13756$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13757	 X"$as_dir" : 'X\(//\)[^/]' \| \
13758	 X"$as_dir" : 'X\(//\)$' \| \
13759	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13760$as_echo X"$as_dir" |
13761    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13762	    s//\1/
13763	    q
13764	  }
13765	  /^X\(\/\/\)[^/].*/{
13766	    s//\1/
13767	    q
13768	  }
13769	  /^X\(\/\/\)$/{
13770	    s//\1/
13771	    q
13772	  }
13773	  /^X\(\/\).*/{
13774	    s//\1/
13775	    q
13776	  }
13777	  s/.*/./; q'`
13778      test -d "$as_dir" && break
13779    done
13780    test -z "$as_dirs" || eval "mkdir $as_dirs"
13781  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13782
13783
13784} # as_fn_mkdir_p
13785if mkdir -p . 2>/dev/null; then
13786  as_mkdir_p='mkdir -p "$as_dir"'
13787else
13788  test -d ./-p && rmdir ./-p
13789  as_mkdir_p=false
13790fi
13791
13792
13793# as_fn_executable_p FILE
13794# -----------------------
13795# Test if FILE is an executable regular file.
13796as_fn_executable_p ()
13797{
13798  test -f "$1" && test -x "$1"
13799} # as_fn_executable_p
13800as_test_x='test -x'
13801as_executable_p=as_fn_executable_p
13802
13803# Sed expression to map a string onto a valid CPP name.
13804as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13805
13806# Sed expression to map a string onto a valid variable name.
13807as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13808
13809
13810exec 6>&1
13811## ----------------------------------- ##
13812## Main body of $CONFIG_STATUS script. ##
13813## ----------------------------------- ##
13814_ASEOF
13815test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13816
13817cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13818# Save the log message, to keep $0 and so on meaningful, and to
13819# report actual input values of CONFIG_FILES etc. instead of their
13820# values after options handling.
13821ac_log="
13822This file was extended by libevdev $as_me 1.10.0, which was
13823generated by GNU Autoconf 2.69.  Invocation command line was
13824
13825  CONFIG_FILES    = $CONFIG_FILES
13826  CONFIG_HEADERS  = $CONFIG_HEADERS
13827  CONFIG_LINKS    = $CONFIG_LINKS
13828  CONFIG_COMMANDS = $CONFIG_COMMANDS
13829  $ $0 $@
13830
13831on `(hostname || uname -n) 2>/dev/null | sed 1q`
13832"
13833
13834_ACEOF
13835
13836case $ac_config_files in *"
13837"*) set x $ac_config_files; shift; ac_config_files=$*;;
13838esac
13839
13840case $ac_config_headers in *"
13841"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13842esac
13843
13844
13845cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13846# Files that config.status was made for.
13847config_files="$ac_config_files"
13848config_headers="$ac_config_headers"
13849config_commands="$ac_config_commands"
13850
13851_ACEOF
13852
13853cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13854ac_cs_usage="\
13855\`$as_me' instantiates files and other configuration actions
13856from templates according to the current configuration.  Unless the files
13857and actions are specified as TAGs, all are instantiated by default.
13858
13859Usage: $0 [OPTION]... [TAG]...
13860
13861  -h, --help       print this help, then exit
13862  -V, --version    print version number and configuration settings, then exit
13863      --config     print configuration, then exit
13864  -q, --quiet, --silent
13865                   do not print progress messages
13866  -d, --debug      don't remove temporary files
13867      --recheck    update $as_me by reconfiguring in the same conditions
13868      --file=FILE[:TEMPLATE]
13869                   instantiate the configuration file FILE
13870      --header=FILE[:TEMPLATE]
13871                   instantiate the configuration header FILE
13872
13873Configuration files:
13874$config_files
13875
13876Configuration headers:
13877$config_headers
13878
13879Configuration commands:
13880$config_commands
13881
13882Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=libevdev>.
13883libevdev home page: <http://freedesktop.org/wiki/Software/libevdev/>."
13884
13885_ACEOF
13886cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13887ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13888ac_cs_version="\\
13889libevdev config.status 1.10.0
13890configured by $0, generated by GNU Autoconf 2.69,
13891  with options \\"\$ac_cs_config\\"
13892
13893Copyright (C) 2012 Free Software Foundation, Inc.
13894This config.status script is free software; the Free Software Foundation
13895gives unlimited permission to copy, distribute and modify it."
13896
13897ac_pwd='$ac_pwd'
13898srcdir='$srcdir'
13899INSTALL='$INSTALL'
13900MKDIR_P='$MKDIR_P'
13901AWK='$AWK'
13902test -n "\$AWK" || AWK=awk
13903_ACEOF
13904
13905cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13906# The default lists apply if the user does not specify any file.
13907ac_need_defaults=:
13908while test $# != 0
13909do
13910  case $1 in
13911  --*=?*)
13912    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13913    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13914    ac_shift=:
13915    ;;
13916  --*=)
13917    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13918    ac_optarg=
13919    ac_shift=:
13920    ;;
13921  *)
13922    ac_option=$1
13923    ac_optarg=$2
13924    ac_shift=shift
13925    ;;
13926  esac
13927
13928  case $ac_option in
13929  # Handling of the options.
13930  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13931    ac_cs_recheck=: ;;
13932  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13933    $as_echo "$ac_cs_version"; exit ;;
13934  --config | --confi | --conf | --con | --co | --c )
13935    $as_echo "$ac_cs_config"; exit ;;
13936  --debug | --debu | --deb | --de | --d | -d )
13937    debug=: ;;
13938  --file | --fil | --fi | --f )
13939    $ac_shift
13940    case $ac_optarg in
13941    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13942    '') as_fn_error $? "missing file argument" ;;
13943    esac
13944    as_fn_append CONFIG_FILES " '$ac_optarg'"
13945    ac_need_defaults=false;;
13946  --header | --heade | --head | --hea )
13947    $ac_shift
13948    case $ac_optarg in
13949    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13950    esac
13951    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13952    ac_need_defaults=false;;
13953  --he | --h)
13954    # Conflict between --help and --header
13955    as_fn_error $? "ambiguous option: \`$1'
13956Try \`$0 --help' for more information.";;
13957  --help | --hel | -h )
13958    $as_echo "$ac_cs_usage"; exit ;;
13959  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13960  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13961    ac_cs_silent=: ;;
13962
13963  # This is an error.
13964  -*) as_fn_error $? "unrecognized option: \`$1'
13965Try \`$0 --help' for more information." ;;
13966
13967  *) as_fn_append ac_config_targets " $1"
13968     ac_need_defaults=false ;;
13969
13970  esac
13971  shift
13972done
13973
13974ac_configure_extra_args=
13975
13976if $ac_cs_silent; then
13977  exec 6>/dev/null
13978  ac_configure_extra_args="$ac_configure_extra_args --silent"
13979fi
13980
13981_ACEOF
13982cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13983if \$ac_cs_recheck; then
13984  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13985  shift
13986  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13987  CONFIG_SHELL='$SHELL'
13988  export CONFIG_SHELL
13989  exec "\$@"
13990fi
13991
13992_ACEOF
13993cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13994exec 5>>config.log
13995{
13996  echo
13997  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13998## Running $as_me. ##
13999_ASBOX
14000  $as_echo "$ac_log"
14001} >&5
14002
14003_ACEOF
14004cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14005#
14006# INIT-COMMANDS
14007#
14008AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14009
14010
14011# The HP-UX ksh and POSIX shell print the target directory to stdout
14012# if CDPATH is set.
14013(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14014
14015sed_quote_subst='$sed_quote_subst'
14016double_quote_subst='$double_quote_subst'
14017delay_variable_subst='$delay_variable_subst'
14018macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14019macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14020enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14021enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14022pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14023enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14024shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14025SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14026ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14027PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14028host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14029host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14030host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14031build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14032build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14033build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14034SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14035Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14036GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14037EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14038FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14039LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14040NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14041LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14042max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14043ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14044exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14045lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14046lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14047lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14048lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14049lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14050reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14051reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14052OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14053deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14054file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14055file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14056want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14057DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14058sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14059AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14060AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14061archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14062STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14063RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14064old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14065old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14066old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14067lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14068CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14069CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14070compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14071GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14072lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14073lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14074lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14075lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14076lt_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"`'
14077lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14078nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14079lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14080lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14081objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14082MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14083lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14084lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14085lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14086lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14087lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14088need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14089MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14090DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14091NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14092LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14093OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14094OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14095libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14096shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14097extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14098archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14099enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14100export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14101whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14102compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14103old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14104old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14105archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14106archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14107module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14108module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14109with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14110allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14111no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14112hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14113hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14114hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14115hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14116hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14117hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14118hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14119inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14120link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14121always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14122export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14123exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14124include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14125prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14126postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14127file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14128variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14129need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14130need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14131version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14132runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14133shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14134shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14135libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14136library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14137soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14138install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14139postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14140postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14141finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14142finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14143hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14144sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14145configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14146configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14147hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14148enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14149enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14150enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14151old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14152striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14153
14154LTCC='$LTCC'
14155LTCFLAGS='$LTCFLAGS'
14156compiler='$compiler_DEFAULT'
14157
14158# A function that is used when there is no print builtin or printf.
14159func_fallback_echo ()
14160{
14161  eval 'cat <<_LTECHO_EOF
14162\$1
14163_LTECHO_EOF'
14164}
14165
14166# Quote evaled strings.
14167for var in SHELL \
14168ECHO \
14169PATH_SEPARATOR \
14170SED \
14171GREP \
14172EGREP \
14173FGREP \
14174LD \
14175NM \
14176LN_S \
14177lt_SP2NL \
14178lt_NL2SP \
14179reload_flag \
14180OBJDUMP \
14181deplibs_check_method \
14182file_magic_cmd \
14183file_magic_glob \
14184want_nocaseglob \
14185DLLTOOL \
14186sharedlib_from_linklib_cmd \
14187AR \
14188AR_FLAGS \
14189archiver_list_spec \
14190STRIP \
14191RANLIB \
14192CC \
14193CFLAGS \
14194compiler \
14195lt_cv_sys_global_symbol_pipe \
14196lt_cv_sys_global_symbol_to_cdecl \
14197lt_cv_sys_global_symbol_to_import \
14198lt_cv_sys_global_symbol_to_c_name_address \
14199lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14200lt_cv_nm_interface \
14201nm_file_list_spec \
14202lt_cv_truncate_bin \
14203lt_prog_compiler_no_builtin_flag \
14204lt_prog_compiler_pic \
14205lt_prog_compiler_wl \
14206lt_prog_compiler_static \
14207lt_cv_prog_compiler_c_o \
14208need_locks \
14209MANIFEST_TOOL \
14210DSYMUTIL \
14211NMEDIT \
14212LIPO \
14213OTOOL \
14214OTOOL64 \
14215shrext_cmds \
14216export_dynamic_flag_spec \
14217whole_archive_flag_spec \
14218compiler_needs_object \
14219with_gnu_ld \
14220allow_undefined_flag \
14221no_undefined_flag \
14222hardcode_libdir_flag_spec \
14223hardcode_libdir_separator \
14224exclude_expsyms \
14225include_expsyms \
14226file_list_spec \
14227variables_saved_for_relink \
14228libname_spec \
14229library_names_spec \
14230soname_spec \
14231install_override_mode \
14232finish_eval \
14233old_striplib \
14234striplib; do
14235    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14236    *[\\\\\\\`\\"\\\$]*)
14237      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14238      ;;
14239    *)
14240      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14241      ;;
14242    esac
14243done
14244
14245# Double-quote double-evaled strings.
14246for var in reload_cmds \
14247old_postinstall_cmds \
14248old_postuninstall_cmds \
14249old_archive_cmds \
14250extract_expsyms_cmds \
14251old_archive_from_new_cmds \
14252old_archive_from_expsyms_cmds \
14253archive_cmds \
14254archive_expsym_cmds \
14255module_cmds \
14256module_expsym_cmds \
14257export_symbols_cmds \
14258prelink_cmds \
14259postlink_cmds \
14260postinstall_cmds \
14261postuninstall_cmds \
14262finish_cmds \
14263sys_lib_search_path_spec \
14264configure_time_dlsearch_path \
14265configure_time_lt_sys_library_path; do
14266    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14267    *[\\\\\\\`\\"\\\$]*)
14268      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14269      ;;
14270    *)
14271      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14272      ;;
14273    esac
14274done
14275
14276ac_aux_dir='$ac_aux_dir'
14277
14278# See if we are running on zsh, and set the options that allow our
14279# commands through without removal of \ escapes INIT.
14280if test -n "\${ZSH_VERSION+set}"; then
14281   setopt NO_GLOB_SUBST
14282fi
14283
14284
14285    PACKAGE='$PACKAGE'
14286    VERSION='$VERSION'
14287    RM='$RM'
14288    ofile='$ofile'
14289
14290
14291
14292
14293_ACEOF
14294
14295cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14296
14297# Handling of arguments.
14298for ac_config_target in $ac_config_targets
14299do
14300  case $ac_config_target in
14301    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14302    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14303    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14304    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14305    "libevdev/Makefile") CONFIG_FILES="$CONFIG_FILES libevdev/Makefile" ;;
14306    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14307    "doc/libevdev.doxygen") CONFIG_FILES="$CONFIG_FILES doc/libevdev.doxygen" ;;
14308    "doc/libevdev.man") CONFIG_FILES="$CONFIG_FILES doc/libevdev.man" ;;
14309    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14310    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
14311    "libevdev.pc") CONFIG_FILES="$CONFIG_FILES libevdev.pc" ;;
14312
14313  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14314  esac
14315done
14316
14317
14318# If the user did not use the arguments to specify the items to instantiate,
14319# then the envvar interface is used.  Set only those that are not.
14320# We use the long form for the default assignment because of an extremely
14321# bizarre bug on SunOS 4.1.3.
14322if $ac_need_defaults; then
14323  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14324  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14325  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14326fi
14327
14328# Have a temporary directory for convenience.  Make it in the build tree
14329# simply because there is no reason against having it here, and in addition,
14330# creating and moving files from /tmp can sometimes cause problems.
14331# Hook for its removal unless debugging.
14332# Note that there is a small window in which the directory will not be cleaned:
14333# after its creation but before its name has been assigned to `$tmp'.
14334$debug ||
14335{
14336  tmp= ac_tmp=
14337  trap 'exit_status=$?
14338  : "${ac_tmp:=$tmp}"
14339  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14340' 0
14341  trap 'as_fn_exit 1' 1 2 13 15
14342}
14343# Create a (secure) tmp directory for tmp files.
14344
14345{
14346  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14347  test -d "$tmp"
14348}  ||
14349{
14350  tmp=./conf$$-$RANDOM
14351  (umask 077 && mkdir "$tmp")
14352} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14353ac_tmp=$tmp
14354
14355# Set up the scripts for CONFIG_FILES section.
14356# No need to generate them if there are no CONFIG_FILES.
14357# This happens for instance with `./config.status config.h'.
14358if test -n "$CONFIG_FILES"; then
14359
14360
14361ac_cr=`echo X | tr X '\015'`
14362# On cygwin, bash can eat \r inside `` if the user requested igncr.
14363# But we know of no other shell where ac_cr would be empty at this
14364# point, so we can use a bashism as a fallback.
14365if test "x$ac_cr" = x; then
14366  eval ac_cr=\$\'\\r\'
14367fi
14368ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14369if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14370  ac_cs_awk_cr='\\r'
14371else
14372  ac_cs_awk_cr=$ac_cr
14373fi
14374
14375echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14376_ACEOF
14377
14378
14379{
14380  echo "cat >conf$$subs.awk <<_ACEOF" &&
14381  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14382  echo "_ACEOF"
14383} >conf$$subs.sh ||
14384  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14385ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14386ac_delim='%!_!# '
14387for ac_last_try in false false false false false :; do
14388  . ./conf$$subs.sh ||
14389    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14390
14391  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14392  if test $ac_delim_n = $ac_delim_num; then
14393    break
14394  elif $ac_last_try; then
14395    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14396  else
14397    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14398  fi
14399done
14400rm -f conf$$subs.sh
14401
14402cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14403cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14404_ACEOF
14405sed -n '
14406h
14407s/^/S["/; s/!.*/"]=/
14408p
14409g
14410s/^[^!]*!//
14411:repl
14412t repl
14413s/'"$ac_delim"'$//
14414t delim
14415:nl
14416h
14417s/\(.\{148\}\)..*/\1/
14418t more1
14419s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14420p
14421n
14422b repl
14423:more1
14424s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14425p
14426g
14427s/.\{148\}//
14428t nl
14429:delim
14430h
14431s/\(.\{148\}\)..*/\1/
14432t more2
14433s/["\\]/\\&/g; s/^/"/; s/$/"/
14434p
14435b
14436:more2
14437s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14438p
14439g
14440s/.\{148\}//
14441t delim
14442' <conf$$subs.awk | sed '
14443/^[^""]/{
14444  N
14445  s/\n//
14446}
14447' >>$CONFIG_STATUS || ac_write_fail=1
14448rm -f conf$$subs.awk
14449cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14450_ACAWK
14451cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14452  for (key in S) S_is_set[key] = 1
14453  FS = ""
14454
14455}
14456{
14457  line = $ 0
14458  nfields = split(line, field, "@")
14459  substed = 0
14460  len = length(field[1])
14461  for (i = 2; i < nfields; i++) {
14462    key = field[i]
14463    keylen = length(key)
14464    if (S_is_set[key]) {
14465      value = S[key]
14466      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14467      len += length(value) + length(field[++i])
14468      substed = 1
14469    } else
14470      len += 1 + keylen
14471  }
14472
14473  print line
14474}
14475
14476_ACAWK
14477_ACEOF
14478cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14479if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14480  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14481else
14482  cat
14483fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14484  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14485_ACEOF
14486
14487# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14488# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14489# trailing colons and then remove the whole line if VPATH becomes empty
14490# (actually we leave an empty line to preserve line numbers).
14491if test "x$srcdir" = x.; then
14492  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14493h
14494s///
14495s/^/:/
14496s/[	 ]*$/:/
14497s/:\$(srcdir):/:/g
14498s/:\${srcdir}:/:/g
14499s/:@srcdir@:/:/g
14500s/^:*//
14501s/:*$//
14502x
14503s/\(=[	 ]*\).*/\1/
14504G
14505s/\n//
14506s/^[^=]*=[	 ]*$//
14507}'
14508fi
14509
14510cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14511fi # test -n "$CONFIG_FILES"
14512
14513# Set up the scripts for CONFIG_HEADERS section.
14514# No need to generate them if there are no CONFIG_HEADERS.
14515# This happens for instance with `./config.status Makefile'.
14516if test -n "$CONFIG_HEADERS"; then
14517cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14518BEGIN {
14519_ACEOF
14520
14521# Transform confdefs.h into an awk script `defines.awk', embedded as
14522# here-document in config.status, that substitutes the proper values into
14523# config.h.in to produce config.h.
14524
14525# Create a delimiter string that does not exist in confdefs.h, to ease
14526# handling of long lines.
14527ac_delim='%!_!# '
14528for ac_last_try in false false :; do
14529  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14530  if test -z "$ac_tt"; then
14531    break
14532  elif $ac_last_try; then
14533    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14534  else
14535    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14536  fi
14537done
14538
14539# For the awk script, D is an array of macro values keyed by name,
14540# likewise P contains macro parameters if any.  Preserve backslash
14541# newline sequences.
14542
14543ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14544sed -n '
14545s/.\{148\}/&'"$ac_delim"'/g
14546t rset
14547:rset
14548s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14549t def
14550d
14551:def
14552s/\\$//
14553t bsnl
14554s/["\\]/\\&/g
14555s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14556D["\1"]=" \3"/p
14557s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14558d
14559:bsnl
14560s/["\\]/\\&/g
14561s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14562D["\1"]=" \3\\\\\\n"\\/p
14563t cont
14564s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14565t cont
14566d
14567:cont
14568n
14569s/.\{148\}/&'"$ac_delim"'/g
14570t clear
14571:clear
14572s/\\$//
14573t bsnlc
14574s/["\\]/\\&/g; s/^/"/; s/$/"/p
14575d
14576:bsnlc
14577s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14578b cont
14579' <confdefs.h | sed '
14580s/'"$ac_delim"'/"\\\
14581"/g' >>$CONFIG_STATUS || ac_write_fail=1
14582
14583cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14584  for (key in D) D_is_set[key] = 1
14585  FS = ""
14586}
14587/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14588  line = \$ 0
14589  split(line, arg, " ")
14590  if (arg[1] == "#") {
14591    defundef = arg[2]
14592    mac1 = arg[3]
14593  } else {
14594    defundef = substr(arg[1], 2)
14595    mac1 = arg[2]
14596  }
14597  split(mac1, mac2, "(") #)
14598  macro = mac2[1]
14599  prefix = substr(line, 1, index(line, defundef) - 1)
14600  if (D_is_set[macro]) {
14601    # Preserve the white space surrounding the "#".
14602    print prefix "define", macro P[macro] D[macro]
14603    next
14604  } else {
14605    # Replace #undef with comments.  This is necessary, for example,
14606    # in the case of _POSIX_SOURCE, which is predefined and required
14607    # on some systems where configure will not decide to define it.
14608    if (defundef == "undef") {
14609      print "/*", prefix defundef, macro, "*/"
14610      next
14611    }
14612  }
14613}
14614{ print }
14615_ACAWK
14616_ACEOF
14617cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14618  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14619fi # test -n "$CONFIG_HEADERS"
14620
14621
14622eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14623shift
14624for ac_tag
14625do
14626  case $ac_tag in
14627  :[FHLC]) ac_mode=$ac_tag; continue;;
14628  esac
14629  case $ac_mode$ac_tag in
14630  :[FHL]*:*);;
14631  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14632  :[FH]-) ac_tag=-:-;;
14633  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14634  esac
14635  ac_save_IFS=$IFS
14636  IFS=:
14637  set x $ac_tag
14638  IFS=$ac_save_IFS
14639  shift
14640  ac_file=$1
14641  shift
14642
14643  case $ac_mode in
14644  :L) ac_source=$1;;
14645  :[FH])
14646    ac_file_inputs=
14647    for ac_f
14648    do
14649      case $ac_f in
14650      -) ac_f="$ac_tmp/stdin";;
14651      *) # Look for the file first in the build tree, then in the source tree
14652	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14653	 # because $ac_f cannot contain `:'.
14654	 test -f "$ac_f" ||
14655	   case $ac_f in
14656	   [\\/$]*) false;;
14657	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14658	   esac ||
14659	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14660      esac
14661      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14662      as_fn_append ac_file_inputs " '$ac_f'"
14663    done
14664
14665    # Let's still pretend it is `configure' which instantiates (i.e., don't
14666    # use $as_me), people would be surprised to read:
14667    #    /* config.h.  Generated by config.status.  */
14668    configure_input='Generated from '`
14669	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14670	`' by configure.'
14671    if test x"$ac_file" != x-; then
14672      configure_input="$ac_file.  $configure_input"
14673      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14674$as_echo "$as_me: creating $ac_file" >&6;}
14675    fi
14676    # Neutralize special characters interpreted by sed in replacement strings.
14677    case $configure_input in #(
14678    *\&* | *\|* | *\\* )
14679       ac_sed_conf_input=`$as_echo "$configure_input" |
14680       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14681    *) ac_sed_conf_input=$configure_input;;
14682    esac
14683
14684    case $ac_tag in
14685    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14686      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14687    esac
14688    ;;
14689  esac
14690
14691  ac_dir=`$as_dirname -- "$ac_file" ||
14692$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14693	 X"$ac_file" : 'X\(//\)[^/]' \| \
14694	 X"$ac_file" : 'X\(//\)$' \| \
14695	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14696$as_echo X"$ac_file" |
14697    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14698	    s//\1/
14699	    q
14700	  }
14701	  /^X\(\/\/\)[^/].*/{
14702	    s//\1/
14703	    q
14704	  }
14705	  /^X\(\/\/\)$/{
14706	    s//\1/
14707	    q
14708	  }
14709	  /^X\(\/\).*/{
14710	    s//\1/
14711	    q
14712	  }
14713	  s/.*/./; q'`
14714  as_dir="$ac_dir"; as_fn_mkdir_p
14715  ac_builddir=.
14716
14717case "$ac_dir" in
14718.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14719*)
14720  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14721  # A ".." for each directory in $ac_dir_suffix.
14722  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14723  case $ac_top_builddir_sub in
14724  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14725  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14726  esac ;;
14727esac
14728ac_abs_top_builddir=$ac_pwd
14729ac_abs_builddir=$ac_pwd$ac_dir_suffix
14730# for backward compatibility:
14731ac_top_builddir=$ac_top_build_prefix
14732
14733case $srcdir in
14734  .)  # We are building in place.
14735    ac_srcdir=.
14736    ac_top_srcdir=$ac_top_builddir_sub
14737    ac_abs_top_srcdir=$ac_pwd ;;
14738  [\\/]* | ?:[\\/]* )  # Absolute name.
14739    ac_srcdir=$srcdir$ac_dir_suffix;
14740    ac_top_srcdir=$srcdir
14741    ac_abs_top_srcdir=$srcdir ;;
14742  *) # Relative name.
14743    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14744    ac_top_srcdir=$ac_top_build_prefix$srcdir
14745    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14746esac
14747ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14748
14749
14750  case $ac_mode in
14751  :F)
14752  #
14753  # CONFIG_FILE
14754  #
14755
14756  case $INSTALL in
14757  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14758  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14759  esac
14760  ac_MKDIR_P=$MKDIR_P
14761  case $MKDIR_P in
14762  [\\/$]* | ?:[\\/]* ) ;;
14763  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14764  esac
14765_ACEOF
14766
14767cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14768# If the template does not know about datarootdir, expand it.
14769# FIXME: This hack should be removed a few years after 2.60.
14770ac_datarootdir_hack=; ac_datarootdir_seen=
14771ac_sed_dataroot='
14772/datarootdir/ {
14773  p
14774  q
14775}
14776/@datadir@/p
14777/@docdir@/p
14778/@infodir@/p
14779/@localedir@/p
14780/@mandir@/p'
14781case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14782*datarootdir*) ac_datarootdir_seen=yes;;
14783*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14784  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14785$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14786_ACEOF
14787cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14788  ac_datarootdir_hack='
14789  s&@datadir@&$datadir&g
14790  s&@docdir@&$docdir&g
14791  s&@infodir@&$infodir&g
14792  s&@localedir@&$localedir&g
14793  s&@mandir@&$mandir&g
14794  s&\\\${datarootdir}&$datarootdir&g' ;;
14795esac
14796_ACEOF
14797
14798# Neutralize VPATH when `$srcdir' = `.'.
14799# Shell code in configure.ac might set extrasub.
14800# FIXME: do we really want to maintain this feature?
14801cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14802ac_sed_extra="$ac_vpsub
14803$extrasub
14804_ACEOF
14805cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14806:t
14807/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14808s|@configure_input@|$ac_sed_conf_input|;t t
14809s&@top_builddir@&$ac_top_builddir_sub&;t t
14810s&@top_build_prefix@&$ac_top_build_prefix&;t t
14811s&@srcdir@&$ac_srcdir&;t t
14812s&@abs_srcdir@&$ac_abs_srcdir&;t t
14813s&@top_srcdir@&$ac_top_srcdir&;t t
14814s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14815s&@builddir@&$ac_builddir&;t t
14816s&@abs_builddir@&$ac_abs_builddir&;t t
14817s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14818s&@INSTALL@&$ac_INSTALL&;t t
14819s&@MKDIR_P@&$ac_MKDIR_P&;t t
14820$ac_datarootdir_hack
14821"
14822eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14823  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14824
14825test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14826  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14827  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14828      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14829  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14830which seems to be undefined.  Please make sure it is defined" >&5
14831$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14832which seems to be undefined.  Please make sure it is defined" >&2;}
14833
14834  rm -f "$ac_tmp/stdin"
14835  case $ac_file in
14836  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14837  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14838  esac \
14839  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14840 ;;
14841  :H)
14842  #
14843  # CONFIG_HEADER
14844  #
14845  if test x"$ac_file" != x-; then
14846    {
14847      $as_echo "/* $configure_input  */" \
14848      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14849    } >"$ac_tmp/config.h" \
14850      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14851    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14852      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14853$as_echo "$as_me: $ac_file is unchanged" >&6;}
14854    else
14855      rm -f "$ac_file"
14856      mv "$ac_tmp/config.h" "$ac_file" \
14857	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14858    fi
14859  else
14860    $as_echo "/* $configure_input  */" \
14861      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14862      || as_fn_error $? "could not create -" "$LINENO" 5
14863  fi
14864# Compute "$ac_file"'s index in $config_headers.
14865_am_arg="$ac_file"
14866_am_stamp_count=1
14867for _am_header in $config_headers :; do
14868  case $_am_header in
14869    $_am_arg | $_am_arg:* )
14870      break ;;
14871    * )
14872      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14873  esac
14874done
14875echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14876$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14877	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14878	 X"$_am_arg" : 'X\(//\)$' \| \
14879	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14880$as_echo X"$_am_arg" |
14881    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14882	    s//\1/
14883	    q
14884	  }
14885	  /^X\(\/\/\)[^/].*/{
14886	    s//\1/
14887	    q
14888	  }
14889	  /^X\(\/\/\)$/{
14890	    s//\1/
14891	    q
14892	  }
14893	  /^X\(\/\).*/{
14894	    s//\1/
14895	    q
14896	  }
14897	  s/.*/./; q'`/stamp-h$_am_stamp_count
14898 ;;
14899
14900  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14901$as_echo "$as_me: executing $ac_file commands" >&6;}
14902 ;;
14903  esac
14904
14905
14906  case $ac_file$ac_mode in
14907    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14908  # Older Autoconf quotes --file arguments for eval, but not when files
14909  # are listed without --file.  Let's play safe and only enable the eval
14910  # if we detect the quoting.
14911  # TODO: see whether this extra hack can be removed once we start
14912  # requiring Autoconf 2.70 or later.
14913  case $CONFIG_FILES in #(
14914  *\'*) :
14915    eval set x "$CONFIG_FILES" ;; #(
14916  *) :
14917    set x $CONFIG_FILES ;; #(
14918  *) :
14919     ;;
14920esac
14921  shift
14922  # Used to flag and report bootstrapping failures.
14923  am_rc=0
14924  for am_mf
14925  do
14926    # Strip MF so we end up with the name of the file.
14927    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
14928    # Check whether this is an Automake generated Makefile which includes
14929    # dependency-tracking related rules and includes.
14930    # Grep'ing the whole file directly is not great: AIX grep has a line
14931    # limit of 2048, but all sed's we know have understand at least 4000.
14932    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14933      || continue
14934    am_dirpart=`$as_dirname -- "$am_mf" ||
14935$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14936	 X"$am_mf" : 'X\(//\)[^/]' \| \
14937	 X"$am_mf" : 'X\(//\)$' \| \
14938	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14939$as_echo X"$am_mf" |
14940    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14941	    s//\1/
14942	    q
14943	  }
14944	  /^X\(\/\/\)[^/].*/{
14945	    s//\1/
14946	    q
14947	  }
14948	  /^X\(\/\/\)$/{
14949	    s//\1/
14950	    q
14951	  }
14952	  /^X\(\/\).*/{
14953	    s//\1/
14954	    q
14955	  }
14956	  s/.*/./; q'`
14957    am_filepart=`$as_basename -- "$am_mf" ||
14958$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14959	 X"$am_mf" : 'X\(//\)$' \| \
14960	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14961$as_echo X/"$am_mf" |
14962    sed '/^.*\/\([^/][^/]*\)\/*$/{
14963	    s//\1/
14964	    q
14965	  }
14966	  /^X\/\(\/\/\)$/{
14967	    s//\1/
14968	    q
14969	  }
14970	  /^X\/\(\/\).*/{
14971	    s//\1/
14972	    q
14973	  }
14974	  s/.*/./; q'`
14975    { echo "$as_me:$LINENO: cd "$am_dirpart" \
14976      && sed -e '/# am--include-marker/d' "$am_filepart" \
14977        | $MAKE -f - am--depfiles" >&5
14978   (cd "$am_dirpart" \
14979      && sed -e '/# am--include-marker/d' "$am_filepart" \
14980        | $MAKE -f - am--depfiles) >&5 2>&5
14981   ac_status=$?
14982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983   (exit $ac_status); } || am_rc=$?
14984  done
14985  if test $am_rc -ne 0; then
14986    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14987$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14988as_fn_error $? "Something went wrong bootstrapping makefile fragments
14989    for automatic dependency tracking.  If GNU make was not used, consider
14990    re-running the configure script with MAKE=\"gmake\" (or whatever is
14991    necessary).  You can also try re-running configure with the
14992    '--disable-dependency-tracking' option to at least be able to build
14993    the package (albeit without support for automatic dependency tracking).
14994See \`config.log' for more details" "$LINENO" 5; }
14995  fi
14996  { am_dirpart=; unset am_dirpart;}
14997  { am_filepart=; unset am_filepart;}
14998  { am_mf=; unset am_mf;}
14999  { am_rc=; unset am_rc;}
15000  rm -f conftest-deps.mk
15001}
15002 ;;
15003    "libtool":C)
15004
15005    # See if we are running on zsh, and set the options that allow our
15006    # commands through without removal of \ escapes.
15007    if test -n "${ZSH_VERSION+set}"; then
15008      setopt NO_GLOB_SUBST
15009    fi
15010
15011    cfgfile=${ofile}T
15012    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15013    $RM "$cfgfile"
15014
15015    cat <<_LT_EOF >> "$cfgfile"
15016#! $SHELL
15017# Generated automatically by $as_me ($PACKAGE) $VERSION
15018# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15019# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15020
15021# Provide generalized library-building support services.
15022# Written by Gordon Matzigkeit, 1996
15023
15024# Copyright (C) 2014 Free Software Foundation, Inc.
15025# This is free software; see the source for copying conditions.  There is NO
15026# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15027
15028# GNU Libtool is free software; you can redistribute it and/or modify
15029# it under the terms of the GNU General Public License as published by
15030# the Free Software Foundation; either version 2 of of the License, or
15031# (at your option) any later version.
15032#
15033# As a special exception to the GNU General Public License, if you
15034# distribute this file as part of a program or library that is built
15035# using GNU Libtool, you may include this file under the  same
15036# distribution terms that you use for the rest of that program.
15037#
15038# GNU Libtool is distributed in the hope that it will be useful, but
15039# WITHOUT ANY WARRANTY; without even the implied warranty of
15040# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15041# GNU General Public License for more details.
15042#
15043# You should have received a copy of the GNU General Public License
15044# along with this program.  If not, see <http://www.gnu.org/licenses/>.
15045
15046
15047# The names of the tagged configurations supported by this script.
15048available_tags=''
15049
15050# Configured defaults for sys_lib_dlsearch_path munging.
15051: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15052
15053# ### BEGIN LIBTOOL CONFIG
15054
15055# Which release of libtool.m4 was used?
15056macro_version=$macro_version
15057macro_revision=$macro_revision
15058
15059# Whether or not to build shared libraries.
15060build_libtool_libs=$enable_shared
15061
15062# Whether or not to build static libraries.
15063build_old_libs=$enable_static
15064
15065# What type of objects to build.
15066pic_mode=$pic_mode
15067
15068# Whether or not to optimize for fast installation.
15069fast_install=$enable_fast_install
15070
15071# Shared archive member basename,for filename based shared library versioning on AIX.
15072shared_archive_member_spec=$shared_archive_member_spec
15073
15074# Shell to use when invoking shell scripts.
15075SHELL=$lt_SHELL
15076
15077# An echo program that protects backslashes.
15078ECHO=$lt_ECHO
15079
15080# The PATH separator for the build system.
15081PATH_SEPARATOR=$lt_PATH_SEPARATOR
15082
15083# The host system.
15084host_alias=$host_alias
15085host=$host
15086host_os=$host_os
15087
15088# The build system.
15089build_alias=$build_alias
15090build=$build
15091build_os=$build_os
15092
15093# A sed program that does not truncate output.
15094SED=$lt_SED
15095
15096# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15097Xsed="\$SED -e 1s/^X//"
15098
15099# A grep program that handles long lines.
15100GREP=$lt_GREP
15101
15102# An ERE matcher.
15103EGREP=$lt_EGREP
15104
15105# A literal string matcher.
15106FGREP=$lt_FGREP
15107
15108# A BSD- or MS-compatible name lister.
15109NM=$lt_NM
15110
15111# Whether we need soft or hard links.
15112LN_S=$lt_LN_S
15113
15114# What is the maximum length of a command?
15115max_cmd_len=$max_cmd_len
15116
15117# Object file suffix (normally "o").
15118objext=$ac_objext
15119
15120# Executable file suffix (normally "").
15121exeext=$exeext
15122
15123# whether the shell understands "unset".
15124lt_unset=$lt_unset
15125
15126# turn spaces into newlines.
15127SP2NL=$lt_lt_SP2NL
15128
15129# turn newlines into spaces.
15130NL2SP=$lt_lt_NL2SP
15131
15132# convert \$build file names to \$host format.
15133to_host_file_cmd=$lt_cv_to_host_file_cmd
15134
15135# convert \$build files to toolchain format.
15136to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15137
15138# An object symbol dumper.
15139OBJDUMP=$lt_OBJDUMP
15140
15141# Method to check whether dependent libraries are shared objects.
15142deplibs_check_method=$lt_deplibs_check_method
15143
15144# Command to use when deplibs_check_method = "file_magic".
15145file_magic_cmd=$lt_file_magic_cmd
15146
15147# How to find potential files when deplibs_check_method = "file_magic".
15148file_magic_glob=$lt_file_magic_glob
15149
15150# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15151want_nocaseglob=$lt_want_nocaseglob
15152
15153# DLL creation program.
15154DLLTOOL=$lt_DLLTOOL
15155
15156# Command to associate shared and link libraries.
15157sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15158
15159# The archiver.
15160AR=$lt_AR
15161
15162# Flags to create an archive.
15163AR_FLAGS=$lt_AR_FLAGS
15164
15165# How to feed a file listing to the archiver.
15166archiver_list_spec=$lt_archiver_list_spec
15167
15168# A symbol stripping program.
15169STRIP=$lt_STRIP
15170
15171# Commands used to install an old-style archive.
15172RANLIB=$lt_RANLIB
15173old_postinstall_cmds=$lt_old_postinstall_cmds
15174old_postuninstall_cmds=$lt_old_postuninstall_cmds
15175
15176# Whether to use a lock for old archive extraction.
15177lock_old_archive_extraction=$lock_old_archive_extraction
15178
15179# A C compiler.
15180LTCC=$lt_CC
15181
15182# LTCC compiler flags.
15183LTCFLAGS=$lt_CFLAGS
15184
15185# Take the output of nm and produce a listing of raw symbols and C names.
15186global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15187
15188# Transform the output of nm in a proper C declaration.
15189global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15190
15191# Transform the output of nm into a list of symbols to manually relocate.
15192global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15193
15194# Transform the output of nm in a C name address pair.
15195global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15196
15197# Transform the output of nm in a C name address pair when lib prefix is needed.
15198global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15199
15200# The name lister interface.
15201nm_interface=$lt_lt_cv_nm_interface
15202
15203# Specify filename containing input files for \$NM.
15204nm_file_list_spec=$lt_nm_file_list_spec
15205
15206# The root where to search for dependent libraries,and where our libraries should be installed.
15207lt_sysroot=$lt_sysroot
15208
15209# Command to truncate a binary pipe.
15210lt_truncate_bin=$lt_lt_cv_truncate_bin
15211
15212# The name of the directory that contains temporary libtool files.
15213objdir=$objdir
15214
15215# Used to examine libraries when file_magic_cmd begins with "file".
15216MAGIC_CMD=$MAGIC_CMD
15217
15218# Must we lock files when doing compilation?
15219need_locks=$lt_need_locks
15220
15221# Manifest tool.
15222MANIFEST_TOOL=$lt_MANIFEST_TOOL
15223
15224# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15225DSYMUTIL=$lt_DSYMUTIL
15226
15227# Tool to change global to local symbols on Mac OS X.
15228NMEDIT=$lt_NMEDIT
15229
15230# Tool to manipulate fat objects and archives on Mac OS X.
15231LIPO=$lt_LIPO
15232
15233# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15234OTOOL=$lt_OTOOL
15235
15236# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15237OTOOL64=$lt_OTOOL64
15238
15239# Old archive suffix (normally "a").
15240libext=$libext
15241
15242# Shared library suffix (normally ".so").
15243shrext_cmds=$lt_shrext_cmds
15244
15245# The commands to extract the exported symbol list from a shared archive.
15246extract_expsyms_cmds=$lt_extract_expsyms_cmds
15247
15248# Variables whose values should be saved in libtool wrapper scripts and
15249# restored at link time.
15250variables_saved_for_relink=$lt_variables_saved_for_relink
15251
15252# Do we need the "lib" prefix for modules?
15253need_lib_prefix=$need_lib_prefix
15254
15255# Do we need a version for libraries?
15256need_version=$need_version
15257
15258# Library versioning type.
15259version_type=$version_type
15260
15261# Shared library runtime path variable.
15262runpath_var=$runpath_var
15263
15264# Shared library path variable.
15265shlibpath_var=$shlibpath_var
15266
15267# Is shlibpath searched before the hard-coded library search path?
15268shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15269
15270# Format of library name prefix.
15271libname_spec=$lt_libname_spec
15272
15273# List of archive names.  First name is the real one, the rest are links.
15274# The last name is the one that the linker finds with -lNAME
15275library_names_spec=$lt_library_names_spec
15276
15277# The coded name of the library, if different from the real name.
15278soname_spec=$lt_soname_spec
15279
15280# Permission mode override for installation of shared libraries.
15281install_override_mode=$lt_install_override_mode
15282
15283# Command to use after installation of a shared archive.
15284postinstall_cmds=$lt_postinstall_cmds
15285
15286# Command to use after uninstallation of a shared archive.
15287postuninstall_cmds=$lt_postuninstall_cmds
15288
15289# Commands used to finish a libtool library installation in a directory.
15290finish_cmds=$lt_finish_cmds
15291
15292# As "finish_cmds", except a single script fragment to be evaled but
15293# not shown.
15294finish_eval=$lt_finish_eval
15295
15296# Whether we should hardcode library paths into libraries.
15297hardcode_into_libs=$hardcode_into_libs
15298
15299# Compile-time system search path for libraries.
15300sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15301
15302# Detected run-time system search path for libraries.
15303sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15304
15305# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15306configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15307
15308# Whether dlopen is supported.
15309dlopen_support=$enable_dlopen
15310
15311# Whether dlopen of programs is supported.
15312dlopen_self=$enable_dlopen_self
15313
15314# Whether dlopen of statically linked programs is supported.
15315dlopen_self_static=$enable_dlopen_self_static
15316
15317# Commands to strip libraries.
15318old_striplib=$lt_old_striplib
15319striplib=$lt_striplib
15320
15321
15322# The linker used to build libraries.
15323LD=$lt_LD
15324
15325# How to create reloadable object files.
15326reload_flag=$lt_reload_flag
15327reload_cmds=$lt_reload_cmds
15328
15329# Commands used to build an old-style archive.
15330old_archive_cmds=$lt_old_archive_cmds
15331
15332# A language specific compiler.
15333CC=$lt_compiler
15334
15335# Is the compiler the GNU compiler?
15336with_gcc=$GCC
15337
15338# Compiler flag to turn off builtin functions.
15339no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15340
15341# Additional compiler flags for building library objects.
15342pic_flag=$lt_lt_prog_compiler_pic
15343
15344# How to pass a linker flag through the compiler.
15345wl=$lt_lt_prog_compiler_wl
15346
15347# Compiler flag to prevent dynamic linking.
15348link_static_flag=$lt_lt_prog_compiler_static
15349
15350# Does compiler simultaneously support -c and -o options?
15351compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15352
15353# Whether or not to add -lc for building shared libraries.
15354build_libtool_need_lc=$archive_cmds_need_lc
15355
15356# Whether or not to disallow shared libs when runtime libs are static.
15357allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15358
15359# Compiler flag to allow reflexive dlopens.
15360export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15361
15362# Compiler flag to generate shared objects directly from archives.
15363whole_archive_flag_spec=$lt_whole_archive_flag_spec
15364
15365# Whether the compiler copes with passing no objects directly.
15366compiler_needs_object=$lt_compiler_needs_object
15367
15368# Create an old-style archive from a shared archive.
15369old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15370
15371# Create a temporary old-style archive to link instead of a shared archive.
15372old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15373
15374# Commands used to build a shared archive.
15375archive_cmds=$lt_archive_cmds
15376archive_expsym_cmds=$lt_archive_expsym_cmds
15377
15378# Commands used to build a loadable module if different from building
15379# a shared archive.
15380module_cmds=$lt_module_cmds
15381module_expsym_cmds=$lt_module_expsym_cmds
15382
15383# Whether we are building with GNU ld or not.
15384with_gnu_ld=$lt_with_gnu_ld
15385
15386# Flag that allows shared libraries with undefined symbols to be built.
15387allow_undefined_flag=$lt_allow_undefined_flag
15388
15389# Flag that enforces no undefined symbols.
15390no_undefined_flag=$lt_no_undefined_flag
15391
15392# Flag to hardcode \$libdir into a binary during linking.
15393# This must work even if \$libdir does not exist
15394hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15395
15396# Whether we need a single "-rpath" flag with a separated argument.
15397hardcode_libdir_separator=$lt_hardcode_libdir_separator
15398
15399# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15400# DIR into the resulting binary.
15401hardcode_direct=$hardcode_direct
15402
15403# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15404# DIR into the resulting binary and the resulting library dependency is
15405# "absolute",i.e impossible to change by setting \$shlibpath_var if the
15406# library is relocated.
15407hardcode_direct_absolute=$hardcode_direct_absolute
15408
15409# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15410# into the resulting binary.
15411hardcode_minus_L=$hardcode_minus_L
15412
15413# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15414# into the resulting binary.
15415hardcode_shlibpath_var=$hardcode_shlibpath_var
15416
15417# Set to "yes" if building a shared library automatically hardcodes DIR
15418# into the library and all subsequent libraries and executables linked
15419# against it.
15420hardcode_automatic=$hardcode_automatic
15421
15422# Set to yes if linker adds runtime paths of dependent libraries
15423# to runtime path list.
15424inherit_rpath=$inherit_rpath
15425
15426# Whether libtool must link a program against all its dependency libraries.
15427link_all_deplibs=$link_all_deplibs
15428
15429# Set to "yes" if exported symbols are required.
15430always_export_symbols=$always_export_symbols
15431
15432# The commands to list exported symbols.
15433export_symbols_cmds=$lt_export_symbols_cmds
15434
15435# Symbols that should not be listed in the preloaded symbols.
15436exclude_expsyms=$lt_exclude_expsyms
15437
15438# Symbols that must always be exported.
15439include_expsyms=$lt_include_expsyms
15440
15441# Commands necessary for linking programs (against libraries) with templates.
15442prelink_cmds=$lt_prelink_cmds
15443
15444# Commands necessary for finishing linking programs.
15445postlink_cmds=$lt_postlink_cmds
15446
15447# Specify filename containing input files.
15448file_list_spec=$lt_file_list_spec
15449
15450# How to hardcode a shared library path into an executable.
15451hardcode_action=$hardcode_action
15452
15453# ### END LIBTOOL CONFIG
15454
15455_LT_EOF
15456
15457    cat <<'_LT_EOF' >> "$cfgfile"
15458
15459# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15460
15461# func_munge_path_list VARIABLE PATH
15462# -----------------------------------
15463# VARIABLE is name of variable containing _space_ separated list of
15464# directories to be munged by the contents of PATH, which is string
15465# having a format:
15466# "DIR[:DIR]:"
15467#       string "DIR[ DIR]" will be prepended to VARIABLE
15468# ":DIR[:DIR]"
15469#       string "DIR[ DIR]" will be appended to VARIABLE
15470# "DIRP[:DIRP]::[DIRA:]DIRA"
15471#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15472#       "DIRA[ DIRA]" will be appended to VARIABLE
15473# "DIR[:DIR]"
15474#       VARIABLE will be replaced by "DIR[ DIR]"
15475func_munge_path_list ()
15476{
15477    case x$2 in
15478    x)
15479        ;;
15480    *:)
15481        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15482        ;;
15483    x:*)
15484        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15485        ;;
15486    *::*)
15487        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15488        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15489        ;;
15490    *)
15491        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15492        ;;
15493    esac
15494}
15495
15496
15497# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
15498func_cc_basename ()
15499{
15500    for cc_temp in $*""; do
15501      case $cc_temp in
15502        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15503        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15504        \-*) ;;
15505        *) break;;
15506      esac
15507    done
15508    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15509}
15510
15511
15512# ### END FUNCTIONS SHARED WITH CONFIGURE
15513
15514_LT_EOF
15515
15516  case $host_os in
15517  aix3*)
15518    cat <<\_LT_EOF >> "$cfgfile"
15519# AIX sometimes has problems with the GCC collect2 program.  For some
15520# reason, if we set the COLLECT_NAMES environment variable, the problems
15521# vanish in a puff of smoke.
15522if test set != "${COLLECT_NAMES+set}"; then
15523  COLLECT_NAMES=
15524  export COLLECT_NAMES
15525fi
15526_LT_EOF
15527    ;;
15528  esac
15529
15530
15531ltmain=$ac_aux_dir/ltmain.sh
15532
15533
15534  # We use sed instead of cat because bash on DJGPP gets confused if
15535  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15536  # text mode, it properly converts lines to CR/LF.  This bash problem
15537  # is reportedly fixed, but why not run on old versions too?
15538  sed '$q' "$ltmain" >> "$cfgfile" \
15539     || (rm -f "$cfgfile"; exit 1)
15540
15541   mv -f "$cfgfile" "$ofile" ||
15542    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15543  chmod +x "$ofile"
15544
15545 ;;
15546
15547  esac
15548done # for ac_tag
15549
15550
15551as_fn_exit 0
15552_ACEOF
15553ac_clean_files=$ac_clean_files_save
15554
15555test $ac_write_fail = 0 ||
15556  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15557
15558
15559# configure is writing to config.log, and then calls config.status.
15560# config.status does its own redirection, appending to config.log.
15561# Unfortunately, on DOS this fails, as config.log is still kept open
15562# by configure, so config.status won't be able to write to it; its
15563# output is simply discarded.  So we exec the FD to /dev/null,
15564# effectively closing config.log, so it can be properly (re)opened and
15565# appended to by config.status.  When coming back to configure, we
15566# need to make the FD available again.
15567if test "$no_create" != yes; then
15568  ac_cs_success=:
15569  ac_config_status_args=
15570  test "$silent" = yes &&
15571    ac_config_status_args="$ac_config_status_args --quiet"
15572  exec 5>/dev/null
15573  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15574  exec 5>>config.log
15575  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15576  # would make configure fail if this is the last instruction.
15577  $ac_cs_success || as_fn_exit 1
15578fi
15579if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15580  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15581$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15582fi
15583
15584
15585{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
15586	       Prefix				${prefix}
15587	       Libdir				${libdir}
15588
15589	       Build documentation		${have_doxygen}
15590	       Enable unit-tests		${HAVE_CHECK}
15591	       Enable profiling			${enable_gcov}
15592	       Enable coverity support		${enable_coverity}
15593	       Static library symbol check	${static_symbol_leaks_test}
15594	       " >&5
15595$as_echo "
15596	       Prefix				${prefix}
15597	       Libdir				${libdir}
15598
15599	       Build documentation		${have_doxygen}
15600	       Enable unit-tests		${HAVE_CHECK}
15601	       Enable profiling			${enable_gcov}
15602	       Enable coverity support		${enable_coverity}
15603	       Static library symbol check	${static_symbol_leaks_test}
15604	       " >&6; }
15605