configure revision a1ed278c
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.66 for xf86-input-keyboard 1.6.0.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140  emulate sh
141  NULLCMD=:
142  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143  # is contrary to our usage.  Disable this feature.
144  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145  setopt NO_GLOB_SUBST
146else
147  case \`(set -o) 2>/dev/null\` in #(
148  *posix*) :
149    set -o posix ;; #(
150  *) :
151     ;;
152esac
153fi
154"
155  as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169  exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
177  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181    PATH=/empty FPATH=/empty; export PATH FPATH
182    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
184test \$(( 1 + 1 )) = 2 || exit 1"
185  if (eval "$as_required") 2>/dev/null; then :
186  as_have_required=yes
187else
188  as_have_required=no
189fi
190  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192else
193  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194as_found=false
195for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196do
197  IFS=$as_save_IFS
198  test -z "$as_dir" && as_dir=.
199  as_found=:
200  case $as_dir in #(
201	 /*)
202	   for as_base in sh bash ksh sh5; do
203	     # Try only shells that exist, to save several forks.
204	     as_shell=$as_dir/$as_base
205	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207  CONFIG_SHELL=$as_shell as_have_required=yes
208		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209  break 2
210fi
211fi
212	   done;;
213       esac
214  as_found=false
215done
216$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218  CONFIG_SHELL=$SHELL as_have_required=yes
219fi; }
220IFS=$as_save_IFS
221
222
223      if test "x$CONFIG_SHELL" != x; then :
224  # We cannot yet assume a decent shell, so we have to provide a
225	# neutralization value for shells without unset; and this also
226	# works around shells that cannot unset nonexistent variables.
227	BASH_ENV=/dev/null
228	ENV=/dev/null
229	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230	export CONFIG_SHELL
231	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243$0: about your system, including any error possibly output
244$0: before this message. Then install a modern shell, or
245$0: manually run the script under such a shell if you do
246$0: have one."
247  fi
248  exit 1
249fi
250fi
251fi
252SHELL=${CONFIG_SHELL-/bin/sh}
253export SHELL
254# Unset more variables known to interfere with behavior of common tools.
255CLICOLOR_FORCE= GREP_OPTIONS=
256unset CLICOLOR_FORCE GREP_OPTIONS
257
258## --------------------- ##
259## M4sh Shell Functions. ##
260## --------------------- ##
261# as_fn_unset VAR
262# ---------------
263# Portably unset VAR.
264as_fn_unset ()
265{
266  { eval $1=; unset $1;}
267}
268as_unset=as_fn_unset
269
270# as_fn_set_status STATUS
271# -----------------------
272# Set $? to STATUS, without forking.
273as_fn_set_status ()
274{
275  return $1
276} # as_fn_set_status
277
278# as_fn_exit STATUS
279# -----------------
280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281as_fn_exit ()
282{
283  set +e
284  as_fn_set_status $1
285  exit $1
286} # as_fn_exit
287
288# as_fn_mkdir_p
289# -------------
290# Create "$as_dir" as a directory, including parents if necessary.
291as_fn_mkdir_p ()
292{
293
294  case $as_dir in #(
295  -*) as_dir=./$as_dir;;
296  esac
297  test -d "$as_dir" || eval $as_mkdir_p || {
298    as_dirs=
299    while :; do
300      case $as_dir in #(
301      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302      *) as_qdir=$as_dir;;
303      esac
304      as_dirs="'$as_qdir' $as_dirs"
305      as_dir=`$as_dirname -- "$as_dir" ||
306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307	 X"$as_dir" : 'X\(//\)[^/]' \| \
308	 X"$as_dir" : 'X\(//\)$' \| \
309	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310$as_echo X"$as_dir" |
311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\/\)[^/].*/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\/\)$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\).*/{
324	    s//\1/
325	    q
326	  }
327	  s/.*/./; q'`
328      test -d "$as_dir" && break
329    done
330    test -z "$as_dirs" || eval "mkdir $as_dirs"
331  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334} # as_fn_mkdir_p
335# as_fn_append VAR VALUE
336# ----------------------
337# Append the text in VALUE to the end of the definition contained in VAR. Take
338# advantage of any shell optimizations that allow amortized linear growth over
339# repeated appends, instead of the typical quadratic growth present in naive
340# implementations.
341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342  eval 'as_fn_append ()
343  {
344    eval $1+=\$2
345  }'
346else
347  as_fn_append ()
348  {
349    eval $1=\$$1\$2
350  }
351fi # as_fn_append
352
353# as_fn_arith ARG...
354# ------------------
355# Perform arithmetic evaluation on the ARGs, and store the result in the
356# global $as_val. Take advantage of shells that can avoid forks. The arguments
357# must be portable across $(()) and expr.
358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359  eval 'as_fn_arith ()
360  {
361    as_val=$(( $* ))
362  }'
363else
364  as_fn_arith ()
365  {
366    as_val=`expr "$@" || test $? -eq 1`
367  }
368fi # as_fn_arith
369
370
371# as_fn_error STATUS ERROR [LINENO LOG_FD]
372# ----------------------------------------
373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375# script with STATUS, using 1 if that was 0.
376as_fn_error ()
377{
378  as_status=$1; test $as_status -eq 0 && as_status=1
379  if test "$4"; then
380    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382  fi
383  $as_echo "$as_me: error: $2" >&2
384  as_fn_exit $as_status
385} # as_fn_error
386
387if expr a : '\(a\)' >/dev/null 2>&1 &&
388   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389  as_expr=expr
390else
391  as_expr=false
392fi
393
394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395  as_basename=basename
396else
397  as_basename=false
398fi
399
400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401  as_dirname=dirname
402else
403  as_dirname=false
404fi
405
406as_me=`$as_basename -- "$0" ||
407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408	 X"$0" : 'X\(//\)$' \| \
409	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410$as_echo X/"$0" |
411    sed '/^.*\/\([^/][^/]*\)\/*$/{
412	    s//\1/
413	    q
414	  }
415	  /^X\/\(\/\/\)$/{
416	    s//\1/
417	    q
418	  }
419	  /^X\/\(\/\).*/{
420	    s//\1/
421	    q
422	  }
423	  s/.*/./; q'`
424
425# Avoid depending upon Character Ranges.
426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429as_cr_digits='0123456789'
430as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456  # Don't try to exec as it changes $[0], causing all sort of problems
457  # (the dirname of $[0] is not the place where we might find the
458  # original and so on.  Autoconf is especially sensitive to this).
459  . "./$as_me.lineno"
460  # Exit status is that of the last command.
461  exit
462}
463
464ECHO_C= ECHO_N= ECHO_T=
465case `echo -n x` in #(((((
466-n*)
467  case `echo 'xy\c'` in
468  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469  xy)  ECHO_C='\c';;
470  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471       ECHO_T='	';;
472  esac;;
473*)
474  ECHO_N='-n';;
475esac
476
477rm -f conf$$ conf$$.exe conf$$.file
478if test -d conf$$.dir; then
479  rm -f conf$$.dir/conf$$.file
480else
481  rm -f conf$$.dir
482  mkdir conf$$.dir 2>/dev/null
483fi
484if (echo >conf$$.file) 2>/dev/null; then
485  if ln -s conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s='ln -s'
487    # ... but there are two gotchas:
488    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490    # In both cases, we have to default to `cp -p'.
491    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492      as_ln_s='cp -p'
493  elif ln conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s=ln
495  else
496    as_ln_s='cp -p'
497  fi
498else
499  as_ln_s='cp -p'
500fi
501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502rmdir conf$$.dir 2>/dev/null
503
504if mkdir -p . 2>/dev/null; then
505  as_mkdir_p='mkdir -p "$as_dir"'
506else
507  test -d ./-p && rmdir ./-p
508  as_mkdir_p=false
509fi
510
511if test -x / >/dev/null 2>&1; then
512  as_test_x='test -x'
513else
514  if ls -dL / >/dev/null 2>&1; then
515    as_ls_L_option=L
516  else
517    as_ls_L_option=
518  fi
519  as_test_x='
520    eval sh -c '\''
521      if test -d "$1"; then
522	test -d "$1/.";
523      else
524	case $1 in #(
525	-*)set "./$1";;
526	esac;
527	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528	???[sx]*):;;*)false;;esac;fi
529    '\'' sh
530  '
531fi
532as_executable_p=$as_test_x
533
534# Sed expression to map a string onto a valid CPP name.
535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537# Sed expression to map a string onto a valid variable name.
538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540SHELL=${CONFIG_SHELL-/bin/sh}
541
542
543test -n "$DJDIR" || exec 7<&0 </dev/null
544exec 6>&1
545
546# Name of the host.
547# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
548# so uname gets run too.
549ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
550
551#
552# Initializations.
553#
554ac_default_prefix=/usr/local
555ac_clean_files=
556ac_config_libobj_dir=.
557LIBOBJS=
558cross_compiling=no
559subdirs=
560MFLAGS=
561MAKEFLAGS=
562
563# Identity of this package.
564PACKAGE_NAME='xf86-input-keyboard'
565PACKAGE_TARNAME='xf86-input-keyboard'
566PACKAGE_VERSION='1.6.0'
567PACKAGE_STRING='xf86-input-keyboard 1.6.0'
568PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
569PACKAGE_URL=''
570
571ac_unique_file="Makefile.am"
572# Factoring default headers for most tests.
573ac_includes_default="\
574#include <stdio.h>
575#ifdef HAVE_SYS_TYPES_H
576# include <sys/types.h>
577#endif
578#ifdef HAVE_SYS_STAT_H
579# include <sys/stat.h>
580#endif
581#ifdef STDC_HEADERS
582# include <stdlib.h>
583# include <stddef.h>
584#else
585# ifdef HAVE_STDLIB_H
586#  include <stdlib.h>
587# endif
588#endif
589#ifdef HAVE_STRING_H
590# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
591#  include <memory.h>
592# endif
593# include <string.h>
594#endif
595#ifdef HAVE_STRINGS_H
596# include <strings.h>
597#endif
598#ifdef HAVE_INTTYPES_H
599# include <inttypes.h>
600#endif
601#ifdef HAVE_STDINT_H
602# include <stdint.h>
603#endif
604#ifdef HAVE_UNISTD_H
605# include <unistd.h>
606#endif"
607
608ac_subst_vars='am__EXEEXT_FALSE
609am__EXEEXT_TRUE
610LTLIBOBJS
611LIBOBJS
612DRIVER_NAME
613HURD_FALSE
614HURD_TRUE
615SOLARIS_FALSE
616SOLARIS_TRUE
617BSD_FALSE
618BSD_TRUE
619LINUX_FALSE
620LINUX_TRUE
621inputdir
622XORG_LIBS
623XORG_CFLAGS
624AM_BACKSLASH
625AM_DEFAULT_VERBOSITY
626MAN_SUBSTS
627XORG_MAN_PAGE
628ADMIN_MAN_DIR
629DRIVER_MAN_DIR
630MISC_MAN_DIR
631FILE_MAN_DIR
632LIB_MAN_DIR
633APP_MAN_DIR
634ADMIN_MAN_SUFFIX
635DRIVER_MAN_SUFFIX
636MISC_MAN_SUFFIX
637FILE_MAN_SUFFIX
638LIB_MAN_SUFFIX
639APP_MAN_SUFFIX
640INSTALL_CMD
641PKG_CONFIG_LIBDIR
642PKG_CONFIG_PATH
643PKG_CONFIG
644CHANGELOG_CMD
645CWARNFLAGS
646CPP
647OTOOL64
648OTOOL
649LIPO
650NMEDIT
651DSYMUTIL
652RANLIB
653AR
654OBJDUMP
655LN_S
656NM
657ac_ct_DUMPBIN
658DUMPBIN
659LD
660FGREP
661EGREP
662GREP
663SED
664am__fastdepCC_FALSE
665am__fastdepCC_TRUE
666CCDEPMODE
667AMDEPBACKSLASH
668AMDEP_FALSE
669AMDEP_TRUE
670am__quote
671am__include
672DEPDIR
673OBJEXT
674EXEEXT
675ac_ct_CC
676CPPFLAGS
677LDFLAGS
678CFLAGS
679CC
680host_os
681host_vendor
682host_cpu
683host
684build_os
685build_vendor
686build_cpu
687build
688LIBTOOL
689MAINT
690MAINTAINER_MODE_FALSE
691MAINTAINER_MODE_TRUE
692am__untar
693am__tar
694AMTAR
695am__leading_dot
696SET_MAKE
697AWK
698mkdir_p
699MKDIR_P
700INSTALL_STRIP_PROGRAM
701STRIP
702install_sh
703MAKEINFO
704AUTOHEADER
705AUTOMAKE
706AUTOCONF
707ACLOCAL
708VERSION
709PACKAGE
710CYGPATH_W
711am__isrc
712INSTALL_DATA
713INSTALL_SCRIPT
714INSTALL_PROGRAM
715target_alias
716host_alias
717build_alias
718LIBS
719ECHO_T
720ECHO_N
721ECHO_C
722DEFS
723mandir
724localedir
725libdir
726psdir
727pdfdir
728dvidir
729htmldir
730infodir
731docdir
732oldincludedir
733includedir
734localstatedir
735sharedstatedir
736sysconfdir
737datadir
738datarootdir
739libexecdir
740sbindir
741bindir
742program_transform_name
743prefix
744exec_prefix
745PACKAGE_URL
746PACKAGE_BUGREPORT
747PACKAGE_STRING
748PACKAGE_VERSION
749PACKAGE_TARNAME
750PACKAGE_NAME
751PATH_SEPARATOR
752SHELL'
753ac_subst_files=''
754ac_user_opts='
755enable_option_checking
756enable_maintainer_mode
757enable_static
758enable_shared
759with_pic
760enable_fast_install
761enable_dependency_tracking
762with_gnu_ld
763enable_libtool_lock
764enable_strict_compilation
765enable_silent_rules
766with_xorg_module_dir
767'
768      ac_precious_vars='build_alias
769host_alias
770target_alias
771CC
772CFLAGS
773LDFLAGS
774LIBS
775CPPFLAGS
776CPP
777PKG_CONFIG
778PKG_CONFIG_PATH
779PKG_CONFIG_LIBDIR
780XORG_CFLAGS
781XORG_LIBS'
782
783
784# Initialize some variables set by options.
785ac_init_help=
786ac_init_version=false
787ac_unrecognized_opts=
788ac_unrecognized_sep=
789# The variables have the same names as the options, with
790# dashes changed to underlines.
791cache_file=/dev/null
792exec_prefix=NONE
793no_create=
794no_recursion=
795prefix=NONE
796program_prefix=NONE
797program_suffix=NONE
798program_transform_name=s,x,x,
799silent=
800site=
801srcdir=
802verbose=
803x_includes=NONE
804x_libraries=NONE
805
806# Installation directory options.
807# These are left unexpanded so users can "make install exec_prefix=/foo"
808# and all the variables that are supposed to be based on exec_prefix
809# by default will actually change.
810# Use braces instead of parens because sh, perl, etc. also accept them.
811# (The list follows the same order as the GNU Coding Standards.)
812bindir='${exec_prefix}/bin'
813sbindir='${exec_prefix}/sbin'
814libexecdir='${exec_prefix}/libexec'
815datarootdir='${prefix}/share'
816datadir='${datarootdir}'
817sysconfdir='${prefix}/etc'
818sharedstatedir='${prefix}/com'
819localstatedir='${prefix}/var'
820includedir='${prefix}/include'
821oldincludedir='/usr/include'
822docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
823infodir='${datarootdir}/info'
824htmldir='${docdir}'
825dvidir='${docdir}'
826pdfdir='${docdir}'
827psdir='${docdir}'
828libdir='${exec_prefix}/lib'
829localedir='${datarootdir}/locale'
830mandir='${datarootdir}/man'
831
832ac_prev=
833ac_dashdash=
834for ac_option
835do
836  # If the previous option needs an argument, assign it.
837  if test -n "$ac_prev"; then
838    eval $ac_prev=\$ac_option
839    ac_prev=
840    continue
841  fi
842
843  case $ac_option in
844  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
845  *)	ac_optarg=yes ;;
846  esac
847
848  # Accept the important Cygnus configure options, so we can diagnose typos.
849
850  case $ac_dashdash$ac_option in
851  --)
852    ac_dashdash=yes ;;
853
854  -bindir | --bindir | --bindi | --bind | --bin | --bi)
855    ac_prev=bindir ;;
856  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
857    bindir=$ac_optarg ;;
858
859  -build | --build | --buil | --bui | --bu)
860    ac_prev=build_alias ;;
861  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
862    build_alias=$ac_optarg ;;
863
864  -cache-file | --cache-file | --cache-fil | --cache-fi \
865  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
866    ac_prev=cache_file ;;
867  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
868  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
869    cache_file=$ac_optarg ;;
870
871  --config-cache | -C)
872    cache_file=config.cache ;;
873
874  -datadir | --datadir | --datadi | --datad)
875    ac_prev=datadir ;;
876  -datadir=* | --datadir=* | --datadi=* | --datad=*)
877    datadir=$ac_optarg ;;
878
879  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
880  | --dataroo | --dataro | --datar)
881    ac_prev=datarootdir ;;
882  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
883  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
884    datarootdir=$ac_optarg ;;
885
886  -disable-* | --disable-*)
887    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
888    # Reject names that are not valid shell variable names.
889    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890      as_fn_error $? "invalid feature name: $ac_useropt"
891    ac_useropt_orig=$ac_useropt
892    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893    case $ac_user_opts in
894      *"
895"enable_$ac_useropt"
896"*) ;;
897      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
898	 ac_unrecognized_sep=', ';;
899    esac
900    eval enable_$ac_useropt=no ;;
901
902  -docdir | --docdir | --docdi | --doc | --do)
903    ac_prev=docdir ;;
904  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
905    docdir=$ac_optarg ;;
906
907  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908    ac_prev=dvidir ;;
909  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
910    dvidir=$ac_optarg ;;
911
912  -enable-* | --enable-*)
913    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
914    # Reject names that are not valid shell variable names.
915    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916      as_fn_error $? "invalid feature name: $ac_useropt"
917    ac_useropt_orig=$ac_useropt
918    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919    case $ac_user_opts in
920      *"
921"enable_$ac_useropt"
922"*) ;;
923      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
924	 ac_unrecognized_sep=', ';;
925    esac
926    eval enable_$ac_useropt=\$ac_optarg ;;
927
928  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
929  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
930  | --exec | --exe | --ex)
931    ac_prev=exec_prefix ;;
932  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
933  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
934  | --exec=* | --exe=* | --ex=*)
935    exec_prefix=$ac_optarg ;;
936
937  -gas | --gas | --ga | --g)
938    # Obsolete; use --with-gas.
939    with_gas=yes ;;
940
941  -help | --help | --hel | --he | -h)
942    ac_init_help=long ;;
943  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
944    ac_init_help=recursive ;;
945  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
946    ac_init_help=short ;;
947
948  -host | --host | --hos | --ho)
949    ac_prev=host_alias ;;
950  -host=* | --host=* | --hos=* | --ho=*)
951    host_alias=$ac_optarg ;;
952
953  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
954    ac_prev=htmldir ;;
955  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
956  | --ht=*)
957    htmldir=$ac_optarg ;;
958
959  -includedir | --includedir | --includedi | --included | --include \
960  | --includ | --inclu | --incl | --inc)
961    ac_prev=includedir ;;
962  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
963  | --includ=* | --inclu=* | --incl=* | --inc=*)
964    includedir=$ac_optarg ;;
965
966  -infodir | --infodir | --infodi | --infod | --info | --inf)
967    ac_prev=infodir ;;
968  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
969    infodir=$ac_optarg ;;
970
971  -libdir | --libdir | --libdi | --libd)
972    ac_prev=libdir ;;
973  -libdir=* | --libdir=* | --libdi=* | --libd=*)
974    libdir=$ac_optarg ;;
975
976  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
977  | --libexe | --libex | --libe)
978    ac_prev=libexecdir ;;
979  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
980  | --libexe=* | --libex=* | --libe=*)
981    libexecdir=$ac_optarg ;;
982
983  -localedir | --localedir | --localedi | --localed | --locale)
984    ac_prev=localedir ;;
985  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
986    localedir=$ac_optarg ;;
987
988  -localstatedir | --localstatedir | --localstatedi | --localstated \
989  | --localstate | --localstat | --localsta | --localst | --locals)
990    ac_prev=localstatedir ;;
991  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
992  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
993    localstatedir=$ac_optarg ;;
994
995  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
996    ac_prev=mandir ;;
997  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
998    mandir=$ac_optarg ;;
999
1000  -nfp | --nfp | --nf)
1001    # Obsolete; use --without-fp.
1002    with_fp=no ;;
1003
1004  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1005  | --no-cr | --no-c | -n)
1006    no_create=yes ;;
1007
1008  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010    no_recursion=yes ;;
1011
1012  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1013  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1014  | --oldin | --oldi | --old | --ol | --o)
1015    ac_prev=oldincludedir ;;
1016  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1017  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1018  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1019    oldincludedir=$ac_optarg ;;
1020
1021  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1022    ac_prev=prefix ;;
1023  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1024    prefix=$ac_optarg ;;
1025
1026  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1027  | --program-pre | --program-pr | --program-p)
1028    ac_prev=program_prefix ;;
1029  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1030  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1031    program_prefix=$ac_optarg ;;
1032
1033  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1034  | --program-suf | --program-su | --program-s)
1035    ac_prev=program_suffix ;;
1036  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1037  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1038    program_suffix=$ac_optarg ;;
1039
1040  -program-transform-name | --program-transform-name \
1041  | --program-transform-nam | --program-transform-na \
1042  | --program-transform-n | --program-transform- \
1043  | --program-transform | --program-transfor \
1044  | --program-transfo | --program-transf \
1045  | --program-trans | --program-tran \
1046  | --progr-tra | --program-tr | --program-t)
1047    ac_prev=program_transform_name ;;
1048  -program-transform-name=* | --program-transform-name=* \
1049  | --program-transform-nam=* | --program-transform-na=* \
1050  | --program-transform-n=* | --program-transform-=* \
1051  | --program-transform=* | --program-transfor=* \
1052  | --program-transfo=* | --program-transf=* \
1053  | --program-trans=* | --program-tran=* \
1054  | --progr-tra=* | --program-tr=* | --program-t=*)
1055    program_transform_name=$ac_optarg ;;
1056
1057  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1058    ac_prev=pdfdir ;;
1059  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1060    pdfdir=$ac_optarg ;;
1061
1062  -psdir | --psdir | --psdi | --psd | --ps)
1063    ac_prev=psdir ;;
1064  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1065    psdir=$ac_optarg ;;
1066
1067  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068  | -silent | --silent | --silen | --sile | --sil)
1069    silent=yes ;;
1070
1071  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1072    ac_prev=sbindir ;;
1073  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1074  | --sbi=* | --sb=*)
1075    sbindir=$ac_optarg ;;
1076
1077  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1078  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1079  | --sharedst | --shareds | --shared | --share | --shar \
1080  | --sha | --sh)
1081    ac_prev=sharedstatedir ;;
1082  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1083  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1084  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1085  | --sha=* | --sh=*)
1086    sharedstatedir=$ac_optarg ;;
1087
1088  -site | --site | --sit)
1089    ac_prev=site ;;
1090  -site=* | --site=* | --sit=*)
1091    site=$ac_optarg ;;
1092
1093  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1094    ac_prev=srcdir ;;
1095  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1096    srcdir=$ac_optarg ;;
1097
1098  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1099  | --syscon | --sysco | --sysc | --sys | --sy)
1100    ac_prev=sysconfdir ;;
1101  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1102  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1103    sysconfdir=$ac_optarg ;;
1104
1105  -target | --target | --targe | --targ | --tar | --ta | --t)
1106    ac_prev=target_alias ;;
1107  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1108    target_alias=$ac_optarg ;;
1109
1110  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1111    verbose=yes ;;
1112
1113  -version | --version | --versio | --versi | --vers | -V)
1114    ac_init_version=: ;;
1115
1116  -with-* | --with-*)
1117    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1118    # Reject names that are not valid shell variable names.
1119    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120      as_fn_error $? "invalid package name: $ac_useropt"
1121    ac_useropt_orig=$ac_useropt
1122    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123    case $ac_user_opts in
1124      *"
1125"with_$ac_useropt"
1126"*) ;;
1127      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1128	 ac_unrecognized_sep=', ';;
1129    esac
1130    eval with_$ac_useropt=\$ac_optarg ;;
1131
1132  -without-* | --without-*)
1133    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1134    # Reject names that are not valid shell variable names.
1135    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136      as_fn_error $? "invalid package name: $ac_useropt"
1137    ac_useropt_orig=$ac_useropt
1138    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139    case $ac_user_opts in
1140      *"
1141"with_$ac_useropt"
1142"*) ;;
1143      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1144	 ac_unrecognized_sep=', ';;
1145    esac
1146    eval with_$ac_useropt=no ;;
1147
1148  --x)
1149    # Obsolete; use --with-x.
1150    with_x=yes ;;
1151
1152  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1153  | --x-incl | --x-inc | --x-in | --x-i)
1154    ac_prev=x_includes ;;
1155  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1156  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1157    x_includes=$ac_optarg ;;
1158
1159  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1160  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1161    ac_prev=x_libraries ;;
1162  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1163  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1164    x_libraries=$ac_optarg ;;
1165
1166  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1167Try \`$0 --help' for more information"
1168    ;;
1169
1170  *=*)
1171    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1172    # Reject names that are not valid shell variable names.
1173    case $ac_envvar in #(
1174      '' | [0-9]* | *[!_$as_cr_alnum]* )
1175      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1176    esac
1177    eval $ac_envvar=\$ac_optarg
1178    export $ac_envvar ;;
1179
1180  *)
1181    # FIXME: should be removed in autoconf 3.0.
1182    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1183    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1185    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1186    ;;
1187
1188  esac
1189done
1190
1191if test -n "$ac_prev"; then
1192  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1193  as_fn_error $? "missing argument to $ac_option"
1194fi
1195
1196if test -n "$ac_unrecognized_opts"; then
1197  case $enable_option_checking in
1198    no) ;;
1199    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1200    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1201  esac
1202fi
1203
1204# Check all directory arguments for consistency.
1205for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206		datadir sysconfdir sharedstatedir localstatedir includedir \
1207		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208		libdir localedir mandir
1209do
1210  eval ac_val=\$$ac_var
1211  # Remove trailing slashes.
1212  case $ac_val in
1213    */ )
1214      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1215      eval $ac_var=\$ac_val;;
1216  esac
1217  # Be sure to have absolute directory names.
1218  case $ac_val in
1219    [\\/$]* | ?:[\\/]* )  continue;;
1220    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1221  esac
1222  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1223done
1224
1225# There might be people who depend on the old broken behavior: `$host'
1226# used to hold the argument of --host etc.
1227# FIXME: To remove some day.
1228build=$build_alias
1229host=$host_alias
1230target=$target_alias
1231
1232# FIXME: To remove some day.
1233if test "x$host_alias" != x; then
1234  if test "x$build_alias" = x; then
1235    cross_compiling=maybe
1236    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1237    If a cross compiler is detected then cross compile mode will be used" >&2
1238  elif test "x$build_alias" != "x$host_alias"; then
1239    cross_compiling=yes
1240  fi
1241fi
1242
1243ac_tool_prefix=
1244test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245
1246test "$silent" = yes && exec 6>/dev/null
1247
1248
1249ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250ac_ls_di=`ls -di .` &&
1251ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1252  as_fn_error $? "working directory cannot be determined"
1253test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254  as_fn_error $? "pwd does not report name of working directory"
1255
1256
1257# Find the source files, if location was not specified.
1258if test -z "$srcdir"; then
1259  ac_srcdir_defaulted=yes
1260  # Try the directory containing this script, then the parent directory.
1261  ac_confdir=`$as_dirname -- "$as_myself" ||
1262$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263	 X"$as_myself" : 'X\(//\)[^/]' \| \
1264	 X"$as_myself" : 'X\(//\)$' \| \
1265	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1266$as_echo X"$as_myself" |
1267    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268	    s//\1/
1269	    q
1270	  }
1271	  /^X\(\/\/\)[^/].*/{
1272	    s//\1/
1273	    q
1274	  }
1275	  /^X\(\/\/\)$/{
1276	    s//\1/
1277	    q
1278	  }
1279	  /^X\(\/\).*/{
1280	    s//\1/
1281	    q
1282	  }
1283	  s/.*/./; q'`
1284  srcdir=$ac_confdir
1285  if test ! -r "$srcdir/$ac_unique_file"; then
1286    srcdir=..
1287  fi
1288else
1289  ac_srcdir_defaulted=no
1290fi
1291if test ! -r "$srcdir/$ac_unique_file"; then
1292  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1294fi
1295ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296ac_abs_confdir=`(
1297	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1298	pwd)`
1299# When building in place, set srcdir=.
1300if test "$ac_abs_confdir" = "$ac_pwd"; then
1301  srcdir=.
1302fi
1303# Remove unnecessary trailing slashes from srcdir.
1304# Double slashes in file names in object file debugging info
1305# mess up M-x gdb in Emacs.
1306case $srcdir in
1307*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308esac
1309for ac_var in $ac_precious_vars; do
1310  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311  eval ac_env_${ac_var}_value=\$${ac_var}
1312  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314done
1315
1316#
1317# Report the --help message.
1318#
1319if test "$ac_init_help" = "long"; then
1320  # Omit some internal or obsolete options to make the list less imposing.
1321  # This message is too long to be a string in the A/UX 3.1 sh.
1322  cat <<_ACEOF
1323\`configure' configures xf86-input-keyboard 1.6.0 to adapt to many kinds of systems.
1324
1325Usage: $0 [OPTION]... [VAR=VALUE]...
1326
1327To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328VAR=VALUE.  See below for descriptions of some of the useful variables.
1329
1330Defaults for the options are specified in brackets.
1331
1332Configuration:
1333  -h, --help              display this help and exit
1334      --help=short        display options specific to this package
1335      --help=recursive    display the short help of all the included packages
1336  -V, --version           display version information and exit
1337  -q, --quiet, --silent   do not print \`checking ...' messages
1338      --cache-file=FILE   cache test results in FILE [disabled]
1339  -C, --config-cache      alias for \`--cache-file=config.cache'
1340  -n, --no-create         do not create output files
1341      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1342
1343Installation directories:
1344  --prefix=PREFIX         install architecture-independent files in PREFIX
1345                          [$ac_default_prefix]
1346  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1347                          [PREFIX]
1348
1349By default, \`make install' will install all the files in
1350\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1351an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352for instance \`--prefix=\$HOME'.
1353
1354For better control, use the options below.
1355
1356Fine tuning of the installation directories:
1357  --bindir=DIR            user executables [EPREFIX/bin]
1358  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1359  --libexecdir=DIR        program executables [EPREFIX/libexec]
1360  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1361  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1362  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1363  --libdir=DIR            object code libraries [EPREFIX/lib]
1364  --includedir=DIR        C header files [PREFIX/include]
1365  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1366  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1367  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1368  --infodir=DIR           info documentation [DATAROOTDIR/info]
1369  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1370  --mandir=DIR            man documentation [DATAROOTDIR/man]
1371  --docdir=DIR            documentation root
1372                          [DATAROOTDIR/doc/xf86-input-keyboard]
1373  --htmldir=DIR           html documentation [DOCDIR]
1374  --dvidir=DIR            dvi documentation [DOCDIR]
1375  --pdfdir=DIR            pdf documentation [DOCDIR]
1376  --psdir=DIR             ps documentation [DOCDIR]
1377_ACEOF
1378
1379  cat <<\_ACEOF
1380
1381Program names:
1382  --program-prefix=PREFIX            prepend PREFIX to installed program names
1383  --program-suffix=SUFFIX            append SUFFIX to installed program names
1384  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1385
1386System types:
1387  --build=BUILD     configure for building on BUILD [guessed]
1388  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1389_ACEOF
1390fi
1391
1392if test -n "$ac_init_help"; then
1393  case $ac_init_help in
1394     short | recursive ) echo "Configuration of xf86-input-keyboard 1.6.0:";;
1395   esac
1396  cat <<\_ACEOF
1397
1398Optional Features:
1399  --disable-option-checking  ignore unrecognized --enable/--with options
1400  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1401  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1402  --enable-maintainer-mode  enable make rules and dependencies not useful
1403			  (and sometimes confusing) to the casual installer
1404  --enable-static[=PKGS]  build static libraries [default=no]
1405  --enable-shared[=PKGS]  build shared libraries [default=yes]
1406  --enable-fast-install[=PKGS]
1407                          optimize for fast installation [default=yes]
1408  --disable-dependency-tracking  speeds up one-time build
1409  --enable-dependency-tracking   do not reject slow dependency extractors
1410  --disable-libtool-lock  avoid locking (might break parallel builds)
1411  --enable-strict-compilation
1412                          Enable all warnings from compiler and make them
1413                          errors (default: disabled)
1414  --enable-silent-rules          less verbose build output (undo: `make V=1')
1415  --disable-silent-rules         verbose build output (undo: `make V=0')
1416
1417Optional Packages:
1418  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1419  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1420  --with-pic              try to use only PIC/non-PIC objects [default=use
1421                          both]
1422  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1423  --with-xorg-module-dir=DIR
1424                          Default xorg module directory
1425                          [[default=$libdir/xorg/modules]]
1426
1427Some influential environment variables:
1428  CC          C compiler command
1429  CFLAGS      C compiler flags
1430  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1431              nonstandard directory <lib dir>
1432  LIBS        libraries to pass to the linker, e.g. -l<library>
1433  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1434              you have headers in a nonstandard directory <include dir>
1435  CPP         C preprocessor
1436  PKG_CONFIG  path to pkg-config utility
1437  PKG_CONFIG_PATH
1438              directories to add to pkg-config's search path
1439  PKG_CONFIG_LIBDIR
1440              path overriding pkg-config's built-in search path
1441  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1442  XORG_LIBS   linker flags for XORG, overriding pkg-config
1443
1444Use these variables to override the choices made by `configure' or to help
1445it to find libraries and programs with nonstandard names/locations.
1446
1447Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1448_ACEOF
1449ac_status=$?
1450fi
1451
1452if test "$ac_init_help" = "recursive"; then
1453  # If there are subdirs, report their specific --help.
1454  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1455    test -d "$ac_dir" ||
1456      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1457      continue
1458    ac_builddir=.
1459
1460case "$ac_dir" in
1461.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462*)
1463  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1464  # A ".." for each directory in $ac_dir_suffix.
1465  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1466  case $ac_top_builddir_sub in
1467  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1469  esac ;;
1470esac
1471ac_abs_top_builddir=$ac_pwd
1472ac_abs_builddir=$ac_pwd$ac_dir_suffix
1473# for backward compatibility:
1474ac_top_builddir=$ac_top_build_prefix
1475
1476case $srcdir in
1477  .)  # We are building in place.
1478    ac_srcdir=.
1479    ac_top_srcdir=$ac_top_builddir_sub
1480    ac_abs_top_srcdir=$ac_pwd ;;
1481  [\\/]* | ?:[\\/]* )  # Absolute name.
1482    ac_srcdir=$srcdir$ac_dir_suffix;
1483    ac_top_srcdir=$srcdir
1484    ac_abs_top_srcdir=$srcdir ;;
1485  *) # Relative name.
1486    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1487    ac_top_srcdir=$ac_top_build_prefix$srcdir
1488    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1489esac
1490ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1491
1492    cd "$ac_dir" || { ac_status=$?; continue; }
1493    # Check for guested configure.
1494    if test -f "$ac_srcdir/configure.gnu"; then
1495      echo &&
1496      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1497    elif test -f "$ac_srcdir/configure"; then
1498      echo &&
1499      $SHELL "$ac_srcdir/configure" --help=recursive
1500    else
1501      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1502    fi || ac_status=$?
1503    cd "$ac_pwd" || { ac_status=$?; break; }
1504  done
1505fi
1506
1507test -n "$ac_init_help" && exit $ac_status
1508if $ac_init_version; then
1509  cat <<\_ACEOF
1510xf86-input-keyboard configure 1.6.0
1511generated by GNU Autoconf 2.66
1512
1513Copyright (C) 2010 Free Software Foundation, Inc.
1514This configure script is free software; the Free Software Foundation
1515gives unlimited permission to copy, distribute and modify it.
1516_ACEOF
1517  exit
1518fi
1519
1520## ------------------------ ##
1521## Autoconf initialization. ##
1522## ------------------------ ##
1523
1524# ac_fn_c_try_compile LINENO
1525# --------------------------
1526# Try to compile conftest.$ac_ext, and return whether this succeeded.
1527ac_fn_c_try_compile ()
1528{
1529  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530  rm -f conftest.$ac_objext
1531  if { { ac_try="$ac_compile"
1532case "(($ac_try" in
1533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534  *) ac_try_echo=$ac_try;;
1535esac
1536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537$as_echo "$ac_try_echo"; } >&5
1538  (eval "$ac_compile") 2>conftest.err
1539  ac_status=$?
1540  if test -s conftest.err; then
1541    grep -v '^ *+' conftest.err >conftest.er1
1542    cat conftest.er1 >&5
1543    mv -f conftest.er1 conftest.err
1544  fi
1545  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546  test $ac_status = 0; } && {
1547	 test -z "$ac_c_werror_flag" ||
1548	 test ! -s conftest.err
1549       } && test -s conftest.$ac_objext; then :
1550  ac_retval=0
1551else
1552  $as_echo "$as_me: failed program was:" >&5
1553sed 's/^/| /' conftest.$ac_ext >&5
1554
1555	ac_retval=1
1556fi
1557  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1558  as_fn_set_status $ac_retval
1559
1560} # ac_fn_c_try_compile
1561
1562# ac_fn_c_try_link LINENO
1563# -----------------------
1564# Try to link conftest.$ac_ext, and return whether this succeeded.
1565ac_fn_c_try_link ()
1566{
1567  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568  rm -f conftest.$ac_objext conftest$ac_exeext
1569  if { { ac_try="$ac_link"
1570case "(($ac_try" in
1571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572  *) ac_try_echo=$ac_try;;
1573esac
1574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575$as_echo "$ac_try_echo"; } >&5
1576  (eval "$ac_link") 2>conftest.err
1577  ac_status=$?
1578  if test -s conftest.err; then
1579    grep -v '^ *+' conftest.err >conftest.er1
1580    cat conftest.er1 >&5
1581    mv -f conftest.er1 conftest.err
1582  fi
1583  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584  test $ac_status = 0; } && {
1585	 test -z "$ac_c_werror_flag" ||
1586	 test ! -s conftest.err
1587       } && test -s conftest$ac_exeext && {
1588	 test "$cross_compiling" = yes ||
1589	 $as_test_x conftest$ac_exeext
1590       }; then :
1591  ac_retval=0
1592else
1593  $as_echo "$as_me: failed program was:" >&5
1594sed 's/^/| /' conftest.$ac_ext >&5
1595
1596	ac_retval=1
1597fi
1598  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1599  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1600  # interfere with the next link command; also delete a directory that is
1601  # left behind by Apple's compiler.  We do this before executing the actions.
1602  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1603  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1604  as_fn_set_status $ac_retval
1605
1606} # ac_fn_c_try_link
1607
1608# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1609# -------------------------------------------------------
1610# Tests whether HEADER exists and can be compiled using the include files in
1611# INCLUDES, setting the cache variable VAR accordingly.
1612ac_fn_c_check_header_compile ()
1613{
1614  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1616$as_echo_n "checking for $2... " >&6; }
1617if eval "test \"\${$3+set}\"" = set; then :
1618  $as_echo_n "(cached) " >&6
1619else
1620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1621/* end confdefs.h.  */
1622$4
1623#include <$2>
1624_ACEOF
1625if ac_fn_c_try_compile "$LINENO"; then :
1626  eval "$3=yes"
1627else
1628  eval "$3=no"
1629fi
1630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1631fi
1632eval ac_res=\$$3
1633	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1634$as_echo "$ac_res" >&6; }
1635  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1636
1637} # ac_fn_c_check_header_compile
1638
1639# ac_fn_c_try_cpp LINENO
1640# ----------------------
1641# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1642ac_fn_c_try_cpp ()
1643{
1644  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645  if { { ac_try="$ac_cpp conftest.$ac_ext"
1646case "(($ac_try" in
1647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648  *) ac_try_echo=$ac_try;;
1649esac
1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651$as_echo "$ac_try_echo"; } >&5
1652  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1653  ac_status=$?
1654  if test -s conftest.err; then
1655    grep -v '^ *+' conftest.err >conftest.er1
1656    cat conftest.er1 >&5
1657    mv -f conftest.er1 conftest.err
1658  fi
1659  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660  test $ac_status = 0; } >/dev/null && {
1661	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1662	 test ! -s conftest.err
1663       }; then :
1664  ac_retval=0
1665else
1666  $as_echo "$as_me: failed program was:" >&5
1667sed 's/^/| /' conftest.$ac_ext >&5
1668
1669    ac_retval=1
1670fi
1671  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1672  as_fn_set_status $ac_retval
1673
1674} # ac_fn_c_try_cpp
1675
1676# ac_fn_c_try_run LINENO
1677# ----------------------
1678# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1679# that executables *can* be run.
1680ac_fn_c_try_run ()
1681{
1682  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683  if { { ac_try="$ac_link"
1684case "(($ac_try" in
1685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686  *) ac_try_echo=$ac_try;;
1687esac
1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689$as_echo "$ac_try_echo"; } >&5
1690  (eval "$ac_link") 2>&5
1691  ac_status=$?
1692  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1694  { { case "(($ac_try" in
1695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696  *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699$as_echo "$ac_try_echo"; } >&5
1700  (eval "$ac_try") 2>&5
1701  ac_status=$?
1702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703  test $ac_status = 0; }; }; then :
1704  ac_retval=0
1705else
1706  $as_echo "$as_me: program exited with status $ac_status" >&5
1707       $as_echo "$as_me: failed program was:" >&5
1708sed 's/^/| /' conftest.$ac_ext >&5
1709
1710       ac_retval=$ac_status
1711fi
1712  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1714  as_fn_set_status $ac_retval
1715
1716} # ac_fn_c_try_run
1717
1718# ac_fn_c_check_func LINENO FUNC VAR
1719# ----------------------------------
1720# Tests whether FUNC exists, setting the cache variable VAR accordingly
1721ac_fn_c_check_func ()
1722{
1723  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725$as_echo_n "checking for $2... " >&6; }
1726if eval "test \"\${$3+set}\"" = set; then :
1727  $as_echo_n "(cached) " >&6
1728else
1729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730/* end confdefs.h.  */
1731/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1732   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1733#define $2 innocuous_$2
1734
1735/* System header to define __stub macros and hopefully few prototypes,
1736    which can conflict with char $2 (); below.
1737    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1738    <limits.h> exists even on freestanding compilers.  */
1739
1740#ifdef __STDC__
1741# include <limits.h>
1742#else
1743# include <assert.h>
1744#endif
1745
1746#undef $2
1747
1748/* Override any GCC internal prototype to avoid an error.
1749   Use char because int might match the return type of a GCC
1750   builtin and then its argument prototype would still apply.  */
1751#ifdef __cplusplus
1752extern "C"
1753#endif
1754char $2 ();
1755/* The GNU C library defines this for functions which it implements
1756    to always fail with ENOSYS.  Some functions are actually named
1757    something starting with __ and the normal name is an alias.  */
1758#if defined __stub_$2 || defined __stub___$2
1759choke me
1760#endif
1761
1762int
1763main ()
1764{
1765return $2 ();
1766  ;
1767  return 0;
1768}
1769_ACEOF
1770if ac_fn_c_try_link "$LINENO"; then :
1771  eval "$3=yes"
1772else
1773  eval "$3=no"
1774fi
1775rm -f core conftest.err conftest.$ac_objext \
1776    conftest$ac_exeext conftest.$ac_ext
1777fi
1778eval ac_res=\$$3
1779	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780$as_echo "$ac_res" >&6; }
1781  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1782
1783} # ac_fn_c_check_func
1784
1785# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1786# ---------------------------------------------
1787# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1788# accordingly.
1789ac_fn_c_check_decl ()
1790{
1791  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792  as_decl_name=`echo $2|sed 's/ *(.*//'`
1793  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1794  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1795$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1796if eval "test \"\${$3+set}\"" = set; then :
1797  $as_echo_n "(cached) " >&6
1798else
1799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800/* end confdefs.h.  */
1801$4
1802int
1803main ()
1804{
1805#ifndef $as_decl_name
1806#ifdef __cplusplus
1807  (void) $as_decl_use;
1808#else
1809  (void) $as_decl_name;
1810#endif
1811#endif
1812
1813  ;
1814  return 0;
1815}
1816_ACEOF
1817if ac_fn_c_try_compile "$LINENO"; then :
1818  eval "$3=yes"
1819else
1820  eval "$3=no"
1821fi
1822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823fi
1824eval ac_res=\$$3
1825	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826$as_echo "$ac_res" >&6; }
1827  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828
1829} # ac_fn_c_check_decl
1830cat >config.log <<_ACEOF
1831This file contains any messages produced by compilers while
1832running configure, to aid debugging if configure makes a mistake.
1833
1834It was created by xf86-input-keyboard $as_me 1.6.0, which was
1835generated by GNU Autoconf 2.66.  Invocation command line was
1836
1837  $ $0 $@
1838
1839_ACEOF
1840exec 5>>config.log
1841{
1842cat <<_ASUNAME
1843## --------- ##
1844## Platform. ##
1845## --------- ##
1846
1847hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1848uname -m = `(uname -m) 2>/dev/null || echo unknown`
1849uname -r = `(uname -r) 2>/dev/null || echo unknown`
1850uname -s = `(uname -s) 2>/dev/null || echo unknown`
1851uname -v = `(uname -v) 2>/dev/null || echo unknown`
1852
1853/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1854/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1855
1856/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1857/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1858/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1859/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1860/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1861/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1862/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1863
1864_ASUNAME
1865
1866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867for as_dir in $PATH
1868do
1869  IFS=$as_save_IFS
1870  test -z "$as_dir" && as_dir=.
1871    $as_echo "PATH: $as_dir"
1872  done
1873IFS=$as_save_IFS
1874
1875} >&5
1876
1877cat >&5 <<_ACEOF
1878
1879
1880## ----------- ##
1881## Core tests. ##
1882## ----------- ##
1883
1884_ACEOF
1885
1886
1887# Keep a trace of the command line.
1888# Strip out --no-create and --no-recursion so they do not pile up.
1889# Strip out --silent because we don't want to record it for future runs.
1890# Also quote any args containing shell meta-characters.
1891# Make two passes to allow for proper duplicate-argument suppression.
1892ac_configure_args=
1893ac_configure_args0=
1894ac_configure_args1=
1895ac_must_keep_next=false
1896for ac_pass in 1 2
1897do
1898  for ac_arg
1899  do
1900    case $ac_arg in
1901    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1902    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1903    | -silent | --silent | --silen | --sile | --sil)
1904      continue ;;
1905    *\'*)
1906      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1907    esac
1908    case $ac_pass in
1909    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1910    2)
1911      as_fn_append ac_configure_args1 " '$ac_arg'"
1912      if test $ac_must_keep_next = true; then
1913	ac_must_keep_next=false # Got value, back to normal.
1914      else
1915	case $ac_arg in
1916	  *=* | --config-cache | -C | -disable-* | --disable-* \
1917	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1918	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1919	  | -with-* | --with-* | -without-* | --without-* | --x)
1920	    case "$ac_configure_args0 " in
1921	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1922	    esac
1923	    ;;
1924	  -* ) ac_must_keep_next=true ;;
1925	esac
1926      fi
1927      as_fn_append ac_configure_args " '$ac_arg'"
1928      ;;
1929    esac
1930  done
1931done
1932{ ac_configure_args0=; unset ac_configure_args0;}
1933{ ac_configure_args1=; unset ac_configure_args1;}
1934
1935# When interrupted or exit'd, cleanup temporary files, and complete
1936# config.log.  We remove comments because anyway the quotes in there
1937# would cause problems or look ugly.
1938# WARNING: Use '\'' to represent an apostrophe within the trap.
1939# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1940trap 'exit_status=$?
1941  # Save into config.log some information that might help in debugging.
1942  {
1943    echo
1944
1945    $as_echo "## ---------------- ##
1946## Cache variables. ##
1947## ---------------- ##"
1948    echo
1949    # The following way of writing the cache mishandles newlines in values,
1950(
1951  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1952    eval ac_val=\$$ac_var
1953    case $ac_val in #(
1954    *${as_nl}*)
1955      case $ac_var in #(
1956      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1957$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1958      esac
1959      case $ac_var in #(
1960      _ | IFS | as_nl) ;; #(
1961      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1962      *) { eval $ac_var=; unset $ac_var;} ;;
1963      esac ;;
1964    esac
1965  done
1966  (set) 2>&1 |
1967    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1968    *${as_nl}ac_space=\ *)
1969      sed -n \
1970	"s/'\''/'\''\\\\'\'''\''/g;
1971	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1972      ;; #(
1973    *)
1974      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1975      ;;
1976    esac |
1977    sort
1978)
1979    echo
1980
1981    $as_echo "## ----------------- ##
1982## Output variables. ##
1983## ----------------- ##"
1984    echo
1985    for ac_var in $ac_subst_vars
1986    do
1987      eval ac_val=\$$ac_var
1988      case $ac_val in
1989      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1990      esac
1991      $as_echo "$ac_var='\''$ac_val'\''"
1992    done | sort
1993    echo
1994
1995    if test -n "$ac_subst_files"; then
1996      $as_echo "## ------------------- ##
1997## File substitutions. ##
1998## ------------------- ##"
1999      echo
2000      for ac_var in $ac_subst_files
2001      do
2002	eval ac_val=\$$ac_var
2003	case $ac_val in
2004	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2005	esac
2006	$as_echo "$ac_var='\''$ac_val'\''"
2007      done | sort
2008      echo
2009    fi
2010
2011    if test -s confdefs.h; then
2012      $as_echo "## ----------- ##
2013## confdefs.h. ##
2014## ----------- ##"
2015      echo
2016      cat confdefs.h
2017      echo
2018    fi
2019    test "$ac_signal" != 0 &&
2020      $as_echo "$as_me: caught signal $ac_signal"
2021    $as_echo "$as_me: exit $exit_status"
2022  } >&5
2023  rm -f core *.core core.conftest.* &&
2024    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2025    exit $exit_status
2026' 0
2027for ac_signal in 1 2 13 15; do
2028  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2029done
2030ac_signal=0
2031
2032# confdefs.h avoids OS command line length limits that DEFS can exceed.
2033rm -f -r conftest* confdefs.h
2034
2035$as_echo "/* confdefs.h */" > confdefs.h
2036
2037# Predefined preprocessor variables.
2038
2039cat >>confdefs.h <<_ACEOF
2040#define PACKAGE_NAME "$PACKAGE_NAME"
2041_ACEOF
2042
2043cat >>confdefs.h <<_ACEOF
2044#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2045_ACEOF
2046
2047cat >>confdefs.h <<_ACEOF
2048#define PACKAGE_VERSION "$PACKAGE_VERSION"
2049_ACEOF
2050
2051cat >>confdefs.h <<_ACEOF
2052#define PACKAGE_STRING "$PACKAGE_STRING"
2053_ACEOF
2054
2055cat >>confdefs.h <<_ACEOF
2056#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2057_ACEOF
2058
2059cat >>confdefs.h <<_ACEOF
2060#define PACKAGE_URL "$PACKAGE_URL"
2061_ACEOF
2062
2063
2064# Let the site file select an alternate cache file if it wants to.
2065# Prefer an explicitly selected file to automatically selected ones.
2066ac_site_file1=NONE
2067ac_site_file2=NONE
2068if test -n "$CONFIG_SITE"; then
2069  # We do not want a PATH search for config.site.
2070  case $CONFIG_SITE in #((
2071    -*)  ac_site_file1=./$CONFIG_SITE;;
2072    */*) ac_site_file1=$CONFIG_SITE;;
2073    *)   ac_site_file1=./$CONFIG_SITE;;
2074  esac
2075elif test "x$prefix" != xNONE; then
2076  ac_site_file1=$prefix/share/config.site
2077  ac_site_file2=$prefix/etc/config.site
2078else
2079  ac_site_file1=$ac_default_prefix/share/config.site
2080  ac_site_file2=$ac_default_prefix/etc/config.site
2081fi
2082for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2083do
2084  test "x$ac_site_file" = xNONE && continue
2085  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2086    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2087$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2088    sed 's/^/| /' "$ac_site_file" >&5
2089    . "$ac_site_file" \
2090      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2091$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2092as_fn_error $? "failed to load site script $ac_site_file
2093See \`config.log' for more details" "$LINENO" 5; }
2094  fi
2095done
2096
2097if test -r "$cache_file"; then
2098  # Some versions of bash will fail to source /dev/null (special files
2099  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2100  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2101    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2102$as_echo "$as_me: loading cache $cache_file" >&6;}
2103    case $cache_file in
2104      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2105      *)                      . "./$cache_file";;
2106    esac
2107  fi
2108else
2109  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2110$as_echo "$as_me: creating cache $cache_file" >&6;}
2111  >$cache_file
2112fi
2113
2114# Check that the precious variables saved in the cache have kept the same
2115# value.
2116ac_cache_corrupted=false
2117for ac_var in $ac_precious_vars; do
2118  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2119  eval ac_new_set=\$ac_env_${ac_var}_set
2120  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2121  eval ac_new_val=\$ac_env_${ac_var}_value
2122  case $ac_old_set,$ac_new_set in
2123    set,)
2124      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2125$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2126      ac_cache_corrupted=: ;;
2127    ,set)
2128      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2129$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2130      ac_cache_corrupted=: ;;
2131    ,);;
2132    *)
2133      if test "x$ac_old_val" != "x$ac_new_val"; then
2134	# differences in whitespace do not lead to failure.
2135	ac_old_val_w=`echo x $ac_old_val`
2136	ac_new_val_w=`echo x $ac_new_val`
2137	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2138	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2139$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2140	  ac_cache_corrupted=:
2141	else
2142	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2143$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2144	  eval $ac_var=\$ac_old_val
2145	fi
2146	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2147$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2148	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2149$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2150      fi;;
2151  esac
2152  # Pass precious variables to config.status.
2153  if test "$ac_new_set" = set; then
2154    case $ac_new_val in
2155    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2156    *) ac_arg=$ac_var=$ac_new_val ;;
2157    esac
2158    case " $ac_configure_args " in
2159      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2160      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2161    esac
2162  fi
2163done
2164if $ac_cache_corrupted; then
2165  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2167  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2168$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2169  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2170fi
2171## -------------------- ##
2172## Main body of script. ##
2173## -------------------- ##
2174
2175ac_ext=c
2176ac_cpp='$CPP $CPPFLAGS'
2177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2179ac_compiler_gnu=$ac_cv_c_compiler_gnu
2180
2181
2182
2183ac_config_headers="$ac_config_headers config.h"
2184
2185ac_aux_dir=
2186for ac_dir in . "$srcdir"/.; do
2187  if test -f "$ac_dir/install-sh"; then
2188    ac_aux_dir=$ac_dir
2189    ac_install_sh="$ac_aux_dir/install-sh -c"
2190    break
2191  elif test -f "$ac_dir/install.sh"; then
2192    ac_aux_dir=$ac_dir
2193    ac_install_sh="$ac_aux_dir/install.sh -c"
2194    break
2195  elif test -f "$ac_dir/shtool"; then
2196    ac_aux_dir=$ac_dir
2197    ac_install_sh="$ac_aux_dir/shtool install -c"
2198    break
2199  fi
2200done
2201if test -z "$ac_aux_dir"; then
2202  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2203fi
2204
2205# These three variables are undocumented and unsupported,
2206# and are intended to be withdrawn in a future Autoconf release.
2207# They can cause serious problems if a builder's source tree is in a directory
2208# whose full name contains unusual characters.
2209ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2210ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2211ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2212
2213
2214
2215# Initialize Automake
2216am__api_version='1.11'
2217
2218# Find a good install program.  We prefer a C program (faster),
2219# so one script is as good as another.  But avoid the broken or
2220# incompatible versions:
2221# SysV /etc/install, /usr/sbin/install
2222# SunOS /usr/etc/install
2223# IRIX /sbin/install
2224# AIX /bin/install
2225# AmigaOS /C/install, which installs bootblocks on floppy discs
2226# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2227# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2228# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2229# OS/2's system install, which has a completely different semantic
2230# ./install, which can be erroneously created by make from ./install.sh.
2231# Reject install programs that cannot install multiple files.
2232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2233$as_echo_n "checking for a BSD-compatible install... " >&6; }
2234if test -z "$INSTALL"; then
2235if test "${ac_cv_path_install+set}" = set; then :
2236  $as_echo_n "(cached) " >&6
2237else
2238  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239for as_dir in $PATH
2240do
2241  IFS=$as_save_IFS
2242  test -z "$as_dir" && as_dir=.
2243    # Account for people who put trailing slashes in PATH elements.
2244case $as_dir/ in #((
2245  ./ | .// | /[cC]/* | \
2246  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2247  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2248  /usr/ucb/* ) ;;
2249  *)
2250    # OSF1 and SCO ODT 3.0 have their own names for install.
2251    # Don't use installbsd from OSF since it installs stuff as root
2252    # by default.
2253    for ac_prog in ginstall scoinst install; do
2254      for ac_exec_ext in '' $ac_executable_extensions; do
2255	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2256	  if test $ac_prog = install &&
2257	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2258	    # AIX install.  It has an incompatible calling convention.
2259	    :
2260	  elif test $ac_prog = install &&
2261	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2262	    # program-specific install script used by HP pwplus--don't use.
2263	    :
2264	  else
2265	    rm -rf conftest.one conftest.two conftest.dir
2266	    echo one > conftest.one
2267	    echo two > conftest.two
2268	    mkdir conftest.dir
2269	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2270	      test -s conftest.one && test -s conftest.two &&
2271	      test -s conftest.dir/conftest.one &&
2272	      test -s conftest.dir/conftest.two
2273	    then
2274	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2275	      break 3
2276	    fi
2277	  fi
2278	fi
2279      done
2280    done
2281    ;;
2282esac
2283
2284  done
2285IFS=$as_save_IFS
2286
2287rm -rf conftest.one conftest.two conftest.dir
2288
2289fi
2290  if test "${ac_cv_path_install+set}" = set; then
2291    INSTALL=$ac_cv_path_install
2292  else
2293    # As a last resort, use the slow shell script.  Don't cache a
2294    # value for INSTALL within a source directory, because that will
2295    # break other packages using the cache if that directory is
2296    # removed, or if the value is a relative name.
2297    INSTALL=$ac_install_sh
2298  fi
2299fi
2300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2301$as_echo "$INSTALL" >&6; }
2302
2303# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2304# It thinks the first close brace ends the variable substitution.
2305test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2306
2307test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2308
2309test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2310
2311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2312$as_echo_n "checking whether build environment is sane... " >&6; }
2313# Just in case
2314sleep 1
2315echo timestamp > conftest.file
2316# Reject unsafe characters in $srcdir or the absolute working directory
2317# name.  Accept space and tab only in the latter.
2318am_lf='
2319'
2320case `pwd` in
2321  *[\\\"\#\$\&\'\`$am_lf]*)
2322    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2323esac
2324case $srcdir in
2325  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2326    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2327esac
2328
2329# Do `set' in a subshell so we don't clobber the current shell's
2330# arguments.  Must try -L first in case configure is actually a
2331# symlink; some systems play weird games with the mod time of symlinks
2332# (eg FreeBSD returns the mod time of the symlink's containing
2333# directory).
2334if (
2335   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2336   if test "$*" = "X"; then
2337      # -L didn't work.
2338      set X `ls -t "$srcdir/configure" conftest.file`
2339   fi
2340   rm -f conftest.file
2341   if test "$*" != "X $srcdir/configure conftest.file" \
2342      && test "$*" != "X conftest.file $srcdir/configure"; then
2343
2344      # If neither matched, then we have a broken ls.  This can happen
2345      # if, for instance, CONFIG_SHELL is bash and it inherits a
2346      # broken ls alias from the environment.  This has actually
2347      # happened.  Such a system could not be considered "sane".
2348      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2349alias in your environment" "$LINENO" 5
2350   fi
2351
2352   test "$2" = conftest.file
2353   )
2354then
2355   # Ok.
2356   :
2357else
2358   as_fn_error $? "newly created file is older than distributed files!
2359Check your system clock" "$LINENO" 5
2360fi
2361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2362$as_echo "yes" >&6; }
2363test "$program_prefix" != NONE &&
2364  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2365# Use a double $ so make ignores it.
2366test "$program_suffix" != NONE &&
2367  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2368# Double any \ or $.
2369# By default was `s,x,x', remove it if useless.
2370ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2371program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2372
2373# expand $ac_aux_dir to an absolute path
2374am_aux_dir=`cd $ac_aux_dir && pwd`
2375
2376if test x"${MISSING+set}" != xset; then
2377  case $am_aux_dir in
2378  *\ * | *\	*)
2379    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2380  *)
2381    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2382  esac
2383fi
2384# Use eval to expand $SHELL
2385if eval "$MISSING --run true"; then
2386  am_missing_run="$MISSING --run "
2387else
2388  am_missing_run=
2389  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2390$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2391fi
2392
2393if test x"${install_sh}" != xset; then
2394  case $am_aux_dir in
2395  *\ * | *\	*)
2396    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2397  *)
2398    install_sh="\${SHELL} $am_aux_dir/install-sh"
2399  esac
2400fi
2401
2402# Installed binaries are usually stripped using `strip' when the user
2403# run `make install-strip'.  However `strip' might not be the right
2404# tool to use in cross-compilation environments, therefore Automake
2405# will honor the `STRIP' environment variable to overrule this program.
2406if test "$cross_compiling" != no; then
2407  if test -n "$ac_tool_prefix"; then
2408  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2409set dummy ${ac_tool_prefix}strip; 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 test "${ac_cv_prog_STRIP+set}" = set; then :
2413  $as_echo_n "(cached) " >&6
2414else
2415  if test -n "$STRIP"; then
2416  ac_cv_prog_STRIP="$STRIP" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2425    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
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
2435STRIP=$ac_cv_prog_STRIP
2436if test -n "$STRIP"; then
2437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2438$as_echo "$STRIP" >&6; }
2439else
2440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2441$as_echo "no" >&6; }
2442fi
2443
2444
2445fi
2446if test -z "$ac_cv_prog_STRIP"; then
2447  ac_ct_STRIP=$STRIP
2448  # Extract the first word of "strip", so it can be a program name with args.
2449set dummy strip; 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 test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2453  $as_echo_n "(cached) " >&6
2454else
2455  if test -n "$ac_ct_STRIP"; then
2456  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2457else
2458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459for as_dir in $PATH
2460do
2461  IFS=$as_save_IFS
2462  test -z "$as_dir" && as_dir=.
2463    for ac_exec_ext in '' $ac_executable_extensions; do
2464  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2465    ac_cv_prog_ac_ct_STRIP="strip"
2466    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2467    break 2
2468  fi
2469done
2470  done
2471IFS=$as_save_IFS
2472
2473fi
2474fi
2475ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2476if test -n "$ac_ct_STRIP"; then
2477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2478$as_echo "$ac_ct_STRIP" >&6; }
2479else
2480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2481$as_echo "no" >&6; }
2482fi
2483
2484  if test "x$ac_ct_STRIP" = x; then
2485    STRIP=":"
2486  else
2487    case $cross_compiling:$ac_tool_warned in
2488yes:)
2489{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2490$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2491ac_tool_warned=yes ;;
2492esac
2493    STRIP=$ac_ct_STRIP
2494  fi
2495else
2496  STRIP="$ac_cv_prog_STRIP"
2497fi
2498
2499fi
2500INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2501
2502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2503$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2504if test -z "$MKDIR_P"; then
2505  if test "${ac_cv_path_mkdir+set}" = set; then :
2506  $as_echo_n "(cached) " >&6
2507else
2508  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2510do
2511  IFS=$as_save_IFS
2512  test -z "$as_dir" && as_dir=.
2513    for ac_prog in mkdir gmkdir; do
2514	 for ac_exec_ext in '' $ac_executable_extensions; do
2515	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2516	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2517	     'mkdir (GNU coreutils) '* | \
2518	     'mkdir (coreutils) '* | \
2519	     'mkdir (fileutils) '4.1*)
2520	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2521	       break 3;;
2522	   esac
2523	 done
2524       done
2525  done
2526IFS=$as_save_IFS
2527
2528fi
2529
2530  test -d ./--version && rmdir ./--version
2531  if test "${ac_cv_path_mkdir+set}" = set; then
2532    MKDIR_P="$ac_cv_path_mkdir -p"
2533  else
2534    # As a last resort, use the slow shell script.  Don't cache a
2535    # value for MKDIR_P within a source directory, because that will
2536    # break other packages using the cache if that directory is
2537    # removed, or if the value is a relative name.
2538    MKDIR_P="$ac_install_sh -d"
2539  fi
2540fi
2541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2542$as_echo "$MKDIR_P" >&6; }
2543
2544mkdir_p="$MKDIR_P"
2545case $mkdir_p in
2546  [\\/$]* | ?:[\\/]*) ;;
2547  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2548esac
2549
2550for ac_prog in gawk mawk nawk awk
2551do
2552  # Extract the first word of "$ac_prog", so it can be a program name with args.
2553set dummy $ac_prog; ac_word=$2
2554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2555$as_echo_n "checking for $ac_word... " >&6; }
2556if test "${ac_cv_prog_AWK+set}" = set; then :
2557  $as_echo_n "(cached) " >&6
2558else
2559  if test -n "$AWK"; then
2560  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2561else
2562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563for as_dir in $PATH
2564do
2565  IFS=$as_save_IFS
2566  test -z "$as_dir" && as_dir=.
2567    for ac_exec_ext in '' $ac_executable_extensions; do
2568  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2569    ac_cv_prog_AWK="$ac_prog"
2570    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2571    break 2
2572  fi
2573done
2574  done
2575IFS=$as_save_IFS
2576
2577fi
2578fi
2579AWK=$ac_cv_prog_AWK
2580if test -n "$AWK"; then
2581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2582$as_echo "$AWK" >&6; }
2583else
2584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585$as_echo "no" >&6; }
2586fi
2587
2588
2589  test -n "$AWK" && break
2590done
2591
2592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2593$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2594set x ${MAKE-make}
2595ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2596if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2597  $as_echo_n "(cached) " >&6
2598else
2599  cat >conftest.make <<\_ACEOF
2600SHELL = /bin/sh
2601all:
2602	@echo '@@@%%%=$(MAKE)=@@@%%%'
2603_ACEOF
2604# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2605case `${MAKE-make} -f conftest.make 2>/dev/null` in
2606  *@@@%%%=?*=@@@%%%*)
2607    eval ac_cv_prog_make_${ac_make}_set=yes;;
2608  *)
2609    eval ac_cv_prog_make_${ac_make}_set=no;;
2610esac
2611rm -f conftest.make
2612fi
2613if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2615$as_echo "yes" >&6; }
2616  SET_MAKE=
2617else
2618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2619$as_echo "no" >&6; }
2620  SET_MAKE="MAKE=${MAKE-make}"
2621fi
2622
2623rm -rf .tst 2>/dev/null
2624mkdir .tst 2>/dev/null
2625if test -d .tst; then
2626  am__leading_dot=.
2627else
2628  am__leading_dot=_
2629fi
2630rmdir .tst 2>/dev/null
2631
2632if test "`cd $srcdir && pwd`" != "`pwd`"; then
2633  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2634  # is not polluted with repeated "-I."
2635  am__isrc=' -I$(srcdir)'
2636  # test to see if srcdir already configured
2637  if test -f $srcdir/config.status; then
2638    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2639  fi
2640fi
2641
2642# test whether we have cygpath
2643if test -z "$CYGPATH_W"; then
2644  if (cygpath --version) >/dev/null 2>/dev/null; then
2645    CYGPATH_W='cygpath -w'
2646  else
2647    CYGPATH_W=echo
2648  fi
2649fi
2650
2651
2652# Define the identity of the package.
2653 PACKAGE='xf86-input-keyboard'
2654 VERSION='1.6.0'
2655
2656
2657cat >>confdefs.h <<_ACEOF
2658#define PACKAGE "$PACKAGE"
2659_ACEOF
2660
2661
2662cat >>confdefs.h <<_ACEOF
2663#define VERSION "$VERSION"
2664_ACEOF
2665
2666# Some tools Automake needs.
2667
2668ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2669
2670
2671AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2672
2673
2674AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2675
2676
2677AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2678
2679
2680MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2681
2682# We need awk for the "check" target.  The system "awk" is bad on
2683# some platforms.
2684# Always define AMTAR for backward compatibility.
2685
2686AMTAR=${AMTAR-"${am_missing_run}tar"}
2687
2688am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2689
2690
2691
2692
2693
2694
2695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2696$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2697    # Check whether --enable-maintainer-mode was given.
2698if test "${enable_maintainer_mode+set}" = set; then :
2699  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2700else
2701  USE_MAINTAINER_MODE=no
2702fi
2703
2704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2705$as_echo "$USE_MAINTAINER_MODE" >&6; }
2706   if test $USE_MAINTAINER_MODE = yes; then
2707  MAINTAINER_MODE_TRUE=
2708  MAINTAINER_MODE_FALSE='#'
2709else
2710  MAINTAINER_MODE_TRUE='#'
2711  MAINTAINER_MODE_FALSE=
2712fi
2713
2714  MAINT=$MAINTAINER_MODE_TRUE
2715
2716
2717
2718# Initialize libtool
2719# Check whether --enable-static was given.
2720if test "${enable_static+set}" = set; then :
2721  enableval=$enable_static; p=${PACKAGE-default}
2722    case $enableval in
2723    yes) enable_static=yes ;;
2724    no) enable_static=no ;;
2725    *)
2726     enable_static=no
2727      # Look at the argument we got.  We use all the common list separators.
2728      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2729      for pkg in $enableval; do
2730	IFS="$lt_save_ifs"
2731	if test "X$pkg" = "X$p"; then
2732	  enable_static=yes
2733	fi
2734      done
2735      IFS="$lt_save_ifs"
2736      ;;
2737    esac
2738else
2739  enable_static=no
2740fi
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750case `pwd` in
2751  *\ * | *\	*)
2752    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2753$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2754esac
2755
2756
2757
2758macro_version='2.2.10'
2759macro_revision='1.3175'
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773ltmain="$ac_aux_dir/ltmain.sh"
2774
2775# Make sure we can run config.sub.
2776$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2777  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2778
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2780$as_echo_n "checking build system type... " >&6; }
2781if test "${ac_cv_build+set}" = set; then :
2782  $as_echo_n "(cached) " >&6
2783else
2784  ac_build_alias=$build_alias
2785test "x$ac_build_alias" = x &&
2786  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2787test "x$ac_build_alias" = x &&
2788  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2789ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2790  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2791
2792fi
2793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2794$as_echo "$ac_cv_build" >&6; }
2795case $ac_cv_build in
2796*-*-*) ;;
2797*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2798esac
2799build=$ac_cv_build
2800ac_save_IFS=$IFS; IFS='-'
2801set x $ac_cv_build
2802shift
2803build_cpu=$1
2804build_vendor=$2
2805shift; shift
2806# Remember, the first character of IFS is used to create $*,
2807# except with old shells:
2808build_os=$*
2809IFS=$ac_save_IFS
2810case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2811
2812
2813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2814$as_echo_n "checking host system type... " >&6; }
2815if test "${ac_cv_host+set}" = set; then :
2816  $as_echo_n "(cached) " >&6
2817else
2818  if test "x$host_alias" = x; then
2819  ac_cv_host=$ac_cv_build
2820else
2821  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2822    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2823fi
2824
2825fi
2826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2827$as_echo "$ac_cv_host" >&6; }
2828case $ac_cv_host in
2829*-*-*) ;;
2830*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2831esac
2832host=$ac_cv_host
2833ac_save_IFS=$IFS; IFS='-'
2834set x $ac_cv_host
2835shift
2836host_cpu=$1
2837host_vendor=$2
2838shift; shift
2839# Remember, the first character of IFS is used to create $*,
2840# except with old shells:
2841host_os=$*
2842IFS=$ac_save_IFS
2843case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2844
2845
2846# Backslashify metacharacters that are still active within
2847# double-quoted strings.
2848sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2849
2850# Same as above, but do not quote variable references.
2851double_quote_subst='s/\(["`\\]\)/\\\1/g'
2852
2853# Sed substitution to delay expansion of an escaped shell variable in a
2854# double_quote_subst'ed string.
2855delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2856
2857# Sed substitution to delay expansion of an escaped single quote.
2858delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2859
2860# Sed substitution to avoid accidental globbing in evaled expressions
2861no_glob_subst='s/\*/\\\*/g'
2862
2863ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2864ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2865ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2866
2867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2868$as_echo_n "checking how to print strings... " >&6; }
2869# Test print first, because it will be a builtin if present.
2870if test "X`print -r -- -n 2>/dev/null`" = X-n && \
2871   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2872  ECHO='print -r --'
2873elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2874  ECHO='printf %s\n'
2875else
2876  # Use this function as a fallback that always works.
2877  func_fallback_echo ()
2878  {
2879    eval 'cat <<_LTECHO_EOF
2880$1
2881_LTECHO_EOF'
2882  }
2883  ECHO='func_fallback_echo'
2884fi
2885
2886# func_echo_all arg...
2887# Invoke $ECHO with all args, space-separated.
2888func_echo_all ()
2889{
2890    $ECHO ""
2891}
2892
2893case "$ECHO" in
2894  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2895$as_echo "printf" >&6; } ;;
2896  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2897$as_echo "print -r" >&6; } ;;
2898  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2899$as_echo "cat" >&6; } ;;
2900esac
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915DEPDIR="${am__leading_dot}deps"
2916
2917ac_config_commands="$ac_config_commands depfiles"
2918
2919
2920am_make=${MAKE-make}
2921cat > confinc << 'END'
2922am__doit:
2923	@echo this is the am__doit target
2924.PHONY: am__doit
2925END
2926# If we don't find an include directive, just comment out the code.
2927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2928$as_echo_n "checking for style of include used by $am_make... " >&6; }
2929am__include="#"
2930am__quote=
2931_am_result=none
2932# First try GNU make style include.
2933echo "include confinc" > confmf
2934# Ignore all kinds of additional output from `make'.
2935case `$am_make -s -f confmf 2> /dev/null` in #(
2936*the\ am__doit\ target*)
2937  am__include=include
2938  am__quote=
2939  _am_result=GNU
2940  ;;
2941esac
2942# Now try BSD make style include.
2943if test "$am__include" = "#"; then
2944   echo '.include "confinc"' > confmf
2945   case `$am_make -s -f confmf 2> /dev/null` in #(
2946   *the\ am__doit\ target*)
2947     am__include=.include
2948     am__quote="\""
2949     _am_result=BSD
2950     ;;
2951   esac
2952fi
2953
2954
2955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2956$as_echo "$_am_result" >&6; }
2957rm -f confinc confmf
2958
2959# Check whether --enable-dependency-tracking was given.
2960if test "${enable_dependency_tracking+set}" = set; then :
2961  enableval=$enable_dependency_tracking;
2962fi
2963
2964if test "x$enable_dependency_tracking" != xno; then
2965  am_depcomp="$ac_aux_dir/depcomp"
2966  AMDEPBACKSLASH='\'
2967fi
2968 if test "x$enable_dependency_tracking" != xno; then
2969  AMDEP_TRUE=
2970  AMDEP_FALSE='#'
2971else
2972  AMDEP_TRUE='#'
2973  AMDEP_FALSE=
2974fi
2975
2976
2977ac_ext=c
2978ac_cpp='$CPP $CPPFLAGS'
2979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2981ac_compiler_gnu=$ac_cv_c_compiler_gnu
2982if test -n "$ac_tool_prefix"; then
2983  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2984set dummy ${ac_tool_prefix}gcc; ac_word=$2
2985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2986$as_echo_n "checking for $ac_word... " >&6; }
2987if test "${ac_cv_prog_CC+set}" = set; then :
2988  $as_echo_n "(cached) " >&6
2989else
2990  if test -n "$CC"; then
2991  ac_cv_prog_CC="$CC" # Let the user override the test.
2992else
2993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994for as_dir in $PATH
2995do
2996  IFS=$as_save_IFS
2997  test -z "$as_dir" && as_dir=.
2998    for ac_exec_ext in '' $ac_executable_extensions; do
2999  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3000    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3001    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002    break 2
3003  fi
3004done
3005  done
3006IFS=$as_save_IFS
3007
3008fi
3009fi
3010CC=$ac_cv_prog_CC
3011if test -n "$CC"; then
3012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3013$as_echo "$CC" >&6; }
3014else
3015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016$as_echo "no" >&6; }
3017fi
3018
3019
3020fi
3021if test -z "$ac_cv_prog_CC"; then
3022  ac_ct_CC=$CC
3023  # Extract the first word of "gcc", so it can be a program name with args.
3024set dummy gcc; ac_word=$2
3025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026$as_echo_n "checking for $ac_word... " >&6; }
3027if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3028  $as_echo_n "(cached) " >&6
3029else
3030  if test -n "$ac_ct_CC"; then
3031  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3032else
3033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034for as_dir in $PATH
3035do
3036  IFS=$as_save_IFS
3037  test -z "$as_dir" && as_dir=.
3038    for ac_exec_ext in '' $ac_executable_extensions; do
3039  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3040    ac_cv_prog_ac_ct_CC="gcc"
3041    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3042    break 2
3043  fi
3044done
3045  done
3046IFS=$as_save_IFS
3047
3048fi
3049fi
3050ac_ct_CC=$ac_cv_prog_ac_ct_CC
3051if test -n "$ac_ct_CC"; then
3052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3053$as_echo "$ac_ct_CC" >&6; }
3054else
3055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056$as_echo "no" >&6; }
3057fi
3058
3059  if test "x$ac_ct_CC" = x; then
3060    CC=""
3061  else
3062    case $cross_compiling:$ac_tool_warned in
3063yes:)
3064{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3065$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3066ac_tool_warned=yes ;;
3067esac
3068    CC=$ac_ct_CC
3069  fi
3070else
3071  CC="$ac_cv_prog_CC"
3072fi
3073
3074if test -z "$CC"; then
3075          if test -n "$ac_tool_prefix"; then
3076    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3077set dummy ${ac_tool_prefix}cc; ac_word=$2
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079$as_echo_n "checking for $ac_word... " >&6; }
3080if test "${ac_cv_prog_CC+set}" = set; then :
3081  $as_echo_n "(cached) " >&6
3082else
3083  if test -n "$CC"; then
3084  ac_cv_prog_CC="$CC" # Let the user override the test.
3085else
3086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087for as_dir in $PATH
3088do
3089  IFS=$as_save_IFS
3090  test -z "$as_dir" && as_dir=.
3091    for ac_exec_ext in '' $ac_executable_extensions; do
3092  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3093    ac_cv_prog_CC="${ac_tool_prefix}cc"
3094    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3095    break 2
3096  fi
3097done
3098  done
3099IFS=$as_save_IFS
3100
3101fi
3102fi
3103CC=$ac_cv_prog_CC
3104if test -n "$CC"; then
3105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3106$as_echo "$CC" >&6; }
3107else
3108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109$as_echo "no" >&6; }
3110fi
3111
3112
3113  fi
3114fi
3115if test -z "$CC"; then
3116  # Extract the first word of "cc", so it can be a program name with args.
3117set dummy cc; ac_word=$2
3118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3119$as_echo_n "checking for $ac_word... " >&6; }
3120if test "${ac_cv_prog_CC+set}" = set; then :
3121  $as_echo_n "(cached) " >&6
3122else
3123  if test -n "$CC"; then
3124  ac_cv_prog_CC="$CC" # Let the user override the test.
3125else
3126  ac_prog_rejected=no
3127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128for as_dir in $PATH
3129do
3130  IFS=$as_save_IFS
3131  test -z "$as_dir" && as_dir=.
3132    for ac_exec_ext in '' $ac_executable_extensions; do
3133  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3134    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3135       ac_prog_rejected=yes
3136       continue
3137     fi
3138    ac_cv_prog_CC="cc"
3139    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3140    break 2
3141  fi
3142done
3143  done
3144IFS=$as_save_IFS
3145
3146if test $ac_prog_rejected = yes; then
3147  # We found a bogon in the path, so make sure we never use it.
3148  set dummy $ac_cv_prog_CC
3149  shift
3150  if test $# != 0; then
3151    # We chose a different compiler from the bogus one.
3152    # However, it has the same basename, so the bogon will be chosen
3153    # first if we set CC to just the basename; use the full file name.
3154    shift
3155    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3156  fi
3157fi
3158fi
3159fi
3160CC=$ac_cv_prog_CC
3161if test -n "$CC"; then
3162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3163$as_echo "$CC" >&6; }
3164else
3165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166$as_echo "no" >&6; }
3167fi
3168
3169
3170fi
3171if test -z "$CC"; then
3172  if test -n "$ac_tool_prefix"; then
3173  for ac_prog in cl.exe
3174  do
3175    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3176set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178$as_echo_n "checking for $ac_word... " >&6; }
3179if test "${ac_cv_prog_CC+set}" = set; then :
3180  $as_echo_n "(cached) " >&6
3181else
3182  if test -n "$CC"; then
3183  ac_cv_prog_CC="$CC" # Let the user override the test.
3184else
3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186for as_dir in $PATH
3187do
3188  IFS=$as_save_IFS
3189  test -z "$as_dir" && as_dir=.
3190    for ac_exec_ext in '' $ac_executable_extensions; do
3191  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3192    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3193    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194    break 2
3195  fi
3196done
3197  done
3198IFS=$as_save_IFS
3199
3200fi
3201fi
3202CC=$ac_cv_prog_CC
3203if test -n "$CC"; then
3204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3205$as_echo "$CC" >&6; }
3206else
3207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208$as_echo "no" >&6; }
3209fi
3210
3211
3212    test -n "$CC" && break
3213  done
3214fi
3215if test -z "$CC"; then
3216  ac_ct_CC=$CC
3217  for ac_prog in cl.exe
3218do
3219  # Extract the first word of "$ac_prog", so it can be a program name with args.
3220set dummy $ac_prog; ac_word=$2
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222$as_echo_n "checking for $ac_word... " >&6; }
3223if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3224  $as_echo_n "(cached) " >&6
3225else
3226  if test -n "$ac_ct_CC"; then
3227  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3228else
3229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230for as_dir in $PATH
3231do
3232  IFS=$as_save_IFS
3233  test -z "$as_dir" && as_dir=.
3234    for ac_exec_ext in '' $ac_executable_extensions; do
3235  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3236    ac_cv_prog_ac_ct_CC="$ac_prog"
3237    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238    break 2
3239  fi
3240done
3241  done
3242IFS=$as_save_IFS
3243
3244fi
3245fi
3246ac_ct_CC=$ac_cv_prog_ac_ct_CC
3247if test -n "$ac_ct_CC"; then
3248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3249$as_echo "$ac_ct_CC" >&6; }
3250else
3251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252$as_echo "no" >&6; }
3253fi
3254
3255
3256  test -n "$ac_ct_CC" && break
3257done
3258
3259  if test "x$ac_ct_CC" = x; then
3260    CC=""
3261  else
3262    case $cross_compiling:$ac_tool_warned in
3263yes:)
3264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3266ac_tool_warned=yes ;;
3267esac
3268    CC=$ac_ct_CC
3269  fi
3270fi
3271
3272fi
3273
3274
3275test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3277as_fn_error $? "no acceptable C compiler found in \$PATH
3278See \`config.log' for more details" "$LINENO" 5; }
3279
3280# Provide some information about the compiler.
3281$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3282set X $ac_compile
3283ac_compiler=$2
3284for ac_option in --version -v -V -qversion; do
3285  { { ac_try="$ac_compiler $ac_option >&5"
3286case "(($ac_try" in
3287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288  *) ac_try_echo=$ac_try;;
3289esac
3290eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3291$as_echo "$ac_try_echo"; } >&5
3292  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3293  ac_status=$?
3294  if test -s conftest.err; then
3295    sed '10a\
3296... rest of stderr output deleted ...
3297         10q' conftest.err >conftest.er1
3298    cat conftest.er1 >&5
3299  fi
3300  rm -f conftest.er1 conftest.err
3301  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3302  test $ac_status = 0; }
3303done
3304
3305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306/* end confdefs.h.  */
3307
3308int
3309main ()
3310{
3311
3312  ;
3313  return 0;
3314}
3315_ACEOF
3316ac_clean_files_save=$ac_clean_files
3317ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3318# Try to create an executable without -o first, disregard a.out.
3319# It will help us diagnose broken compilers, and finding out an intuition
3320# of exeext.
3321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3322$as_echo_n "checking whether the C compiler works... " >&6; }
3323ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3324
3325# The possible output files:
3326ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3327
3328ac_rmfiles=
3329for ac_file in $ac_files
3330do
3331  case $ac_file in
3332    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3333    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3334  esac
3335done
3336rm -f $ac_rmfiles
3337
3338if { { ac_try="$ac_link_default"
3339case "(($ac_try" in
3340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341  *) ac_try_echo=$ac_try;;
3342esac
3343eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3344$as_echo "$ac_try_echo"; } >&5
3345  (eval "$ac_link_default") 2>&5
3346  ac_status=$?
3347  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3348  test $ac_status = 0; }; then :
3349  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3350# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3351# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3352# so that the user can short-circuit this test for compilers unknown to
3353# Autoconf.
3354for ac_file in $ac_files ''
3355do
3356  test -f "$ac_file" || continue
3357  case $ac_file in
3358    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3359	;;
3360    [ab].out )
3361	# We found the default executable, but exeext='' is most
3362	# certainly right.
3363	break;;
3364    *.* )
3365	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3366	then :; else
3367	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3368	fi
3369	# We set ac_cv_exeext here because the later test for it is not
3370	# safe: cross compilers may not add the suffix if given an `-o'
3371	# argument, so we may need to know it at that point already.
3372	# Even if this section looks crufty: it has the advantage of
3373	# actually working.
3374	break;;
3375    * )
3376	break;;
3377  esac
3378done
3379test "$ac_cv_exeext" = no && ac_cv_exeext=
3380
3381else
3382  ac_file=''
3383fi
3384if test -z "$ac_file"; then :
3385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3386$as_echo "no" >&6; }
3387$as_echo "$as_me: failed program was:" >&5
3388sed 's/^/| /' conftest.$ac_ext >&5
3389
3390{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392as_fn_error 77 "C compiler cannot create executables
3393See \`config.log' for more details" "$LINENO" 5; }
3394else
3395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3396$as_echo "yes" >&6; }
3397fi
3398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3399$as_echo_n "checking for C compiler default output file name... " >&6; }
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3401$as_echo "$ac_file" >&6; }
3402ac_exeext=$ac_cv_exeext
3403
3404rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3405ac_clean_files=$ac_clean_files_save
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3407$as_echo_n "checking for suffix of executables... " >&6; }
3408if { { ac_try="$ac_link"
3409case "(($ac_try" in
3410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411  *) ac_try_echo=$ac_try;;
3412esac
3413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414$as_echo "$ac_try_echo"; } >&5
3415  (eval "$ac_link") 2>&5
3416  ac_status=$?
3417  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418  test $ac_status = 0; }; then :
3419  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3420# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3421# work properly (i.e., refer to `conftest.exe'), while it won't with
3422# `rm'.
3423for ac_file in conftest.exe conftest conftest.*; do
3424  test -f "$ac_file" || continue
3425  case $ac_file in
3426    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3427    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3428	  break;;
3429    * ) break;;
3430  esac
3431done
3432else
3433  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3434$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3435as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3436See \`config.log' for more details" "$LINENO" 5; }
3437fi
3438rm -f conftest conftest$ac_cv_exeext
3439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3440$as_echo "$ac_cv_exeext" >&6; }
3441
3442rm -f conftest.$ac_ext
3443EXEEXT=$ac_cv_exeext
3444ac_exeext=$EXEEXT
3445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446/* end confdefs.h.  */
3447#include <stdio.h>
3448int
3449main ()
3450{
3451FILE *f = fopen ("conftest.out", "w");
3452 return ferror (f) || fclose (f) != 0;
3453
3454  ;
3455  return 0;
3456}
3457_ACEOF
3458ac_clean_files="$ac_clean_files conftest.out"
3459# Check that the compiler produces executables we can run.  If not, either
3460# the compiler is broken, or we cross compile.
3461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3462$as_echo_n "checking whether we are cross compiling... " >&6; }
3463if test "$cross_compiling" != yes; then
3464  { { ac_try="$ac_link"
3465case "(($ac_try" in
3466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467  *) ac_try_echo=$ac_try;;
3468esac
3469eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3470$as_echo "$ac_try_echo"; } >&5
3471  (eval "$ac_link") 2>&5
3472  ac_status=$?
3473  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3474  test $ac_status = 0; }
3475  if { ac_try='./conftest$ac_cv_exeext'
3476  { { case "(($ac_try" in
3477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478  *) ac_try_echo=$ac_try;;
3479esac
3480eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3481$as_echo "$ac_try_echo"; } >&5
3482  (eval "$ac_try") 2>&5
3483  ac_status=$?
3484  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3485  test $ac_status = 0; }; }; then
3486    cross_compiling=no
3487  else
3488    if test "$cross_compiling" = maybe; then
3489	cross_compiling=yes
3490    else
3491	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3493as_fn_error $? "cannot run C compiled programs.
3494If you meant to cross compile, use \`--host'.
3495See \`config.log' for more details" "$LINENO" 5; }
3496    fi
3497  fi
3498fi
3499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3500$as_echo "$cross_compiling" >&6; }
3501
3502rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3503ac_clean_files=$ac_clean_files_save
3504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3505$as_echo_n "checking for suffix of object files... " >&6; }
3506if test "${ac_cv_objext+set}" = set; then :
3507  $as_echo_n "(cached) " >&6
3508else
3509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510/* end confdefs.h.  */
3511
3512int
3513main ()
3514{
3515
3516  ;
3517  return 0;
3518}
3519_ACEOF
3520rm -f conftest.o conftest.obj
3521if { { ac_try="$ac_compile"
3522case "(($ac_try" in
3523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524  *) ac_try_echo=$ac_try;;
3525esac
3526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3527$as_echo "$ac_try_echo"; } >&5
3528  (eval "$ac_compile") 2>&5
3529  ac_status=$?
3530  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3531  test $ac_status = 0; }; then :
3532  for ac_file in conftest.o conftest.obj conftest.*; do
3533  test -f "$ac_file" || continue;
3534  case $ac_file in
3535    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3536    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3537       break;;
3538  esac
3539done
3540else
3541  $as_echo "$as_me: failed program was:" >&5
3542sed 's/^/| /' conftest.$ac_ext >&5
3543
3544{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3545$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3546as_fn_error $? "cannot compute suffix of object files: cannot compile
3547See \`config.log' for more details" "$LINENO" 5; }
3548fi
3549rm -f conftest.$ac_cv_objext conftest.$ac_ext
3550fi
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3552$as_echo "$ac_cv_objext" >&6; }
3553OBJEXT=$ac_cv_objext
3554ac_objext=$OBJEXT
3555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3556$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3557if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3558  $as_echo_n "(cached) " >&6
3559else
3560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561/* end confdefs.h.  */
3562
3563int
3564main ()
3565{
3566#ifndef __GNUC__
3567       choke me
3568#endif
3569
3570  ;
3571  return 0;
3572}
3573_ACEOF
3574if ac_fn_c_try_compile "$LINENO"; then :
3575  ac_compiler_gnu=yes
3576else
3577  ac_compiler_gnu=no
3578fi
3579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3580ac_cv_c_compiler_gnu=$ac_compiler_gnu
3581
3582fi
3583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3584$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3585if test $ac_compiler_gnu = yes; then
3586  GCC=yes
3587else
3588  GCC=
3589fi
3590ac_test_CFLAGS=${CFLAGS+set}
3591ac_save_CFLAGS=$CFLAGS
3592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3593$as_echo_n "checking whether $CC accepts -g... " >&6; }
3594if test "${ac_cv_prog_cc_g+set}" = set; then :
3595  $as_echo_n "(cached) " >&6
3596else
3597  ac_save_c_werror_flag=$ac_c_werror_flag
3598   ac_c_werror_flag=yes
3599   ac_cv_prog_cc_g=no
3600   CFLAGS="-g"
3601   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602/* end confdefs.h.  */
3603
3604int
3605main ()
3606{
3607
3608  ;
3609  return 0;
3610}
3611_ACEOF
3612if ac_fn_c_try_compile "$LINENO"; then :
3613  ac_cv_prog_cc_g=yes
3614else
3615  CFLAGS=""
3616      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617/* end confdefs.h.  */
3618
3619int
3620main ()
3621{
3622
3623  ;
3624  return 0;
3625}
3626_ACEOF
3627if ac_fn_c_try_compile "$LINENO"; then :
3628
3629else
3630  ac_c_werror_flag=$ac_save_c_werror_flag
3631	 CFLAGS="-g"
3632	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633/* end confdefs.h.  */
3634
3635int
3636main ()
3637{
3638
3639  ;
3640  return 0;
3641}
3642_ACEOF
3643if ac_fn_c_try_compile "$LINENO"; then :
3644  ac_cv_prog_cc_g=yes
3645fi
3646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3647fi
3648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3649fi
3650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651   ac_c_werror_flag=$ac_save_c_werror_flag
3652fi
3653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3654$as_echo "$ac_cv_prog_cc_g" >&6; }
3655if test "$ac_test_CFLAGS" = set; then
3656  CFLAGS=$ac_save_CFLAGS
3657elif test $ac_cv_prog_cc_g = yes; then
3658  if test "$GCC" = yes; then
3659    CFLAGS="-g -O2"
3660  else
3661    CFLAGS="-g"
3662  fi
3663else
3664  if test "$GCC" = yes; then
3665    CFLAGS="-O2"
3666  else
3667    CFLAGS=
3668  fi
3669fi
3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3671$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3672if test "${ac_cv_prog_cc_c89+set}" = set; then :
3673  $as_echo_n "(cached) " >&6
3674else
3675  ac_cv_prog_cc_c89=no
3676ac_save_CC=$CC
3677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678/* end confdefs.h.  */
3679#include <stdarg.h>
3680#include <stdio.h>
3681#include <sys/types.h>
3682#include <sys/stat.h>
3683/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3684struct buf { int x; };
3685FILE * (*rcsopen) (struct buf *, struct stat *, int);
3686static char *e (p, i)
3687     char **p;
3688     int i;
3689{
3690  return p[i];
3691}
3692static char *f (char * (*g) (char **, int), char **p, ...)
3693{
3694  char *s;
3695  va_list v;
3696  va_start (v,p);
3697  s = g (p, va_arg (v,int));
3698  va_end (v);
3699  return s;
3700}
3701
3702/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3703   function prototypes and stuff, but not '\xHH' hex character constants.
3704   These don't provoke an error unfortunately, instead are silently treated
3705   as 'x'.  The following induces an error, until -std is added to get
3706   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3707   array size at least.  It's necessary to write '\x00'==0 to get something
3708   that's true only with -std.  */
3709int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3710
3711/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3712   inside strings and character constants.  */
3713#define FOO(x) 'x'
3714int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3715
3716int test (int i, double x);
3717struct s1 {int (*f) (int a);};
3718struct s2 {int (*f) (double a);};
3719int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3720int argc;
3721char **argv;
3722int
3723main ()
3724{
3725return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3726  ;
3727  return 0;
3728}
3729_ACEOF
3730for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3731	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3732do
3733  CC="$ac_save_CC $ac_arg"
3734  if ac_fn_c_try_compile "$LINENO"; then :
3735  ac_cv_prog_cc_c89=$ac_arg
3736fi
3737rm -f core conftest.err conftest.$ac_objext
3738  test "x$ac_cv_prog_cc_c89" != "xno" && break
3739done
3740rm -f conftest.$ac_ext
3741CC=$ac_save_CC
3742
3743fi
3744# AC_CACHE_VAL
3745case "x$ac_cv_prog_cc_c89" in
3746  x)
3747    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3748$as_echo "none needed" >&6; } ;;
3749  xno)
3750    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3751$as_echo "unsupported" >&6; } ;;
3752  *)
3753    CC="$CC $ac_cv_prog_cc_c89"
3754    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3755$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3756esac
3757if test "x$ac_cv_prog_cc_c89" != xno; then :
3758
3759fi
3760
3761ac_ext=c
3762ac_cpp='$CPP $CPPFLAGS'
3763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3765ac_compiler_gnu=$ac_cv_c_compiler_gnu
3766
3767depcc="$CC"   am_compiler_list=
3768
3769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3770$as_echo_n "checking dependency style of $depcc... " >&6; }
3771if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3772  $as_echo_n "(cached) " >&6
3773else
3774  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3775  # We make a subdir and do the tests there.  Otherwise we can end up
3776  # making bogus files that we don't know about and never remove.  For
3777  # instance it was reported that on HP-UX the gcc test will end up
3778  # making a dummy file named `D' -- because `-MD' means `put the output
3779  # in D'.
3780  mkdir conftest.dir
3781  # Copy depcomp to subdir because otherwise we won't find it if we're
3782  # using a relative directory.
3783  cp "$am_depcomp" conftest.dir
3784  cd conftest.dir
3785  # We will build objects and dependencies in a subdirectory because
3786  # it helps to detect inapplicable dependency modes.  For instance
3787  # both Tru64's cc and ICC support -MD to output dependencies as a
3788  # side effect of compilation, but ICC will put the dependencies in
3789  # the current directory while Tru64 will put them in the object
3790  # directory.
3791  mkdir sub
3792
3793  am_cv_CC_dependencies_compiler_type=none
3794  if test "$am_compiler_list" = ""; then
3795     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3796  fi
3797  am__universal=false
3798  case " $depcc " in #(
3799     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3800     esac
3801
3802  for depmode in $am_compiler_list; do
3803    # Setup a source with many dependencies, because some compilers
3804    # like to wrap large dependency lists on column 80 (with \), and
3805    # we should not choose a depcomp mode which is confused by this.
3806    #
3807    # We need to recreate these files for each test, as the compiler may
3808    # overwrite some of them when testing with obscure command lines.
3809    # This happens at least with the AIX C compiler.
3810    : > sub/conftest.c
3811    for i in 1 2 3 4 5 6; do
3812      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3813      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3814      # Solaris 8's {/usr,}/bin/sh.
3815      touch sub/conftst$i.h
3816    done
3817    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3818
3819    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3820    # mode.  It turns out that the SunPro C++ compiler does not properly
3821    # handle `-M -o', and we need to detect this.  Also, some Intel
3822    # versions had trouble with output in subdirs
3823    am__obj=sub/conftest.${OBJEXT-o}
3824    am__minus_obj="-o $am__obj"
3825    case $depmode in
3826    gcc)
3827      # This depmode causes a compiler race in universal mode.
3828      test "$am__universal" = false || continue
3829      ;;
3830    nosideeffect)
3831      # after this tag, mechanisms are not by side-effect, so they'll
3832      # only be used when explicitly requested
3833      if test "x$enable_dependency_tracking" = xyes; then
3834	continue
3835      else
3836	break
3837      fi
3838      ;;
3839    msvisualcpp | msvcmsys)
3840      # This compiler won't grok `-c -o', but also, the minuso test has
3841      # not run yet.  These depmodes are late enough in the game, and
3842      # so weak that their functioning should not be impacted.
3843      am__obj=conftest.${OBJEXT-o}
3844      am__minus_obj=
3845      ;;
3846    none) break ;;
3847    esac
3848    if depmode=$depmode \
3849       source=sub/conftest.c object=$am__obj \
3850       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3851       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3852         >/dev/null 2>conftest.err &&
3853       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3854       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3855       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3856       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3857      # icc doesn't choke on unknown options, it will just issue warnings
3858      # or remarks (even with -Werror).  So we grep stderr for any message
3859      # that says an option was ignored or not supported.
3860      # When given -MP, icc 7.0 and 7.1 complain thusly:
3861      #   icc: Command line warning: ignoring option '-M'; no argument required
3862      # The diagnosis changed in icc 8.0:
3863      #   icc: Command line remark: option '-MP' not supported
3864      if (grep 'ignoring option' conftest.err ||
3865          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3866        am_cv_CC_dependencies_compiler_type=$depmode
3867        break
3868      fi
3869    fi
3870  done
3871
3872  cd ..
3873  rm -rf conftest.dir
3874else
3875  am_cv_CC_dependencies_compiler_type=none
3876fi
3877
3878fi
3879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3880$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3881CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3882
3883 if
3884  test "x$enable_dependency_tracking" != xno \
3885  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3886  am__fastdepCC_TRUE=
3887  am__fastdepCC_FALSE='#'
3888else
3889  am__fastdepCC_TRUE='#'
3890  am__fastdepCC_FALSE=
3891fi
3892
3893
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3895$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3896if test "${ac_cv_path_SED+set}" = set; then :
3897  $as_echo_n "(cached) " >&6
3898else
3899            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3900     for ac_i in 1 2 3 4 5 6 7; do
3901       ac_script="$ac_script$as_nl$ac_script"
3902     done
3903     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3904     { ac_script=; unset ac_script;}
3905     if test -z "$SED"; then
3906  ac_path_SED_found=false
3907  # Loop through the user's path and test for each of PROGNAME-LIST
3908  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909for as_dir in $PATH
3910do
3911  IFS=$as_save_IFS
3912  test -z "$as_dir" && as_dir=.
3913    for ac_prog in sed gsed; do
3914    for ac_exec_ext in '' $ac_executable_extensions; do
3915      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3916      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3917# Check for GNU ac_path_SED and select it if it is found.
3918  # Check for GNU $ac_path_SED
3919case `"$ac_path_SED" --version 2>&1` in
3920*GNU*)
3921  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3922*)
3923  ac_count=0
3924  $as_echo_n 0123456789 >"conftest.in"
3925  while :
3926  do
3927    cat "conftest.in" "conftest.in" >"conftest.tmp"
3928    mv "conftest.tmp" "conftest.in"
3929    cp "conftest.in" "conftest.nl"
3930    $as_echo '' >> "conftest.nl"
3931    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3932    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3933    as_fn_arith $ac_count + 1 && ac_count=$as_val
3934    if test $ac_count -gt ${ac_path_SED_max-0}; then
3935      # Best one so far, save it but keep looking for a better one
3936      ac_cv_path_SED="$ac_path_SED"
3937      ac_path_SED_max=$ac_count
3938    fi
3939    # 10*(2^10) chars as input seems more than enough
3940    test $ac_count -gt 10 && break
3941  done
3942  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3943esac
3944
3945      $ac_path_SED_found && break 3
3946    done
3947  done
3948  done
3949IFS=$as_save_IFS
3950  if test -z "$ac_cv_path_SED"; then
3951    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3952  fi
3953else
3954  ac_cv_path_SED=$SED
3955fi
3956
3957fi
3958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3959$as_echo "$ac_cv_path_SED" >&6; }
3960 SED="$ac_cv_path_SED"
3961  rm -f conftest.sed
3962
3963test -z "$SED" && SED=sed
3964Xsed="$SED -e 1s/^X//"
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3977$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3978if test "${ac_cv_path_GREP+set}" = set; then :
3979  $as_echo_n "(cached) " >&6
3980else
3981  if test -z "$GREP"; then
3982  ac_path_GREP_found=false
3983  # Loop through the user's path and test for each of PROGNAME-LIST
3984  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3986do
3987  IFS=$as_save_IFS
3988  test -z "$as_dir" && as_dir=.
3989    for ac_prog in grep ggrep; do
3990    for ac_exec_ext in '' $ac_executable_extensions; do
3991      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3992      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3993# Check for GNU ac_path_GREP and select it if it is found.
3994  # Check for GNU $ac_path_GREP
3995case `"$ac_path_GREP" --version 2>&1` in
3996*GNU*)
3997  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3998*)
3999  ac_count=0
4000  $as_echo_n 0123456789 >"conftest.in"
4001  while :
4002  do
4003    cat "conftest.in" "conftest.in" >"conftest.tmp"
4004    mv "conftest.tmp" "conftest.in"
4005    cp "conftest.in" "conftest.nl"
4006    $as_echo 'GREP' >> "conftest.nl"
4007    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4008    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4009    as_fn_arith $ac_count + 1 && ac_count=$as_val
4010    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4011      # Best one so far, save it but keep looking for a better one
4012      ac_cv_path_GREP="$ac_path_GREP"
4013      ac_path_GREP_max=$ac_count
4014    fi
4015    # 10*(2^10) chars as input seems more than enough
4016    test $ac_count -gt 10 && break
4017  done
4018  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4019esac
4020
4021      $ac_path_GREP_found && break 3
4022    done
4023  done
4024  done
4025IFS=$as_save_IFS
4026  if test -z "$ac_cv_path_GREP"; then
4027    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4028  fi
4029else
4030  ac_cv_path_GREP=$GREP
4031fi
4032
4033fi
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4035$as_echo "$ac_cv_path_GREP" >&6; }
4036 GREP="$ac_cv_path_GREP"
4037
4038
4039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4040$as_echo_n "checking for egrep... " >&6; }
4041if test "${ac_cv_path_EGREP+set}" = set; then :
4042  $as_echo_n "(cached) " >&6
4043else
4044  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4045   then ac_cv_path_EGREP="$GREP -E"
4046   else
4047     if test -z "$EGREP"; then
4048  ac_path_EGREP_found=false
4049  # Loop through the user's path and test for each of PROGNAME-LIST
4050  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4052do
4053  IFS=$as_save_IFS
4054  test -z "$as_dir" && as_dir=.
4055    for ac_prog in egrep; do
4056    for ac_exec_ext in '' $ac_executable_extensions; do
4057      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4058      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4059# Check for GNU ac_path_EGREP and select it if it is found.
4060  # Check for GNU $ac_path_EGREP
4061case `"$ac_path_EGREP" --version 2>&1` in
4062*GNU*)
4063  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4064*)
4065  ac_count=0
4066  $as_echo_n 0123456789 >"conftest.in"
4067  while :
4068  do
4069    cat "conftest.in" "conftest.in" >"conftest.tmp"
4070    mv "conftest.tmp" "conftest.in"
4071    cp "conftest.in" "conftest.nl"
4072    $as_echo 'EGREP' >> "conftest.nl"
4073    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4074    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4075    as_fn_arith $ac_count + 1 && ac_count=$as_val
4076    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4077      # Best one so far, save it but keep looking for a better one
4078      ac_cv_path_EGREP="$ac_path_EGREP"
4079      ac_path_EGREP_max=$ac_count
4080    fi
4081    # 10*(2^10) chars as input seems more than enough
4082    test $ac_count -gt 10 && break
4083  done
4084  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4085esac
4086
4087      $ac_path_EGREP_found && break 3
4088    done
4089  done
4090  done
4091IFS=$as_save_IFS
4092  if test -z "$ac_cv_path_EGREP"; then
4093    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4094  fi
4095else
4096  ac_cv_path_EGREP=$EGREP
4097fi
4098
4099   fi
4100fi
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4102$as_echo "$ac_cv_path_EGREP" >&6; }
4103 EGREP="$ac_cv_path_EGREP"
4104
4105
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4107$as_echo_n "checking for fgrep... " >&6; }
4108if test "${ac_cv_path_FGREP+set}" = set; then :
4109  $as_echo_n "(cached) " >&6
4110else
4111  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4112   then ac_cv_path_FGREP="$GREP -F"
4113   else
4114     if test -z "$FGREP"; then
4115  ac_path_FGREP_found=false
4116  # Loop through the user's path and test for each of PROGNAME-LIST
4117  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4119do
4120  IFS=$as_save_IFS
4121  test -z "$as_dir" && as_dir=.
4122    for ac_prog in fgrep; do
4123    for ac_exec_ext in '' $ac_executable_extensions; do
4124      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4125      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4126# Check for GNU ac_path_FGREP and select it if it is found.
4127  # Check for GNU $ac_path_FGREP
4128case `"$ac_path_FGREP" --version 2>&1` in
4129*GNU*)
4130  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4131*)
4132  ac_count=0
4133  $as_echo_n 0123456789 >"conftest.in"
4134  while :
4135  do
4136    cat "conftest.in" "conftest.in" >"conftest.tmp"
4137    mv "conftest.tmp" "conftest.in"
4138    cp "conftest.in" "conftest.nl"
4139    $as_echo 'FGREP' >> "conftest.nl"
4140    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4141    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4142    as_fn_arith $ac_count + 1 && ac_count=$as_val
4143    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4144      # Best one so far, save it but keep looking for a better one
4145      ac_cv_path_FGREP="$ac_path_FGREP"
4146      ac_path_FGREP_max=$ac_count
4147    fi
4148    # 10*(2^10) chars as input seems more than enough
4149    test $ac_count -gt 10 && break
4150  done
4151  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4152esac
4153
4154      $ac_path_FGREP_found && break 3
4155    done
4156  done
4157  done
4158IFS=$as_save_IFS
4159  if test -z "$ac_cv_path_FGREP"; then
4160    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4161  fi
4162else
4163  ac_cv_path_FGREP=$FGREP
4164fi
4165
4166   fi
4167fi
4168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4169$as_echo "$ac_cv_path_FGREP" >&6; }
4170 FGREP="$ac_cv_path_FGREP"
4171
4172
4173test -z "$GREP" && GREP=grep
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193# Check whether --with-gnu-ld was given.
4194if test "${with_gnu_ld+set}" = set; then :
4195  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4196else
4197  with_gnu_ld=no
4198fi
4199
4200ac_prog=ld
4201if test "$GCC" = yes; then
4202  # Check if gcc -print-prog-name=ld gives a path.
4203  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4204$as_echo_n "checking for ld used by $CC... " >&6; }
4205  case $host in
4206  *-*-mingw*)
4207    # gcc leaves a trailing carriage return which upsets mingw
4208    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4209  *)
4210    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4211  esac
4212  case $ac_prog in
4213    # Accept absolute paths.
4214    [\\/]* | ?:[\\/]*)
4215      re_direlt='/[^/][^/]*/\.\./'
4216      # Canonicalize the pathname of ld
4217      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4218      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4219	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4220      done
4221      test -z "$LD" && LD="$ac_prog"
4222      ;;
4223  "")
4224    # If it fails, then pretend we aren't using GCC.
4225    ac_prog=ld
4226    ;;
4227  *)
4228    # If it is relative, then search for the first ld in PATH.
4229    with_gnu_ld=unknown
4230    ;;
4231  esac
4232elif test "$with_gnu_ld" = yes; then
4233  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4234$as_echo_n "checking for GNU ld... " >&6; }
4235else
4236  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4237$as_echo_n "checking for non-GNU ld... " >&6; }
4238fi
4239if test "${lt_cv_path_LD+set}" = set; then :
4240  $as_echo_n "(cached) " >&6
4241else
4242  if test -z "$LD"; then
4243  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4244  for ac_dir in $PATH; do
4245    IFS="$lt_save_ifs"
4246    test -z "$ac_dir" && ac_dir=.
4247    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4248      lt_cv_path_LD="$ac_dir/$ac_prog"
4249      # Check to see if the program is GNU ld.  I'd rather use --version,
4250      # but apparently some variants of GNU ld only accept -v.
4251      # Break only if it was the GNU/non-GNU ld that we prefer.
4252      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4253      *GNU* | *'with BFD'*)
4254	test "$with_gnu_ld" != no && break
4255	;;
4256      *)
4257	test "$with_gnu_ld" != yes && break
4258	;;
4259      esac
4260    fi
4261  done
4262  IFS="$lt_save_ifs"
4263else
4264  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4265fi
4266fi
4267
4268LD="$lt_cv_path_LD"
4269if test -n "$LD"; then
4270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4271$as_echo "$LD" >&6; }
4272else
4273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4274$as_echo "no" >&6; }
4275fi
4276test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4278$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4279if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4280  $as_echo_n "(cached) " >&6
4281else
4282  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4283case `$LD -v 2>&1 </dev/null` in
4284*GNU* | *'with BFD'*)
4285  lt_cv_prog_gnu_ld=yes
4286  ;;
4287*)
4288  lt_cv_prog_gnu_ld=no
4289  ;;
4290esac
4291fi
4292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4293$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4294with_gnu_ld=$lt_cv_prog_gnu_ld
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4305$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4306if test "${lt_cv_path_NM+set}" = set; then :
4307  $as_echo_n "(cached) " >&6
4308else
4309  if test -n "$NM"; then
4310  # Let the user override the test.
4311  lt_cv_path_NM="$NM"
4312else
4313  lt_nm_to_check="${ac_tool_prefix}nm"
4314  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4315    lt_nm_to_check="$lt_nm_to_check nm"
4316  fi
4317  for lt_tmp_nm in $lt_nm_to_check; do
4318    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4319    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4320      IFS="$lt_save_ifs"
4321      test -z "$ac_dir" && ac_dir=.
4322      tmp_nm="$ac_dir/$lt_tmp_nm"
4323      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4324	# Check to see if the nm accepts a BSD-compat flag.
4325	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4326	#   nm: unknown option "B" ignored
4327	# Tru64's nm complains that /dev/null is an invalid object file
4328	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4329	*/dev/null* | *'Invalid file or object type'*)
4330	  lt_cv_path_NM="$tmp_nm -B"
4331	  break
4332	  ;;
4333	*)
4334	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4335	  */dev/null*)
4336	    lt_cv_path_NM="$tmp_nm -p"
4337	    break
4338	    ;;
4339	  *)
4340	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4341	    continue # so that we can try to find one that supports BSD flags
4342	    ;;
4343	  esac
4344	  ;;
4345	esac
4346      fi
4347    done
4348    IFS="$lt_save_ifs"
4349  done
4350  : ${lt_cv_path_NM=no}
4351fi
4352fi
4353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4354$as_echo "$lt_cv_path_NM" >&6; }
4355if test "$lt_cv_path_NM" != "no"; then
4356  NM="$lt_cv_path_NM"
4357else
4358  # Didn't find any BSD compatible name lister, look for dumpbin.
4359  if test -n "$DUMPBIN"; then :
4360    # Let the user override the test.
4361  else
4362    if test -n "$ac_tool_prefix"; then
4363  for ac_prog in dumpbin "link -dump"
4364  do
4365    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4366set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4368$as_echo_n "checking for $ac_word... " >&6; }
4369if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4370  $as_echo_n "(cached) " >&6
4371else
4372  if test -n "$DUMPBIN"; then
4373  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4374else
4375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376for as_dir in $PATH
4377do
4378  IFS=$as_save_IFS
4379  test -z "$as_dir" && as_dir=.
4380    for ac_exec_ext in '' $ac_executable_extensions; do
4381  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4382    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4383    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4384    break 2
4385  fi
4386done
4387  done
4388IFS=$as_save_IFS
4389
4390fi
4391fi
4392DUMPBIN=$ac_cv_prog_DUMPBIN
4393if test -n "$DUMPBIN"; then
4394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4395$as_echo "$DUMPBIN" >&6; }
4396else
4397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398$as_echo "no" >&6; }
4399fi
4400
4401
4402    test -n "$DUMPBIN" && break
4403  done
4404fi
4405if test -z "$DUMPBIN"; then
4406  ac_ct_DUMPBIN=$DUMPBIN
4407  for ac_prog in dumpbin "link -dump"
4408do
4409  # Extract the first word of "$ac_prog", so it can be a program name with args.
4410set dummy $ac_prog; ac_word=$2
4411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4412$as_echo_n "checking for $ac_word... " >&6; }
4413if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4414  $as_echo_n "(cached) " >&6
4415else
4416  if test -n "$ac_ct_DUMPBIN"; then
4417  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4418else
4419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420for as_dir in $PATH
4421do
4422  IFS=$as_save_IFS
4423  test -z "$as_dir" && as_dir=.
4424    for ac_exec_ext in '' $ac_executable_extensions; do
4425  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4426    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4427    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4428    break 2
4429  fi
4430done
4431  done
4432IFS=$as_save_IFS
4433
4434fi
4435fi
4436ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4437if test -n "$ac_ct_DUMPBIN"; then
4438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4439$as_echo "$ac_ct_DUMPBIN" >&6; }
4440else
4441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4442$as_echo "no" >&6; }
4443fi
4444
4445
4446  test -n "$ac_ct_DUMPBIN" && break
4447done
4448
4449  if test "x$ac_ct_DUMPBIN" = x; then
4450    DUMPBIN=":"
4451  else
4452    case $cross_compiling:$ac_tool_warned in
4453yes:)
4454{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4456ac_tool_warned=yes ;;
4457esac
4458    DUMPBIN=$ac_ct_DUMPBIN
4459  fi
4460fi
4461
4462    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4463    *COFF*)
4464      DUMPBIN="$DUMPBIN -symbols"
4465      ;;
4466    *)
4467      DUMPBIN=:
4468      ;;
4469    esac
4470  fi
4471
4472  if test "$DUMPBIN" != ":"; then
4473    NM="$DUMPBIN"
4474  fi
4475fi
4476test -z "$NM" && NM=nm
4477
4478
4479
4480
4481
4482
4483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4484$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4485if test "${lt_cv_nm_interface+set}" = set; then :
4486  $as_echo_n "(cached) " >&6
4487else
4488  lt_cv_nm_interface="BSD nm"
4489  echo "int some_variable = 0;" > conftest.$ac_ext
4490  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4491  (eval "$ac_compile" 2>conftest.err)
4492  cat conftest.err >&5
4493  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4494  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4495  cat conftest.err >&5
4496  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4497  cat conftest.out >&5
4498  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4499    lt_cv_nm_interface="MS dumpbin"
4500  fi
4501  rm -f conftest*
4502fi
4503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4504$as_echo "$lt_cv_nm_interface" >&6; }
4505
4506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4507$as_echo_n "checking whether ln -s works... " >&6; }
4508LN_S=$as_ln_s
4509if test "$LN_S" = "ln -s"; then
4510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4511$as_echo "yes" >&6; }
4512else
4513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4514$as_echo "no, using $LN_S" >&6; }
4515fi
4516
4517# find the maximum length of command line arguments
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4519$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4520if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4521  $as_echo_n "(cached) " >&6
4522else
4523    i=0
4524  teststring="ABCD"
4525
4526  case $build_os in
4527  msdosdjgpp*)
4528    # On DJGPP, this test can blow up pretty badly due to problems in libc
4529    # (any single argument exceeding 2000 bytes causes a buffer overrun
4530    # during glob expansion).  Even if it were fixed, the result of this
4531    # check would be larger than it should be.
4532    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4533    ;;
4534
4535  gnu*)
4536    # Under GNU Hurd, this test is not required because there is
4537    # no limit to the length of command line arguments.
4538    # Libtool will interpret -1 as no limit whatsoever
4539    lt_cv_sys_max_cmd_len=-1;
4540    ;;
4541
4542  cygwin* | mingw* | cegcc*)
4543    # On Win9x/ME, this test blows up -- it succeeds, but takes
4544    # about 5 minutes as the teststring grows exponentially.
4545    # Worse, since 9x/ME are not pre-emptively multitasking,
4546    # you end up with a "frozen" computer, even though with patience
4547    # the test eventually succeeds (with a max line length of 256k).
4548    # Instead, let's just punt: use the minimum linelength reported by
4549    # all of the supported platforms: 8192 (on NT/2K/XP).
4550    lt_cv_sys_max_cmd_len=8192;
4551    ;;
4552
4553  mint*)
4554    # On MiNT this can take a long time and run out of memory.
4555    lt_cv_sys_max_cmd_len=8192;
4556    ;;
4557
4558  amigaos*)
4559    # On AmigaOS with pdksh, this test takes hours, literally.
4560    # So we just punt and use a minimum line length of 8192.
4561    lt_cv_sys_max_cmd_len=8192;
4562    ;;
4563
4564  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4565    # This has been around since 386BSD, at least.  Likely further.
4566    if test -x /sbin/sysctl; then
4567      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4568    elif test -x /usr/sbin/sysctl; then
4569      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4570    else
4571      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4572    fi
4573    # And add a safety zone
4574    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4575    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4576    ;;
4577
4578  interix*)
4579    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4580    lt_cv_sys_max_cmd_len=196608
4581    ;;
4582
4583  osf*)
4584    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4585    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4586    # nice to cause kernel panics so lets avoid the loop below.
4587    # First set a reasonable default.
4588    lt_cv_sys_max_cmd_len=16384
4589    #
4590    if test -x /sbin/sysconfig; then
4591      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4592        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4593      esac
4594    fi
4595    ;;
4596  sco3.2v5*)
4597    lt_cv_sys_max_cmd_len=102400
4598    ;;
4599  sysv5* | sco5v6* | sysv4.2uw2*)
4600    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4601    if test -n "$kargmax"; then
4602      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4603    else
4604      lt_cv_sys_max_cmd_len=32768
4605    fi
4606    ;;
4607  *)
4608    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4609    if test -n "$lt_cv_sys_max_cmd_len"; then
4610      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4611      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4612    else
4613      # Make teststring a little bigger before we do anything with it.
4614      # a 1K string should be a reasonable start.
4615      for i in 1 2 3 4 5 6 7 8 ; do
4616        teststring=$teststring$teststring
4617      done
4618      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4619      # If test is not a shell built-in, we'll probably end up computing a
4620      # maximum length that is only half of the actual maximum length, but
4621      # we can't tell.
4622      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4623	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4624	      test $i != 17 # 1/2 MB should be enough
4625      do
4626        i=`expr $i + 1`
4627        teststring=$teststring$teststring
4628      done
4629      # Only check the string length outside the loop.
4630      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4631      teststring=
4632      # Add a significant safety factor because C++ compilers can tack on
4633      # massive amounts of additional arguments before passing them to the
4634      # linker.  It appears as though 1/2 is a usable value.
4635      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4636    fi
4637    ;;
4638  esac
4639
4640fi
4641
4642if test -n $lt_cv_sys_max_cmd_len ; then
4643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4644$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4645else
4646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4647$as_echo "none" >&6; }
4648fi
4649max_cmd_len=$lt_cv_sys_max_cmd_len
4650
4651
4652
4653
4654
4655
4656: ${CP="cp -f"}
4657: ${MV="mv -f"}
4658: ${RM="rm -f"}
4659
4660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4661$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4662# Try some XSI features
4663xsi_shell=no
4664( _lt_dummy="a/b/c"
4665  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4666      = c,a/b,, \
4667    && eval 'test $(( 1 + 1 )) -eq 2 \
4668    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4669  && xsi_shell=yes
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4671$as_echo "$xsi_shell" >&6; }
4672
4673
4674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4675$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4676lt_shell_append=no
4677( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4678    >/dev/null 2>&1 \
4679  && lt_shell_append=yes
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4681$as_echo "$lt_shell_append" >&6; }
4682
4683
4684if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4685  lt_unset=unset
4686else
4687  lt_unset=false
4688fi
4689
4690
4691
4692
4693
4694# test EBCDIC or ASCII
4695case `echo X|tr X '\101'` in
4696 A) # ASCII based system
4697    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4698  lt_SP2NL='tr \040 \012'
4699  lt_NL2SP='tr \015\012 \040\040'
4700  ;;
4701 *) # EBCDIC based system
4702  lt_SP2NL='tr \100 \n'
4703  lt_NL2SP='tr \r\n \100\100'
4704  ;;
4705esac
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4716$as_echo_n "checking for $LD option to reload object files... " >&6; }
4717if test "${lt_cv_ld_reload_flag+set}" = set; then :
4718  $as_echo_n "(cached) " >&6
4719else
4720  lt_cv_ld_reload_flag='-r'
4721fi
4722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4723$as_echo "$lt_cv_ld_reload_flag" >&6; }
4724reload_flag=$lt_cv_ld_reload_flag
4725case $reload_flag in
4726"" | " "*) ;;
4727*) reload_flag=" $reload_flag" ;;
4728esac
4729reload_cmds='$LD$reload_flag -o $output$reload_objs'
4730case $host_os in
4731  darwin*)
4732    if test "$GCC" = yes; then
4733      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4734    else
4735      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4736    fi
4737    ;;
4738esac
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748if test -n "$ac_tool_prefix"; then
4749  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4750set dummy ${ac_tool_prefix}objdump; ac_word=$2
4751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4752$as_echo_n "checking for $ac_word... " >&6; }
4753if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4754  $as_echo_n "(cached) " >&6
4755else
4756  if test -n "$OBJDUMP"; then
4757  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4758else
4759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760for as_dir in $PATH
4761do
4762  IFS=$as_save_IFS
4763  test -z "$as_dir" && as_dir=.
4764    for ac_exec_ext in '' $ac_executable_extensions; do
4765  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4766    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4767    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4768    break 2
4769  fi
4770done
4771  done
4772IFS=$as_save_IFS
4773
4774fi
4775fi
4776OBJDUMP=$ac_cv_prog_OBJDUMP
4777if test -n "$OBJDUMP"; then
4778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4779$as_echo "$OBJDUMP" >&6; }
4780else
4781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4782$as_echo "no" >&6; }
4783fi
4784
4785
4786fi
4787if test -z "$ac_cv_prog_OBJDUMP"; then
4788  ac_ct_OBJDUMP=$OBJDUMP
4789  # Extract the first word of "objdump", so it can be a program name with args.
4790set dummy objdump; ac_word=$2
4791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4792$as_echo_n "checking for $ac_word... " >&6; }
4793if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4794  $as_echo_n "(cached) " >&6
4795else
4796  if test -n "$ac_ct_OBJDUMP"; then
4797  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4798else
4799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800for as_dir in $PATH
4801do
4802  IFS=$as_save_IFS
4803  test -z "$as_dir" && as_dir=.
4804    for ac_exec_ext in '' $ac_executable_extensions; do
4805  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4806    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4807    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4808    break 2
4809  fi
4810done
4811  done
4812IFS=$as_save_IFS
4813
4814fi
4815fi
4816ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4817if test -n "$ac_ct_OBJDUMP"; then
4818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4819$as_echo "$ac_ct_OBJDUMP" >&6; }
4820else
4821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4822$as_echo "no" >&6; }
4823fi
4824
4825  if test "x$ac_ct_OBJDUMP" = x; then
4826    OBJDUMP="false"
4827  else
4828    case $cross_compiling:$ac_tool_warned in
4829yes:)
4830{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4831$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4832ac_tool_warned=yes ;;
4833esac
4834    OBJDUMP=$ac_ct_OBJDUMP
4835  fi
4836else
4837  OBJDUMP="$ac_cv_prog_OBJDUMP"
4838fi
4839
4840test -z "$OBJDUMP" && OBJDUMP=objdump
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4851$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4852if test "${lt_cv_deplibs_check_method+set}" = set; then :
4853  $as_echo_n "(cached) " >&6
4854else
4855  lt_cv_file_magic_cmd='$MAGIC_CMD'
4856lt_cv_file_magic_test_file=
4857lt_cv_deplibs_check_method='unknown'
4858# Need to set the preceding variable on all platforms that support
4859# interlibrary dependencies.
4860# 'none' -- dependencies not supported.
4861# `unknown' -- same as none, but documents that we really don't know.
4862# 'pass_all' -- all dependencies passed with no checks.
4863# 'test_compile' -- check by making test program.
4864# 'file_magic [[regex]]' -- check by looking for files in library path
4865# which responds to the $file_magic_cmd with a given extended regex.
4866# If you have `file' or equivalent on your system and you're not sure
4867# whether `pass_all' will *always* work, you probably want this one.
4868
4869case $host_os in
4870aix[4-9]*)
4871  lt_cv_deplibs_check_method=pass_all
4872  ;;
4873
4874beos*)
4875  lt_cv_deplibs_check_method=pass_all
4876  ;;
4877
4878bsdi[45]*)
4879  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4880  lt_cv_file_magic_cmd='/usr/bin/file -L'
4881  lt_cv_file_magic_test_file=/shlib/libc.so
4882  ;;
4883
4884cygwin*)
4885  # func_win32_libid is a shell function defined in ltmain.sh
4886  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4887  lt_cv_file_magic_cmd='func_win32_libid'
4888  ;;
4889
4890mingw* | pw32*)
4891  # Base MSYS/MinGW do not provide the 'file' command needed by
4892  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4893  # unless we find 'file', for example because we are cross-compiling.
4894  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4895  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4896    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4897    lt_cv_file_magic_cmd='func_win32_libid'
4898  else
4899    # Keep this pattern in sync with the one in func_win32_libid.
4900    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4901    lt_cv_file_magic_cmd='$OBJDUMP -f'
4902  fi
4903  ;;
4904
4905cegcc*)
4906  # use the weaker test based on 'objdump'. See mingw*.
4907  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4908  lt_cv_file_magic_cmd='$OBJDUMP -f'
4909  ;;
4910
4911darwin* | rhapsody*)
4912  lt_cv_deplibs_check_method=pass_all
4913  ;;
4914
4915freebsd* | dragonfly*)
4916  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4917    case $host_cpu in
4918    i*86 )
4919      # Not sure whether the presence of OpenBSD here was a mistake.
4920      # Let's accept both of them until this is cleared up.
4921      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4922      lt_cv_file_magic_cmd=/usr/bin/file
4923      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4924      ;;
4925    esac
4926  else
4927    lt_cv_deplibs_check_method=pass_all
4928  fi
4929  ;;
4930
4931gnu*)
4932  lt_cv_deplibs_check_method=pass_all
4933  ;;
4934
4935haiku*)
4936  lt_cv_deplibs_check_method=pass_all
4937  ;;
4938
4939hpux10.20* | hpux11*)
4940  lt_cv_file_magic_cmd=/usr/bin/file
4941  case $host_cpu in
4942  ia64*)
4943    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4944    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4945    ;;
4946  hppa*64*)
4947    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]'
4948    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4949    ;;
4950  *)
4951    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4952    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4953    ;;
4954  esac
4955  ;;
4956
4957interix[3-9]*)
4958  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4959  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4960  ;;
4961
4962irix5* | irix6* | nonstopux*)
4963  case $LD in
4964  *-32|*"-32 ") libmagic=32-bit;;
4965  *-n32|*"-n32 ") libmagic=N32;;
4966  *-64|*"-64 ") libmagic=64-bit;;
4967  *) libmagic=never-match;;
4968  esac
4969  lt_cv_deplibs_check_method=pass_all
4970  ;;
4971
4972# This must be Linux ELF.
4973linux* | k*bsd*-gnu | kopensolaris*-gnu)
4974  lt_cv_deplibs_check_method=pass_all
4975  ;;
4976
4977netbsd*)
4978  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4979    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4980  else
4981    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4982  fi
4983  ;;
4984
4985newos6*)
4986  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4987  lt_cv_file_magic_cmd=/usr/bin/file
4988  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4989  ;;
4990
4991*nto* | *qnx*)
4992  lt_cv_deplibs_check_method=pass_all
4993  ;;
4994
4995openbsd*)
4996  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4997    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4998  else
4999    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5000  fi
5001  ;;
5002
5003osf3* | osf4* | osf5*)
5004  lt_cv_deplibs_check_method=pass_all
5005  ;;
5006
5007rdos*)
5008  lt_cv_deplibs_check_method=pass_all
5009  ;;
5010
5011solaris*)
5012  lt_cv_deplibs_check_method=pass_all
5013  ;;
5014
5015sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5016  lt_cv_deplibs_check_method=pass_all
5017  ;;
5018
5019sysv4 | sysv4.3*)
5020  case $host_vendor in
5021  motorola)
5022    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]'
5023    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5024    ;;
5025  ncr)
5026    lt_cv_deplibs_check_method=pass_all
5027    ;;
5028  sequent)
5029    lt_cv_file_magic_cmd='/bin/file'
5030    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5031    ;;
5032  sni)
5033    lt_cv_file_magic_cmd='/bin/file'
5034    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5035    lt_cv_file_magic_test_file=/lib/libc.so
5036    ;;
5037  siemens)
5038    lt_cv_deplibs_check_method=pass_all
5039    ;;
5040  pc)
5041    lt_cv_deplibs_check_method=pass_all
5042    ;;
5043  esac
5044  ;;
5045
5046tpf*)
5047  lt_cv_deplibs_check_method=pass_all
5048  ;;
5049esac
5050
5051fi
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5053$as_echo "$lt_cv_deplibs_check_method" >&6; }
5054file_magic_cmd=$lt_cv_file_magic_cmd
5055deplibs_check_method=$lt_cv_deplibs_check_method
5056test -z "$deplibs_check_method" && deplibs_check_method=unknown
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069if test -n "$ac_tool_prefix"; then
5070  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5071set dummy ${ac_tool_prefix}ar; ac_word=$2
5072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073$as_echo_n "checking for $ac_word... " >&6; }
5074if test "${ac_cv_prog_AR+set}" = set; then :
5075  $as_echo_n "(cached) " >&6
5076else
5077  if test -n "$AR"; then
5078  ac_cv_prog_AR="$AR" # Let the user override the test.
5079else
5080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081for as_dir in $PATH
5082do
5083  IFS=$as_save_IFS
5084  test -z "$as_dir" && as_dir=.
5085    for ac_exec_ext in '' $ac_executable_extensions; do
5086  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5087    ac_cv_prog_AR="${ac_tool_prefix}ar"
5088    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5089    break 2
5090  fi
5091done
5092  done
5093IFS=$as_save_IFS
5094
5095fi
5096fi
5097AR=$ac_cv_prog_AR
5098if test -n "$AR"; then
5099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5100$as_echo "$AR" >&6; }
5101else
5102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103$as_echo "no" >&6; }
5104fi
5105
5106
5107fi
5108if test -z "$ac_cv_prog_AR"; then
5109  ac_ct_AR=$AR
5110  # Extract the first word of "ar", so it can be a program name with args.
5111set dummy ar; ac_word=$2
5112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113$as_echo_n "checking for $ac_word... " >&6; }
5114if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5115  $as_echo_n "(cached) " >&6
5116else
5117  if test -n "$ac_ct_AR"; then
5118  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5119else
5120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121for as_dir in $PATH
5122do
5123  IFS=$as_save_IFS
5124  test -z "$as_dir" && as_dir=.
5125    for ac_exec_ext in '' $ac_executable_extensions; do
5126  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5127    ac_cv_prog_ac_ct_AR="ar"
5128    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5129    break 2
5130  fi
5131done
5132  done
5133IFS=$as_save_IFS
5134
5135fi
5136fi
5137ac_ct_AR=$ac_cv_prog_ac_ct_AR
5138if test -n "$ac_ct_AR"; then
5139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5140$as_echo "$ac_ct_AR" >&6; }
5141else
5142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143$as_echo "no" >&6; }
5144fi
5145
5146  if test "x$ac_ct_AR" = x; then
5147    AR="false"
5148  else
5149    case $cross_compiling:$ac_tool_warned in
5150yes:)
5151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5153ac_tool_warned=yes ;;
5154esac
5155    AR=$ac_ct_AR
5156  fi
5157else
5158  AR="$ac_cv_prog_AR"
5159fi
5160
5161test -z "$AR" && AR=ar
5162test -z "$AR_FLAGS" && AR_FLAGS=cru
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174if test -n "$ac_tool_prefix"; then
5175  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5176set dummy ${ac_tool_prefix}strip; ac_word=$2
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178$as_echo_n "checking for $ac_word... " >&6; }
5179if test "${ac_cv_prog_STRIP+set}" = set; then :
5180  $as_echo_n "(cached) " >&6
5181else
5182  if test -n "$STRIP"; then
5183  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5184else
5185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186for as_dir in $PATH
5187do
5188  IFS=$as_save_IFS
5189  test -z "$as_dir" && as_dir=.
5190    for ac_exec_ext in '' $ac_executable_extensions; do
5191  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5192    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5193    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194    break 2
5195  fi
5196done
5197  done
5198IFS=$as_save_IFS
5199
5200fi
5201fi
5202STRIP=$ac_cv_prog_STRIP
5203if test -n "$STRIP"; then
5204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5205$as_echo "$STRIP" >&6; }
5206else
5207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208$as_echo "no" >&6; }
5209fi
5210
5211
5212fi
5213if test -z "$ac_cv_prog_STRIP"; then
5214  ac_ct_STRIP=$STRIP
5215  # Extract the first word of "strip", so it can be a program name with args.
5216set dummy strip; ac_word=$2
5217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5218$as_echo_n "checking for $ac_word... " >&6; }
5219if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5220  $as_echo_n "(cached) " >&6
5221else
5222  if test -n "$ac_ct_STRIP"; then
5223  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5224else
5225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226for as_dir in $PATH
5227do
5228  IFS=$as_save_IFS
5229  test -z "$as_dir" && as_dir=.
5230    for ac_exec_ext in '' $ac_executable_extensions; do
5231  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5232    ac_cv_prog_ac_ct_STRIP="strip"
5233    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5234    break 2
5235  fi
5236done
5237  done
5238IFS=$as_save_IFS
5239
5240fi
5241fi
5242ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5243if test -n "$ac_ct_STRIP"; then
5244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5245$as_echo "$ac_ct_STRIP" >&6; }
5246else
5247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5248$as_echo "no" >&6; }
5249fi
5250
5251  if test "x$ac_ct_STRIP" = x; then
5252    STRIP=":"
5253  else
5254    case $cross_compiling:$ac_tool_warned in
5255yes:)
5256{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5257$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5258ac_tool_warned=yes ;;
5259esac
5260    STRIP=$ac_ct_STRIP
5261  fi
5262else
5263  STRIP="$ac_cv_prog_STRIP"
5264fi
5265
5266test -z "$STRIP" && STRIP=:
5267
5268
5269
5270
5271
5272
5273if test -n "$ac_tool_prefix"; then
5274  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5275set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5277$as_echo_n "checking for $ac_word... " >&6; }
5278if test "${ac_cv_prog_RANLIB+set}" = set; then :
5279  $as_echo_n "(cached) " >&6
5280else
5281  if test -n "$RANLIB"; then
5282  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5283else
5284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285for as_dir in $PATH
5286do
5287  IFS=$as_save_IFS
5288  test -z "$as_dir" && as_dir=.
5289    for ac_exec_ext in '' $ac_executable_extensions; do
5290  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5291    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5292    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5293    break 2
5294  fi
5295done
5296  done
5297IFS=$as_save_IFS
5298
5299fi
5300fi
5301RANLIB=$ac_cv_prog_RANLIB
5302if test -n "$RANLIB"; then
5303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5304$as_echo "$RANLIB" >&6; }
5305else
5306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5307$as_echo "no" >&6; }
5308fi
5309
5310
5311fi
5312if test -z "$ac_cv_prog_RANLIB"; then
5313  ac_ct_RANLIB=$RANLIB
5314  # Extract the first word of "ranlib", so it can be a program name with args.
5315set dummy ranlib; ac_word=$2
5316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5317$as_echo_n "checking for $ac_word... " >&6; }
5318if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5319  $as_echo_n "(cached) " >&6
5320else
5321  if test -n "$ac_ct_RANLIB"; then
5322  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5323else
5324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325for as_dir in $PATH
5326do
5327  IFS=$as_save_IFS
5328  test -z "$as_dir" && as_dir=.
5329    for ac_exec_ext in '' $ac_executable_extensions; do
5330  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5331    ac_cv_prog_ac_ct_RANLIB="ranlib"
5332    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5333    break 2
5334  fi
5335done
5336  done
5337IFS=$as_save_IFS
5338
5339fi
5340fi
5341ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5342if test -n "$ac_ct_RANLIB"; then
5343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5344$as_echo "$ac_ct_RANLIB" >&6; }
5345else
5346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5347$as_echo "no" >&6; }
5348fi
5349
5350  if test "x$ac_ct_RANLIB" = x; then
5351    RANLIB=":"
5352  else
5353    case $cross_compiling:$ac_tool_warned in
5354yes:)
5355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5357ac_tool_warned=yes ;;
5358esac
5359    RANLIB=$ac_ct_RANLIB
5360  fi
5361else
5362  RANLIB="$ac_cv_prog_RANLIB"
5363fi
5364
5365test -z "$RANLIB" && RANLIB=:
5366
5367
5368
5369
5370
5371
5372# Determine commands to create old-style static archives.
5373old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5374old_postinstall_cmds='chmod 644 $oldlib'
5375old_postuninstall_cmds=
5376
5377if test -n "$RANLIB"; then
5378  case $host_os in
5379  openbsd*)
5380    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5381    ;;
5382  *)
5383    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5384    ;;
5385  esac
5386  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5387fi
5388
5389case $host_os in
5390  darwin*)
5391    lock_old_archive_extraction=yes ;;
5392  *)
5393    lock_old_archive_extraction=no ;;
5394esac
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434# If no C compiler was specified, use CC.
5435LTCC=${LTCC-"$CC"}
5436
5437# If no C compiler flags were specified, use CFLAGS.
5438LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5439
5440# Allow CC to be a program name with arguments.
5441compiler=$CC
5442
5443
5444# Check for command to grab the raw symbol name followed by C symbol from nm.
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5446$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5447if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5448  $as_echo_n "(cached) " >&6
5449else
5450
5451# These are sane defaults that work on at least a few old systems.
5452# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5453
5454# Character class describing NM global symbol codes.
5455symcode='[BCDEGRST]'
5456
5457# Regexp to match symbols that can be accessed directly from C.
5458sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5459
5460# Define system-specific variables.
5461case $host_os in
5462aix*)
5463  symcode='[BCDT]'
5464  ;;
5465cygwin* | mingw* | pw32* | cegcc*)
5466  symcode='[ABCDGISTW]'
5467  ;;
5468hpux*)
5469  if test "$host_cpu" = ia64; then
5470    symcode='[ABCDEGRST]'
5471  fi
5472  ;;
5473irix* | nonstopux*)
5474  symcode='[BCDEGRST]'
5475  ;;
5476osf*)
5477  symcode='[BCDEGQRST]'
5478  ;;
5479solaris*)
5480  symcode='[BDRT]'
5481  ;;
5482sco3.2v5*)
5483  symcode='[DT]'
5484  ;;
5485sysv4.2uw2*)
5486  symcode='[DT]'
5487  ;;
5488sysv5* | sco5v6* | unixware* | OpenUNIX*)
5489  symcode='[ABDT]'
5490  ;;
5491sysv4)
5492  symcode='[DFNSTU]'
5493  ;;
5494esac
5495
5496# If we're using GNU nm, then use its standard symbol codes.
5497case `$NM -V 2>&1` in
5498*GNU* | *'with BFD'*)
5499  symcode='[ABCDGIRSTW]' ;;
5500esac
5501
5502# Transform an extracted symbol line into a proper C declaration.
5503# Some systems (esp. on ia64) link data and code symbols differently,
5504# so use this general approach.
5505lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5506
5507# Transform an extracted symbol line into symbol name and symbol address
5508lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5509lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5510
5511# Handle CRLF in mingw tool chain
5512opt_cr=
5513case $build_os in
5514mingw*)
5515  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5516  ;;
5517esac
5518
5519# Try without a prefix underscore, then with it.
5520for ac_symprfx in "" "_"; do
5521
5522  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5523  symxfrm="\\1 $ac_symprfx\\2 \\2"
5524
5525  # Write the raw and C identifiers.
5526  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5527    # Fake it for dumpbin and say T for any non-static function
5528    # and D for any global variable.
5529    # Also find C++ and __fastcall symbols from MSVC++,
5530    # which start with @ or ?.
5531    lt_cv_sys_global_symbol_pipe="$AWK '"\
5532"     {last_section=section; section=\$ 3};"\
5533"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5534"     \$ 0!~/External *\|/{next};"\
5535"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5536"     {if(hide[section]) next};"\
5537"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5538"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5539"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5540"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5541"     ' prfx=^$ac_symprfx"
5542  else
5543    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5544  fi
5545
5546  # Check to see that the pipe works correctly.
5547  pipe_works=no
5548
5549  rm -f conftest*
5550  cat > conftest.$ac_ext <<_LT_EOF
5551#ifdef __cplusplus
5552extern "C" {
5553#endif
5554char nm_test_var;
5555void nm_test_func(void);
5556void nm_test_func(void){}
5557#ifdef __cplusplus
5558}
5559#endif
5560int main(){nm_test_var='a';nm_test_func();return(0);}
5561_LT_EOF
5562
5563  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5564  (eval $ac_compile) 2>&5
5565  ac_status=$?
5566  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5567  test $ac_status = 0; }; then
5568    # Now try to grab the symbols.
5569    nlist=conftest.nm
5570    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5571  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5572  ac_status=$?
5573  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5574  test $ac_status = 0; } && test -s "$nlist"; then
5575      # Try sorting and uniquifying the output.
5576      if sort "$nlist" | uniq > "$nlist"T; then
5577	mv -f "$nlist"T "$nlist"
5578      else
5579	rm -f "$nlist"T
5580      fi
5581
5582      # Make sure that we snagged all the symbols we need.
5583      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5584	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5585	  cat <<_LT_EOF > conftest.$ac_ext
5586#ifdef __cplusplus
5587extern "C" {
5588#endif
5589
5590_LT_EOF
5591	  # Now generate the symbol file.
5592	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5593
5594	  cat <<_LT_EOF >> conftest.$ac_ext
5595
5596/* The mapping between symbol names and symbols.  */
5597const struct {
5598  const char *name;
5599  void       *address;
5600}
5601lt__PROGRAM__LTX_preloaded_symbols[] =
5602{
5603  { "@PROGRAM@", (void *) 0 },
5604_LT_EOF
5605	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5606	  cat <<\_LT_EOF >> conftest.$ac_ext
5607  {0, (void *) 0}
5608};
5609
5610/* This works around a problem in FreeBSD linker */
5611#ifdef FREEBSD_WORKAROUND
5612static const void *lt_preloaded_setup() {
5613  return lt__PROGRAM__LTX_preloaded_symbols;
5614}
5615#endif
5616
5617#ifdef __cplusplus
5618}
5619#endif
5620_LT_EOF
5621	  # Now try linking the two files.
5622	  mv conftest.$ac_objext conftstm.$ac_objext
5623	  lt_save_LIBS="$LIBS"
5624	  lt_save_CFLAGS="$CFLAGS"
5625	  LIBS="conftstm.$ac_objext"
5626	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5627	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5628  (eval $ac_link) 2>&5
5629  ac_status=$?
5630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5631  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5632	    pipe_works=yes
5633	  fi
5634	  LIBS="$lt_save_LIBS"
5635	  CFLAGS="$lt_save_CFLAGS"
5636	else
5637	  echo "cannot find nm_test_func in $nlist" >&5
5638	fi
5639      else
5640	echo "cannot find nm_test_var in $nlist" >&5
5641      fi
5642    else
5643      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5644    fi
5645  else
5646    echo "$progname: failed program was:" >&5
5647    cat conftest.$ac_ext >&5
5648  fi
5649  rm -rf conftest* conftst*
5650
5651  # Do not use the global_symbol_pipe unless it works.
5652  if test "$pipe_works" = yes; then
5653    break
5654  else
5655    lt_cv_sys_global_symbol_pipe=
5656  fi
5657done
5658
5659fi
5660
5661if test -z "$lt_cv_sys_global_symbol_pipe"; then
5662  lt_cv_sys_global_symbol_to_cdecl=
5663fi
5664if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5666$as_echo "failed" >&6; }
5667else
5668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5669$as_echo "ok" >&6; }
5670fi
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694# Check whether --enable-libtool-lock was given.
5695if test "${enable_libtool_lock+set}" = set; then :
5696  enableval=$enable_libtool_lock;
5697fi
5698
5699test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5700
5701# Some flags need to be propagated to the compiler or linker for good
5702# libtool support.
5703case $host in
5704ia64-*-hpux*)
5705  # Find out which ABI we are using.
5706  echo 'int i;' > conftest.$ac_ext
5707  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5708  (eval $ac_compile) 2>&5
5709  ac_status=$?
5710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5711  test $ac_status = 0; }; then
5712    case `/usr/bin/file conftest.$ac_objext` in
5713      *ELF-32*)
5714	HPUX_IA64_MODE="32"
5715	;;
5716      *ELF-64*)
5717	HPUX_IA64_MODE="64"
5718	;;
5719    esac
5720  fi
5721  rm -rf conftest*
5722  ;;
5723*-*-irix6*)
5724  # Find out which ABI we are using.
5725  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5726  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5727  (eval $ac_compile) 2>&5
5728  ac_status=$?
5729  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5730  test $ac_status = 0; }; then
5731    if test "$lt_cv_prog_gnu_ld" = yes; then
5732      case `/usr/bin/file conftest.$ac_objext` in
5733	*32-bit*)
5734	  LD="${LD-ld} -melf32bsmip"
5735	  ;;
5736	*N32*)
5737	  LD="${LD-ld} -melf32bmipn32"
5738	  ;;
5739	*64-bit*)
5740	  LD="${LD-ld} -melf64bmip"
5741	;;
5742      esac
5743    else
5744      case `/usr/bin/file conftest.$ac_objext` in
5745	*32-bit*)
5746	  LD="${LD-ld} -32"
5747	  ;;
5748	*N32*)
5749	  LD="${LD-ld} -n32"
5750	  ;;
5751	*64-bit*)
5752	  LD="${LD-ld} -64"
5753	  ;;
5754      esac
5755    fi
5756  fi
5757  rm -rf conftest*
5758  ;;
5759
5760x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5761s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5762  # Find out which ABI we are using.
5763  echo 'int i;' > conftest.$ac_ext
5764  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5765  (eval $ac_compile) 2>&5
5766  ac_status=$?
5767  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5768  test $ac_status = 0; }; then
5769    case `/usr/bin/file conftest.o` in
5770      *32-bit*)
5771	case $host in
5772	  x86_64-*kfreebsd*-gnu)
5773	    LD="${LD-ld} -m elf_i386_fbsd"
5774	    ;;
5775	  x86_64-*linux*)
5776	    LD="${LD-ld} -m elf_i386"
5777	    ;;
5778	  ppc64-*linux*|powerpc64-*linux*)
5779	    LD="${LD-ld} -m elf32ppclinux"
5780	    ;;
5781	  s390x-*linux*)
5782	    LD="${LD-ld} -m elf_s390"
5783	    ;;
5784	  sparc64-*linux*)
5785	    LD="${LD-ld} -m elf32_sparc"
5786	    ;;
5787	esac
5788	;;
5789      *64-bit*)
5790	case $host in
5791	  x86_64-*kfreebsd*-gnu)
5792	    LD="${LD-ld} -m elf_x86_64_fbsd"
5793	    ;;
5794	  x86_64-*linux*)
5795	    LD="${LD-ld} -m elf_x86_64"
5796	    ;;
5797	  ppc*-*linux*|powerpc*-*linux*)
5798	    LD="${LD-ld} -m elf64ppc"
5799	    ;;
5800	  s390*-*linux*|s390*-*tpf*)
5801	    LD="${LD-ld} -m elf64_s390"
5802	    ;;
5803	  sparc*-*linux*)
5804	    LD="${LD-ld} -m elf64_sparc"
5805	    ;;
5806	esac
5807	;;
5808    esac
5809  fi
5810  rm -rf conftest*
5811  ;;
5812
5813*-*-sco3.2v5*)
5814  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5815  SAVE_CFLAGS="$CFLAGS"
5816  CFLAGS="$CFLAGS -belf"
5817  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5818$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5819if test "${lt_cv_cc_needs_belf+set}" = set; then :
5820  $as_echo_n "(cached) " >&6
5821else
5822  ac_ext=c
5823ac_cpp='$CPP $CPPFLAGS'
5824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5826ac_compiler_gnu=$ac_cv_c_compiler_gnu
5827
5828     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5829/* end confdefs.h.  */
5830
5831int
5832main ()
5833{
5834
5835  ;
5836  return 0;
5837}
5838_ACEOF
5839if ac_fn_c_try_link "$LINENO"; then :
5840  lt_cv_cc_needs_belf=yes
5841else
5842  lt_cv_cc_needs_belf=no
5843fi
5844rm -f core conftest.err conftest.$ac_objext \
5845    conftest$ac_exeext conftest.$ac_ext
5846     ac_ext=c
5847ac_cpp='$CPP $CPPFLAGS'
5848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5850ac_compiler_gnu=$ac_cv_c_compiler_gnu
5851
5852fi
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5854$as_echo "$lt_cv_cc_needs_belf" >&6; }
5855  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5856    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5857    CFLAGS="$SAVE_CFLAGS"
5858  fi
5859  ;;
5860sparc*-*solaris*)
5861  # Find out which ABI we are using.
5862  echo 'int i;' > conftest.$ac_ext
5863  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5864  (eval $ac_compile) 2>&5
5865  ac_status=$?
5866  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5867  test $ac_status = 0; }; then
5868    case `/usr/bin/file conftest.o` in
5869    *64-bit*)
5870      case $lt_cv_prog_gnu_ld in
5871      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5872      *)
5873	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5874	  LD="${LD-ld} -64"
5875	fi
5876	;;
5877      esac
5878      ;;
5879    esac
5880  fi
5881  rm -rf conftest*
5882  ;;
5883esac
5884
5885need_locks="$enable_libtool_lock"
5886
5887
5888  case $host_os in
5889    rhapsody* | darwin*)
5890    if test -n "$ac_tool_prefix"; then
5891  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5892set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5894$as_echo_n "checking for $ac_word... " >&6; }
5895if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5896  $as_echo_n "(cached) " >&6
5897else
5898  if test -n "$DSYMUTIL"; then
5899  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5900else
5901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902for as_dir in $PATH
5903do
5904  IFS=$as_save_IFS
5905  test -z "$as_dir" && as_dir=.
5906    for ac_exec_ext in '' $ac_executable_extensions; do
5907  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5908    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5910    break 2
5911  fi
5912done
5913  done
5914IFS=$as_save_IFS
5915
5916fi
5917fi
5918DSYMUTIL=$ac_cv_prog_DSYMUTIL
5919if test -n "$DSYMUTIL"; then
5920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5921$as_echo "$DSYMUTIL" >&6; }
5922else
5923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924$as_echo "no" >&6; }
5925fi
5926
5927
5928fi
5929if test -z "$ac_cv_prog_DSYMUTIL"; then
5930  ac_ct_DSYMUTIL=$DSYMUTIL
5931  # Extract the first word of "dsymutil", so it can be a program name with args.
5932set dummy dsymutil; ac_word=$2
5933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5934$as_echo_n "checking for $ac_word... " >&6; }
5935if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5936  $as_echo_n "(cached) " >&6
5937else
5938  if test -n "$ac_ct_DSYMUTIL"; then
5939  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5940else
5941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942for as_dir in $PATH
5943do
5944  IFS=$as_save_IFS
5945  test -z "$as_dir" && as_dir=.
5946    for ac_exec_ext in '' $ac_executable_extensions; do
5947  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5948    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5949    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5950    break 2
5951  fi
5952done
5953  done
5954IFS=$as_save_IFS
5955
5956fi
5957fi
5958ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5959if test -n "$ac_ct_DSYMUTIL"; then
5960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5961$as_echo "$ac_ct_DSYMUTIL" >&6; }
5962else
5963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5964$as_echo "no" >&6; }
5965fi
5966
5967  if test "x$ac_ct_DSYMUTIL" = x; then
5968    DSYMUTIL=":"
5969  else
5970    case $cross_compiling:$ac_tool_warned in
5971yes:)
5972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5974ac_tool_warned=yes ;;
5975esac
5976    DSYMUTIL=$ac_ct_DSYMUTIL
5977  fi
5978else
5979  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5980fi
5981
5982    if test -n "$ac_tool_prefix"; then
5983  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5984set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5986$as_echo_n "checking for $ac_word... " >&6; }
5987if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5988  $as_echo_n "(cached) " >&6
5989else
5990  if test -n "$NMEDIT"; then
5991  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5992else
5993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994for as_dir in $PATH
5995do
5996  IFS=$as_save_IFS
5997  test -z "$as_dir" && as_dir=.
5998    for ac_exec_ext in '' $ac_executable_extensions; do
5999  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6000    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6001    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6002    break 2
6003  fi
6004done
6005  done
6006IFS=$as_save_IFS
6007
6008fi
6009fi
6010NMEDIT=$ac_cv_prog_NMEDIT
6011if test -n "$NMEDIT"; then
6012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6013$as_echo "$NMEDIT" >&6; }
6014else
6015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6016$as_echo "no" >&6; }
6017fi
6018
6019
6020fi
6021if test -z "$ac_cv_prog_NMEDIT"; then
6022  ac_ct_NMEDIT=$NMEDIT
6023  # Extract the first word of "nmedit", so it can be a program name with args.
6024set dummy nmedit; ac_word=$2
6025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6026$as_echo_n "checking for $ac_word... " >&6; }
6027if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6028  $as_echo_n "(cached) " >&6
6029else
6030  if test -n "$ac_ct_NMEDIT"; then
6031  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6032else
6033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034for as_dir in $PATH
6035do
6036  IFS=$as_save_IFS
6037  test -z "$as_dir" && as_dir=.
6038    for ac_exec_ext in '' $ac_executable_extensions; do
6039  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6040    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6041    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6042    break 2
6043  fi
6044done
6045  done
6046IFS=$as_save_IFS
6047
6048fi
6049fi
6050ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6051if test -n "$ac_ct_NMEDIT"; then
6052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6053$as_echo "$ac_ct_NMEDIT" >&6; }
6054else
6055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056$as_echo "no" >&6; }
6057fi
6058
6059  if test "x$ac_ct_NMEDIT" = x; then
6060    NMEDIT=":"
6061  else
6062    case $cross_compiling:$ac_tool_warned in
6063yes:)
6064{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6065$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6066ac_tool_warned=yes ;;
6067esac
6068    NMEDIT=$ac_ct_NMEDIT
6069  fi
6070else
6071  NMEDIT="$ac_cv_prog_NMEDIT"
6072fi
6073
6074    if test -n "$ac_tool_prefix"; then
6075  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6076set dummy ${ac_tool_prefix}lipo; ac_word=$2
6077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078$as_echo_n "checking for $ac_word... " >&6; }
6079if test "${ac_cv_prog_LIPO+set}" = set; then :
6080  $as_echo_n "(cached) " >&6
6081else
6082  if test -n "$LIPO"; then
6083  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6084else
6085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086for as_dir in $PATH
6087do
6088  IFS=$as_save_IFS
6089  test -z "$as_dir" && as_dir=.
6090    for ac_exec_ext in '' $ac_executable_extensions; do
6091  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6092    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6093    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6094    break 2
6095  fi
6096done
6097  done
6098IFS=$as_save_IFS
6099
6100fi
6101fi
6102LIPO=$ac_cv_prog_LIPO
6103if test -n "$LIPO"; then
6104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6105$as_echo "$LIPO" >&6; }
6106else
6107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108$as_echo "no" >&6; }
6109fi
6110
6111
6112fi
6113if test -z "$ac_cv_prog_LIPO"; then
6114  ac_ct_LIPO=$LIPO
6115  # Extract the first word of "lipo", so it can be a program name with args.
6116set dummy lipo; ac_word=$2
6117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6118$as_echo_n "checking for $ac_word... " >&6; }
6119if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6120  $as_echo_n "(cached) " >&6
6121else
6122  if test -n "$ac_ct_LIPO"; then
6123  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6124else
6125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126for as_dir in $PATH
6127do
6128  IFS=$as_save_IFS
6129  test -z "$as_dir" && as_dir=.
6130    for ac_exec_ext in '' $ac_executable_extensions; do
6131  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6132    ac_cv_prog_ac_ct_LIPO="lipo"
6133    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6134    break 2
6135  fi
6136done
6137  done
6138IFS=$as_save_IFS
6139
6140fi
6141fi
6142ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6143if test -n "$ac_ct_LIPO"; then
6144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6145$as_echo "$ac_ct_LIPO" >&6; }
6146else
6147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6148$as_echo "no" >&6; }
6149fi
6150
6151  if test "x$ac_ct_LIPO" = x; then
6152    LIPO=":"
6153  else
6154    case $cross_compiling:$ac_tool_warned in
6155yes:)
6156{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6157$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6158ac_tool_warned=yes ;;
6159esac
6160    LIPO=$ac_ct_LIPO
6161  fi
6162else
6163  LIPO="$ac_cv_prog_LIPO"
6164fi
6165
6166    if test -n "$ac_tool_prefix"; then
6167  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6168set dummy ${ac_tool_prefix}otool; ac_word=$2
6169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6170$as_echo_n "checking for $ac_word... " >&6; }
6171if test "${ac_cv_prog_OTOOL+set}" = set; then :
6172  $as_echo_n "(cached) " >&6
6173else
6174  if test -n "$OTOOL"; then
6175  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6176else
6177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178for as_dir in $PATH
6179do
6180  IFS=$as_save_IFS
6181  test -z "$as_dir" && as_dir=.
6182    for ac_exec_ext in '' $ac_executable_extensions; do
6183  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6184    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6185    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6186    break 2
6187  fi
6188done
6189  done
6190IFS=$as_save_IFS
6191
6192fi
6193fi
6194OTOOL=$ac_cv_prog_OTOOL
6195if test -n "$OTOOL"; then
6196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6197$as_echo "$OTOOL" >&6; }
6198else
6199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6200$as_echo "no" >&6; }
6201fi
6202
6203
6204fi
6205if test -z "$ac_cv_prog_OTOOL"; then
6206  ac_ct_OTOOL=$OTOOL
6207  # Extract the first word of "otool", so it can be a program name with args.
6208set dummy otool; ac_word=$2
6209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6210$as_echo_n "checking for $ac_word... " >&6; }
6211if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6212  $as_echo_n "(cached) " >&6
6213else
6214  if test -n "$ac_ct_OTOOL"; then
6215  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6216else
6217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218for as_dir in $PATH
6219do
6220  IFS=$as_save_IFS
6221  test -z "$as_dir" && as_dir=.
6222    for ac_exec_ext in '' $ac_executable_extensions; do
6223  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6224    ac_cv_prog_ac_ct_OTOOL="otool"
6225    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6226    break 2
6227  fi
6228done
6229  done
6230IFS=$as_save_IFS
6231
6232fi
6233fi
6234ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6235if test -n "$ac_ct_OTOOL"; then
6236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6237$as_echo "$ac_ct_OTOOL" >&6; }
6238else
6239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6240$as_echo "no" >&6; }
6241fi
6242
6243  if test "x$ac_ct_OTOOL" = x; then
6244    OTOOL=":"
6245  else
6246    case $cross_compiling:$ac_tool_warned in
6247yes:)
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6249$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6250ac_tool_warned=yes ;;
6251esac
6252    OTOOL=$ac_ct_OTOOL
6253  fi
6254else
6255  OTOOL="$ac_cv_prog_OTOOL"
6256fi
6257
6258    if test -n "$ac_tool_prefix"; then
6259  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6260set dummy ${ac_tool_prefix}otool64; ac_word=$2
6261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6262$as_echo_n "checking for $ac_word... " >&6; }
6263if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6264  $as_echo_n "(cached) " >&6
6265else
6266  if test -n "$OTOOL64"; then
6267  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6268else
6269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270for as_dir in $PATH
6271do
6272  IFS=$as_save_IFS
6273  test -z "$as_dir" && as_dir=.
6274    for ac_exec_ext in '' $ac_executable_extensions; do
6275  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6276    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6277    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6278    break 2
6279  fi
6280done
6281  done
6282IFS=$as_save_IFS
6283
6284fi
6285fi
6286OTOOL64=$ac_cv_prog_OTOOL64
6287if test -n "$OTOOL64"; then
6288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6289$as_echo "$OTOOL64" >&6; }
6290else
6291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6292$as_echo "no" >&6; }
6293fi
6294
6295
6296fi
6297if test -z "$ac_cv_prog_OTOOL64"; then
6298  ac_ct_OTOOL64=$OTOOL64
6299  # Extract the first word of "otool64", so it can be a program name with args.
6300set dummy otool64; ac_word=$2
6301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6302$as_echo_n "checking for $ac_word... " >&6; }
6303if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6304  $as_echo_n "(cached) " >&6
6305else
6306  if test -n "$ac_ct_OTOOL64"; then
6307  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6308else
6309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310for as_dir in $PATH
6311do
6312  IFS=$as_save_IFS
6313  test -z "$as_dir" && as_dir=.
6314    for ac_exec_ext in '' $ac_executable_extensions; do
6315  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6316    ac_cv_prog_ac_ct_OTOOL64="otool64"
6317    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6318    break 2
6319  fi
6320done
6321  done
6322IFS=$as_save_IFS
6323
6324fi
6325fi
6326ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6327if test -n "$ac_ct_OTOOL64"; then
6328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6329$as_echo "$ac_ct_OTOOL64" >&6; }
6330else
6331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332$as_echo "no" >&6; }
6333fi
6334
6335  if test "x$ac_ct_OTOOL64" = x; then
6336    OTOOL64=":"
6337  else
6338    case $cross_compiling:$ac_tool_warned in
6339yes:)
6340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6342ac_tool_warned=yes ;;
6343esac
6344    OTOOL64=$ac_ct_OTOOL64
6345  fi
6346else
6347  OTOOL64="$ac_cv_prog_OTOOL64"
6348fi
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6377$as_echo_n "checking for -single_module linker flag... " >&6; }
6378if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6379  $as_echo_n "(cached) " >&6
6380else
6381  lt_cv_apple_cc_single_mod=no
6382      if test -z "${LT_MULTI_MODULE}"; then
6383	# By default we will add the -single_module flag. You can override
6384	# by either setting the environment variable LT_MULTI_MODULE
6385	# non-empty at configure time, or by adding -multi_module to the
6386	# link flags.
6387	rm -rf libconftest.dylib*
6388	echo "int foo(void){return 1;}" > conftest.c
6389	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6390-dynamiclib -Wl,-single_module conftest.c" >&5
6391	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6392	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6393        _lt_result=$?
6394	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6395	  lt_cv_apple_cc_single_mod=yes
6396	else
6397	  cat conftest.err >&5
6398	fi
6399	rm -rf libconftest.dylib*
6400	rm -f conftest.*
6401      fi
6402fi
6403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6404$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6405    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6406$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6407if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6408  $as_echo_n "(cached) " >&6
6409else
6410  lt_cv_ld_exported_symbols_list=no
6411      save_LDFLAGS=$LDFLAGS
6412      echo "_main" > conftest.sym
6413      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6414      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6415/* end confdefs.h.  */
6416
6417int
6418main ()
6419{
6420
6421  ;
6422  return 0;
6423}
6424_ACEOF
6425if ac_fn_c_try_link "$LINENO"; then :
6426  lt_cv_ld_exported_symbols_list=yes
6427else
6428  lt_cv_ld_exported_symbols_list=no
6429fi
6430rm -f core conftest.err conftest.$ac_objext \
6431    conftest$ac_exeext conftest.$ac_ext
6432	LDFLAGS="$save_LDFLAGS"
6433
6434fi
6435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6436$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6437    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6438$as_echo_n "checking for -force_load linker flag... " >&6; }
6439if test "${lt_cv_ld_force_load+set}" = set; then :
6440  $as_echo_n "(cached) " >&6
6441else
6442  lt_cv_ld_force_load=no
6443      cat > conftest.c << _LT_EOF
6444int forced_loaded() { return 2;}
6445_LT_EOF
6446      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6447      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6448      echo "$AR cru libconftest.a conftest.o" >&5
6449      $AR cru libconftest.a conftest.o 2>&5
6450      echo "$RANLIB libconftest.a" >&5
6451      $RANLIB libconftest.a 2>&5
6452      cat > conftest.c << _LT_EOF
6453int main() { return 0;}
6454_LT_EOF
6455      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6456      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6457      _lt_result=$?
6458      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6459	lt_cv_ld_force_load=yes
6460      else
6461	cat conftest.err >&5
6462      fi
6463        rm -f conftest.err libconftest.a conftest conftest.c
6464        rm -rf conftest.dSYM
6465
6466fi
6467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6468$as_echo "$lt_cv_ld_force_load" >&6; }
6469    case $host_os in
6470    rhapsody* | darwin1.[012])
6471      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6472    darwin1.*)
6473      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6474    darwin*) # darwin 5.x on
6475      # if running on 10.5 or later, the deployment target defaults
6476      # to the OS version, if on x86, and 10.4, the deployment
6477      # target defaults to 10.4. Don't you love it?
6478      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6479	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6480	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6481	10.[012]*)
6482	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6483	10.*)
6484	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6485      esac
6486    ;;
6487  esac
6488    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6489      _lt_dar_single_mod='$single_module'
6490    fi
6491    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6492      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6493    else
6494      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6495    fi
6496    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6497      _lt_dsymutil='~$DSYMUTIL $lib || :'
6498    else
6499      _lt_dsymutil=
6500    fi
6501    ;;
6502  esac
6503
6504ac_ext=c
6505ac_cpp='$CPP $CPPFLAGS'
6506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6508ac_compiler_gnu=$ac_cv_c_compiler_gnu
6509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6510$as_echo_n "checking how to run the C preprocessor... " >&6; }
6511# On Suns, sometimes $CPP names a directory.
6512if test -n "$CPP" && test -d "$CPP"; then
6513  CPP=
6514fi
6515if test -z "$CPP"; then
6516  if test "${ac_cv_prog_CPP+set}" = set; then :
6517  $as_echo_n "(cached) " >&6
6518else
6519      # Double quotes because CPP needs to be expanded
6520    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6521    do
6522      ac_preproc_ok=false
6523for ac_c_preproc_warn_flag in '' yes
6524do
6525  # Use a header file that comes with gcc, so configuring glibc
6526  # with a fresh cross-compiler works.
6527  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6528  # <limits.h> exists even on freestanding compilers.
6529  # On the NeXT, cc -E runs the code through the compiler's parser,
6530  # not just through cpp. "Syntax error" is here to catch this case.
6531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6532/* end confdefs.h.  */
6533#ifdef __STDC__
6534# include <limits.h>
6535#else
6536# include <assert.h>
6537#endif
6538		     Syntax error
6539_ACEOF
6540if ac_fn_c_try_cpp "$LINENO"; then :
6541
6542else
6543  # Broken: fails on valid input.
6544continue
6545fi
6546rm -f conftest.err conftest.$ac_ext
6547
6548  # OK, works on sane cases.  Now check whether nonexistent headers
6549  # can be detected and how.
6550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551/* end confdefs.h.  */
6552#include <ac_nonexistent.h>
6553_ACEOF
6554if ac_fn_c_try_cpp "$LINENO"; then :
6555  # Broken: success on invalid input.
6556continue
6557else
6558  # Passes both tests.
6559ac_preproc_ok=:
6560break
6561fi
6562rm -f conftest.err conftest.$ac_ext
6563
6564done
6565# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6566rm -f conftest.err conftest.$ac_ext
6567if $ac_preproc_ok; then :
6568  break
6569fi
6570
6571    done
6572    ac_cv_prog_CPP=$CPP
6573
6574fi
6575  CPP=$ac_cv_prog_CPP
6576else
6577  ac_cv_prog_CPP=$CPP
6578fi
6579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6580$as_echo "$CPP" >&6; }
6581ac_preproc_ok=false
6582for ac_c_preproc_warn_flag in '' yes
6583do
6584  # Use a header file that comes with gcc, so configuring glibc
6585  # with a fresh cross-compiler works.
6586  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6587  # <limits.h> exists even on freestanding compilers.
6588  # On the NeXT, cc -E runs the code through the compiler's parser,
6589  # not just through cpp. "Syntax error" is here to catch this case.
6590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591/* end confdefs.h.  */
6592#ifdef __STDC__
6593# include <limits.h>
6594#else
6595# include <assert.h>
6596#endif
6597		     Syntax error
6598_ACEOF
6599if ac_fn_c_try_cpp "$LINENO"; then :
6600
6601else
6602  # Broken: fails on valid input.
6603continue
6604fi
6605rm -f conftest.err conftest.$ac_ext
6606
6607  # OK, works on sane cases.  Now check whether nonexistent headers
6608  # can be detected and how.
6609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6610/* end confdefs.h.  */
6611#include <ac_nonexistent.h>
6612_ACEOF
6613if ac_fn_c_try_cpp "$LINENO"; then :
6614  # Broken: success on invalid input.
6615continue
6616else
6617  # Passes both tests.
6618ac_preproc_ok=:
6619break
6620fi
6621rm -f conftest.err conftest.$ac_ext
6622
6623done
6624# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6625rm -f conftest.err conftest.$ac_ext
6626if $ac_preproc_ok; then :
6627
6628else
6629  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6630$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6631as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6632See \`config.log' for more details" "$LINENO" 5; }
6633fi
6634
6635ac_ext=c
6636ac_cpp='$CPP $CPPFLAGS'
6637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6639ac_compiler_gnu=$ac_cv_c_compiler_gnu
6640
6641
6642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6643$as_echo_n "checking for ANSI C header files... " >&6; }
6644if test "${ac_cv_header_stdc+set}" = set; then :
6645  $as_echo_n "(cached) " >&6
6646else
6647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6648/* end confdefs.h.  */
6649#include <stdlib.h>
6650#include <stdarg.h>
6651#include <string.h>
6652#include <float.h>
6653
6654int
6655main ()
6656{
6657
6658  ;
6659  return 0;
6660}
6661_ACEOF
6662if ac_fn_c_try_compile "$LINENO"; then :
6663  ac_cv_header_stdc=yes
6664else
6665  ac_cv_header_stdc=no
6666fi
6667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6668
6669if test $ac_cv_header_stdc = yes; then
6670  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6672/* end confdefs.h.  */
6673#include <string.h>
6674
6675_ACEOF
6676if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6677  $EGREP "memchr" >/dev/null 2>&1; then :
6678
6679else
6680  ac_cv_header_stdc=no
6681fi
6682rm -f conftest*
6683
6684fi
6685
6686if test $ac_cv_header_stdc = yes; then
6687  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6689/* end confdefs.h.  */
6690#include <stdlib.h>
6691
6692_ACEOF
6693if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6694  $EGREP "free" >/dev/null 2>&1; then :
6695
6696else
6697  ac_cv_header_stdc=no
6698fi
6699rm -f conftest*
6700
6701fi
6702
6703if test $ac_cv_header_stdc = yes; then
6704  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6705  if test "$cross_compiling" = yes; then :
6706  :
6707else
6708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709/* end confdefs.h.  */
6710#include <ctype.h>
6711#include <stdlib.h>
6712#if ((' ' & 0x0FF) == 0x020)
6713# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6714# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6715#else
6716# define ISLOWER(c) \
6717		   (('a' <= (c) && (c) <= 'i') \
6718		     || ('j' <= (c) && (c) <= 'r') \
6719		     || ('s' <= (c) && (c) <= 'z'))
6720# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6721#endif
6722
6723#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6724int
6725main ()
6726{
6727  int i;
6728  for (i = 0; i < 256; i++)
6729    if (XOR (islower (i), ISLOWER (i))
6730	|| toupper (i) != TOUPPER (i))
6731      return 2;
6732  return 0;
6733}
6734_ACEOF
6735if ac_fn_c_try_run "$LINENO"; then :
6736
6737else
6738  ac_cv_header_stdc=no
6739fi
6740rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6741  conftest.$ac_objext conftest.beam conftest.$ac_ext
6742fi
6743
6744fi
6745fi
6746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6747$as_echo "$ac_cv_header_stdc" >&6; }
6748if test $ac_cv_header_stdc = yes; then
6749
6750$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6751
6752fi
6753
6754# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6755for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6756		  inttypes.h stdint.h unistd.h
6757do :
6758  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6759ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6760"
6761if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6762  cat >>confdefs.h <<_ACEOF
6763#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6764_ACEOF
6765
6766fi
6767
6768done
6769
6770
6771for ac_header in dlfcn.h
6772do :
6773  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6774"
6775if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6776  cat >>confdefs.h <<_ACEOF
6777#define HAVE_DLFCN_H 1
6778_ACEOF
6779
6780fi
6781
6782done
6783
6784
6785
6786
6787
6788# Set options
6789
6790
6791
6792        enable_dlopen=no
6793
6794
6795  enable_win32_dll=no
6796
6797
6798            # Check whether --enable-shared was given.
6799if test "${enable_shared+set}" = set; then :
6800  enableval=$enable_shared; p=${PACKAGE-default}
6801    case $enableval in
6802    yes) enable_shared=yes ;;
6803    no) enable_shared=no ;;
6804    *)
6805      enable_shared=no
6806      # Look at the argument we got.  We use all the common list separators.
6807      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6808      for pkg in $enableval; do
6809	IFS="$lt_save_ifs"
6810	if test "X$pkg" = "X$p"; then
6811	  enable_shared=yes
6812	fi
6813      done
6814      IFS="$lt_save_ifs"
6815      ;;
6816    esac
6817else
6818  enable_shared=yes
6819fi
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831# Check whether --with-pic was given.
6832if test "${with_pic+set}" = set; then :
6833  withval=$with_pic; pic_mode="$withval"
6834else
6835  pic_mode=default
6836fi
6837
6838
6839test -z "$pic_mode" && pic_mode=default
6840
6841
6842
6843
6844
6845
6846
6847  # Check whether --enable-fast-install was given.
6848if test "${enable_fast_install+set}" = set; then :
6849  enableval=$enable_fast_install; p=${PACKAGE-default}
6850    case $enableval in
6851    yes) enable_fast_install=yes ;;
6852    no) enable_fast_install=no ;;
6853    *)
6854      enable_fast_install=no
6855      # Look at the argument we got.  We use all the common list separators.
6856      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6857      for pkg in $enableval; do
6858	IFS="$lt_save_ifs"
6859	if test "X$pkg" = "X$p"; then
6860	  enable_fast_install=yes
6861	fi
6862      done
6863      IFS="$lt_save_ifs"
6864      ;;
6865    esac
6866else
6867  enable_fast_install=yes
6868fi
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880# This can be used to rebuild libtool when needed
6881LIBTOOL_DEPS="$ltmain"
6882
6883# Always use our own libtool.
6884LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911test -z "$LN_S" && LN_S="ln -s"
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926if test -n "${ZSH_VERSION+set}" ; then
6927   setopt NO_GLOB_SUBST
6928fi
6929
6930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6931$as_echo_n "checking for objdir... " >&6; }
6932if test "${lt_cv_objdir+set}" = set; then :
6933  $as_echo_n "(cached) " >&6
6934else
6935  rm -f .libs 2>/dev/null
6936mkdir .libs 2>/dev/null
6937if test -d .libs; then
6938  lt_cv_objdir=.libs
6939else
6940  # MS-DOS does not allow filenames that begin with a dot.
6941  lt_cv_objdir=_libs
6942fi
6943rmdir .libs 2>/dev/null
6944fi
6945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6946$as_echo "$lt_cv_objdir" >&6; }
6947objdir=$lt_cv_objdir
6948
6949
6950
6951
6952
6953cat >>confdefs.h <<_ACEOF
6954#define LT_OBJDIR "$lt_cv_objdir/"
6955_ACEOF
6956
6957
6958
6959
6960case $host_os in
6961aix3*)
6962  # AIX sometimes has problems with the GCC collect2 program.  For some
6963  # reason, if we set the COLLECT_NAMES environment variable, the problems
6964  # vanish in a puff of smoke.
6965  if test "X${COLLECT_NAMES+set}" != Xset; then
6966    COLLECT_NAMES=
6967    export COLLECT_NAMES
6968  fi
6969  ;;
6970esac
6971
6972# Global variables:
6973ofile=libtool
6974can_build_shared=yes
6975
6976# All known linkers require a `.a' archive for static linking (except MSVC,
6977# which needs '.lib').
6978libext=a
6979
6980with_gnu_ld="$lt_cv_prog_gnu_ld"
6981
6982old_CC="$CC"
6983old_CFLAGS="$CFLAGS"
6984
6985# Set sane defaults for various variables
6986test -z "$CC" && CC=cc
6987test -z "$LTCC" && LTCC=$CC
6988test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6989test -z "$LD" && LD=ld
6990test -z "$ac_objext" && ac_objext=o
6991
6992for cc_temp in $compiler""; do
6993  case $cc_temp in
6994    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6995    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6996    \-*) ;;
6997    *) break;;
6998  esac
6999done
7000cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7001
7002
7003# Only perform the check for file, if the check method requires it
7004test -z "$MAGIC_CMD" && MAGIC_CMD=file
7005case $deplibs_check_method in
7006file_magic*)
7007  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7008    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7009$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7010if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7011  $as_echo_n "(cached) " >&6
7012else
7013  case $MAGIC_CMD in
7014[\\/*] |  ?:[\\/]*)
7015  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7016  ;;
7017*)
7018  lt_save_MAGIC_CMD="$MAGIC_CMD"
7019  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7020  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7021  for ac_dir in $ac_dummy; do
7022    IFS="$lt_save_ifs"
7023    test -z "$ac_dir" && ac_dir=.
7024    if test -f $ac_dir/${ac_tool_prefix}file; then
7025      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7026      if test -n "$file_magic_test_file"; then
7027	case $deplibs_check_method in
7028	"file_magic "*)
7029	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7030	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7031	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7032	    $EGREP "$file_magic_regex" > /dev/null; then
7033	    :
7034	  else
7035	    cat <<_LT_EOF 1>&2
7036
7037*** Warning: the command libtool uses to detect shared libraries,
7038*** $file_magic_cmd, produces output that libtool cannot recognize.
7039*** The result is that libtool may fail to recognize shared libraries
7040*** as such.  This will affect the creation of libtool libraries that
7041*** depend on shared libraries, but programs linked with such libtool
7042*** libraries will work regardless of this problem.  Nevertheless, you
7043*** may want to report the problem to your system manager and/or to
7044*** bug-libtool@gnu.org
7045
7046_LT_EOF
7047	  fi ;;
7048	esac
7049      fi
7050      break
7051    fi
7052  done
7053  IFS="$lt_save_ifs"
7054  MAGIC_CMD="$lt_save_MAGIC_CMD"
7055  ;;
7056esac
7057fi
7058
7059MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7060if test -n "$MAGIC_CMD"; then
7061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7062$as_echo "$MAGIC_CMD" >&6; }
7063else
7064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065$as_echo "no" >&6; }
7066fi
7067
7068
7069
7070
7071
7072if test -z "$lt_cv_path_MAGIC_CMD"; then
7073  if test -n "$ac_tool_prefix"; then
7074    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7075$as_echo_n "checking for file... " >&6; }
7076if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7077  $as_echo_n "(cached) " >&6
7078else
7079  case $MAGIC_CMD in
7080[\\/*] |  ?:[\\/]*)
7081  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7082  ;;
7083*)
7084  lt_save_MAGIC_CMD="$MAGIC_CMD"
7085  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7086  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7087  for ac_dir in $ac_dummy; do
7088    IFS="$lt_save_ifs"
7089    test -z "$ac_dir" && ac_dir=.
7090    if test -f $ac_dir/file; then
7091      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7092      if test -n "$file_magic_test_file"; then
7093	case $deplibs_check_method in
7094	"file_magic "*)
7095	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7096	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7097	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7098	    $EGREP "$file_magic_regex" > /dev/null; then
7099	    :
7100	  else
7101	    cat <<_LT_EOF 1>&2
7102
7103*** Warning: the command libtool uses to detect shared libraries,
7104*** $file_magic_cmd, produces output that libtool cannot recognize.
7105*** The result is that libtool may fail to recognize shared libraries
7106*** as such.  This will affect the creation of libtool libraries that
7107*** depend on shared libraries, but programs linked with such libtool
7108*** libraries will work regardless of this problem.  Nevertheless, you
7109*** may want to report the problem to your system manager and/or to
7110*** bug-libtool@gnu.org
7111
7112_LT_EOF
7113	  fi ;;
7114	esac
7115      fi
7116      break
7117    fi
7118  done
7119  IFS="$lt_save_ifs"
7120  MAGIC_CMD="$lt_save_MAGIC_CMD"
7121  ;;
7122esac
7123fi
7124
7125MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7126if test -n "$MAGIC_CMD"; then
7127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7128$as_echo "$MAGIC_CMD" >&6; }
7129else
7130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131$as_echo "no" >&6; }
7132fi
7133
7134
7135  else
7136    MAGIC_CMD=:
7137  fi
7138fi
7139
7140  fi
7141  ;;
7142esac
7143
7144# Use C for the default configuration in the libtool script
7145
7146lt_save_CC="$CC"
7147ac_ext=c
7148ac_cpp='$CPP $CPPFLAGS'
7149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7151ac_compiler_gnu=$ac_cv_c_compiler_gnu
7152
7153
7154# Source file extension for C test sources.
7155ac_ext=c
7156
7157# Object file extension for compiled C test sources.
7158objext=o
7159objext=$objext
7160
7161# Code to be used in simple compile tests
7162lt_simple_compile_test_code="int some_variable = 0;"
7163
7164# Code to be used in simple link tests
7165lt_simple_link_test_code='int main(){return(0);}'
7166
7167
7168
7169
7170
7171
7172
7173# If no C compiler was specified, use CC.
7174LTCC=${LTCC-"$CC"}
7175
7176# If no C compiler flags were specified, use CFLAGS.
7177LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7178
7179# Allow CC to be a program name with arguments.
7180compiler=$CC
7181
7182# Save the default compiler, since it gets overwritten when the other
7183# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7184compiler_DEFAULT=$CC
7185
7186# save warnings/boilerplate of simple test code
7187ac_outfile=conftest.$ac_objext
7188echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7189eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7190_lt_compiler_boilerplate=`cat conftest.err`
7191$RM conftest*
7192
7193ac_outfile=conftest.$ac_objext
7194echo "$lt_simple_link_test_code" >conftest.$ac_ext
7195eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7196_lt_linker_boilerplate=`cat conftest.err`
7197$RM -r conftest*
7198
7199
7200if test -n "$compiler"; then
7201
7202lt_prog_compiler_no_builtin_flag=
7203
7204if test "$GCC" = yes; then
7205  case $cc_basename in
7206  nvcc*)
7207    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7208  *)
7209    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7210  esac
7211
7212  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7213$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7214if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7215  $as_echo_n "(cached) " >&6
7216else
7217  lt_cv_prog_compiler_rtti_exceptions=no
7218   ac_outfile=conftest.$ac_objext
7219   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7220   lt_compiler_flag="-fno-rtti -fno-exceptions"
7221   # Insert the option either (1) after the last *FLAGS variable, or
7222   # (2) before a word containing "conftest.", or (3) at the end.
7223   # Note that $ac_compile itself does not contain backslashes and begins
7224   # with a dollar sign (not a hyphen), so the echo should work correctly.
7225   # The option is referenced via a variable to avoid confusing sed.
7226   lt_compile=`echo "$ac_compile" | $SED \
7227   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7228   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7229   -e 's:$: $lt_compiler_flag:'`
7230   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7231   (eval "$lt_compile" 2>conftest.err)
7232   ac_status=$?
7233   cat conftest.err >&5
7234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235   if (exit $ac_status) && test -s "$ac_outfile"; then
7236     # The compiler can only warn and ignore the option if not recognized
7237     # So say no if there are warnings other than the usual output.
7238     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7239     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7240     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7241       lt_cv_prog_compiler_rtti_exceptions=yes
7242     fi
7243   fi
7244   $RM conftest*
7245
7246fi
7247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7248$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7249
7250if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7251    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7252else
7253    :
7254fi
7255
7256fi
7257
7258
7259
7260
7261
7262
7263  lt_prog_compiler_wl=
7264lt_prog_compiler_pic=
7265lt_prog_compiler_static=
7266
7267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7268$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7269
7270  if test "$GCC" = yes; then
7271    lt_prog_compiler_wl='-Wl,'
7272    lt_prog_compiler_static='-static'
7273
7274    case $host_os in
7275      aix*)
7276      # All AIX code is PIC.
7277      if test "$host_cpu" = ia64; then
7278	# AIX 5 now supports IA64 processor
7279	lt_prog_compiler_static='-Bstatic'
7280      fi
7281      ;;
7282
7283    amigaos*)
7284      case $host_cpu in
7285      powerpc)
7286            # see comment about AmigaOS4 .so support
7287            lt_prog_compiler_pic='-fPIC'
7288        ;;
7289      m68k)
7290            # FIXME: we need at least 68020 code to build shared libraries, but
7291            # adding the `-m68020' flag to GCC prevents building anything better,
7292            # like `-m68040'.
7293            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7294        ;;
7295      esac
7296      ;;
7297
7298    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7299      # PIC is the default for these OSes.
7300      ;;
7301
7302    mingw* | cygwin* | pw32* | os2* | cegcc*)
7303      # This hack is so that the source file can tell whether it is being
7304      # built for inclusion in a dll (and should export symbols for example).
7305      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7306      # (--disable-auto-import) libraries
7307      lt_prog_compiler_pic='-DDLL_EXPORT'
7308      ;;
7309
7310    darwin* | rhapsody*)
7311      # PIC is the default on this platform
7312      # Common symbols not allowed in MH_DYLIB files
7313      lt_prog_compiler_pic='-fno-common'
7314      ;;
7315
7316    haiku*)
7317      # PIC is the default for Haiku.
7318      # The "-static" flag exists, but is broken.
7319      lt_prog_compiler_static=
7320      ;;
7321
7322    hpux*)
7323      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7324      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7325      # sets the default TLS model and affects inlining.
7326      case $host_cpu in
7327      hppa*64*)
7328	# +Z the default
7329	;;
7330      *)
7331	lt_prog_compiler_pic='-fPIC'
7332	;;
7333      esac
7334      ;;
7335
7336    interix[3-9]*)
7337      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7338      # Instead, we relocate shared libraries at runtime.
7339      ;;
7340
7341    msdosdjgpp*)
7342      # Just because we use GCC doesn't mean we suddenly get shared libraries
7343      # on systems that don't support them.
7344      lt_prog_compiler_can_build_shared=no
7345      enable_shared=no
7346      ;;
7347
7348    *nto* | *qnx*)
7349      # QNX uses GNU C++, but need to define -shared option too, otherwise
7350      # it will coredump.
7351      lt_prog_compiler_pic='-fPIC -shared'
7352      ;;
7353
7354    sysv4*MP*)
7355      if test -d /usr/nec; then
7356	lt_prog_compiler_pic=-Kconform_pic
7357      fi
7358      ;;
7359
7360    *)
7361      lt_prog_compiler_pic='-fPIC'
7362      ;;
7363    esac
7364
7365    case $cc_basename in
7366    nvcc*) # Cuda Compiler Driver 2.2
7367      lt_prog_compiler_wl='-Xlinker '
7368      lt_prog_compiler_pic='-Xcompiler -fPIC'
7369      ;;
7370    esac
7371  else
7372    # PORTME Check for flag to pass linker flags through the system compiler.
7373    case $host_os in
7374    aix*)
7375      lt_prog_compiler_wl='-Wl,'
7376      if test "$host_cpu" = ia64; then
7377	# AIX 5 now supports IA64 processor
7378	lt_prog_compiler_static='-Bstatic'
7379      else
7380	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7381      fi
7382      ;;
7383
7384    mingw* | cygwin* | pw32* | os2* | cegcc*)
7385      # This hack is so that the source file can tell whether it is being
7386      # built for inclusion in a dll (and should export symbols for example).
7387      lt_prog_compiler_pic='-DDLL_EXPORT'
7388      ;;
7389
7390    hpux9* | hpux10* | hpux11*)
7391      lt_prog_compiler_wl='-Wl,'
7392      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7393      # not for PA HP-UX.
7394      case $host_cpu in
7395      hppa*64*|ia64*)
7396	# +Z the default
7397	;;
7398      *)
7399	lt_prog_compiler_pic='+Z'
7400	;;
7401      esac
7402      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7403      lt_prog_compiler_static='${wl}-a ${wl}archive'
7404      ;;
7405
7406    irix5* | irix6* | nonstopux*)
7407      lt_prog_compiler_wl='-Wl,'
7408      # PIC (with -KPIC) is the default.
7409      lt_prog_compiler_static='-non_shared'
7410      ;;
7411
7412    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7413      case $cc_basename in
7414      # old Intel for x86_64 which still supported -KPIC.
7415      ecc*)
7416	lt_prog_compiler_wl='-Wl,'
7417	lt_prog_compiler_pic='-KPIC'
7418	lt_prog_compiler_static='-static'
7419        ;;
7420      # icc used to be incompatible with GCC.
7421      # ICC 10 doesn't accept -KPIC any more.
7422      icc* | ifort*)
7423	lt_prog_compiler_wl='-Wl,'
7424	lt_prog_compiler_pic='-fPIC'
7425	lt_prog_compiler_static='-static'
7426        ;;
7427      # Lahey Fortran 8.1.
7428      lf95*)
7429	lt_prog_compiler_wl='-Wl,'
7430	lt_prog_compiler_pic='--shared'
7431	lt_prog_compiler_static='--static'
7432	;;
7433      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7434        # Portland Group compilers (*not* the Pentium gcc compiler,
7435	# which looks to be a dead project)
7436	lt_prog_compiler_wl='-Wl,'
7437	lt_prog_compiler_pic='-fpic'
7438	lt_prog_compiler_static='-Bstatic'
7439        ;;
7440      ccc*)
7441        lt_prog_compiler_wl='-Wl,'
7442        # All Alpha code is PIC.
7443        lt_prog_compiler_static='-non_shared'
7444        ;;
7445      xl* | bgxl* | bgf* | mpixl*)
7446	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7447	lt_prog_compiler_wl='-Wl,'
7448	lt_prog_compiler_pic='-qpic'
7449	lt_prog_compiler_static='-qstaticlink'
7450	;;
7451      *)
7452	case `$CC -V 2>&1 | sed 5q` in
7453	*Sun\ F* | *Sun*Fortran*)
7454	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7455	  lt_prog_compiler_pic='-KPIC'
7456	  lt_prog_compiler_static='-Bstatic'
7457	  lt_prog_compiler_wl=''
7458	  ;;
7459	*Sun\ C*)
7460	  # Sun C 5.9
7461	  lt_prog_compiler_pic='-KPIC'
7462	  lt_prog_compiler_static='-Bstatic'
7463	  lt_prog_compiler_wl='-Wl,'
7464	  ;;
7465	esac
7466	;;
7467      esac
7468      ;;
7469
7470    newsos6)
7471      lt_prog_compiler_pic='-KPIC'
7472      lt_prog_compiler_static='-Bstatic'
7473      ;;
7474
7475    *nto* | *qnx*)
7476      # QNX uses GNU C++, but need to define -shared option too, otherwise
7477      # it will coredump.
7478      lt_prog_compiler_pic='-fPIC -shared'
7479      ;;
7480
7481    osf3* | osf4* | osf5*)
7482      lt_prog_compiler_wl='-Wl,'
7483      # All OSF/1 code is PIC.
7484      lt_prog_compiler_static='-non_shared'
7485      ;;
7486
7487    rdos*)
7488      lt_prog_compiler_static='-non_shared'
7489      ;;
7490
7491    solaris*)
7492      lt_prog_compiler_pic='-KPIC'
7493      lt_prog_compiler_static='-Bstatic'
7494      case $cc_basename in
7495      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7496	lt_prog_compiler_wl='-Qoption ld ';;
7497      *)
7498	lt_prog_compiler_wl='-Wl,';;
7499      esac
7500      ;;
7501
7502    sunos4*)
7503      lt_prog_compiler_wl='-Qoption ld '
7504      lt_prog_compiler_pic='-PIC'
7505      lt_prog_compiler_static='-Bstatic'
7506      ;;
7507
7508    sysv4 | sysv4.2uw2* | sysv4.3*)
7509      lt_prog_compiler_wl='-Wl,'
7510      lt_prog_compiler_pic='-KPIC'
7511      lt_prog_compiler_static='-Bstatic'
7512      ;;
7513
7514    sysv4*MP*)
7515      if test -d /usr/nec ;then
7516	lt_prog_compiler_pic='-Kconform_pic'
7517	lt_prog_compiler_static='-Bstatic'
7518      fi
7519      ;;
7520
7521    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7522      lt_prog_compiler_wl='-Wl,'
7523      lt_prog_compiler_pic='-KPIC'
7524      lt_prog_compiler_static='-Bstatic'
7525      ;;
7526
7527    unicos*)
7528      lt_prog_compiler_wl='-Wl,'
7529      lt_prog_compiler_can_build_shared=no
7530      ;;
7531
7532    uts4*)
7533      lt_prog_compiler_pic='-pic'
7534      lt_prog_compiler_static='-Bstatic'
7535      ;;
7536
7537    *)
7538      lt_prog_compiler_can_build_shared=no
7539      ;;
7540    esac
7541  fi
7542
7543case $host_os in
7544  # For platforms which do not support PIC, -DPIC is meaningless:
7545  *djgpp*)
7546    lt_prog_compiler_pic=
7547    ;;
7548  *)
7549    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7550    ;;
7551esac
7552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7553$as_echo "$lt_prog_compiler_pic" >&6; }
7554
7555
7556
7557
7558
7559
7560#
7561# Check to make sure the PIC flag actually works.
7562#
7563if test -n "$lt_prog_compiler_pic"; then
7564  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7565$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7566if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7567  $as_echo_n "(cached) " >&6
7568else
7569  lt_cv_prog_compiler_pic_works=no
7570   ac_outfile=conftest.$ac_objext
7571   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7572   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7573   # Insert the option either (1) after the last *FLAGS variable, or
7574   # (2) before a word containing "conftest.", or (3) at the end.
7575   # Note that $ac_compile itself does not contain backslashes and begins
7576   # with a dollar sign (not a hyphen), so the echo should work correctly.
7577   # The option is referenced via a variable to avoid confusing sed.
7578   lt_compile=`echo "$ac_compile" | $SED \
7579   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7580   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7581   -e 's:$: $lt_compiler_flag:'`
7582   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7583   (eval "$lt_compile" 2>conftest.err)
7584   ac_status=$?
7585   cat conftest.err >&5
7586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587   if (exit $ac_status) && test -s "$ac_outfile"; then
7588     # The compiler can only warn and ignore the option if not recognized
7589     # So say no if there are warnings other than the usual output.
7590     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7591     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7592     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7593       lt_cv_prog_compiler_pic_works=yes
7594     fi
7595   fi
7596   $RM conftest*
7597
7598fi
7599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7600$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7601
7602if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7603    case $lt_prog_compiler_pic in
7604     "" | " "*) ;;
7605     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7606     esac
7607else
7608    lt_prog_compiler_pic=
7609     lt_prog_compiler_can_build_shared=no
7610fi
7611
7612fi
7613
7614
7615
7616
7617
7618
7619#
7620# Check to make sure the static flag actually works.
7621#
7622wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7624$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7625if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7626  $as_echo_n "(cached) " >&6
7627else
7628  lt_cv_prog_compiler_static_works=no
7629   save_LDFLAGS="$LDFLAGS"
7630   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7631   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7632   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7633     # The linker can only warn and ignore the option if not recognized
7634     # So say no if there are warnings
7635     if test -s conftest.err; then
7636       # Append any errors to the config.log.
7637       cat conftest.err 1>&5
7638       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7639       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7640       if diff conftest.exp conftest.er2 >/dev/null; then
7641         lt_cv_prog_compiler_static_works=yes
7642       fi
7643     else
7644       lt_cv_prog_compiler_static_works=yes
7645     fi
7646   fi
7647   $RM -r conftest*
7648   LDFLAGS="$save_LDFLAGS"
7649
7650fi
7651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7652$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7653
7654if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7655    :
7656else
7657    lt_prog_compiler_static=
7658fi
7659
7660
7661
7662
7663
7664
7665
7666  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7667$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7668if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7669  $as_echo_n "(cached) " >&6
7670else
7671  lt_cv_prog_compiler_c_o=no
7672   $RM -r conftest 2>/dev/null
7673   mkdir conftest
7674   cd conftest
7675   mkdir out
7676   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7677
7678   lt_compiler_flag="-o out/conftest2.$ac_objext"
7679   # Insert the option either (1) after the last *FLAGS variable, or
7680   # (2) before a word containing "conftest.", or (3) at the end.
7681   # Note that $ac_compile itself does not contain backslashes and begins
7682   # with a dollar sign (not a hyphen), so the echo should work correctly.
7683   lt_compile=`echo "$ac_compile" | $SED \
7684   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7685   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7686   -e 's:$: $lt_compiler_flag:'`
7687   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7688   (eval "$lt_compile" 2>out/conftest.err)
7689   ac_status=$?
7690   cat out/conftest.err >&5
7691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7693   then
7694     # The compiler can only warn and ignore the option if not recognized
7695     # So say no if there are warnings
7696     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7697     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7698     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7699       lt_cv_prog_compiler_c_o=yes
7700     fi
7701   fi
7702   chmod u+w . 2>&5
7703   $RM conftest*
7704   # SGI C++ compiler will create directory out/ii_files/ for
7705   # template instantiation
7706   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7707   $RM out/* && rmdir out
7708   cd ..
7709   $RM -r conftest
7710   $RM conftest*
7711
7712fi
7713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7714$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7715
7716
7717
7718
7719
7720
7721  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7722$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7723if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7724  $as_echo_n "(cached) " >&6
7725else
7726  lt_cv_prog_compiler_c_o=no
7727   $RM -r conftest 2>/dev/null
7728   mkdir conftest
7729   cd conftest
7730   mkdir out
7731   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7732
7733   lt_compiler_flag="-o out/conftest2.$ac_objext"
7734   # Insert the option either (1) after the last *FLAGS variable, or
7735   # (2) before a word containing "conftest.", or (3) at the end.
7736   # Note that $ac_compile itself does not contain backslashes and begins
7737   # with a dollar sign (not a hyphen), so the echo should work correctly.
7738   lt_compile=`echo "$ac_compile" | $SED \
7739   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7740   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7741   -e 's:$: $lt_compiler_flag:'`
7742   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7743   (eval "$lt_compile" 2>out/conftest.err)
7744   ac_status=$?
7745   cat out/conftest.err >&5
7746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7748   then
7749     # The compiler can only warn and ignore the option if not recognized
7750     # So say no if there are warnings
7751     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7752     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7753     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7754       lt_cv_prog_compiler_c_o=yes
7755     fi
7756   fi
7757   chmod u+w . 2>&5
7758   $RM conftest*
7759   # SGI C++ compiler will create directory out/ii_files/ for
7760   # template instantiation
7761   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7762   $RM out/* && rmdir out
7763   cd ..
7764   $RM -r conftest
7765   $RM conftest*
7766
7767fi
7768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7769$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7770
7771
7772
7773
7774hard_links="nottested"
7775if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7776  # do not overwrite the value of need_locks provided by the user
7777  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7778$as_echo_n "checking if we can lock with hard links... " >&6; }
7779  hard_links=yes
7780  $RM conftest*
7781  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7782  touch conftest.a
7783  ln conftest.a conftest.b 2>&5 || hard_links=no
7784  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7786$as_echo "$hard_links" >&6; }
7787  if test "$hard_links" = no; then
7788    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7789$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7790    need_locks=warn
7791  fi
7792else
7793  need_locks=no
7794fi
7795
7796
7797
7798
7799
7800
7801  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7802$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7803
7804  runpath_var=
7805  allow_undefined_flag=
7806  always_export_symbols=no
7807  archive_cmds=
7808  archive_expsym_cmds=
7809  compiler_needs_object=no
7810  enable_shared_with_static_runtimes=no
7811  export_dynamic_flag_spec=
7812  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7813  hardcode_automatic=no
7814  hardcode_direct=no
7815  hardcode_direct_absolute=no
7816  hardcode_libdir_flag_spec=
7817  hardcode_libdir_flag_spec_ld=
7818  hardcode_libdir_separator=
7819  hardcode_minus_L=no
7820  hardcode_shlibpath_var=unsupported
7821  inherit_rpath=no
7822  link_all_deplibs=unknown
7823  module_cmds=
7824  module_expsym_cmds=
7825  old_archive_from_new_cmds=
7826  old_archive_from_expsyms_cmds=
7827  thread_safe_flag_spec=
7828  whole_archive_flag_spec=
7829  # include_expsyms should be a list of space-separated symbols to be *always*
7830  # included in the symbol list
7831  include_expsyms=
7832  # exclude_expsyms can be an extended regexp of symbols to exclude
7833  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7834  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7835  # as well as any symbol that contains `d'.
7836  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7837  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7838  # platforms (ab)use it in PIC code, but their linkers get confused if
7839  # the symbol is explicitly referenced.  Since portable code cannot
7840  # rely on this symbol name, it's probably fine to never include it in
7841  # preloaded symbol tables.
7842  # Exclude shared library initialization/finalization symbols.
7843  extract_expsyms_cmds=
7844
7845  case $host_os in
7846  cygwin* | mingw* | pw32* | cegcc*)
7847    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7848    # When not using gcc, we currently assume that we are using
7849    # Microsoft Visual C++.
7850    if test "$GCC" != yes; then
7851      with_gnu_ld=no
7852    fi
7853    ;;
7854  interix*)
7855    # we just hope/assume this is gcc and not c89 (= MSVC++)
7856    with_gnu_ld=yes
7857    ;;
7858  openbsd*)
7859    with_gnu_ld=no
7860    ;;
7861  esac
7862
7863  ld_shlibs=yes
7864
7865  # On some targets, GNU ld is compatible enough with the native linker
7866  # that we're better off using the native interface for both.
7867  lt_use_gnu_ld_interface=no
7868  if test "$with_gnu_ld" = yes; then
7869    case $host_os in
7870      aix*)
7871	# The AIX port of GNU ld has always aspired to compatibility
7872	# with the native linker.  However, as the warning in the GNU ld
7873	# block says, versions before 2.19.5* couldn't really create working
7874	# shared libraries, regardless of the interface used.
7875	case `$LD -v 2>&1` in
7876	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
7877	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
7878	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
7879	  *)
7880	    lt_use_gnu_ld_interface=yes
7881	    ;;
7882	esac
7883	;;
7884      *)
7885	lt_use_gnu_ld_interface=yes
7886	;;
7887    esac
7888  fi
7889
7890  if test "$lt_use_gnu_ld_interface" = yes; then
7891    # If archive_cmds runs LD, not CC, wlarc should be empty
7892    wlarc='${wl}'
7893
7894    # Set some defaults for GNU ld with shared library support. These
7895    # are reset later if shared libraries are not supported. Putting them
7896    # here allows them to be overridden if necessary.
7897    runpath_var=LD_RUN_PATH
7898    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7899    export_dynamic_flag_spec='${wl}--export-dynamic'
7900    # ancient GNU ld didn't support --whole-archive et. al.
7901    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7902      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7903    else
7904      whole_archive_flag_spec=
7905    fi
7906    supports_anon_versioning=no
7907    case `$LD -v 2>&1` in
7908      *GNU\ gold*) supports_anon_versioning=yes ;;
7909      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7910      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7911      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7912      *\ 2.11.*) ;; # other 2.11 versions
7913      *) supports_anon_versioning=yes ;;
7914    esac
7915
7916    # See if GNU ld supports shared libraries.
7917    case $host_os in
7918    aix[3-9]*)
7919      # On AIX/PPC, the GNU linker is very broken
7920      if test "$host_cpu" != ia64; then
7921	ld_shlibs=no
7922	cat <<_LT_EOF 1>&2
7923
7924*** Warning: the GNU linker, at least up to release 2.19, is reported
7925*** to be unable to reliably create shared libraries on AIX.
7926*** Therefore, libtool is disabling shared libraries support.  If you
7927*** really care for shared libraries, you may want to install binutils
7928*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
7929*** You will then need to restart the configuration process.
7930
7931_LT_EOF
7932      fi
7933      ;;
7934
7935    amigaos*)
7936      case $host_cpu in
7937      powerpc)
7938            # see comment about AmigaOS4 .so support
7939            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7940            archive_expsym_cmds=''
7941        ;;
7942      m68k)
7943            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)'
7944            hardcode_libdir_flag_spec='-L$libdir'
7945            hardcode_minus_L=yes
7946        ;;
7947      esac
7948      ;;
7949
7950    beos*)
7951      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7952	allow_undefined_flag=unsupported
7953	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7954	# support --undefined.  This deserves some investigation.  FIXME
7955	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7956      else
7957	ld_shlibs=no
7958      fi
7959      ;;
7960
7961    cygwin* | mingw* | pw32* | cegcc*)
7962      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7963      # as there is no search path for DLLs.
7964      hardcode_libdir_flag_spec='-L$libdir'
7965      export_dynamic_flag_spec='${wl}--export-all-symbols'
7966      allow_undefined_flag=unsupported
7967      always_export_symbols=no
7968      enable_shared_with_static_runtimes=yes
7969      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7970
7971      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7972        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7973	# If the export-symbols file already is a .def file (1st line
7974	# is EXPORTS), use it as is; otherwise, prepend...
7975	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7976	  cp $export_symbols $output_objdir/$soname.def;
7977	else
7978	  echo EXPORTS > $output_objdir/$soname.def;
7979	  cat $export_symbols >> $output_objdir/$soname.def;
7980	fi~
7981	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7982      else
7983	ld_shlibs=no
7984      fi
7985      ;;
7986
7987    haiku*)
7988      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7989      link_all_deplibs=yes
7990      ;;
7991
7992    interix[3-9]*)
7993      hardcode_direct=no
7994      hardcode_shlibpath_var=no
7995      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7996      export_dynamic_flag_spec='${wl}-E'
7997      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7998      # Instead, shared libraries are loaded at an image base (0x10000000 by
7999      # default) and relocated if they conflict, which is a slow very memory
8000      # consuming and fragmenting process.  To avoid this, we pick a random,
8001      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8002      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8003      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8004      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'
8005      ;;
8006
8007    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8008      tmp_diet=no
8009      if test "$host_os" = linux-dietlibc; then
8010	case $cc_basename in
8011	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8012	esac
8013      fi
8014      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8015	 && test "$tmp_diet" = no
8016      then
8017	tmp_addflag=
8018	tmp_sharedflag='-shared'
8019	case $cc_basename,$host_cpu in
8020        pgcc*)				# Portland Group C compiler
8021	  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'
8022	  tmp_addflag=' $pic_flag'
8023	  ;;
8024	pgf77* | pgf90* | pgf95* | pgfortran*)
8025					# Portland Group f77 and f90 compilers
8026	  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'
8027	  tmp_addflag=' $pic_flag -Mnomain' ;;
8028	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8029	  tmp_addflag=' -i_dynamic' ;;
8030	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8031	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8032	ifc* | ifort*)			# Intel Fortran compiler
8033	  tmp_addflag=' -nofor_main' ;;
8034	lf95*)				# Lahey Fortran 8.1
8035	  whole_archive_flag_spec=
8036	  tmp_sharedflag='--shared' ;;
8037	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8038	  tmp_sharedflag='-qmkshrobj'
8039	  tmp_addflag= ;;
8040	nvcc*)	# Cuda Compiler Driver 2.2
8041	  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'
8042	  compiler_needs_object=yes
8043	  ;;
8044	esac
8045	case `$CC -V 2>&1 | sed 5q` in
8046	*Sun\ C*)			# Sun C 5.9
8047	  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'
8048	  compiler_needs_object=yes
8049	  tmp_sharedflag='-G' ;;
8050	*Sun\ F*)			# Sun Fortran 8.3
8051	  tmp_sharedflag='-G' ;;
8052	esac
8053	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8054
8055        if test "x$supports_anon_versioning" = xyes; then
8056          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8057	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8058	    echo "local: *; };" >> $output_objdir/$libname.ver~
8059	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8060        fi
8061
8062	case $cc_basename in
8063	xlf* | bgf* | bgxlf* | mpixlf*)
8064	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8065	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8066	  hardcode_libdir_flag_spec=
8067	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8068	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8069	  if test "x$supports_anon_versioning" = xyes; then
8070	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8071	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8072	      echo "local: *; };" >> $output_objdir/$libname.ver~
8073	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8074	  fi
8075	  ;;
8076	esac
8077      else
8078        ld_shlibs=no
8079      fi
8080      ;;
8081
8082    netbsd*)
8083      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8084	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8085	wlarc=
8086      else
8087	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8088	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8089      fi
8090      ;;
8091
8092    solaris*)
8093      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8094	ld_shlibs=no
8095	cat <<_LT_EOF 1>&2
8096
8097*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8098*** create shared libraries on Solaris systems.  Therefore, libtool
8099*** is disabling shared libraries support.  We urge you to upgrade GNU
8100*** binutils to release 2.9.1 or newer.  Another option is to modify
8101*** your PATH or compiler configuration so that the native linker is
8102*** used, and then restart.
8103
8104_LT_EOF
8105      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8106	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8107	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8108      else
8109	ld_shlibs=no
8110      fi
8111      ;;
8112
8113    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8114      case `$LD -v 2>&1` in
8115        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8116	ld_shlibs=no
8117	cat <<_LT_EOF 1>&2
8118
8119*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8120*** reliably create shared libraries on SCO systems.  Therefore, libtool
8121*** is disabling shared libraries support.  We urge you to upgrade GNU
8122*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8123*** your PATH or compiler configuration so that the native linker is
8124*** used, and then restart.
8125
8126_LT_EOF
8127	;;
8128	*)
8129	  # For security reasons, it is highly recommended that you always
8130	  # use absolute paths for naming shared libraries, and exclude the
8131	  # DT_RUNPATH tag from executables and libraries.  But doing so
8132	  # requires that you compile everything twice, which is a pain.
8133	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8134	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8135	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8136	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8137	  else
8138	    ld_shlibs=no
8139	  fi
8140	;;
8141      esac
8142      ;;
8143
8144    sunos4*)
8145      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8146      wlarc=
8147      hardcode_direct=yes
8148      hardcode_shlibpath_var=no
8149      ;;
8150
8151    *)
8152      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8153	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8154	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8155      else
8156	ld_shlibs=no
8157      fi
8158      ;;
8159    esac
8160
8161    if test "$ld_shlibs" = no; then
8162      runpath_var=
8163      hardcode_libdir_flag_spec=
8164      export_dynamic_flag_spec=
8165      whole_archive_flag_spec=
8166    fi
8167  else
8168    # PORTME fill in a description of your system's linker (not GNU ld)
8169    case $host_os in
8170    aix3*)
8171      allow_undefined_flag=unsupported
8172      always_export_symbols=yes
8173      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'
8174      # Note: this linker hardcodes the directories in LIBPATH if there
8175      # are no directories specified by -L.
8176      hardcode_minus_L=yes
8177      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8178	# Neither direct hardcoding nor static linking is supported with a
8179	# broken collect2.
8180	hardcode_direct=unsupported
8181      fi
8182      ;;
8183
8184    aix[4-9]*)
8185      if test "$host_cpu" = ia64; then
8186	# On IA64, the linker does run time linking by default, so we don't
8187	# have to do anything special.
8188	aix_use_runtimelinking=no
8189	exp_sym_flag='-Bexport'
8190	no_entry_flag=""
8191      else
8192	# If we're using GNU nm, then we don't want the "-C" option.
8193	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8194	# Also, AIX nm treats weak defined symbols like other global
8195	# defined symbols, whereas GNU nm marks them as "W".
8196	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8197	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8198	else
8199	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8200	fi
8201	aix_use_runtimelinking=no
8202
8203	# Test if we are trying to use run time linking or normal
8204	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8205	# need to do runtime linking.
8206	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8207	  for ld_flag in $LDFLAGS; do
8208	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8209	    aix_use_runtimelinking=yes
8210	    break
8211	  fi
8212	  done
8213	  ;;
8214	esac
8215
8216	exp_sym_flag='-bexport'
8217	no_entry_flag='-bnoentry'
8218      fi
8219
8220      # When large executables or shared objects are built, AIX ld can
8221      # have problems creating the table of contents.  If linking a library
8222      # or program results in "error TOC overflow" add -mminimal-toc to
8223      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8224      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8225
8226      archive_cmds=''
8227      hardcode_direct=yes
8228      hardcode_direct_absolute=yes
8229      hardcode_libdir_separator=':'
8230      link_all_deplibs=yes
8231      file_list_spec='${wl}-f,'
8232
8233      if test "$GCC" = yes; then
8234	case $host_os in aix4.[012]|aix4.[012].*)
8235	# We only want to do this on AIX 4.2 and lower, the check
8236	# below for broken collect2 doesn't work under 4.3+
8237	  collect2name=`${CC} -print-prog-name=collect2`
8238	  if test -f "$collect2name" &&
8239	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8240	  then
8241	  # We have reworked collect2
8242	  :
8243	  else
8244	  # We have old collect2
8245	  hardcode_direct=unsupported
8246	  # It fails to find uninstalled libraries when the uninstalled
8247	  # path is not listed in the libpath.  Setting hardcode_minus_L
8248	  # to unsupported forces relinking
8249	  hardcode_minus_L=yes
8250	  hardcode_libdir_flag_spec='-L$libdir'
8251	  hardcode_libdir_separator=
8252	  fi
8253	  ;;
8254	esac
8255	shared_flag='-shared'
8256	if test "$aix_use_runtimelinking" = yes; then
8257	  shared_flag="$shared_flag "'${wl}-G'
8258	fi
8259      else
8260	# not using gcc
8261	if test "$host_cpu" = ia64; then
8262	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8263	# chokes on -Wl,-G. The following line is correct:
8264	  shared_flag='-G'
8265	else
8266	  if test "$aix_use_runtimelinking" = yes; then
8267	    shared_flag='${wl}-G'
8268	  else
8269	    shared_flag='${wl}-bM:SRE'
8270	  fi
8271	fi
8272      fi
8273
8274      export_dynamic_flag_spec='${wl}-bexpall'
8275      # It seems that -bexpall does not export symbols beginning with
8276      # underscore (_), so it is better to generate a list of symbols to export.
8277      always_export_symbols=yes
8278      if test "$aix_use_runtimelinking" = yes; then
8279	# Warning - without using the other runtime loading flags (-brtl),
8280	# -berok will link without error, but may produce a broken library.
8281	allow_undefined_flag='-berok'
8282        # Determine the default libpath from the value encoded in an
8283        # empty executable.
8284        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8285/* end confdefs.h.  */
8286
8287int
8288main ()
8289{
8290
8291  ;
8292  return 0;
8293}
8294_ACEOF
8295if ac_fn_c_try_link "$LINENO"; then :
8296
8297lt_aix_libpath_sed='
8298    /Import File Strings/,/^$/ {
8299	/^0/ {
8300	    s/^0  *\(.*\)$/\1/
8301	    p
8302	}
8303    }'
8304aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8305# Check for a 64-bit object if we didn't find anything.
8306if test -z "$aix_libpath"; then
8307  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8308fi
8309fi
8310rm -f core conftest.err conftest.$ac_objext \
8311    conftest$ac_exeext conftest.$ac_ext
8312if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8313
8314        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8315        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8316      else
8317	if test "$host_cpu" = ia64; then
8318	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8319	  allow_undefined_flag="-z nodefs"
8320	  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"
8321	else
8322	 # Determine the default libpath from the value encoded in an
8323	 # empty executable.
8324	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8325/* end confdefs.h.  */
8326
8327int
8328main ()
8329{
8330
8331  ;
8332  return 0;
8333}
8334_ACEOF
8335if ac_fn_c_try_link "$LINENO"; then :
8336
8337lt_aix_libpath_sed='
8338    /Import File Strings/,/^$/ {
8339	/^0/ {
8340	    s/^0  *\(.*\)$/\1/
8341	    p
8342	}
8343    }'
8344aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8345# Check for a 64-bit object if we didn't find anything.
8346if test -z "$aix_libpath"; then
8347  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8348fi
8349fi
8350rm -f core conftest.err conftest.$ac_objext \
8351    conftest$ac_exeext conftest.$ac_ext
8352if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8353
8354	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8355	  # Warning - without using the other run time loading flags,
8356	  # -berok will link without error, but may produce a broken library.
8357	  no_undefined_flag=' ${wl}-bernotok'
8358	  allow_undefined_flag=' ${wl}-berok'
8359	  if test "$with_gnu_ld" = yes; then
8360	    # We only use this code for GNU lds that support --whole-archive.
8361	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8362	  else
8363	    # Exported symbols can be pulled into shared objects from archives
8364	    whole_archive_flag_spec='$convenience'
8365	  fi
8366	  archive_cmds_need_lc=yes
8367	  # This is similar to how AIX traditionally builds its shared libraries.
8368	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8369	fi
8370      fi
8371      ;;
8372
8373    amigaos*)
8374      case $host_cpu in
8375      powerpc)
8376            # see comment about AmigaOS4 .so support
8377            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8378            archive_expsym_cmds=''
8379        ;;
8380      m68k)
8381            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)'
8382            hardcode_libdir_flag_spec='-L$libdir'
8383            hardcode_minus_L=yes
8384        ;;
8385      esac
8386      ;;
8387
8388    bsdi[45]*)
8389      export_dynamic_flag_spec=-rdynamic
8390      ;;
8391
8392    cygwin* | mingw* | pw32* | cegcc*)
8393      # When not using gcc, we currently assume that we are using
8394      # Microsoft Visual C++.
8395      # hardcode_libdir_flag_spec is actually meaningless, as there is
8396      # no search path for DLLs.
8397      hardcode_libdir_flag_spec=' '
8398      allow_undefined_flag=unsupported
8399      # Tell ltmain to make .lib files, not .a files.
8400      libext=lib
8401      # Tell ltmain to make .dll files, not .so files.
8402      shrext_cmds=".dll"
8403      # FIXME: Setting linknames here is a bad hack.
8404      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8405      # The linker will automatically build a .lib file if we build a DLL.
8406      old_archive_from_new_cmds='true'
8407      # FIXME: Should let the user specify the lib program.
8408      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8409      fix_srcfile_path='`cygpath -w "$srcfile"`'
8410      enable_shared_with_static_runtimes=yes
8411      ;;
8412
8413    darwin* | rhapsody*)
8414
8415
8416  archive_cmds_need_lc=no
8417  hardcode_direct=no
8418  hardcode_automatic=yes
8419  hardcode_shlibpath_var=unsupported
8420  if test "$lt_cv_ld_force_load" = "yes"; then
8421    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\"`'
8422  else
8423    whole_archive_flag_spec=''
8424  fi
8425  link_all_deplibs=yes
8426  allow_undefined_flag="$_lt_dar_allow_undefined"
8427  case $cc_basename in
8428     ifort*) _lt_dar_can_shared=yes ;;
8429     *) _lt_dar_can_shared=$GCC ;;
8430  esac
8431  if test "$_lt_dar_can_shared" = "yes"; then
8432    output_verbose_link_cmd=func_echo_all
8433    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8434    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8435    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}"
8436    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}"
8437
8438  else
8439  ld_shlibs=no
8440  fi
8441
8442      ;;
8443
8444    dgux*)
8445      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8446      hardcode_libdir_flag_spec='-L$libdir'
8447      hardcode_shlibpath_var=no
8448      ;;
8449
8450    freebsd1*)
8451      ld_shlibs=no
8452      ;;
8453
8454    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8455    # support.  Future versions do this automatically, but an explicit c++rt0.o
8456    # does not break anything, and helps significantly (at the cost of a little
8457    # extra space).
8458    freebsd2.2*)
8459      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8460      hardcode_libdir_flag_spec='-R$libdir'
8461      hardcode_direct=yes
8462      hardcode_shlibpath_var=no
8463      ;;
8464
8465    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8466    freebsd2*)
8467      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8468      hardcode_direct=yes
8469      hardcode_minus_L=yes
8470      hardcode_shlibpath_var=no
8471      ;;
8472
8473    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8474    freebsd* | dragonfly*)
8475      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8476      hardcode_libdir_flag_spec='-R$libdir'
8477      hardcode_direct=yes
8478      hardcode_shlibpath_var=no
8479      ;;
8480
8481    hpux9*)
8482      if test "$GCC" = yes; then
8483	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8484      else
8485	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8486      fi
8487      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8488      hardcode_libdir_separator=:
8489      hardcode_direct=yes
8490
8491      # hardcode_minus_L: Not really in the search PATH,
8492      # but as the default location of the library.
8493      hardcode_minus_L=yes
8494      export_dynamic_flag_spec='${wl}-E'
8495      ;;
8496
8497    hpux10*)
8498      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8499	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8500      else
8501	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8502      fi
8503      if test "$with_gnu_ld" = no; then
8504	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8505	hardcode_libdir_flag_spec_ld='+b $libdir'
8506	hardcode_libdir_separator=:
8507	hardcode_direct=yes
8508	hardcode_direct_absolute=yes
8509	export_dynamic_flag_spec='${wl}-E'
8510	# hardcode_minus_L: Not really in the search PATH,
8511	# but as the default location of the library.
8512	hardcode_minus_L=yes
8513      fi
8514      ;;
8515
8516    hpux11*)
8517      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8518	case $host_cpu in
8519	hppa*64*)
8520	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8521	  ;;
8522	ia64*)
8523	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8524	  ;;
8525	*)
8526	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8527	  ;;
8528	esac
8529      else
8530	case $host_cpu in
8531	hppa*64*)
8532	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8533	  ;;
8534	ia64*)
8535	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8536	  ;;
8537	*)
8538
8539	  # Older versions of the 11.00 compiler do not understand -b yet
8540	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8541	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8542$as_echo_n "checking if $CC understands -b... " >&6; }
8543if test "${lt_cv_prog_compiler__b+set}" = set; then :
8544  $as_echo_n "(cached) " >&6
8545else
8546  lt_cv_prog_compiler__b=no
8547   save_LDFLAGS="$LDFLAGS"
8548   LDFLAGS="$LDFLAGS -b"
8549   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8550   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8551     # The linker can only warn and ignore the option if not recognized
8552     # So say no if there are warnings
8553     if test -s conftest.err; then
8554       # Append any errors to the config.log.
8555       cat conftest.err 1>&5
8556       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8557       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8558       if diff conftest.exp conftest.er2 >/dev/null; then
8559         lt_cv_prog_compiler__b=yes
8560       fi
8561     else
8562       lt_cv_prog_compiler__b=yes
8563     fi
8564   fi
8565   $RM -r conftest*
8566   LDFLAGS="$save_LDFLAGS"
8567
8568fi
8569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8570$as_echo "$lt_cv_prog_compiler__b" >&6; }
8571
8572if test x"$lt_cv_prog_compiler__b" = xyes; then
8573    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8574else
8575    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8576fi
8577
8578	  ;;
8579	esac
8580      fi
8581      if test "$with_gnu_ld" = no; then
8582	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8583	hardcode_libdir_separator=:
8584
8585	case $host_cpu in
8586	hppa*64*|ia64*)
8587	  hardcode_direct=no
8588	  hardcode_shlibpath_var=no
8589	  ;;
8590	*)
8591	  hardcode_direct=yes
8592	  hardcode_direct_absolute=yes
8593	  export_dynamic_flag_spec='${wl}-E'
8594
8595	  # hardcode_minus_L: Not really in the search PATH,
8596	  # but as the default location of the library.
8597	  hardcode_minus_L=yes
8598	  ;;
8599	esac
8600      fi
8601      ;;
8602
8603    irix5* | irix6* | nonstopux*)
8604      if test "$GCC" = yes; then
8605	archive_cmds='$CC -shared $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'
8606	# Try to use the -exported_symbol ld option, if it does not
8607	# work, assume that -exports_file does not work either and
8608	# implicitly export all symbols.
8609        save_LDFLAGS="$LDFLAGS"
8610        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8611        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8612/* end confdefs.h.  */
8613int foo(void) {}
8614_ACEOF
8615if ac_fn_c_try_link "$LINENO"; then :
8616  archive_expsym_cmds='$CC -shared $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'
8617
8618fi
8619rm -f core conftest.err conftest.$ac_objext \
8620    conftest$ac_exeext conftest.$ac_ext
8621        LDFLAGS="$save_LDFLAGS"
8622      else
8623	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'
8624	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'
8625      fi
8626      archive_cmds_need_lc='no'
8627      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8628      hardcode_libdir_separator=:
8629      inherit_rpath=yes
8630      link_all_deplibs=yes
8631      ;;
8632
8633    netbsd*)
8634      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8635	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8636      else
8637	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8638      fi
8639      hardcode_libdir_flag_spec='-R$libdir'
8640      hardcode_direct=yes
8641      hardcode_shlibpath_var=no
8642      ;;
8643
8644    newsos6)
8645      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8646      hardcode_direct=yes
8647      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8648      hardcode_libdir_separator=:
8649      hardcode_shlibpath_var=no
8650      ;;
8651
8652    *nto* | *qnx*)
8653      ;;
8654
8655    openbsd*)
8656      if test -f /usr/libexec/ld.so; then
8657	hardcode_direct=yes
8658	hardcode_shlibpath_var=no
8659	hardcode_direct_absolute=yes
8660	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8661	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8662	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8663	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8664	  export_dynamic_flag_spec='${wl}-E'
8665	else
8666	  case $host_os in
8667	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8668	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8669	     hardcode_libdir_flag_spec='-R$libdir'
8670	     ;;
8671	   *)
8672	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8673	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8674	     ;;
8675	  esac
8676	fi
8677      else
8678	ld_shlibs=no
8679      fi
8680      ;;
8681
8682    os2*)
8683      hardcode_libdir_flag_spec='-L$libdir'
8684      hardcode_minus_L=yes
8685      allow_undefined_flag=unsupported
8686      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8687      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8688      ;;
8689
8690    osf3*)
8691      if test "$GCC" = yes; then
8692	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8693	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'
8694      else
8695	allow_undefined_flag=' -expect_unresolved \*'
8696	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'
8697      fi
8698      archive_cmds_need_lc='no'
8699      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8700      hardcode_libdir_separator=:
8701      ;;
8702
8703    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8704      if test "$GCC" = yes; then
8705	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8706	archive_cmds='$CC -shared${allow_undefined_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'
8707	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8708      else
8709	allow_undefined_flag=' -expect_unresolved \*'
8710	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'
8711	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~
8712	$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'
8713
8714	# Both c and cxx compiler support -rpath directly
8715	hardcode_libdir_flag_spec='-rpath $libdir'
8716      fi
8717      archive_cmds_need_lc='no'
8718      hardcode_libdir_separator=:
8719      ;;
8720
8721    solaris*)
8722      no_undefined_flag=' -z defs'
8723      if test "$GCC" = yes; then
8724	wlarc='${wl}'
8725	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8726	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8727	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8728      else
8729	case `$CC -V 2>&1` in
8730	*"Compilers 5.0"*)
8731	  wlarc=''
8732	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8733	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8734	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8735	  ;;
8736	*)
8737	  wlarc='${wl}'
8738	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8739	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8740	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8741	  ;;
8742	esac
8743      fi
8744      hardcode_libdir_flag_spec='-R$libdir'
8745      hardcode_shlibpath_var=no
8746      case $host_os in
8747      solaris2.[0-5] | solaris2.[0-5].*) ;;
8748      *)
8749	# The compiler driver will combine and reorder linker options,
8750	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8751	# but is careful enough not to reorder.
8752	# Supported since Solaris 2.6 (maybe 2.5.1?)
8753	if test "$GCC" = yes; then
8754	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8755	else
8756	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8757	fi
8758	;;
8759      esac
8760      link_all_deplibs=yes
8761      ;;
8762
8763    sunos4*)
8764      if test "x$host_vendor" = xsequent; then
8765	# Use $CC to link under sequent, because it throws in some extra .o
8766	# files that make .init and .fini sections work.
8767	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8768      else
8769	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8770      fi
8771      hardcode_libdir_flag_spec='-L$libdir'
8772      hardcode_direct=yes
8773      hardcode_minus_L=yes
8774      hardcode_shlibpath_var=no
8775      ;;
8776
8777    sysv4)
8778      case $host_vendor in
8779	sni)
8780	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8781	  hardcode_direct=yes # is this really true???
8782	;;
8783	siemens)
8784	  ## LD is ld it makes a PLAMLIB
8785	  ## CC just makes a GrossModule.
8786	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8787	  reload_cmds='$CC -r -o $output$reload_objs'
8788	  hardcode_direct=no
8789        ;;
8790	motorola)
8791	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8792	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8793	;;
8794      esac
8795      runpath_var='LD_RUN_PATH'
8796      hardcode_shlibpath_var=no
8797      ;;
8798
8799    sysv4.3*)
8800      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8801      hardcode_shlibpath_var=no
8802      export_dynamic_flag_spec='-Bexport'
8803      ;;
8804
8805    sysv4*MP*)
8806      if test -d /usr/nec; then
8807	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8808	hardcode_shlibpath_var=no
8809	runpath_var=LD_RUN_PATH
8810	hardcode_runpath_var=yes
8811	ld_shlibs=yes
8812      fi
8813      ;;
8814
8815    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8816      no_undefined_flag='${wl}-z,text'
8817      archive_cmds_need_lc=no
8818      hardcode_shlibpath_var=no
8819      runpath_var='LD_RUN_PATH'
8820
8821      if test "$GCC" = yes; then
8822	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8823	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8824      else
8825	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8826	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8827      fi
8828      ;;
8829
8830    sysv5* | sco3.2v5* | sco5v6*)
8831      # Note: We can NOT use -z defs as we might desire, because we do not
8832      # link with -lc, and that would cause any symbols used from libc to
8833      # always be unresolved, which means just about no library would
8834      # ever link correctly.  If we're not using GNU ld we use -z text
8835      # though, which does catch some bad symbols but isn't as heavy-handed
8836      # as -z defs.
8837      no_undefined_flag='${wl}-z,text'
8838      allow_undefined_flag='${wl}-z,nodefs'
8839      archive_cmds_need_lc=no
8840      hardcode_shlibpath_var=no
8841      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8842      hardcode_libdir_separator=':'
8843      link_all_deplibs=yes
8844      export_dynamic_flag_spec='${wl}-Bexport'
8845      runpath_var='LD_RUN_PATH'
8846
8847      if test "$GCC" = yes; then
8848	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8849	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8850      else
8851	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8852	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8853      fi
8854      ;;
8855
8856    uts4*)
8857      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8858      hardcode_libdir_flag_spec='-L$libdir'
8859      hardcode_shlibpath_var=no
8860      ;;
8861
8862    *)
8863      ld_shlibs=no
8864      ;;
8865    esac
8866
8867    if test x$host_vendor = xsni; then
8868      case $host in
8869      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8870	export_dynamic_flag_spec='${wl}-Blargedynsym'
8871	;;
8872      esac
8873    fi
8874  fi
8875
8876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8877$as_echo "$ld_shlibs" >&6; }
8878test "$ld_shlibs" = no && can_build_shared=no
8879
8880with_gnu_ld=$with_gnu_ld
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896#
8897# Do we need to explicitly link libc?
8898#
8899case "x$archive_cmds_need_lc" in
8900x|xyes)
8901  # Assume -lc should be added
8902  archive_cmds_need_lc=yes
8903
8904  if test "$enable_shared" = yes && test "$GCC" = yes; then
8905    case $archive_cmds in
8906    *'~'*)
8907      # FIXME: we may have to deal with multi-command sequences.
8908      ;;
8909    '$CC '*)
8910      # Test whether the compiler implicitly links with -lc since on some
8911      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8912      # to ld, don't add -lc before -lgcc.
8913      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8914$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8915if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
8916  $as_echo_n "(cached) " >&6
8917else
8918  $RM conftest*
8919	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8920
8921	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8922  (eval $ac_compile) 2>&5
8923  ac_status=$?
8924  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8925  test $ac_status = 0; } 2>conftest.err; then
8926	  soname=conftest
8927	  lib=conftest
8928	  libobjs=conftest.$ac_objext
8929	  deplibs=
8930	  wl=$lt_prog_compiler_wl
8931	  pic_flag=$lt_prog_compiler_pic
8932	  compiler_flags=-v
8933	  linker_flags=-v
8934	  verstring=
8935	  output_objdir=.
8936	  libname=conftest
8937	  lt_save_allow_undefined_flag=$allow_undefined_flag
8938	  allow_undefined_flag=
8939	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8940  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8941  ac_status=$?
8942  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8943  test $ac_status = 0; }
8944	  then
8945	    lt_cv_archive_cmds_need_lc=no
8946	  else
8947	    lt_cv_archive_cmds_need_lc=yes
8948	  fi
8949	  allow_undefined_flag=$lt_save_allow_undefined_flag
8950	else
8951	  cat conftest.err 1>&5
8952	fi
8953	$RM conftest*
8954
8955fi
8956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
8957$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
8958      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
8959      ;;
8960    esac
8961  fi
8962  ;;
8963esac
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9122$as_echo_n "checking dynamic linker characteristics... " >&6; }
9123
9124if test "$GCC" = yes; then
9125  case $host_os in
9126    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9127    *) lt_awk_arg="/^libraries:/" ;;
9128  esac
9129  case $host_os in
9130    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9131    *) lt_sed_strip_eq="s,=/,/,g" ;;
9132  esac
9133  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9134  case $lt_search_path_spec in
9135  *\;*)
9136    # if the path contains ";" then we assume it to be the separator
9137    # otherwise default to the standard path separator (i.e. ":") - it is
9138    # assumed that no part of a normal pathname contains ";" but that should
9139    # okay in the real world where ";" in dirpaths is itself problematic.
9140    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9141    ;;
9142  *)
9143    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9144    ;;
9145  esac
9146  # Ok, now we have the path, separated by spaces, we can step through it
9147  # and add multilib dir if necessary.
9148  lt_tmp_lt_search_path_spec=
9149  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9150  for lt_sys_path in $lt_search_path_spec; do
9151    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9152      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9153    else
9154      test -d "$lt_sys_path" && \
9155	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9156    fi
9157  done
9158  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9159BEGIN {RS=" "; FS="/|\n";} {
9160  lt_foo="";
9161  lt_count=0;
9162  for (lt_i = NF; lt_i > 0; lt_i--) {
9163    if ($lt_i != "" && $lt_i != ".") {
9164      if ($lt_i == "..") {
9165        lt_count++;
9166      } else {
9167        if (lt_count == 0) {
9168          lt_foo="/" $lt_i lt_foo;
9169        } else {
9170          lt_count--;
9171        }
9172      }
9173    }
9174  }
9175  if (lt_foo != "") { lt_freq[lt_foo]++; }
9176  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9177}'`
9178  # AWK program above erroneously prepends '/' to C:/dos/paths
9179  # for these hosts.
9180  case $host_os in
9181    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9182      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9183  esac
9184  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9185else
9186  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9187fi
9188library_names_spec=
9189libname_spec='lib$name'
9190soname_spec=
9191shrext_cmds=".so"
9192postinstall_cmds=
9193postuninstall_cmds=
9194finish_cmds=
9195finish_eval=
9196shlibpath_var=
9197shlibpath_overrides_runpath=unknown
9198version_type=none
9199dynamic_linker="$host_os ld.so"
9200sys_lib_dlsearch_path_spec="/lib /usr/lib"
9201need_lib_prefix=unknown
9202hardcode_into_libs=no
9203
9204# when you set need_version to no, make sure it does not cause -set_version
9205# flags to be left without arguments
9206need_version=unknown
9207
9208case $host_os in
9209aix3*)
9210  version_type=linux
9211  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9212  shlibpath_var=LIBPATH
9213
9214  # AIX 3 has no versioning support, so we append a major version to the name.
9215  soname_spec='${libname}${release}${shared_ext}$major'
9216  ;;
9217
9218aix[4-9]*)
9219  version_type=linux
9220  need_lib_prefix=no
9221  need_version=no
9222  hardcode_into_libs=yes
9223  if test "$host_cpu" = ia64; then
9224    # AIX 5 supports IA64
9225    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9226    shlibpath_var=LD_LIBRARY_PATH
9227  else
9228    # With GCC up to 2.95.x, collect2 would create an import file
9229    # for dependence libraries.  The import file would start with
9230    # the line `#! .'.  This would cause the generated library to
9231    # depend on `.', always an invalid library.  This was fixed in
9232    # development snapshots of GCC prior to 3.0.
9233    case $host_os in
9234      aix4 | aix4.[01] | aix4.[01].*)
9235      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9236	   echo ' yes '
9237	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9238	:
9239      else
9240	can_build_shared=no
9241      fi
9242      ;;
9243    esac
9244    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9245    # soname into executable. Probably we can add versioning support to
9246    # collect2, so additional links can be useful in future.
9247    if test "$aix_use_runtimelinking" = yes; then
9248      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9249      # instead of lib<name>.a to let people know that these are not
9250      # typical AIX shared libraries.
9251      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9252    else
9253      # We preserve .a as extension for shared libraries through AIX4.2
9254      # and later when we are not doing run time linking.
9255      library_names_spec='${libname}${release}.a $libname.a'
9256      soname_spec='${libname}${release}${shared_ext}$major'
9257    fi
9258    shlibpath_var=LIBPATH
9259  fi
9260  ;;
9261
9262amigaos*)
9263  case $host_cpu in
9264  powerpc)
9265    # Since July 2007 AmigaOS4 officially supports .so libraries.
9266    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9267    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9268    ;;
9269  m68k)
9270    library_names_spec='$libname.ixlibrary $libname.a'
9271    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9272    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9273    ;;
9274  esac
9275  ;;
9276
9277beos*)
9278  library_names_spec='${libname}${shared_ext}'
9279  dynamic_linker="$host_os ld.so"
9280  shlibpath_var=LIBRARY_PATH
9281  ;;
9282
9283bsdi[45]*)
9284  version_type=linux
9285  need_version=no
9286  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9287  soname_spec='${libname}${release}${shared_ext}$major'
9288  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9289  shlibpath_var=LD_LIBRARY_PATH
9290  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9291  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9292  # the default ld.so.conf also contains /usr/contrib/lib and
9293  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9294  # libtool to hard-code these into programs
9295  ;;
9296
9297cygwin* | mingw* | pw32* | cegcc*)
9298  version_type=windows
9299  shrext_cmds=".dll"
9300  need_version=no
9301  need_lib_prefix=no
9302
9303  case $GCC,$host_os in
9304  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9305    library_names_spec='$libname.dll.a'
9306    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9307    postinstall_cmds='base_file=`basename \${file}`~
9308      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9309      dldir=$destdir/`dirname \$dlpath`~
9310      test -d \$dldir || mkdir -p \$dldir~
9311      $install_prog $dir/$dlname \$dldir/$dlname~
9312      chmod a+x \$dldir/$dlname~
9313      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9314        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9315      fi'
9316    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9317      dlpath=$dir/\$dldll~
9318       $RM \$dlpath'
9319    shlibpath_overrides_runpath=yes
9320
9321    case $host_os in
9322    cygwin*)
9323      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9324      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9325
9326      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9327      ;;
9328    mingw* | cegcc*)
9329      # MinGW DLLs use traditional 'lib' prefix
9330      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9331      ;;
9332    pw32*)
9333      # pw32 DLLs use 'pw' prefix rather than 'lib'
9334      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9335      ;;
9336    esac
9337    ;;
9338
9339  *)
9340    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9341    ;;
9342  esac
9343  dynamic_linker='Win32 ld.exe'
9344  # FIXME: first we should search . and the directory the executable is in
9345  shlibpath_var=PATH
9346  ;;
9347
9348darwin* | rhapsody*)
9349  dynamic_linker="$host_os dyld"
9350  version_type=darwin
9351  need_lib_prefix=no
9352  need_version=no
9353  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9354  soname_spec='${libname}${release}${major}$shared_ext'
9355  shlibpath_overrides_runpath=yes
9356  shlibpath_var=DYLD_LIBRARY_PATH
9357  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9358
9359  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9360  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9361  ;;
9362
9363dgux*)
9364  version_type=linux
9365  need_lib_prefix=no
9366  need_version=no
9367  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9368  soname_spec='${libname}${release}${shared_ext}$major'
9369  shlibpath_var=LD_LIBRARY_PATH
9370  ;;
9371
9372freebsd1*)
9373  dynamic_linker=no
9374  ;;
9375
9376freebsd* | dragonfly*)
9377  # DragonFly does not have aout.  When/if they implement a new
9378  # versioning mechanism, adjust this.
9379  if test -x /usr/bin/objformat; then
9380    objformat=`/usr/bin/objformat`
9381  else
9382    case $host_os in
9383    freebsd[123]*) objformat=aout ;;
9384    *) objformat=elf ;;
9385    esac
9386  fi
9387  version_type=freebsd-$objformat
9388  case $version_type in
9389    freebsd-elf*)
9390      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9391      need_version=no
9392      need_lib_prefix=no
9393      ;;
9394    freebsd-*)
9395      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9396      need_version=yes
9397      ;;
9398  esac
9399  shlibpath_var=LD_LIBRARY_PATH
9400  case $host_os in
9401  freebsd2*)
9402    shlibpath_overrides_runpath=yes
9403    ;;
9404  freebsd3.[01]* | freebsdelf3.[01]*)
9405    shlibpath_overrides_runpath=yes
9406    hardcode_into_libs=yes
9407    ;;
9408  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9409  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9410    shlibpath_overrides_runpath=no
9411    hardcode_into_libs=yes
9412    ;;
9413  *) # from 4.6 on, and DragonFly
9414    shlibpath_overrides_runpath=yes
9415    hardcode_into_libs=yes
9416    ;;
9417  esac
9418  ;;
9419
9420gnu*)
9421  version_type=linux
9422  need_lib_prefix=no
9423  need_version=no
9424  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9425  soname_spec='${libname}${release}${shared_ext}$major'
9426  shlibpath_var=LD_LIBRARY_PATH
9427  hardcode_into_libs=yes
9428  ;;
9429
9430haiku*)
9431  version_type=linux
9432  need_lib_prefix=no
9433  need_version=no
9434  dynamic_linker="$host_os runtime_loader"
9435  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9436  soname_spec='${libname}${release}${shared_ext}$major'
9437  shlibpath_var=LIBRARY_PATH
9438  shlibpath_overrides_runpath=yes
9439  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9440  hardcode_into_libs=yes
9441  ;;
9442
9443hpux9* | hpux10* | hpux11*)
9444  # Give a soname corresponding to the major version so that dld.sl refuses to
9445  # link against other versions.
9446  version_type=sunos
9447  need_lib_prefix=no
9448  need_version=no
9449  case $host_cpu in
9450  ia64*)
9451    shrext_cmds='.so'
9452    hardcode_into_libs=yes
9453    dynamic_linker="$host_os dld.so"
9454    shlibpath_var=LD_LIBRARY_PATH
9455    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9456    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9457    soname_spec='${libname}${release}${shared_ext}$major'
9458    if test "X$HPUX_IA64_MODE" = X32; then
9459      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9460    else
9461      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9462    fi
9463    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9464    ;;
9465  hppa*64*)
9466    shrext_cmds='.sl'
9467    hardcode_into_libs=yes
9468    dynamic_linker="$host_os dld.sl"
9469    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9470    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9471    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9472    soname_spec='${libname}${release}${shared_ext}$major'
9473    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9474    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9475    ;;
9476  *)
9477    shrext_cmds='.sl'
9478    dynamic_linker="$host_os dld.sl"
9479    shlibpath_var=SHLIB_PATH
9480    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9481    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9482    soname_spec='${libname}${release}${shared_ext}$major'
9483    ;;
9484  esac
9485  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9486  postinstall_cmds='chmod 555 $lib'
9487  # or fails outright, so override atomically:
9488  install_override_mode=555
9489  ;;
9490
9491interix[3-9]*)
9492  version_type=linux
9493  need_lib_prefix=no
9494  need_version=no
9495  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9496  soname_spec='${libname}${release}${shared_ext}$major'
9497  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9498  shlibpath_var=LD_LIBRARY_PATH
9499  shlibpath_overrides_runpath=no
9500  hardcode_into_libs=yes
9501  ;;
9502
9503irix5* | irix6* | nonstopux*)
9504  case $host_os in
9505    nonstopux*) version_type=nonstopux ;;
9506    *)
9507	if test "$lt_cv_prog_gnu_ld" = yes; then
9508		version_type=linux
9509	else
9510		version_type=irix
9511	fi ;;
9512  esac
9513  need_lib_prefix=no
9514  need_version=no
9515  soname_spec='${libname}${release}${shared_ext}$major'
9516  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9517  case $host_os in
9518  irix5* | nonstopux*)
9519    libsuff= shlibsuff=
9520    ;;
9521  *)
9522    case $LD in # libtool.m4 will add one of these switches to LD
9523    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9524      libsuff= shlibsuff= libmagic=32-bit;;
9525    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9526      libsuff=32 shlibsuff=N32 libmagic=N32;;
9527    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9528      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9529    *) libsuff= shlibsuff= libmagic=never-match;;
9530    esac
9531    ;;
9532  esac
9533  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9534  shlibpath_overrides_runpath=no
9535  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9536  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9537  hardcode_into_libs=yes
9538  ;;
9539
9540# No shared lib support for Linux oldld, aout, or coff.
9541linux*oldld* | linux*aout* | linux*coff*)
9542  dynamic_linker=no
9543  ;;
9544
9545# This must be Linux ELF.
9546linux* | k*bsd*-gnu | kopensolaris*-gnu)
9547  version_type=linux
9548  need_lib_prefix=no
9549  need_version=no
9550  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9551  soname_spec='${libname}${release}${shared_ext}$major'
9552  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9553  shlibpath_var=LD_LIBRARY_PATH
9554  shlibpath_overrides_runpath=no
9555
9556  # Some binutils ld are patched to set DT_RUNPATH
9557  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9558  $as_echo_n "(cached) " >&6
9559else
9560  lt_cv_shlibpath_overrides_runpath=no
9561    save_LDFLAGS=$LDFLAGS
9562    save_libdir=$libdir
9563    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9564	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9565    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9566/* end confdefs.h.  */
9567
9568int
9569main ()
9570{
9571
9572  ;
9573  return 0;
9574}
9575_ACEOF
9576if ac_fn_c_try_link "$LINENO"; then :
9577  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9578  lt_cv_shlibpath_overrides_runpath=yes
9579fi
9580fi
9581rm -f core conftest.err conftest.$ac_objext \
9582    conftest$ac_exeext conftest.$ac_ext
9583    LDFLAGS=$save_LDFLAGS
9584    libdir=$save_libdir
9585
9586fi
9587
9588  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9589
9590  # This implies no fast_install, which is unacceptable.
9591  # Some rework will be needed to allow for fast_install
9592  # before this can be enabled.
9593  hardcode_into_libs=yes
9594
9595  # Add ABI-specific directories to the system library path.
9596  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9597
9598  # Append ld.so.conf contents to the search path
9599  if test -f /etc/ld.so.conf; then
9600    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' ' '`
9601    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9602
9603  fi
9604
9605  # We used to test for /lib/ld.so.1 and disable shared libraries on
9606  # powerpc, because MkLinux only supported shared libraries with the
9607  # GNU dynamic linker.  Since this was broken with cross compilers,
9608  # most powerpc-linux boxes support dynamic linking these days and
9609  # people can always --disable-shared, the test was removed, and we
9610  # assume the GNU/Linux dynamic linker is in use.
9611  dynamic_linker='GNU/Linux ld.so'
9612  ;;
9613
9614netbsd*)
9615  version_type=sunos
9616  need_lib_prefix=no
9617  need_version=no
9618  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9619    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9620    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9621    dynamic_linker='NetBSD (a.out) ld.so'
9622  else
9623    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9624    soname_spec='${libname}${release}${shared_ext}$major'
9625    dynamic_linker='NetBSD ld.elf_so'
9626  fi
9627  shlibpath_var=LD_LIBRARY_PATH
9628  shlibpath_overrides_runpath=yes
9629  hardcode_into_libs=yes
9630  ;;
9631
9632newsos6)
9633  version_type=linux
9634  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9635  shlibpath_var=LD_LIBRARY_PATH
9636  shlibpath_overrides_runpath=yes
9637  ;;
9638
9639*nto* | *qnx*)
9640  version_type=qnx
9641  need_lib_prefix=no
9642  need_version=no
9643  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9644  soname_spec='${libname}${release}${shared_ext}$major'
9645  shlibpath_var=LD_LIBRARY_PATH
9646  shlibpath_overrides_runpath=no
9647  hardcode_into_libs=yes
9648  dynamic_linker='ldqnx.so'
9649  ;;
9650
9651openbsd*)
9652  version_type=sunos
9653  sys_lib_dlsearch_path_spec="/usr/lib"
9654  need_lib_prefix=no
9655  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9656  case $host_os in
9657    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9658    *)				need_version=no  ;;
9659  esac
9660  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9661  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9662  shlibpath_var=LD_LIBRARY_PATH
9663  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9664    case $host_os in
9665      openbsd2.[89] | openbsd2.[89].*)
9666	shlibpath_overrides_runpath=no
9667	;;
9668      *)
9669	shlibpath_overrides_runpath=yes
9670	;;
9671      esac
9672  else
9673    shlibpath_overrides_runpath=yes
9674  fi
9675  ;;
9676
9677os2*)
9678  libname_spec='$name'
9679  shrext_cmds=".dll"
9680  need_lib_prefix=no
9681  library_names_spec='$libname${shared_ext} $libname.a'
9682  dynamic_linker='OS/2 ld.exe'
9683  shlibpath_var=LIBPATH
9684  ;;
9685
9686osf3* | osf4* | osf5*)
9687  version_type=osf
9688  need_lib_prefix=no
9689  need_version=no
9690  soname_spec='${libname}${release}${shared_ext}$major'
9691  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9692  shlibpath_var=LD_LIBRARY_PATH
9693  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9694  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9695  ;;
9696
9697rdos*)
9698  dynamic_linker=no
9699  ;;
9700
9701solaris*)
9702  version_type=linux
9703  need_lib_prefix=no
9704  need_version=no
9705  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9706  soname_spec='${libname}${release}${shared_ext}$major'
9707  shlibpath_var=LD_LIBRARY_PATH
9708  shlibpath_overrides_runpath=yes
9709  hardcode_into_libs=yes
9710  # ldd complains unless libraries are executable
9711  postinstall_cmds='chmod +x $lib'
9712  ;;
9713
9714sunos4*)
9715  version_type=sunos
9716  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9717  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9718  shlibpath_var=LD_LIBRARY_PATH
9719  shlibpath_overrides_runpath=yes
9720  if test "$with_gnu_ld" = yes; then
9721    need_lib_prefix=no
9722  fi
9723  need_version=yes
9724  ;;
9725
9726sysv4 | sysv4.3*)
9727  version_type=linux
9728  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9729  soname_spec='${libname}${release}${shared_ext}$major'
9730  shlibpath_var=LD_LIBRARY_PATH
9731  case $host_vendor in
9732    sni)
9733      shlibpath_overrides_runpath=no
9734      need_lib_prefix=no
9735      runpath_var=LD_RUN_PATH
9736      ;;
9737    siemens)
9738      need_lib_prefix=no
9739      ;;
9740    motorola)
9741      need_lib_prefix=no
9742      need_version=no
9743      shlibpath_overrides_runpath=no
9744      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9745      ;;
9746  esac
9747  ;;
9748
9749sysv4*MP*)
9750  if test -d /usr/nec ;then
9751    version_type=linux
9752    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9753    soname_spec='$libname${shared_ext}.$major'
9754    shlibpath_var=LD_LIBRARY_PATH
9755  fi
9756  ;;
9757
9758sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9759  version_type=freebsd-elf
9760  need_lib_prefix=no
9761  need_version=no
9762  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9763  soname_spec='${libname}${release}${shared_ext}$major'
9764  shlibpath_var=LD_LIBRARY_PATH
9765  shlibpath_overrides_runpath=yes
9766  hardcode_into_libs=yes
9767  if test "$with_gnu_ld" = yes; then
9768    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9769  else
9770    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9771    case $host_os in
9772      sco3.2v5*)
9773        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9774	;;
9775    esac
9776  fi
9777  sys_lib_dlsearch_path_spec='/usr/lib'
9778  ;;
9779
9780tpf*)
9781  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9782  version_type=linux
9783  need_lib_prefix=no
9784  need_version=no
9785  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9786  shlibpath_var=LD_LIBRARY_PATH
9787  shlibpath_overrides_runpath=no
9788  hardcode_into_libs=yes
9789  ;;
9790
9791uts4*)
9792  version_type=linux
9793  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9794  soname_spec='${libname}${release}${shared_ext}$major'
9795  shlibpath_var=LD_LIBRARY_PATH
9796  ;;
9797
9798*)
9799  dynamic_linker=no
9800  ;;
9801esac
9802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9803$as_echo "$dynamic_linker" >&6; }
9804test "$dynamic_linker" = no && can_build_shared=no
9805
9806variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9807if test "$GCC" = yes; then
9808  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9809fi
9810
9811if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9812  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9813fi
9814if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9815  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9816fi
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9910$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9911hardcode_action=
9912if test -n "$hardcode_libdir_flag_spec" ||
9913   test -n "$runpath_var" ||
9914   test "X$hardcode_automatic" = "Xyes" ; then
9915
9916  # We can hardcode non-existent directories.
9917  if test "$hardcode_direct" != no &&
9918     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9919     # have to relink, otherwise we might link with an installed library
9920     # when we should be linking with a yet-to-be-installed one
9921     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9922     test "$hardcode_minus_L" != no; then
9923    # Linking always hardcodes the temporary library directory.
9924    hardcode_action=relink
9925  else
9926    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9927    hardcode_action=immediate
9928  fi
9929else
9930  # We cannot hardcode anything, or else we can only hardcode existing
9931  # directories.
9932  hardcode_action=unsupported
9933fi
9934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9935$as_echo "$hardcode_action" >&6; }
9936
9937if test "$hardcode_action" = relink ||
9938   test "$inherit_rpath" = yes; then
9939  # Fast installation is not supported
9940  enable_fast_install=no
9941elif test "$shlibpath_overrides_runpath" = yes ||
9942     test "$enable_shared" = no; then
9943  # Fast installation is not necessary
9944  enable_fast_install=needless
9945fi
9946
9947
9948
9949
9950
9951
9952  if test "x$enable_dlopen" != xyes; then
9953  enable_dlopen=unknown
9954  enable_dlopen_self=unknown
9955  enable_dlopen_self_static=unknown
9956else
9957  lt_cv_dlopen=no
9958  lt_cv_dlopen_libs=
9959
9960  case $host_os in
9961  beos*)
9962    lt_cv_dlopen="load_add_on"
9963    lt_cv_dlopen_libs=
9964    lt_cv_dlopen_self=yes
9965    ;;
9966
9967  mingw* | pw32* | cegcc*)
9968    lt_cv_dlopen="LoadLibrary"
9969    lt_cv_dlopen_libs=
9970    ;;
9971
9972  cygwin*)
9973    lt_cv_dlopen="dlopen"
9974    lt_cv_dlopen_libs=
9975    ;;
9976
9977  darwin*)
9978  # if libdl is installed we need to link against it
9979    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9980$as_echo_n "checking for dlopen in -ldl... " >&6; }
9981if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9982  $as_echo_n "(cached) " >&6
9983else
9984  ac_check_lib_save_LIBS=$LIBS
9985LIBS="-ldl  $LIBS"
9986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987/* end confdefs.h.  */
9988
9989/* Override any GCC internal prototype to avoid an error.
9990   Use char because int might match the return type of a GCC
9991   builtin and then its argument prototype would still apply.  */
9992#ifdef __cplusplus
9993extern "C"
9994#endif
9995char dlopen ();
9996int
9997main ()
9998{
9999return dlopen ();
10000  ;
10001  return 0;
10002}
10003_ACEOF
10004if ac_fn_c_try_link "$LINENO"; then :
10005  ac_cv_lib_dl_dlopen=yes
10006else
10007  ac_cv_lib_dl_dlopen=no
10008fi
10009rm -f core conftest.err conftest.$ac_objext \
10010    conftest$ac_exeext conftest.$ac_ext
10011LIBS=$ac_check_lib_save_LIBS
10012fi
10013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10014$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10015if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10016  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10017else
10018
10019    lt_cv_dlopen="dyld"
10020    lt_cv_dlopen_libs=
10021    lt_cv_dlopen_self=yes
10022
10023fi
10024
10025    ;;
10026
10027  *)
10028    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10029if test "x$ac_cv_func_shl_load" = x""yes; then :
10030  lt_cv_dlopen="shl_load"
10031else
10032  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10033$as_echo_n "checking for shl_load in -ldld... " >&6; }
10034if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10035  $as_echo_n "(cached) " >&6
10036else
10037  ac_check_lib_save_LIBS=$LIBS
10038LIBS="-ldld  $LIBS"
10039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10040/* end confdefs.h.  */
10041
10042/* Override any GCC internal prototype to avoid an error.
10043   Use char because int might match the return type of a GCC
10044   builtin and then its argument prototype would still apply.  */
10045#ifdef __cplusplus
10046extern "C"
10047#endif
10048char shl_load ();
10049int
10050main ()
10051{
10052return shl_load ();
10053  ;
10054  return 0;
10055}
10056_ACEOF
10057if ac_fn_c_try_link "$LINENO"; then :
10058  ac_cv_lib_dld_shl_load=yes
10059else
10060  ac_cv_lib_dld_shl_load=no
10061fi
10062rm -f core conftest.err conftest.$ac_objext \
10063    conftest$ac_exeext conftest.$ac_ext
10064LIBS=$ac_check_lib_save_LIBS
10065fi
10066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10067$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10068if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10069  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10070else
10071  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10072if test "x$ac_cv_func_dlopen" = x""yes; then :
10073  lt_cv_dlopen="dlopen"
10074else
10075  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10076$as_echo_n "checking for dlopen in -ldl... " >&6; }
10077if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10078  $as_echo_n "(cached) " >&6
10079else
10080  ac_check_lib_save_LIBS=$LIBS
10081LIBS="-ldl  $LIBS"
10082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10083/* end confdefs.h.  */
10084
10085/* Override any GCC internal prototype to avoid an error.
10086   Use char because int might match the return type of a GCC
10087   builtin and then its argument prototype would still apply.  */
10088#ifdef __cplusplus
10089extern "C"
10090#endif
10091char dlopen ();
10092int
10093main ()
10094{
10095return dlopen ();
10096  ;
10097  return 0;
10098}
10099_ACEOF
10100if ac_fn_c_try_link "$LINENO"; then :
10101  ac_cv_lib_dl_dlopen=yes
10102else
10103  ac_cv_lib_dl_dlopen=no
10104fi
10105rm -f core conftest.err conftest.$ac_objext \
10106    conftest$ac_exeext conftest.$ac_ext
10107LIBS=$ac_check_lib_save_LIBS
10108fi
10109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10110$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10111if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10112  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10113else
10114  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10115$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10116if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10117  $as_echo_n "(cached) " >&6
10118else
10119  ac_check_lib_save_LIBS=$LIBS
10120LIBS="-lsvld  $LIBS"
10121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10122/* end confdefs.h.  */
10123
10124/* Override any GCC internal prototype to avoid an error.
10125   Use char because int might match the return type of a GCC
10126   builtin and then its argument prototype would still apply.  */
10127#ifdef __cplusplus
10128extern "C"
10129#endif
10130char dlopen ();
10131int
10132main ()
10133{
10134return dlopen ();
10135  ;
10136  return 0;
10137}
10138_ACEOF
10139if ac_fn_c_try_link "$LINENO"; then :
10140  ac_cv_lib_svld_dlopen=yes
10141else
10142  ac_cv_lib_svld_dlopen=no
10143fi
10144rm -f core conftest.err conftest.$ac_objext \
10145    conftest$ac_exeext conftest.$ac_ext
10146LIBS=$ac_check_lib_save_LIBS
10147fi
10148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10149$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10150if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10151  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10152else
10153  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10154$as_echo_n "checking for dld_link in -ldld... " >&6; }
10155if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10156  $as_echo_n "(cached) " >&6
10157else
10158  ac_check_lib_save_LIBS=$LIBS
10159LIBS="-ldld  $LIBS"
10160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10161/* end confdefs.h.  */
10162
10163/* Override any GCC internal prototype to avoid an error.
10164   Use char because int might match the return type of a GCC
10165   builtin and then its argument prototype would still apply.  */
10166#ifdef __cplusplus
10167extern "C"
10168#endif
10169char dld_link ();
10170int
10171main ()
10172{
10173return dld_link ();
10174  ;
10175  return 0;
10176}
10177_ACEOF
10178if ac_fn_c_try_link "$LINENO"; then :
10179  ac_cv_lib_dld_dld_link=yes
10180else
10181  ac_cv_lib_dld_dld_link=no
10182fi
10183rm -f core conftest.err conftest.$ac_objext \
10184    conftest$ac_exeext conftest.$ac_ext
10185LIBS=$ac_check_lib_save_LIBS
10186fi
10187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10188$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10189if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10190  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10191fi
10192
10193
10194fi
10195
10196
10197fi
10198
10199
10200fi
10201
10202
10203fi
10204
10205
10206fi
10207
10208    ;;
10209  esac
10210
10211  if test "x$lt_cv_dlopen" != xno; then
10212    enable_dlopen=yes
10213  else
10214    enable_dlopen=no
10215  fi
10216
10217  case $lt_cv_dlopen in
10218  dlopen)
10219    save_CPPFLAGS="$CPPFLAGS"
10220    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10221
10222    save_LDFLAGS="$LDFLAGS"
10223    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10224
10225    save_LIBS="$LIBS"
10226    LIBS="$lt_cv_dlopen_libs $LIBS"
10227
10228    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10229$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10230if test "${lt_cv_dlopen_self+set}" = set; then :
10231  $as_echo_n "(cached) " >&6
10232else
10233  	  if test "$cross_compiling" = yes; then :
10234  lt_cv_dlopen_self=cross
10235else
10236  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10237  lt_status=$lt_dlunknown
10238  cat > conftest.$ac_ext <<_LT_EOF
10239#line $LINENO "configure"
10240#include "confdefs.h"
10241
10242#if HAVE_DLFCN_H
10243#include <dlfcn.h>
10244#endif
10245
10246#include <stdio.h>
10247
10248#ifdef RTLD_GLOBAL
10249#  define LT_DLGLOBAL		RTLD_GLOBAL
10250#else
10251#  ifdef DL_GLOBAL
10252#    define LT_DLGLOBAL		DL_GLOBAL
10253#  else
10254#    define LT_DLGLOBAL		0
10255#  endif
10256#endif
10257
10258/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10259   find out it does not work in some platform. */
10260#ifndef LT_DLLAZY_OR_NOW
10261#  ifdef RTLD_LAZY
10262#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10263#  else
10264#    ifdef DL_LAZY
10265#      define LT_DLLAZY_OR_NOW		DL_LAZY
10266#    else
10267#      ifdef RTLD_NOW
10268#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10269#      else
10270#        ifdef DL_NOW
10271#          define LT_DLLAZY_OR_NOW	DL_NOW
10272#        else
10273#          define LT_DLLAZY_OR_NOW	0
10274#        endif
10275#      endif
10276#    endif
10277#  endif
10278#endif
10279
10280/* When -fvisbility=hidden is used, assume the code has been annotated
10281   correspondingly for the symbols needed.  */
10282#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10283void fnord () __attribute__((visibility("default")));
10284#endif
10285
10286void fnord () { int i=42; }
10287int main ()
10288{
10289  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10290  int status = $lt_dlunknown;
10291
10292  if (self)
10293    {
10294      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10295      else
10296        {
10297	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10298          else puts (dlerror ());
10299	}
10300      /* dlclose (self); */
10301    }
10302  else
10303    puts (dlerror ());
10304
10305  return status;
10306}
10307_LT_EOF
10308  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10309  (eval $ac_link) 2>&5
10310  ac_status=$?
10311  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10312  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10313    (./conftest; exit; ) >&5 2>/dev/null
10314    lt_status=$?
10315    case x$lt_status in
10316      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10317      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10318      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10319    esac
10320  else :
10321    # compilation failed
10322    lt_cv_dlopen_self=no
10323  fi
10324fi
10325rm -fr conftest*
10326
10327
10328fi
10329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10330$as_echo "$lt_cv_dlopen_self" >&6; }
10331
10332    if test "x$lt_cv_dlopen_self" = xyes; then
10333      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10334      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10335$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10336if test "${lt_cv_dlopen_self_static+set}" = set; then :
10337  $as_echo_n "(cached) " >&6
10338else
10339  	  if test "$cross_compiling" = yes; then :
10340  lt_cv_dlopen_self_static=cross
10341else
10342  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10343  lt_status=$lt_dlunknown
10344  cat > conftest.$ac_ext <<_LT_EOF
10345#line $LINENO "configure"
10346#include "confdefs.h"
10347
10348#if HAVE_DLFCN_H
10349#include <dlfcn.h>
10350#endif
10351
10352#include <stdio.h>
10353
10354#ifdef RTLD_GLOBAL
10355#  define LT_DLGLOBAL		RTLD_GLOBAL
10356#else
10357#  ifdef DL_GLOBAL
10358#    define LT_DLGLOBAL		DL_GLOBAL
10359#  else
10360#    define LT_DLGLOBAL		0
10361#  endif
10362#endif
10363
10364/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10365   find out it does not work in some platform. */
10366#ifndef LT_DLLAZY_OR_NOW
10367#  ifdef RTLD_LAZY
10368#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10369#  else
10370#    ifdef DL_LAZY
10371#      define LT_DLLAZY_OR_NOW		DL_LAZY
10372#    else
10373#      ifdef RTLD_NOW
10374#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10375#      else
10376#        ifdef DL_NOW
10377#          define LT_DLLAZY_OR_NOW	DL_NOW
10378#        else
10379#          define LT_DLLAZY_OR_NOW	0
10380#        endif
10381#      endif
10382#    endif
10383#  endif
10384#endif
10385
10386/* When -fvisbility=hidden is used, assume the code has been annotated
10387   correspondingly for the symbols needed.  */
10388#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10389void fnord () __attribute__((visibility("default")));
10390#endif
10391
10392void fnord () { int i=42; }
10393int main ()
10394{
10395  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10396  int status = $lt_dlunknown;
10397
10398  if (self)
10399    {
10400      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10401      else
10402        {
10403	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10404          else puts (dlerror ());
10405	}
10406      /* dlclose (self); */
10407    }
10408  else
10409    puts (dlerror ());
10410
10411  return status;
10412}
10413_LT_EOF
10414  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10415  (eval $ac_link) 2>&5
10416  ac_status=$?
10417  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10418  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10419    (./conftest; exit; ) >&5 2>/dev/null
10420    lt_status=$?
10421    case x$lt_status in
10422      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10423      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10424      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10425    esac
10426  else :
10427    # compilation failed
10428    lt_cv_dlopen_self_static=no
10429  fi
10430fi
10431rm -fr conftest*
10432
10433
10434fi
10435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10436$as_echo "$lt_cv_dlopen_self_static" >&6; }
10437    fi
10438
10439    CPPFLAGS="$save_CPPFLAGS"
10440    LDFLAGS="$save_LDFLAGS"
10441    LIBS="$save_LIBS"
10442    ;;
10443  esac
10444
10445  case $lt_cv_dlopen_self in
10446  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10447  *) enable_dlopen_self=unknown ;;
10448  esac
10449
10450  case $lt_cv_dlopen_self_static in
10451  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10452  *) enable_dlopen_self_static=unknown ;;
10453  esac
10454fi
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472striplib=
10473old_striplib=
10474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10475$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10476if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10477  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10478  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10480$as_echo "yes" >&6; }
10481else
10482# FIXME - insert some real tests, host_os isn't really good enough
10483  case $host_os in
10484  darwin*)
10485    if test -n "$STRIP" ; then
10486      striplib="$STRIP -x"
10487      old_striplib="$STRIP -S"
10488      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10489$as_echo "yes" >&6; }
10490    else
10491      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10492$as_echo "no" >&6; }
10493    fi
10494    ;;
10495  *)
10496    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10497$as_echo "no" >&6; }
10498    ;;
10499  esac
10500fi
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513  # Report which library types will actually be built
10514  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10515$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10517$as_echo "$can_build_shared" >&6; }
10518
10519  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10520$as_echo_n "checking whether to build shared libraries... " >&6; }
10521  test "$can_build_shared" = "no" && enable_shared=no
10522
10523  # On AIX, shared libraries and static libraries use the same namespace, and
10524  # are all built from PIC.
10525  case $host_os in
10526  aix3*)
10527    test "$enable_shared" = yes && enable_static=no
10528    if test -n "$RANLIB"; then
10529      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10530      postinstall_cmds='$RANLIB $lib'
10531    fi
10532    ;;
10533
10534  aix[4-9]*)
10535    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10536      test "$enable_shared" = yes && enable_static=no
10537    fi
10538    ;;
10539  esac
10540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10541$as_echo "$enable_shared" >&6; }
10542
10543  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10544$as_echo_n "checking whether to build static libraries... " >&6; }
10545  # Make sure either enable_shared or enable_static is yes.
10546  test "$enable_shared" = yes || enable_static=yes
10547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10548$as_echo "$enable_static" >&6; }
10549
10550
10551
10552
10553fi
10554ac_ext=c
10555ac_cpp='$CPP $CPPFLAGS'
10556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10558ac_compiler_gnu=$ac_cv_c_compiler_gnu
10559
10560CC="$lt_save_CC"
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574        ac_config_commands="$ac_config_commands libtool"
10575
10576
10577
10578
10579# Only expand once:
10580
10581
10582
10583# Initialize X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
10596$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
10597if test "${ac_cv_prog_cc_c99+set}" = set; then :
10598  $as_echo_n "(cached) " >&6
10599else
10600  ac_cv_prog_cc_c99=no
10601ac_save_CC=$CC
10602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10603/* end confdefs.h.  */
10604#include <stdarg.h>
10605#include <stdbool.h>
10606#include <stdlib.h>
10607#include <wchar.h>
10608#include <stdio.h>
10609
10610// Check varargs macros.  These examples are taken from C99 6.10.3.5.
10611#define debug(...) fprintf (stderr, __VA_ARGS__)
10612#define showlist(...) puts (#__VA_ARGS__)
10613#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
10614static void
10615test_varargs_macros (void)
10616{
10617  int x = 1234;
10618  int y = 5678;
10619  debug ("Flag");
10620  debug ("X = %d\n", x);
10621  showlist (The first, second, and third items.);
10622  report (x>y, "x is %d but y is %d", x, y);
10623}
10624
10625// Check long long types.
10626#define BIG64 18446744073709551615ull
10627#define BIG32 4294967295ul
10628#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
10629#if !BIG_OK
10630  your preprocessor is broken;
10631#endif
10632#if BIG_OK
10633#else
10634  your preprocessor is broken;
10635#endif
10636static long long int bignum = -9223372036854775807LL;
10637static unsigned long long int ubignum = BIG64;
10638
10639struct incomplete_array
10640{
10641  int datasize;
10642  double data[];
10643};
10644
10645struct named_init {
10646  int number;
10647  const wchar_t *name;
10648  double average;
10649};
10650
10651typedef const char *ccp;
10652
10653static inline int
10654test_restrict (ccp restrict text)
10655{
10656  // See if C++-style comments work.
10657  // Iterate through items via the restricted pointer.
10658  // Also check for declarations in for loops.
10659  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
10660    continue;
10661  return 0;
10662}
10663
10664// Check varargs and va_copy.
10665static void
10666test_varargs (const char *format, ...)
10667{
10668  va_list args;
10669  va_start (args, format);
10670  va_list args_copy;
10671  va_copy (args_copy, args);
10672
10673  const char *str;
10674  int number;
10675  float fnumber;
10676
10677  while (*format)
10678    {
10679      switch (*format++)
10680	{
10681	case 's': // string
10682	  str = va_arg (args_copy, const char *);
10683	  break;
10684	case 'd': // int
10685	  number = va_arg (args_copy, int);
10686	  break;
10687	case 'f': // float
10688	  fnumber = va_arg (args_copy, double);
10689	  break;
10690	default:
10691	  break;
10692	}
10693    }
10694  va_end (args_copy);
10695  va_end (args);
10696}
10697
10698int
10699main ()
10700{
10701
10702  // Check bool.
10703  _Bool success = false;
10704
10705  // Check restrict.
10706  if (test_restrict ("String literal") == 0)
10707    success = true;
10708  char *restrict newvar = "Another string";
10709
10710  // Check varargs.
10711  test_varargs ("s, d' f .", "string", 65, 34.234);
10712  test_varargs_macros ();
10713
10714  // Check flexible array members.
10715  struct incomplete_array *ia =
10716    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
10717  ia->datasize = 10;
10718  for (int i = 0; i < ia->datasize; ++i)
10719    ia->data[i] = i * 1.234;
10720
10721  // Check named initializers.
10722  struct named_init ni = {
10723    .number = 34,
10724    .name = L"Test wide string",
10725    .average = 543.34343,
10726  };
10727
10728  ni.number = 58;
10729
10730  int dynamic_array[ni.number];
10731  dynamic_array[ni.number - 1] = 543;
10732
10733  // work around unused variable warnings
10734  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
10735	  || dynamic_array[ni.number - 1] != 543);
10736
10737  ;
10738  return 0;
10739}
10740_ACEOF
10741for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
10742do
10743  CC="$ac_save_CC $ac_arg"
10744  if ac_fn_c_try_compile "$LINENO"; then :
10745  ac_cv_prog_cc_c99=$ac_arg
10746fi
10747rm -f core conftest.err conftest.$ac_objext
10748  test "x$ac_cv_prog_cc_c99" != "xno" && break
10749done
10750rm -f conftest.$ac_ext
10751CC=$ac_save_CC
10752
10753fi
10754# AC_CACHE_VAL
10755case "x$ac_cv_prog_cc_c99" in
10756  x)
10757    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
10758$as_echo "none needed" >&6; } ;;
10759  xno)
10760    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
10761$as_echo "unsupported" >&6; } ;;
10762  *)
10763    CC="$CC $ac_cv_prog_cc_c99"
10764    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
10765$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
10766esac
10767if test "x$ac_cv_prog_cc_c99" != xno; then :
10768
10769fi
10770
10771
10772
10773
10774
10775
10776
10777
10778if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10779	if test -n "$ac_tool_prefix"; then
10780  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10781set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10783$as_echo_n "checking for $ac_word... " >&6; }
10784if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10785  $as_echo_n "(cached) " >&6
10786else
10787  case $PKG_CONFIG in
10788  [\\/]* | ?:[\\/]*)
10789  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10790  ;;
10791  *)
10792  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10793for as_dir in $PATH
10794do
10795  IFS=$as_save_IFS
10796  test -z "$as_dir" && as_dir=.
10797    for ac_exec_ext in '' $ac_executable_extensions; do
10798  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10799    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10800    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10801    break 2
10802  fi
10803done
10804  done
10805IFS=$as_save_IFS
10806
10807  ;;
10808esac
10809fi
10810PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10811if test -n "$PKG_CONFIG"; then
10812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10813$as_echo "$PKG_CONFIG" >&6; }
10814else
10815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10816$as_echo "no" >&6; }
10817fi
10818
10819
10820fi
10821if test -z "$ac_cv_path_PKG_CONFIG"; then
10822  ac_pt_PKG_CONFIG=$PKG_CONFIG
10823  # Extract the first word of "pkg-config", so it can be a program name with args.
10824set dummy pkg-config; ac_word=$2
10825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10826$as_echo_n "checking for $ac_word... " >&6; }
10827if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10828  $as_echo_n "(cached) " >&6
10829else
10830  case $ac_pt_PKG_CONFIG in
10831  [\\/]* | ?:[\\/]*)
10832  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10833  ;;
10834  *)
10835  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10836for as_dir in $PATH
10837do
10838  IFS=$as_save_IFS
10839  test -z "$as_dir" && as_dir=.
10840    for ac_exec_ext in '' $ac_executable_extensions; do
10841  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10842    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10843    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10844    break 2
10845  fi
10846done
10847  done
10848IFS=$as_save_IFS
10849
10850  ;;
10851esac
10852fi
10853ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10854if test -n "$ac_pt_PKG_CONFIG"; then
10855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10856$as_echo "$ac_pt_PKG_CONFIG" >&6; }
10857else
10858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10859$as_echo "no" >&6; }
10860fi
10861
10862  if test "x$ac_pt_PKG_CONFIG" = x; then
10863    PKG_CONFIG=""
10864  else
10865    case $cross_compiling:$ac_tool_warned in
10866yes:)
10867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10869ac_tool_warned=yes ;;
10870esac
10871    PKG_CONFIG=$ac_pt_PKG_CONFIG
10872  fi
10873else
10874  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10875fi
10876
10877fi
10878if test -n "$PKG_CONFIG"; then
10879	_pkg_min_version=0.9.0
10880	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10881$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10882	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10883		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10884$as_echo "yes" >&6; }
10885	else
10886		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10887$as_echo "no" >&6; }
10888		PKG_CONFIG=""
10889	fi
10890fi
10891
10892
10893
10894
10895if  test "x$GCC" = xyes ; then
10896    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
10897-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
10898-Wbad-function-cast -Wformat=2"
10899    case `$CC -dumpversion` in
10900    3.4.* | 4.*)
10901	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
10902	;;
10903    esac
10904else
10905    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
10906if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
10907  SUNCC="yes"
10908else
10909  SUNCC="no"
10910fi
10911
10912    if test "x$SUNCC" = "xyes"; then
10913	CWARNFLAGS="-v"
10914    fi
10915fi
10916
10917
10918
10919# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
10920
10921
10922
10923# Check whether --enable-strict-compilation was given.
10924if test "${enable_strict_compilation+set}" = set; then :
10925  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10926else
10927  STRICT_COMPILE=no
10928fi
10929
10930if test "x$STRICT_COMPILE" = "xyes"; then
10931	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
10932if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
10933  SUNCC="yes"
10934else
10935  SUNCC="no"
10936fi
10937
10938	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
10939if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
10940  INTELCC="yes"
10941else
10942  INTELCC="no"
10943fi
10944
10945	if test "x$GCC" = xyes ; then
10946		STRICT_CFLAGS="-pedantic -Werror"
10947	elif test "x$SUNCC" = "xyes"; then
10948		STRICT_CFLAGS="-errwarn"
10949    elif test "x$INTELCC" = "xyes"; then
10950		STRICT_CFLAGS="-Werror"
10951	fi
10952fi
10953CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10954
10955
10956
10957
10958cat >>confdefs.h <<_ACEOF
10959#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10960_ACEOF
10961
10962	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10963	if test "x$PVM" = "x"; then
10964		PVM="0"
10965	fi
10966
10967cat >>confdefs.h <<_ACEOF
10968#define PACKAGE_VERSION_MINOR $PVM
10969_ACEOF
10970
10971	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10972	if test "x$PVP" = "x"; then
10973		PVP="0"
10974	fi
10975
10976cat >>confdefs.h <<_ACEOF
10977#define PACKAGE_VERSION_PATCHLEVEL $PVP
10978_ACEOF
10979
10980
10981
10982CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10983mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10984|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10985echo 'git directory not found: installing possibly empty changelog.' >&2)"
10986
10987
10988
10989
10990macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10991INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10992mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10993|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10994echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10995
10996
10997
10998
10999
11000
11001if test x$APP_MAN_SUFFIX = x    ; then
11002    APP_MAN_SUFFIX=1
11003fi
11004if test x$APP_MAN_DIR = x    ; then
11005    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11006fi
11007
11008if test x$LIB_MAN_SUFFIX = x    ; then
11009    LIB_MAN_SUFFIX=3
11010fi
11011if test x$LIB_MAN_DIR = x    ; then
11012    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11013fi
11014
11015if test x$FILE_MAN_SUFFIX = x    ; then
11016    case $host_os in
11017	solaris*)	FILE_MAN_SUFFIX=4  ;;
11018	*)		FILE_MAN_SUFFIX=5  ;;
11019    esac
11020fi
11021if test x$FILE_MAN_DIR = x    ; then
11022    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11023fi
11024
11025if test x$MISC_MAN_SUFFIX = x    ; then
11026    case $host_os in
11027	solaris*)	MISC_MAN_SUFFIX=5  ;;
11028	*)		MISC_MAN_SUFFIX=7  ;;
11029    esac
11030fi
11031if test x$MISC_MAN_DIR = x    ; then
11032    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11033fi
11034
11035if test x$DRIVER_MAN_SUFFIX = x    ; then
11036    case $host_os in
11037	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
11038	*)		DRIVER_MAN_SUFFIX=4  ;;
11039    esac
11040fi
11041if test x$DRIVER_MAN_DIR = x    ; then
11042    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11043fi
11044
11045if test x$ADMIN_MAN_SUFFIX = x    ; then
11046    case $host_os in
11047	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
11048	*)		ADMIN_MAN_SUFFIX=8  ;;
11049    esac
11050fi
11051if test x$ADMIN_MAN_DIR = x    ; then
11052    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11053fi
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069XORG_MAN_PAGE="X Version 11"
11070
11071MAN_SUBSTS="\
11072	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11073	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11074	-e 's|__xservername__|Xorg|g' \
11075	-e 's|__xconfigfile__|xorg.conf|g' \
11076	-e 's|__projectroot__|\$(prefix)|g' \
11077	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11078	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11079	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11080	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11081	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11082	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11083	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11084
11085
11086
11087# Check whether --enable-silent-rules was given.
11088if test "${enable_silent_rules+set}" = set; then :
11089  enableval=$enable_silent_rules;
11090fi
11091
11092case $enable_silent_rules in
11093yes) AM_DEFAULT_VERBOSITY=0;;
11094no)  AM_DEFAULT_VERBOSITY=1;;
11095*)   AM_DEFAULT_VERBOSITY=0;;
11096esac
11097AM_BACKSLASH='\'
11098
11099
11100
11101# Obtain compiler/linker options from server and required extensions
11102
11103pkg_failed=no
11104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
11105$as_echo_n "checking for XORG... " >&6; }
11106
11107if test -n "$XORG_CFLAGS"; then
11108    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
11109 elif test -n "$PKG_CONFIG"; then
11110    if test -n "$PKG_CONFIG" && \
11111    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4 xproto inputproto\""; } >&5
11112  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4 xproto inputproto") 2>&5
11113  ac_status=$?
11114  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11115  test $ac_status = 0; }; then
11116  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.4 xproto inputproto" 2>/dev/null`
11117else
11118  pkg_failed=yes
11119fi
11120 else
11121    pkg_failed=untried
11122fi
11123if test -n "$XORG_LIBS"; then
11124    pkg_cv_XORG_LIBS="$XORG_LIBS"
11125 elif test -n "$PKG_CONFIG"; then
11126    if test -n "$PKG_CONFIG" && \
11127    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4 xproto inputproto\""; } >&5
11128  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4 xproto inputproto") 2>&5
11129  ac_status=$?
11130  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11131  test $ac_status = 0; }; then
11132  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.4 xproto inputproto" 2>/dev/null`
11133else
11134  pkg_failed=yes
11135fi
11136 else
11137    pkg_failed=untried
11138fi
11139
11140
11141
11142if test $pkg_failed = yes; then
11143   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11144$as_echo "no" >&6; }
11145
11146if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11147        _pkg_short_errors_supported=yes
11148else
11149        _pkg_short_errors_supported=no
11150fi
11151        if test $_pkg_short_errors_supported = yes; then
11152	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.4 xproto inputproto" 2>&1`
11153        else
11154	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.4 xproto inputproto" 2>&1`
11155        fi
11156	# Put the nasty error message in config.log where it belongs
11157	echo "$XORG_PKG_ERRORS" >&5
11158
11159	as_fn_error $? "Package requirements (xorg-server >= 1.4 xproto inputproto) were not met:
11160
11161$XORG_PKG_ERRORS
11162
11163Consider adjusting the PKG_CONFIG_PATH environment variable if you
11164installed software in a non-standard prefix.
11165
11166Alternatively, you may set the environment variables XORG_CFLAGS
11167and XORG_LIBS to avoid the need to call pkg-config.
11168See the pkg-config man page for more details." "$LINENO" 5
11169
11170elif test $pkg_failed = untried; then
11171     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11172$as_echo "no" >&6; }
11173	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11174$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11175as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11176is in your PATH or set the PKG_CONFIG environment variable to the full
11177path to pkg-config.
11178
11179Alternatively, you may set the environment variables XORG_CFLAGS
11180and XORG_LIBS to avoid the need to call pkg-config.
11181See the pkg-config man page for more details.
11182
11183To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11184See \`config.log' for more details" "$LINENO" 5; }
11185
11186else
11187	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
11188	XORG_LIBS=$pkg_cv_XORG_LIBS
11189        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11190$as_echo "yes" >&6; }
11191
11192fi
11193
11194# Define a configure option for an alternate input module directory
11195
11196# Check whether --with-xorg-module-dir was given.
11197if test "${with_xorg_module_dir+set}" = set; then :
11198  withval=$with_xorg_module_dir; moduledir="$withval"
11199else
11200  moduledir="$libdir/xorg/modules"
11201fi
11202
11203inputdir=${moduledir}/input
11204
11205
11206# The keyboard driver code is O/S specific
11207case $host_os in
11208  linux*)
11209    IS_LINUX="yes"
11210    ;;
11211
11212  freebsd* | kfreebsd-gnu* | netbsd* | openbsd*)
11213    IS_BSD="yes"
11214    ;;
11215
11216  solaris*)
11217    IS_SOLARIS="yes"
11218    ;;
11219
11220  gnu*)
11221    IS_HURD="yes"
11222    ;;
11223
11224  *)
11225    as_fn_error $? "Your operating system is not supported by the kbd driver.
11226                  Contact xorg@lists.freedesktop.org if you are interested in
11227                  porting it." "$LINENO" 5
11228    ;;
11229esac
11230 if test "x$IS_LINUX" = xyes; then
11231  LINUX_TRUE=
11232  LINUX_FALSE='#'
11233else
11234  LINUX_TRUE='#'
11235  LINUX_FALSE=
11236fi
11237
11238 if test "x$IS_BSD" = xyes; then
11239  BSD_TRUE=
11240  BSD_FALSE='#'
11241else
11242  BSD_TRUE='#'
11243  BSD_FALSE=
11244fi
11245
11246 if test "x$IS_SOLARIS" = xyes; then
11247  SOLARIS_TRUE=
11248  SOLARIS_FALSE='#'
11249else
11250  SOLARIS_TRUE='#'
11251  SOLARIS_FALSE=
11252fi
11253
11254 if test "x$IS_HURD" = xyes; then
11255  HURD_TRUE=
11256  HURD_FALSE='#'
11257else
11258  HURD_TRUE='#'
11259  HURD_FALSE=
11260fi
11261
11262
11263DRIVER_NAME=kbd
11264
11265
11266ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
11267
11268cat >confcache <<\_ACEOF
11269# This file is a shell script that caches the results of configure
11270# tests run on this system so they can be shared between configure
11271# scripts and configure runs, see configure's option --config-cache.
11272# It is not useful on other systems.  If it contains results you don't
11273# want to keep, you may remove or edit it.
11274#
11275# config.status only pays attention to the cache file if you give it
11276# the --recheck option to rerun configure.
11277#
11278# `ac_cv_env_foo' variables (set or unset) will be overridden when
11279# loading this file, other *unset* `ac_cv_foo' will be assigned the
11280# following values.
11281
11282_ACEOF
11283
11284# The following way of writing the cache mishandles newlines in values,
11285# but we know of no workaround that is simple, portable, and efficient.
11286# So, we kill variables containing newlines.
11287# Ultrix sh set writes to stderr and can't be redirected directly,
11288# and sets the high bit in the cache file unless we assign to the vars.
11289(
11290  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11291    eval ac_val=\$$ac_var
11292    case $ac_val in #(
11293    *${as_nl}*)
11294      case $ac_var in #(
11295      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11296$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11297      esac
11298      case $ac_var in #(
11299      _ | IFS | as_nl) ;; #(
11300      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11301      *) { eval $ac_var=; unset $ac_var;} ;;
11302      esac ;;
11303    esac
11304  done
11305
11306  (set) 2>&1 |
11307    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11308    *${as_nl}ac_space=\ *)
11309      # `set' does not quote correctly, so add quotes: double-quote
11310      # substitution turns \\\\ into \\, and sed turns \\ into \.
11311      sed -n \
11312	"s/'/'\\\\''/g;
11313	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11314      ;; #(
11315    *)
11316      # `set' quotes correctly as required by POSIX, so do not add quotes.
11317      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11318      ;;
11319    esac |
11320    sort
11321) |
11322  sed '
11323     /^ac_cv_env_/b end
11324     t clear
11325     :clear
11326     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11327     t end
11328     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11329     :end' >>confcache
11330if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11331  if test -w "$cache_file"; then
11332    test "x$cache_file" != "x/dev/null" &&
11333      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11334$as_echo "$as_me: updating cache $cache_file" >&6;}
11335    cat confcache >$cache_file
11336  else
11337    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11338$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11339  fi
11340fi
11341rm -f confcache
11342
11343test "x$prefix" = xNONE && prefix=$ac_default_prefix
11344# Let make expand exec_prefix.
11345test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11346
11347DEFS=-DHAVE_CONFIG_H
11348
11349ac_libobjs=
11350ac_ltlibobjs=
11351U=
11352for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11353  # 1. Remove the extension, and $U if already installed.
11354  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11355  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11356  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11357  #    will be set to the directory where LIBOBJS objects are built.
11358  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11359  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11360done
11361LIBOBJS=$ac_libobjs
11362
11363LTLIBOBJS=$ac_ltlibobjs
11364
11365
11366 if test -n "$EXEEXT"; then
11367  am__EXEEXT_TRUE=
11368  am__EXEEXT_FALSE='#'
11369else
11370  am__EXEEXT_TRUE='#'
11371  am__EXEEXT_FALSE=
11372fi
11373
11374if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11375  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11376Usually this means the macro was only invoked conditionally." "$LINENO" 5
11377fi
11378if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11379  as_fn_error $? "conditional \"AMDEP\" was never defined.
11380Usually this means the macro was only invoked conditionally." "$LINENO" 5
11381fi
11382if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11383  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11384Usually this means the macro was only invoked conditionally." "$LINENO" 5
11385fi
11386if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
11387  as_fn_error $? "conditional \"LINUX\" was never defined.
11388Usually this means the macro was only invoked conditionally." "$LINENO" 5
11389fi
11390if test -z "${BSD_TRUE}" && test -z "${BSD_FALSE}"; then
11391  as_fn_error $? "conditional \"BSD\" was never defined.
11392Usually this means the macro was only invoked conditionally." "$LINENO" 5
11393fi
11394if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
11395  as_fn_error $? "conditional \"SOLARIS\" was never defined.
11396Usually this means the macro was only invoked conditionally." "$LINENO" 5
11397fi
11398if test -z "${HURD_TRUE}" && test -z "${HURD_FALSE}"; then
11399  as_fn_error $? "conditional \"HURD\" was never defined.
11400Usually this means the macro was only invoked conditionally." "$LINENO" 5
11401fi
11402
11403: ${CONFIG_STATUS=./config.status}
11404ac_write_fail=0
11405ac_clean_files_save=$ac_clean_files
11406ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11407{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11408$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11409as_write_fail=0
11410cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11411#! $SHELL
11412# Generated by $as_me.
11413# Run this file to recreate the current configuration.
11414# Compiler output produced by configure, useful for debugging
11415# configure, is in config.log if it exists.
11416
11417debug=false
11418ac_cs_recheck=false
11419ac_cs_silent=false
11420
11421SHELL=\${CONFIG_SHELL-$SHELL}
11422export SHELL
11423_ASEOF
11424cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11425## -------------------- ##
11426## M4sh Initialization. ##
11427## -------------------- ##
11428
11429# Be more Bourne compatible
11430DUALCASE=1; export DUALCASE # for MKS sh
11431if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11432  emulate sh
11433  NULLCMD=:
11434  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11435  # is contrary to our usage.  Disable this feature.
11436  alias -g '${1+"$@"}'='"$@"'
11437  setopt NO_GLOB_SUBST
11438else
11439  case `(set -o) 2>/dev/null` in #(
11440  *posix*) :
11441    set -o posix ;; #(
11442  *) :
11443     ;;
11444esac
11445fi
11446
11447
11448as_nl='
11449'
11450export as_nl
11451# Printing a long string crashes Solaris 7 /usr/bin/printf.
11452as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11453as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11454as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11455# Prefer a ksh shell builtin over an external printf program on Solaris,
11456# but without wasting forks for bash or zsh.
11457if test -z "$BASH_VERSION$ZSH_VERSION" \
11458    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11459  as_echo='print -r --'
11460  as_echo_n='print -rn --'
11461elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11462  as_echo='printf %s\n'
11463  as_echo_n='printf %s'
11464else
11465  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11466    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11467    as_echo_n='/usr/ucb/echo -n'
11468  else
11469    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11470    as_echo_n_body='eval
11471      arg=$1;
11472      case $arg in #(
11473      *"$as_nl"*)
11474	expr "X$arg" : "X\\(.*\\)$as_nl";
11475	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11476      esac;
11477      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11478    '
11479    export as_echo_n_body
11480    as_echo_n='sh -c $as_echo_n_body as_echo'
11481  fi
11482  export as_echo_body
11483  as_echo='sh -c $as_echo_body as_echo'
11484fi
11485
11486# The user is always right.
11487if test "${PATH_SEPARATOR+set}" != set; then
11488  PATH_SEPARATOR=:
11489  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11490    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11491      PATH_SEPARATOR=';'
11492  }
11493fi
11494
11495
11496# IFS
11497# We need space, tab and new line, in precisely that order.  Quoting is
11498# there to prevent editors from complaining about space-tab.
11499# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11500# splitting by setting IFS to empty value.)
11501IFS=" ""	$as_nl"
11502
11503# Find who we are.  Look in the path if we contain no directory separator.
11504case $0 in #((
11505  *[\\/]* ) as_myself=$0 ;;
11506  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11507for as_dir in $PATH
11508do
11509  IFS=$as_save_IFS
11510  test -z "$as_dir" && as_dir=.
11511    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11512  done
11513IFS=$as_save_IFS
11514
11515     ;;
11516esac
11517# We did not find ourselves, most probably we were run as `sh COMMAND'
11518# in which case we are not to be found in the path.
11519if test "x$as_myself" = x; then
11520  as_myself=$0
11521fi
11522if test ! -f "$as_myself"; then
11523  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11524  exit 1
11525fi
11526
11527# Unset variables that we do not need and which cause bugs (e.g. in
11528# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11529# suppresses any "Segmentation fault" message there.  '((' could
11530# trigger a bug in pdksh 5.2.14.
11531for as_var in BASH_ENV ENV MAIL MAILPATH
11532do eval test x\${$as_var+set} = xset \
11533  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11534done
11535PS1='$ '
11536PS2='> '
11537PS4='+ '
11538
11539# NLS nuisances.
11540LC_ALL=C
11541export LC_ALL
11542LANGUAGE=C
11543export LANGUAGE
11544
11545# CDPATH.
11546(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11547
11548
11549# as_fn_error STATUS ERROR [LINENO LOG_FD]
11550# ----------------------------------------
11551# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11552# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11553# script with STATUS, using 1 if that was 0.
11554as_fn_error ()
11555{
11556  as_status=$1; test $as_status -eq 0 && as_status=1
11557  if test "$4"; then
11558    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11559    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11560  fi
11561  $as_echo "$as_me: error: $2" >&2
11562  as_fn_exit $as_status
11563} # as_fn_error
11564
11565
11566# as_fn_set_status STATUS
11567# -----------------------
11568# Set $? to STATUS, without forking.
11569as_fn_set_status ()
11570{
11571  return $1
11572} # as_fn_set_status
11573
11574# as_fn_exit STATUS
11575# -----------------
11576# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11577as_fn_exit ()
11578{
11579  set +e
11580  as_fn_set_status $1
11581  exit $1
11582} # as_fn_exit
11583
11584# as_fn_unset VAR
11585# ---------------
11586# Portably unset VAR.
11587as_fn_unset ()
11588{
11589  { eval $1=; unset $1;}
11590}
11591as_unset=as_fn_unset
11592# as_fn_append VAR VALUE
11593# ----------------------
11594# Append the text in VALUE to the end of the definition contained in VAR. Take
11595# advantage of any shell optimizations that allow amortized linear growth over
11596# repeated appends, instead of the typical quadratic growth present in naive
11597# implementations.
11598if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11599  eval 'as_fn_append ()
11600  {
11601    eval $1+=\$2
11602  }'
11603else
11604  as_fn_append ()
11605  {
11606    eval $1=\$$1\$2
11607  }
11608fi # as_fn_append
11609
11610# as_fn_arith ARG...
11611# ------------------
11612# Perform arithmetic evaluation on the ARGs, and store the result in the
11613# global $as_val. Take advantage of shells that can avoid forks. The arguments
11614# must be portable across $(()) and expr.
11615if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11616  eval 'as_fn_arith ()
11617  {
11618    as_val=$(( $* ))
11619  }'
11620else
11621  as_fn_arith ()
11622  {
11623    as_val=`expr "$@" || test $? -eq 1`
11624  }
11625fi # as_fn_arith
11626
11627
11628if expr a : '\(a\)' >/dev/null 2>&1 &&
11629   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11630  as_expr=expr
11631else
11632  as_expr=false
11633fi
11634
11635if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11636  as_basename=basename
11637else
11638  as_basename=false
11639fi
11640
11641if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11642  as_dirname=dirname
11643else
11644  as_dirname=false
11645fi
11646
11647as_me=`$as_basename -- "$0" ||
11648$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11649	 X"$0" : 'X\(//\)$' \| \
11650	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11651$as_echo X/"$0" |
11652    sed '/^.*\/\([^/][^/]*\)\/*$/{
11653	    s//\1/
11654	    q
11655	  }
11656	  /^X\/\(\/\/\)$/{
11657	    s//\1/
11658	    q
11659	  }
11660	  /^X\/\(\/\).*/{
11661	    s//\1/
11662	    q
11663	  }
11664	  s/.*/./; q'`
11665
11666# Avoid depending upon Character Ranges.
11667as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11668as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11669as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11670as_cr_digits='0123456789'
11671as_cr_alnum=$as_cr_Letters$as_cr_digits
11672
11673ECHO_C= ECHO_N= ECHO_T=
11674case `echo -n x` in #(((((
11675-n*)
11676  case `echo 'xy\c'` in
11677  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11678  xy)  ECHO_C='\c';;
11679  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11680       ECHO_T='	';;
11681  esac;;
11682*)
11683  ECHO_N='-n';;
11684esac
11685
11686rm -f conf$$ conf$$.exe conf$$.file
11687if test -d conf$$.dir; then
11688  rm -f conf$$.dir/conf$$.file
11689else
11690  rm -f conf$$.dir
11691  mkdir conf$$.dir 2>/dev/null
11692fi
11693if (echo >conf$$.file) 2>/dev/null; then
11694  if ln -s conf$$.file conf$$ 2>/dev/null; then
11695    as_ln_s='ln -s'
11696    # ... but there are two gotchas:
11697    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11698    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11699    # In both cases, we have to default to `cp -p'.
11700    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11701      as_ln_s='cp -p'
11702  elif ln conf$$.file conf$$ 2>/dev/null; then
11703    as_ln_s=ln
11704  else
11705    as_ln_s='cp -p'
11706  fi
11707else
11708  as_ln_s='cp -p'
11709fi
11710rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11711rmdir conf$$.dir 2>/dev/null
11712
11713
11714# as_fn_mkdir_p
11715# -------------
11716# Create "$as_dir" as a directory, including parents if necessary.
11717as_fn_mkdir_p ()
11718{
11719
11720  case $as_dir in #(
11721  -*) as_dir=./$as_dir;;
11722  esac
11723  test -d "$as_dir" || eval $as_mkdir_p || {
11724    as_dirs=
11725    while :; do
11726      case $as_dir in #(
11727      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11728      *) as_qdir=$as_dir;;
11729      esac
11730      as_dirs="'$as_qdir' $as_dirs"
11731      as_dir=`$as_dirname -- "$as_dir" ||
11732$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11733	 X"$as_dir" : 'X\(//\)[^/]' \| \
11734	 X"$as_dir" : 'X\(//\)$' \| \
11735	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11736$as_echo X"$as_dir" |
11737    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11738	    s//\1/
11739	    q
11740	  }
11741	  /^X\(\/\/\)[^/].*/{
11742	    s//\1/
11743	    q
11744	  }
11745	  /^X\(\/\/\)$/{
11746	    s//\1/
11747	    q
11748	  }
11749	  /^X\(\/\).*/{
11750	    s//\1/
11751	    q
11752	  }
11753	  s/.*/./; q'`
11754      test -d "$as_dir" && break
11755    done
11756    test -z "$as_dirs" || eval "mkdir $as_dirs"
11757  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11758
11759
11760} # as_fn_mkdir_p
11761if mkdir -p . 2>/dev/null; then
11762  as_mkdir_p='mkdir -p "$as_dir"'
11763else
11764  test -d ./-p && rmdir ./-p
11765  as_mkdir_p=false
11766fi
11767
11768if test -x / >/dev/null 2>&1; then
11769  as_test_x='test -x'
11770else
11771  if ls -dL / >/dev/null 2>&1; then
11772    as_ls_L_option=L
11773  else
11774    as_ls_L_option=
11775  fi
11776  as_test_x='
11777    eval sh -c '\''
11778      if test -d "$1"; then
11779	test -d "$1/.";
11780      else
11781	case $1 in #(
11782	-*)set "./$1";;
11783	esac;
11784	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11785	???[sx]*):;;*)false;;esac;fi
11786    '\'' sh
11787  '
11788fi
11789as_executable_p=$as_test_x
11790
11791# Sed expression to map a string onto a valid CPP name.
11792as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11793
11794# Sed expression to map a string onto a valid variable name.
11795as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11796
11797
11798exec 6>&1
11799## ----------------------------------- ##
11800## Main body of $CONFIG_STATUS script. ##
11801## ----------------------------------- ##
11802_ASEOF
11803test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11804
11805cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11806# Save the log message, to keep $0 and so on meaningful, and to
11807# report actual input values of CONFIG_FILES etc. instead of their
11808# values after options handling.
11809ac_log="
11810This file was extended by xf86-input-keyboard $as_me 1.6.0, which was
11811generated by GNU Autoconf 2.66.  Invocation command line was
11812
11813  CONFIG_FILES    = $CONFIG_FILES
11814  CONFIG_HEADERS  = $CONFIG_HEADERS
11815  CONFIG_LINKS    = $CONFIG_LINKS
11816  CONFIG_COMMANDS = $CONFIG_COMMANDS
11817  $ $0 $@
11818
11819on `(hostname || uname -n) 2>/dev/null | sed 1q`
11820"
11821
11822_ACEOF
11823
11824case $ac_config_files in *"
11825"*) set x $ac_config_files; shift; ac_config_files=$*;;
11826esac
11827
11828case $ac_config_headers in *"
11829"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11830esac
11831
11832
11833cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11834# Files that config.status was made for.
11835config_files="$ac_config_files"
11836config_headers="$ac_config_headers"
11837config_commands="$ac_config_commands"
11838
11839_ACEOF
11840
11841cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11842ac_cs_usage="\
11843\`$as_me' instantiates files and other configuration actions
11844from templates according to the current configuration.  Unless the files
11845and actions are specified as TAGs, all are instantiated by default.
11846
11847Usage: $0 [OPTION]... [TAG]...
11848
11849  -h, --help       print this help, then exit
11850  -V, --version    print version number and configuration settings, then exit
11851      --config     print configuration, then exit
11852  -q, --quiet, --silent
11853                   do not print progress messages
11854  -d, --debug      don't remove temporary files
11855      --recheck    update $as_me by reconfiguring in the same conditions
11856      --file=FILE[:TEMPLATE]
11857                   instantiate the configuration file FILE
11858      --header=FILE[:TEMPLATE]
11859                   instantiate the configuration header FILE
11860
11861Configuration files:
11862$config_files
11863
11864Configuration headers:
11865$config_headers
11866
11867Configuration commands:
11868$config_commands
11869
11870Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11871
11872_ACEOF
11873cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11874ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11875ac_cs_version="\\
11876xf86-input-keyboard config.status 1.6.0
11877configured by $0, generated by GNU Autoconf 2.66,
11878  with options \\"\$ac_cs_config\\"
11879
11880Copyright (C) 2010 Free Software Foundation, Inc.
11881This config.status script is free software; the Free Software Foundation
11882gives unlimited permission to copy, distribute and modify it."
11883
11884ac_pwd='$ac_pwd'
11885srcdir='$srcdir'
11886INSTALL='$INSTALL'
11887MKDIR_P='$MKDIR_P'
11888AWK='$AWK'
11889test -n "\$AWK" || AWK=awk
11890_ACEOF
11891
11892cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11893# The default lists apply if the user does not specify any file.
11894ac_need_defaults=:
11895while test $# != 0
11896do
11897  case $1 in
11898  --*=*)
11899    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11900    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11901    ac_shift=:
11902    ;;
11903  *)
11904    ac_option=$1
11905    ac_optarg=$2
11906    ac_shift=shift
11907    ;;
11908  esac
11909
11910  case $ac_option in
11911  # Handling of the options.
11912  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11913    ac_cs_recheck=: ;;
11914  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11915    $as_echo "$ac_cs_version"; exit ;;
11916  --config | --confi | --conf | --con | --co | --c )
11917    $as_echo "$ac_cs_config"; exit ;;
11918  --debug | --debu | --deb | --de | --d | -d )
11919    debug=: ;;
11920  --file | --fil | --fi | --f )
11921    $ac_shift
11922    case $ac_optarg in
11923    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11924    esac
11925    as_fn_append CONFIG_FILES " '$ac_optarg'"
11926    ac_need_defaults=false;;
11927  --header | --heade | --head | --hea )
11928    $ac_shift
11929    case $ac_optarg in
11930    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11931    esac
11932    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11933    ac_need_defaults=false;;
11934  --he | --h)
11935    # Conflict between --help and --header
11936    as_fn_error $? "ambiguous option: \`$1'
11937Try \`$0 --help' for more information.";;
11938  --help | --hel | -h )
11939    $as_echo "$ac_cs_usage"; exit ;;
11940  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11941  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11942    ac_cs_silent=: ;;
11943
11944  # This is an error.
11945  -*) as_fn_error $? "unrecognized option: \`$1'
11946Try \`$0 --help' for more information." ;;
11947
11948  *) as_fn_append ac_config_targets " $1"
11949     ac_need_defaults=false ;;
11950
11951  esac
11952  shift
11953done
11954
11955ac_configure_extra_args=
11956
11957if $ac_cs_silent; then
11958  exec 6>/dev/null
11959  ac_configure_extra_args="$ac_configure_extra_args --silent"
11960fi
11961
11962_ACEOF
11963cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11964if \$ac_cs_recheck; then
11965  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11966  shift
11967  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11968  CONFIG_SHELL='$SHELL'
11969  export CONFIG_SHELL
11970  exec "\$@"
11971fi
11972
11973_ACEOF
11974cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11975exec 5>>config.log
11976{
11977  echo
11978  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11979## Running $as_me. ##
11980_ASBOX
11981  $as_echo "$ac_log"
11982} >&5
11983
11984_ACEOF
11985cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11986#
11987# INIT-COMMANDS
11988#
11989AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11990
11991
11992# The HP-UX ksh and POSIX shell print the target directory to stdout
11993# if CDPATH is set.
11994(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11995
11996sed_quote_subst='$sed_quote_subst'
11997double_quote_subst='$double_quote_subst'
11998delay_variable_subst='$delay_variable_subst'
11999enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12000macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12001macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12002enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12003pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12004enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12005SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12006ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12007host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12008host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12009host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12010build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12011build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12012build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12013SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12014Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12015GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12016EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12017FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12018LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12019NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12020LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12021max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12022ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12023exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12024lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12025lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12026lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12027reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12028reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12029OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12030deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12031file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12032AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12033AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12034STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12035RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12036old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12037old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12038old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12039lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12040CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12041CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12042compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12043GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12044lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12045lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12046lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12047lt_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"`'
12048objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12049MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12050lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12051lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12052lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12053lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12054lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12055need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12056DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12057NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12058LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12059OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12060OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12061libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12062shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12063extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12064archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12065enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12066export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12067whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12068compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12069old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12070old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12071archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12072archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12073module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12074module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12075with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12076allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12077no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12078hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12079hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12080hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12081hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12082hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12083hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12084hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12085hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12086inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12087link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12088fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12089always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12090export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12091exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12092include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12093prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12094file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12095variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12096need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12097need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12098version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12099runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12100shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12101shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12102libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12103library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12104soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12105install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12106postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12107postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12108finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12109finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12110hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12111sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12112sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12113hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12114enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12115enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12116enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12117old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12118striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12119
12120LTCC='$LTCC'
12121LTCFLAGS='$LTCFLAGS'
12122compiler='$compiler_DEFAULT'
12123
12124# A function that is used when there is no print builtin or printf.
12125func_fallback_echo ()
12126{
12127  eval 'cat <<_LTECHO_EOF
12128\$1
12129_LTECHO_EOF'
12130}
12131
12132# Quote evaled strings.
12133for var in SHELL \
12134ECHO \
12135SED \
12136GREP \
12137EGREP \
12138FGREP \
12139LD \
12140NM \
12141LN_S \
12142lt_SP2NL \
12143lt_NL2SP \
12144reload_flag \
12145OBJDUMP \
12146deplibs_check_method \
12147file_magic_cmd \
12148AR \
12149AR_FLAGS \
12150STRIP \
12151RANLIB \
12152CC \
12153CFLAGS \
12154compiler \
12155lt_cv_sys_global_symbol_pipe \
12156lt_cv_sys_global_symbol_to_cdecl \
12157lt_cv_sys_global_symbol_to_c_name_address \
12158lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12159lt_prog_compiler_no_builtin_flag \
12160lt_prog_compiler_wl \
12161lt_prog_compiler_pic \
12162lt_prog_compiler_static \
12163lt_cv_prog_compiler_c_o \
12164need_locks \
12165DSYMUTIL \
12166NMEDIT \
12167LIPO \
12168OTOOL \
12169OTOOL64 \
12170shrext_cmds \
12171export_dynamic_flag_spec \
12172whole_archive_flag_spec \
12173compiler_needs_object \
12174with_gnu_ld \
12175allow_undefined_flag \
12176no_undefined_flag \
12177hardcode_libdir_flag_spec \
12178hardcode_libdir_flag_spec_ld \
12179hardcode_libdir_separator \
12180fix_srcfile_path \
12181exclude_expsyms \
12182include_expsyms \
12183file_list_spec \
12184variables_saved_for_relink \
12185libname_spec \
12186library_names_spec \
12187soname_spec \
12188install_override_mode \
12189finish_eval \
12190old_striplib \
12191striplib; do
12192    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12193    *[\\\\\\\`\\"\\\$]*)
12194      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12195      ;;
12196    *)
12197      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12198      ;;
12199    esac
12200done
12201
12202# Double-quote double-evaled strings.
12203for var in reload_cmds \
12204old_postinstall_cmds \
12205old_postuninstall_cmds \
12206old_archive_cmds \
12207extract_expsyms_cmds \
12208old_archive_from_new_cmds \
12209old_archive_from_expsyms_cmds \
12210archive_cmds \
12211archive_expsym_cmds \
12212module_cmds \
12213module_expsym_cmds \
12214export_symbols_cmds \
12215prelink_cmds \
12216postinstall_cmds \
12217postuninstall_cmds \
12218finish_cmds \
12219sys_lib_search_path_spec \
12220sys_lib_dlsearch_path_spec; do
12221    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12222    *[\\\\\\\`\\"\\\$]*)
12223      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12224      ;;
12225    *)
12226      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12227      ;;
12228    esac
12229done
12230
12231ac_aux_dir='$ac_aux_dir'
12232xsi_shell='$xsi_shell'
12233lt_shell_append='$lt_shell_append'
12234
12235# See if we are running on zsh, and set the options which allow our
12236# commands through without removal of \ escapes INIT.
12237if test -n "\${ZSH_VERSION+set}" ; then
12238   setopt NO_GLOB_SUBST
12239fi
12240
12241
12242    PACKAGE='$PACKAGE'
12243    VERSION='$VERSION'
12244    TIMESTAMP='$TIMESTAMP'
12245    RM='$RM'
12246    ofile='$ofile'
12247
12248
12249
12250
12251_ACEOF
12252
12253cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12254
12255# Handling of arguments.
12256for ac_config_target in $ac_config_targets
12257do
12258  case $ac_config_target in
12259    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12260    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12261    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12262    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12263    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12264    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12265
12266  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12267  esac
12268done
12269
12270
12271# If the user did not use the arguments to specify the items to instantiate,
12272# then the envvar interface is used.  Set only those that are not.
12273# We use the long form for the default assignment because of an extremely
12274# bizarre bug on SunOS 4.1.3.
12275if $ac_need_defaults; then
12276  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12277  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12278  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12279fi
12280
12281# Have a temporary directory for convenience.  Make it in the build tree
12282# simply because there is no reason against having it here, and in addition,
12283# creating and moving files from /tmp can sometimes cause problems.
12284# Hook for its removal unless debugging.
12285# Note that there is a small window in which the directory will not be cleaned:
12286# after its creation but before its name has been assigned to `$tmp'.
12287$debug ||
12288{
12289  tmp=
12290  trap 'exit_status=$?
12291  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12292' 0
12293  trap 'as_fn_exit 1' 1 2 13 15
12294}
12295# Create a (secure) tmp directory for tmp files.
12296
12297{
12298  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12299  test -n "$tmp" && test -d "$tmp"
12300}  ||
12301{
12302  tmp=./conf$$-$RANDOM
12303  (umask 077 && mkdir "$tmp")
12304} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12305
12306# Set up the scripts for CONFIG_FILES section.
12307# No need to generate them if there are no CONFIG_FILES.
12308# This happens for instance with `./config.status config.h'.
12309if test -n "$CONFIG_FILES"; then
12310
12311
12312ac_cr=`echo X | tr X '\015'`
12313# On cygwin, bash can eat \r inside `` if the user requested igncr.
12314# But we know of no other shell where ac_cr would be empty at this
12315# point, so we can use a bashism as a fallback.
12316if test "x$ac_cr" = x; then
12317  eval ac_cr=\$\'\\r\'
12318fi
12319ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12320if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12321  ac_cs_awk_cr='\\r'
12322else
12323  ac_cs_awk_cr=$ac_cr
12324fi
12325
12326echo 'BEGIN {' >"$tmp/subs1.awk" &&
12327_ACEOF
12328
12329
12330{
12331  echo "cat >conf$$subs.awk <<_ACEOF" &&
12332  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12333  echo "_ACEOF"
12334} >conf$$subs.sh ||
12335  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12336ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12337ac_delim='%!_!# '
12338for ac_last_try in false false false false false :; do
12339  . ./conf$$subs.sh ||
12340    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12341
12342  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12343  if test $ac_delim_n = $ac_delim_num; then
12344    break
12345  elif $ac_last_try; then
12346    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12347  else
12348    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12349  fi
12350done
12351rm -f conf$$subs.sh
12352
12353cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12354cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12355_ACEOF
12356sed -n '
12357h
12358s/^/S["/; s/!.*/"]=/
12359p
12360g
12361s/^[^!]*!//
12362:repl
12363t repl
12364s/'"$ac_delim"'$//
12365t delim
12366:nl
12367h
12368s/\(.\{148\}\)..*/\1/
12369t more1
12370s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12371p
12372n
12373b repl
12374:more1
12375s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12376p
12377g
12378s/.\{148\}//
12379t nl
12380:delim
12381h
12382s/\(.\{148\}\)..*/\1/
12383t more2
12384s/["\\]/\\&/g; s/^/"/; s/$/"/
12385p
12386b
12387:more2
12388s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12389p
12390g
12391s/.\{148\}//
12392t delim
12393' <conf$$subs.awk | sed '
12394/^[^""]/{
12395  N
12396  s/\n//
12397}
12398' >>$CONFIG_STATUS || ac_write_fail=1
12399rm -f conf$$subs.awk
12400cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12401_ACAWK
12402cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12403  for (key in S) S_is_set[key] = 1
12404  FS = ""
12405
12406}
12407{
12408  line = $ 0
12409  nfields = split(line, field, "@")
12410  substed = 0
12411  len = length(field[1])
12412  for (i = 2; i < nfields; i++) {
12413    key = field[i]
12414    keylen = length(key)
12415    if (S_is_set[key]) {
12416      value = S[key]
12417      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12418      len += length(value) + length(field[++i])
12419      substed = 1
12420    } else
12421      len += 1 + keylen
12422  }
12423
12424  print line
12425}
12426
12427_ACAWK
12428_ACEOF
12429cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12430if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12431  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12432else
12433  cat
12434fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12435  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12436_ACEOF
12437
12438# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12439# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12440# trailing colons and then remove the whole line if VPATH becomes empty
12441# (actually we leave an empty line to preserve line numbers).
12442if test "x$srcdir" = x.; then
12443  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12444h
12445s///
12446s/^/:/
12447s/[	 ]*$/:/
12448s/:\$(srcdir):/:/g
12449s/:\${srcdir}:/:/g
12450s/:@srcdir@:/:/g
12451s/^:*//
12452s/:*$//
12453x
12454s/\(=[	 ]*\).*/\1/
12455G
12456s/\n//
12457s/^[^=]*=[	 ]*$//
12458}'
12459fi
12460
12461cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12462fi # test -n "$CONFIG_FILES"
12463
12464# Set up the scripts for CONFIG_HEADERS section.
12465# No need to generate them if there are no CONFIG_HEADERS.
12466# This happens for instance with `./config.status Makefile'.
12467if test -n "$CONFIG_HEADERS"; then
12468cat >"$tmp/defines.awk" <<\_ACAWK ||
12469BEGIN {
12470_ACEOF
12471
12472# Transform confdefs.h into an awk script `defines.awk', embedded as
12473# here-document in config.status, that substitutes the proper values into
12474# config.h.in to produce config.h.
12475
12476# Create a delimiter string that does not exist in confdefs.h, to ease
12477# handling of long lines.
12478ac_delim='%!_!# '
12479for ac_last_try in false false :; do
12480  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12481  if test -z "$ac_t"; then
12482    break
12483  elif $ac_last_try; then
12484    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12485  else
12486    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12487  fi
12488done
12489
12490# For the awk script, D is an array of macro values keyed by name,
12491# likewise P contains macro parameters if any.  Preserve backslash
12492# newline sequences.
12493
12494ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12495sed -n '
12496s/.\{148\}/&'"$ac_delim"'/g
12497t rset
12498:rset
12499s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12500t def
12501d
12502:def
12503s/\\$//
12504t bsnl
12505s/["\\]/\\&/g
12506s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12507D["\1"]=" \3"/p
12508s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12509d
12510:bsnl
12511s/["\\]/\\&/g
12512s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12513D["\1"]=" \3\\\\\\n"\\/p
12514t cont
12515s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12516t cont
12517d
12518:cont
12519n
12520s/.\{148\}/&'"$ac_delim"'/g
12521t clear
12522:clear
12523s/\\$//
12524t bsnlc
12525s/["\\]/\\&/g; s/^/"/; s/$/"/p
12526d
12527:bsnlc
12528s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12529b cont
12530' <confdefs.h | sed '
12531s/'"$ac_delim"'/"\\\
12532"/g' >>$CONFIG_STATUS || ac_write_fail=1
12533
12534cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12535  for (key in D) D_is_set[key] = 1
12536  FS = ""
12537}
12538/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12539  line = \$ 0
12540  split(line, arg, " ")
12541  if (arg[1] == "#") {
12542    defundef = arg[2]
12543    mac1 = arg[3]
12544  } else {
12545    defundef = substr(arg[1], 2)
12546    mac1 = arg[2]
12547  }
12548  split(mac1, mac2, "(") #)
12549  macro = mac2[1]
12550  prefix = substr(line, 1, index(line, defundef) - 1)
12551  if (D_is_set[macro]) {
12552    # Preserve the white space surrounding the "#".
12553    print prefix "define", macro P[macro] D[macro]
12554    next
12555  } else {
12556    # Replace #undef with comments.  This is necessary, for example,
12557    # in the case of _POSIX_SOURCE, which is predefined and required
12558    # on some systems where configure will not decide to define it.
12559    if (defundef == "undef") {
12560      print "/*", prefix defundef, macro, "*/"
12561      next
12562    }
12563  }
12564}
12565{ print }
12566_ACAWK
12567_ACEOF
12568cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12569  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12570fi # test -n "$CONFIG_HEADERS"
12571
12572
12573eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12574shift
12575for ac_tag
12576do
12577  case $ac_tag in
12578  :[FHLC]) ac_mode=$ac_tag; continue;;
12579  esac
12580  case $ac_mode$ac_tag in
12581  :[FHL]*:*);;
12582  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12583  :[FH]-) ac_tag=-:-;;
12584  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12585  esac
12586  ac_save_IFS=$IFS
12587  IFS=:
12588  set x $ac_tag
12589  IFS=$ac_save_IFS
12590  shift
12591  ac_file=$1
12592  shift
12593
12594  case $ac_mode in
12595  :L) ac_source=$1;;
12596  :[FH])
12597    ac_file_inputs=
12598    for ac_f
12599    do
12600      case $ac_f in
12601      -) ac_f="$tmp/stdin";;
12602      *) # Look for the file first in the build tree, then in the source tree
12603	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12604	 # because $ac_f cannot contain `:'.
12605	 test -f "$ac_f" ||
12606	   case $ac_f in
12607	   [\\/$]*) false;;
12608	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12609	   esac ||
12610	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12611      esac
12612      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12613      as_fn_append ac_file_inputs " '$ac_f'"
12614    done
12615
12616    # Let's still pretend it is `configure' which instantiates (i.e., don't
12617    # use $as_me), people would be surprised to read:
12618    #    /* config.h.  Generated by config.status.  */
12619    configure_input='Generated from '`
12620	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12621	`' by configure.'
12622    if test x"$ac_file" != x-; then
12623      configure_input="$ac_file.  $configure_input"
12624      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12625$as_echo "$as_me: creating $ac_file" >&6;}
12626    fi
12627    # Neutralize special characters interpreted by sed in replacement strings.
12628    case $configure_input in #(
12629    *\&* | *\|* | *\\* )
12630       ac_sed_conf_input=`$as_echo "$configure_input" |
12631       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12632    *) ac_sed_conf_input=$configure_input;;
12633    esac
12634
12635    case $ac_tag in
12636    *:-:* | *:-) cat >"$tmp/stdin" \
12637      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12638    esac
12639    ;;
12640  esac
12641
12642  ac_dir=`$as_dirname -- "$ac_file" ||
12643$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12644	 X"$ac_file" : 'X\(//\)[^/]' \| \
12645	 X"$ac_file" : 'X\(//\)$' \| \
12646	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12647$as_echo X"$ac_file" |
12648    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12649	    s//\1/
12650	    q
12651	  }
12652	  /^X\(\/\/\)[^/].*/{
12653	    s//\1/
12654	    q
12655	  }
12656	  /^X\(\/\/\)$/{
12657	    s//\1/
12658	    q
12659	  }
12660	  /^X\(\/\).*/{
12661	    s//\1/
12662	    q
12663	  }
12664	  s/.*/./; q'`
12665  as_dir="$ac_dir"; as_fn_mkdir_p
12666  ac_builddir=.
12667
12668case "$ac_dir" in
12669.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12670*)
12671  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12672  # A ".." for each directory in $ac_dir_suffix.
12673  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12674  case $ac_top_builddir_sub in
12675  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12676  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12677  esac ;;
12678esac
12679ac_abs_top_builddir=$ac_pwd
12680ac_abs_builddir=$ac_pwd$ac_dir_suffix
12681# for backward compatibility:
12682ac_top_builddir=$ac_top_build_prefix
12683
12684case $srcdir in
12685  .)  # We are building in place.
12686    ac_srcdir=.
12687    ac_top_srcdir=$ac_top_builddir_sub
12688    ac_abs_top_srcdir=$ac_pwd ;;
12689  [\\/]* | ?:[\\/]* )  # Absolute name.
12690    ac_srcdir=$srcdir$ac_dir_suffix;
12691    ac_top_srcdir=$srcdir
12692    ac_abs_top_srcdir=$srcdir ;;
12693  *) # Relative name.
12694    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12695    ac_top_srcdir=$ac_top_build_prefix$srcdir
12696    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12697esac
12698ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12699
12700
12701  case $ac_mode in
12702  :F)
12703  #
12704  # CONFIG_FILE
12705  #
12706
12707  case $INSTALL in
12708  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12709  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12710  esac
12711  ac_MKDIR_P=$MKDIR_P
12712  case $MKDIR_P in
12713  [\\/$]* | ?:[\\/]* ) ;;
12714  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12715  esac
12716_ACEOF
12717
12718cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12719# If the template does not know about datarootdir, expand it.
12720# FIXME: This hack should be removed a few years after 2.60.
12721ac_datarootdir_hack=; ac_datarootdir_seen=
12722ac_sed_dataroot='
12723/datarootdir/ {
12724  p
12725  q
12726}
12727/@datadir@/p
12728/@docdir@/p
12729/@infodir@/p
12730/@localedir@/p
12731/@mandir@/p'
12732case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12733*datarootdir*) ac_datarootdir_seen=yes;;
12734*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12735  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12736$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12737_ACEOF
12738cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12739  ac_datarootdir_hack='
12740  s&@datadir@&$datadir&g
12741  s&@docdir@&$docdir&g
12742  s&@infodir@&$infodir&g
12743  s&@localedir@&$localedir&g
12744  s&@mandir@&$mandir&g
12745  s&\\\${datarootdir}&$datarootdir&g' ;;
12746esac
12747_ACEOF
12748
12749# Neutralize VPATH when `$srcdir' = `.'.
12750# Shell code in configure.ac might set extrasub.
12751# FIXME: do we really want to maintain this feature?
12752cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12753ac_sed_extra="$ac_vpsub
12754$extrasub
12755_ACEOF
12756cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12757:t
12758/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12759s|@configure_input@|$ac_sed_conf_input|;t t
12760s&@top_builddir@&$ac_top_builddir_sub&;t t
12761s&@top_build_prefix@&$ac_top_build_prefix&;t t
12762s&@srcdir@&$ac_srcdir&;t t
12763s&@abs_srcdir@&$ac_abs_srcdir&;t t
12764s&@top_srcdir@&$ac_top_srcdir&;t t
12765s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12766s&@builddir@&$ac_builddir&;t t
12767s&@abs_builddir@&$ac_abs_builddir&;t t
12768s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12769s&@INSTALL@&$ac_INSTALL&;t t
12770s&@MKDIR_P@&$ac_MKDIR_P&;t t
12771$ac_datarootdir_hack
12772"
12773eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12774  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12775
12776test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12777  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12778  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12779  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12780which seems to be undefined.  Please make sure it is defined" >&5
12781$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12782which seems to be undefined.  Please make sure it is defined" >&2;}
12783
12784  rm -f "$tmp/stdin"
12785  case $ac_file in
12786  -) cat "$tmp/out" && rm -f "$tmp/out";;
12787  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12788  esac \
12789  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12790 ;;
12791  :H)
12792  #
12793  # CONFIG_HEADER
12794  #
12795  if test x"$ac_file" != x-; then
12796    {
12797      $as_echo "/* $configure_input  */" \
12798      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12799    } >"$tmp/config.h" \
12800      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12801    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12802      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12803$as_echo "$as_me: $ac_file is unchanged" >&6;}
12804    else
12805      rm -f "$ac_file"
12806      mv "$tmp/config.h" "$ac_file" \
12807	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12808    fi
12809  else
12810    $as_echo "/* $configure_input  */" \
12811      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12812      || as_fn_error $? "could not create -" "$LINENO" 5
12813  fi
12814# Compute "$ac_file"'s index in $config_headers.
12815_am_arg="$ac_file"
12816_am_stamp_count=1
12817for _am_header in $config_headers :; do
12818  case $_am_header in
12819    $_am_arg | $_am_arg:* )
12820      break ;;
12821    * )
12822      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12823  esac
12824done
12825echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12826$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12827	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12828	 X"$_am_arg" : 'X\(//\)$' \| \
12829	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12830$as_echo X"$_am_arg" |
12831    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12832	    s//\1/
12833	    q
12834	  }
12835	  /^X\(\/\/\)[^/].*/{
12836	    s//\1/
12837	    q
12838	  }
12839	  /^X\(\/\/\)$/{
12840	    s//\1/
12841	    q
12842	  }
12843	  /^X\(\/\).*/{
12844	    s//\1/
12845	    q
12846	  }
12847	  s/.*/./; q'`/stamp-h$_am_stamp_count
12848 ;;
12849
12850  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12851$as_echo "$as_me: executing $ac_file commands" >&6;}
12852 ;;
12853  esac
12854
12855
12856  case $ac_file$ac_mode in
12857    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12858  # Autoconf 2.62 quotes --file arguments for eval, but not when files
12859  # are listed without --file.  Let's play safe and only enable the eval
12860  # if we detect the quoting.
12861  case $CONFIG_FILES in
12862  *\'*) eval set x "$CONFIG_FILES" ;;
12863  *)   set x $CONFIG_FILES ;;
12864  esac
12865  shift
12866  for mf
12867  do
12868    # Strip MF so we end up with the name of the file.
12869    mf=`echo "$mf" | sed -e 's/:.*$//'`
12870    # Check whether this is an Automake generated Makefile or not.
12871    # We used to match only the files named `Makefile.in', but
12872    # some people rename them; so instead we look at the file content.
12873    # Grep'ing the first line is not enough: some people post-process
12874    # each Makefile.in and add a new line on top of each file to say so.
12875    # Grep'ing the whole file is not good either: AIX grep has a line
12876    # limit of 2048, but all sed's we know have understand at least 4000.
12877    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12878      dirpart=`$as_dirname -- "$mf" ||
12879$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12880	 X"$mf" : 'X\(//\)[^/]' \| \
12881	 X"$mf" : 'X\(//\)$' \| \
12882	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12883$as_echo X"$mf" |
12884    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12885	    s//\1/
12886	    q
12887	  }
12888	  /^X\(\/\/\)[^/].*/{
12889	    s//\1/
12890	    q
12891	  }
12892	  /^X\(\/\/\)$/{
12893	    s//\1/
12894	    q
12895	  }
12896	  /^X\(\/\).*/{
12897	    s//\1/
12898	    q
12899	  }
12900	  s/.*/./; q'`
12901    else
12902      continue
12903    fi
12904    # Extract the definition of DEPDIR, am__include, and am__quote
12905    # from the Makefile without running `make'.
12906    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12907    test -z "$DEPDIR" && continue
12908    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12909    test -z "am__include" && continue
12910    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12911    # When using ansi2knr, U may be empty or an underscore; expand it
12912    U=`sed -n 's/^U = //p' < "$mf"`
12913    # Find all dependency output files, they are included files with
12914    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12915    # simplest approach to changing $(DEPDIR) to its actual value in the
12916    # expansion.
12917    for file in `sed -n "
12918      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12919	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12920      # Make sure the directory exists.
12921      test -f "$dirpart/$file" && continue
12922      fdir=`$as_dirname -- "$file" ||
12923$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12924	 X"$file" : 'X\(//\)[^/]' \| \
12925	 X"$file" : 'X\(//\)$' \| \
12926	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12927$as_echo X"$file" |
12928    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12929	    s//\1/
12930	    q
12931	  }
12932	  /^X\(\/\/\)[^/].*/{
12933	    s//\1/
12934	    q
12935	  }
12936	  /^X\(\/\/\)$/{
12937	    s//\1/
12938	    q
12939	  }
12940	  /^X\(\/\).*/{
12941	    s//\1/
12942	    q
12943	  }
12944	  s/.*/./; q'`
12945      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12946      # echo "creating $dirpart/$file"
12947      echo '# dummy' > "$dirpart/$file"
12948    done
12949  done
12950}
12951 ;;
12952    "libtool":C)
12953
12954    # See if we are running on zsh, and set the options which allow our
12955    # commands through without removal of \ escapes.
12956    if test -n "${ZSH_VERSION+set}" ; then
12957      setopt NO_GLOB_SUBST
12958    fi
12959
12960    cfgfile="${ofile}T"
12961    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12962    $RM "$cfgfile"
12963
12964    cat <<_LT_EOF >> "$cfgfile"
12965#! $SHELL
12966
12967# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12968# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12969# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12970# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12971#
12972#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12973#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
12974#                 Inc.
12975#   Written by Gordon Matzigkeit, 1996
12976#
12977#   This file is part of GNU Libtool.
12978#
12979# GNU Libtool is free software; you can redistribute it and/or
12980# modify it under the terms of the GNU General Public License as
12981# published by the Free Software Foundation; either version 2 of
12982# the License, or (at your option) any later version.
12983#
12984# As a special exception to the GNU General Public License,
12985# if you distribute this file as part of a program or library that
12986# is built using GNU Libtool, you may include this file under the
12987# same distribution terms that you use for the rest of that program.
12988#
12989# GNU Libtool is distributed in the hope that it will be useful,
12990# but WITHOUT ANY WARRANTY; without even the implied warranty of
12991# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12992# GNU General Public License for more details.
12993#
12994# You should have received a copy of the GNU General Public License
12995# along with GNU Libtool; see the file COPYING.  If not, a copy
12996# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12997# obtained by writing to the Free Software Foundation, Inc.,
12998# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12999
13000
13001# The names of the tagged configurations supported by this script.
13002available_tags=""
13003
13004# ### BEGIN LIBTOOL CONFIG
13005
13006# Whether or not to build static libraries.
13007build_old_libs=$enable_static
13008
13009# Which release of libtool.m4 was used?
13010macro_version=$macro_version
13011macro_revision=$macro_revision
13012
13013# Whether or not to build shared libraries.
13014build_libtool_libs=$enable_shared
13015
13016# What type of objects to build.
13017pic_mode=$pic_mode
13018
13019# Whether or not to optimize for fast installation.
13020fast_install=$enable_fast_install
13021
13022# Shell to use when invoking shell scripts.
13023SHELL=$lt_SHELL
13024
13025# An echo program that protects backslashes.
13026ECHO=$lt_ECHO
13027
13028# The host system.
13029host_alias=$host_alias
13030host=$host
13031host_os=$host_os
13032
13033# The build system.
13034build_alias=$build_alias
13035build=$build
13036build_os=$build_os
13037
13038# A sed program that does not truncate output.
13039SED=$lt_SED
13040
13041# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13042Xsed="\$SED -e 1s/^X//"
13043
13044# A grep program that handles long lines.
13045GREP=$lt_GREP
13046
13047# An ERE matcher.
13048EGREP=$lt_EGREP
13049
13050# A literal string matcher.
13051FGREP=$lt_FGREP
13052
13053# A BSD- or MS-compatible name lister.
13054NM=$lt_NM
13055
13056# Whether we need soft or hard links.
13057LN_S=$lt_LN_S
13058
13059# What is the maximum length of a command?
13060max_cmd_len=$max_cmd_len
13061
13062# Object file suffix (normally "o").
13063objext=$ac_objext
13064
13065# Executable file suffix (normally "").
13066exeext=$exeext
13067
13068# whether the shell understands "unset".
13069lt_unset=$lt_unset
13070
13071# turn spaces into newlines.
13072SP2NL=$lt_lt_SP2NL
13073
13074# turn newlines into spaces.
13075NL2SP=$lt_lt_NL2SP
13076
13077# An object symbol dumper.
13078OBJDUMP=$lt_OBJDUMP
13079
13080# Method to check whether dependent libraries are shared objects.
13081deplibs_check_method=$lt_deplibs_check_method
13082
13083# Command to use when deplibs_check_method == "file_magic".
13084file_magic_cmd=$lt_file_magic_cmd
13085
13086# The archiver.
13087AR=$lt_AR
13088AR_FLAGS=$lt_AR_FLAGS
13089
13090# A symbol stripping program.
13091STRIP=$lt_STRIP
13092
13093# Commands used to install an old-style archive.
13094RANLIB=$lt_RANLIB
13095old_postinstall_cmds=$lt_old_postinstall_cmds
13096old_postuninstall_cmds=$lt_old_postuninstall_cmds
13097
13098# Whether to use a lock for old archive extraction.
13099lock_old_archive_extraction=$lock_old_archive_extraction
13100
13101# A C compiler.
13102LTCC=$lt_CC
13103
13104# LTCC compiler flags.
13105LTCFLAGS=$lt_CFLAGS
13106
13107# Take the output of nm and produce a listing of raw symbols and C names.
13108global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13109
13110# Transform the output of nm in a proper C declaration.
13111global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13112
13113# Transform the output of nm in a C name address pair.
13114global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13115
13116# Transform the output of nm in a C name address pair when lib prefix is needed.
13117global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13118
13119# The name of the directory that contains temporary libtool files.
13120objdir=$objdir
13121
13122# Used to examine libraries when file_magic_cmd begins with "file".
13123MAGIC_CMD=$MAGIC_CMD
13124
13125# Must we lock files when doing compilation?
13126need_locks=$lt_need_locks
13127
13128# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13129DSYMUTIL=$lt_DSYMUTIL
13130
13131# Tool to change global to local symbols on Mac OS X.
13132NMEDIT=$lt_NMEDIT
13133
13134# Tool to manipulate fat objects and archives on Mac OS X.
13135LIPO=$lt_LIPO
13136
13137# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13138OTOOL=$lt_OTOOL
13139
13140# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13141OTOOL64=$lt_OTOOL64
13142
13143# Old archive suffix (normally "a").
13144libext=$libext
13145
13146# Shared library suffix (normally ".so").
13147shrext_cmds=$lt_shrext_cmds
13148
13149# The commands to extract the exported symbol list from a shared archive.
13150extract_expsyms_cmds=$lt_extract_expsyms_cmds
13151
13152# Variables whose values should be saved in libtool wrapper scripts and
13153# restored at link time.
13154variables_saved_for_relink=$lt_variables_saved_for_relink
13155
13156# Do we need the "lib" prefix for modules?
13157need_lib_prefix=$need_lib_prefix
13158
13159# Do we need a version for libraries?
13160need_version=$need_version
13161
13162# Library versioning type.
13163version_type=$version_type
13164
13165# Shared library runtime path variable.
13166runpath_var=$runpath_var
13167
13168# Shared library path variable.
13169shlibpath_var=$shlibpath_var
13170
13171# Is shlibpath searched before the hard-coded library search path?
13172shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13173
13174# Format of library name prefix.
13175libname_spec=$lt_libname_spec
13176
13177# List of archive names.  First name is the real one, the rest are links.
13178# The last name is the one that the linker finds with -lNAME
13179library_names_spec=$lt_library_names_spec
13180
13181# The coded name of the library, if different from the real name.
13182soname_spec=$lt_soname_spec
13183
13184# Permission mode override for installation of shared libraries.
13185install_override_mode=$lt_install_override_mode
13186
13187# Command to use after installation of a shared archive.
13188postinstall_cmds=$lt_postinstall_cmds
13189
13190# Command to use after uninstallation of a shared archive.
13191postuninstall_cmds=$lt_postuninstall_cmds
13192
13193# Commands used to finish a libtool library installation in a directory.
13194finish_cmds=$lt_finish_cmds
13195
13196# As "finish_cmds", except a single script fragment to be evaled but
13197# not shown.
13198finish_eval=$lt_finish_eval
13199
13200# Whether we should hardcode library paths into libraries.
13201hardcode_into_libs=$hardcode_into_libs
13202
13203# Compile-time system search path for libraries.
13204sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13205
13206# Run-time system search path for libraries.
13207sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13208
13209# Whether dlopen is supported.
13210dlopen_support=$enable_dlopen
13211
13212# Whether dlopen of programs is supported.
13213dlopen_self=$enable_dlopen_self
13214
13215# Whether dlopen of statically linked programs is supported.
13216dlopen_self_static=$enable_dlopen_self_static
13217
13218# Commands to strip libraries.
13219old_striplib=$lt_old_striplib
13220striplib=$lt_striplib
13221
13222
13223# The linker used to build libraries.
13224LD=$lt_LD
13225
13226# How to create reloadable object files.
13227reload_flag=$lt_reload_flag
13228reload_cmds=$lt_reload_cmds
13229
13230# Commands used to build an old-style archive.
13231old_archive_cmds=$lt_old_archive_cmds
13232
13233# A language specific compiler.
13234CC=$lt_compiler
13235
13236# Is the compiler the GNU compiler?
13237with_gcc=$GCC
13238
13239# Compiler flag to turn off builtin functions.
13240no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13241
13242# How to pass a linker flag through the compiler.
13243wl=$lt_lt_prog_compiler_wl
13244
13245# Additional compiler flags for building library objects.
13246pic_flag=$lt_lt_prog_compiler_pic
13247
13248# Compiler flag to prevent dynamic linking.
13249link_static_flag=$lt_lt_prog_compiler_static
13250
13251# Does compiler simultaneously support -c and -o options?
13252compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13253
13254# Whether or not to add -lc for building shared libraries.
13255build_libtool_need_lc=$archive_cmds_need_lc
13256
13257# Whether or not to disallow shared libs when runtime libs are static.
13258allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13259
13260# Compiler flag to allow reflexive dlopens.
13261export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13262
13263# Compiler flag to generate shared objects directly from archives.
13264whole_archive_flag_spec=$lt_whole_archive_flag_spec
13265
13266# Whether the compiler copes with passing no objects directly.
13267compiler_needs_object=$lt_compiler_needs_object
13268
13269# Create an old-style archive from a shared archive.
13270old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13271
13272# Create a temporary old-style archive to link instead of a shared archive.
13273old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13274
13275# Commands used to build a shared archive.
13276archive_cmds=$lt_archive_cmds
13277archive_expsym_cmds=$lt_archive_expsym_cmds
13278
13279# Commands used to build a loadable module if different from building
13280# a shared archive.
13281module_cmds=$lt_module_cmds
13282module_expsym_cmds=$lt_module_expsym_cmds
13283
13284# Whether we are building with GNU ld or not.
13285with_gnu_ld=$lt_with_gnu_ld
13286
13287# Flag that allows shared libraries with undefined symbols to be built.
13288allow_undefined_flag=$lt_allow_undefined_flag
13289
13290# Flag that enforces no undefined symbols.
13291no_undefined_flag=$lt_no_undefined_flag
13292
13293# Flag to hardcode \$libdir into a binary during linking.
13294# This must work even if \$libdir does not exist
13295hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13296
13297# If ld is used when linking, flag to hardcode \$libdir into a binary
13298# during linking.  This must work even if \$libdir does not exist.
13299hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13300
13301# Whether we need a single "-rpath" flag with a separated argument.
13302hardcode_libdir_separator=$lt_hardcode_libdir_separator
13303
13304# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13305# DIR into the resulting binary.
13306hardcode_direct=$hardcode_direct
13307
13308# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13309# DIR into the resulting binary and the resulting library dependency is
13310# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13311# library is relocated.
13312hardcode_direct_absolute=$hardcode_direct_absolute
13313
13314# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13315# into the resulting binary.
13316hardcode_minus_L=$hardcode_minus_L
13317
13318# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13319# into the resulting binary.
13320hardcode_shlibpath_var=$hardcode_shlibpath_var
13321
13322# Set to "yes" if building a shared library automatically hardcodes DIR
13323# into the library and all subsequent libraries and executables linked
13324# against it.
13325hardcode_automatic=$hardcode_automatic
13326
13327# Set to yes if linker adds runtime paths of dependent libraries
13328# to runtime path list.
13329inherit_rpath=$inherit_rpath
13330
13331# Whether libtool must link a program against all its dependency libraries.
13332link_all_deplibs=$link_all_deplibs
13333
13334# Fix the shell variable \$srcfile for the compiler.
13335fix_srcfile_path=$lt_fix_srcfile_path
13336
13337# Set to "yes" if exported symbols are required.
13338always_export_symbols=$always_export_symbols
13339
13340# The commands to list exported symbols.
13341export_symbols_cmds=$lt_export_symbols_cmds
13342
13343# Symbols that should not be listed in the preloaded symbols.
13344exclude_expsyms=$lt_exclude_expsyms
13345
13346# Symbols that must always be exported.
13347include_expsyms=$lt_include_expsyms
13348
13349# Commands necessary for linking programs (against libraries) with templates.
13350prelink_cmds=$lt_prelink_cmds
13351
13352# Specify filename containing input files.
13353file_list_spec=$lt_file_list_spec
13354
13355# How to hardcode a shared library path into an executable.
13356hardcode_action=$hardcode_action
13357
13358# ### END LIBTOOL CONFIG
13359
13360_LT_EOF
13361
13362  case $host_os in
13363  aix3*)
13364    cat <<\_LT_EOF >> "$cfgfile"
13365# AIX sometimes has problems with the GCC collect2 program.  For some
13366# reason, if we set the COLLECT_NAMES environment variable, the problems
13367# vanish in a puff of smoke.
13368if test "X${COLLECT_NAMES+set}" != Xset; then
13369  COLLECT_NAMES=
13370  export COLLECT_NAMES
13371fi
13372_LT_EOF
13373    ;;
13374  esac
13375
13376
13377ltmain="$ac_aux_dir/ltmain.sh"
13378
13379
13380  # We use sed instead of cat because bash on DJGPP gets confused if
13381  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13382  # text mode, it properly converts lines to CR/LF.  This bash problem
13383  # is reportedly fixed, but why not run on old versions too?
13384  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13385    || (rm -f "$cfgfile"; exit 1)
13386
13387  case $xsi_shell in
13388  yes)
13389    cat << \_LT_EOF >> "$cfgfile"
13390
13391# func_dirname file append nondir_replacement
13392# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13393# otherwise set result to NONDIR_REPLACEMENT.
13394func_dirname ()
13395{
13396  case ${1} in
13397    */*) func_dirname_result="${1%/*}${2}" ;;
13398    *  ) func_dirname_result="${3}" ;;
13399  esac
13400}
13401
13402# func_basename file
13403func_basename ()
13404{
13405  func_basename_result="${1##*/}"
13406}
13407
13408# func_dirname_and_basename file append nondir_replacement
13409# perform func_basename and func_dirname in a single function
13410# call:
13411#   dirname:  Compute the dirname of FILE.  If nonempty,
13412#             add APPEND to the result, otherwise set result
13413#             to NONDIR_REPLACEMENT.
13414#             value returned in "$func_dirname_result"
13415#   basename: Compute filename of FILE.
13416#             value retuned in "$func_basename_result"
13417# Implementation must be kept synchronized with func_dirname
13418# and func_basename. For efficiency, we do not delegate to
13419# those functions but instead duplicate the functionality here.
13420func_dirname_and_basename ()
13421{
13422  case ${1} in
13423    */*) func_dirname_result="${1%/*}${2}" ;;
13424    *  ) func_dirname_result="${3}" ;;
13425  esac
13426  func_basename_result="${1##*/}"
13427}
13428
13429# func_stripname prefix suffix name
13430# strip PREFIX and SUFFIX off of NAME.
13431# PREFIX and SUFFIX must not contain globbing or regex special
13432# characters, hashes, percent signs, but SUFFIX may contain a leading
13433# dot (in which case that matches only a dot).
13434func_stripname ()
13435{
13436  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13437  # positional parameters, so assign one to ordinary parameter first.
13438  func_stripname_result=${3}
13439  func_stripname_result=${func_stripname_result#"${1}"}
13440  func_stripname_result=${func_stripname_result%"${2}"}
13441}
13442
13443# func_opt_split
13444func_opt_split ()
13445{
13446  func_opt_split_opt=${1%%=*}
13447  func_opt_split_arg=${1#*=}
13448}
13449
13450# func_lo2o object
13451func_lo2o ()
13452{
13453  case ${1} in
13454    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13455    *)    func_lo2o_result=${1} ;;
13456  esac
13457}
13458
13459# func_xform libobj-or-source
13460func_xform ()
13461{
13462  func_xform_result=${1%.*}.lo
13463}
13464
13465# func_arith arithmetic-term...
13466func_arith ()
13467{
13468  func_arith_result=$(( $* ))
13469}
13470
13471# func_len string
13472# STRING may not start with a hyphen.
13473func_len ()
13474{
13475  func_len_result=${#1}
13476}
13477
13478_LT_EOF
13479    ;;
13480  *) # Bourne compatible functions.
13481    cat << \_LT_EOF >> "$cfgfile"
13482
13483# func_dirname file append nondir_replacement
13484# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13485# otherwise set result to NONDIR_REPLACEMENT.
13486func_dirname ()
13487{
13488  # Extract subdirectory from the argument.
13489  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13490  if test "X$func_dirname_result" = "X${1}"; then
13491    func_dirname_result="${3}"
13492  else
13493    func_dirname_result="$func_dirname_result${2}"
13494  fi
13495}
13496
13497# func_basename file
13498func_basename ()
13499{
13500  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13501}
13502
13503
13504# func_stripname prefix suffix name
13505# strip PREFIX and SUFFIX off of NAME.
13506# PREFIX and SUFFIX must not contain globbing or regex special
13507# characters, hashes, percent signs, but SUFFIX may contain a leading
13508# dot (in which case that matches only a dot).
13509# func_strip_suffix prefix name
13510func_stripname ()
13511{
13512  case ${2} in
13513    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13514    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13515  esac
13516}
13517
13518# sed scripts:
13519my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13520my_sed_long_arg='1s/^-[^=]*=//'
13521
13522# func_opt_split
13523func_opt_split ()
13524{
13525  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13526  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13527}
13528
13529# func_lo2o object
13530func_lo2o ()
13531{
13532  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13533}
13534
13535# func_xform libobj-or-source
13536func_xform ()
13537{
13538  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13539}
13540
13541# func_arith arithmetic-term...
13542func_arith ()
13543{
13544  func_arith_result=`expr "$@"`
13545}
13546
13547# func_len string
13548# STRING may not start with a hyphen.
13549func_len ()
13550{
13551  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13552}
13553
13554_LT_EOF
13555esac
13556
13557case $lt_shell_append in
13558  yes)
13559    cat << \_LT_EOF >> "$cfgfile"
13560
13561# func_append var value
13562# Append VALUE to the end of shell variable VAR.
13563func_append ()
13564{
13565  eval "$1+=\$2"
13566}
13567_LT_EOF
13568    ;;
13569  *)
13570    cat << \_LT_EOF >> "$cfgfile"
13571
13572# func_append var value
13573# Append VALUE to the end of shell variable VAR.
13574func_append ()
13575{
13576  eval "$1=\$$1\$2"
13577}
13578
13579_LT_EOF
13580    ;;
13581  esac
13582
13583
13584  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13585    || (rm -f "$cfgfile"; exit 1)
13586
13587  mv -f "$cfgfile" "$ofile" ||
13588    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13589  chmod +x "$ofile"
13590
13591 ;;
13592
13593  esac
13594done # for ac_tag
13595
13596
13597as_fn_exit 0
13598_ACEOF
13599ac_clean_files=$ac_clean_files_save
13600
13601test $ac_write_fail = 0 ||
13602  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13603
13604
13605# configure is writing to config.log, and then calls config.status.
13606# config.status does its own redirection, appending to config.log.
13607# Unfortunately, on DOS this fails, as config.log is still kept open
13608# by configure, so config.status won't be able to write to it; its
13609# output is simply discarded.  So we exec the FD to /dev/null,
13610# effectively closing config.log, so it can be properly (re)opened and
13611# appended to by config.status.  When coming back to configure, we
13612# need to make the FD available again.
13613if test "$no_create" != yes; then
13614  ac_cs_success=:
13615  ac_config_status_args=
13616  test "$silent" = yes &&
13617    ac_config_status_args="$ac_config_status_args --quiet"
13618  exec 5>/dev/null
13619  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13620  exec 5>>config.log
13621  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13622  # would make configure fail if this is the last instruction.
13623  $ac_cs_success || as_fn_exit 1
13624fi
13625if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13626  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13627$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13628fi
13629
13630