configure revision 75cbef56
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xf86-input-elographics 1.4.1.
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.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    PATH=/empty FPATH=/empty; export PATH FPATH
183    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185test \$(( 1 + 1 )) = 2 || exit 1"
186  if (eval "$as_required") 2>/dev/null; then :
187  as_have_required=yes
188else
189  as_have_required=no
190fi
191  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198  IFS=$as_save_IFS
199  test -z "$as_dir" && as_dir=.
200  as_found=:
201  case $as_dir in #(
202	 /*)
203	   for as_base in sh bash ksh sh5; do
204	     # Try only shells that exist, to save several forks.
205	     as_shell=$as_dir/$as_base
206	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  CONFIG_SHELL=$as_shell as_have_required=yes
209		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210  break 2
211fi
212fi
213	   done;;
214       esac
215  as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219  CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224      if test "x$CONFIG_SHELL" != x; then :
225  # We cannot yet assume a decent shell, so we have to provide a
226	# neutralization value for shells without unset; and this also
227	# works around shells that cannot unset nonexistent variables.
228	# Preserve -v and -x to the replacement shell.
229	BASH_ENV=/dev/null
230	ENV=/dev/null
231	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232	export CONFIG_SHELL
233	case $- in # ((((
234	  *v*x* | *x*v* ) as_opts=-vx ;;
235	  *v* ) as_opts=-v ;;
236	  *x* ) as_opts=-x ;;
237	  * ) as_opts= ;;
238	esac
239	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242    if test x$as_have_required = xno; then :
243  $as_echo "$0: This script requires a shell more modern than all"
244  $as_echo "$0: the shells that I found on your system."
245  if test x${ZSH_VERSION+set} = xset ; then
246    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248  else
249    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251$0: about your system, including any error possibly output
252$0: before this message. Then install a modern shell, or
253$0: manually run the script under such a shell if you do
254$0: have one."
255  fi
256  exit 1
257fi
258fi
259fi
260SHELL=${CONFIG_SHELL-/bin/sh}
261export SHELL
262# Unset more variables known to interfere with behavior of common tools.
263CLICOLOR_FORCE= GREP_OPTIONS=
264unset CLICOLOR_FORCE GREP_OPTIONS
265
266## --------------------- ##
267## M4sh Shell Functions. ##
268## --------------------- ##
269# as_fn_unset VAR
270# ---------------
271# Portably unset VAR.
272as_fn_unset ()
273{
274  { eval $1=; unset $1;}
275}
276as_unset=as_fn_unset
277
278# as_fn_set_status STATUS
279# -----------------------
280# Set $? to STATUS, without forking.
281as_fn_set_status ()
282{
283  return $1
284} # as_fn_set_status
285
286# as_fn_exit STATUS
287# -----------------
288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289as_fn_exit ()
290{
291  set +e
292  as_fn_set_status $1
293  exit $1
294} # as_fn_exit
295
296# as_fn_mkdir_p
297# -------------
298# Create "$as_dir" as a directory, including parents if necessary.
299as_fn_mkdir_p ()
300{
301
302  case $as_dir in #(
303  -*) as_dir=./$as_dir;;
304  esac
305  test -d "$as_dir" || eval $as_mkdir_p || {
306    as_dirs=
307    while :; do
308      case $as_dir in #(
309      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310      *) as_qdir=$as_dir;;
311      esac
312      as_dirs="'$as_qdir' $as_dirs"
313      as_dir=`$as_dirname -- "$as_dir" ||
314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315	 X"$as_dir" : 'X\(//\)[^/]' \| \
316	 X"$as_dir" : 'X\(//\)$' \| \
317	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318$as_echo X"$as_dir" |
319    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\/\)[^/].*/{
324	    s//\1/
325	    q
326	  }
327	  /^X\(\/\/\)$/{
328	    s//\1/
329	    q
330	  }
331	  /^X\(\/\).*/{
332	    s//\1/
333	    q
334	  }
335	  s/.*/./; q'`
336      test -d "$as_dir" && break
337    done
338    test -z "$as_dirs" || eval "mkdir $as_dirs"
339  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342} # as_fn_mkdir_p
343# as_fn_append VAR VALUE
344# ----------------------
345# Append the text in VALUE to the end of the definition contained in VAR. Take
346# advantage of any shell optimizations that allow amortized linear growth over
347# repeated appends, instead of the typical quadratic growth present in naive
348# implementations.
349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350  eval 'as_fn_append ()
351  {
352    eval $1+=\$2
353  }'
354else
355  as_fn_append ()
356  {
357    eval $1=\$$1\$2
358  }
359fi # as_fn_append
360
361# as_fn_arith ARG...
362# ------------------
363# Perform arithmetic evaluation on the ARGs, and store the result in the
364# global $as_val. Take advantage of shells that can avoid forks. The arguments
365# must be portable across $(()) and expr.
366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367  eval 'as_fn_arith ()
368  {
369    as_val=$(( $* ))
370  }'
371else
372  as_fn_arith ()
373  {
374    as_val=`expr "$@" || test $? -eq 1`
375  }
376fi # as_fn_arith
377
378
379# as_fn_error STATUS ERROR [LINENO LOG_FD]
380# ----------------------------------------
381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383# script with STATUS, using 1 if that was 0.
384as_fn_error ()
385{
386  as_status=$1; test $as_status -eq 0 && as_status=1
387  if test "$4"; then
388    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390  fi
391  $as_echo "$as_me: error: $2" >&2
392  as_fn_exit $as_status
393} # as_fn_error
394
395if expr a : '\(a\)' >/dev/null 2>&1 &&
396   test "X`expr 00001 : '.*\(...\)'`" = X001; then
397  as_expr=expr
398else
399  as_expr=false
400fi
401
402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403  as_basename=basename
404else
405  as_basename=false
406fi
407
408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409  as_dirname=dirname
410else
411  as_dirname=false
412fi
413
414as_me=`$as_basename -- "$0" ||
415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416	 X"$0" : 'X\(//\)$' \| \
417	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418$as_echo X/"$0" |
419    sed '/^.*\/\([^/][^/]*\)\/*$/{
420	    s//\1/
421	    q
422	  }
423	  /^X\/\(\/\/\)$/{
424	    s//\1/
425	    q
426	  }
427	  /^X\/\(\/\).*/{
428	    s//\1/
429	    q
430	  }
431	  s/.*/./; q'`
432
433# Avoid depending upon Character Ranges.
434as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437as_cr_digits='0123456789'
438as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441  as_lineno_1=$LINENO as_lineno_1a=$LINENO
442  as_lineno_2=$LINENO as_lineno_2a=$LINENO
443  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446  sed -n '
447    p
448    /[$]LINENO/=
449  ' <$as_myself |
450    sed '
451      s/[$]LINENO.*/&-/
452      t lineno
453      b
454      :lineno
455      N
456      :loop
457      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458      t loop
459      s/-\n.*//
460    ' >$as_me.lineno &&
461  chmod +x "$as_me.lineno" ||
462    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464  # Don't try to exec as it changes $[0], causing all sort of problems
465  # (the dirname of $[0] is not the place where we might find the
466  # original and so on.  Autoconf is especially sensitive to this).
467  . "./$as_me.lineno"
468  # Exit status is that of the last command.
469  exit
470}
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in #(((((
474-n*)
475  case `echo 'xy\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  xy)  ECHO_C='\c';;
478  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479       ECHO_T='	';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485rm -f conf$$ conf$$.exe conf$$.file
486if test -d conf$$.dir; then
487  rm -f conf$$.dir/conf$$.file
488else
489  rm -f conf$$.dir
490  mkdir conf$$.dir 2>/dev/null
491fi
492if (echo >conf$$.file) 2>/dev/null; then
493  if ln -s conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s='ln -s'
495    # ... but there are two gotchas:
496    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498    # In both cases, we have to default to `cp -p'.
499    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500      as_ln_s='cp -p'
501  elif ln conf$$.file conf$$ 2>/dev/null; then
502    as_ln_s=ln
503  else
504    as_ln_s='cp -p'
505  fi
506else
507  as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
513  as_mkdir_p='mkdir -p "$as_dir"'
514else
515  test -d ./-p && rmdir ./-p
516  as_mkdir_p=false
517fi
518
519if test -x / >/dev/null 2>&1; then
520  as_test_x='test -x'
521else
522  if ls -dL / >/dev/null 2>&1; then
523    as_ls_L_option=L
524  else
525    as_ls_L_option=
526  fi
527  as_test_x='
528    eval sh -c '\''
529      if test -d "$1"; then
530	test -d "$1/.";
531      else
532	case $1 in #(
533	-*)set "./$1";;
534	esac;
535	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536	???[sx]*):;;*)false;;esac;fi
537    '\'' sh
538  '
539fi
540as_executable_p=$as_test_x
541
542# Sed expression to map a string onto a valid CPP name.
543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545# Sed expression to map a string onto a valid variable name.
546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551test -n "$DJDIR" || exec 7<&0 </dev/null
552exec 6>&1
553
554# Name of the host.
555# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
563ac_clean_files=
564ac_config_libobj_dir=.
565LIBOBJS=
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570
571# Identity of this package.
572PACKAGE_NAME='xf86-input-elographics'
573PACKAGE_TARNAME='xf86-input-elographics'
574PACKAGE_VERSION='1.4.1'
575PACKAGE_STRING='xf86-input-elographics 1.4.1'
576PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577PACKAGE_URL=''
578
579ac_unique_file="Makefile.am"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
583#ifdef HAVE_SYS_TYPES_H
584# include <sys/types.h>
585#endif
586#ifdef HAVE_SYS_STAT_H
587# include <sys/stat.h>
588#endif
589#ifdef STDC_HEADERS
590# include <stdlib.h>
591# include <stddef.h>
592#else
593# ifdef HAVE_STDLIB_H
594#  include <stdlib.h>
595# endif
596#endif
597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599#  include <memory.h>
600# endif
601# include <string.h>
602#endif
603#ifdef HAVE_STRINGS_H
604# include <strings.h>
605#endif
606#ifdef HAVE_INTTYPES_H
607# include <inttypes.h>
608#endif
609#ifdef HAVE_STDINT_H
610# include <stdint.h>
611#endif
612#ifdef HAVE_UNISTD_H
613# include <unistd.h>
614#endif"
615
616ac_subst_vars='am__EXEEXT_FALSE
617am__EXEEXT_TRUE
618LTLIBOBJS
619LIBOBJS
620CHANGELOG_CMD
621MAN_SUBSTS
622XORG_MAN_PAGE
623ADMIN_MAN_DIR
624DRIVER_MAN_DIR
625MISC_MAN_DIR
626FILE_MAN_DIR
627LIB_MAN_DIR
628APP_MAN_DIR
629ADMIN_MAN_SUFFIX
630DRIVER_MAN_SUFFIX
631MISC_MAN_SUFFIX
632FILE_MAN_SUFFIX
633LIB_MAN_SUFFIX
634APP_MAN_SUFFIX
635DRIVER_NAME
636XORG_LIBS
637XORG_CFLAGS
638PKG_CONFIG_LIBDIR
639PKG_CONFIG_PATH
640PKG_CONFIG
641inputdir
642CWARNFLAGS
643BASE_CFLAGS
644CPP
645OTOOL64
646OTOOL
647LIPO
648NMEDIT
649DSYMUTIL
650MANIFEST_TOOL
651RANLIB
652ac_ct_AR
653AR
654DLLTOOL
655OBJDUMP
656LN_S
657NM
658ac_ct_DUMPBIN
659DUMPBIN
660LD
661FGREP
662EGREP
663GREP
664SED
665am__fastdepCC_FALSE
666am__fastdepCC_TRUE
667CCDEPMODE
668am__nodep
669AMDEPBACKSLASH
670AMDEP_FALSE
671AMDEP_TRUE
672am__quote
673am__include
674DEPDIR
675OBJEXT
676EXEEXT
677ac_ct_CC
678CPPFLAGS
679LDFLAGS
680CFLAGS
681CC
682host_os
683host_vendor
684host_cpu
685host
686build_os
687build_vendor
688build_cpu
689build
690LIBTOOL
691MAINT
692MAINTAINER_MODE_FALSE
693MAINTAINER_MODE_TRUE
694am__untar
695am__tar
696AMTAR
697am__leading_dot
698SET_MAKE
699AWK
700mkdir_p
701MKDIR_P
702INSTALL_STRIP_PROGRAM
703STRIP
704install_sh
705MAKEINFO
706AUTOHEADER
707AUTOMAKE
708AUTOCONF
709ACLOCAL
710VERSION
711PACKAGE
712CYGPATH_W
713am__isrc
714INSTALL_DATA
715INSTALL_SCRIPT
716INSTALL_PROGRAM
717target_alias
718host_alias
719build_alias
720LIBS
721ECHO_T
722ECHO_N
723ECHO_C
724DEFS
725mandir
726localedir
727libdir
728psdir
729pdfdir
730dvidir
731htmldir
732infodir
733docdir
734oldincludedir
735includedir
736localstatedir
737sharedstatedir
738sysconfdir
739datadir
740datarootdir
741libexecdir
742sbindir
743bindir
744program_transform_name
745prefix
746exec_prefix
747PACKAGE_URL
748PACKAGE_BUGREPORT
749PACKAGE_STRING
750PACKAGE_VERSION
751PACKAGE_TARNAME
752PACKAGE_NAME
753PATH_SEPARATOR
754SHELL'
755ac_subst_files=''
756ac_user_opts='
757enable_option_checking
758enable_maintainer_mode
759enable_static
760enable_shared
761with_pic
762enable_fast_install
763enable_dependency_tracking
764with_gnu_ld
765with_sysroot
766enable_libtool_lock
767enable_selective_werror
768with_xorg_module_dir
769'
770      ac_precious_vars='build_alias
771host_alias
772target_alias
773CC
774CFLAGS
775LDFLAGS
776LIBS
777CPPFLAGS
778CPP
779PKG_CONFIG
780PKG_CONFIG_PATH
781PKG_CONFIG_LIBDIR
782XORG_CFLAGS
783XORG_LIBS'
784
785
786# Initialize some variables set by options.
787ac_init_help=
788ac_init_version=false
789ac_unrecognized_opts=
790ac_unrecognized_sep=
791# The variables have the same names as the options, with
792# dashes changed to underlines.
793cache_file=/dev/null
794exec_prefix=NONE
795no_create=
796no_recursion=
797prefix=NONE
798program_prefix=NONE
799program_suffix=NONE
800program_transform_name=s,x,x,
801silent=
802site=
803srcdir=
804verbose=
805x_includes=NONE
806x_libraries=NONE
807
808# Installation directory options.
809# These are left unexpanded so users can "make install exec_prefix=/foo"
810# and all the variables that are supposed to be based on exec_prefix
811# by default will actually change.
812# Use braces instead of parens because sh, perl, etc. also accept them.
813# (The list follows the same order as the GNU Coding Standards.)
814bindir='${exec_prefix}/bin'
815sbindir='${exec_prefix}/sbin'
816libexecdir='${exec_prefix}/libexec'
817datarootdir='${prefix}/share'
818datadir='${datarootdir}'
819sysconfdir='${prefix}/etc'
820sharedstatedir='${prefix}/com'
821localstatedir='${prefix}/var'
822includedir='${prefix}/include'
823oldincludedir='/usr/include'
824docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
825infodir='${datarootdir}/info'
826htmldir='${docdir}'
827dvidir='${docdir}'
828pdfdir='${docdir}'
829psdir='${docdir}'
830libdir='${exec_prefix}/lib'
831localedir='${datarootdir}/locale'
832mandir='${datarootdir}/man'
833
834ac_prev=
835ac_dashdash=
836for ac_option
837do
838  # If the previous option needs an argument, assign it.
839  if test -n "$ac_prev"; then
840    eval $ac_prev=\$ac_option
841    ac_prev=
842    continue
843  fi
844
845  case $ac_option in
846  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847  *=)   ac_optarg= ;;
848  *)    ac_optarg=yes ;;
849  esac
850
851  # Accept the important Cygnus configure options, so we can diagnose typos.
852
853  case $ac_dashdash$ac_option in
854  --)
855    ac_dashdash=yes ;;
856
857  -bindir | --bindir | --bindi | --bind | --bin | --bi)
858    ac_prev=bindir ;;
859  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
860    bindir=$ac_optarg ;;
861
862  -build | --build | --buil | --bui | --bu)
863    ac_prev=build_alias ;;
864  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865    build_alias=$ac_optarg ;;
866
867  -cache-file | --cache-file | --cache-fil | --cache-fi \
868  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869    ac_prev=cache_file ;;
870  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872    cache_file=$ac_optarg ;;
873
874  --config-cache | -C)
875    cache_file=config.cache ;;
876
877  -datadir | --datadir | --datadi | --datad)
878    ac_prev=datadir ;;
879  -datadir=* | --datadir=* | --datadi=* | --datad=*)
880    datadir=$ac_optarg ;;
881
882  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883  | --dataroo | --dataro | --datar)
884    ac_prev=datarootdir ;;
885  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887    datarootdir=$ac_optarg ;;
888
889  -disable-* | --disable-*)
890    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891    # Reject names that are not valid shell variable names.
892    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893      as_fn_error $? "invalid feature name: $ac_useropt"
894    ac_useropt_orig=$ac_useropt
895    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896    case $ac_user_opts in
897      *"
898"enable_$ac_useropt"
899"*) ;;
900      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901	 ac_unrecognized_sep=', ';;
902    esac
903    eval enable_$ac_useropt=no ;;
904
905  -docdir | --docdir | --docdi | --doc | --do)
906    ac_prev=docdir ;;
907  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908    docdir=$ac_optarg ;;
909
910  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911    ac_prev=dvidir ;;
912  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913    dvidir=$ac_optarg ;;
914
915  -enable-* | --enable-*)
916    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917    # Reject names that are not valid shell variable names.
918    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919      as_fn_error $? "invalid feature name: $ac_useropt"
920    ac_useropt_orig=$ac_useropt
921    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922    case $ac_user_opts in
923      *"
924"enable_$ac_useropt"
925"*) ;;
926      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927	 ac_unrecognized_sep=', ';;
928    esac
929    eval enable_$ac_useropt=\$ac_optarg ;;
930
931  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933  | --exec | --exe | --ex)
934    ac_prev=exec_prefix ;;
935  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937  | --exec=* | --exe=* | --ex=*)
938    exec_prefix=$ac_optarg ;;
939
940  -gas | --gas | --ga | --g)
941    # Obsolete; use --with-gas.
942    with_gas=yes ;;
943
944  -help | --help | --hel | --he | -h)
945    ac_init_help=long ;;
946  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947    ac_init_help=recursive ;;
948  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949    ac_init_help=short ;;
950
951  -host | --host | --hos | --ho)
952    ac_prev=host_alias ;;
953  -host=* | --host=* | --hos=* | --ho=*)
954    host_alias=$ac_optarg ;;
955
956  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957    ac_prev=htmldir ;;
958  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959  | --ht=*)
960    htmldir=$ac_optarg ;;
961
962  -includedir | --includedir | --includedi | --included | --include \
963  | --includ | --inclu | --incl | --inc)
964    ac_prev=includedir ;;
965  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966  | --includ=* | --inclu=* | --incl=* | --inc=*)
967    includedir=$ac_optarg ;;
968
969  -infodir | --infodir | --infodi | --infod | --info | --inf)
970    ac_prev=infodir ;;
971  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972    infodir=$ac_optarg ;;
973
974  -libdir | --libdir | --libdi | --libd)
975    ac_prev=libdir ;;
976  -libdir=* | --libdir=* | --libdi=* | --libd=*)
977    libdir=$ac_optarg ;;
978
979  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980  | --libexe | --libex | --libe)
981    ac_prev=libexecdir ;;
982  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983  | --libexe=* | --libex=* | --libe=*)
984    libexecdir=$ac_optarg ;;
985
986  -localedir | --localedir | --localedi | --localed | --locale)
987    ac_prev=localedir ;;
988  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989    localedir=$ac_optarg ;;
990
991  -localstatedir | --localstatedir | --localstatedi | --localstated \
992  | --localstate | --localstat | --localsta | --localst | --locals)
993    ac_prev=localstatedir ;;
994  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996    localstatedir=$ac_optarg ;;
997
998  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999    ac_prev=mandir ;;
1000  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001    mandir=$ac_optarg ;;
1002
1003  -nfp | --nfp | --nf)
1004    # Obsolete; use --without-fp.
1005    with_fp=no ;;
1006
1007  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008  | --no-cr | --no-c | -n)
1009    no_create=yes ;;
1010
1011  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013    no_recursion=yes ;;
1014
1015  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017  | --oldin | --oldi | --old | --ol | --o)
1018    ac_prev=oldincludedir ;;
1019  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022    oldincludedir=$ac_optarg ;;
1023
1024  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025    ac_prev=prefix ;;
1026  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027    prefix=$ac_optarg ;;
1028
1029  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030  | --program-pre | --program-pr | --program-p)
1031    ac_prev=program_prefix ;;
1032  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034    program_prefix=$ac_optarg ;;
1035
1036  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037  | --program-suf | --program-su | --program-s)
1038    ac_prev=program_suffix ;;
1039  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041    program_suffix=$ac_optarg ;;
1042
1043  -program-transform-name | --program-transform-name \
1044  | --program-transform-nam | --program-transform-na \
1045  | --program-transform-n | --program-transform- \
1046  | --program-transform | --program-transfor \
1047  | --program-transfo | --program-transf \
1048  | --program-trans | --program-tran \
1049  | --progr-tra | --program-tr | --program-t)
1050    ac_prev=program_transform_name ;;
1051  -program-transform-name=* | --program-transform-name=* \
1052  | --program-transform-nam=* | --program-transform-na=* \
1053  | --program-transform-n=* | --program-transform-=* \
1054  | --program-transform=* | --program-transfor=* \
1055  | --program-transfo=* | --program-transf=* \
1056  | --program-trans=* | --program-tran=* \
1057  | --progr-tra=* | --program-tr=* | --program-t=*)
1058    program_transform_name=$ac_optarg ;;
1059
1060  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061    ac_prev=pdfdir ;;
1062  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063    pdfdir=$ac_optarg ;;
1064
1065  -psdir | --psdir | --psdi | --psd | --ps)
1066    ac_prev=psdir ;;
1067  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068    psdir=$ac_optarg ;;
1069
1070  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071  | -silent | --silent | --silen | --sile | --sil)
1072    silent=yes ;;
1073
1074  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075    ac_prev=sbindir ;;
1076  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077  | --sbi=* | --sb=*)
1078    sbindir=$ac_optarg ;;
1079
1080  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082  | --sharedst | --shareds | --shared | --share | --shar \
1083  | --sha | --sh)
1084    ac_prev=sharedstatedir ;;
1085  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088  | --sha=* | --sh=*)
1089    sharedstatedir=$ac_optarg ;;
1090
1091  -site | --site | --sit)
1092    ac_prev=site ;;
1093  -site=* | --site=* | --sit=*)
1094    site=$ac_optarg ;;
1095
1096  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097    ac_prev=srcdir ;;
1098  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099    srcdir=$ac_optarg ;;
1100
1101  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102  | --syscon | --sysco | --sysc | --sys | --sy)
1103    ac_prev=sysconfdir ;;
1104  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106    sysconfdir=$ac_optarg ;;
1107
1108  -target | --target | --targe | --targ | --tar | --ta | --t)
1109    ac_prev=target_alias ;;
1110  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111    target_alias=$ac_optarg ;;
1112
1113  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114    verbose=yes ;;
1115
1116  -version | --version | --versio | --versi | --vers | -V)
1117    ac_init_version=: ;;
1118
1119  -with-* | --with-*)
1120    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121    # Reject names that are not valid shell variable names.
1122    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123      as_fn_error $? "invalid package name: $ac_useropt"
1124    ac_useropt_orig=$ac_useropt
1125    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126    case $ac_user_opts in
1127      *"
1128"with_$ac_useropt"
1129"*) ;;
1130      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131	 ac_unrecognized_sep=', ';;
1132    esac
1133    eval with_$ac_useropt=\$ac_optarg ;;
1134
1135  -without-* | --without-*)
1136    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137    # Reject names that are not valid shell variable names.
1138    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139      as_fn_error $? "invalid package name: $ac_useropt"
1140    ac_useropt_orig=$ac_useropt
1141    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142    case $ac_user_opts in
1143      *"
1144"with_$ac_useropt"
1145"*) ;;
1146      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147	 ac_unrecognized_sep=', ';;
1148    esac
1149    eval with_$ac_useropt=no ;;
1150
1151  --x)
1152    # Obsolete; use --with-x.
1153    with_x=yes ;;
1154
1155  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156  | --x-incl | --x-inc | --x-in | --x-i)
1157    ac_prev=x_includes ;;
1158  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160    x_includes=$ac_optarg ;;
1161
1162  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164    ac_prev=x_libraries ;;
1165  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167    x_libraries=$ac_optarg ;;
1168
1169  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1170Try \`$0 --help' for more information"
1171    ;;
1172
1173  *=*)
1174    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175    # Reject names that are not valid shell variable names.
1176    case $ac_envvar in #(
1177      '' | [0-9]* | *[!_$as_cr_alnum]* )
1178      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1179    esac
1180    eval $ac_envvar=\$ac_optarg
1181    export $ac_envvar ;;
1182
1183  *)
1184    # FIXME: should be removed in autoconf 3.0.
1185    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1189    ;;
1190
1191  esac
1192done
1193
1194if test -n "$ac_prev"; then
1195  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196  as_fn_error $? "missing argument to $ac_option"
1197fi
1198
1199if test -n "$ac_unrecognized_opts"; then
1200  case $enable_option_checking in
1201    no) ;;
1202    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1203    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204  esac
1205fi
1206
1207# Check all directory arguments for consistency.
1208for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209		datadir sysconfdir sharedstatedir localstatedir includedir \
1210		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211		libdir localedir mandir
1212do
1213  eval ac_val=\$$ac_var
1214  # Remove trailing slashes.
1215  case $ac_val in
1216    */ )
1217      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218      eval $ac_var=\$ac_val;;
1219  esac
1220  # Be sure to have absolute directory names.
1221  case $ac_val in
1222    [\\/$]* | ?:[\\/]* )  continue;;
1223    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224  esac
1225  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1226done
1227
1228# There might be people who depend on the old broken behavior: `$host'
1229# used to hold the argument of --host etc.
1230# FIXME: To remove some day.
1231build=$build_alias
1232host=$host_alias
1233target=$target_alias
1234
1235# FIXME: To remove some day.
1236if test "x$host_alias" != x; then
1237  if test "x$build_alias" = x; then
1238    cross_compiling=maybe
1239    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1240    If a cross compiler is detected then cross compile mode will be used" >&2
1241  elif test "x$build_alias" != "x$host_alias"; then
1242    cross_compiling=yes
1243  fi
1244fi
1245
1246ac_tool_prefix=
1247test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248
1249test "$silent" = yes && exec 6>/dev/null
1250
1251
1252ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253ac_ls_di=`ls -di .` &&
1254ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255  as_fn_error $? "working directory cannot be determined"
1256test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257  as_fn_error $? "pwd does not report name of working directory"
1258
1259
1260# Find the source files, if location was not specified.
1261if test -z "$srcdir"; then
1262  ac_srcdir_defaulted=yes
1263  # Try the directory containing this script, then the parent directory.
1264  ac_confdir=`$as_dirname -- "$as_myself" ||
1265$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266	 X"$as_myself" : 'X\(//\)[^/]' \| \
1267	 X"$as_myself" : 'X\(//\)$' \| \
1268	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269$as_echo X"$as_myself" |
1270    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271	    s//\1/
1272	    q
1273	  }
1274	  /^X\(\/\/\)[^/].*/{
1275	    s//\1/
1276	    q
1277	  }
1278	  /^X\(\/\/\)$/{
1279	    s//\1/
1280	    q
1281	  }
1282	  /^X\(\/\).*/{
1283	    s//\1/
1284	    q
1285	  }
1286	  s/.*/./; q'`
1287  srcdir=$ac_confdir
1288  if test ! -r "$srcdir/$ac_unique_file"; then
1289    srcdir=..
1290  fi
1291else
1292  ac_srcdir_defaulted=no
1293fi
1294if test ! -r "$srcdir/$ac_unique_file"; then
1295  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1297fi
1298ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299ac_abs_confdir=`(
1300	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1301	pwd)`
1302# When building in place, set srcdir=.
1303if test "$ac_abs_confdir" = "$ac_pwd"; then
1304  srcdir=.
1305fi
1306# Remove unnecessary trailing slashes from srcdir.
1307# Double slashes in file names in object file debugging info
1308# mess up M-x gdb in Emacs.
1309case $srcdir in
1310*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311esac
1312for ac_var in $ac_precious_vars; do
1313  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314  eval ac_env_${ac_var}_value=\$${ac_var}
1315  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317done
1318
1319#
1320# Report the --help message.
1321#
1322if test "$ac_init_help" = "long"; then
1323  # Omit some internal or obsolete options to make the list less imposing.
1324  # This message is too long to be a string in the A/UX 3.1 sh.
1325  cat <<_ACEOF
1326\`configure' configures xf86-input-elographics 1.4.1 to adapt to many kinds of systems.
1327
1328Usage: $0 [OPTION]... [VAR=VALUE]...
1329
1330To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331VAR=VALUE.  See below for descriptions of some of the useful variables.
1332
1333Defaults for the options are specified in brackets.
1334
1335Configuration:
1336  -h, --help              display this help and exit
1337      --help=short        display options specific to this package
1338      --help=recursive    display the short help of all the included packages
1339  -V, --version           display version information and exit
1340  -q, --quiet, --silent   do not print \`checking ...' messages
1341      --cache-file=FILE   cache test results in FILE [disabled]
1342  -C, --config-cache      alias for \`--cache-file=config.cache'
1343  -n, --no-create         do not create output files
1344      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1345
1346Installation directories:
1347  --prefix=PREFIX         install architecture-independent files in PREFIX
1348                          [$ac_default_prefix]
1349  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1350                          [PREFIX]
1351
1352By default, \`make install' will install all the files in
1353\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1354an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355for instance \`--prefix=\$HOME'.
1356
1357For better control, use the options below.
1358
1359Fine tuning of the installation directories:
1360  --bindir=DIR            user executables [EPREFIX/bin]
1361  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1362  --libexecdir=DIR        program executables [EPREFIX/libexec]
1363  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1364  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1365  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1366  --libdir=DIR            object code libraries [EPREFIX/lib]
1367  --includedir=DIR        C header files [PREFIX/include]
1368  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1369  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1370  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1371  --infodir=DIR           info documentation [DATAROOTDIR/info]
1372  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1373  --mandir=DIR            man documentation [DATAROOTDIR/man]
1374  --docdir=DIR            documentation root
1375                          [DATAROOTDIR/doc/xf86-input-elographics]
1376  --htmldir=DIR           html documentation [DOCDIR]
1377  --dvidir=DIR            dvi documentation [DOCDIR]
1378  --pdfdir=DIR            pdf documentation [DOCDIR]
1379  --psdir=DIR             ps documentation [DOCDIR]
1380_ACEOF
1381
1382  cat <<\_ACEOF
1383
1384Program names:
1385  --program-prefix=PREFIX            prepend PREFIX to installed program names
1386  --program-suffix=SUFFIX            append SUFFIX to installed program names
1387  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1388
1389System types:
1390  --build=BUILD     configure for building on BUILD [guessed]
1391  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1392_ACEOF
1393fi
1394
1395if test -n "$ac_init_help"; then
1396  case $ac_init_help in
1397     short | recursive ) echo "Configuration of xf86-input-elographics 1.4.1:";;
1398   esac
1399  cat <<\_ACEOF
1400
1401Optional Features:
1402  --disable-option-checking  ignore unrecognized --enable/--with options
1403  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1404  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1405  --enable-maintainer-mode  enable make rules and dependencies not useful
1406			  (and sometimes confusing) to the casual installer
1407  --enable-static[=PKGS]  build static libraries [default=no]
1408  --enable-shared[=PKGS]  build shared libraries [default=yes]
1409  --enable-fast-install[=PKGS]
1410                          optimize for fast installation [default=yes]
1411  --disable-dependency-tracking  speeds up one-time build
1412  --enable-dependency-tracking   do not reject slow dependency extractors
1413  --disable-libtool-lock  avoid locking (might break parallel builds)
1414  --disable-selective-werror
1415                          Turn off selective compiler errors. (default:
1416                          enabled)
1417
1418Optional Packages:
1419  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1420  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1421  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1422                          both]
1423  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1424  --with-sysroot=DIR Search for dependent libraries within DIR
1425                        (or the compiler's sysroot if not specified).
1426  --with-xorg-module-dir=DIR
1427                          Default xorg module directory
1428                          [[default=$libdir/xorg/modules]]
1429
1430Some influential environment variables:
1431  CC          C compiler command
1432  CFLAGS      C compiler flags
1433  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1434              nonstandard directory <lib dir>
1435  LIBS        libraries to pass to the linker, e.g. -l<library>
1436  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1437              you have headers in a nonstandard directory <include dir>
1438  CPP         C preprocessor
1439  PKG_CONFIG  path to pkg-config utility
1440  PKG_CONFIG_PATH
1441              directories to add to pkg-config's search path
1442  PKG_CONFIG_LIBDIR
1443              path overriding pkg-config's built-in search path
1444  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1445  XORG_LIBS   linker flags for XORG, overriding pkg-config
1446
1447Use these variables to override the choices made by `configure' or to help
1448it to find libraries and programs with nonstandard names/locations.
1449
1450Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1451_ACEOF
1452ac_status=$?
1453fi
1454
1455if test "$ac_init_help" = "recursive"; then
1456  # If there are subdirs, report their specific --help.
1457  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1458    test -d "$ac_dir" ||
1459      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1460      continue
1461    ac_builddir=.
1462
1463case "$ac_dir" in
1464.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465*)
1466  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1467  # A ".." for each directory in $ac_dir_suffix.
1468  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1469  case $ac_top_builddir_sub in
1470  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1472  esac ;;
1473esac
1474ac_abs_top_builddir=$ac_pwd
1475ac_abs_builddir=$ac_pwd$ac_dir_suffix
1476# for backward compatibility:
1477ac_top_builddir=$ac_top_build_prefix
1478
1479case $srcdir in
1480  .)  # We are building in place.
1481    ac_srcdir=.
1482    ac_top_srcdir=$ac_top_builddir_sub
1483    ac_abs_top_srcdir=$ac_pwd ;;
1484  [\\/]* | ?:[\\/]* )  # Absolute name.
1485    ac_srcdir=$srcdir$ac_dir_suffix;
1486    ac_top_srcdir=$srcdir
1487    ac_abs_top_srcdir=$srcdir ;;
1488  *) # Relative name.
1489    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1490    ac_top_srcdir=$ac_top_build_prefix$srcdir
1491    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1492esac
1493ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1494
1495    cd "$ac_dir" || { ac_status=$?; continue; }
1496    # Check for guested configure.
1497    if test -f "$ac_srcdir/configure.gnu"; then
1498      echo &&
1499      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1500    elif test -f "$ac_srcdir/configure"; then
1501      echo &&
1502      $SHELL "$ac_srcdir/configure" --help=recursive
1503    else
1504      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1505    fi || ac_status=$?
1506    cd "$ac_pwd" || { ac_status=$?; break; }
1507  done
1508fi
1509
1510test -n "$ac_init_help" && exit $ac_status
1511if $ac_init_version; then
1512  cat <<\_ACEOF
1513xf86-input-elographics configure 1.4.1
1514generated by GNU Autoconf 2.68
1515
1516Copyright (C) 2010 Free Software Foundation, Inc.
1517This configure script is free software; the Free Software Foundation
1518gives unlimited permission to copy, distribute and modify it.
1519_ACEOF
1520  exit
1521fi
1522
1523## ------------------------ ##
1524## Autoconf initialization. ##
1525## ------------------------ ##
1526
1527# ac_fn_c_try_compile LINENO
1528# --------------------------
1529# Try to compile conftest.$ac_ext, and return whether this succeeded.
1530ac_fn_c_try_compile ()
1531{
1532  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533  rm -f conftest.$ac_objext
1534  if { { ac_try="$ac_compile"
1535case "(($ac_try" in
1536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537  *) ac_try_echo=$ac_try;;
1538esac
1539eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540$as_echo "$ac_try_echo"; } >&5
1541  (eval "$ac_compile") 2>conftest.err
1542  ac_status=$?
1543  if test -s conftest.err; then
1544    grep -v '^ *+' conftest.err >conftest.er1
1545    cat conftest.er1 >&5
1546    mv -f conftest.er1 conftest.err
1547  fi
1548  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549  test $ac_status = 0; } && {
1550	 test -z "$ac_c_werror_flag" ||
1551	 test ! -s conftest.err
1552       } && test -s conftest.$ac_objext; then :
1553  ac_retval=0
1554else
1555  $as_echo "$as_me: failed program was:" >&5
1556sed 's/^/| /' conftest.$ac_ext >&5
1557
1558	ac_retval=1
1559fi
1560  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1561  as_fn_set_status $ac_retval
1562
1563} # ac_fn_c_try_compile
1564
1565# ac_fn_c_try_link LINENO
1566# -----------------------
1567# Try to link conftest.$ac_ext, and return whether this succeeded.
1568ac_fn_c_try_link ()
1569{
1570  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571  rm -f conftest.$ac_objext conftest$ac_exeext
1572  if { { ac_try="$ac_link"
1573case "(($ac_try" in
1574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575  *) ac_try_echo=$ac_try;;
1576esac
1577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578$as_echo "$ac_try_echo"; } >&5
1579  (eval "$ac_link") 2>conftest.err
1580  ac_status=$?
1581  if test -s conftest.err; then
1582    grep -v '^ *+' conftest.err >conftest.er1
1583    cat conftest.er1 >&5
1584    mv -f conftest.er1 conftest.err
1585  fi
1586  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587  test $ac_status = 0; } && {
1588	 test -z "$ac_c_werror_flag" ||
1589	 test ! -s conftest.err
1590       } && test -s conftest$ac_exeext && {
1591	 test "$cross_compiling" = yes ||
1592	 $as_test_x conftest$ac_exeext
1593       }; then :
1594  ac_retval=0
1595else
1596  $as_echo "$as_me: failed program was:" >&5
1597sed 's/^/| /' conftest.$ac_ext >&5
1598
1599	ac_retval=1
1600fi
1601  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1602  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1603  # interfere with the next link command; also delete a directory that is
1604  # left behind by Apple's compiler.  We do this before executing the actions.
1605  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1606  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607  as_fn_set_status $ac_retval
1608
1609} # ac_fn_c_try_link
1610
1611# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1612# -------------------------------------------------------
1613# Tests whether HEADER exists and can be compiled using the include files in
1614# INCLUDES, setting the cache variable VAR accordingly.
1615ac_fn_c_check_header_compile ()
1616{
1617  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1619$as_echo_n "checking for $2... " >&6; }
1620if eval \${$3+:} false; then :
1621  $as_echo_n "(cached) " >&6
1622else
1623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1624/* end confdefs.h.  */
1625$4
1626#include <$2>
1627_ACEOF
1628if ac_fn_c_try_compile "$LINENO"; then :
1629  eval "$3=yes"
1630else
1631  eval "$3=no"
1632fi
1633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1634fi
1635eval ac_res=\$$3
1636	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1637$as_echo "$ac_res" >&6; }
1638  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1639
1640} # ac_fn_c_check_header_compile
1641
1642# ac_fn_c_try_cpp LINENO
1643# ----------------------
1644# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1645ac_fn_c_try_cpp ()
1646{
1647  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648  if { { ac_try="$ac_cpp conftest.$ac_ext"
1649case "(($ac_try" in
1650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651  *) ac_try_echo=$ac_try;;
1652esac
1653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654$as_echo "$ac_try_echo"; } >&5
1655  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1656  ac_status=$?
1657  if test -s conftest.err; then
1658    grep -v '^ *+' conftest.err >conftest.er1
1659    cat conftest.er1 >&5
1660    mv -f conftest.er1 conftest.err
1661  fi
1662  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663  test $ac_status = 0; } > conftest.i && {
1664	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1665	 test ! -s conftest.err
1666       }; then :
1667  ac_retval=0
1668else
1669  $as_echo "$as_me: failed program was:" >&5
1670sed 's/^/| /' conftest.$ac_ext >&5
1671
1672    ac_retval=1
1673fi
1674  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675  as_fn_set_status $ac_retval
1676
1677} # ac_fn_c_try_cpp
1678
1679# ac_fn_c_try_run LINENO
1680# ----------------------
1681# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1682# that executables *can* be run.
1683ac_fn_c_try_run ()
1684{
1685  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686  if { { ac_try="$ac_link"
1687case "(($ac_try" in
1688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689  *) ac_try_echo=$ac_try;;
1690esac
1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692$as_echo "$ac_try_echo"; } >&5
1693  (eval "$ac_link") 2>&5
1694  ac_status=$?
1695  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1697  { { case "(($ac_try" in
1698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699  *) ac_try_echo=$ac_try;;
1700esac
1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702$as_echo "$ac_try_echo"; } >&5
1703  (eval "$ac_try") 2>&5
1704  ac_status=$?
1705  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706  test $ac_status = 0; }; }; then :
1707  ac_retval=0
1708else
1709  $as_echo "$as_me: program exited with status $ac_status" >&5
1710       $as_echo "$as_me: failed program was:" >&5
1711sed 's/^/| /' conftest.$ac_ext >&5
1712
1713       ac_retval=$ac_status
1714fi
1715  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1716  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717  as_fn_set_status $ac_retval
1718
1719} # ac_fn_c_try_run
1720
1721# ac_fn_c_check_func LINENO FUNC VAR
1722# ----------------------------------
1723# Tests whether FUNC exists, setting the cache variable VAR accordingly
1724ac_fn_c_check_func ()
1725{
1726  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728$as_echo_n "checking for $2... " >&6; }
1729if eval \${$3+:} false; then :
1730  $as_echo_n "(cached) " >&6
1731else
1732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733/* end confdefs.h.  */
1734/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1735   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1736#define $2 innocuous_$2
1737
1738/* System header to define __stub macros and hopefully few prototypes,
1739    which can conflict with char $2 (); below.
1740    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1741    <limits.h> exists even on freestanding compilers.  */
1742
1743#ifdef __STDC__
1744# include <limits.h>
1745#else
1746# include <assert.h>
1747#endif
1748
1749#undef $2
1750
1751/* Override any GCC internal prototype to avoid an error.
1752   Use char because int might match the return type of a GCC
1753   builtin and then its argument prototype would still apply.  */
1754#ifdef __cplusplus
1755extern "C"
1756#endif
1757char $2 ();
1758/* The GNU C library defines this for functions which it implements
1759    to always fail with ENOSYS.  Some functions are actually named
1760    something starting with __ and the normal name is an alias.  */
1761#if defined __stub_$2 || defined __stub___$2
1762choke me
1763#endif
1764
1765int
1766main ()
1767{
1768return $2 ();
1769  ;
1770  return 0;
1771}
1772_ACEOF
1773if ac_fn_c_try_link "$LINENO"; then :
1774  eval "$3=yes"
1775else
1776  eval "$3=no"
1777fi
1778rm -f core conftest.err conftest.$ac_objext \
1779    conftest$ac_exeext conftest.$ac_ext
1780fi
1781eval ac_res=\$$3
1782	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783$as_echo "$ac_res" >&6; }
1784  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785
1786} # ac_fn_c_check_func
1787
1788# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1789# ---------------------------------------------
1790# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1791# accordingly.
1792ac_fn_c_check_decl ()
1793{
1794  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795  as_decl_name=`echo $2|sed 's/ *(.*//'`
1796  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1797  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1798$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1799if eval \${$3+:} false; then :
1800  $as_echo_n "(cached) " >&6
1801else
1802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803/* end confdefs.h.  */
1804$4
1805int
1806main ()
1807{
1808#ifndef $as_decl_name
1809#ifdef __cplusplus
1810  (void) $as_decl_use;
1811#else
1812  (void) $as_decl_name;
1813#endif
1814#endif
1815
1816  ;
1817  return 0;
1818}
1819_ACEOF
1820if ac_fn_c_try_compile "$LINENO"; then :
1821  eval "$3=yes"
1822else
1823  eval "$3=no"
1824fi
1825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826fi
1827eval ac_res=\$$3
1828	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829$as_echo "$ac_res" >&6; }
1830  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831
1832} # ac_fn_c_check_decl
1833cat >config.log <<_ACEOF
1834This file contains any messages produced by compilers while
1835running configure, to aid debugging if configure makes a mistake.
1836
1837It was created by xf86-input-elographics $as_me 1.4.1, which was
1838generated by GNU Autoconf 2.68.  Invocation command line was
1839
1840  $ $0 $@
1841
1842_ACEOF
1843exec 5>>config.log
1844{
1845cat <<_ASUNAME
1846## --------- ##
1847## Platform. ##
1848## --------- ##
1849
1850hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1851uname -m = `(uname -m) 2>/dev/null || echo unknown`
1852uname -r = `(uname -r) 2>/dev/null || echo unknown`
1853uname -s = `(uname -s) 2>/dev/null || echo unknown`
1854uname -v = `(uname -v) 2>/dev/null || echo unknown`
1855
1856/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1857/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1858
1859/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1860/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1861/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1862/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1863/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1864/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1865/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1866
1867_ASUNAME
1868
1869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1870for as_dir in $PATH
1871do
1872  IFS=$as_save_IFS
1873  test -z "$as_dir" && as_dir=.
1874    $as_echo "PATH: $as_dir"
1875  done
1876IFS=$as_save_IFS
1877
1878} >&5
1879
1880cat >&5 <<_ACEOF
1881
1882
1883## ----------- ##
1884## Core tests. ##
1885## ----------- ##
1886
1887_ACEOF
1888
1889
1890# Keep a trace of the command line.
1891# Strip out --no-create and --no-recursion so they do not pile up.
1892# Strip out --silent because we don't want to record it for future runs.
1893# Also quote any args containing shell meta-characters.
1894# Make two passes to allow for proper duplicate-argument suppression.
1895ac_configure_args=
1896ac_configure_args0=
1897ac_configure_args1=
1898ac_must_keep_next=false
1899for ac_pass in 1 2
1900do
1901  for ac_arg
1902  do
1903    case $ac_arg in
1904    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1905    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1906    | -silent | --silent | --silen | --sile | --sil)
1907      continue ;;
1908    *\'*)
1909      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1910    esac
1911    case $ac_pass in
1912    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1913    2)
1914      as_fn_append ac_configure_args1 " '$ac_arg'"
1915      if test $ac_must_keep_next = true; then
1916	ac_must_keep_next=false # Got value, back to normal.
1917      else
1918	case $ac_arg in
1919	  *=* | --config-cache | -C | -disable-* | --disable-* \
1920	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1921	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1922	  | -with-* | --with-* | -without-* | --without-* | --x)
1923	    case "$ac_configure_args0 " in
1924	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1925	    esac
1926	    ;;
1927	  -* ) ac_must_keep_next=true ;;
1928	esac
1929      fi
1930      as_fn_append ac_configure_args " '$ac_arg'"
1931      ;;
1932    esac
1933  done
1934done
1935{ ac_configure_args0=; unset ac_configure_args0;}
1936{ ac_configure_args1=; unset ac_configure_args1;}
1937
1938# When interrupted or exit'd, cleanup temporary files, and complete
1939# config.log.  We remove comments because anyway the quotes in there
1940# would cause problems or look ugly.
1941# WARNING: Use '\'' to represent an apostrophe within the trap.
1942# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1943trap 'exit_status=$?
1944  # Save into config.log some information that might help in debugging.
1945  {
1946    echo
1947
1948    $as_echo "## ---------------- ##
1949## Cache variables. ##
1950## ---------------- ##"
1951    echo
1952    # The following way of writing the cache mishandles newlines in values,
1953(
1954  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1955    eval ac_val=\$$ac_var
1956    case $ac_val in #(
1957    *${as_nl}*)
1958      case $ac_var in #(
1959      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1960$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1961      esac
1962      case $ac_var in #(
1963      _ | IFS | as_nl) ;; #(
1964      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1965      *) { eval $ac_var=; unset $ac_var;} ;;
1966      esac ;;
1967    esac
1968  done
1969  (set) 2>&1 |
1970    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1971    *${as_nl}ac_space=\ *)
1972      sed -n \
1973	"s/'\''/'\''\\\\'\'''\''/g;
1974	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1975      ;; #(
1976    *)
1977      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1978      ;;
1979    esac |
1980    sort
1981)
1982    echo
1983
1984    $as_echo "## ----------------- ##
1985## Output variables. ##
1986## ----------------- ##"
1987    echo
1988    for ac_var in $ac_subst_vars
1989    do
1990      eval ac_val=\$$ac_var
1991      case $ac_val in
1992      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1993      esac
1994      $as_echo "$ac_var='\''$ac_val'\''"
1995    done | sort
1996    echo
1997
1998    if test -n "$ac_subst_files"; then
1999      $as_echo "## ------------------- ##
2000## File substitutions. ##
2001## ------------------- ##"
2002      echo
2003      for ac_var in $ac_subst_files
2004      do
2005	eval ac_val=\$$ac_var
2006	case $ac_val in
2007	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2008	esac
2009	$as_echo "$ac_var='\''$ac_val'\''"
2010      done | sort
2011      echo
2012    fi
2013
2014    if test -s confdefs.h; then
2015      $as_echo "## ----------- ##
2016## confdefs.h. ##
2017## ----------- ##"
2018      echo
2019      cat confdefs.h
2020      echo
2021    fi
2022    test "$ac_signal" != 0 &&
2023      $as_echo "$as_me: caught signal $ac_signal"
2024    $as_echo "$as_me: exit $exit_status"
2025  } >&5
2026  rm -f core *.core core.conftest.* &&
2027    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2028    exit $exit_status
2029' 0
2030for ac_signal in 1 2 13 15; do
2031  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2032done
2033ac_signal=0
2034
2035# confdefs.h avoids OS command line length limits that DEFS can exceed.
2036rm -f -r conftest* confdefs.h
2037
2038$as_echo "/* confdefs.h */" > confdefs.h
2039
2040# Predefined preprocessor variables.
2041
2042cat >>confdefs.h <<_ACEOF
2043#define PACKAGE_NAME "$PACKAGE_NAME"
2044_ACEOF
2045
2046cat >>confdefs.h <<_ACEOF
2047#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2048_ACEOF
2049
2050cat >>confdefs.h <<_ACEOF
2051#define PACKAGE_VERSION "$PACKAGE_VERSION"
2052_ACEOF
2053
2054cat >>confdefs.h <<_ACEOF
2055#define PACKAGE_STRING "$PACKAGE_STRING"
2056_ACEOF
2057
2058cat >>confdefs.h <<_ACEOF
2059#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2060_ACEOF
2061
2062cat >>confdefs.h <<_ACEOF
2063#define PACKAGE_URL "$PACKAGE_URL"
2064_ACEOF
2065
2066
2067# Let the site file select an alternate cache file if it wants to.
2068# Prefer an explicitly selected file to automatically selected ones.
2069ac_site_file1=NONE
2070ac_site_file2=NONE
2071if test -n "$CONFIG_SITE"; then
2072  # We do not want a PATH search for config.site.
2073  case $CONFIG_SITE in #((
2074    -*)  ac_site_file1=./$CONFIG_SITE;;
2075    */*) ac_site_file1=$CONFIG_SITE;;
2076    *)   ac_site_file1=./$CONFIG_SITE;;
2077  esac
2078elif test "x$prefix" != xNONE; then
2079  ac_site_file1=$prefix/share/config.site
2080  ac_site_file2=$prefix/etc/config.site
2081else
2082  ac_site_file1=$ac_default_prefix/share/config.site
2083  ac_site_file2=$ac_default_prefix/etc/config.site
2084fi
2085for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2086do
2087  test "x$ac_site_file" = xNONE && continue
2088  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2089    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2090$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2091    sed 's/^/| /' "$ac_site_file" >&5
2092    . "$ac_site_file" \
2093      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2095as_fn_error $? "failed to load site script $ac_site_file
2096See \`config.log' for more details" "$LINENO" 5; }
2097  fi
2098done
2099
2100if test -r "$cache_file"; then
2101  # Some versions of bash will fail to source /dev/null (special files
2102  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2103  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2104    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2105$as_echo "$as_me: loading cache $cache_file" >&6;}
2106    case $cache_file in
2107      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2108      *)                      . "./$cache_file";;
2109    esac
2110  fi
2111else
2112  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2113$as_echo "$as_me: creating cache $cache_file" >&6;}
2114  >$cache_file
2115fi
2116
2117# Check that the precious variables saved in the cache have kept the same
2118# value.
2119ac_cache_corrupted=false
2120for ac_var in $ac_precious_vars; do
2121  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2122  eval ac_new_set=\$ac_env_${ac_var}_set
2123  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2124  eval ac_new_val=\$ac_env_${ac_var}_value
2125  case $ac_old_set,$ac_new_set in
2126    set,)
2127      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2128$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2129      ac_cache_corrupted=: ;;
2130    ,set)
2131      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2132$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2133      ac_cache_corrupted=: ;;
2134    ,);;
2135    *)
2136      if test "x$ac_old_val" != "x$ac_new_val"; then
2137	# differences in whitespace do not lead to failure.
2138	ac_old_val_w=`echo x $ac_old_val`
2139	ac_new_val_w=`echo x $ac_new_val`
2140	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2141	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2142$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2143	  ac_cache_corrupted=:
2144	else
2145	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2146$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2147	  eval $ac_var=\$ac_old_val
2148	fi
2149	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2150$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2151	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2152$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2153      fi;;
2154  esac
2155  # Pass precious variables to config.status.
2156  if test "$ac_new_set" = set; then
2157    case $ac_new_val in
2158    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2159    *) ac_arg=$ac_var=$ac_new_val ;;
2160    esac
2161    case " $ac_configure_args " in
2162      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2163      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2164    esac
2165  fi
2166done
2167if $ac_cache_corrupted; then
2168  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2169$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2170  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2171$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2172  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2173fi
2174## -------------------- ##
2175## Main body of script. ##
2176## -------------------- ##
2177
2178ac_ext=c
2179ac_cpp='$CPP $CPPFLAGS'
2180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2182ac_compiler_gnu=$ac_cv_c_compiler_gnu
2183
2184
2185
2186
2187ac_aux_dir=
2188for ac_dir in . "$srcdir"/.; do
2189  if test -f "$ac_dir/install-sh"; then
2190    ac_aux_dir=$ac_dir
2191    ac_install_sh="$ac_aux_dir/install-sh -c"
2192    break
2193  elif test -f "$ac_dir/install.sh"; then
2194    ac_aux_dir=$ac_dir
2195    ac_install_sh="$ac_aux_dir/install.sh -c"
2196    break
2197  elif test -f "$ac_dir/shtool"; then
2198    ac_aux_dir=$ac_dir
2199    ac_install_sh="$ac_aux_dir/shtool install -c"
2200    break
2201  fi
2202done
2203if test -z "$ac_aux_dir"; then
2204  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2205fi
2206
2207# These three variables are undocumented and unsupported,
2208# and are intended to be withdrawn in a future Autoconf release.
2209# They can cause serious problems if a builder's source tree is in a directory
2210# whose full name contains unusual characters.
2211ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2212ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2213ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2214
2215
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 ${ac_cv_path_install+:} false; 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 ${ac_cv_prog_STRIP+:} false; 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 ${ac_cv_prog_ac_ct_STRIP+:} false; 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 ${ac_cv_path_mkdir+:} false; 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 ${ac_cv_prog_AWK+:} false; 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 \${ac_cv_prog_make_${ac_make}_set+:} false; 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-elographics'
2654 VERSION='1.4.1'
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.  Yes, it's still used
2685# in the wild :-(  We should find a proper way to deprecate it ...
2686AMTAR='$${TAR-tar}'
2687
2688am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2689
2690
2691
2692
2693
2694
2695
2696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2697$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2698    # Check whether --enable-maintainer-mode was given.
2699if test "${enable_maintainer_mode+set}" = set; then :
2700  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2701else
2702  USE_MAINTAINER_MODE=no
2703fi
2704
2705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2706$as_echo "$USE_MAINTAINER_MODE" >&6; }
2707   if test $USE_MAINTAINER_MODE = yes; then
2708  MAINTAINER_MODE_TRUE=
2709  MAINTAINER_MODE_FALSE='#'
2710else
2711  MAINTAINER_MODE_TRUE='#'
2712  MAINTAINER_MODE_FALSE=
2713fi
2714
2715  MAINT=$MAINTAINER_MODE_TRUE
2716
2717
2718
2719# Require xorg-macros: XORG_CWARNFLAGS, XORG_CHANGELOG
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731ac_config_headers="$ac_config_headers config.h"
2732
2733
2734# Checks for programs.
2735# Check whether --enable-static was given.
2736if test "${enable_static+set}" = set; then :
2737  enableval=$enable_static; p=${PACKAGE-default}
2738    case $enableval in
2739    yes) enable_static=yes ;;
2740    no) enable_static=no ;;
2741    *)
2742     enable_static=no
2743      # Look at the argument we got.  We use all the common list separators.
2744      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2745      for pkg in $enableval; do
2746	IFS="$lt_save_ifs"
2747	if test "X$pkg" = "X$p"; then
2748	  enable_static=yes
2749	fi
2750      done
2751      IFS="$lt_save_ifs"
2752      ;;
2753    esac
2754else
2755  enable_static=no
2756fi
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766case `pwd` in
2767  *\ * | *\	*)
2768    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2769$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2770esac
2771
2772
2773
2774macro_version='2.4.2'
2775macro_revision='1.3337'
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789ltmain="$ac_aux_dir/ltmain.sh"
2790
2791# Make sure we can run config.sub.
2792$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2793  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2794
2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2796$as_echo_n "checking build system type... " >&6; }
2797if ${ac_cv_build+:} false; then :
2798  $as_echo_n "(cached) " >&6
2799else
2800  ac_build_alias=$build_alias
2801test "x$ac_build_alias" = x &&
2802  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2803test "x$ac_build_alias" = x &&
2804  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2805ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2806  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2807
2808fi
2809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2810$as_echo "$ac_cv_build" >&6; }
2811case $ac_cv_build in
2812*-*-*) ;;
2813*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2814esac
2815build=$ac_cv_build
2816ac_save_IFS=$IFS; IFS='-'
2817set x $ac_cv_build
2818shift
2819build_cpu=$1
2820build_vendor=$2
2821shift; shift
2822# Remember, the first character of IFS is used to create $*,
2823# except with old shells:
2824build_os=$*
2825IFS=$ac_save_IFS
2826case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2827
2828
2829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2830$as_echo_n "checking host system type... " >&6; }
2831if ${ac_cv_host+:} false; then :
2832  $as_echo_n "(cached) " >&6
2833else
2834  if test "x$host_alias" = x; then
2835  ac_cv_host=$ac_cv_build
2836else
2837  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2838    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2839fi
2840
2841fi
2842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2843$as_echo "$ac_cv_host" >&6; }
2844case $ac_cv_host in
2845*-*-*) ;;
2846*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2847esac
2848host=$ac_cv_host
2849ac_save_IFS=$IFS; IFS='-'
2850set x $ac_cv_host
2851shift
2852host_cpu=$1
2853host_vendor=$2
2854shift; shift
2855# Remember, the first character of IFS is used to create $*,
2856# except with old shells:
2857host_os=$*
2858IFS=$ac_save_IFS
2859case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2860
2861
2862# Backslashify metacharacters that are still active within
2863# double-quoted strings.
2864sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2865
2866# Same as above, but do not quote variable references.
2867double_quote_subst='s/\(["`\\]\)/\\\1/g'
2868
2869# Sed substitution to delay expansion of an escaped shell variable in a
2870# double_quote_subst'ed string.
2871delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2872
2873# Sed substitution to delay expansion of an escaped single quote.
2874delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2875
2876# Sed substitution to avoid accidental globbing in evaled expressions
2877no_glob_subst='s/\*/\\\*/g'
2878
2879ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2880ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2881ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2882
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2884$as_echo_n "checking how to print strings... " >&6; }
2885# Test print first, because it will be a builtin if present.
2886if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2887   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2888  ECHO='print -r --'
2889elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2890  ECHO='printf %s\n'
2891else
2892  # Use this function as a fallback that always works.
2893  func_fallback_echo ()
2894  {
2895    eval 'cat <<_LTECHO_EOF
2896$1
2897_LTECHO_EOF'
2898  }
2899  ECHO='func_fallback_echo'
2900fi
2901
2902# func_echo_all arg...
2903# Invoke $ECHO with all args, space-separated.
2904func_echo_all ()
2905{
2906    $ECHO ""
2907}
2908
2909case "$ECHO" in
2910  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2911$as_echo "printf" >&6; } ;;
2912  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2913$as_echo "print -r" >&6; } ;;
2914  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2915$as_echo "cat" >&6; } ;;
2916esac
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931DEPDIR="${am__leading_dot}deps"
2932
2933ac_config_commands="$ac_config_commands depfiles"
2934
2935
2936am_make=${MAKE-make}
2937cat > confinc << 'END'
2938am__doit:
2939	@echo this is the am__doit target
2940.PHONY: am__doit
2941END
2942# If we don't find an include directive, just comment out the code.
2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2944$as_echo_n "checking for style of include used by $am_make... " >&6; }
2945am__include="#"
2946am__quote=
2947_am_result=none
2948# First try GNU make style include.
2949echo "include confinc" > confmf
2950# Ignore all kinds of additional output from `make'.
2951case `$am_make -s -f confmf 2> /dev/null` in #(
2952*the\ am__doit\ target*)
2953  am__include=include
2954  am__quote=
2955  _am_result=GNU
2956  ;;
2957esac
2958# Now try BSD make style include.
2959if test "$am__include" = "#"; then
2960   echo '.include "confinc"' > confmf
2961   case `$am_make -s -f confmf 2> /dev/null` in #(
2962   *the\ am__doit\ target*)
2963     am__include=.include
2964     am__quote="\""
2965     _am_result=BSD
2966     ;;
2967   esac
2968fi
2969
2970
2971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2972$as_echo "$_am_result" >&6; }
2973rm -f confinc confmf
2974
2975# Check whether --enable-dependency-tracking was given.
2976if test "${enable_dependency_tracking+set}" = set; then :
2977  enableval=$enable_dependency_tracking;
2978fi
2979
2980if test "x$enable_dependency_tracking" != xno; then
2981  am_depcomp="$ac_aux_dir/depcomp"
2982  AMDEPBACKSLASH='\'
2983  am__nodep='_no'
2984fi
2985 if test "x$enable_dependency_tracking" != xno; then
2986  AMDEP_TRUE=
2987  AMDEP_FALSE='#'
2988else
2989  AMDEP_TRUE='#'
2990  AMDEP_FALSE=
2991fi
2992
2993
2994ac_ext=c
2995ac_cpp='$CPP $CPPFLAGS'
2996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999if test -n "$ac_tool_prefix"; then
3000  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3001set dummy ${ac_tool_prefix}gcc; ac_word=$2
3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003$as_echo_n "checking for $ac_word... " >&6; }
3004if ${ac_cv_prog_CC+:} false; then :
3005  $as_echo_n "(cached) " >&6
3006else
3007  if test -n "$CC"; then
3008  ac_cv_prog_CC="$CC" # Let the user override the test.
3009else
3010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011for as_dir in $PATH
3012do
3013  IFS=$as_save_IFS
3014  test -z "$as_dir" && as_dir=.
3015    for ac_exec_ext in '' $ac_executable_extensions; do
3016  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3017    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3018    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019    break 2
3020  fi
3021done
3022  done
3023IFS=$as_save_IFS
3024
3025fi
3026fi
3027CC=$ac_cv_prog_CC
3028if test -n "$CC"; then
3029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3030$as_echo "$CC" >&6; }
3031else
3032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033$as_echo "no" >&6; }
3034fi
3035
3036
3037fi
3038if test -z "$ac_cv_prog_CC"; then
3039  ac_ct_CC=$CC
3040  # Extract the first word of "gcc", so it can be a program name with args.
3041set dummy gcc; ac_word=$2
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043$as_echo_n "checking for $ac_word... " >&6; }
3044if ${ac_cv_prog_ac_ct_CC+:} false; then :
3045  $as_echo_n "(cached) " >&6
3046else
3047  if test -n "$ac_ct_CC"; then
3048  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3049else
3050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051for as_dir in $PATH
3052do
3053  IFS=$as_save_IFS
3054  test -z "$as_dir" && as_dir=.
3055    for ac_exec_ext in '' $ac_executable_extensions; do
3056  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3057    ac_cv_prog_ac_ct_CC="gcc"
3058    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059    break 2
3060  fi
3061done
3062  done
3063IFS=$as_save_IFS
3064
3065fi
3066fi
3067ac_ct_CC=$ac_cv_prog_ac_ct_CC
3068if test -n "$ac_ct_CC"; then
3069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3070$as_echo "$ac_ct_CC" >&6; }
3071else
3072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073$as_echo "no" >&6; }
3074fi
3075
3076  if test "x$ac_ct_CC" = x; then
3077    CC=""
3078  else
3079    case $cross_compiling:$ac_tool_warned in
3080yes:)
3081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3083ac_tool_warned=yes ;;
3084esac
3085    CC=$ac_ct_CC
3086  fi
3087else
3088  CC="$ac_cv_prog_CC"
3089fi
3090
3091if test -z "$CC"; then
3092          if test -n "$ac_tool_prefix"; then
3093    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3094set dummy ${ac_tool_prefix}cc; ac_word=$2
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096$as_echo_n "checking for $ac_word... " >&6; }
3097if ${ac_cv_prog_CC+:} false; then :
3098  $as_echo_n "(cached) " >&6
3099else
3100  if test -n "$CC"; then
3101  ac_cv_prog_CC="$CC" # Let the user override the test.
3102else
3103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104for as_dir in $PATH
3105do
3106  IFS=$as_save_IFS
3107  test -z "$as_dir" && as_dir=.
3108    for ac_exec_ext in '' $ac_executable_extensions; do
3109  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3110    ac_cv_prog_CC="${ac_tool_prefix}cc"
3111    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112    break 2
3113  fi
3114done
3115  done
3116IFS=$as_save_IFS
3117
3118fi
3119fi
3120CC=$ac_cv_prog_CC
3121if test -n "$CC"; then
3122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3123$as_echo "$CC" >&6; }
3124else
3125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126$as_echo "no" >&6; }
3127fi
3128
3129
3130  fi
3131fi
3132if test -z "$CC"; then
3133  # Extract the first word of "cc", so it can be a program name with args.
3134set dummy cc; ac_word=$2
3135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136$as_echo_n "checking for $ac_word... " >&6; }
3137if ${ac_cv_prog_CC+:} false; then :
3138  $as_echo_n "(cached) " >&6
3139else
3140  if test -n "$CC"; then
3141  ac_cv_prog_CC="$CC" # Let the user override the test.
3142else
3143  ac_prog_rejected=no
3144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145for as_dir in $PATH
3146do
3147  IFS=$as_save_IFS
3148  test -z "$as_dir" && as_dir=.
3149    for ac_exec_ext in '' $ac_executable_extensions; do
3150  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3151    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3152       ac_prog_rejected=yes
3153       continue
3154     fi
3155    ac_cv_prog_CC="cc"
3156    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157    break 2
3158  fi
3159done
3160  done
3161IFS=$as_save_IFS
3162
3163if test $ac_prog_rejected = yes; then
3164  # We found a bogon in the path, so make sure we never use it.
3165  set dummy $ac_cv_prog_CC
3166  shift
3167  if test $# != 0; then
3168    # We chose a different compiler from the bogus one.
3169    # However, it has the same basename, so the bogon will be chosen
3170    # first if we set CC to just the basename; use the full file name.
3171    shift
3172    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3173  fi
3174fi
3175fi
3176fi
3177CC=$ac_cv_prog_CC
3178if test -n "$CC"; then
3179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3180$as_echo "$CC" >&6; }
3181else
3182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183$as_echo "no" >&6; }
3184fi
3185
3186
3187fi
3188if test -z "$CC"; then
3189  if test -n "$ac_tool_prefix"; then
3190  for ac_prog in cl.exe
3191  do
3192    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3193set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195$as_echo_n "checking for $ac_word... " >&6; }
3196if ${ac_cv_prog_CC+:} false; then :
3197  $as_echo_n "(cached) " >&6
3198else
3199  if test -n "$CC"; then
3200  ac_cv_prog_CC="$CC" # Let the user override the test.
3201else
3202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203for as_dir in $PATH
3204do
3205  IFS=$as_save_IFS
3206  test -z "$as_dir" && as_dir=.
3207    for ac_exec_ext in '' $ac_executable_extensions; do
3208  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3209    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3210    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211    break 2
3212  fi
3213done
3214  done
3215IFS=$as_save_IFS
3216
3217fi
3218fi
3219CC=$ac_cv_prog_CC
3220if test -n "$CC"; then
3221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3222$as_echo "$CC" >&6; }
3223else
3224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225$as_echo "no" >&6; }
3226fi
3227
3228
3229    test -n "$CC" && break
3230  done
3231fi
3232if test -z "$CC"; then
3233  ac_ct_CC=$CC
3234  for ac_prog in cl.exe
3235do
3236  # Extract the first word of "$ac_prog", so it can be a program name with args.
3237set dummy $ac_prog; ac_word=$2
3238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239$as_echo_n "checking for $ac_word... " >&6; }
3240if ${ac_cv_prog_ac_ct_CC+:} false; then :
3241  $as_echo_n "(cached) " >&6
3242else
3243  if test -n "$ac_ct_CC"; then
3244  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3245else
3246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247for as_dir in $PATH
3248do
3249  IFS=$as_save_IFS
3250  test -z "$as_dir" && as_dir=.
3251    for ac_exec_ext in '' $ac_executable_extensions; do
3252  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3253    ac_cv_prog_ac_ct_CC="$ac_prog"
3254    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3255    break 2
3256  fi
3257done
3258  done
3259IFS=$as_save_IFS
3260
3261fi
3262fi
3263ac_ct_CC=$ac_cv_prog_ac_ct_CC
3264if test -n "$ac_ct_CC"; then
3265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3266$as_echo "$ac_ct_CC" >&6; }
3267else
3268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269$as_echo "no" >&6; }
3270fi
3271
3272
3273  test -n "$ac_ct_CC" && break
3274done
3275
3276  if test "x$ac_ct_CC" = x; then
3277    CC=""
3278  else
3279    case $cross_compiling:$ac_tool_warned in
3280yes:)
3281{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3282$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3283ac_tool_warned=yes ;;
3284esac
3285    CC=$ac_ct_CC
3286  fi
3287fi
3288
3289fi
3290
3291
3292test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294as_fn_error $? "no acceptable C compiler found in \$PATH
3295See \`config.log' for more details" "$LINENO" 5; }
3296
3297# Provide some information about the compiler.
3298$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3299set X $ac_compile
3300ac_compiler=$2
3301for ac_option in --version -v -V -qversion; do
3302  { { ac_try="$ac_compiler $ac_option >&5"
3303case "(($ac_try" in
3304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305  *) ac_try_echo=$ac_try;;
3306esac
3307eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308$as_echo "$ac_try_echo"; } >&5
3309  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3310  ac_status=$?
3311  if test -s conftest.err; then
3312    sed '10a\
3313... rest of stderr output deleted ...
3314         10q' conftest.err >conftest.er1
3315    cat conftest.er1 >&5
3316  fi
3317  rm -f conftest.er1 conftest.err
3318  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3319  test $ac_status = 0; }
3320done
3321
3322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323/* end confdefs.h.  */
3324
3325int
3326main ()
3327{
3328
3329  ;
3330  return 0;
3331}
3332_ACEOF
3333ac_clean_files_save=$ac_clean_files
3334ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3335# Try to create an executable without -o first, disregard a.out.
3336# It will help us diagnose broken compilers, and finding out an intuition
3337# of exeext.
3338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3339$as_echo_n "checking whether the C compiler works... " >&6; }
3340ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3341
3342# The possible output files:
3343ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3344
3345ac_rmfiles=
3346for ac_file in $ac_files
3347do
3348  case $ac_file in
3349    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3350    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3351  esac
3352done
3353rm -f $ac_rmfiles
3354
3355if { { ac_try="$ac_link_default"
3356case "(($ac_try" in
3357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358  *) ac_try_echo=$ac_try;;
3359esac
3360eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3361$as_echo "$ac_try_echo"; } >&5
3362  (eval "$ac_link_default") 2>&5
3363  ac_status=$?
3364  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3365  test $ac_status = 0; }; then :
3366  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3367# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3368# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3369# so that the user can short-circuit this test for compilers unknown to
3370# Autoconf.
3371for ac_file in $ac_files ''
3372do
3373  test -f "$ac_file" || continue
3374  case $ac_file in
3375    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3376	;;
3377    [ab].out )
3378	# We found the default executable, but exeext='' is most
3379	# certainly right.
3380	break;;
3381    *.* )
3382	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3383	then :; else
3384	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3385	fi
3386	# We set ac_cv_exeext here because the later test for it is not
3387	# safe: cross compilers may not add the suffix if given an `-o'
3388	# argument, so we may need to know it at that point already.
3389	# Even if this section looks crufty: it has the advantage of
3390	# actually working.
3391	break;;
3392    * )
3393	break;;
3394  esac
3395done
3396test "$ac_cv_exeext" = no && ac_cv_exeext=
3397
3398else
3399  ac_file=''
3400fi
3401if test -z "$ac_file"; then :
3402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3403$as_echo "no" >&6; }
3404$as_echo "$as_me: failed program was:" >&5
3405sed 's/^/| /' conftest.$ac_ext >&5
3406
3407{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3408$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3409as_fn_error 77 "C compiler cannot create executables
3410See \`config.log' for more details" "$LINENO" 5; }
3411else
3412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3413$as_echo "yes" >&6; }
3414fi
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3416$as_echo_n "checking for C compiler default output file name... " >&6; }
3417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3418$as_echo "$ac_file" >&6; }
3419ac_exeext=$ac_cv_exeext
3420
3421rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3422ac_clean_files=$ac_clean_files_save
3423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3424$as_echo_n "checking for suffix of executables... " >&6; }
3425if { { ac_try="$ac_link"
3426case "(($ac_try" in
3427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428  *) ac_try_echo=$ac_try;;
3429esac
3430eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3431$as_echo "$ac_try_echo"; } >&5
3432  (eval "$ac_link") 2>&5
3433  ac_status=$?
3434  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3435  test $ac_status = 0; }; then :
3436  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3437# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3438# work properly (i.e., refer to `conftest.exe'), while it won't with
3439# `rm'.
3440for ac_file in conftest.exe conftest conftest.*; do
3441  test -f "$ac_file" || continue
3442  case $ac_file in
3443    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3444    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3445	  break;;
3446    * ) break;;
3447  esac
3448done
3449else
3450  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3452as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3453See \`config.log' for more details" "$LINENO" 5; }
3454fi
3455rm -f conftest conftest$ac_cv_exeext
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3457$as_echo "$ac_cv_exeext" >&6; }
3458
3459rm -f conftest.$ac_ext
3460EXEEXT=$ac_cv_exeext
3461ac_exeext=$EXEEXT
3462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463/* end confdefs.h.  */
3464#include <stdio.h>
3465int
3466main ()
3467{
3468FILE *f = fopen ("conftest.out", "w");
3469 return ferror (f) || fclose (f) != 0;
3470
3471  ;
3472  return 0;
3473}
3474_ACEOF
3475ac_clean_files="$ac_clean_files conftest.out"
3476# Check that the compiler produces executables we can run.  If not, either
3477# the compiler is broken, or we cross compile.
3478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3479$as_echo_n "checking whether we are cross compiling... " >&6; }
3480if test "$cross_compiling" != yes; then
3481  { { ac_try="$ac_link"
3482case "(($ac_try" in
3483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484  *) ac_try_echo=$ac_try;;
3485esac
3486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3487$as_echo "$ac_try_echo"; } >&5
3488  (eval "$ac_link") 2>&5
3489  ac_status=$?
3490  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3491  test $ac_status = 0; }
3492  if { ac_try='./conftest$ac_cv_exeext'
3493  { { case "(($ac_try" in
3494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495  *) ac_try_echo=$ac_try;;
3496esac
3497eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3498$as_echo "$ac_try_echo"; } >&5
3499  (eval "$ac_try") 2>&5
3500  ac_status=$?
3501  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3502  test $ac_status = 0; }; }; then
3503    cross_compiling=no
3504  else
3505    if test "$cross_compiling" = maybe; then
3506	cross_compiling=yes
3507    else
3508	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510as_fn_error $? "cannot run C compiled programs.
3511If you meant to cross compile, use \`--host'.
3512See \`config.log' for more details" "$LINENO" 5; }
3513    fi
3514  fi
3515fi
3516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3517$as_echo "$cross_compiling" >&6; }
3518
3519rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3520ac_clean_files=$ac_clean_files_save
3521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3522$as_echo_n "checking for suffix of object files... " >&6; }
3523if ${ac_cv_objext+:} false; then :
3524  $as_echo_n "(cached) " >&6
3525else
3526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527/* end confdefs.h.  */
3528
3529int
3530main ()
3531{
3532
3533  ;
3534  return 0;
3535}
3536_ACEOF
3537rm -f conftest.o conftest.obj
3538if { { ac_try="$ac_compile"
3539case "(($ac_try" in
3540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541  *) ac_try_echo=$ac_try;;
3542esac
3543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3544$as_echo "$ac_try_echo"; } >&5
3545  (eval "$ac_compile") 2>&5
3546  ac_status=$?
3547  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3548  test $ac_status = 0; }; then :
3549  for ac_file in conftest.o conftest.obj conftest.*; do
3550  test -f "$ac_file" || continue;
3551  case $ac_file in
3552    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3553    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3554       break;;
3555  esac
3556done
3557else
3558  $as_echo "$as_me: failed program was:" >&5
3559sed 's/^/| /' conftest.$ac_ext >&5
3560
3561{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3562$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563as_fn_error $? "cannot compute suffix of object files: cannot compile
3564See \`config.log' for more details" "$LINENO" 5; }
3565fi
3566rm -f conftest.$ac_cv_objext conftest.$ac_ext
3567fi
3568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3569$as_echo "$ac_cv_objext" >&6; }
3570OBJEXT=$ac_cv_objext
3571ac_objext=$OBJEXT
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3573$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3574if ${ac_cv_c_compiler_gnu+:} false; then :
3575  $as_echo_n "(cached) " >&6
3576else
3577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578/* end confdefs.h.  */
3579
3580int
3581main ()
3582{
3583#ifndef __GNUC__
3584       choke me
3585#endif
3586
3587  ;
3588  return 0;
3589}
3590_ACEOF
3591if ac_fn_c_try_compile "$LINENO"; then :
3592  ac_compiler_gnu=yes
3593else
3594  ac_compiler_gnu=no
3595fi
3596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597ac_cv_c_compiler_gnu=$ac_compiler_gnu
3598
3599fi
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3601$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3602if test $ac_compiler_gnu = yes; then
3603  GCC=yes
3604else
3605  GCC=
3606fi
3607ac_test_CFLAGS=${CFLAGS+set}
3608ac_save_CFLAGS=$CFLAGS
3609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3610$as_echo_n "checking whether $CC accepts -g... " >&6; }
3611if ${ac_cv_prog_cc_g+:} false; then :
3612  $as_echo_n "(cached) " >&6
3613else
3614  ac_save_c_werror_flag=$ac_c_werror_flag
3615   ac_c_werror_flag=yes
3616   ac_cv_prog_cc_g=no
3617   CFLAGS="-g"
3618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619/* end confdefs.h.  */
3620
3621int
3622main ()
3623{
3624
3625  ;
3626  return 0;
3627}
3628_ACEOF
3629if ac_fn_c_try_compile "$LINENO"; then :
3630  ac_cv_prog_cc_g=yes
3631else
3632  CFLAGS=""
3633      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634/* end confdefs.h.  */
3635
3636int
3637main ()
3638{
3639
3640  ;
3641  return 0;
3642}
3643_ACEOF
3644if ac_fn_c_try_compile "$LINENO"; then :
3645
3646else
3647  ac_c_werror_flag=$ac_save_c_werror_flag
3648	 CFLAGS="-g"
3649	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650/* end confdefs.h.  */
3651
3652int
3653main ()
3654{
3655
3656  ;
3657  return 0;
3658}
3659_ACEOF
3660if ac_fn_c_try_compile "$LINENO"; then :
3661  ac_cv_prog_cc_g=yes
3662fi
3663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3664fi
3665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666fi
3667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668   ac_c_werror_flag=$ac_save_c_werror_flag
3669fi
3670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3671$as_echo "$ac_cv_prog_cc_g" >&6; }
3672if test "$ac_test_CFLAGS" = set; then
3673  CFLAGS=$ac_save_CFLAGS
3674elif test $ac_cv_prog_cc_g = yes; then
3675  if test "$GCC" = yes; then
3676    CFLAGS="-g -O2"
3677  else
3678    CFLAGS="-g"
3679  fi
3680else
3681  if test "$GCC" = yes; then
3682    CFLAGS="-O2"
3683  else
3684    CFLAGS=
3685  fi
3686fi
3687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3688$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3689if ${ac_cv_prog_cc_c89+:} false; then :
3690  $as_echo_n "(cached) " >&6
3691else
3692  ac_cv_prog_cc_c89=no
3693ac_save_CC=$CC
3694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695/* end confdefs.h.  */
3696#include <stdarg.h>
3697#include <stdio.h>
3698#include <sys/types.h>
3699#include <sys/stat.h>
3700/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3701struct buf { int x; };
3702FILE * (*rcsopen) (struct buf *, struct stat *, int);
3703static char *e (p, i)
3704     char **p;
3705     int i;
3706{
3707  return p[i];
3708}
3709static char *f (char * (*g) (char **, int), char **p, ...)
3710{
3711  char *s;
3712  va_list v;
3713  va_start (v,p);
3714  s = g (p, va_arg (v,int));
3715  va_end (v);
3716  return s;
3717}
3718
3719/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3720   function prototypes and stuff, but not '\xHH' hex character constants.
3721   These don't provoke an error unfortunately, instead are silently treated
3722   as 'x'.  The following induces an error, until -std is added to get
3723   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3724   array size at least.  It's necessary to write '\x00'==0 to get something
3725   that's true only with -std.  */
3726int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3727
3728/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3729   inside strings and character constants.  */
3730#define FOO(x) 'x'
3731int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3732
3733int test (int i, double x);
3734struct s1 {int (*f) (int a);};
3735struct s2 {int (*f) (double a);};
3736int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3737int argc;
3738char **argv;
3739int
3740main ()
3741{
3742return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3743  ;
3744  return 0;
3745}
3746_ACEOF
3747for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3748	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3749do
3750  CC="$ac_save_CC $ac_arg"
3751  if ac_fn_c_try_compile "$LINENO"; then :
3752  ac_cv_prog_cc_c89=$ac_arg
3753fi
3754rm -f core conftest.err conftest.$ac_objext
3755  test "x$ac_cv_prog_cc_c89" != "xno" && break
3756done
3757rm -f conftest.$ac_ext
3758CC=$ac_save_CC
3759
3760fi
3761# AC_CACHE_VAL
3762case "x$ac_cv_prog_cc_c89" in
3763  x)
3764    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3765$as_echo "none needed" >&6; } ;;
3766  xno)
3767    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3768$as_echo "unsupported" >&6; } ;;
3769  *)
3770    CC="$CC $ac_cv_prog_cc_c89"
3771    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3772$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3773esac
3774if test "x$ac_cv_prog_cc_c89" != xno; then :
3775
3776fi
3777
3778ac_ext=c
3779ac_cpp='$CPP $CPPFLAGS'
3780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3782ac_compiler_gnu=$ac_cv_c_compiler_gnu
3783
3784depcc="$CC"   am_compiler_list=
3785
3786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3787$as_echo_n "checking dependency style of $depcc... " >&6; }
3788if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3789  $as_echo_n "(cached) " >&6
3790else
3791  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3792  # We make a subdir and do the tests there.  Otherwise we can end up
3793  # making bogus files that we don't know about and never remove.  For
3794  # instance it was reported that on HP-UX the gcc test will end up
3795  # making a dummy file named `D' -- because `-MD' means `put the output
3796  # in D'.
3797  rm -rf conftest.dir
3798  mkdir conftest.dir
3799  # Copy depcomp to subdir because otherwise we won't find it if we're
3800  # using a relative directory.
3801  cp "$am_depcomp" conftest.dir
3802  cd conftest.dir
3803  # We will build objects and dependencies in a subdirectory because
3804  # it helps to detect inapplicable dependency modes.  For instance
3805  # both Tru64's cc and ICC support -MD to output dependencies as a
3806  # side effect of compilation, but ICC will put the dependencies in
3807  # the current directory while Tru64 will put them in the object
3808  # directory.
3809  mkdir sub
3810
3811  am_cv_CC_dependencies_compiler_type=none
3812  if test "$am_compiler_list" = ""; then
3813     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3814  fi
3815  am__universal=false
3816  case " $depcc " in #(
3817     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3818     esac
3819
3820  for depmode in $am_compiler_list; do
3821    # Setup a source with many dependencies, because some compilers
3822    # like to wrap large dependency lists on column 80 (with \), and
3823    # we should not choose a depcomp mode which is confused by this.
3824    #
3825    # We need to recreate these files for each test, as the compiler may
3826    # overwrite some of them when testing with obscure command lines.
3827    # This happens at least with the AIX C compiler.
3828    : > sub/conftest.c
3829    for i in 1 2 3 4 5 6; do
3830      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3831      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3832      # Solaris 8's {/usr,}/bin/sh.
3833      touch sub/conftst$i.h
3834    done
3835    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3836
3837    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3838    # mode.  It turns out that the SunPro C++ compiler does not properly
3839    # handle `-M -o', and we need to detect this.  Also, some Intel
3840    # versions had trouble with output in subdirs
3841    am__obj=sub/conftest.${OBJEXT-o}
3842    am__minus_obj="-o $am__obj"
3843    case $depmode in
3844    gcc)
3845      # This depmode causes a compiler race in universal mode.
3846      test "$am__universal" = false || continue
3847      ;;
3848    nosideeffect)
3849      # after this tag, mechanisms are not by side-effect, so they'll
3850      # only be used when explicitly requested
3851      if test "x$enable_dependency_tracking" = xyes; then
3852	continue
3853      else
3854	break
3855      fi
3856      ;;
3857    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3858      # This compiler won't grok `-c -o', but also, the minuso test has
3859      # not run yet.  These depmodes are late enough in the game, and
3860      # so weak that their functioning should not be impacted.
3861      am__obj=conftest.${OBJEXT-o}
3862      am__minus_obj=
3863      ;;
3864    none) break ;;
3865    esac
3866    if depmode=$depmode \
3867       source=sub/conftest.c object=$am__obj \
3868       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3869       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3870         >/dev/null 2>conftest.err &&
3871       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3872       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3873       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3874       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3875      # icc doesn't choke on unknown options, it will just issue warnings
3876      # or remarks (even with -Werror).  So we grep stderr for any message
3877      # that says an option was ignored or not supported.
3878      # When given -MP, icc 7.0 and 7.1 complain thusly:
3879      #   icc: Command line warning: ignoring option '-M'; no argument required
3880      # The diagnosis changed in icc 8.0:
3881      #   icc: Command line remark: option '-MP' not supported
3882      if (grep 'ignoring option' conftest.err ||
3883          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3884        am_cv_CC_dependencies_compiler_type=$depmode
3885        break
3886      fi
3887    fi
3888  done
3889
3890  cd ..
3891  rm -rf conftest.dir
3892else
3893  am_cv_CC_dependencies_compiler_type=none
3894fi
3895
3896fi
3897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3898$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3899CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3900
3901 if
3902  test "x$enable_dependency_tracking" != xno \
3903  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3904  am__fastdepCC_TRUE=
3905  am__fastdepCC_FALSE='#'
3906else
3907  am__fastdepCC_TRUE='#'
3908  am__fastdepCC_FALSE=
3909fi
3910
3911
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3913$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3914if ${ac_cv_path_SED+:} false; then :
3915  $as_echo_n "(cached) " >&6
3916else
3917            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3918     for ac_i in 1 2 3 4 5 6 7; do
3919       ac_script="$ac_script$as_nl$ac_script"
3920     done
3921     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3922     { ac_script=; unset ac_script;}
3923     if test -z "$SED"; then
3924  ac_path_SED_found=false
3925  # Loop through the user's path and test for each of PROGNAME-LIST
3926  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927for as_dir in $PATH
3928do
3929  IFS=$as_save_IFS
3930  test -z "$as_dir" && as_dir=.
3931    for ac_prog in sed gsed; do
3932    for ac_exec_ext in '' $ac_executable_extensions; do
3933      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3934      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3935# Check for GNU ac_path_SED and select it if it is found.
3936  # Check for GNU $ac_path_SED
3937case `"$ac_path_SED" --version 2>&1` in
3938*GNU*)
3939  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3940*)
3941  ac_count=0
3942  $as_echo_n 0123456789 >"conftest.in"
3943  while :
3944  do
3945    cat "conftest.in" "conftest.in" >"conftest.tmp"
3946    mv "conftest.tmp" "conftest.in"
3947    cp "conftest.in" "conftest.nl"
3948    $as_echo '' >> "conftest.nl"
3949    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3950    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3951    as_fn_arith $ac_count + 1 && ac_count=$as_val
3952    if test $ac_count -gt ${ac_path_SED_max-0}; then
3953      # Best one so far, save it but keep looking for a better one
3954      ac_cv_path_SED="$ac_path_SED"
3955      ac_path_SED_max=$ac_count
3956    fi
3957    # 10*(2^10) chars as input seems more than enough
3958    test $ac_count -gt 10 && break
3959  done
3960  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3961esac
3962
3963      $ac_path_SED_found && break 3
3964    done
3965  done
3966  done
3967IFS=$as_save_IFS
3968  if test -z "$ac_cv_path_SED"; then
3969    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3970  fi
3971else
3972  ac_cv_path_SED=$SED
3973fi
3974
3975fi
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3977$as_echo "$ac_cv_path_SED" >&6; }
3978 SED="$ac_cv_path_SED"
3979  rm -f conftest.sed
3980
3981test -z "$SED" && SED=sed
3982Xsed="$SED -e 1s/^X//"
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3995$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3996if ${ac_cv_path_GREP+:} false; then :
3997  $as_echo_n "(cached) " >&6
3998else
3999  if test -z "$GREP"; then
4000  ac_path_GREP_found=false
4001  # Loop through the user's path and test for each of PROGNAME-LIST
4002  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4004do
4005  IFS=$as_save_IFS
4006  test -z "$as_dir" && as_dir=.
4007    for ac_prog in grep ggrep; do
4008    for ac_exec_ext in '' $ac_executable_extensions; do
4009      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4010      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4011# Check for GNU ac_path_GREP and select it if it is found.
4012  # Check for GNU $ac_path_GREP
4013case `"$ac_path_GREP" --version 2>&1` in
4014*GNU*)
4015  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4016*)
4017  ac_count=0
4018  $as_echo_n 0123456789 >"conftest.in"
4019  while :
4020  do
4021    cat "conftest.in" "conftest.in" >"conftest.tmp"
4022    mv "conftest.tmp" "conftest.in"
4023    cp "conftest.in" "conftest.nl"
4024    $as_echo 'GREP' >> "conftest.nl"
4025    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4026    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4027    as_fn_arith $ac_count + 1 && ac_count=$as_val
4028    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4029      # Best one so far, save it but keep looking for a better one
4030      ac_cv_path_GREP="$ac_path_GREP"
4031      ac_path_GREP_max=$ac_count
4032    fi
4033    # 10*(2^10) chars as input seems more than enough
4034    test $ac_count -gt 10 && break
4035  done
4036  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4037esac
4038
4039      $ac_path_GREP_found && break 3
4040    done
4041  done
4042  done
4043IFS=$as_save_IFS
4044  if test -z "$ac_cv_path_GREP"; then
4045    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4046  fi
4047else
4048  ac_cv_path_GREP=$GREP
4049fi
4050
4051fi
4052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4053$as_echo "$ac_cv_path_GREP" >&6; }
4054 GREP="$ac_cv_path_GREP"
4055
4056
4057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4058$as_echo_n "checking for egrep... " >&6; }
4059if ${ac_cv_path_EGREP+:} false; then :
4060  $as_echo_n "(cached) " >&6
4061else
4062  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4063   then ac_cv_path_EGREP="$GREP -E"
4064   else
4065     if test -z "$EGREP"; then
4066  ac_path_EGREP_found=false
4067  # Loop through the user's path and test for each of PROGNAME-LIST
4068  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4070do
4071  IFS=$as_save_IFS
4072  test -z "$as_dir" && as_dir=.
4073    for ac_prog in egrep; do
4074    for ac_exec_ext in '' $ac_executable_extensions; do
4075      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4076      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4077# Check for GNU ac_path_EGREP and select it if it is found.
4078  # Check for GNU $ac_path_EGREP
4079case `"$ac_path_EGREP" --version 2>&1` in
4080*GNU*)
4081  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4082*)
4083  ac_count=0
4084  $as_echo_n 0123456789 >"conftest.in"
4085  while :
4086  do
4087    cat "conftest.in" "conftest.in" >"conftest.tmp"
4088    mv "conftest.tmp" "conftest.in"
4089    cp "conftest.in" "conftest.nl"
4090    $as_echo 'EGREP' >> "conftest.nl"
4091    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4092    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4093    as_fn_arith $ac_count + 1 && ac_count=$as_val
4094    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4095      # Best one so far, save it but keep looking for a better one
4096      ac_cv_path_EGREP="$ac_path_EGREP"
4097      ac_path_EGREP_max=$ac_count
4098    fi
4099    # 10*(2^10) chars as input seems more than enough
4100    test $ac_count -gt 10 && break
4101  done
4102  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4103esac
4104
4105      $ac_path_EGREP_found && break 3
4106    done
4107  done
4108  done
4109IFS=$as_save_IFS
4110  if test -z "$ac_cv_path_EGREP"; then
4111    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4112  fi
4113else
4114  ac_cv_path_EGREP=$EGREP
4115fi
4116
4117   fi
4118fi
4119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4120$as_echo "$ac_cv_path_EGREP" >&6; }
4121 EGREP="$ac_cv_path_EGREP"
4122
4123
4124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4125$as_echo_n "checking for fgrep... " >&6; }
4126if ${ac_cv_path_FGREP+:} false; then :
4127  $as_echo_n "(cached) " >&6
4128else
4129  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4130   then ac_cv_path_FGREP="$GREP -F"
4131   else
4132     if test -z "$FGREP"; then
4133  ac_path_FGREP_found=false
4134  # Loop through the user's path and test for each of PROGNAME-LIST
4135  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4137do
4138  IFS=$as_save_IFS
4139  test -z "$as_dir" && as_dir=.
4140    for ac_prog in fgrep; do
4141    for ac_exec_ext in '' $ac_executable_extensions; do
4142      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4143      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4144# Check for GNU ac_path_FGREP and select it if it is found.
4145  # Check for GNU $ac_path_FGREP
4146case `"$ac_path_FGREP" --version 2>&1` in
4147*GNU*)
4148  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4149*)
4150  ac_count=0
4151  $as_echo_n 0123456789 >"conftest.in"
4152  while :
4153  do
4154    cat "conftest.in" "conftest.in" >"conftest.tmp"
4155    mv "conftest.tmp" "conftest.in"
4156    cp "conftest.in" "conftest.nl"
4157    $as_echo 'FGREP' >> "conftest.nl"
4158    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4159    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4160    as_fn_arith $ac_count + 1 && ac_count=$as_val
4161    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4162      # Best one so far, save it but keep looking for a better one
4163      ac_cv_path_FGREP="$ac_path_FGREP"
4164      ac_path_FGREP_max=$ac_count
4165    fi
4166    # 10*(2^10) chars as input seems more than enough
4167    test $ac_count -gt 10 && break
4168  done
4169  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4170esac
4171
4172      $ac_path_FGREP_found && break 3
4173    done
4174  done
4175  done
4176IFS=$as_save_IFS
4177  if test -z "$ac_cv_path_FGREP"; then
4178    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4179  fi
4180else
4181  ac_cv_path_FGREP=$FGREP
4182fi
4183
4184   fi
4185fi
4186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4187$as_echo "$ac_cv_path_FGREP" >&6; }
4188 FGREP="$ac_cv_path_FGREP"
4189
4190
4191test -z "$GREP" && GREP=grep
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211# Check whether --with-gnu-ld was given.
4212if test "${with_gnu_ld+set}" = set; then :
4213  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4214else
4215  with_gnu_ld=no
4216fi
4217
4218ac_prog=ld
4219if test "$GCC" = yes; then
4220  # Check if gcc -print-prog-name=ld gives a path.
4221  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4222$as_echo_n "checking for ld used by $CC... " >&6; }
4223  case $host in
4224  *-*-mingw*)
4225    # gcc leaves a trailing carriage return which upsets mingw
4226    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4227  *)
4228    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4229  esac
4230  case $ac_prog in
4231    # Accept absolute paths.
4232    [\\/]* | ?:[\\/]*)
4233      re_direlt='/[^/][^/]*/\.\./'
4234      # Canonicalize the pathname of ld
4235      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4236      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4237	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4238      done
4239      test -z "$LD" && LD="$ac_prog"
4240      ;;
4241  "")
4242    # If it fails, then pretend we aren't using GCC.
4243    ac_prog=ld
4244    ;;
4245  *)
4246    # If it is relative, then search for the first ld in PATH.
4247    with_gnu_ld=unknown
4248    ;;
4249  esac
4250elif test "$with_gnu_ld" = yes; then
4251  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4252$as_echo_n "checking for GNU ld... " >&6; }
4253else
4254  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4255$as_echo_n "checking for non-GNU ld... " >&6; }
4256fi
4257if ${lt_cv_path_LD+:} false; then :
4258  $as_echo_n "(cached) " >&6
4259else
4260  if test -z "$LD"; then
4261  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4262  for ac_dir in $PATH; do
4263    IFS="$lt_save_ifs"
4264    test -z "$ac_dir" && ac_dir=.
4265    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4266      lt_cv_path_LD="$ac_dir/$ac_prog"
4267      # Check to see if the program is GNU ld.  I'd rather use --version,
4268      # but apparently some variants of GNU ld only accept -v.
4269      # Break only if it was the GNU/non-GNU ld that we prefer.
4270      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4271      *GNU* | *'with BFD'*)
4272	test "$with_gnu_ld" != no && break
4273	;;
4274      *)
4275	test "$with_gnu_ld" != yes && break
4276	;;
4277      esac
4278    fi
4279  done
4280  IFS="$lt_save_ifs"
4281else
4282  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4283fi
4284fi
4285
4286LD="$lt_cv_path_LD"
4287if test -n "$LD"; then
4288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4289$as_echo "$LD" >&6; }
4290else
4291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292$as_echo "no" >&6; }
4293fi
4294test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4296$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4297if ${lt_cv_prog_gnu_ld+:} false; then :
4298  $as_echo_n "(cached) " >&6
4299else
4300  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4301case `$LD -v 2>&1 </dev/null` in
4302*GNU* | *'with BFD'*)
4303  lt_cv_prog_gnu_ld=yes
4304  ;;
4305*)
4306  lt_cv_prog_gnu_ld=no
4307  ;;
4308esac
4309fi
4310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4311$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4312with_gnu_ld=$lt_cv_prog_gnu_ld
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4323$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4324if ${lt_cv_path_NM+:} false; then :
4325  $as_echo_n "(cached) " >&6
4326else
4327  if test -n "$NM"; then
4328  # Let the user override the test.
4329  lt_cv_path_NM="$NM"
4330else
4331  lt_nm_to_check="${ac_tool_prefix}nm"
4332  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4333    lt_nm_to_check="$lt_nm_to_check nm"
4334  fi
4335  for lt_tmp_nm in $lt_nm_to_check; do
4336    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4337    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4338      IFS="$lt_save_ifs"
4339      test -z "$ac_dir" && ac_dir=.
4340      tmp_nm="$ac_dir/$lt_tmp_nm"
4341      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4342	# Check to see if the nm accepts a BSD-compat flag.
4343	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4344	#   nm: unknown option "B" ignored
4345	# Tru64's nm complains that /dev/null is an invalid object file
4346	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4347	*/dev/null* | *'Invalid file or object type'*)
4348	  lt_cv_path_NM="$tmp_nm -B"
4349	  break
4350	  ;;
4351	*)
4352	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4353	  */dev/null*)
4354	    lt_cv_path_NM="$tmp_nm -p"
4355	    break
4356	    ;;
4357	  *)
4358	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4359	    continue # so that we can try to find one that supports BSD flags
4360	    ;;
4361	  esac
4362	  ;;
4363	esac
4364      fi
4365    done
4366    IFS="$lt_save_ifs"
4367  done
4368  : ${lt_cv_path_NM=no}
4369fi
4370fi
4371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4372$as_echo "$lt_cv_path_NM" >&6; }
4373if test "$lt_cv_path_NM" != "no"; then
4374  NM="$lt_cv_path_NM"
4375else
4376  # Didn't find any BSD compatible name lister, look for dumpbin.
4377  if test -n "$DUMPBIN"; then :
4378    # Let the user override the test.
4379  else
4380    if test -n "$ac_tool_prefix"; then
4381  for ac_prog in dumpbin "link -dump"
4382  do
4383    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4384set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4386$as_echo_n "checking for $ac_word... " >&6; }
4387if ${ac_cv_prog_DUMPBIN+:} false; then :
4388  $as_echo_n "(cached) " >&6
4389else
4390  if test -n "$DUMPBIN"; then
4391  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4392else
4393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394for as_dir in $PATH
4395do
4396  IFS=$as_save_IFS
4397  test -z "$as_dir" && as_dir=.
4398    for ac_exec_ext in '' $ac_executable_extensions; do
4399  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4400    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4401    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4402    break 2
4403  fi
4404done
4405  done
4406IFS=$as_save_IFS
4407
4408fi
4409fi
4410DUMPBIN=$ac_cv_prog_DUMPBIN
4411if test -n "$DUMPBIN"; then
4412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4413$as_echo "$DUMPBIN" >&6; }
4414else
4415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416$as_echo "no" >&6; }
4417fi
4418
4419
4420    test -n "$DUMPBIN" && break
4421  done
4422fi
4423if test -z "$DUMPBIN"; then
4424  ac_ct_DUMPBIN=$DUMPBIN
4425  for ac_prog in dumpbin "link -dump"
4426do
4427  # Extract the first word of "$ac_prog", so it can be a program name with args.
4428set dummy $ac_prog; ac_word=$2
4429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4430$as_echo_n "checking for $ac_word... " >&6; }
4431if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4432  $as_echo_n "(cached) " >&6
4433else
4434  if test -n "$ac_ct_DUMPBIN"; then
4435  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4436else
4437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438for as_dir in $PATH
4439do
4440  IFS=$as_save_IFS
4441  test -z "$as_dir" && as_dir=.
4442    for ac_exec_ext in '' $ac_executable_extensions; do
4443  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4444    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4445    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4446    break 2
4447  fi
4448done
4449  done
4450IFS=$as_save_IFS
4451
4452fi
4453fi
4454ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4455if test -n "$ac_ct_DUMPBIN"; then
4456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4457$as_echo "$ac_ct_DUMPBIN" >&6; }
4458else
4459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4460$as_echo "no" >&6; }
4461fi
4462
4463
4464  test -n "$ac_ct_DUMPBIN" && break
4465done
4466
4467  if test "x$ac_ct_DUMPBIN" = x; then
4468    DUMPBIN=":"
4469  else
4470    case $cross_compiling:$ac_tool_warned in
4471yes:)
4472{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4474ac_tool_warned=yes ;;
4475esac
4476    DUMPBIN=$ac_ct_DUMPBIN
4477  fi
4478fi
4479
4480    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4481    *COFF*)
4482      DUMPBIN="$DUMPBIN -symbols"
4483      ;;
4484    *)
4485      DUMPBIN=:
4486      ;;
4487    esac
4488  fi
4489
4490  if test "$DUMPBIN" != ":"; then
4491    NM="$DUMPBIN"
4492  fi
4493fi
4494test -z "$NM" && NM=nm
4495
4496
4497
4498
4499
4500
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4502$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4503if ${lt_cv_nm_interface+:} false; then :
4504  $as_echo_n "(cached) " >&6
4505else
4506  lt_cv_nm_interface="BSD nm"
4507  echo "int some_variable = 0;" > conftest.$ac_ext
4508  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4509  (eval "$ac_compile" 2>conftest.err)
4510  cat conftest.err >&5
4511  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4512  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4513  cat conftest.err >&5
4514  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4515  cat conftest.out >&5
4516  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4517    lt_cv_nm_interface="MS dumpbin"
4518  fi
4519  rm -f conftest*
4520fi
4521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4522$as_echo "$lt_cv_nm_interface" >&6; }
4523
4524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4525$as_echo_n "checking whether ln -s works... " >&6; }
4526LN_S=$as_ln_s
4527if test "$LN_S" = "ln -s"; then
4528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4529$as_echo "yes" >&6; }
4530else
4531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4532$as_echo "no, using $LN_S" >&6; }
4533fi
4534
4535# find the maximum length of command line arguments
4536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4537$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4538if ${lt_cv_sys_max_cmd_len+:} false; then :
4539  $as_echo_n "(cached) " >&6
4540else
4541    i=0
4542  teststring="ABCD"
4543
4544  case $build_os in
4545  msdosdjgpp*)
4546    # On DJGPP, this test can blow up pretty badly due to problems in libc
4547    # (any single argument exceeding 2000 bytes causes a buffer overrun
4548    # during glob expansion).  Even if it were fixed, the result of this
4549    # check would be larger than it should be.
4550    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4551    ;;
4552
4553  gnu*)
4554    # Under GNU Hurd, this test is not required because there is
4555    # no limit to the length of command line arguments.
4556    # Libtool will interpret -1 as no limit whatsoever
4557    lt_cv_sys_max_cmd_len=-1;
4558    ;;
4559
4560  cygwin* | mingw* | cegcc*)
4561    # On Win9x/ME, this test blows up -- it succeeds, but takes
4562    # about 5 minutes as the teststring grows exponentially.
4563    # Worse, since 9x/ME are not pre-emptively multitasking,
4564    # you end up with a "frozen" computer, even though with patience
4565    # the test eventually succeeds (with a max line length of 256k).
4566    # Instead, let's just punt: use the minimum linelength reported by
4567    # all of the supported platforms: 8192 (on NT/2K/XP).
4568    lt_cv_sys_max_cmd_len=8192;
4569    ;;
4570
4571  mint*)
4572    # On MiNT this can take a long time and run out of memory.
4573    lt_cv_sys_max_cmd_len=8192;
4574    ;;
4575
4576  amigaos*)
4577    # On AmigaOS with pdksh, this test takes hours, literally.
4578    # So we just punt and use a minimum line length of 8192.
4579    lt_cv_sys_max_cmd_len=8192;
4580    ;;
4581
4582  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4583    # This has been around since 386BSD, at least.  Likely further.
4584    if test -x /sbin/sysctl; then
4585      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4586    elif test -x /usr/sbin/sysctl; then
4587      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4588    else
4589      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4590    fi
4591    # And add a safety zone
4592    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4593    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4594    ;;
4595
4596  interix*)
4597    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4598    lt_cv_sys_max_cmd_len=196608
4599    ;;
4600
4601  os2*)
4602    # The test takes a long time on OS/2.
4603    lt_cv_sys_max_cmd_len=8192
4604    ;;
4605
4606  osf*)
4607    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4608    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4609    # nice to cause kernel panics so lets avoid the loop below.
4610    # First set a reasonable default.
4611    lt_cv_sys_max_cmd_len=16384
4612    #
4613    if test -x /sbin/sysconfig; then
4614      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4615        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4616      esac
4617    fi
4618    ;;
4619  sco3.2v5*)
4620    lt_cv_sys_max_cmd_len=102400
4621    ;;
4622  sysv5* | sco5v6* | sysv4.2uw2*)
4623    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4624    if test -n "$kargmax"; then
4625      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4626    else
4627      lt_cv_sys_max_cmd_len=32768
4628    fi
4629    ;;
4630  *)
4631    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4632    if test -n "$lt_cv_sys_max_cmd_len"; then
4633      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4634      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4635    else
4636      # Make teststring a little bigger before we do anything with it.
4637      # a 1K string should be a reasonable start.
4638      for i in 1 2 3 4 5 6 7 8 ; do
4639        teststring=$teststring$teststring
4640      done
4641      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4642      # If test is not a shell built-in, we'll probably end up computing a
4643      # maximum length that is only half of the actual maximum length, but
4644      # we can't tell.
4645      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4646	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4647	      test $i != 17 # 1/2 MB should be enough
4648      do
4649        i=`expr $i + 1`
4650        teststring=$teststring$teststring
4651      done
4652      # Only check the string length outside the loop.
4653      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4654      teststring=
4655      # Add a significant safety factor because C++ compilers can tack on
4656      # massive amounts of additional arguments before passing them to the
4657      # linker.  It appears as though 1/2 is a usable value.
4658      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4659    fi
4660    ;;
4661  esac
4662
4663fi
4664
4665if test -n $lt_cv_sys_max_cmd_len ; then
4666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4667$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4668else
4669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4670$as_echo "none" >&6; }
4671fi
4672max_cmd_len=$lt_cv_sys_max_cmd_len
4673
4674
4675
4676
4677
4678
4679: ${CP="cp -f"}
4680: ${MV="mv -f"}
4681: ${RM="rm -f"}
4682
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4684$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4685# Try some XSI features
4686xsi_shell=no
4687( _lt_dummy="a/b/c"
4688  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4689      = c,a/b,b/c, \
4690    && eval 'test $(( 1 + 1 )) -eq 2 \
4691    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4692  && xsi_shell=yes
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4694$as_echo "$xsi_shell" >&6; }
4695
4696
4697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4698$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4699lt_shell_append=no
4700( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4701    >/dev/null 2>&1 \
4702  && lt_shell_append=yes
4703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4704$as_echo "$lt_shell_append" >&6; }
4705
4706
4707if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4708  lt_unset=unset
4709else
4710  lt_unset=false
4711fi
4712
4713
4714
4715
4716
4717# test EBCDIC or ASCII
4718case `echo X|tr X '\101'` in
4719 A) # ASCII based system
4720    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4721  lt_SP2NL='tr \040 \012'
4722  lt_NL2SP='tr \015\012 \040\040'
4723  ;;
4724 *) # EBCDIC based system
4725  lt_SP2NL='tr \100 \n'
4726  lt_NL2SP='tr \r\n \100\100'
4727  ;;
4728esac
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4739$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4740if ${lt_cv_to_host_file_cmd+:} false; then :
4741  $as_echo_n "(cached) " >&6
4742else
4743  case $host in
4744  *-*-mingw* )
4745    case $build in
4746      *-*-mingw* ) # actually msys
4747        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4748        ;;
4749      *-*-cygwin* )
4750        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4751        ;;
4752      * ) # otherwise, assume *nix
4753        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4754        ;;
4755    esac
4756    ;;
4757  *-*-cygwin* )
4758    case $build in
4759      *-*-mingw* ) # actually msys
4760        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4761        ;;
4762      *-*-cygwin* )
4763        lt_cv_to_host_file_cmd=func_convert_file_noop
4764        ;;
4765      * ) # otherwise, assume *nix
4766        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4767        ;;
4768    esac
4769    ;;
4770  * ) # unhandled hosts (and "normal" native builds)
4771    lt_cv_to_host_file_cmd=func_convert_file_noop
4772    ;;
4773esac
4774
4775fi
4776
4777to_host_file_cmd=$lt_cv_to_host_file_cmd
4778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4779$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4780
4781
4782
4783
4784
4785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4786$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4787if ${lt_cv_to_tool_file_cmd+:} false; then :
4788  $as_echo_n "(cached) " >&6
4789else
4790  #assume ordinary cross tools, or native build.
4791lt_cv_to_tool_file_cmd=func_convert_file_noop
4792case $host in
4793  *-*-mingw* )
4794    case $build in
4795      *-*-mingw* ) # actually msys
4796        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4797        ;;
4798    esac
4799    ;;
4800esac
4801
4802fi
4803
4804to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4806$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4807
4808
4809
4810
4811
4812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4813$as_echo_n "checking for $LD option to reload object files... " >&6; }
4814if ${lt_cv_ld_reload_flag+:} false; then :
4815  $as_echo_n "(cached) " >&6
4816else
4817  lt_cv_ld_reload_flag='-r'
4818fi
4819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4820$as_echo "$lt_cv_ld_reload_flag" >&6; }
4821reload_flag=$lt_cv_ld_reload_flag
4822case $reload_flag in
4823"" | " "*) ;;
4824*) reload_flag=" $reload_flag" ;;
4825esac
4826reload_cmds='$LD$reload_flag -o $output$reload_objs'
4827case $host_os in
4828  cygwin* | mingw* | pw32* | cegcc*)
4829    if test "$GCC" != yes; then
4830      reload_cmds=false
4831    fi
4832    ;;
4833  darwin*)
4834    if test "$GCC" = yes; then
4835      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4836    else
4837      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4838    fi
4839    ;;
4840esac
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850if test -n "$ac_tool_prefix"; then
4851  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4852set dummy ${ac_tool_prefix}objdump; ac_word=$2
4853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854$as_echo_n "checking for $ac_word... " >&6; }
4855if ${ac_cv_prog_OBJDUMP+:} false; then :
4856  $as_echo_n "(cached) " >&6
4857else
4858  if test -n "$OBJDUMP"; then
4859  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4860else
4861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862for as_dir in $PATH
4863do
4864  IFS=$as_save_IFS
4865  test -z "$as_dir" && as_dir=.
4866    for ac_exec_ext in '' $ac_executable_extensions; do
4867  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4869    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4870    break 2
4871  fi
4872done
4873  done
4874IFS=$as_save_IFS
4875
4876fi
4877fi
4878OBJDUMP=$ac_cv_prog_OBJDUMP
4879if test -n "$OBJDUMP"; then
4880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4881$as_echo "$OBJDUMP" >&6; }
4882else
4883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884$as_echo "no" >&6; }
4885fi
4886
4887
4888fi
4889if test -z "$ac_cv_prog_OBJDUMP"; then
4890  ac_ct_OBJDUMP=$OBJDUMP
4891  # Extract the first word of "objdump", so it can be a program name with args.
4892set dummy objdump; ac_word=$2
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894$as_echo_n "checking for $ac_word... " >&6; }
4895if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4896  $as_echo_n "(cached) " >&6
4897else
4898  if test -n "$ac_ct_OBJDUMP"; then
4899  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4900else
4901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902for as_dir in $PATH
4903do
4904  IFS=$as_save_IFS
4905  test -z "$as_dir" && as_dir=.
4906    for ac_exec_ext in '' $ac_executable_extensions; do
4907  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4908    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4910    break 2
4911  fi
4912done
4913  done
4914IFS=$as_save_IFS
4915
4916fi
4917fi
4918ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4919if test -n "$ac_ct_OBJDUMP"; then
4920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4921$as_echo "$ac_ct_OBJDUMP" >&6; }
4922else
4923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4924$as_echo "no" >&6; }
4925fi
4926
4927  if test "x$ac_ct_OBJDUMP" = x; then
4928    OBJDUMP="false"
4929  else
4930    case $cross_compiling:$ac_tool_warned in
4931yes:)
4932{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4933$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4934ac_tool_warned=yes ;;
4935esac
4936    OBJDUMP=$ac_ct_OBJDUMP
4937  fi
4938else
4939  OBJDUMP="$ac_cv_prog_OBJDUMP"
4940fi
4941
4942test -z "$OBJDUMP" && OBJDUMP=objdump
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4953$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4954if ${lt_cv_deplibs_check_method+:} false; then :
4955  $as_echo_n "(cached) " >&6
4956else
4957  lt_cv_file_magic_cmd='$MAGIC_CMD'
4958lt_cv_file_magic_test_file=
4959lt_cv_deplibs_check_method='unknown'
4960# Need to set the preceding variable on all platforms that support
4961# interlibrary dependencies.
4962# 'none' -- dependencies not supported.
4963# `unknown' -- same as none, but documents that we really don't know.
4964# 'pass_all' -- all dependencies passed with no checks.
4965# 'test_compile' -- check by making test program.
4966# 'file_magic [[regex]]' -- check by looking for files in library path
4967# which responds to the $file_magic_cmd with a given extended regex.
4968# If you have `file' or equivalent on your system and you're not sure
4969# whether `pass_all' will *always* work, you probably want this one.
4970
4971case $host_os in
4972aix[4-9]*)
4973  lt_cv_deplibs_check_method=pass_all
4974  ;;
4975
4976beos*)
4977  lt_cv_deplibs_check_method=pass_all
4978  ;;
4979
4980bsdi[45]*)
4981  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4982  lt_cv_file_magic_cmd='/usr/bin/file -L'
4983  lt_cv_file_magic_test_file=/shlib/libc.so
4984  ;;
4985
4986cygwin*)
4987  # func_win32_libid is a shell function defined in ltmain.sh
4988  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4989  lt_cv_file_magic_cmd='func_win32_libid'
4990  ;;
4991
4992mingw* | pw32*)
4993  # Base MSYS/MinGW do not provide the 'file' command needed by
4994  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4995  # unless we find 'file', for example because we are cross-compiling.
4996  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4997  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4998    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4999    lt_cv_file_magic_cmd='func_win32_libid'
5000  else
5001    # Keep this pattern in sync with the one in func_win32_libid.
5002    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5003    lt_cv_file_magic_cmd='$OBJDUMP -f'
5004  fi
5005  ;;
5006
5007cegcc*)
5008  # use the weaker test based on 'objdump'. See mingw*.
5009  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5010  lt_cv_file_magic_cmd='$OBJDUMP -f'
5011  ;;
5012
5013darwin* | rhapsody*)
5014  lt_cv_deplibs_check_method=pass_all
5015  ;;
5016
5017freebsd* | dragonfly*)
5018  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5019    case $host_cpu in
5020    i*86 )
5021      # Not sure whether the presence of OpenBSD here was a mistake.
5022      # Let's accept both of them until this is cleared up.
5023      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5024      lt_cv_file_magic_cmd=/usr/bin/file
5025      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5026      ;;
5027    esac
5028  else
5029    lt_cv_deplibs_check_method=pass_all
5030  fi
5031  ;;
5032
5033gnu*)
5034  lt_cv_deplibs_check_method=pass_all
5035  ;;
5036
5037haiku*)
5038  lt_cv_deplibs_check_method=pass_all
5039  ;;
5040
5041hpux10.20* | hpux11*)
5042  lt_cv_file_magic_cmd=/usr/bin/file
5043  case $host_cpu in
5044  ia64*)
5045    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5046    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5047    ;;
5048  hppa*64*)
5049    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]'
5050    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5051    ;;
5052  *)
5053    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5054    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5055    ;;
5056  esac
5057  ;;
5058
5059interix[3-9]*)
5060  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5061  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5062  ;;
5063
5064irix5* | irix6* | nonstopux*)
5065  case $LD in
5066  *-32|*"-32 ") libmagic=32-bit;;
5067  *-n32|*"-n32 ") libmagic=N32;;
5068  *-64|*"-64 ") libmagic=64-bit;;
5069  *) libmagic=never-match;;
5070  esac
5071  lt_cv_deplibs_check_method=pass_all
5072  ;;
5073
5074# This must be glibc/ELF.
5075linux* | k*bsd*-gnu | kopensolaris*-gnu)
5076  lt_cv_deplibs_check_method=pass_all
5077  ;;
5078
5079netbsd*)
5080  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5081    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5082  else
5083    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5084  fi
5085  ;;
5086
5087newos6*)
5088  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5089  lt_cv_file_magic_cmd=/usr/bin/file
5090  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5091  ;;
5092
5093*nto* | *qnx*)
5094  lt_cv_deplibs_check_method=pass_all
5095  ;;
5096
5097openbsd*)
5098  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5099    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5100  else
5101    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5102  fi
5103  ;;
5104
5105osf3* | osf4* | osf5*)
5106  lt_cv_deplibs_check_method=pass_all
5107  ;;
5108
5109rdos*)
5110  lt_cv_deplibs_check_method=pass_all
5111  ;;
5112
5113solaris*)
5114  lt_cv_deplibs_check_method=pass_all
5115  ;;
5116
5117sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5118  lt_cv_deplibs_check_method=pass_all
5119  ;;
5120
5121sysv4 | sysv4.3*)
5122  case $host_vendor in
5123  motorola)
5124    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]'
5125    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5126    ;;
5127  ncr)
5128    lt_cv_deplibs_check_method=pass_all
5129    ;;
5130  sequent)
5131    lt_cv_file_magic_cmd='/bin/file'
5132    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5133    ;;
5134  sni)
5135    lt_cv_file_magic_cmd='/bin/file'
5136    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5137    lt_cv_file_magic_test_file=/lib/libc.so
5138    ;;
5139  siemens)
5140    lt_cv_deplibs_check_method=pass_all
5141    ;;
5142  pc)
5143    lt_cv_deplibs_check_method=pass_all
5144    ;;
5145  esac
5146  ;;
5147
5148tpf*)
5149  lt_cv_deplibs_check_method=pass_all
5150  ;;
5151esac
5152
5153fi
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5155$as_echo "$lt_cv_deplibs_check_method" >&6; }
5156
5157file_magic_glob=
5158want_nocaseglob=no
5159if test "$build" = "$host"; then
5160  case $host_os in
5161  mingw* | pw32*)
5162    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5163      want_nocaseglob=yes
5164    else
5165      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5166    fi
5167    ;;
5168  esac
5169fi
5170
5171file_magic_cmd=$lt_cv_file_magic_cmd
5172deplibs_check_method=$lt_cv_deplibs_check_method
5173test -z "$deplibs_check_method" && deplibs_check_method=unknown
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196if test -n "$ac_tool_prefix"; then
5197  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5198set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5200$as_echo_n "checking for $ac_word... " >&6; }
5201if ${ac_cv_prog_DLLTOOL+:} false; then :
5202  $as_echo_n "(cached) " >&6
5203else
5204  if test -n "$DLLTOOL"; then
5205  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5206else
5207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208for as_dir in $PATH
5209do
5210  IFS=$as_save_IFS
5211  test -z "$as_dir" && as_dir=.
5212    for ac_exec_ext in '' $ac_executable_extensions; do
5213  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5214    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5215    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5216    break 2
5217  fi
5218done
5219  done
5220IFS=$as_save_IFS
5221
5222fi
5223fi
5224DLLTOOL=$ac_cv_prog_DLLTOOL
5225if test -n "$DLLTOOL"; then
5226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5227$as_echo "$DLLTOOL" >&6; }
5228else
5229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230$as_echo "no" >&6; }
5231fi
5232
5233
5234fi
5235if test -z "$ac_cv_prog_DLLTOOL"; then
5236  ac_ct_DLLTOOL=$DLLTOOL
5237  # Extract the first word of "dlltool", so it can be a program name with args.
5238set dummy dlltool; ac_word=$2
5239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5240$as_echo_n "checking for $ac_word... " >&6; }
5241if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5242  $as_echo_n "(cached) " >&6
5243else
5244  if test -n "$ac_ct_DLLTOOL"; then
5245  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5246else
5247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248for as_dir in $PATH
5249do
5250  IFS=$as_save_IFS
5251  test -z "$as_dir" && as_dir=.
5252    for ac_exec_ext in '' $ac_executable_extensions; do
5253  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5254    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5255    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5256    break 2
5257  fi
5258done
5259  done
5260IFS=$as_save_IFS
5261
5262fi
5263fi
5264ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5265if test -n "$ac_ct_DLLTOOL"; then
5266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5267$as_echo "$ac_ct_DLLTOOL" >&6; }
5268else
5269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5270$as_echo "no" >&6; }
5271fi
5272
5273  if test "x$ac_ct_DLLTOOL" = x; then
5274    DLLTOOL="false"
5275  else
5276    case $cross_compiling:$ac_tool_warned in
5277yes:)
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5279$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5280ac_tool_warned=yes ;;
5281esac
5282    DLLTOOL=$ac_ct_DLLTOOL
5283  fi
5284else
5285  DLLTOOL="$ac_cv_prog_DLLTOOL"
5286fi
5287
5288test -z "$DLLTOOL" && DLLTOOL=dlltool
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5300$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5301if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5302  $as_echo_n "(cached) " >&6
5303else
5304  lt_cv_sharedlib_from_linklib_cmd='unknown'
5305
5306case $host_os in
5307cygwin* | mingw* | pw32* | cegcc*)
5308  # two different shell functions defined in ltmain.sh
5309  # decide which to use based on capabilities of $DLLTOOL
5310  case `$DLLTOOL --help 2>&1` in
5311  *--identify-strict*)
5312    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5313    ;;
5314  *)
5315    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5316    ;;
5317  esac
5318  ;;
5319*)
5320  # fallback: assume linklib IS sharedlib
5321  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5322  ;;
5323esac
5324
5325fi
5326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5327$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5328sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5329test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5330
5331
5332
5333
5334
5335
5336
5337
5338if test -n "$ac_tool_prefix"; then
5339  for ac_prog in ar
5340  do
5341    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5342set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5344$as_echo_n "checking for $ac_word... " >&6; }
5345if ${ac_cv_prog_AR+:} false; then :
5346  $as_echo_n "(cached) " >&6
5347else
5348  if test -n "$AR"; then
5349  ac_cv_prog_AR="$AR" # Let the user override the test.
5350else
5351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352for as_dir in $PATH
5353do
5354  IFS=$as_save_IFS
5355  test -z "$as_dir" && as_dir=.
5356    for ac_exec_ext in '' $ac_executable_extensions; do
5357  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5358    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5359    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5360    break 2
5361  fi
5362done
5363  done
5364IFS=$as_save_IFS
5365
5366fi
5367fi
5368AR=$ac_cv_prog_AR
5369if test -n "$AR"; then
5370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5371$as_echo "$AR" >&6; }
5372else
5373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5374$as_echo "no" >&6; }
5375fi
5376
5377
5378    test -n "$AR" && break
5379  done
5380fi
5381if test -z "$AR"; then
5382  ac_ct_AR=$AR
5383  for ac_prog in ar
5384do
5385  # Extract the first word of "$ac_prog", so it can be a program name with args.
5386set dummy $ac_prog; ac_word=$2
5387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5388$as_echo_n "checking for $ac_word... " >&6; }
5389if ${ac_cv_prog_ac_ct_AR+:} false; then :
5390  $as_echo_n "(cached) " >&6
5391else
5392  if test -n "$ac_ct_AR"; then
5393  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5394else
5395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396for as_dir in $PATH
5397do
5398  IFS=$as_save_IFS
5399  test -z "$as_dir" && as_dir=.
5400    for ac_exec_ext in '' $ac_executable_extensions; do
5401  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5402    ac_cv_prog_ac_ct_AR="$ac_prog"
5403    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5404    break 2
5405  fi
5406done
5407  done
5408IFS=$as_save_IFS
5409
5410fi
5411fi
5412ac_ct_AR=$ac_cv_prog_ac_ct_AR
5413if test -n "$ac_ct_AR"; then
5414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5415$as_echo "$ac_ct_AR" >&6; }
5416else
5417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5418$as_echo "no" >&6; }
5419fi
5420
5421
5422  test -n "$ac_ct_AR" && break
5423done
5424
5425  if test "x$ac_ct_AR" = x; then
5426    AR="false"
5427  else
5428    case $cross_compiling:$ac_tool_warned in
5429yes:)
5430{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5431$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5432ac_tool_warned=yes ;;
5433esac
5434    AR=$ac_ct_AR
5435  fi
5436fi
5437
5438: ${AR=ar}
5439: ${AR_FLAGS=cru}
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5452$as_echo_n "checking for archiver @FILE support... " >&6; }
5453if ${lt_cv_ar_at_file+:} false; then :
5454  $as_echo_n "(cached) " >&6
5455else
5456  lt_cv_ar_at_file=no
5457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458/* end confdefs.h.  */
5459
5460int
5461main ()
5462{
5463
5464  ;
5465  return 0;
5466}
5467_ACEOF
5468if ac_fn_c_try_compile "$LINENO"; then :
5469  echo conftest.$ac_objext > conftest.lst
5470      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5471      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5472  (eval $lt_ar_try) 2>&5
5473  ac_status=$?
5474  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5475  test $ac_status = 0; }
5476      if test "$ac_status" -eq 0; then
5477	# Ensure the archiver fails upon bogus file names.
5478	rm -f conftest.$ac_objext libconftest.a
5479	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5480  (eval $lt_ar_try) 2>&5
5481  ac_status=$?
5482  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5483  test $ac_status = 0; }
5484	if test "$ac_status" -ne 0; then
5485          lt_cv_ar_at_file=@
5486        fi
5487      fi
5488      rm -f conftest.* libconftest.a
5489
5490fi
5491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5492
5493fi
5494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5495$as_echo "$lt_cv_ar_at_file" >&6; }
5496
5497if test "x$lt_cv_ar_at_file" = xno; then
5498  archiver_list_spec=
5499else
5500  archiver_list_spec=$lt_cv_ar_at_file
5501fi
5502
5503
5504
5505
5506
5507
5508
5509if test -n "$ac_tool_prefix"; then
5510  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5511set dummy ${ac_tool_prefix}strip; ac_word=$2
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5513$as_echo_n "checking for $ac_word... " >&6; }
5514if ${ac_cv_prog_STRIP+:} false; then :
5515  $as_echo_n "(cached) " >&6
5516else
5517  if test -n "$STRIP"; then
5518  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5519else
5520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521for as_dir in $PATH
5522do
5523  IFS=$as_save_IFS
5524  test -z "$as_dir" && as_dir=.
5525    for ac_exec_ext in '' $ac_executable_extensions; do
5526  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5527    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5528    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5529    break 2
5530  fi
5531done
5532  done
5533IFS=$as_save_IFS
5534
5535fi
5536fi
5537STRIP=$ac_cv_prog_STRIP
5538if test -n "$STRIP"; then
5539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5540$as_echo "$STRIP" >&6; }
5541else
5542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543$as_echo "no" >&6; }
5544fi
5545
5546
5547fi
5548if test -z "$ac_cv_prog_STRIP"; then
5549  ac_ct_STRIP=$STRIP
5550  # Extract the first word of "strip", so it can be a program name with args.
5551set dummy strip; ac_word=$2
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5553$as_echo_n "checking for $ac_word... " >&6; }
5554if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5555  $as_echo_n "(cached) " >&6
5556else
5557  if test -n "$ac_ct_STRIP"; then
5558  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5559else
5560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561for as_dir in $PATH
5562do
5563  IFS=$as_save_IFS
5564  test -z "$as_dir" && as_dir=.
5565    for ac_exec_ext in '' $ac_executable_extensions; do
5566  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5567    ac_cv_prog_ac_ct_STRIP="strip"
5568    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5569    break 2
5570  fi
5571done
5572  done
5573IFS=$as_save_IFS
5574
5575fi
5576fi
5577ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5578if test -n "$ac_ct_STRIP"; then
5579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5580$as_echo "$ac_ct_STRIP" >&6; }
5581else
5582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5583$as_echo "no" >&6; }
5584fi
5585
5586  if test "x$ac_ct_STRIP" = x; then
5587    STRIP=":"
5588  else
5589    case $cross_compiling:$ac_tool_warned in
5590yes:)
5591{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5593ac_tool_warned=yes ;;
5594esac
5595    STRIP=$ac_ct_STRIP
5596  fi
5597else
5598  STRIP="$ac_cv_prog_STRIP"
5599fi
5600
5601test -z "$STRIP" && STRIP=:
5602
5603
5604
5605
5606
5607
5608if test -n "$ac_tool_prefix"; then
5609  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5610set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612$as_echo_n "checking for $ac_word... " >&6; }
5613if ${ac_cv_prog_RANLIB+:} false; then :
5614  $as_echo_n "(cached) " >&6
5615else
5616  if test -n "$RANLIB"; then
5617  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5618else
5619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620for as_dir in $PATH
5621do
5622  IFS=$as_save_IFS
5623  test -z "$as_dir" && as_dir=.
5624    for ac_exec_ext in '' $ac_executable_extensions; do
5625  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5626    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5627    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5628    break 2
5629  fi
5630done
5631  done
5632IFS=$as_save_IFS
5633
5634fi
5635fi
5636RANLIB=$ac_cv_prog_RANLIB
5637if test -n "$RANLIB"; then
5638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5639$as_echo "$RANLIB" >&6; }
5640else
5641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642$as_echo "no" >&6; }
5643fi
5644
5645
5646fi
5647if test -z "$ac_cv_prog_RANLIB"; then
5648  ac_ct_RANLIB=$RANLIB
5649  # Extract the first word of "ranlib", so it can be a program name with args.
5650set dummy ranlib; ac_word=$2
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5652$as_echo_n "checking for $ac_word... " >&6; }
5653if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5654  $as_echo_n "(cached) " >&6
5655else
5656  if test -n "$ac_ct_RANLIB"; then
5657  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5658else
5659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660for as_dir in $PATH
5661do
5662  IFS=$as_save_IFS
5663  test -z "$as_dir" && as_dir=.
5664    for ac_exec_ext in '' $ac_executable_extensions; do
5665  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5666    ac_cv_prog_ac_ct_RANLIB="ranlib"
5667    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5668    break 2
5669  fi
5670done
5671  done
5672IFS=$as_save_IFS
5673
5674fi
5675fi
5676ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5677if test -n "$ac_ct_RANLIB"; then
5678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5679$as_echo "$ac_ct_RANLIB" >&6; }
5680else
5681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5682$as_echo "no" >&6; }
5683fi
5684
5685  if test "x$ac_ct_RANLIB" = x; then
5686    RANLIB=":"
5687  else
5688    case $cross_compiling:$ac_tool_warned in
5689yes:)
5690{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5691$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5692ac_tool_warned=yes ;;
5693esac
5694    RANLIB=$ac_ct_RANLIB
5695  fi
5696else
5697  RANLIB="$ac_cv_prog_RANLIB"
5698fi
5699
5700test -z "$RANLIB" && RANLIB=:
5701
5702
5703
5704
5705
5706
5707# Determine commands to create old-style static archives.
5708old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5709old_postinstall_cmds='chmod 644 $oldlib'
5710old_postuninstall_cmds=
5711
5712if test -n "$RANLIB"; then
5713  case $host_os in
5714  openbsd*)
5715    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5716    ;;
5717  *)
5718    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5719    ;;
5720  esac
5721  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5722fi
5723
5724case $host_os in
5725  darwin*)
5726    lock_old_archive_extraction=yes ;;
5727  *)
5728    lock_old_archive_extraction=no ;;
5729esac
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769# If no C compiler was specified, use CC.
5770LTCC=${LTCC-"$CC"}
5771
5772# If no C compiler flags were specified, use CFLAGS.
5773LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5774
5775# Allow CC to be a program name with arguments.
5776compiler=$CC
5777
5778
5779# Check for command to grab the raw symbol name followed by C symbol from nm.
5780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5781$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5782if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5783  $as_echo_n "(cached) " >&6
5784else
5785
5786# These are sane defaults that work on at least a few old systems.
5787# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5788
5789# Character class describing NM global symbol codes.
5790symcode='[BCDEGRST]'
5791
5792# Regexp to match symbols that can be accessed directly from C.
5793sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5794
5795# Define system-specific variables.
5796case $host_os in
5797aix*)
5798  symcode='[BCDT]'
5799  ;;
5800cygwin* | mingw* | pw32* | cegcc*)
5801  symcode='[ABCDGISTW]'
5802  ;;
5803hpux*)
5804  if test "$host_cpu" = ia64; then
5805    symcode='[ABCDEGRST]'
5806  fi
5807  ;;
5808irix* | nonstopux*)
5809  symcode='[BCDEGRST]'
5810  ;;
5811osf*)
5812  symcode='[BCDEGQRST]'
5813  ;;
5814solaris*)
5815  symcode='[BDRT]'
5816  ;;
5817sco3.2v5*)
5818  symcode='[DT]'
5819  ;;
5820sysv4.2uw2*)
5821  symcode='[DT]'
5822  ;;
5823sysv5* | sco5v6* | unixware* | OpenUNIX*)
5824  symcode='[ABDT]'
5825  ;;
5826sysv4)
5827  symcode='[DFNSTU]'
5828  ;;
5829esac
5830
5831# If we're using GNU nm, then use its standard symbol codes.
5832case `$NM -V 2>&1` in
5833*GNU* | *'with BFD'*)
5834  symcode='[ABCDGIRSTW]' ;;
5835esac
5836
5837# Transform an extracted symbol line into a proper C declaration.
5838# Some systems (esp. on ia64) link data and code symbols differently,
5839# so use this general approach.
5840lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5841
5842# Transform an extracted symbol line into symbol name and symbol address
5843lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5844lt_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'"
5845
5846# Handle CRLF in mingw tool chain
5847opt_cr=
5848case $build_os in
5849mingw*)
5850  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5851  ;;
5852esac
5853
5854# Try without a prefix underscore, then with it.
5855for ac_symprfx in "" "_"; do
5856
5857  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5858  symxfrm="\\1 $ac_symprfx\\2 \\2"
5859
5860  # Write the raw and C identifiers.
5861  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5862    # Fake it for dumpbin and say T for any non-static function
5863    # and D for any global variable.
5864    # Also find C++ and __fastcall symbols from MSVC++,
5865    # which start with @ or ?.
5866    lt_cv_sys_global_symbol_pipe="$AWK '"\
5867"     {last_section=section; section=\$ 3};"\
5868"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5869"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5870"     \$ 0!~/External *\|/{next};"\
5871"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5872"     {if(hide[section]) next};"\
5873"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5874"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5875"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5876"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5877"     ' prfx=^$ac_symprfx"
5878  else
5879    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5880  fi
5881  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5882
5883  # Check to see that the pipe works correctly.
5884  pipe_works=no
5885
5886  rm -f conftest*
5887  cat > conftest.$ac_ext <<_LT_EOF
5888#ifdef __cplusplus
5889extern "C" {
5890#endif
5891char nm_test_var;
5892void nm_test_func(void);
5893void nm_test_func(void){}
5894#ifdef __cplusplus
5895}
5896#endif
5897int main(){nm_test_var='a';nm_test_func();return(0);}
5898_LT_EOF
5899
5900  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5901  (eval $ac_compile) 2>&5
5902  ac_status=$?
5903  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5904  test $ac_status = 0; }; then
5905    # Now try to grab the symbols.
5906    nlist=conftest.nm
5907    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5908  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5909  ac_status=$?
5910  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5911  test $ac_status = 0; } && test -s "$nlist"; then
5912      # Try sorting and uniquifying the output.
5913      if sort "$nlist" | uniq > "$nlist"T; then
5914	mv -f "$nlist"T "$nlist"
5915      else
5916	rm -f "$nlist"T
5917      fi
5918
5919      # Make sure that we snagged all the symbols we need.
5920      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5921	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5922	  cat <<_LT_EOF > conftest.$ac_ext
5923/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5924#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5925/* DATA imports from DLLs on WIN32 con't be const, because runtime
5926   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5927# define LT_DLSYM_CONST
5928#elif defined(__osf__)
5929/* This system does not cope well with relocations in const data.  */
5930# define LT_DLSYM_CONST
5931#else
5932# define LT_DLSYM_CONST const
5933#endif
5934
5935#ifdef __cplusplus
5936extern "C" {
5937#endif
5938
5939_LT_EOF
5940	  # Now generate the symbol file.
5941	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5942
5943	  cat <<_LT_EOF >> conftest.$ac_ext
5944
5945/* The mapping between symbol names and symbols.  */
5946LT_DLSYM_CONST struct {
5947  const char *name;
5948  void       *address;
5949}
5950lt__PROGRAM__LTX_preloaded_symbols[] =
5951{
5952  { "@PROGRAM@", (void *) 0 },
5953_LT_EOF
5954	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5955	  cat <<\_LT_EOF >> conftest.$ac_ext
5956  {0, (void *) 0}
5957};
5958
5959/* This works around a problem in FreeBSD linker */
5960#ifdef FREEBSD_WORKAROUND
5961static const void *lt_preloaded_setup() {
5962  return lt__PROGRAM__LTX_preloaded_symbols;
5963}
5964#endif
5965
5966#ifdef __cplusplus
5967}
5968#endif
5969_LT_EOF
5970	  # Now try linking the two files.
5971	  mv conftest.$ac_objext conftstm.$ac_objext
5972	  lt_globsym_save_LIBS=$LIBS
5973	  lt_globsym_save_CFLAGS=$CFLAGS
5974	  LIBS="conftstm.$ac_objext"
5975	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5976	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5977  (eval $ac_link) 2>&5
5978  ac_status=$?
5979  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5980  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5981	    pipe_works=yes
5982	  fi
5983	  LIBS=$lt_globsym_save_LIBS
5984	  CFLAGS=$lt_globsym_save_CFLAGS
5985	else
5986	  echo "cannot find nm_test_func in $nlist" >&5
5987	fi
5988      else
5989	echo "cannot find nm_test_var in $nlist" >&5
5990      fi
5991    else
5992      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5993    fi
5994  else
5995    echo "$progname: failed program was:" >&5
5996    cat conftest.$ac_ext >&5
5997  fi
5998  rm -rf conftest* conftst*
5999
6000  # Do not use the global_symbol_pipe unless it works.
6001  if test "$pipe_works" = yes; then
6002    break
6003  else
6004    lt_cv_sys_global_symbol_pipe=
6005  fi
6006done
6007
6008fi
6009
6010if test -z "$lt_cv_sys_global_symbol_pipe"; then
6011  lt_cv_sys_global_symbol_to_cdecl=
6012fi
6013if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6015$as_echo "failed" >&6; }
6016else
6017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6018$as_echo "ok" >&6; }
6019fi
6020
6021# Response file support.
6022if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6023  nm_file_list_spec='@'
6024elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6025  nm_file_list_spec='@'
6026fi
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6055$as_echo_n "checking for sysroot... " >&6; }
6056
6057# Check whether --with-sysroot was given.
6058if test "${with_sysroot+set}" = set; then :
6059  withval=$with_sysroot;
6060else
6061  with_sysroot=no
6062fi
6063
6064
6065lt_sysroot=
6066case ${with_sysroot} in #(
6067 yes)
6068   if test "$GCC" = yes; then
6069     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6070   fi
6071   ;; #(
6072 /*)
6073   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6074   ;; #(
6075 no|'')
6076   ;; #(
6077 *)
6078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6079$as_echo "${with_sysroot}" >&6; }
6080   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6081   ;;
6082esac
6083
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6085$as_echo "${lt_sysroot:-no}" >&6; }
6086
6087
6088
6089
6090
6091# Check whether --enable-libtool-lock was given.
6092if test "${enable_libtool_lock+set}" = set; then :
6093  enableval=$enable_libtool_lock;
6094fi
6095
6096test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6097
6098# Some flags need to be propagated to the compiler or linker for good
6099# libtool support.
6100case $host in
6101ia64-*-hpux*)
6102  # Find out which ABI we are using.
6103  echo 'int i;' > conftest.$ac_ext
6104  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6105  (eval $ac_compile) 2>&5
6106  ac_status=$?
6107  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6108  test $ac_status = 0; }; then
6109    case `/usr/bin/file conftest.$ac_objext` in
6110      *ELF-32*)
6111	HPUX_IA64_MODE="32"
6112	;;
6113      *ELF-64*)
6114	HPUX_IA64_MODE="64"
6115	;;
6116    esac
6117  fi
6118  rm -rf conftest*
6119  ;;
6120*-*-irix6*)
6121  # Find out which ABI we are using.
6122  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6123  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6124  (eval $ac_compile) 2>&5
6125  ac_status=$?
6126  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6127  test $ac_status = 0; }; then
6128    if test "$lt_cv_prog_gnu_ld" = yes; then
6129      case `/usr/bin/file conftest.$ac_objext` in
6130	*32-bit*)
6131	  LD="${LD-ld} -melf32bsmip"
6132	  ;;
6133	*N32*)
6134	  LD="${LD-ld} -melf32bmipn32"
6135	  ;;
6136	*64-bit*)
6137	  LD="${LD-ld} -melf64bmip"
6138	;;
6139      esac
6140    else
6141      case `/usr/bin/file conftest.$ac_objext` in
6142	*32-bit*)
6143	  LD="${LD-ld} -32"
6144	  ;;
6145	*N32*)
6146	  LD="${LD-ld} -n32"
6147	  ;;
6148	*64-bit*)
6149	  LD="${LD-ld} -64"
6150	  ;;
6151      esac
6152    fi
6153  fi
6154  rm -rf conftest*
6155  ;;
6156
6157x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6158s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6159  # Find out which ABI we are using.
6160  echo 'int i;' > conftest.$ac_ext
6161  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6162  (eval $ac_compile) 2>&5
6163  ac_status=$?
6164  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6165  test $ac_status = 0; }; then
6166    case `/usr/bin/file conftest.o` in
6167      *32-bit*)
6168	case $host in
6169	  x86_64-*kfreebsd*-gnu)
6170	    LD="${LD-ld} -m elf_i386_fbsd"
6171	    ;;
6172	  x86_64-*linux*)
6173	    LD="${LD-ld} -m elf_i386"
6174	    ;;
6175	  ppc64-*linux*|powerpc64-*linux*)
6176	    LD="${LD-ld} -m elf32ppclinux"
6177	    ;;
6178	  s390x-*linux*)
6179	    LD="${LD-ld} -m elf_s390"
6180	    ;;
6181	  sparc64-*linux*)
6182	    LD="${LD-ld} -m elf32_sparc"
6183	    ;;
6184	esac
6185	;;
6186      *64-bit*)
6187	case $host in
6188	  x86_64-*kfreebsd*-gnu)
6189	    LD="${LD-ld} -m elf_x86_64_fbsd"
6190	    ;;
6191	  x86_64-*linux*)
6192	    LD="${LD-ld} -m elf_x86_64"
6193	    ;;
6194	  ppc*-*linux*|powerpc*-*linux*)
6195	    LD="${LD-ld} -m elf64ppc"
6196	    ;;
6197	  s390*-*linux*|s390*-*tpf*)
6198	    LD="${LD-ld} -m elf64_s390"
6199	    ;;
6200	  sparc*-*linux*)
6201	    LD="${LD-ld} -m elf64_sparc"
6202	    ;;
6203	esac
6204	;;
6205    esac
6206  fi
6207  rm -rf conftest*
6208  ;;
6209
6210*-*-sco3.2v5*)
6211  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6212  SAVE_CFLAGS="$CFLAGS"
6213  CFLAGS="$CFLAGS -belf"
6214  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6215$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6216if ${lt_cv_cc_needs_belf+:} false; then :
6217  $as_echo_n "(cached) " >&6
6218else
6219  ac_ext=c
6220ac_cpp='$CPP $CPPFLAGS'
6221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6223ac_compiler_gnu=$ac_cv_c_compiler_gnu
6224
6225     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6226/* end confdefs.h.  */
6227
6228int
6229main ()
6230{
6231
6232  ;
6233  return 0;
6234}
6235_ACEOF
6236if ac_fn_c_try_link "$LINENO"; then :
6237  lt_cv_cc_needs_belf=yes
6238else
6239  lt_cv_cc_needs_belf=no
6240fi
6241rm -f core conftest.err conftest.$ac_objext \
6242    conftest$ac_exeext conftest.$ac_ext
6243     ac_ext=c
6244ac_cpp='$CPP $CPPFLAGS'
6245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6247ac_compiler_gnu=$ac_cv_c_compiler_gnu
6248
6249fi
6250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6251$as_echo "$lt_cv_cc_needs_belf" >&6; }
6252  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6253    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6254    CFLAGS="$SAVE_CFLAGS"
6255  fi
6256  ;;
6257*-*solaris*)
6258  # Find out which ABI we are using.
6259  echo 'int i;' > conftest.$ac_ext
6260  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6261  (eval $ac_compile) 2>&5
6262  ac_status=$?
6263  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6264  test $ac_status = 0; }; then
6265    case `/usr/bin/file conftest.o` in
6266    *64-bit*)
6267      case $lt_cv_prog_gnu_ld in
6268      yes*)
6269        case $host in
6270        i?86-*-solaris*)
6271          LD="${LD-ld} -m elf_x86_64"
6272          ;;
6273        sparc*-*-solaris*)
6274          LD="${LD-ld} -m elf64_sparc"
6275          ;;
6276        esac
6277        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6278        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6279          LD="${LD-ld}_sol2"
6280        fi
6281        ;;
6282      *)
6283	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6284	  LD="${LD-ld} -64"
6285	fi
6286	;;
6287      esac
6288      ;;
6289    esac
6290  fi
6291  rm -rf conftest*
6292  ;;
6293esac
6294
6295need_locks="$enable_libtool_lock"
6296
6297if test -n "$ac_tool_prefix"; then
6298  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6299set dummy ${ac_tool_prefix}mt; ac_word=$2
6300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6301$as_echo_n "checking for $ac_word... " >&6; }
6302if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6303  $as_echo_n "(cached) " >&6
6304else
6305  if test -n "$MANIFEST_TOOL"; then
6306  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6307else
6308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309for as_dir in $PATH
6310do
6311  IFS=$as_save_IFS
6312  test -z "$as_dir" && as_dir=.
6313    for ac_exec_ext in '' $ac_executable_extensions; do
6314  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6315    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6316    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6317    break 2
6318  fi
6319done
6320  done
6321IFS=$as_save_IFS
6322
6323fi
6324fi
6325MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6326if test -n "$MANIFEST_TOOL"; then
6327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6328$as_echo "$MANIFEST_TOOL" >&6; }
6329else
6330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6331$as_echo "no" >&6; }
6332fi
6333
6334
6335fi
6336if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6337  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6338  # Extract the first word of "mt", so it can be a program name with args.
6339set dummy mt; ac_word=$2
6340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6341$as_echo_n "checking for $ac_word... " >&6; }
6342if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6343  $as_echo_n "(cached) " >&6
6344else
6345  if test -n "$ac_ct_MANIFEST_TOOL"; then
6346  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6347else
6348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349for as_dir in $PATH
6350do
6351  IFS=$as_save_IFS
6352  test -z "$as_dir" && as_dir=.
6353    for ac_exec_ext in '' $ac_executable_extensions; do
6354  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6355    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6356    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6357    break 2
6358  fi
6359done
6360  done
6361IFS=$as_save_IFS
6362
6363fi
6364fi
6365ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6366if test -n "$ac_ct_MANIFEST_TOOL"; then
6367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6368$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6369else
6370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6371$as_echo "no" >&6; }
6372fi
6373
6374  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6375    MANIFEST_TOOL=":"
6376  else
6377    case $cross_compiling:$ac_tool_warned in
6378yes:)
6379{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6381ac_tool_warned=yes ;;
6382esac
6383    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6384  fi
6385else
6386  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6387fi
6388
6389test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6391$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6392if ${lt_cv_path_mainfest_tool+:} false; then :
6393  $as_echo_n "(cached) " >&6
6394else
6395  lt_cv_path_mainfest_tool=no
6396  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6397  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6398  cat conftest.err >&5
6399  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6400    lt_cv_path_mainfest_tool=yes
6401  fi
6402  rm -f conftest*
6403fi
6404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6405$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6406if test "x$lt_cv_path_mainfest_tool" != xyes; then
6407  MANIFEST_TOOL=:
6408fi
6409
6410
6411
6412
6413
6414
6415  case $host_os in
6416    rhapsody* | darwin*)
6417    if test -n "$ac_tool_prefix"; then
6418  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6419set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6421$as_echo_n "checking for $ac_word... " >&6; }
6422if ${ac_cv_prog_DSYMUTIL+:} false; then :
6423  $as_echo_n "(cached) " >&6
6424else
6425  if test -n "$DSYMUTIL"; then
6426  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6427else
6428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429for as_dir in $PATH
6430do
6431  IFS=$as_save_IFS
6432  test -z "$as_dir" && as_dir=.
6433    for ac_exec_ext in '' $ac_executable_extensions; do
6434  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6435    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6436    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6437    break 2
6438  fi
6439done
6440  done
6441IFS=$as_save_IFS
6442
6443fi
6444fi
6445DSYMUTIL=$ac_cv_prog_DSYMUTIL
6446if test -n "$DSYMUTIL"; then
6447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6448$as_echo "$DSYMUTIL" >&6; }
6449else
6450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6451$as_echo "no" >&6; }
6452fi
6453
6454
6455fi
6456if test -z "$ac_cv_prog_DSYMUTIL"; then
6457  ac_ct_DSYMUTIL=$DSYMUTIL
6458  # Extract the first word of "dsymutil", so it can be a program name with args.
6459set dummy dsymutil; ac_word=$2
6460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6461$as_echo_n "checking for $ac_word... " >&6; }
6462if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6463  $as_echo_n "(cached) " >&6
6464else
6465  if test -n "$ac_ct_DSYMUTIL"; then
6466  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6467else
6468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469for as_dir in $PATH
6470do
6471  IFS=$as_save_IFS
6472  test -z "$as_dir" && as_dir=.
6473    for ac_exec_ext in '' $ac_executable_extensions; do
6474  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6475    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6476    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6477    break 2
6478  fi
6479done
6480  done
6481IFS=$as_save_IFS
6482
6483fi
6484fi
6485ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6486if test -n "$ac_ct_DSYMUTIL"; then
6487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6488$as_echo "$ac_ct_DSYMUTIL" >&6; }
6489else
6490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6491$as_echo "no" >&6; }
6492fi
6493
6494  if test "x$ac_ct_DSYMUTIL" = x; then
6495    DSYMUTIL=":"
6496  else
6497    case $cross_compiling:$ac_tool_warned in
6498yes:)
6499{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6500$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6501ac_tool_warned=yes ;;
6502esac
6503    DSYMUTIL=$ac_ct_DSYMUTIL
6504  fi
6505else
6506  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6507fi
6508
6509    if test -n "$ac_tool_prefix"; then
6510  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6511set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513$as_echo_n "checking for $ac_word... " >&6; }
6514if ${ac_cv_prog_NMEDIT+:} false; then :
6515  $as_echo_n "(cached) " >&6
6516else
6517  if test -n "$NMEDIT"; then
6518  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6519else
6520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521for as_dir in $PATH
6522do
6523  IFS=$as_save_IFS
6524  test -z "$as_dir" && as_dir=.
6525    for ac_exec_ext in '' $ac_executable_extensions; do
6526  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6527    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6528    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6529    break 2
6530  fi
6531done
6532  done
6533IFS=$as_save_IFS
6534
6535fi
6536fi
6537NMEDIT=$ac_cv_prog_NMEDIT
6538if test -n "$NMEDIT"; then
6539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6540$as_echo "$NMEDIT" >&6; }
6541else
6542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543$as_echo "no" >&6; }
6544fi
6545
6546
6547fi
6548if test -z "$ac_cv_prog_NMEDIT"; then
6549  ac_ct_NMEDIT=$NMEDIT
6550  # Extract the first word of "nmedit", so it can be a program name with args.
6551set dummy nmedit; ac_word=$2
6552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6553$as_echo_n "checking for $ac_word... " >&6; }
6554if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6555  $as_echo_n "(cached) " >&6
6556else
6557  if test -n "$ac_ct_NMEDIT"; then
6558  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6559else
6560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561for as_dir in $PATH
6562do
6563  IFS=$as_save_IFS
6564  test -z "$as_dir" && as_dir=.
6565    for ac_exec_ext in '' $ac_executable_extensions; do
6566  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6567    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6568    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6569    break 2
6570  fi
6571done
6572  done
6573IFS=$as_save_IFS
6574
6575fi
6576fi
6577ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6578if test -n "$ac_ct_NMEDIT"; then
6579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6580$as_echo "$ac_ct_NMEDIT" >&6; }
6581else
6582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6583$as_echo "no" >&6; }
6584fi
6585
6586  if test "x$ac_ct_NMEDIT" = x; then
6587    NMEDIT=":"
6588  else
6589    case $cross_compiling:$ac_tool_warned in
6590yes:)
6591{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6593ac_tool_warned=yes ;;
6594esac
6595    NMEDIT=$ac_ct_NMEDIT
6596  fi
6597else
6598  NMEDIT="$ac_cv_prog_NMEDIT"
6599fi
6600
6601    if test -n "$ac_tool_prefix"; then
6602  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6603set dummy ${ac_tool_prefix}lipo; ac_word=$2
6604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6605$as_echo_n "checking for $ac_word... " >&6; }
6606if ${ac_cv_prog_LIPO+:} false; then :
6607  $as_echo_n "(cached) " >&6
6608else
6609  if test -n "$LIPO"; then
6610  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6611else
6612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613for as_dir in $PATH
6614do
6615  IFS=$as_save_IFS
6616  test -z "$as_dir" && as_dir=.
6617    for ac_exec_ext in '' $ac_executable_extensions; do
6618  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6619    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6620    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6621    break 2
6622  fi
6623done
6624  done
6625IFS=$as_save_IFS
6626
6627fi
6628fi
6629LIPO=$ac_cv_prog_LIPO
6630if test -n "$LIPO"; then
6631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6632$as_echo "$LIPO" >&6; }
6633else
6634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6635$as_echo "no" >&6; }
6636fi
6637
6638
6639fi
6640if test -z "$ac_cv_prog_LIPO"; then
6641  ac_ct_LIPO=$LIPO
6642  # Extract the first word of "lipo", so it can be a program name with args.
6643set dummy lipo; ac_word=$2
6644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6645$as_echo_n "checking for $ac_word... " >&6; }
6646if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6647  $as_echo_n "(cached) " >&6
6648else
6649  if test -n "$ac_ct_LIPO"; then
6650  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6651else
6652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653for as_dir in $PATH
6654do
6655  IFS=$as_save_IFS
6656  test -z "$as_dir" && as_dir=.
6657    for ac_exec_ext in '' $ac_executable_extensions; do
6658  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6659    ac_cv_prog_ac_ct_LIPO="lipo"
6660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6661    break 2
6662  fi
6663done
6664  done
6665IFS=$as_save_IFS
6666
6667fi
6668fi
6669ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6670if test -n "$ac_ct_LIPO"; then
6671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6672$as_echo "$ac_ct_LIPO" >&6; }
6673else
6674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6675$as_echo "no" >&6; }
6676fi
6677
6678  if test "x$ac_ct_LIPO" = x; then
6679    LIPO=":"
6680  else
6681    case $cross_compiling:$ac_tool_warned in
6682yes:)
6683{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6685ac_tool_warned=yes ;;
6686esac
6687    LIPO=$ac_ct_LIPO
6688  fi
6689else
6690  LIPO="$ac_cv_prog_LIPO"
6691fi
6692
6693    if test -n "$ac_tool_prefix"; then
6694  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6695set dummy ${ac_tool_prefix}otool; ac_word=$2
6696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6697$as_echo_n "checking for $ac_word... " >&6; }
6698if ${ac_cv_prog_OTOOL+:} false; then :
6699  $as_echo_n "(cached) " >&6
6700else
6701  if test -n "$OTOOL"; then
6702  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6703else
6704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705for as_dir in $PATH
6706do
6707  IFS=$as_save_IFS
6708  test -z "$as_dir" && as_dir=.
6709    for ac_exec_ext in '' $ac_executable_extensions; do
6710  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6711    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6712    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6713    break 2
6714  fi
6715done
6716  done
6717IFS=$as_save_IFS
6718
6719fi
6720fi
6721OTOOL=$ac_cv_prog_OTOOL
6722if test -n "$OTOOL"; then
6723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6724$as_echo "$OTOOL" >&6; }
6725else
6726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6727$as_echo "no" >&6; }
6728fi
6729
6730
6731fi
6732if test -z "$ac_cv_prog_OTOOL"; then
6733  ac_ct_OTOOL=$OTOOL
6734  # Extract the first word of "otool", so it can be a program name with args.
6735set dummy otool; ac_word=$2
6736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6737$as_echo_n "checking for $ac_word... " >&6; }
6738if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6739  $as_echo_n "(cached) " >&6
6740else
6741  if test -n "$ac_ct_OTOOL"; then
6742  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6743else
6744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745for as_dir in $PATH
6746do
6747  IFS=$as_save_IFS
6748  test -z "$as_dir" && as_dir=.
6749    for ac_exec_ext in '' $ac_executable_extensions; do
6750  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6751    ac_cv_prog_ac_ct_OTOOL="otool"
6752    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6753    break 2
6754  fi
6755done
6756  done
6757IFS=$as_save_IFS
6758
6759fi
6760fi
6761ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6762if test -n "$ac_ct_OTOOL"; then
6763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6764$as_echo "$ac_ct_OTOOL" >&6; }
6765else
6766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6767$as_echo "no" >&6; }
6768fi
6769
6770  if test "x$ac_ct_OTOOL" = x; then
6771    OTOOL=":"
6772  else
6773    case $cross_compiling:$ac_tool_warned in
6774yes:)
6775{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6776$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6777ac_tool_warned=yes ;;
6778esac
6779    OTOOL=$ac_ct_OTOOL
6780  fi
6781else
6782  OTOOL="$ac_cv_prog_OTOOL"
6783fi
6784
6785    if test -n "$ac_tool_prefix"; then
6786  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6787set dummy ${ac_tool_prefix}otool64; ac_word=$2
6788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6789$as_echo_n "checking for $ac_word... " >&6; }
6790if ${ac_cv_prog_OTOOL64+:} false; then :
6791  $as_echo_n "(cached) " >&6
6792else
6793  if test -n "$OTOOL64"; then
6794  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6795else
6796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797for as_dir in $PATH
6798do
6799  IFS=$as_save_IFS
6800  test -z "$as_dir" && as_dir=.
6801    for ac_exec_ext in '' $ac_executable_extensions; do
6802  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6803    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6804    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6805    break 2
6806  fi
6807done
6808  done
6809IFS=$as_save_IFS
6810
6811fi
6812fi
6813OTOOL64=$ac_cv_prog_OTOOL64
6814if test -n "$OTOOL64"; then
6815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6816$as_echo "$OTOOL64" >&6; }
6817else
6818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6819$as_echo "no" >&6; }
6820fi
6821
6822
6823fi
6824if test -z "$ac_cv_prog_OTOOL64"; then
6825  ac_ct_OTOOL64=$OTOOL64
6826  # Extract the first word of "otool64", so it can be a program name with args.
6827set dummy otool64; ac_word=$2
6828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6829$as_echo_n "checking for $ac_word... " >&6; }
6830if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6831  $as_echo_n "(cached) " >&6
6832else
6833  if test -n "$ac_ct_OTOOL64"; then
6834  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6835else
6836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837for as_dir in $PATH
6838do
6839  IFS=$as_save_IFS
6840  test -z "$as_dir" && as_dir=.
6841    for ac_exec_ext in '' $ac_executable_extensions; do
6842  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6843    ac_cv_prog_ac_ct_OTOOL64="otool64"
6844    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6845    break 2
6846  fi
6847done
6848  done
6849IFS=$as_save_IFS
6850
6851fi
6852fi
6853ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6854if test -n "$ac_ct_OTOOL64"; then
6855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6856$as_echo "$ac_ct_OTOOL64" >&6; }
6857else
6858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6859$as_echo "no" >&6; }
6860fi
6861
6862  if test "x$ac_ct_OTOOL64" = x; then
6863    OTOOL64=":"
6864  else
6865    case $cross_compiling:$ac_tool_warned in
6866yes:)
6867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6869ac_tool_warned=yes ;;
6870esac
6871    OTOOL64=$ac_ct_OTOOL64
6872  fi
6873else
6874  OTOOL64="$ac_cv_prog_OTOOL64"
6875fi
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6904$as_echo_n "checking for -single_module linker flag... " >&6; }
6905if ${lt_cv_apple_cc_single_mod+:} false; then :
6906  $as_echo_n "(cached) " >&6
6907else
6908  lt_cv_apple_cc_single_mod=no
6909      if test -z "${LT_MULTI_MODULE}"; then
6910	# By default we will add the -single_module flag. You can override
6911	# by either setting the environment variable LT_MULTI_MODULE
6912	# non-empty at configure time, or by adding -multi_module to the
6913	# link flags.
6914	rm -rf libconftest.dylib*
6915	echo "int foo(void){return 1;}" > conftest.c
6916	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6917-dynamiclib -Wl,-single_module conftest.c" >&5
6918	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6919	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6920        _lt_result=$?
6921	# If there is a non-empty error log, and "single_module"
6922	# appears in it, assume the flag caused a linker warning
6923        if test -s conftest.err && $GREP single_module conftest.err; then
6924	  cat conftest.err >&5
6925	# Otherwise, if the output was created with a 0 exit code from
6926	# the compiler, it worked.
6927	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6928	  lt_cv_apple_cc_single_mod=yes
6929	else
6930	  cat conftest.err >&5
6931	fi
6932	rm -rf libconftest.dylib*
6933	rm -f conftest.*
6934      fi
6935fi
6936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6937$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6938
6939    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6940$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6941if ${lt_cv_ld_exported_symbols_list+:} false; then :
6942  $as_echo_n "(cached) " >&6
6943else
6944  lt_cv_ld_exported_symbols_list=no
6945      save_LDFLAGS=$LDFLAGS
6946      echo "_main" > conftest.sym
6947      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6948      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949/* end confdefs.h.  */
6950
6951int
6952main ()
6953{
6954
6955  ;
6956  return 0;
6957}
6958_ACEOF
6959if ac_fn_c_try_link "$LINENO"; then :
6960  lt_cv_ld_exported_symbols_list=yes
6961else
6962  lt_cv_ld_exported_symbols_list=no
6963fi
6964rm -f core conftest.err conftest.$ac_objext \
6965    conftest$ac_exeext conftest.$ac_ext
6966	LDFLAGS="$save_LDFLAGS"
6967
6968fi
6969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6970$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6971
6972    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6973$as_echo_n "checking for -force_load linker flag... " >&6; }
6974if ${lt_cv_ld_force_load+:} false; then :
6975  $as_echo_n "(cached) " >&6
6976else
6977  lt_cv_ld_force_load=no
6978      cat > conftest.c << _LT_EOF
6979int forced_loaded() { return 2;}
6980_LT_EOF
6981      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6982      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6983      echo "$AR cru libconftest.a conftest.o" >&5
6984      $AR cru libconftest.a conftest.o 2>&5
6985      echo "$RANLIB libconftest.a" >&5
6986      $RANLIB libconftest.a 2>&5
6987      cat > conftest.c << _LT_EOF
6988int main() { return 0;}
6989_LT_EOF
6990      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6991      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6992      _lt_result=$?
6993      if test -s conftest.err && $GREP force_load conftest.err; then
6994	cat conftest.err >&5
6995      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6996	lt_cv_ld_force_load=yes
6997      else
6998	cat conftest.err >&5
6999      fi
7000        rm -f conftest.err libconftest.a conftest conftest.c
7001        rm -rf conftest.dSYM
7002
7003fi
7004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7005$as_echo "$lt_cv_ld_force_load" >&6; }
7006    case $host_os in
7007    rhapsody* | darwin1.[012])
7008      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7009    darwin1.*)
7010      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7011    darwin*) # darwin 5.x on
7012      # if running on 10.5 or later, the deployment target defaults
7013      # to the OS version, if on x86, and 10.4, the deployment
7014      # target defaults to 10.4. Don't you love it?
7015      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7016	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7017	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7018	10.[012]*)
7019	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7020	10.*)
7021	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7022      esac
7023    ;;
7024  esac
7025    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7026      _lt_dar_single_mod='$single_module'
7027    fi
7028    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7029      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7030    else
7031      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7032    fi
7033    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7034      _lt_dsymutil='~$DSYMUTIL $lib || :'
7035    else
7036      _lt_dsymutil=
7037    fi
7038    ;;
7039  esac
7040
7041ac_ext=c
7042ac_cpp='$CPP $CPPFLAGS'
7043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7045ac_compiler_gnu=$ac_cv_c_compiler_gnu
7046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7047$as_echo_n "checking how to run the C preprocessor... " >&6; }
7048# On Suns, sometimes $CPP names a directory.
7049if test -n "$CPP" && test -d "$CPP"; then
7050  CPP=
7051fi
7052if test -z "$CPP"; then
7053  if ${ac_cv_prog_CPP+:} false; then :
7054  $as_echo_n "(cached) " >&6
7055else
7056      # Double quotes because CPP needs to be expanded
7057    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7058    do
7059      ac_preproc_ok=false
7060for ac_c_preproc_warn_flag in '' yes
7061do
7062  # Use a header file that comes with gcc, so configuring glibc
7063  # with a fresh cross-compiler works.
7064  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7065  # <limits.h> exists even on freestanding compilers.
7066  # On the NeXT, cc -E runs the code through the compiler's parser,
7067  # not just through cpp. "Syntax error" is here to catch this case.
7068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069/* end confdefs.h.  */
7070#ifdef __STDC__
7071# include <limits.h>
7072#else
7073# include <assert.h>
7074#endif
7075		     Syntax error
7076_ACEOF
7077if ac_fn_c_try_cpp "$LINENO"; then :
7078
7079else
7080  # Broken: fails on valid input.
7081continue
7082fi
7083rm -f conftest.err conftest.i conftest.$ac_ext
7084
7085  # OK, works on sane cases.  Now check whether nonexistent headers
7086  # can be detected and how.
7087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7088/* end confdefs.h.  */
7089#include <ac_nonexistent.h>
7090_ACEOF
7091if ac_fn_c_try_cpp "$LINENO"; then :
7092  # Broken: success on invalid input.
7093continue
7094else
7095  # Passes both tests.
7096ac_preproc_ok=:
7097break
7098fi
7099rm -f conftest.err conftest.i conftest.$ac_ext
7100
7101done
7102# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7103rm -f conftest.i conftest.err conftest.$ac_ext
7104if $ac_preproc_ok; then :
7105  break
7106fi
7107
7108    done
7109    ac_cv_prog_CPP=$CPP
7110
7111fi
7112  CPP=$ac_cv_prog_CPP
7113else
7114  ac_cv_prog_CPP=$CPP
7115fi
7116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7117$as_echo "$CPP" >&6; }
7118ac_preproc_ok=false
7119for ac_c_preproc_warn_flag in '' yes
7120do
7121  # Use a header file that comes with gcc, so configuring glibc
7122  # with a fresh cross-compiler works.
7123  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7124  # <limits.h> exists even on freestanding compilers.
7125  # On the NeXT, cc -E runs the code through the compiler's parser,
7126  # not just through cpp. "Syntax error" is here to catch this case.
7127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128/* end confdefs.h.  */
7129#ifdef __STDC__
7130# include <limits.h>
7131#else
7132# include <assert.h>
7133#endif
7134		     Syntax error
7135_ACEOF
7136if ac_fn_c_try_cpp "$LINENO"; then :
7137
7138else
7139  # Broken: fails on valid input.
7140continue
7141fi
7142rm -f conftest.err conftest.i conftest.$ac_ext
7143
7144  # OK, works on sane cases.  Now check whether nonexistent headers
7145  # can be detected and how.
7146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7147/* end confdefs.h.  */
7148#include <ac_nonexistent.h>
7149_ACEOF
7150if ac_fn_c_try_cpp "$LINENO"; then :
7151  # Broken: success on invalid input.
7152continue
7153else
7154  # Passes both tests.
7155ac_preproc_ok=:
7156break
7157fi
7158rm -f conftest.err conftest.i conftest.$ac_ext
7159
7160done
7161# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7162rm -f conftest.i conftest.err conftest.$ac_ext
7163if $ac_preproc_ok; then :
7164
7165else
7166  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7167$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7168as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7169See \`config.log' for more details" "$LINENO" 5; }
7170fi
7171
7172ac_ext=c
7173ac_cpp='$CPP $CPPFLAGS'
7174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7176ac_compiler_gnu=$ac_cv_c_compiler_gnu
7177
7178
7179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7180$as_echo_n "checking for ANSI C header files... " >&6; }
7181if ${ac_cv_header_stdc+:} false; then :
7182  $as_echo_n "(cached) " >&6
7183else
7184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7185/* end confdefs.h.  */
7186#include <stdlib.h>
7187#include <stdarg.h>
7188#include <string.h>
7189#include <float.h>
7190
7191int
7192main ()
7193{
7194
7195  ;
7196  return 0;
7197}
7198_ACEOF
7199if ac_fn_c_try_compile "$LINENO"; then :
7200  ac_cv_header_stdc=yes
7201else
7202  ac_cv_header_stdc=no
7203fi
7204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7205
7206if test $ac_cv_header_stdc = yes; then
7207  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209/* end confdefs.h.  */
7210#include <string.h>
7211
7212_ACEOF
7213if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7214  $EGREP "memchr" >/dev/null 2>&1; then :
7215
7216else
7217  ac_cv_header_stdc=no
7218fi
7219rm -f conftest*
7220
7221fi
7222
7223if test $ac_cv_header_stdc = yes; then
7224  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226/* end confdefs.h.  */
7227#include <stdlib.h>
7228
7229_ACEOF
7230if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7231  $EGREP "free" >/dev/null 2>&1; then :
7232
7233else
7234  ac_cv_header_stdc=no
7235fi
7236rm -f conftest*
7237
7238fi
7239
7240if test $ac_cv_header_stdc = yes; then
7241  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7242  if test "$cross_compiling" = yes; then :
7243  :
7244else
7245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246/* end confdefs.h.  */
7247#include <ctype.h>
7248#include <stdlib.h>
7249#if ((' ' & 0x0FF) == 0x020)
7250# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7251# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7252#else
7253# define ISLOWER(c) \
7254		   (('a' <= (c) && (c) <= 'i') \
7255		     || ('j' <= (c) && (c) <= 'r') \
7256		     || ('s' <= (c) && (c) <= 'z'))
7257# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7258#endif
7259
7260#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7261int
7262main ()
7263{
7264  int i;
7265  for (i = 0; i < 256; i++)
7266    if (XOR (islower (i), ISLOWER (i))
7267	|| toupper (i) != TOUPPER (i))
7268      return 2;
7269  return 0;
7270}
7271_ACEOF
7272if ac_fn_c_try_run "$LINENO"; then :
7273
7274else
7275  ac_cv_header_stdc=no
7276fi
7277rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7278  conftest.$ac_objext conftest.beam conftest.$ac_ext
7279fi
7280
7281fi
7282fi
7283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7284$as_echo "$ac_cv_header_stdc" >&6; }
7285if test $ac_cv_header_stdc = yes; then
7286
7287$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7288
7289fi
7290
7291# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7292for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7293		  inttypes.h stdint.h unistd.h
7294do :
7295  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7296ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7297"
7298if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7299  cat >>confdefs.h <<_ACEOF
7300#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7301_ACEOF
7302
7303fi
7304
7305done
7306
7307
7308for ac_header in dlfcn.h
7309do :
7310  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7311"
7312if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7313  cat >>confdefs.h <<_ACEOF
7314#define HAVE_DLFCN_H 1
7315_ACEOF
7316
7317fi
7318
7319done
7320
7321
7322
7323
7324
7325# Set options
7326
7327
7328
7329        enable_dlopen=no
7330
7331
7332  enable_win32_dll=no
7333
7334
7335            # Check whether --enable-shared was given.
7336if test "${enable_shared+set}" = set; then :
7337  enableval=$enable_shared; p=${PACKAGE-default}
7338    case $enableval in
7339    yes) enable_shared=yes ;;
7340    no) enable_shared=no ;;
7341    *)
7342      enable_shared=no
7343      # Look at the argument we got.  We use all the common list separators.
7344      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7345      for pkg in $enableval; do
7346	IFS="$lt_save_ifs"
7347	if test "X$pkg" = "X$p"; then
7348	  enable_shared=yes
7349	fi
7350      done
7351      IFS="$lt_save_ifs"
7352      ;;
7353    esac
7354else
7355  enable_shared=yes
7356fi
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368# Check whether --with-pic was given.
7369if test "${with_pic+set}" = set; then :
7370  withval=$with_pic; lt_p=${PACKAGE-default}
7371    case $withval in
7372    yes|no) pic_mode=$withval ;;
7373    *)
7374      pic_mode=default
7375      # Look at the argument we got.  We use all the common list separators.
7376      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7377      for lt_pkg in $withval; do
7378	IFS="$lt_save_ifs"
7379	if test "X$lt_pkg" = "X$lt_p"; then
7380	  pic_mode=yes
7381	fi
7382      done
7383      IFS="$lt_save_ifs"
7384      ;;
7385    esac
7386else
7387  pic_mode=default
7388fi
7389
7390
7391test -z "$pic_mode" && pic_mode=default
7392
7393
7394
7395
7396
7397
7398
7399  # Check whether --enable-fast-install was given.
7400if test "${enable_fast_install+set}" = set; then :
7401  enableval=$enable_fast_install; p=${PACKAGE-default}
7402    case $enableval in
7403    yes) enable_fast_install=yes ;;
7404    no) enable_fast_install=no ;;
7405    *)
7406      enable_fast_install=no
7407      # Look at the argument we got.  We use all the common list separators.
7408      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7409      for pkg in $enableval; do
7410	IFS="$lt_save_ifs"
7411	if test "X$pkg" = "X$p"; then
7412	  enable_fast_install=yes
7413	fi
7414      done
7415      IFS="$lt_save_ifs"
7416      ;;
7417    esac
7418else
7419  enable_fast_install=yes
7420fi
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432# This can be used to rebuild libtool when needed
7433LIBTOOL_DEPS="$ltmain"
7434
7435# Always use our own libtool.
7436LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467test -z "$LN_S" && LN_S="ln -s"
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482if test -n "${ZSH_VERSION+set}" ; then
7483   setopt NO_GLOB_SUBST
7484fi
7485
7486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7487$as_echo_n "checking for objdir... " >&6; }
7488if ${lt_cv_objdir+:} false; then :
7489  $as_echo_n "(cached) " >&6
7490else
7491  rm -f .libs 2>/dev/null
7492mkdir .libs 2>/dev/null
7493if test -d .libs; then
7494  lt_cv_objdir=.libs
7495else
7496  # MS-DOS does not allow filenames that begin with a dot.
7497  lt_cv_objdir=_libs
7498fi
7499rmdir .libs 2>/dev/null
7500fi
7501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7502$as_echo "$lt_cv_objdir" >&6; }
7503objdir=$lt_cv_objdir
7504
7505
7506
7507
7508
7509cat >>confdefs.h <<_ACEOF
7510#define LT_OBJDIR "$lt_cv_objdir/"
7511_ACEOF
7512
7513
7514
7515
7516case $host_os in
7517aix3*)
7518  # AIX sometimes has problems with the GCC collect2 program.  For some
7519  # reason, if we set the COLLECT_NAMES environment variable, the problems
7520  # vanish in a puff of smoke.
7521  if test "X${COLLECT_NAMES+set}" != Xset; then
7522    COLLECT_NAMES=
7523    export COLLECT_NAMES
7524  fi
7525  ;;
7526esac
7527
7528# Global variables:
7529ofile=libtool
7530can_build_shared=yes
7531
7532# All known linkers require a `.a' archive for static linking (except MSVC,
7533# which needs '.lib').
7534libext=a
7535
7536with_gnu_ld="$lt_cv_prog_gnu_ld"
7537
7538old_CC="$CC"
7539old_CFLAGS="$CFLAGS"
7540
7541# Set sane defaults for various variables
7542test -z "$CC" && CC=cc
7543test -z "$LTCC" && LTCC=$CC
7544test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7545test -z "$LD" && LD=ld
7546test -z "$ac_objext" && ac_objext=o
7547
7548for cc_temp in $compiler""; do
7549  case $cc_temp in
7550    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7551    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7552    \-*) ;;
7553    *) break;;
7554  esac
7555done
7556cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7557
7558
7559# Only perform the check for file, if the check method requires it
7560test -z "$MAGIC_CMD" && MAGIC_CMD=file
7561case $deplibs_check_method in
7562file_magic*)
7563  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7564    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7565$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7566if ${lt_cv_path_MAGIC_CMD+:} false; then :
7567  $as_echo_n "(cached) " >&6
7568else
7569  case $MAGIC_CMD in
7570[\\/*] |  ?:[\\/]*)
7571  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7572  ;;
7573*)
7574  lt_save_MAGIC_CMD="$MAGIC_CMD"
7575  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7576  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7577  for ac_dir in $ac_dummy; do
7578    IFS="$lt_save_ifs"
7579    test -z "$ac_dir" && ac_dir=.
7580    if test -f $ac_dir/${ac_tool_prefix}file; then
7581      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7582      if test -n "$file_magic_test_file"; then
7583	case $deplibs_check_method in
7584	"file_magic "*)
7585	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7586	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7587	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7588	    $EGREP "$file_magic_regex" > /dev/null; then
7589	    :
7590	  else
7591	    cat <<_LT_EOF 1>&2
7592
7593*** Warning: the command libtool uses to detect shared libraries,
7594*** $file_magic_cmd, produces output that libtool cannot recognize.
7595*** The result is that libtool may fail to recognize shared libraries
7596*** as such.  This will affect the creation of libtool libraries that
7597*** depend on shared libraries, but programs linked with such libtool
7598*** libraries will work regardless of this problem.  Nevertheless, you
7599*** may want to report the problem to your system manager and/or to
7600*** bug-libtool@gnu.org
7601
7602_LT_EOF
7603	  fi ;;
7604	esac
7605      fi
7606      break
7607    fi
7608  done
7609  IFS="$lt_save_ifs"
7610  MAGIC_CMD="$lt_save_MAGIC_CMD"
7611  ;;
7612esac
7613fi
7614
7615MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7616if test -n "$MAGIC_CMD"; then
7617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7618$as_echo "$MAGIC_CMD" >&6; }
7619else
7620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621$as_echo "no" >&6; }
7622fi
7623
7624
7625
7626
7627
7628if test -z "$lt_cv_path_MAGIC_CMD"; then
7629  if test -n "$ac_tool_prefix"; then
7630    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7631$as_echo_n "checking for file... " >&6; }
7632if ${lt_cv_path_MAGIC_CMD+:} false; then :
7633  $as_echo_n "(cached) " >&6
7634else
7635  case $MAGIC_CMD in
7636[\\/*] |  ?:[\\/]*)
7637  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7638  ;;
7639*)
7640  lt_save_MAGIC_CMD="$MAGIC_CMD"
7641  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7642  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7643  for ac_dir in $ac_dummy; do
7644    IFS="$lt_save_ifs"
7645    test -z "$ac_dir" && ac_dir=.
7646    if test -f $ac_dir/file; then
7647      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7648      if test -n "$file_magic_test_file"; then
7649	case $deplibs_check_method in
7650	"file_magic "*)
7651	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7652	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7653	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7654	    $EGREP "$file_magic_regex" > /dev/null; then
7655	    :
7656	  else
7657	    cat <<_LT_EOF 1>&2
7658
7659*** Warning: the command libtool uses to detect shared libraries,
7660*** $file_magic_cmd, produces output that libtool cannot recognize.
7661*** The result is that libtool may fail to recognize shared libraries
7662*** as such.  This will affect the creation of libtool libraries that
7663*** depend on shared libraries, but programs linked with such libtool
7664*** libraries will work regardless of this problem.  Nevertheless, you
7665*** may want to report the problem to your system manager and/or to
7666*** bug-libtool@gnu.org
7667
7668_LT_EOF
7669	  fi ;;
7670	esac
7671      fi
7672      break
7673    fi
7674  done
7675  IFS="$lt_save_ifs"
7676  MAGIC_CMD="$lt_save_MAGIC_CMD"
7677  ;;
7678esac
7679fi
7680
7681MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7682if test -n "$MAGIC_CMD"; then
7683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7684$as_echo "$MAGIC_CMD" >&6; }
7685else
7686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687$as_echo "no" >&6; }
7688fi
7689
7690
7691  else
7692    MAGIC_CMD=:
7693  fi
7694fi
7695
7696  fi
7697  ;;
7698esac
7699
7700# Use C for the default configuration in the libtool script
7701
7702lt_save_CC="$CC"
7703ac_ext=c
7704ac_cpp='$CPP $CPPFLAGS'
7705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7707ac_compiler_gnu=$ac_cv_c_compiler_gnu
7708
7709
7710# Source file extension for C test sources.
7711ac_ext=c
7712
7713# Object file extension for compiled C test sources.
7714objext=o
7715objext=$objext
7716
7717# Code to be used in simple compile tests
7718lt_simple_compile_test_code="int some_variable = 0;"
7719
7720# Code to be used in simple link tests
7721lt_simple_link_test_code='int main(){return(0);}'
7722
7723
7724
7725
7726
7727
7728
7729# If no C compiler was specified, use CC.
7730LTCC=${LTCC-"$CC"}
7731
7732# If no C compiler flags were specified, use CFLAGS.
7733LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7734
7735# Allow CC to be a program name with arguments.
7736compiler=$CC
7737
7738# Save the default compiler, since it gets overwritten when the other
7739# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7740compiler_DEFAULT=$CC
7741
7742# save warnings/boilerplate of simple test code
7743ac_outfile=conftest.$ac_objext
7744echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7745eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7746_lt_compiler_boilerplate=`cat conftest.err`
7747$RM conftest*
7748
7749ac_outfile=conftest.$ac_objext
7750echo "$lt_simple_link_test_code" >conftest.$ac_ext
7751eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7752_lt_linker_boilerplate=`cat conftest.err`
7753$RM -r conftest*
7754
7755
7756if test -n "$compiler"; then
7757
7758lt_prog_compiler_no_builtin_flag=
7759
7760if test "$GCC" = yes; then
7761  case $cc_basename in
7762  nvcc*)
7763    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7764  *)
7765    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7766  esac
7767
7768  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7769$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7770if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7771  $as_echo_n "(cached) " >&6
7772else
7773  lt_cv_prog_compiler_rtti_exceptions=no
7774   ac_outfile=conftest.$ac_objext
7775   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7776   lt_compiler_flag="-fno-rtti -fno-exceptions"
7777   # Insert the option either (1) after the last *FLAGS variable, or
7778   # (2) before a word containing "conftest.", or (3) at the end.
7779   # Note that $ac_compile itself does not contain backslashes and begins
7780   # with a dollar sign (not a hyphen), so the echo should work correctly.
7781   # The option is referenced via a variable to avoid confusing sed.
7782   lt_compile=`echo "$ac_compile" | $SED \
7783   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7784   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7785   -e 's:$: $lt_compiler_flag:'`
7786   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7787   (eval "$lt_compile" 2>conftest.err)
7788   ac_status=$?
7789   cat conftest.err >&5
7790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791   if (exit $ac_status) && test -s "$ac_outfile"; then
7792     # The compiler can only warn and ignore the option if not recognized
7793     # So say no if there are warnings other than the usual output.
7794     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7795     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7796     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7797       lt_cv_prog_compiler_rtti_exceptions=yes
7798     fi
7799   fi
7800   $RM conftest*
7801
7802fi
7803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7804$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7805
7806if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7807    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7808else
7809    :
7810fi
7811
7812fi
7813
7814
7815
7816
7817
7818
7819  lt_prog_compiler_wl=
7820lt_prog_compiler_pic=
7821lt_prog_compiler_static=
7822
7823
7824  if test "$GCC" = yes; then
7825    lt_prog_compiler_wl='-Wl,'
7826    lt_prog_compiler_static='-static'
7827
7828    case $host_os in
7829      aix*)
7830      # All AIX code is PIC.
7831      if test "$host_cpu" = ia64; then
7832	# AIX 5 now supports IA64 processor
7833	lt_prog_compiler_static='-Bstatic'
7834      fi
7835      ;;
7836
7837    amigaos*)
7838      case $host_cpu in
7839      powerpc)
7840            # see comment about AmigaOS4 .so support
7841            lt_prog_compiler_pic='-fPIC'
7842        ;;
7843      m68k)
7844            # FIXME: we need at least 68020 code to build shared libraries, but
7845            # adding the `-m68020' flag to GCC prevents building anything better,
7846            # like `-m68040'.
7847            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7848        ;;
7849      esac
7850      ;;
7851
7852    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7853      # PIC is the default for these OSes.
7854      ;;
7855
7856    mingw* | cygwin* | pw32* | os2* | cegcc*)
7857      # This hack is so that the source file can tell whether it is being
7858      # built for inclusion in a dll (and should export symbols for example).
7859      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7860      # (--disable-auto-import) libraries
7861      lt_prog_compiler_pic='-DDLL_EXPORT'
7862      ;;
7863
7864    darwin* | rhapsody*)
7865      # PIC is the default on this platform
7866      # Common symbols not allowed in MH_DYLIB files
7867      lt_prog_compiler_pic='-fno-common'
7868      ;;
7869
7870    haiku*)
7871      # PIC is the default for Haiku.
7872      # The "-static" flag exists, but is broken.
7873      lt_prog_compiler_static=
7874      ;;
7875
7876    hpux*)
7877      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7878      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7879      # sets the default TLS model and affects inlining.
7880      case $host_cpu in
7881      hppa*64*)
7882	# +Z the default
7883	;;
7884      *)
7885	lt_prog_compiler_pic='-fPIC'
7886	;;
7887      esac
7888      ;;
7889
7890    interix[3-9]*)
7891      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7892      # Instead, we relocate shared libraries at runtime.
7893      ;;
7894
7895    msdosdjgpp*)
7896      # Just because we use GCC doesn't mean we suddenly get shared libraries
7897      # on systems that don't support them.
7898      lt_prog_compiler_can_build_shared=no
7899      enable_shared=no
7900      ;;
7901
7902    *nto* | *qnx*)
7903      # QNX uses GNU C++, but need to define -shared option too, otherwise
7904      # it will coredump.
7905      lt_prog_compiler_pic='-fPIC -shared'
7906      ;;
7907
7908    sysv4*MP*)
7909      if test -d /usr/nec; then
7910	lt_prog_compiler_pic=-Kconform_pic
7911      fi
7912      ;;
7913
7914    *)
7915      lt_prog_compiler_pic='-fPIC'
7916      ;;
7917    esac
7918
7919    case $cc_basename in
7920    nvcc*) # Cuda Compiler Driver 2.2
7921      lt_prog_compiler_wl='-Xlinker '
7922      if test -n "$lt_prog_compiler_pic"; then
7923        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7924      fi
7925      ;;
7926    esac
7927  else
7928    # PORTME Check for flag to pass linker flags through the system compiler.
7929    case $host_os in
7930    aix*)
7931      lt_prog_compiler_wl='-Wl,'
7932      if test "$host_cpu" = ia64; then
7933	# AIX 5 now supports IA64 processor
7934	lt_prog_compiler_static='-Bstatic'
7935      else
7936	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7937      fi
7938      ;;
7939
7940    mingw* | cygwin* | pw32* | os2* | cegcc*)
7941      # This hack is so that the source file can tell whether it is being
7942      # built for inclusion in a dll (and should export symbols for example).
7943      lt_prog_compiler_pic='-DDLL_EXPORT'
7944      ;;
7945
7946    hpux9* | hpux10* | hpux11*)
7947      lt_prog_compiler_wl='-Wl,'
7948      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7949      # not for PA HP-UX.
7950      case $host_cpu in
7951      hppa*64*|ia64*)
7952	# +Z the default
7953	;;
7954      *)
7955	lt_prog_compiler_pic='+Z'
7956	;;
7957      esac
7958      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7959      lt_prog_compiler_static='${wl}-a ${wl}archive'
7960      ;;
7961
7962    irix5* | irix6* | nonstopux*)
7963      lt_prog_compiler_wl='-Wl,'
7964      # PIC (with -KPIC) is the default.
7965      lt_prog_compiler_static='-non_shared'
7966      ;;
7967
7968    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7969      case $cc_basename in
7970      # old Intel for x86_64 which still supported -KPIC.
7971      ecc*)
7972	lt_prog_compiler_wl='-Wl,'
7973	lt_prog_compiler_pic='-KPIC'
7974	lt_prog_compiler_static='-static'
7975        ;;
7976      # icc used to be incompatible with GCC.
7977      # ICC 10 doesn't accept -KPIC any more.
7978      icc* | ifort*)
7979	lt_prog_compiler_wl='-Wl,'
7980	lt_prog_compiler_pic='-fPIC'
7981	lt_prog_compiler_static='-static'
7982        ;;
7983      # Lahey Fortran 8.1.
7984      lf95*)
7985	lt_prog_compiler_wl='-Wl,'
7986	lt_prog_compiler_pic='--shared'
7987	lt_prog_compiler_static='--static'
7988	;;
7989      nagfor*)
7990	# NAG Fortran compiler
7991	lt_prog_compiler_wl='-Wl,-Wl,,'
7992	lt_prog_compiler_pic='-PIC'
7993	lt_prog_compiler_static='-Bstatic'
7994	;;
7995      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7996        # Portland Group compilers (*not* the Pentium gcc compiler,
7997	# which looks to be a dead project)
7998	lt_prog_compiler_wl='-Wl,'
7999	lt_prog_compiler_pic='-fpic'
8000	lt_prog_compiler_static='-Bstatic'
8001        ;;
8002      ccc*)
8003        lt_prog_compiler_wl='-Wl,'
8004        # All Alpha code is PIC.
8005        lt_prog_compiler_static='-non_shared'
8006        ;;
8007      xl* | bgxl* | bgf* | mpixl*)
8008	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8009	lt_prog_compiler_wl='-Wl,'
8010	lt_prog_compiler_pic='-qpic'
8011	lt_prog_compiler_static='-qstaticlink'
8012	;;
8013      *)
8014	case `$CC -V 2>&1 | sed 5q` in
8015	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8016	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8017	  lt_prog_compiler_pic='-KPIC'
8018	  lt_prog_compiler_static='-Bstatic'
8019	  lt_prog_compiler_wl=''
8020	  ;;
8021	*Sun\ F* | *Sun*Fortran*)
8022	  lt_prog_compiler_pic='-KPIC'
8023	  lt_prog_compiler_static='-Bstatic'
8024	  lt_prog_compiler_wl='-Qoption ld '
8025	  ;;
8026	*Sun\ C*)
8027	  # Sun C 5.9
8028	  lt_prog_compiler_pic='-KPIC'
8029	  lt_prog_compiler_static='-Bstatic'
8030	  lt_prog_compiler_wl='-Wl,'
8031	  ;;
8032        *Intel*\ [CF]*Compiler*)
8033	  lt_prog_compiler_wl='-Wl,'
8034	  lt_prog_compiler_pic='-fPIC'
8035	  lt_prog_compiler_static='-static'
8036	  ;;
8037	*Portland\ Group*)
8038	  lt_prog_compiler_wl='-Wl,'
8039	  lt_prog_compiler_pic='-fpic'
8040	  lt_prog_compiler_static='-Bstatic'
8041	  ;;
8042	esac
8043	;;
8044      esac
8045      ;;
8046
8047    newsos6)
8048      lt_prog_compiler_pic='-KPIC'
8049      lt_prog_compiler_static='-Bstatic'
8050      ;;
8051
8052    *nto* | *qnx*)
8053      # QNX uses GNU C++, but need to define -shared option too, otherwise
8054      # it will coredump.
8055      lt_prog_compiler_pic='-fPIC -shared'
8056      ;;
8057
8058    osf3* | osf4* | osf5*)
8059      lt_prog_compiler_wl='-Wl,'
8060      # All OSF/1 code is PIC.
8061      lt_prog_compiler_static='-non_shared'
8062      ;;
8063
8064    rdos*)
8065      lt_prog_compiler_static='-non_shared'
8066      ;;
8067
8068    solaris*)
8069      lt_prog_compiler_pic='-KPIC'
8070      lt_prog_compiler_static='-Bstatic'
8071      case $cc_basename in
8072      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8073	lt_prog_compiler_wl='-Qoption ld ';;
8074      *)
8075	lt_prog_compiler_wl='-Wl,';;
8076      esac
8077      ;;
8078
8079    sunos4*)
8080      lt_prog_compiler_wl='-Qoption ld '
8081      lt_prog_compiler_pic='-PIC'
8082      lt_prog_compiler_static='-Bstatic'
8083      ;;
8084
8085    sysv4 | sysv4.2uw2* | sysv4.3*)
8086      lt_prog_compiler_wl='-Wl,'
8087      lt_prog_compiler_pic='-KPIC'
8088      lt_prog_compiler_static='-Bstatic'
8089      ;;
8090
8091    sysv4*MP*)
8092      if test -d /usr/nec ;then
8093	lt_prog_compiler_pic='-Kconform_pic'
8094	lt_prog_compiler_static='-Bstatic'
8095      fi
8096      ;;
8097
8098    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8099      lt_prog_compiler_wl='-Wl,'
8100      lt_prog_compiler_pic='-KPIC'
8101      lt_prog_compiler_static='-Bstatic'
8102      ;;
8103
8104    unicos*)
8105      lt_prog_compiler_wl='-Wl,'
8106      lt_prog_compiler_can_build_shared=no
8107      ;;
8108
8109    uts4*)
8110      lt_prog_compiler_pic='-pic'
8111      lt_prog_compiler_static='-Bstatic'
8112      ;;
8113
8114    *)
8115      lt_prog_compiler_can_build_shared=no
8116      ;;
8117    esac
8118  fi
8119
8120case $host_os in
8121  # For platforms which do not support PIC, -DPIC is meaningless:
8122  *djgpp*)
8123    lt_prog_compiler_pic=
8124    ;;
8125  *)
8126    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8127    ;;
8128esac
8129
8130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8131$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8132if ${lt_cv_prog_compiler_pic+:} false; then :
8133  $as_echo_n "(cached) " >&6
8134else
8135  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8136fi
8137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8138$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8139lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8140
8141#
8142# Check to make sure the PIC flag actually works.
8143#
8144if test -n "$lt_prog_compiler_pic"; then
8145  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8146$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8147if ${lt_cv_prog_compiler_pic_works+:} false; then :
8148  $as_echo_n "(cached) " >&6
8149else
8150  lt_cv_prog_compiler_pic_works=no
8151   ac_outfile=conftest.$ac_objext
8152   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8153   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8154   # Insert the option either (1) after the last *FLAGS variable, or
8155   # (2) before a word containing "conftest.", or (3) at the end.
8156   # Note that $ac_compile itself does not contain backslashes and begins
8157   # with a dollar sign (not a hyphen), so the echo should work correctly.
8158   # The option is referenced via a variable to avoid confusing sed.
8159   lt_compile=`echo "$ac_compile" | $SED \
8160   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8161   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8162   -e 's:$: $lt_compiler_flag:'`
8163   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8164   (eval "$lt_compile" 2>conftest.err)
8165   ac_status=$?
8166   cat conftest.err >&5
8167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168   if (exit $ac_status) && test -s "$ac_outfile"; then
8169     # The compiler can only warn and ignore the option if not recognized
8170     # So say no if there are warnings other than the usual output.
8171     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8172     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8173     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8174       lt_cv_prog_compiler_pic_works=yes
8175     fi
8176   fi
8177   $RM conftest*
8178
8179fi
8180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8181$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8182
8183if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8184    case $lt_prog_compiler_pic in
8185     "" | " "*) ;;
8186     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8187     esac
8188else
8189    lt_prog_compiler_pic=
8190     lt_prog_compiler_can_build_shared=no
8191fi
8192
8193fi
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205#
8206# Check to make sure the static flag actually works.
8207#
8208wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8210$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8211if ${lt_cv_prog_compiler_static_works+:} false; then :
8212  $as_echo_n "(cached) " >&6
8213else
8214  lt_cv_prog_compiler_static_works=no
8215   save_LDFLAGS="$LDFLAGS"
8216   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8217   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8218   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8219     # The linker can only warn and ignore the option if not recognized
8220     # So say no if there are warnings
8221     if test -s conftest.err; then
8222       # Append any errors to the config.log.
8223       cat conftest.err 1>&5
8224       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8225       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8226       if diff conftest.exp conftest.er2 >/dev/null; then
8227         lt_cv_prog_compiler_static_works=yes
8228       fi
8229     else
8230       lt_cv_prog_compiler_static_works=yes
8231     fi
8232   fi
8233   $RM -r conftest*
8234   LDFLAGS="$save_LDFLAGS"
8235
8236fi
8237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8238$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8239
8240if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8241    :
8242else
8243    lt_prog_compiler_static=
8244fi
8245
8246
8247
8248
8249
8250
8251
8252  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8253$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8254if ${lt_cv_prog_compiler_c_o+:} false; then :
8255  $as_echo_n "(cached) " >&6
8256else
8257  lt_cv_prog_compiler_c_o=no
8258   $RM -r conftest 2>/dev/null
8259   mkdir conftest
8260   cd conftest
8261   mkdir out
8262   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8263
8264   lt_compiler_flag="-o out/conftest2.$ac_objext"
8265   # Insert the option either (1) after the last *FLAGS variable, or
8266   # (2) before a word containing "conftest.", or (3) at the end.
8267   # Note that $ac_compile itself does not contain backslashes and begins
8268   # with a dollar sign (not a hyphen), so the echo should work correctly.
8269   lt_compile=`echo "$ac_compile" | $SED \
8270   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8271   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8272   -e 's:$: $lt_compiler_flag:'`
8273   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8274   (eval "$lt_compile" 2>out/conftest.err)
8275   ac_status=$?
8276   cat out/conftest.err >&5
8277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8279   then
8280     # The compiler can only warn and ignore the option if not recognized
8281     # So say no if there are warnings
8282     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8283     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8284     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8285       lt_cv_prog_compiler_c_o=yes
8286     fi
8287   fi
8288   chmod u+w . 2>&5
8289   $RM conftest*
8290   # SGI C++ compiler will create directory out/ii_files/ for
8291   # template instantiation
8292   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8293   $RM out/* && rmdir out
8294   cd ..
8295   $RM -r conftest
8296   $RM conftest*
8297
8298fi
8299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8300$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8301
8302
8303
8304
8305
8306
8307  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8308$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8309if ${lt_cv_prog_compiler_c_o+:} false; then :
8310  $as_echo_n "(cached) " >&6
8311else
8312  lt_cv_prog_compiler_c_o=no
8313   $RM -r conftest 2>/dev/null
8314   mkdir conftest
8315   cd conftest
8316   mkdir out
8317   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8318
8319   lt_compiler_flag="-o out/conftest2.$ac_objext"
8320   # Insert the option either (1) after the last *FLAGS variable, or
8321   # (2) before a word containing "conftest.", or (3) at the end.
8322   # Note that $ac_compile itself does not contain backslashes and begins
8323   # with a dollar sign (not a hyphen), so the echo should work correctly.
8324   lt_compile=`echo "$ac_compile" | $SED \
8325   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8326   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8327   -e 's:$: $lt_compiler_flag:'`
8328   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8329   (eval "$lt_compile" 2>out/conftest.err)
8330   ac_status=$?
8331   cat out/conftest.err >&5
8332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8334   then
8335     # The compiler can only warn and ignore the option if not recognized
8336     # So say no if there are warnings
8337     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8338     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8339     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8340       lt_cv_prog_compiler_c_o=yes
8341     fi
8342   fi
8343   chmod u+w . 2>&5
8344   $RM conftest*
8345   # SGI C++ compiler will create directory out/ii_files/ for
8346   # template instantiation
8347   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8348   $RM out/* && rmdir out
8349   cd ..
8350   $RM -r conftest
8351   $RM conftest*
8352
8353fi
8354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8355$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8356
8357
8358
8359
8360hard_links="nottested"
8361if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8362  # do not overwrite the value of need_locks provided by the user
8363  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8364$as_echo_n "checking if we can lock with hard links... " >&6; }
8365  hard_links=yes
8366  $RM conftest*
8367  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8368  touch conftest.a
8369  ln conftest.a conftest.b 2>&5 || hard_links=no
8370  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8372$as_echo "$hard_links" >&6; }
8373  if test "$hard_links" = no; then
8374    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8375$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8376    need_locks=warn
8377  fi
8378else
8379  need_locks=no
8380fi
8381
8382
8383
8384
8385
8386
8387  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8388$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8389
8390  runpath_var=
8391  allow_undefined_flag=
8392  always_export_symbols=no
8393  archive_cmds=
8394  archive_expsym_cmds=
8395  compiler_needs_object=no
8396  enable_shared_with_static_runtimes=no
8397  export_dynamic_flag_spec=
8398  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8399  hardcode_automatic=no
8400  hardcode_direct=no
8401  hardcode_direct_absolute=no
8402  hardcode_libdir_flag_spec=
8403  hardcode_libdir_separator=
8404  hardcode_minus_L=no
8405  hardcode_shlibpath_var=unsupported
8406  inherit_rpath=no
8407  link_all_deplibs=unknown
8408  module_cmds=
8409  module_expsym_cmds=
8410  old_archive_from_new_cmds=
8411  old_archive_from_expsyms_cmds=
8412  thread_safe_flag_spec=
8413  whole_archive_flag_spec=
8414  # include_expsyms should be a list of space-separated symbols to be *always*
8415  # included in the symbol list
8416  include_expsyms=
8417  # exclude_expsyms can be an extended regexp of symbols to exclude
8418  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8419  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8420  # as well as any symbol that contains `d'.
8421  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8422  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8423  # platforms (ab)use it in PIC code, but their linkers get confused if
8424  # the symbol is explicitly referenced.  Since portable code cannot
8425  # rely on this symbol name, it's probably fine to never include it in
8426  # preloaded symbol tables.
8427  # Exclude shared library initialization/finalization symbols.
8428  extract_expsyms_cmds=
8429
8430  case $host_os in
8431  cygwin* | mingw* | pw32* | cegcc*)
8432    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8433    # When not using gcc, we currently assume that we are using
8434    # Microsoft Visual C++.
8435    if test "$GCC" != yes; then
8436      with_gnu_ld=no
8437    fi
8438    ;;
8439  interix*)
8440    # we just hope/assume this is gcc and not c89 (= MSVC++)
8441    with_gnu_ld=yes
8442    ;;
8443  openbsd*)
8444    with_gnu_ld=no
8445    ;;
8446  esac
8447
8448  ld_shlibs=yes
8449
8450  # On some targets, GNU ld is compatible enough with the native linker
8451  # that we're better off using the native interface for both.
8452  lt_use_gnu_ld_interface=no
8453  if test "$with_gnu_ld" = yes; then
8454    case $host_os in
8455      aix*)
8456	# The AIX port of GNU ld has always aspired to compatibility
8457	# with the native linker.  However, as the warning in the GNU ld
8458	# block says, versions before 2.19.5* couldn't really create working
8459	# shared libraries, regardless of the interface used.
8460	case `$LD -v 2>&1` in
8461	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8462	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8463	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8464	  *)
8465	    lt_use_gnu_ld_interface=yes
8466	    ;;
8467	esac
8468	;;
8469      *)
8470	lt_use_gnu_ld_interface=yes
8471	;;
8472    esac
8473  fi
8474
8475  if test "$lt_use_gnu_ld_interface" = yes; then
8476    # If archive_cmds runs LD, not CC, wlarc should be empty
8477    wlarc='${wl}'
8478
8479    # Set some defaults for GNU ld with shared library support. These
8480    # are reset later if shared libraries are not supported. Putting them
8481    # here allows them to be overridden if necessary.
8482    runpath_var=LD_RUN_PATH
8483    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8484    export_dynamic_flag_spec='${wl}--export-dynamic'
8485    # ancient GNU ld didn't support --whole-archive et. al.
8486    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8487      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8488    else
8489      whole_archive_flag_spec=
8490    fi
8491    supports_anon_versioning=no
8492    case `$LD -v 2>&1` in
8493      *GNU\ gold*) supports_anon_versioning=yes ;;
8494      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8495      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8496      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8497      *\ 2.11.*) ;; # other 2.11 versions
8498      *) supports_anon_versioning=yes ;;
8499    esac
8500
8501    # See if GNU ld supports shared libraries.
8502    case $host_os in
8503    aix[3-9]*)
8504      # On AIX/PPC, the GNU linker is very broken
8505      if test "$host_cpu" != ia64; then
8506	ld_shlibs=no
8507	cat <<_LT_EOF 1>&2
8508
8509*** Warning: the GNU linker, at least up to release 2.19, is reported
8510*** to be unable to reliably create shared libraries on AIX.
8511*** Therefore, libtool is disabling shared libraries support.  If you
8512*** really care for shared libraries, you may want to install binutils
8513*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8514*** You will then need to restart the configuration process.
8515
8516_LT_EOF
8517      fi
8518      ;;
8519
8520    amigaos*)
8521      case $host_cpu in
8522      powerpc)
8523            # see comment about AmigaOS4 .so support
8524            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8525            archive_expsym_cmds=''
8526        ;;
8527      m68k)
8528            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)'
8529            hardcode_libdir_flag_spec='-L$libdir'
8530            hardcode_minus_L=yes
8531        ;;
8532      esac
8533      ;;
8534
8535    beos*)
8536      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8537	allow_undefined_flag=unsupported
8538	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8539	# support --undefined.  This deserves some investigation.  FIXME
8540	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8541      else
8542	ld_shlibs=no
8543      fi
8544      ;;
8545
8546    cygwin* | mingw* | pw32* | cegcc*)
8547      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8548      # as there is no search path for DLLs.
8549      hardcode_libdir_flag_spec='-L$libdir'
8550      export_dynamic_flag_spec='${wl}--export-all-symbols'
8551      allow_undefined_flag=unsupported
8552      always_export_symbols=no
8553      enable_shared_with_static_runtimes=yes
8554      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8555      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8556
8557      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8558        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8559	# If the export-symbols file already is a .def file (1st line
8560	# is EXPORTS), use it as is; otherwise, prepend...
8561	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8562	  cp $export_symbols $output_objdir/$soname.def;
8563	else
8564	  echo EXPORTS > $output_objdir/$soname.def;
8565	  cat $export_symbols >> $output_objdir/$soname.def;
8566	fi~
8567	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8568      else
8569	ld_shlibs=no
8570      fi
8571      ;;
8572
8573    haiku*)
8574      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8575      link_all_deplibs=yes
8576      ;;
8577
8578    interix[3-9]*)
8579      hardcode_direct=no
8580      hardcode_shlibpath_var=no
8581      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8582      export_dynamic_flag_spec='${wl}-E'
8583      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8584      # Instead, shared libraries are loaded at an image base (0x10000000 by
8585      # default) and relocated if they conflict, which is a slow very memory
8586      # consuming and fragmenting process.  To avoid this, we pick a random,
8587      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8588      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8589      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8590      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'
8591      ;;
8592
8593    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8594      tmp_diet=no
8595      if test "$host_os" = linux-dietlibc; then
8596	case $cc_basename in
8597	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8598	esac
8599      fi
8600      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8601	 && test "$tmp_diet" = no
8602      then
8603	tmp_addflag=' $pic_flag'
8604	tmp_sharedflag='-shared'
8605	case $cc_basename,$host_cpu in
8606        pgcc*)				# Portland Group C compiler
8607	  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'
8608	  tmp_addflag=' $pic_flag'
8609	  ;;
8610	pgf77* | pgf90* | pgf95* | pgfortran*)
8611					# Portland Group f77 and f90 compilers
8612	  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'
8613	  tmp_addflag=' $pic_flag -Mnomain' ;;
8614	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8615	  tmp_addflag=' -i_dynamic' ;;
8616	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8617	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8618	ifc* | ifort*)			# Intel Fortran compiler
8619	  tmp_addflag=' -nofor_main' ;;
8620	lf95*)				# Lahey Fortran 8.1
8621	  whole_archive_flag_spec=
8622	  tmp_sharedflag='--shared' ;;
8623	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8624	  tmp_sharedflag='-qmkshrobj'
8625	  tmp_addflag= ;;
8626	nvcc*)	# Cuda Compiler Driver 2.2
8627	  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'
8628	  compiler_needs_object=yes
8629	  ;;
8630	esac
8631	case `$CC -V 2>&1 | sed 5q` in
8632	*Sun\ C*)			# Sun C 5.9
8633	  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'
8634	  compiler_needs_object=yes
8635	  tmp_sharedflag='-G' ;;
8636	*Sun\ F*)			# Sun Fortran 8.3
8637	  tmp_sharedflag='-G' ;;
8638	esac
8639	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8640
8641        if test "x$supports_anon_versioning" = xyes; then
8642          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8643	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8644	    echo "local: *; };" >> $output_objdir/$libname.ver~
8645	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8646        fi
8647
8648	case $cc_basename in
8649	xlf* | bgf* | bgxlf* | mpixlf*)
8650	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8651	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8652	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8653	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8654	  if test "x$supports_anon_versioning" = xyes; then
8655	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8656	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8657	      echo "local: *; };" >> $output_objdir/$libname.ver~
8658	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8659	  fi
8660	  ;;
8661	esac
8662      else
8663        ld_shlibs=no
8664      fi
8665      ;;
8666
8667    netbsd*)
8668      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8669	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8670	wlarc=
8671      else
8672	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8673	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8674      fi
8675      ;;
8676
8677    solaris*)
8678      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8679	ld_shlibs=no
8680	cat <<_LT_EOF 1>&2
8681
8682*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8683*** create shared libraries on Solaris systems.  Therefore, libtool
8684*** is disabling shared libraries support.  We urge you to upgrade GNU
8685*** binutils to release 2.9.1 or newer.  Another option is to modify
8686*** your PATH or compiler configuration so that the native linker is
8687*** used, and then restart.
8688
8689_LT_EOF
8690      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8691	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8692	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8693      else
8694	ld_shlibs=no
8695      fi
8696      ;;
8697
8698    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8699      case `$LD -v 2>&1` in
8700        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8701	ld_shlibs=no
8702	cat <<_LT_EOF 1>&2
8703
8704*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8705*** reliably create shared libraries on SCO systems.  Therefore, libtool
8706*** is disabling shared libraries support.  We urge you to upgrade GNU
8707*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8708*** your PATH or compiler configuration so that the native linker is
8709*** used, and then restart.
8710
8711_LT_EOF
8712	;;
8713	*)
8714	  # For security reasons, it is highly recommended that you always
8715	  # use absolute paths for naming shared libraries, and exclude the
8716	  # DT_RUNPATH tag from executables and libraries.  But doing so
8717	  # requires that you compile everything twice, which is a pain.
8718	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8719	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8720	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8721	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8722	  else
8723	    ld_shlibs=no
8724	  fi
8725	;;
8726      esac
8727      ;;
8728
8729    sunos4*)
8730      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8731      wlarc=
8732      hardcode_direct=yes
8733      hardcode_shlibpath_var=no
8734      ;;
8735
8736    *)
8737      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8738	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8739	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8740      else
8741	ld_shlibs=no
8742      fi
8743      ;;
8744    esac
8745
8746    if test "$ld_shlibs" = no; then
8747      runpath_var=
8748      hardcode_libdir_flag_spec=
8749      export_dynamic_flag_spec=
8750      whole_archive_flag_spec=
8751    fi
8752  else
8753    # PORTME fill in a description of your system's linker (not GNU ld)
8754    case $host_os in
8755    aix3*)
8756      allow_undefined_flag=unsupported
8757      always_export_symbols=yes
8758      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'
8759      # Note: this linker hardcodes the directories in LIBPATH if there
8760      # are no directories specified by -L.
8761      hardcode_minus_L=yes
8762      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8763	# Neither direct hardcoding nor static linking is supported with a
8764	# broken collect2.
8765	hardcode_direct=unsupported
8766      fi
8767      ;;
8768
8769    aix[4-9]*)
8770      if test "$host_cpu" = ia64; then
8771	# On IA64, the linker does run time linking by default, so we don't
8772	# have to do anything special.
8773	aix_use_runtimelinking=no
8774	exp_sym_flag='-Bexport'
8775	no_entry_flag=""
8776      else
8777	# If we're using GNU nm, then we don't want the "-C" option.
8778	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8779	# Also, AIX nm treats weak defined symbols like other global
8780	# defined symbols, whereas GNU nm marks them as "W".
8781	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8782	  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'
8783	else
8784	  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'
8785	fi
8786	aix_use_runtimelinking=no
8787
8788	# Test if we are trying to use run time linking or normal
8789	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8790	# need to do runtime linking.
8791	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8792	  for ld_flag in $LDFLAGS; do
8793	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8794	    aix_use_runtimelinking=yes
8795	    break
8796	  fi
8797	  done
8798	  ;;
8799	esac
8800
8801	exp_sym_flag='-bexport'
8802	no_entry_flag='-bnoentry'
8803      fi
8804
8805      # When large executables or shared objects are built, AIX ld can
8806      # have problems creating the table of contents.  If linking a library
8807      # or program results in "error TOC overflow" add -mminimal-toc to
8808      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8809      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8810
8811      archive_cmds=''
8812      hardcode_direct=yes
8813      hardcode_direct_absolute=yes
8814      hardcode_libdir_separator=':'
8815      link_all_deplibs=yes
8816      file_list_spec='${wl}-f,'
8817
8818      if test "$GCC" = yes; then
8819	case $host_os in aix4.[012]|aix4.[012].*)
8820	# We only want to do this on AIX 4.2 and lower, the check
8821	# below for broken collect2 doesn't work under 4.3+
8822	  collect2name=`${CC} -print-prog-name=collect2`
8823	  if test -f "$collect2name" &&
8824	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8825	  then
8826	  # We have reworked collect2
8827	  :
8828	  else
8829	  # We have old collect2
8830	  hardcode_direct=unsupported
8831	  # It fails to find uninstalled libraries when the uninstalled
8832	  # path is not listed in the libpath.  Setting hardcode_minus_L
8833	  # to unsupported forces relinking
8834	  hardcode_minus_L=yes
8835	  hardcode_libdir_flag_spec='-L$libdir'
8836	  hardcode_libdir_separator=
8837	  fi
8838	  ;;
8839	esac
8840	shared_flag='-shared'
8841	if test "$aix_use_runtimelinking" = yes; then
8842	  shared_flag="$shared_flag "'${wl}-G'
8843	fi
8844      else
8845	# not using gcc
8846	if test "$host_cpu" = ia64; then
8847	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8848	# chokes on -Wl,-G. The following line is correct:
8849	  shared_flag='-G'
8850	else
8851	  if test "$aix_use_runtimelinking" = yes; then
8852	    shared_flag='${wl}-G'
8853	  else
8854	    shared_flag='${wl}-bM:SRE'
8855	  fi
8856	fi
8857      fi
8858
8859      export_dynamic_flag_spec='${wl}-bexpall'
8860      # It seems that -bexpall does not export symbols beginning with
8861      # underscore (_), so it is better to generate a list of symbols to export.
8862      always_export_symbols=yes
8863      if test "$aix_use_runtimelinking" = yes; then
8864	# Warning - without using the other runtime loading flags (-brtl),
8865	# -berok will link without error, but may produce a broken library.
8866	allow_undefined_flag='-berok'
8867        # Determine the default libpath from the value encoded in an
8868        # empty executable.
8869        if test "${lt_cv_aix_libpath+set}" = set; then
8870  aix_libpath=$lt_cv_aix_libpath
8871else
8872  if ${lt_cv_aix_libpath_+:} false; then :
8873  $as_echo_n "(cached) " >&6
8874else
8875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8876/* end confdefs.h.  */
8877
8878int
8879main ()
8880{
8881
8882  ;
8883  return 0;
8884}
8885_ACEOF
8886if ac_fn_c_try_link "$LINENO"; then :
8887
8888  lt_aix_libpath_sed='
8889      /Import File Strings/,/^$/ {
8890	  /^0/ {
8891	      s/^0  *\([^ ]*\) *$/\1/
8892	      p
8893	  }
8894      }'
8895  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8896  # Check for a 64-bit object if we didn't find anything.
8897  if test -z "$lt_cv_aix_libpath_"; then
8898    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8899  fi
8900fi
8901rm -f core conftest.err conftest.$ac_objext \
8902    conftest$ac_exeext conftest.$ac_ext
8903  if test -z "$lt_cv_aix_libpath_"; then
8904    lt_cv_aix_libpath_="/usr/lib:/lib"
8905  fi
8906
8907fi
8908
8909  aix_libpath=$lt_cv_aix_libpath_
8910fi
8911
8912        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8913        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"
8914      else
8915	if test "$host_cpu" = ia64; then
8916	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8917	  allow_undefined_flag="-z nodefs"
8918	  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"
8919	else
8920	 # Determine the default libpath from the value encoded in an
8921	 # empty executable.
8922	 if test "${lt_cv_aix_libpath+set}" = set; then
8923  aix_libpath=$lt_cv_aix_libpath
8924else
8925  if ${lt_cv_aix_libpath_+:} false; then :
8926  $as_echo_n "(cached) " >&6
8927else
8928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8929/* end confdefs.h.  */
8930
8931int
8932main ()
8933{
8934
8935  ;
8936  return 0;
8937}
8938_ACEOF
8939if ac_fn_c_try_link "$LINENO"; then :
8940
8941  lt_aix_libpath_sed='
8942      /Import File Strings/,/^$/ {
8943	  /^0/ {
8944	      s/^0  *\([^ ]*\) *$/\1/
8945	      p
8946	  }
8947      }'
8948  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8949  # Check for a 64-bit object if we didn't find anything.
8950  if test -z "$lt_cv_aix_libpath_"; then
8951    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8952  fi
8953fi
8954rm -f core conftest.err conftest.$ac_objext \
8955    conftest$ac_exeext conftest.$ac_ext
8956  if test -z "$lt_cv_aix_libpath_"; then
8957    lt_cv_aix_libpath_="/usr/lib:/lib"
8958  fi
8959
8960fi
8961
8962  aix_libpath=$lt_cv_aix_libpath_
8963fi
8964
8965	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8966	  # Warning - without using the other run time loading flags,
8967	  # -berok will link without error, but may produce a broken library.
8968	  no_undefined_flag=' ${wl}-bernotok'
8969	  allow_undefined_flag=' ${wl}-berok'
8970	  if test "$with_gnu_ld" = yes; then
8971	    # We only use this code for GNU lds that support --whole-archive.
8972	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8973	  else
8974	    # Exported symbols can be pulled into shared objects from archives
8975	    whole_archive_flag_spec='$convenience'
8976	  fi
8977	  archive_cmds_need_lc=yes
8978	  # This is similar to how AIX traditionally builds its shared libraries.
8979	  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'
8980	fi
8981      fi
8982      ;;
8983
8984    amigaos*)
8985      case $host_cpu in
8986      powerpc)
8987            # see comment about AmigaOS4 .so support
8988            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8989            archive_expsym_cmds=''
8990        ;;
8991      m68k)
8992            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)'
8993            hardcode_libdir_flag_spec='-L$libdir'
8994            hardcode_minus_L=yes
8995        ;;
8996      esac
8997      ;;
8998
8999    bsdi[45]*)
9000      export_dynamic_flag_spec=-rdynamic
9001      ;;
9002
9003    cygwin* | mingw* | pw32* | cegcc*)
9004      # When not using gcc, we currently assume that we are using
9005      # Microsoft Visual C++.
9006      # hardcode_libdir_flag_spec is actually meaningless, as there is
9007      # no search path for DLLs.
9008      case $cc_basename in
9009      cl*)
9010	# Native MSVC
9011	hardcode_libdir_flag_spec=' '
9012	allow_undefined_flag=unsupported
9013	always_export_symbols=yes
9014	file_list_spec='@'
9015	# Tell ltmain to make .lib files, not .a files.
9016	libext=lib
9017	# Tell ltmain to make .dll files, not .so files.
9018	shrext_cmds=".dll"
9019	# FIXME: Setting linknames here is a bad hack.
9020	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9021	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9022	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9023	  else
9024	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9025	  fi~
9026	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9027	  linknames='
9028	# The linker will not automatically build a static lib if we build a DLL.
9029	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9030	enable_shared_with_static_runtimes=yes
9031	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9032	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9033	# Don't use ranlib
9034	old_postinstall_cmds='chmod 644 $oldlib'
9035	postlink_cmds='lt_outputfile="@OUTPUT@"~
9036	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9037	  case $lt_outputfile in
9038	    *.exe|*.EXE) ;;
9039	    *)
9040	      lt_outputfile="$lt_outputfile.exe"
9041	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9042	      ;;
9043	  esac~
9044	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9045	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9046	    $RM "$lt_outputfile.manifest";
9047	  fi'
9048	;;
9049      *)
9050	# Assume MSVC wrapper
9051	hardcode_libdir_flag_spec=' '
9052	allow_undefined_flag=unsupported
9053	# Tell ltmain to make .lib files, not .a files.
9054	libext=lib
9055	# Tell ltmain to make .dll files, not .so files.
9056	shrext_cmds=".dll"
9057	# FIXME: Setting linknames here is a bad hack.
9058	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9059	# The linker will automatically build a .lib file if we build a DLL.
9060	old_archive_from_new_cmds='true'
9061	# FIXME: Should let the user specify the lib program.
9062	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9063	enable_shared_with_static_runtimes=yes
9064	;;
9065      esac
9066      ;;
9067
9068    darwin* | rhapsody*)
9069
9070
9071  archive_cmds_need_lc=no
9072  hardcode_direct=no
9073  hardcode_automatic=yes
9074  hardcode_shlibpath_var=unsupported
9075  if test "$lt_cv_ld_force_load" = "yes"; then
9076    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\"`'
9077
9078  else
9079    whole_archive_flag_spec=''
9080  fi
9081  link_all_deplibs=yes
9082  allow_undefined_flag="$_lt_dar_allow_undefined"
9083  case $cc_basename in
9084     ifort*) _lt_dar_can_shared=yes ;;
9085     *) _lt_dar_can_shared=$GCC ;;
9086  esac
9087  if test "$_lt_dar_can_shared" = "yes"; then
9088    output_verbose_link_cmd=func_echo_all
9089    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9090    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9091    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}"
9092    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}"
9093
9094  else
9095  ld_shlibs=no
9096  fi
9097
9098      ;;
9099
9100    dgux*)
9101      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9102      hardcode_libdir_flag_spec='-L$libdir'
9103      hardcode_shlibpath_var=no
9104      ;;
9105
9106    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9107    # support.  Future versions do this automatically, but an explicit c++rt0.o
9108    # does not break anything, and helps significantly (at the cost of a little
9109    # extra space).
9110    freebsd2.2*)
9111      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9112      hardcode_libdir_flag_spec='-R$libdir'
9113      hardcode_direct=yes
9114      hardcode_shlibpath_var=no
9115      ;;
9116
9117    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9118    freebsd2.*)
9119      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9120      hardcode_direct=yes
9121      hardcode_minus_L=yes
9122      hardcode_shlibpath_var=no
9123      ;;
9124
9125    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9126    freebsd* | dragonfly*)
9127      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9128      hardcode_libdir_flag_spec='-R$libdir'
9129      hardcode_direct=yes
9130      hardcode_shlibpath_var=no
9131      ;;
9132
9133    hpux9*)
9134      if test "$GCC" = yes; then
9135	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9136      else
9137	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'
9138      fi
9139      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9140      hardcode_libdir_separator=:
9141      hardcode_direct=yes
9142
9143      # hardcode_minus_L: Not really in the search PATH,
9144      # but as the default location of the library.
9145      hardcode_minus_L=yes
9146      export_dynamic_flag_spec='${wl}-E'
9147      ;;
9148
9149    hpux10*)
9150      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9151	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9152      else
9153	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9154      fi
9155      if test "$with_gnu_ld" = no; then
9156	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9157	hardcode_libdir_separator=:
9158	hardcode_direct=yes
9159	hardcode_direct_absolute=yes
9160	export_dynamic_flag_spec='${wl}-E'
9161	# hardcode_minus_L: Not really in the search PATH,
9162	# but as the default location of the library.
9163	hardcode_minus_L=yes
9164      fi
9165      ;;
9166
9167    hpux11*)
9168      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9169	case $host_cpu in
9170	hppa*64*)
9171	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9172	  ;;
9173	ia64*)
9174	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9175	  ;;
9176	*)
9177	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9178	  ;;
9179	esac
9180      else
9181	case $host_cpu in
9182	hppa*64*)
9183	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9184	  ;;
9185	ia64*)
9186	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9187	  ;;
9188	*)
9189
9190	  # Older versions of the 11.00 compiler do not understand -b yet
9191	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9192	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9193$as_echo_n "checking if $CC understands -b... " >&6; }
9194if ${lt_cv_prog_compiler__b+:} false; then :
9195  $as_echo_n "(cached) " >&6
9196else
9197  lt_cv_prog_compiler__b=no
9198   save_LDFLAGS="$LDFLAGS"
9199   LDFLAGS="$LDFLAGS -b"
9200   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9201   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9202     # The linker can only warn and ignore the option if not recognized
9203     # So say no if there are warnings
9204     if test -s conftest.err; then
9205       # Append any errors to the config.log.
9206       cat conftest.err 1>&5
9207       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9208       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9209       if diff conftest.exp conftest.er2 >/dev/null; then
9210         lt_cv_prog_compiler__b=yes
9211       fi
9212     else
9213       lt_cv_prog_compiler__b=yes
9214     fi
9215   fi
9216   $RM -r conftest*
9217   LDFLAGS="$save_LDFLAGS"
9218
9219fi
9220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9221$as_echo "$lt_cv_prog_compiler__b" >&6; }
9222
9223if test x"$lt_cv_prog_compiler__b" = xyes; then
9224    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9225else
9226    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9227fi
9228
9229	  ;;
9230	esac
9231      fi
9232      if test "$with_gnu_ld" = no; then
9233	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9234	hardcode_libdir_separator=:
9235
9236	case $host_cpu in
9237	hppa*64*|ia64*)
9238	  hardcode_direct=no
9239	  hardcode_shlibpath_var=no
9240	  ;;
9241	*)
9242	  hardcode_direct=yes
9243	  hardcode_direct_absolute=yes
9244	  export_dynamic_flag_spec='${wl}-E'
9245
9246	  # hardcode_minus_L: Not really in the search PATH,
9247	  # but as the default location of the library.
9248	  hardcode_minus_L=yes
9249	  ;;
9250	esac
9251      fi
9252      ;;
9253
9254    irix5* | irix6* | nonstopux*)
9255      if test "$GCC" = yes; then
9256	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9257	# Try to use the -exported_symbol ld option, if it does not
9258	# work, assume that -exports_file does not work either and
9259	# implicitly export all symbols.
9260	# This should be the same for all languages, so no per-tag cache variable.
9261	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9262$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9263if ${lt_cv_irix_exported_symbol+:} false; then :
9264  $as_echo_n "(cached) " >&6
9265else
9266  save_LDFLAGS="$LDFLAGS"
9267	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9268	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9269/* end confdefs.h.  */
9270int foo (void) { return 0; }
9271_ACEOF
9272if ac_fn_c_try_link "$LINENO"; then :
9273  lt_cv_irix_exported_symbol=yes
9274else
9275  lt_cv_irix_exported_symbol=no
9276fi
9277rm -f core conftest.err conftest.$ac_objext \
9278    conftest$ac_exeext conftest.$ac_ext
9279           LDFLAGS="$save_LDFLAGS"
9280fi
9281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9282$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9283	if test "$lt_cv_irix_exported_symbol" = yes; then
9284          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9285	fi
9286      else
9287	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'
9288	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'
9289      fi
9290      archive_cmds_need_lc='no'
9291      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9292      hardcode_libdir_separator=:
9293      inherit_rpath=yes
9294      link_all_deplibs=yes
9295      ;;
9296
9297    netbsd*)
9298      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9299	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9300      else
9301	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9302      fi
9303      hardcode_libdir_flag_spec='-R$libdir'
9304      hardcode_direct=yes
9305      hardcode_shlibpath_var=no
9306      ;;
9307
9308    newsos6)
9309      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9310      hardcode_direct=yes
9311      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9312      hardcode_libdir_separator=:
9313      hardcode_shlibpath_var=no
9314      ;;
9315
9316    *nto* | *qnx*)
9317      ;;
9318
9319    openbsd*)
9320      if test -f /usr/libexec/ld.so; then
9321	hardcode_direct=yes
9322	hardcode_shlibpath_var=no
9323	hardcode_direct_absolute=yes
9324	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9325	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9326	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9327	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9328	  export_dynamic_flag_spec='${wl}-E'
9329	else
9330	  case $host_os in
9331	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9332	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9333	     hardcode_libdir_flag_spec='-R$libdir'
9334	     ;;
9335	   *)
9336	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9337	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9338	     ;;
9339	  esac
9340	fi
9341      else
9342	ld_shlibs=no
9343      fi
9344      ;;
9345
9346    os2*)
9347      hardcode_libdir_flag_spec='-L$libdir'
9348      hardcode_minus_L=yes
9349      allow_undefined_flag=unsupported
9350      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'
9351      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9352      ;;
9353
9354    osf3*)
9355      if test "$GCC" = yes; then
9356	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9357	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'
9358      else
9359	allow_undefined_flag=' -expect_unresolved \*'
9360	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'
9361      fi
9362      archive_cmds_need_lc='no'
9363      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9364      hardcode_libdir_separator=:
9365      ;;
9366
9367    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9368      if test "$GCC" = yes; then
9369	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9370	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9371	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9372      else
9373	allow_undefined_flag=' -expect_unresolved \*'
9374	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'
9375	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~
9376	$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'
9377
9378	# Both c and cxx compiler support -rpath directly
9379	hardcode_libdir_flag_spec='-rpath $libdir'
9380      fi
9381      archive_cmds_need_lc='no'
9382      hardcode_libdir_separator=:
9383      ;;
9384
9385    solaris*)
9386      no_undefined_flag=' -z defs'
9387      if test "$GCC" = yes; then
9388	wlarc='${wl}'
9389	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9390	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9391	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9392      else
9393	case `$CC -V 2>&1` in
9394	*"Compilers 5.0"*)
9395	  wlarc=''
9396	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9397	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9398	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9399	  ;;
9400	*)
9401	  wlarc='${wl}'
9402	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9403	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9404	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9405	  ;;
9406	esac
9407      fi
9408      hardcode_libdir_flag_spec='-R$libdir'
9409      hardcode_shlibpath_var=no
9410      case $host_os in
9411      solaris2.[0-5] | solaris2.[0-5].*) ;;
9412      *)
9413	# The compiler driver will combine and reorder linker options,
9414	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9415	# but is careful enough not to reorder.
9416	# Supported since Solaris 2.6 (maybe 2.5.1?)
9417	if test "$GCC" = yes; then
9418	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9419	else
9420	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9421	fi
9422	;;
9423      esac
9424      link_all_deplibs=yes
9425      ;;
9426
9427    sunos4*)
9428      if test "x$host_vendor" = xsequent; then
9429	# Use $CC to link under sequent, because it throws in some extra .o
9430	# files that make .init and .fini sections work.
9431	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9432      else
9433	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9434      fi
9435      hardcode_libdir_flag_spec='-L$libdir'
9436      hardcode_direct=yes
9437      hardcode_minus_L=yes
9438      hardcode_shlibpath_var=no
9439      ;;
9440
9441    sysv4)
9442      case $host_vendor in
9443	sni)
9444	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9445	  hardcode_direct=yes # is this really true???
9446	;;
9447	siemens)
9448	  ## LD is ld it makes a PLAMLIB
9449	  ## CC just makes a GrossModule.
9450	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9451	  reload_cmds='$CC -r -o $output$reload_objs'
9452	  hardcode_direct=no
9453        ;;
9454	motorola)
9455	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9456	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9457	;;
9458      esac
9459      runpath_var='LD_RUN_PATH'
9460      hardcode_shlibpath_var=no
9461      ;;
9462
9463    sysv4.3*)
9464      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9465      hardcode_shlibpath_var=no
9466      export_dynamic_flag_spec='-Bexport'
9467      ;;
9468
9469    sysv4*MP*)
9470      if test -d /usr/nec; then
9471	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9472	hardcode_shlibpath_var=no
9473	runpath_var=LD_RUN_PATH
9474	hardcode_runpath_var=yes
9475	ld_shlibs=yes
9476      fi
9477      ;;
9478
9479    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9480      no_undefined_flag='${wl}-z,text'
9481      archive_cmds_need_lc=no
9482      hardcode_shlibpath_var=no
9483      runpath_var='LD_RUN_PATH'
9484
9485      if test "$GCC" = yes; then
9486	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9487	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9488      else
9489	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9490	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9491      fi
9492      ;;
9493
9494    sysv5* | sco3.2v5* | sco5v6*)
9495      # Note: We can NOT use -z defs as we might desire, because we do not
9496      # link with -lc, and that would cause any symbols used from libc to
9497      # always be unresolved, which means just about no library would
9498      # ever link correctly.  If we're not using GNU ld we use -z text
9499      # though, which does catch some bad symbols but isn't as heavy-handed
9500      # as -z defs.
9501      no_undefined_flag='${wl}-z,text'
9502      allow_undefined_flag='${wl}-z,nodefs'
9503      archive_cmds_need_lc=no
9504      hardcode_shlibpath_var=no
9505      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9506      hardcode_libdir_separator=':'
9507      link_all_deplibs=yes
9508      export_dynamic_flag_spec='${wl}-Bexport'
9509      runpath_var='LD_RUN_PATH'
9510
9511      if test "$GCC" = yes; then
9512	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9513	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9514      else
9515	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9516	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9517      fi
9518      ;;
9519
9520    uts4*)
9521      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9522      hardcode_libdir_flag_spec='-L$libdir'
9523      hardcode_shlibpath_var=no
9524      ;;
9525
9526    *)
9527      ld_shlibs=no
9528      ;;
9529    esac
9530
9531    if test x$host_vendor = xsni; then
9532      case $host in
9533      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9534	export_dynamic_flag_spec='${wl}-Blargedynsym'
9535	;;
9536      esac
9537    fi
9538  fi
9539
9540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9541$as_echo "$ld_shlibs" >&6; }
9542test "$ld_shlibs" = no && can_build_shared=no
9543
9544with_gnu_ld=$with_gnu_ld
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560#
9561# Do we need to explicitly link libc?
9562#
9563case "x$archive_cmds_need_lc" in
9564x|xyes)
9565  # Assume -lc should be added
9566  archive_cmds_need_lc=yes
9567
9568  if test "$enable_shared" = yes && test "$GCC" = yes; then
9569    case $archive_cmds in
9570    *'~'*)
9571      # FIXME: we may have to deal with multi-command sequences.
9572      ;;
9573    '$CC '*)
9574      # Test whether the compiler implicitly links with -lc since on some
9575      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9576      # to ld, don't add -lc before -lgcc.
9577      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9578$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9579if ${lt_cv_archive_cmds_need_lc+:} false; then :
9580  $as_echo_n "(cached) " >&6
9581else
9582  $RM conftest*
9583	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9584
9585	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9586  (eval $ac_compile) 2>&5
9587  ac_status=$?
9588  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9589  test $ac_status = 0; } 2>conftest.err; then
9590	  soname=conftest
9591	  lib=conftest
9592	  libobjs=conftest.$ac_objext
9593	  deplibs=
9594	  wl=$lt_prog_compiler_wl
9595	  pic_flag=$lt_prog_compiler_pic
9596	  compiler_flags=-v
9597	  linker_flags=-v
9598	  verstring=
9599	  output_objdir=.
9600	  libname=conftest
9601	  lt_save_allow_undefined_flag=$allow_undefined_flag
9602	  allow_undefined_flag=
9603	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9604  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9605  ac_status=$?
9606  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9607  test $ac_status = 0; }
9608	  then
9609	    lt_cv_archive_cmds_need_lc=no
9610	  else
9611	    lt_cv_archive_cmds_need_lc=yes
9612	  fi
9613	  allow_undefined_flag=$lt_save_allow_undefined_flag
9614	else
9615	  cat conftest.err 1>&5
9616	fi
9617	$RM conftest*
9618
9619fi
9620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9621$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9622      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9623      ;;
9624    esac
9625  fi
9626  ;;
9627esac
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9781$as_echo_n "checking dynamic linker characteristics... " >&6; }
9782
9783if test "$GCC" = yes; then
9784  case $host_os in
9785    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9786    *) lt_awk_arg="/^libraries:/" ;;
9787  esac
9788  case $host_os in
9789    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9790    *) lt_sed_strip_eq="s,=/,/,g" ;;
9791  esac
9792  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9793  case $lt_search_path_spec in
9794  *\;*)
9795    # if the path contains ";" then we assume it to be the separator
9796    # otherwise default to the standard path separator (i.e. ":") - it is
9797    # assumed that no part of a normal pathname contains ";" but that should
9798    # okay in the real world where ";" in dirpaths is itself problematic.
9799    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9800    ;;
9801  *)
9802    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9803    ;;
9804  esac
9805  # Ok, now we have the path, separated by spaces, we can step through it
9806  # and add multilib dir if necessary.
9807  lt_tmp_lt_search_path_spec=
9808  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9809  for lt_sys_path in $lt_search_path_spec; do
9810    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9811      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9812    else
9813      test -d "$lt_sys_path" && \
9814	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9815    fi
9816  done
9817  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9818BEGIN {RS=" "; FS="/|\n";} {
9819  lt_foo="";
9820  lt_count=0;
9821  for (lt_i = NF; lt_i > 0; lt_i--) {
9822    if ($lt_i != "" && $lt_i != ".") {
9823      if ($lt_i == "..") {
9824        lt_count++;
9825      } else {
9826        if (lt_count == 0) {
9827          lt_foo="/" $lt_i lt_foo;
9828        } else {
9829          lt_count--;
9830        }
9831      }
9832    }
9833  }
9834  if (lt_foo != "") { lt_freq[lt_foo]++; }
9835  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9836}'`
9837  # AWK program above erroneously prepends '/' to C:/dos/paths
9838  # for these hosts.
9839  case $host_os in
9840    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9841      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9842  esac
9843  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9844else
9845  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9846fi
9847library_names_spec=
9848libname_spec='lib$name'
9849soname_spec=
9850shrext_cmds=".so"
9851postinstall_cmds=
9852postuninstall_cmds=
9853finish_cmds=
9854finish_eval=
9855shlibpath_var=
9856shlibpath_overrides_runpath=unknown
9857version_type=none
9858dynamic_linker="$host_os ld.so"
9859sys_lib_dlsearch_path_spec="/lib /usr/lib"
9860need_lib_prefix=unknown
9861hardcode_into_libs=no
9862
9863# when you set need_version to no, make sure it does not cause -set_version
9864# flags to be left without arguments
9865need_version=unknown
9866
9867case $host_os in
9868aix3*)
9869  version_type=linux # correct to gnu/linux during the next big refactor
9870  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9871  shlibpath_var=LIBPATH
9872
9873  # AIX 3 has no versioning support, so we append a major version to the name.
9874  soname_spec='${libname}${release}${shared_ext}$major'
9875  ;;
9876
9877aix[4-9]*)
9878  version_type=linux # correct to gnu/linux during the next big refactor
9879  need_lib_prefix=no
9880  need_version=no
9881  hardcode_into_libs=yes
9882  if test "$host_cpu" = ia64; then
9883    # AIX 5 supports IA64
9884    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9885    shlibpath_var=LD_LIBRARY_PATH
9886  else
9887    # With GCC up to 2.95.x, collect2 would create an import file
9888    # for dependence libraries.  The import file would start with
9889    # the line `#! .'.  This would cause the generated library to
9890    # depend on `.', always an invalid library.  This was fixed in
9891    # development snapshots of GCC prior to 3.0.
9892    case $host_os in
9893      aix4 | aix4.[01] | aix4.[01].*)
9894      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9895	   echo ' yes '
9896	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9897	:
9898      else
9899	can_build_shared=no
9900      fi
9901      ;;
9902    esac
9903    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9904    # soname into executable. Probably we can add versioning support to
9905    # collect2, so additional links can be useful in future.
9906    if test "$aix_use_runtimelinking" = yes; then
9907      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9908      # instead of lib<name>.a to let people know that these are not
9909      # typical AIX shared libraries.
9910      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9911    else
9912      # We preserve .a as extension for shared libraries through AIX4.2
9913      # and later when we are not doing run time linking.
9914      library_names_spec='${libname}${release}.a $libname.a'
9915      soname_spec='${libname}${release}${shared_ext}$major'
9916    fi
9917    shlibpath_var=LIBPATH
9918  fi
9919  ;;
9920
9921amigaos*)
9922  case $host_cpu in
9923  powerpc)
9924    # Since July 2007 AmigaOS4 officially supports .so libraries.
9925    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9926    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9927    ;;
9928  m68k)
9929    library_names_spec='$libname.ixlibrary $libname.a'
9930    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9931    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'
9932    ;;
9933  esac
9934  ;;
9935
9936beos*)
9937  library_names_spec='${libname}${shared_ext}'
9938  dynamic_linker="$host_os ld.so"
9939  shlibpath_var=LIBRARY_PATH
9940  ;;
9941
9942bsdi[45]*)
9943  version_type=linux # correct to gnu/linux during the next big refactor
9944  need_version=no
9945  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9946  soname_spec='${libname}${release}${shared_ext}$major'
9947  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9948  shlibpath_var=LD_LIBRARY_PATH
9949  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9950  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9951  # the default ld.so.conf also contains /usr/contrib/lib and
9952  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9953  # libtool to hard-code these into programs
9954  ;;
9955
9956cygwin* | mingw* | pw32* | cegcc*)
9957  version_type=windows
9958  shrext_cmds=".dll"
9959  need_version=no
9960  need_lib_prefix=no
9961
9962  case $GCC,$cc_basename in
9963  yes,*)
9964    # gcc
9965    library_names_spec='$libname.dll.a'
9966    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9967    postinstall_cmds='base_file=`basename \${file}`~
9968      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9969      dldir=$destdir/`dirname \$dlpath`~
9970      test -d \$dldir || mkdir -p \$dldir~
9971      $install_prog $dir/$dlname \$dldir/$dlname~
9972      chmod a+x \$dldir/$dlname~
9973      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9974        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9975      fi'
9976    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9977      dlpath=$dir/\$dldll~
9978       $RM \$dlpath'
9979    shlibpath_overrides_runpath=yes
9980
9981    case $host_os in
9982    cygwin*)
9983      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9984      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9985
9986      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9987      ;;
9988    mingw* | cegcc*)
9989      # MinGW DLLs use traditional 'lib' prefix
9990      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9991      ;;
9992    pw32*)
9993      # pw32 DLLs use 'pw' prefix rather than 'lib'
9994      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9995      ;;
9996    esac
9997    dynamic_linker='Win32 ld.exe'
9998    ;;
9999
10000  *,cl*)
10001    # Native MSVC
10002    libname_spec='$name'
10003    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10004    library_names_spec='${libname}.dll.lib'
10005
10006    case $build_os in
10007    mingw*)
10008      sys_lib_search_path_spec=
10009      lt_save_ifs=$IFS
10010      IFS=';'
10011      for lt_path in $LIB
10012      do
10013        IFS=$lt_save_ifs
10014        # Let DOS variable expansion print the short 8.3 style file name.
10015        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10016        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10017      done
10018      IFS=$lt_save_ifs
10019      # Convert to MSYS style.
10020      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10021      ;;
10022    cygwin*)
10023      # Convert to unix form, then to dos form, then back to unix form
10024      # but this time dos style (no spaces!) so that the unix form looks
10025      # like /cygdrive/c/PROGRA~1:/cygdr...
10026      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10027      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10028      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10029      ;;
10030    *)
10031      sys_lib_search_path_spec="$LIB"
10032      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10033        # It is most probably a Windows format PATH.
10034        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10035      else
10036        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10037      fi
10038      # FIXME: find the short name or the path components, as spaces are
10039      # common. (e.g. "Program Files" -> "PROGRA~1")
10040      ;;
10041    esac
10042
10043    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10044    postinstall_cmds='base_file=`basename \${file}`~
10045      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10046      dldir=$destdir/`dirname \$dlpath`~
10047      test -d \$dldir || mkdir -p \$dldir~
10048      $install_prog $dir/$dlname \$dldir/$dlname'
10049    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10050      dlpath=$dir/\$dldll~
10051       $RM \$dlpath'
10052    shlibpath_overrides_runpath=yes
10053    dynamic_linker='Win32 link.exe'
10054    ;;
10055
10056  *)
10057    # Assume MSVC wrapper
10058    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10059    dynamic_linker='Win32 ld.exe'
10060    ;;
10061  esac
10062  # FIXME: first we should search . and the directory the executable is in
10063  shlibpath_var=PATH
10064  ;;
10065
10066darwin* | rhapsody*)
10067  dynamic_linker="$host_os dyld"
10068  version_type=darwin
10069  need_lib_prefix=no
10070  need_version=no
10071  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10072  soname_spec='${libname}${release}${major}$shared_ext'
10073  shlibpath_overrides_runpath=yes
10074  shlibpath_var=DYLD_LIBRARY_PATH
10075  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10076
10077  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10078  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10079  ;;
10080
10081dgux*)
10082  version_type=linux # correct to gnu/linux during the next big refactor
10083  need_lib_prefix=no
10084  need_version=no
10085  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10086  soname_spec='${libname}${release}${shared_ext}$major'
10087  shlibpath_var=LD_LIBRARY_PATH
10088  ;;
10089
10090freebsd* | dragonfly*)
10091  # DragonFly does not have aout.  When/if they implement a new
10092  # versioning mechanism, adjust this.
10093  if test -x /usr/bin/objformat; then
10094    objformat=`/usr/bin/objformat`
10095  else
10096    case $host_os in
10097    freebsd[23].*) objformat=aout ;;
10098    *) objformat=elf ;;
10099    esac
10100  fi
10101  version_type=freebsd-$objformat
10102  case $version_type in
10103    freebsd-elf*)
10104      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10105      need_version=no
10106      need_lib_prefix=no
10107      ;;
10108    freebsd-*)
10109      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10110      need_version=yes
10111      ;;
10112  esac
10113  shlibpath_var=LD_LIBRARY_PATH
10114  case $host_os in
10115  freebsd2.*)
10116    shlibpath_overrides_runpath=yes
10117    ;;
10118  freebsd3.[01]* | freebsdelf3.[01]*)
10119    shlibpath_overrides_runpath=yes
10120    hardcode_into_libs=yes
10121    ;;
10122  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10123  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10124    shlibpath_overrides_runpath=no
10125    hardcode_into_libs=yes
10126    ;;
10127  *) # from 4.6 on, and DragonFly
10128    shlibpath_overrides_runpath=yes
10129    hardcode_into_libs=yes
10130    ;;
10131  esac
10132  ;;
10133
10134gnu*)
10135  version_type=linux # correct to gnu/linux during the next big refactor
10136  need_lib_prefix=no
10137  need_version=no
10138  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10139  soname_spec='${libname}${release}${shared_ext}$major'
10140  shlibpath_var=LD_LIBRARY_PATH
10141  shlibpath_overrides_runpath=no
10142  hardcode_into_libs=yes
10143  ;;
10144
10145haiku*)
10146  version_type=linux # correct to gnu/linux during the next big refactor
10147  need_lib_prefix=no
10148  need_version=no
10149  dynamic_linker="$host_os runtime_loader"
10150  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10151  soname_spec='${libname}${release}${shared_ext}$major'
10152  shlibpath_var=LIBRARY_PATH
10153  shlibpath_overrides_runpath=yes
10154  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10155  hardcode_into_libs=yes
10156  ;;
10157
10158hpux9* | hpux10* | hpux11*)
10159  # Give a soname corresponding to the major version so that dld.sl refuses to
10160  # link against other versions.
10161  version_type=sunos
10162  need_lib_prefix=no
10163  need_version=no
10164  case $host_cpu in
10165  ia64*)
10166    shrext_cmds='.so'
10167    hardcode_into_libs=yes
10168    dynamic_linker="$host_os dld.so"
10169    shlibpath_var=LD_LIBRARY_PATH
10170    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10171    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172    soname_spec='${libname}${release}${shared_ext}$major'
10173    if test "X$HPUX_IA64_MODE" = X32; then
10174      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10175    else
10176      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10177    fi
10178    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10179    ;;
10180  hppa*64*)
10181    shrext_cmds='.sl'
10182    hardcode_into_libs=yes
10183    dynamic_linker="$host_os dld.sl"
10184    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10185    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10186    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10187    soname_spec='${libname}${release}${shared_ext}$major'
10188    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10189    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10190    ;;
10191  *)
10192    shrext_cmds='.sl'
10193    dynamic_linker="$host_os dld.sl"
10194    shlibpath_var=SHLIB_PATH
10195    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10196    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10197    soname_spec='${libname}${release}${shared_ext}$major'
10198    ;;
10199  esac
10200  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10201  postinstall_cmds='chmod 555 $lib'
10202  # or fails outright, so override atomically:
10203  install_override_mode=555
10204  ;;
10205
10206interix[3-9]*)
10207  version_type=linux # correct to gnu/linux during the next big refactor
10208  need_lib_prefix=no
10209  need_version=no
10210  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10211  soname_spec='${libname}${release}${shared_ext}$major'
10212  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10213  shlibpath_var=LD_LIBRARY_PATH
10214  shlibpath_overrides_runpath=no
10215  hardcode_into_libs=yes
10216  ;;
10217
10218irix5* | irix6* | nonstopux*)
10219  case $host_os in
10220    nonstopux*) version_type=nonstopux ;;
10221    *)
10222	if test "$lt_cv_prog_gnu_ld" = yes; then
10223		version_type=linux # correct to gnu/linux during the next big refactor
10224	else
10225		version_type=irix
10226	fi ;;
10227  esac
10228  need_lib_prefix=no
10229  need_version=no
10230  soname_spec='${libname}${release}${shared_ext}$major'
10231  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10232  case $host_os in
10233  irix5* | nonstopux*)
10234    libsuff= shlibsuff=
10235    ;;
10236  *)
10237    case $LD in # libtool.m4 will add one of these switches to LD
10238    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10239      libsuff= shlibsuff= libmagic=32-bit;;
10240    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10241      libsuff=32 shlibsuff=N32 libmagic=N32;;
10242    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10243      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10244    *) libsuff= shlibsuff= libmagic=never-match;;
10245    esac
10246    ;;
10247  esac
10248  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10249  shlibpath_overrides_runpath=no
10250  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10251  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10252  hardcode_into_libs=yes
10253  ;;
10254
10255# No shared lib support for Linux oldld, aout, or coff.
10256linux*oldld* | linux*aout* | linux*coff*)
10257  dynamic_linker=no
10258  ;;
10259
10260# This must be glibc/ELF.
10261linux* | k*bsd*-gnu | kopensolaris*-gnu)
10262  version_type=linux # correct to gnu/linux during the next big refactor
10263  need_lib_prefix=no
10264  need_version=no
10265  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10266  soname_spec='${libname}${release}${shared_ext}$major'
10267  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10268  shlibpath_var=LD_LIBRARY_PATH
10269  shlibpath_overrides_runpath=no
10270
10271  # Some binutils ld are patched to set DT_RUNPATH
10272  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10273  $as_echo_n "(cached) " >&6
10274else
10275  lt_cv_shlibpath_overrides_runpath=no
10276    save_LDFLAGS=$LDFLAGS
10277    save_libdir=$libdir
10278    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10279	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10280    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281/* end confdefs.h.  */
10282
10283int
10284main ()
10285{
10286
10287  ;
10288  return 0;
10289}
10290_ACEOF
10291if ac_fn_c_try_link "$LINENO"; then :
10292  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10293  lt_cv_shlibpath_overrides_runpath=yes
10294fi
10295fi
10296rm -f core conftest.err conftest.$ac_objext \
10297    conftest$ac_exeext conftest.$ac_ext
10298    LDFLAGS=$save_LDFLAGS
10299    libdir=$save_libdir
10300
10301fi
10302
10303  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10304
10305  # This implies no fast_install, which is unacceptable.
10306  # Some rework will be needed to allow for fast_install
10307  # before this can be enabled.
10308  hardcode_into_libs=yes
10309
10310  # Add ABI-specific directories to the system library path.
10311  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10312
10313  # Append ld.so.conf contents to the search path
10314  if test -f /etc/ld.so.conf; then
10315    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' ' '`
10316    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10317
10318  fi
10319
10320  # We used to test for /lib/ld.so.1 and disable shared libraries on
10321  # powerpc, because MkLinux only supported shared libraries with the
10322  # GNU dynamic linker.  Since this was broken with cross compilers,
10323  # most powerpc-linux boxes support dynamic linking these days and
10324  # people can always --disable-shared, the test was removed, and we
10325  # assume the GNU/Linux dynamic linker is in use.
10326  dynamic_linker='GNU/Linux ld.so'
10327  ;;
10328
10329netbsd*)
10330  version_type=sunos
10331  need_lib_prefix=no
10332  need_version=no
10333  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10334    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10335    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10336    dynamic_linker='NetBSD (a.out) ld.so'
10337  else
10338    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10339    soname_spec='${libname}${release}${shared_ext}$major'
10340    dynamic_linker='NetBSD ld.elf_so'
10341  fi
10342  shlibpath_var=LD_LIBRARY_PATH
10343  shlibpath_overrides_runpath=yes
10344  hardcode_into_libs=yes
10345  ;;
10346
10347newsos6)
10348  version_type=linux # correct to gnu/linux during the next big refactor
10349  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10350  shlibpath_var=LD_LIBRARY_PATH
10351  shlibpath_overrides_runpath=yes
10352  ;;
10353
10354*nto* | *qnx*)
10355  version_type=qnx
10356  need_lib_prefix=no
10357  need_version=no
10358  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10359  soname_spec='${libname}${release}${shared_ext}$major'
10360  shlibpath_var=LD_LIBRARY_PATH
10361  shlibpath_overrides_runpath=no
10362  hardcode_into_libs=yes
10363  dynamic_linker='ldqnx.so'
10364  ;;
10365
10366openbsd*)
10367  version_type=sunos
10368  sys_lib_dlsearch_path_spec="/usr/lib"
10369  need_lib_prefix=no
10370  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10371  case $host_os in
10372    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10373    *)				need_version=no  ;;
10374  esac
10375  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10376  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10377  shlibpath_var=LD_LIBRARY_PATH
10378  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10379    case $host_os in
10380      openbsd2.[89] | openbsd2.[89].*)
10381	shlibpath_overrides_runpath=no
10382	;;
10383      *)
10384	shlibpath_overrides_runpath=yes
10385	;;
10386      esac
10387  else
10388    shlibpath_overrides_runpath=yes
10389  fi
10390  ;;
10391
10392os2*)
10393  libname_spec='$name'
10394  shrext_cmds=".dll"
10395  need_lib_prefix=no
10396  library_names_spec='$libname${shared_ext} $libname.a'
10397  dynamic_linker='OS/2 ld.exe'
10398  shlibpath_var=LIBPATH
10399  ;;
10400
10401osf3* | osf4* | osf5*)
10402  version_type=osf
10403  need_lib_prefix=no
10404  need_version=no
10405  soname_spec='${libname}${release}${shared_ext}$major'
10406  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10407  shlibpath_var=LD_LIBRARY_PATH
10408  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10409  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10410  ;;
10411
10412rdos*)
10413  dynamic_linker=no
10414  ;;
10415
10416solaris*)
10417  version_type=linux # correct to gnu/linux during the next big refactor
10418  need_lib_prefix=no
10419  need_version=no
10420  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10421  soname_spec='${libname}${release}${shared_ext}$major'
10422  shlibpath_var=LD_LIBRARY_PATH
10423  shlibpath_overrides_runpath=yes
10424  hardcode_into_libs=yes
10425  # ldd complains unless libraries are executable
10426  postinstall_cmds='chmod +x $lib'
10427  ;;
10428
10429sunos4*)
10430  version_type=sunos
10431  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10432  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10433  shlibpath_var=LD_LIBRARY_PATH
10434  shlibpath_overrides_runpath=yes
10435  if test "$with_gnu_ld" = yes; then
10436    need_lib_prefix=no
10437  fi
10438  need_version=yes
10439  ;;
10440
10441sysv4 | sysv4.3*)
10442  version_type=linux # correct to gnu/linux during the next big refactor
10443  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10444  soname_spec='${libname}${release}${shared_ext}$major'
10445  shlibpath_var=LD_LIBRARY_PATH
10446  case $host_vendor in
10447    sni)
10448      shlibpath_overrides_runpath=no
10449      need_lib_prefix=no
10450      runpath_var=LD_RUN_PATH
10451      ;;
10452    siemens)
10453      need_lib_prefix=no
10454      ;;
10455    motorola)
10456      need_lib_prefix=no
10457      need_version=no
10458      shlibpath_overrides_runpath=no
10459      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10460      ;;
10461  esac
10462  ;;
10463
10464sysv4*MP*)
10465  if test -d /usr/nec ;then
10466    version_type=linux # correct to gnu/linux during the next big refactor
10467    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10468    soname_spec='$libname${shared_ext}.$major'
10469    shlibpath_var=LD_LIBRARY_PATH
10470  fi
10471  ;;
10472
10473sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10474  version_type=freebsd-elf
10475  need_lib_prefix=no
10476  need_version=no
10477  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10478  soname_spec='${libname}${release}${shared_ext}$major'
10479  shlibpath_var=LD_LIBRARY_PATH
10480  shlibpath_overrides_runpath=yes
10481  hardcode_into_libs=yes
10482  if test "$with_gnu_ld" = yes; then
10483    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10484  else
10485    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10486    case $host_os in
10487      sco3.2v5*)
10488        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10489	;;
10490    esac
10491  fi
10492  sys_lib_dlsearch_path_spec='/usr/lib'
10493  ;;
10494
10495tpf*)
10496  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10497  version_type=linux # correct to gnu/linux during the next big refactor
10498  need_lib_prefix=no
10499  need_version=no
10500  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10501  shlibpath_var=LD_LIBRARY_PATH
10502  shlibpath_overrides_runpath=no
10503  hardcode_into_libs=yes
10504  ;;
10505
10506uts4*)
10507  version_type=linux # correct to gnu/linux during the next big refactor
10508  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10509  soname_spec='${libname}${release}${shared_ext}$major'
10510  shlibpath_var=LD_LIBRARY_PATH
10511  ;;
10512
10513*)
10514  dynamic_linker=no
10515  ;;
10516esac
10517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10518$as_echo "$dynamic_linker" >&6; }
10519test "$dynamic_linker" = no && can_build_shared=no
10520
10521variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10522if test "$GCC" = yes; then
10523  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10524fi
10525
10526if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10527  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10528fi
10529if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10530  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10531fi
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10625$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10626hardcode_action=
10627if test -n "$hardcode_libdir_flag_spec" ||
10628   test -n "$runpath_var" ||
10629   test "X$hardcode_automatic" = "Xyes" ; then
10630
10631  # We can hardcode non-existent directories.
10632  if test "$hardcode_direct" != no &&
10633     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10634     # have to relink, otherwise we might link with an installed library
10635     # when we should be linking with a yet-to-be-installed one
10636     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10637     test "$hardcode_minus_L" != no; then
10638    # Linking always hardcodes the temporary library directory.
10639    hardcode_action=relink
10640  else
10641    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10642    hardcode_action=immediate
10643  fi
10644else
10645  # We cannot hardcode anything, or else we can only hardcode existing
10646  # directories.
10647  hardcode_action=unsupported
10648fi
10649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10650$as_echo "$hardcode_action" >&6; }
10651
10652if test "$hardcode_action" = relink ||
10653   test "$inherit_rpath" = yes; then
10654  # Fast installation is not supported
10655  enable_fast_install=no
10656elif test "$shlibpath_overrides_runpath" = yes ||
10657     test "$enable_shared" = no; then
10658  # Fast installation is not necessary
10659  enable_fast_install=needless
10660fi
10661
10662
10663
10664
10665
10666
10667  if test "x$enable_dlopen" != xyes; then
10668  enable_dlopen=unknown
10669  enable_dlopen_self=unknown
10670  enable_dlopen_self_static=unknown
10671else
10672  lt_cv_dlopen=no
10673  lt_cv_dlopen_libs=
10674
10675  case $host_os in
10676  beos*)
10677    lt_cv_dlopen="load_add_on"
10678    lt_cv_dlopen_libs=
10679    lt_cv_dlopen_self=yes
10680    ;;
10681
10682  mingw* | pw32* | cegcc*)
10683    lt_cv_dlopen="LoadLibrary"
10684    lt_cv_dlopen_libs=
10685    ;;
10686
10687  cygwin*)
10688    lt_cv_dlopen="dlopen"
10689    lt_cv_dlopen_libs=
10690    ;;
10691
10692  darwin*)
10693  # if libdl is installed we need to link against it
10694    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10695$as_echo_n "checking for dlopen in -ldl... " >&6; }
10696if ${ac_cv_lib_dl_dlopen+:} false; then :
10697  $as_echo_n "(cached) " >&6
10698else
10699  ac_check_lib_save_LIBS=$LIBS
10700LIBS="-ldl  $LIBS"
10701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702/* end confdefs.h.  */
10703
10704/* Override any GCC internal prototype to avoid an error.
10705   Use char because int might match the return type of a GCC
10706   builtin and then its argument prototype would still apply.  */
10707#ifdef __cplusplus
10708extern "C"
10709#endif
10710char dlopen ();
10711int
10712main ()
10713{
10714return dlopen ();
10715  ;
10716  return 0;
10717}
10718_ACEOF
10719if ac_fn_c_try_link "$LINENO"; then :
10720  ac_cv_lib_dl_dlopen=yes
10721else
10722  ac_cv_lib_dl_dlopen=no
10723fi
10724rm -f core conftest.err conftest.$ac_objext \
10725    conftest$ac_exeext conftest.$ac_ext
10726LIBS=$ac_check_lib_save_LIBS
10727fi
10728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10729$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10730if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10731  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10732else
10733
10734    lt_cv_dlopen="dyld"
10735    lt_cv_dlopen_libs=
10736    lt_cv_dlopen_self=yes
10737
10738fi
10739
10740    ;;
10741
10742  *)
10743    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10744if test "x$ac_cv_func_shl_load" = xyes; then :
10745  lt_cv_dlopen="shl_load"
10746else
10747  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10748$as_echo_n "checking for shl_load in -ldld... " >&6; }
10749if ${ac_cv_lib_dld_shl_load+:} false; then :
10750  $as_echo_n "(cached) " >&6
10751else
10752  ac_check_lib_save_LIBS=$LIBS
10753LIBS="-ldld  $LIBS"
10754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10755/* end confdefs.h.  */
10756
10757/* Override any GCC internal prototype to avoid an error.
10758   Use char because int might match the return type of a GCC
10759   builtin and then its argument prototype would still apply.  */
10760#ifdef __cplusplus
10761extern "C"
10762#endif
10763char shl_load ();
10764int
10765main ()
10766{
10767return shl_load ();
10768  ;
10769  return 0;
10770}
10771_ACEOF
10772if ac_fn_c_try_link "$LINENO"; then :
10773  ac_cv_lib_dld_shl_load=yes
10774else
10775  ac_cv_lib_dld_shl_load=no
10776fi
10777rm -f core conftest.err conftest.$ac_objext \
10778    conftest$ac_exeext conftest.$ac_ext
10779LIBS=$ac_check_lib_save_LIBS
10780fi
10781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10782$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10783if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10784  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10785else
10786  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10787if test "x$ac_cv_func_dlopen" = xyes; then :
10788  lt_cv_dlopen="dlopen"
10789else
10790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10791$as_echo_n "checking for dlopen in -ldl... " >&6; }
10792if ${ac_cv_lib_dl_dlopen+:} false; then :
10793  $as_echo_n "(cached) " >&6
10794else
10795  ac_check_lib_save_LIBS=$LIBS
10796LIBS="-ldl  $LIBS"
10797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10798/* end confdefs.h.  */
10799
10800/* Override any GCC internal prototype to avoid an error.
10801   Use char because int might match the return type of a GCC
10802   builtin and then its argument prototype would still apply.  */
10803#ifdef __cplusplus
10804extern "C"
10805#endif
10806char dlopen ();
10807int
10808main ()
10809{
10810return dlopen ();
10811  ;
10812  return 0;
10813}
10814_ACEOF
10815if ac_fn_c_try_link "$LINENO"; then :
10816  ac_cv_lib_dl_dlopen=yes
10817else
10818  ac_cv_lib_dl_dlopen=no
10819fi
10820rm -f core conftest.err conftest.$ac_objext \
10821    conftest$ac_exeext conftest.$ac_ext
10822LIBS=$ac_check_lib_save_LIBS
10823fi
10824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10825$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10826if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10827  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10828else
10829  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10830$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10831if ${ac_cv_lib_svld_dlopen+:} false; then :
10832  $as_echo_n "(cached) " >&6
10833else
10834  ac_check_lib_save_LIBS=$LIBS
10835LIBS="-lsvld  $LIBS"
10836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10837/* end confdefs.h.  */
10838
10839/* Override any GCC internal prototype to avoid an error.
10840   Use char because int might match the return type of a GCC
10841   builtin and then its argument prototype would still apply.  */
10842#ifdef __cplusplus
10843extern "C"
10844#endif
10845char dlopen ();
10846int
10847main ()
10848{
10849return dlopen ();
10850  ;
10851  return 0;
10852}
10853_ACEOF
10854if ac_fn_c_try_link "$LINENO"; then :
10855  ac_cv_lib_svld_dlopen=yes
10856else
10857  ac_cv_lib_svld_dlopen=no
10858fi
10859rm -f core conftest.err conftest.$ac_objext \
10860    conftest$ac_exeext conftest.$ac_ext
10861LIBS=$ac_check_lib_save_LIBS
10862fi
10863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10864$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10865if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10866  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10867else
10868  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10869$as_echo_n "checking for dld_link in -ldld... " >&6; }
10870if ${ac_cv_lib_dld_dld_link+:} false; then :
10871  $as_echo_n "(cached) " >&6
10872else
10873  ac_check_lib_save_LIBS=$LIBS
10874LIBS="-ldld  $LIBS"
10875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10876/* end confdefs.h.  */
10877
10878/* Override any GCC internal prototype to avoid an error.
10879   Use char because int might match the return type of a GCC
10880   builtin and then its argument prototype would still apply.  */
10881#ifdef __cplusplus
10882extern "C"
10883#endif
10884char dld_link ();
10885int
10886main ()
10887{
10888return dld_link ();
10889  ;
10890  return 0;
10891}
10892_ACEOF
10893if ac_fn_c_try_link "$LINENO"; then :
10894  ac_cv_lib_dld_dld_link=yes
10895else
10896  ac_cv_lib_dld_dld_link=no
10897fi
10898rm -f core conftest.err conftest.$ac_objext \
10899    conftest$ac_exeext conftest.$ac_ext
10900LIBS=$ac_check_lib_save_LIBS
10901fi
10902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10903$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10904if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10905  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10906fi
10907
10908
10909fi
10910
10911
10912fi
10913
10914
10915fi
10916
10917
10918fi
10919
10920
10921fi
10922
10923    ;;
10924  esac
10925
10926  if test "x$lt_cv_dlopen" != xno; then
10927    enable_dlopen=yes
10928  else
10929    enable_dlopen=no
10930  fi
10931
10932  case $lt_cv_dlopen in
10933  dlopen)
10934    save_CPPFLAGS="$CPPFLAGS"
10935    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10936
10937    save_LDFLAGS="$LDFLAGS"
10938    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10939
10940    save_LIBS="$LIBS"
10941    LIBS="$lt_cv_dlopen_libs $LIBS"
10942
10943    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10944$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10945if ${lt_cv_dlopen_self+:} false; then :
10946  $as_echo_n "(cached) " >&6
10947else
10948  	  if test "$cross_compiling" = yes; then :
10949  lt_cv_dlopen_self=cross
10950else
10951  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10952  lt_status=$lt_dlunknown
10953  cat > conftest.$ac_ext <<_LT_EOF
10954#line $LINENO "configure"
10955#include "confdefs.h"
10956
10957#if HAVE_DLFCN_H
10958#include <dlfcn.h>
10959#endif
10960
10961#include <stdio.h>
10962
10963#ifdef RTLD_GLOBAL
10964#  define LT_DLGLOBAL		RTLD_GLOBAL
10965#else
10966#  ifdef DL_GLOBAL
10967#    define LT_DLGLOBAL		DL_GLOBAL
10968#  else
10969#    define LT_DLGLOBAL		0
10970#  endif
10971#endif
10972
10973/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10974   find out it does not work in some platform. */
10975#ifndef LT_DLLAZY_OR_NOW
10976#  ifdef RTLD_LAZY
10977#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10978#  else
10979#    ifdef DL_LAZY
10980#      define LT_DLLAZY_OR_NOW		DL_LAZY
10981#    else
10982#      ifdef RTLD_NOW
10983#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10984#      else
10985#        ifdef DL_NOW
10986#          define LT_DLLAZY_OR_NOW	DL_NOW
10987#        else
10988#          define LT_DLLAZY_OR_NOW	0
10989#        endif
10990#      endif
10991#    endif
10992#  endif
10993#endif
10994
10995/* When -fvisbility=hidden is used, assume the code has been annotated
10996   correspondingly for the symbols needed.  */
10997#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10998int fnord () __attribute__((visibility("default")));
10999#endif
11000
11001int fnord () { return 42; }
11002int main ()
11003{
11004  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11005  int status = $lt_dlunknown;
11006
11007  if (self)
11008    {
11009      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11010      else
11011        {
11012	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11013          else puts (dlerror ());
11014	}
11015      /* dlclose (self); */
11016    }
11017  else
11018    puts (dlerror ());
11019
11020  return status;
11021}
11022_LT_EOF
11023  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11024  (eval $ac_link) 2>&5
11025  ac_status=$?
11026  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11027  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11028    (./conftest; exit; ) >&5 2>/dev/null
11029    lt_status=$?
11030    case x$lt_status in
11031      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11032      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11033      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11034    esac
11035  else :
11036    # compilation failed
11037    lt_cv_dlopen_self=no
11038  fi
11039fi
11040rm -fr conftest*
11041
11042
11043fi
11044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11045$as_echo "$lt_cv_dlopen_self" >&6; }
11046
11047    if test "x$lt_cv_dlopen_self" = xyes; then
11048      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11049      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11050$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11051if ${lt_cv_dlopen_self_static+:} false; then :
11052  $as_echo_n "(cached) " >&6
11053else
11054  	  if test "$cross_compiling" = yes; then :
11055  lt_cv_dlopen_self_static=cross
11056else
11057  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11058  lt_status=$lt_dlunknown
11059  cat > conftest.$ac_ext <<_LT_EOF
11060#line $LINENO "configure"
11061#include "confdefs.h"
11062
11063#if HAVE_DLFCN_H
11064#include <dlfcn.h>
11065#endif
11066
11067#include <stdio.h>
11068
11069#ifdef RTLD_GLOBAL
11070#  define LT_DLGLOBAL		RTLD_GLOBAL
11071#else
11072#  ifdef DL_GLOBAL
11073#    define LT_DLGLOBAL		DL_GLOBAL
11074#  else
11075#    define LT_DLGLOBAL		0
11076#  endif
11077#endif
11078
11079/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11080   find out it does not work in some platform. */
11081#ifndef LT_DLLAZY_OR_NOW
11082#  ifdef RTLD_LAZY
11083#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11084#  else
11085#    ifdef DL_LAZY
11086#      define LT_DLLAZY_OR_NOW		DL_LAZY
11087#    else
11088#      ifdef RTLD_NOW
11089#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11090#      else
11091#        ifdef DL_NOW
11092#          define LT_DLLAZY_OR_NOW	DL_NOW
11093#        else
11094#          define LT_DLLAZY_OR_NOW	0
11095#        endif
11096#      endif
11097#    endif
11098#  endif
11099#endif
11100
11101/* When -fvisbility=hidden is used, assume the code has been annotated
11102   correspondingly for the symbols needed.  */
11103#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11104int fnord () __attribute__((visibility("default")));
11105#endif
11106
11107int fnord () { return 42; }
11108int main ()
11109{
11110  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11111  int status = $lt_dlunknown;
11112
11113  if (self)
11114    {
11115      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11116      else
11117        {
11118	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11119          else puts (dlerror ());
11120	}
11121      /* dlclose (self); */
11122    }
11123  else
11124    puts (dlerror ());
11125
11126  return status;
11127}
11128_LT_EOF
11129  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11130  (eval $ac_link) 2>&5
11131  ac_status=$?
11132  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11133  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11134    (./conftest; exit; ) >&5 2>/dev/null
11135    lt_status=$?
11136    case x$lt_status in
11137      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11138      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11139      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11140    esac
11141  else :
11142    # compilation failed
11143    lt_cv_dlopen_self_static=no
11144  fi
11145fi
11146rm -fr conftest*
11147
11148
11149fi
11150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11151$as_echo "$lt_cv_dlopen_self_static" >&6; }
11152    fi
11153
11154    CPPFLAGS="$save_CPPFLAGS"
11155    LDFLAGS="$save_LDFLAGS"
11156    LIBS="$save_LIBS"
11157    ;;
11158  esac
11159
11160  case $lt_cv_dlopen_self in
11161  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11162  *) enable_dlopen_self=unknown ;;
11163  esac
11164
11165  case $lt_cv_dlopen_self_static in
11166  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11167  *) enable_dlopen_self_static=unknown ;;
11168  esac
11169fi
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187striplib=
11188old_striplib=
11189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11190$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11191if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11192  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11193  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11195$as_echo "yes" >&6; }
11196else
11197# FIXME - insert some real tests, host_os isn't really good enough
11198  case $host_os in
11199  darwin*)
11200    if test -n "$STRIP" ; then
11201      striplib="$STRIP -x"
11202      old_striplib="$STRIP -S"
11203      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11204$as_echo "yes" >&6; }
11205    else
11206      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11207$as_echo "no" >&6; }
11208    fi
11209    ;;
11210  *)
11211    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11212$as_echo "no" >&6; }
11213    ;;
11214  esac
11215fi
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228  # Report which library types will actually be built
11229  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11230$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11232$as_echo "$can_build_shared" >&6; }
11233
11234  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11235$as_echo_n "checking whether to build shared libraries... " >&6; }
11236  test "$can_build_shared" = "no" && enable_shared=no
11237
11238  # On AIX, shared libraries and static libraries use the same namespace, and
11239  # are all built from PIC.
11240  case $host_os in
11241  aix3*)
11242    test "$enable_shared" = yes && enable_static=no
11243    if test -n "$RANLIB"; then
11244      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11245      postinstall_cmds='$RANLIB $lib'
11246    fi
11247    ;;
11248
11249  aix[4-9]*)
11250    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11251      test "$enable_shared" = yes && enable_static=no
11252    fi
11253    ;;
11254  esac
11255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11256$as_echo "$enable_shared" >&6; }
11257
11258  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11259$as_echo_n "checking whether to build static libraries... " >&6; }
11260  # Make sure either enable_shared or enable_static is yes.
11261  test "$enable_shared" = yes || enable_static=yes
11262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11263$as_echo "$enable_static" >&6; }
11264
11265
11266
11267
11268fi
11269ac_ext=c
11270ac_cpp='$CPP $CPPFLAGS'
11271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11273ac_compiler_gnu=$ac_cv_c_compiler_gnu
11274
11275CC="$lt_save_CC"
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291        ac_config_commands="$ac_config_commands libtool"
11292
11293
11294
11295
11296# Only expand once:
11297
11298
11299ac_ext=c
11300ac_cpp='$CPP $CPPFLAGS'
11301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11303ac_compiler_gnu=$ac_cv_c_compiler_gnu
11304if test -n "$ac_tool_prefix"; then
11305  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11306set dummy ${ac_tool_prefix}gcc; ac_word=$2
11307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11308$as_echo_n "checking for $ac_word... " >&6; }
11309if ${ac_cv_prog_CC+:} false; then :
11310  $as_echo_n "(cached) " >&6
11311else
11312  if test -n "$CC"; then
11313  ac_cv_prog_CC="$CC" # Let the user override the test.
11314else
11315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11316for as_dir in $PATH
11317do
11318  IFS=$as_save_IFS
11319  test -z "$as_dir" && as_dir=.
11320    for ac_exec_ext in '' $ac_executable_extensions; do
11321  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11322    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11323    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11324    break 2
11325  fi
11326done
11327  done
11328IFS=$as_save_IFS
11329
11330fi
11331fi
11332CC=$ac_cv_prog_CC
11333if test -n "$CC"; then
11334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11335$as_echo "$CC" >&6; }
11336else
11337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11338$as_echo "no" >&6; }
11339fi
11340
11341
11342fi
11343if test -z "$ac_cv_prog_CC"; then
11344  ac_ct_CC=$CC
11345  # Extract the first word of "gcc", so it can be a program name with args.
11346set dummy gcc; ac_word=$2
11347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11348$as_echo_n "checking for $ac_word... " >&6; }
11349if ${ac_cv_prog_ac_ct_CC+:} false; then :
11350  $as_echo_n "(cached) " >&6
11351else
11352  if test -n "$ac_ct_CC"; then
11353  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11354else
11355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11356for as_dir in $PATH
11357do
11358  IFS=$as_save_IFS
11359  test -z "$as_dir" && as_dir=.
11360    for ac_exec_ext in '' $ac_executable_extensions; do
11361  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11362    ac_cv_prog_ac_ct_CC="gcc"
11363    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11364    break 2
11365  fi
11366done
11367  done
11368IFS=$as_save_IFS
11369
11370fi
11371fi
11372ac_ct_CC=$ac_cv_prog_ac_ct_CC
11373if test -n "$ac_ct_CC"; then
11374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11375$as_echo "$ac_ct_CC" >&6; }
11376else
11377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11378$as_echo "no" >&6; }
11379fi
11380
11381  if test "x$ac_ct_CC" = x; then
11382    CC=""
11383  else
11384    case $cross_compiling:$ac_tool_warned in
11385yes:)
11386{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11387$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11388ac_tool_warned=yes ;;
11389esac
11390    CC=$ac_ct_CC
11391  fi
11392else
11393  CC="$ac_cv_prog_CC"
11394fi
11395
11396if test -z "$CC"; then
11397          if test -n "$ac_tool_prefix"; then
11398    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11399set dummy ${ac_tool_prefix}cc; ac_word=$2
11400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11401$as_echo_n "checking for $ac_word... " >&6; }
11402if ${ac_cv_prog_CC+:} false; then :
11403  $as_echo_n "(cached) " >&6
11404else
11405  if test -n "$CC"; then
11406  ac_cv_prog_CC="$CC" # Let the user override the test.
11407else
11408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11409for as_dir in $PATH
11410do
11411  IFS=$as_save_IFS
11412  test -z "$as_dir" && as_dir=.
11413    for ac_exec_ext in '' $ac_executable_extensions; do
11414  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11415    ac_cv_prog_CC="${ac_tool_prefix}cc"
11416    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11417    break 2
11418  fi
11419done
11420  done
11421IFS=$as_save_IFS
11422
11423fi
11424fi
11425CC=$ac_cv_prog_CC
11426if test -n "$CC"; then
11427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11428$as_echo "$CC" >&6; }
11429else
11430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11431$as_echo "no" >&6; }
11432fi
11433
11434
11435  fi
11436fi
11437if test -z "$CC"; then
11438  # Extract the first word of "cc", so it can be a program name with args.
11439set dummy cc; ac_word=$2
11440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11441$as_echo_n "checking for $ac_word... " >&6; }
11442if ${ac_cv_prog_CC+:} false; then :
11443  $as_echo_n "(cached) " >&6
11444else
11445  if test -n "$CC"; then
11446  ac_cv_prog_CC="$CC" # Let the user override the test.
11447else
11448  ac_prog_rejected=no
11449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11450for as_dir in $PATH
11451do
11452  IFS=$as_save_IFS
11453  test -z "$as_dir" && as_dir=.
11454    for ac_exec_ext in '' $ac_executable_extensions; do
11455  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11456    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11457       ac_prog_rejected=yes
11458       continue
11459     fi
11460    ac_cv_prog_CC="cc"
11461    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11462    break 2
11463  fi
11464done
11465  done
11466IFS=$as_save_IFS
11467
11468if test $ac_prog_rejected = yes; then
11469  # We found a bogon in the path, so make sure we never use it.
11470  set dummy $ac_cv_prog_CC
11471  shift
11472  if test $# != 0; then
11473    # We chose a different compiler from the bogus one.
11474    # However, it has the same basename, so the bogon will be chosen
11475    # first if we set CC to just the basename; use the full file name.
11476    shift
11477    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11478  fi
11479fi
11480fi
11481fi
11482CC=$ac_cv_prog_CC
11483if test -n "$CC"; then
11484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11485$as_echo "$CC" >&6; }
11486else
11487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11488$as_echo "no" >&6; }
11489fi
11490
11491
11492fi
11493if test -z "$CC"; then
11494  if test -n "$ac_tool_prefix"; then
11495  for ac_prog in cl.exe
11496  do
11497    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11498set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11500$as_echo_n "checking for $ac_word... " >&6; }
11501if ${ac_cv_prog_CC+:} false; then :
11502  $as_echo_n "(cached) " >&6
11503else
11504  if test -n "$CC"; then
11505  ac_cv_prog_CC="$CC" # Let the user override the test.
11506else
11507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11508for as_dir in $PATH
11509do
11510  IFS=$as_save_IFS
11511  test -z "$as_dir" && as_dir=.
11512    for ac_exec_ext in '' $ac_executable_extensions; do
11513  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11514    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11515    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11516    break 2
11517  fi
11518done
11519  done
11520IFS=$as_save_IFS
11521
11522fi
11523fi
11524CC=$ac_cv_prog_CC
11525if test -n "$CC"; then
11526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11527$as_echo "$CC" >&6; }
11528else
11529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11530$as_echo "no" >&6; }
11531fi
11532
11533
11534    test -n "$CC" && break
11535  done
11536fi
11537if test -z "$CC"; then
11538  ac_ct_CC=$CC
11539  for ac_prog in cl.exe
11540do
11541  # Extract the first word of "$ac_prog", so it can be a program name with args.
11542set dummy $ac_prog; ac_word=$2
11543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11544$as_echo_n "checking for $ac_word... " >&6; }
11545if ${ac_cv_prog_ac_ct_CC+:} false; then :
11546  $as_echo_n "(cached) " >&6
11547else
11548  if test -n "$ac_ct_CC"; then
11549  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11550else
11551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11552for as_dir in $PATH
11553do
11554  IFS=$as_save_IFS
11555  test -z "$as_dir" && as_dir=.
11556    for ac_exec_ext in '' $ac_executable_extensions; do
11557  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11558    ac_cv_prog_ac_ct_CC="$ac_prog"
11559    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11560    break 2
11561  fi
11562done
11563  done
11564IFS=$as_save_IFS
11565
11566fi
11567fi
11568ac_ct_CC=$ac_cv_prog_ac_ct_CC
11569if test -n "$ac_ct_CC"; then
11570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11571$as_echo "$ac_ct_CC" >&6; }
11572else
11573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11574$as_echo "no" >&6; }
11575fi
11576
11577
11578  test -n "$ac_ct_CC" && break
11579done
11580
11581  if test "x$ac_ct_CC" = x; then
11582    CC=""
11583  else
11584    case $cross_compiling:$ac_tool_warned in
11585yes:)
11586{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11587$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11588ac_tool_warned=yes ;;
11589esac
11590    CC=$ac_ct_CC
11591  fi
11592fi
11593
11594fi
11595
11596
11597test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11598$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11599as_fn_error $? "no acceptable C compiler found in \$PATH
11600See \`config.log' for more details" "$LINENO" 5; }
11601
11602# Provide some information about the compiler.
11603$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11604set X $ac_compile
11605ac_compiler=$2
11606for ac_option in --version -v -V -qversion; do
11607  { { ac_try="$ac_compiler $ac_option >&5"
11608case "(($ac_try" in
11609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610  *) ac_try_echo=$ac_try;;
11611esac
11612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11613$as_echo "$ac_try_echo"; } >&5
11614  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11615  ac_status=$?
11616  if test -s conftest.err; then
11617    sed '10a\
11618... rest of stderr output deleted ...
11619         10q' conftest.err >conftest.er1
11620    cat conftest.er1 >&5
11621  fi
11622  rm -f conftest.er1 conftest.err
11623  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11624  test $ac_status = 0; }
11625done
11626
11627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11628$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11629if ${ac_cv_c_compiler_gnu+:} false; then :
11630  $as_echo_n "(cached) " >&6
11631else
11632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11633/* end confdefs.h.  */
11634
11635int
11636main ()
11637{
11638#ifndef __GNUC__
11639       choke me
11640#endif
11641
11642  ;
11643  return 0;
11644}
11645_ACEOF
11646if ac_fn_c_try_compile "$LINENO"; then :
11647  ac_compiler_gnu=yes
11648else
11649  ac_compiler_gnu=no
11650fi
11651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11652ac_cv_c_compiler_gnu=$ac_compiler_gnu
11653
11654fi
11655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11656$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11657if test $ac_compiler_gnu = yes; then
11658  GCC=yes
11659else
11660  GCC=
11661fi
11662ac_test_CFLAGS=${CFLAGS+set}
11663ac_save_CFLAGS=$CFLAGS
11664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11665$as_echo_n "checking whether $CC accepts -g... " >&6; }
11666if ${ac_cv_prog_cc_g+:} false; then :
11667  $as_echo_n "(cached) " >&6
11668else
11669  ac_save_c_werror_flag=$ac_c_werror_flag
11670   ac_c_werror_flag=yes
11671   ac_cv_prog_cc_g=no
11672   CFLAGS="-g"
11673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11674/* end confdefs.h.  */
11675
11676int
11677main ()
11678{
11679
11680  ;
11681  return 0;
11682}
11683_ACEOF
11684if ac_fn_c_try_compile "$LINENO"; then :
11685  ac_cv_prog_cc_g=yes
11686else
11687  CFLAGS=""
11688      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11689/* end confdefs.h.  */
11690
11691int
11692main ()
11693{
11694
11695  ;
11696  return 0;
11697}
11698_ACEOF
11699if ac_fn_c_try_compile "$LINENO"; then :
11700
11701else
11702  ac_c_werror_flag=$ac_save_c_werror_flag
11703	 CFLAGS="-g"
11704	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11705/* end confdefs.h.  */
11706
11707int
11708main ()
11709{
11710
11711  ;
11712  return 0;
11713}
11714_ACEOF
11715if ac_fn_c_try_compile "$LINENO"; then :
11716  ac_cv_prog_cc_g=yes
11717fi
11718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11719fi
11720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11721fi
11722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11723   ac_c_werror_flag=$ac_save_c_werror_flag
11724fi
11725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11726$as_echo "$ac_cv_prog_cc_g" >&6; }
11727if test "$ac_test_CFLAGS" = set; then
11728  CFLAGS=$ac_save_CFLAGS
11729elif test $ac_cv_prog_cc_g = yes; then
11730  if test "$GCC" = yes; then
11731    CFLAGS="-g -O2"
11732  else
11733    CFLAGS="-g"
11734  fi
11735else
11736  if test "$GCC" = yes; then
11737    CFLAGS="-O2"
11738  else
11739    CFLAGS=
11740  fi
11741fi
11742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11743$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11744if ${ac_cv_prog_cc_c89+:} false; then :
11745  $as_echo_n "(cached) " >&6
11746else
11747  ac_cv_prog_cc_c89=no
11748ac_save_CC=$CC
11749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11750/* end confdefs.h.  */
11751#include <stdarg.h>
11752#include <stdio.h>
11753#include <sys/types.h>
11754#include <sys/stat.h>
11755/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11756struct buf { int x; };
11757FILE * (*rcsopen) (struct buf *, struct stat *, int);
11758static char *e (p, i)
11759     char **p;
11760     int i;
11761{
11762  return p[i];
11763}
11764static char *f (char * (*g) (char **, int), char **p, ...)
11765{
11766  char *s;
11767  va_list v;
11768  va_start (v,p);
11769  s = g (p, va_arg (v,int));
11770  va_end (v);
11771  return s;
11772}
11773
11774/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11775   function prototypes and stuff, but not '\xHH' hex character constants.
11776   These don't provoke an error unfortunately, instead are silently treated
11777   as 'x'.  The following induces an error, until -std is added to get
11778   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11779   array size at least.  It's necessary to write '\x00'==0 to get something
11780   that's true only with -std.  */
11781int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11782
11783/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11784   inside strings and character constants.  */
11785#define FOO(x) 'x'
11786int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11787
11788int test (int i, double x);
11789struct s1 {int (*f) (int a);};
11790struct s2 {int (*f) (double a);};
11791int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11792int argc;
11793char **argv;
11794int
11795main ()
11796{
11797return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11798  ;
11799  return 0;
11800}
11801_ACEOF
11802for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11803	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11804do
11805  CC="$ac_save_CC $ac_arg"
11806  if ac_fn_c_try_compile "$LINENO"; then :
11807  ac_cv_prog_cc_c89=$ac_arg
11808fi
11809rm -f core conftest.err conftest.$ac_objext
11810  test "x$ac_cv_prog_cc_c89" != "xno" && break
11811done
11812rm -f conftest.$ac_ext
11813CC=$ac_save_CC
11814
11815fi
11816# AC_CACHE_VAL
11817case "x$ac_cv_prog_cc_c89" in
11818  x)
11819    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11820$as_echo "none needed" >&6; } ;;
11821  xno)
11822    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11823$as_echo "unsupported" >&6; } ;;
11824  *)
11825    CC="$CC $ac_cv_prog_cc_c89"
11826    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11827$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11828esac
11829if test "x$ac_cv_prog_cc_c89" != xno; then :
11830
11831fi
11832
11833ac_ext=c
11834ac_cpp='$CPP $CPPFLAGS'
11835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11837ac_compiler_gnu=$ac_cv_c_compiler_gnu
11838
11839depcc="$CC"   am_compiler_list=
11840
11841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11842$as_echo_n "checking dependency style of $depcc... " >&6; }
11843if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11844  $as_echo_n "(cached) " >&6
11845else
11846  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11847  # We make a subdir and do the tests there.  Otherwise we can end up
11848  # making bogus files that we don't know about and never remove.  For
11849  # instance it was reported that on HP-UX the gcc test will end up
11850  # making a dummy file named `D' -- because `-MD' means `put the output
11851  # in D'.
11852  rm -rf conftest.dir
11853  mkdir conftest.dir
11854  # Copy depcomp to subdir because otherwise we won't find it if we're
11855  # using a relative directory.
11856  cp "$am_depcomp" conftest.dir
11857  cd conftest.dir
11858  # We will build objects and dependencies in a subdirectory because
11859  # it helps to detect inapplicable dependency modes.  For instance
11860  # both Tru64's cc and ICC support -MD to output dependencies as a
11861  # side effect of compilation, but ICC will put the dependencies in
11862  # the current directory while Tru64 will put them in the object
11863  # directory.
11864  mkdir sub
11865
11866  am_cv_CC_dependencies_compiler_type=none
11867  if test "$am_compiler_list" = ""; then
11868     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11869  fi
11870  am__universal=false
11871  case " $depcc " in #(
11872     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11873     esac
11874
11875  for depmode in $am_compiler_list; do
11876    # Setup a source with many dependencies, because some compilers
11877    # like to wrap large dependency lists on column 80 (with \), and
11878    # we should not choose a depcomp mode which is confused by this.
11879    #
11880    # We need to recreate these files for each test, as the compiler may
11881    # overwrite some of them when testing with obscure command lines.
11882    # This happens at least with the AIX C compiler.
11883    : > sub/conftest.c
11884    for i in 1 2 3 4 5 6; do
11885      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11886      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11887      # Solaris 8's {/usr,}/bin/sh.
11888      touch sub/conftst$i.h
11889    done
11890    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11891
11892    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11893    # mode.  It turns out that the SunPro C++ compiler does not properly
11894    # handle `-M -o', and we need to detect this.  Also, some Intel
11895    # versions had trouble with output in subdirs
11896    am__obj=sub/conftest.${OBJEXT-o}
11897    am__minus_obj="-o $am__obj"
11898    case $depmode in
11899    gcc)
11900      # This depmode causes a compiler race in universal mode.
11901      test "$am__universal" = false || continue
11902      ;;
11903    nosideeffect)
11904      # after this tag, mechanisms are not by side-effect, so they'll
11905      # only be used when explicitly requested
11906      if test "x$enable_dependency_tracking" = xyes; then
11907	continue
11908      else
11909	break
11910      fi
11911      ;;
11912    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11913      # This compiler won't grok `-c -o', but also, the minuso test has
11914      # not run yet.  These depmodes are late enough in the game, and
11915      # so weak that their functioning should not be impacted.
11916      am__obj=conftest.${OBJEXT-o}
11917      am__minus_obj=
11918      ;;
11919    none) break ;;
11920    esac
11921    if depmode=$depmode \
11922       source=sub/conftest.c object=$am__obj \
11923       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11924       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11925         >/dev/null 2>conftest.err &&
11926       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11927       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11928       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11929       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11930      # icc doesn't choke on unknown options, it will just issue warnings
11931      # or remarks (even with -Werror).  So we grep stderr for any message
11932      # that says an option was ignored or not supported.
11933      # When given -MP, icc 7.0 and 7.1 complain thusly:
11934      #   icc: Command line warning: ignoring option '-M'; no argument required
11935      # The diagnosis changed in icc 8.0:
11936      #   icc: Command line remark: option '-MP' not supported
11937      if (grep 'ignoring option' conftest.err ||
11938          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11939        am_cv_CC_dependencies_compiler_type=$depmode
11940        break
11941      fi
11942    fi
11943  done
11944
11945  cd ..
11946  rm -rf conftest.dir
11947else
11948  am_cv_CC_dependencies_compiler_type=none
11949fi
11950
11951fi
11952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11953$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11954CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11955
11956 if
11957  test "x$enable_dependency_tracking" != xno \
11958  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11959  am__fastdepCC_TRUE=
11960  am__fastdepCC_FALSE='#'
11961else
11962  am__fastdepCC_TRUE='#'
11963  am__fastdepCC_FALSE=
11964fi
11965
11966
11967   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11968$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11969if ${ac_cv_prog_cc_c99+:} false; then :
11970  $as_echo_n "(cached) " >&6
11971else
11972  ac_cv_prog_cc_c99=no
11973ac_save_CC=$CC
11974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11975/* end confdefs.h.  */
11976#include <stdarg.h>
11977#include <stdbool.h>
11978#include <stdlib.h>
11979#include <wchar.h>
11980#include <stdio.h>
11981
11982// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11983#define debug(...) fprintf (stderr, __VA_ARGS__)
11984#define showlist(...) puts (#__VA_ARGS__)
11985#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11986static void
11987test_varargs_macros (void)
11988{
11989  int x = 1234;
11990  int y = 5678;
11991  debug ("Flag");
11992  debug ("X = %d\n", x);
11993  showlist (The first, second, and third items.);
11994  report (x>y, "x is %d but y is %d", x, y);
11995}
11996
11997// Check long long types.
11998#define BIG64 18446744073709551615ull
11999#define BIG32 4294967295ul
12000#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12001#if !BIG_OK
12002  your preprocessor is broken;
12003#endif
12004#if BIG_OK
12005#else
12006  your preprocessor is broken;
12007#endif
12008static long long int bignum = -9223372036854775807LL;
12009static unsigned long long int ubignum = BIG64;
12010
12011struct incomplete_array
12012{
12013  int datasize;
12014  double data[];
12015};
12016
12017struct named_init {
12018  int number;
12019  const wchar_t *name;
12020  double average;
12021};
12022
12023typedef const char *ccp;
12024
12025static inline int
12026test_restrict (ccp restrict text)
12027{
12028  // See if C++-style comments work.
12029  // Iterate through items via the restricted pointer.
12030  // Also check for declarations in for loops.
12031  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12032    continue;
12033  return 0;
12034}
12035
12036// Check varargs and va_copy.
12037static void
12038test_varargs (const char *format, ...)
12039{
12040  va_list args;
12041  va_start (args, format);
12042  va_list args_copy;
12043  va_copy (args_copy, args);
12044
12045  const char *str;
12046  int number;
12047  float fnumber;
12048
12049  while (*format)
12050    {
12051      switch (*format++)
12052	{
12053	case 's': // string
12054	  str = va_arg (args_copy, const char *);
12055	  break;
12056	case 'd': // int
12057	  number = va_arg (args_copy, int);
12058	  break;
12059	case 'f': // float
12060	  fnumber = va_arg (args_copy, double);
12061	  break;
12062	default:
12063	  break;
12064	}
12065    }
12066  va_end (args_copy);
12067  va_end (args);
12068}
12069
12070int
12071main ()
12072{
12073
12074  // Check bool.
12075  _Bool success = false;
12076
12077  // Check restrict.
12078  if (test_restrict ("String literal") == 0)
12079    success = true;
12080  char *restrict newvar = "Another string";
12081
12082  // Check varargs.
12083  test_varargs ("s, d' f .", "string", 65, 34.234);
12084  test_varargs_macros ();
12085
12086  // Check flexible array members.
12087  struct incomplete_array *ia =
12088    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12089  ia->datasize = 10;
12090  for (int i = 0; i < ia->datasize; ++i)
12091    ia->data[i] = i * 1.234;
12092
12093  // Check named initializers.
12094  struct named_init ni = {
12095    .number = 34,
12096    .name = L"Test wide string",
12097    .average = 543.34343,
12098  };
12099
12100  ni.number = 58;
12101
12102  int dynamic_array[ni.number];
12103  dynamic_array[ni.number - 1] = 543;
12104
12105  // work around unused variable warnings
12106  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12107	  || dynamic_array[ni.number - 1] != 543);
12108
12109  ;
12110  return 0;
12111}
12112_ACEOF
12113for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
12114do
12115  CC="$ac_save_CC $ac_arg"
12116  if ac_fn_c_try_compile "$LINENO"; then :
12117  ac_cv_prog_cc_c99=$ac_arg
12118fi
12119rm -f core conftest.err conftest.$ac_objext
12120  test "x$ac_cv_prog_cc_c99" != "xno" && break
12121done
12122rm -f conftest.$ac_ext
12123CC=$ac_save_CC
12124
12125fi
12126# AC_CACHE_VAL
12127case "x$ac_cv_prog_cc_c99" in
12128  x)
12129    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12130$as_echo "none needed" >&6; } ;;
12131  xno)
12132    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12133$as_echo "unsupported" >&6; } ;;
12134  *)
12135    CC="$CC $ac_cv_prog_cc_c99"
12136    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12137$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12138esac
12139if test "x$ac_cv_prog_cc_c99" != xno; then :
12140
12141fi
12142
12143
12144
12145
12146
12147
12148ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12149if test "x$ac_cv_have_decl___clang__" = xyes; then :
12150  CLANGCC="yes"
12151else
12152  CLANGCC="no"
12153fi
12154
12155ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12156if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12157  INTELCC="yes"
12158else
12159  INTELCC="no"
12160fi
12161
12162ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12163if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12164  SUNCC="yes"
12165else
12166  SUNCC="no"
12167fi
12168
12169
12170
12171
12172
12173# Check whether --enable-selective-werror was given.
12174if test "${enable_selective_werror+set}" = set; then :
12175  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12176else
12177  SELECTIVE_WERROR=yes
12178fi
12179
12180
12181
12182
12183
12184# -v is too short to test reliably with XORG_TESTSET_CFLAG
12185if test "x$SUNCC" = "xyes"; then
12186    BASE_CFLAGS="-v"
12187else
12188    BASE_CFLAGS=""
12189fi
12190
12191# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205xorg_testset_save_CFLAGS="$CFLAGS"
12206
12207if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12208	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12209	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12210$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12211if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12212  $as_echo_n "(cached) " >&6
12213else
12214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215/* end confdefs.h.  */
12216int i;
12217_ACEOF
12218if ac_fn_c_try_compile "$LINENO"; then :
12219  xorg_cv_cc_flag_unknown_warning_option=yes
12220else
12221  xorg_cv_cc_flag_unknown_warning_option=no
12222fi
12223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12224fi
12225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12226$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12227	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12228	CFLAGS="$xorg_testset_save_CFLAGS"
12229fi
12230
12231if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12232	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12233		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12234	fi
12235	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12236	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12237$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12238if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12239  $as_echo_n "(cached) " >&6
12240else
12241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12242/* end confdefs.h.  */
12243int i;
12244_ACEOF
12245if ac_fn_c_try_compile "$LINENO"; then :
12246  xorg_cv_cc_flag_unused_command_line_argument=yes
12247else
12248  xorg_cv_cc_flag_unused_command_line_argument=no
12249fi
12250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12251fi
12252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12253$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12254	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12255	CFLAGS="$xorg_testset_save_CFLAGS"
12256fi
12257
12258found="no"
12259
12260	if test $found = "no" ; then
12261		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12262			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12263		fi
12264
12265		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12266			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12267		fi
12268
12269		CFLAGS="$CFLAGS -Wall"
12270
12271		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12272$as_echo_n "checking if $CC supports -Wall... " >&6; }
12273		cacheid=xorg_cv_cc_flag__Wall
12274		if eval \${$cacheid+:} false; then :
12275  $as_echo_n "(cached) " >&6
12276else
12277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12278/* end confdefs.h.  */
12279int i;
12280int
12281main ()
12282{
12283
12284  ;
12285  return 0;
12286}
12287_ACEOF
12288if ac_fn_c_try_link "$LINENO"; then :
12289  eval $cacheid=yes
12290else
12291  eval $cacheid=no
12292fi
12293rm -f core conftest.err conftest.$ac_objext \
12294    conftest$ac_exeext conftest.$ac_ext
12295fi
12296
12297
12298		CFLAGS="$xorg_testset_save_CFLAGS"
12299
12300		eval supported=\$$cacheid
12301		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12302$as_echo "$supported" >&6; }
12303		if test "$supported" = "yes" ; then
12304			BASE_CFLAGS="$BASE_CFLAGS -Wall"
12305			found="yes"
12306		fi
12307	fi
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323xorg_testset_save_CFLAGS="$CFLAGS"
12324
12325if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12326	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12327	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12328$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12329if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12330  $as_echo_n "(cached) " >&6
12331else
12332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12333/* end confdefs.h.  */
12334int i;
12335_ACEOF
12336if ac_fn_c_try_compile "$LINENO"; then :
12337  xorg_cv_cc_flag_unknown_warning_option=yes
12338else
12339  xorg_cv_cc_flag_unknown_warning_option=no
12340fi
12341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12342fi
12343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12344$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12345	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12346	CFLAGS="$xorg_testset_save_CFLAGS"
12347fi
12348
12349if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12350	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12351		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12352	fi
12353	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12354	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12355$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12356if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12357  $as_echo_n "(cached) " >&6
12358else
12359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360/* end confdefs.h.  */
12361int i;
12362_ACEOF
12363if ac_fn_c_try_compile "$LINENO"; then :
12364  xorg_cv_cc_flag_unused_command_line_argument=yes
12365else
12366  xorg_cv_cc_flag_unused_command_line_argument=no
12367fi
12368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12369fi
12370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12371$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12372	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12373	CFLAGS="$xorg_testset_save_CFLAGS"
12374fi
12375
12376found="no"
12377
12378	if test $found = "no" ; then
12379		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12380			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12381		fi
12382
12383		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12384			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12385		fi
12386
12387		CFLAGS="$CFLAGS -Wpointer-arith"
12388
12389		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12390$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12391		cacheid=xorg_cv_cc_flag__Wpointer_arith
12392		if eval \${$cacheid+:} false; then :
12393  $as_echo_n "(cached) " >&6
12394else
12395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12396/* end confdefs.h.  */
12397int i;
12398int
12399main ()
12400{
12401
12402  ;
12403  return 0;
12404}
12405_ACEOF
12406if ac_fn_c_try_link "$LINENO"; then :
12407  eval $cacheid=yes
12408else
12409  eval $cacheid=no
12410fi
12411rm -f core conftest.err conftest.$ac_objext \
12412    conftest$ac_exeext conftest.$ac_ext
12413fi
12414
12415
12416		CFLAGS="$xorg_testset_save_CFLAGS"
12417
12418		eval supported=\$$cacheid
12419		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12420$as_echo "$supported" >&6; }
12421		if test "$supported" = "yes" ; then
12422			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12423			found="yes"
12424		fi
12425	fi
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441xorg_testset_save_CFLAGS="$CFLAGS"
12442
12443if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12444	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12445	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12446$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12447if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12448  $as_echo_n "(cached) " >&6
12449else
12450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12451/* end confdefs.h.  */
12452int i;
12453_ACEOF
12454if ac_fn_c_try_compile "$LINENO"; then :
12455  xorg_cv_cc_flag_unknown_warning_option=yes
12456else
12457  xorg_cv_cc_flag_unknown_warning_option=no
12458fi
12459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12460fi
12461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12462$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12463	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12464	CFLAGS="$xorg_testset_save_CFLAGS"
12465fi
12466
12467if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12468	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12469		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12470	fi
12471	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12472	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12473$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12474if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12475  $as_echo_n "(cached) " >&6
12476else
12477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12478/* end confdefs.h.  */
12479int i;
12480_ACEOF
12481if ac_fn_c_try_compile "$LINENO"; then :
12482  xorg_cv_cc_flag_unused_command_line_argument=yes
12483else
12484  xorg_cv_cc_flag_unused_command_line_argument=no
12485fi
12486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12487fi
12488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12489$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12490	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12491	CFLAGS="$xorg_testset_save_CFLAGS"
12492fi
12493
12494found="no"
12495
12496	if test $found = "no" ; then
12497		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12498			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12499		fi
12500
12501		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12502			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12503		fi
12504
12505		CFLAGS="$CFLAGS -Wmissing-declarations"
12506
12507		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12508$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12509		cacheid=xorg_cv_cc_flag__Wmissing_declarations
12510		if eval \${$cacheid+:} false; then :
12511  $as_echo_n "(cached) " >&6
12512else
12513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12514/* end confdefs.h.  */
12515int i;
12516int
12517main ()
12518{
12519
12520  ;
12521  return 0;
12522}
12523_ACEOF
12524if ac_fn_c_try_link "$LINENO"; then :
12525  eval $cacheid=yes
12526else
12527  eval $cacheid=no
12528fi
12529rm -f core conftest.err conftest.$ac_objext \
12530    conftest$ac_exeext conftest.$ac_ext
12531fi
12532
12533
12534		CFLAGS="$xorg_testset_save_CFLAGS"
12535
12536		eval supported=\$$cacheid
12537		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12538$as_echo "$supported" >&6; }
12539		if test "$supported" = "yes" ; then
12540			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12541			found="yes"
12542		fi
12543	fi
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559xorg_testset_save_CFLAGS="$CFLAGS"
12560
12561if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12562	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12563	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12564$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12565if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12566  $as_echo_n "(cached) " >&6
12567else
12568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569/* end confdefs.h.  */
12570int i;
12571_ACEOF
12572if ac_fn_c_try_compile "$LINENO"; then :
12573  xorg_cv_cc_flag_unknown_warning_option=yes
12574else
12575  xorg_cv_cc_flag_unknown_warning_option=no
12576fi
12577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12578fi
12579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12580$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12581	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12582	CFLAGS="$xorg_testset_save_CFLAGS"
12583fi
12584
12585if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12586	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12587		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12588	fi
12589	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12590	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12591$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12592if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12593  $as_echo_n "(cached) " >&6
12594else
12595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596/* end confdefs.h.  */
12597int i;
12598_ACEOF
12599if ac_fn_c_try_compile "$LINENO"; then :
12600  xorg_cv_cc_flag_unused_command_line_argument=yes
12601else
12602  xorg_cv_cc_flag_unused_command_line_argument=no
12603fi
12604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12605fi
12606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12607$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12608	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12609	CFLAGS="$xorg_testset_save_CFLAGS"
12610fi
12611
12612found="no"
12613
12614	if test $found = "no" ; then
12615		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12616			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12617		fi
12618
12619		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12620			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12621		fi
12622
12623		CFLAGS="$CFLAGS -Wformat=2"
12624
12625		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12626$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12627		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
12628		if eval \${$cacheid+:} false; then :
12629  $as_echo_n "(cached) " >&6
12630else
12631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12632/* end confdefs.h.  */
12633int i;
12634int
12635main ()
12636{
12637
12638  ;
12639  return 0;
12640}
12641_ACEOF
12642if ac_fn_c_try_link "$LINENO"; then :
12643  eval $cacheid=yes
12644else
12645  eval $cacheid=no
12646fi
12647rm -f core conftest.err conftest.$ac_objext \
12648    conftest$ac_exeext conftest.$ac_ext
12649fi
12650
12651
12652		CFLAGS="$xorg_testset_save_CFLAGS"
12653
12654		eval supported=\$$cacheid
12655		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12656$as_echo "$supported" >&6; }
12657		if test "$supported" = "yes" ; then
12658			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12659			found="yes"
12660		fi
12661	fi
12662
12663	if test $found = "no" ; then
12664		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12665			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12666		fi
12667
12668		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12669			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12670		fi
12671
12672		CFLAGS="$CFLAGS -Wformat"
12673
12674		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12675$as_echo_n "checking if $CC supports -Wformat... " >&6; }
12676		cacheid=xorg_cv_cc_flag__Wformat
12677		if eval \${$cacheid+:} false; then :
12678  $as_echo_n "(cached) " >&6
12679else
12680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12681/* end confdefs.h.  */
12682int i;
12683int
12684main ()
12685{
12686
12687  ;
12688  return 0;
12689}
12690_ACEOF
12691if ac_fn_c_try_link "$LINENO"; then :
12692  eval $cacheid=yes
12693else
12694  eval $cacheid=no
12695fi
12696rm -f core conftest.err conftest.$ac_objext \
12697    conftest$ac_exeext conftest.$ac_ext
12698fi
12699
12700
12701		CFLAGS="$xorg_testset_save_CFLAGS"
12702
12703		eval supported=\$$cacheid
12704		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12705$as_echo "$supported" >&6; }
12706		if test "$supported" = "yes" ; then
12707			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12708			found="yes"
12709		fi
12710	fi
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728xorg_testset_save_CFLAGS="$CFLAGS"
12729
12730if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12731	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12732	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12733$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12734if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12735  $as_echo_n "(cached) " >&6
12736else
12737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12738/* end confdefs.h.  */
12739int i;
12740_ACEOF
12741if ac_fn_c_try_compile "$LINENO"; then :
12742  xorg_cv_cc_flag_unknown_warning_option=yes
12743else
12744  xorg_cv_cc_flag_unknown_warning_option=no
12745fi
12746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12747fi
12748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12749$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12750	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12751	CFLAGS="$xorg_testset_save_CFLAGS"
12752fi
12753
12754if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12755	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12756		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12757	fi
12758	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12759	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12760$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12761if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12762  $as_echo_n "(cached) " >&6
12763else
12764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12765/* end confdefs.h.  */
12766int i;
12767_ACEOF
12768if ac_fn_c_try_compile "$LINENO"; then :
12769  xorg_cv_cc_flag_unused_command_line_argument=yes
12770else
12771  xorg_cv_cc_flag_unused_command_line_argument=no
12772fi
12773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12774fi
12775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12776$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12777	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12778	CFLAGS="$xorg_testset_save_CFLAGS"
12779fi
12780
12781found="no"
12782
12783	if test $found = "no" ; then
12784		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12785			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12786		fi
12787
12788		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12789			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12790		fi
12791
12792		CFLAGS="$CFLAGS -Wstrict-prototypes"
12793
12794		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12795$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12796		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12797		if eval \${$cacheid+:} false; then :
12798  $as_echo_n "(cached) " >&6
12799else
12800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12801/* end confdefs.h.  */
12802int i;
12803int
12804main ()
12805{
12806
12807  ;
12808  return 0;
12809}
12810_ACEOF
12811if ac_fn_c_try_link "$LINENO"; then :
12812  eval $cacheid=yes
12813else
12814  eval $cacheid=no
12815fi
12816rm -f core conftest.err conftest.$ac_objext \
12817    conftest$ac_exeext conftest.$ac_ext
12818fi
12819
12820
12821		CFLAGS="$xorg_testset_save_CFLAGS"
12822
12823		eval supported=\$$cacheid
12824		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12825$as_echo "$supported" >&6; }
12826		if test "$supported" = "yes" ; then
12827			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12828			found="yes"
12829		fi
12830	fi
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846xorg_testset_save_CFLAGS="$CFLAGS"
12847
12848if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12849	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12850	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12851$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12852if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12853  $as_echo_n "(cached) " >&6
12854else
12855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12856/* end confdefs.h.  */
12857int i;
12858_ACEOF
12859if ac_fn_c_try_compile "$LINENO"; then :
12860  xorg_cv_cc_flag_unknown_warning_option=yes
12861else
12862  xorg_cv_cc_flag_unknown_warning_option=no
12863fi
12864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12865fi
12866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12867$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12868	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12869	CFLAGS="$xorg_testset_save_CFLAGS"
12870fi
12871
12872if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12873	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12874		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12875	fi
12876	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12877	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12878$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12879if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12880  $as_echo_n "(cached) " >&6
12881else
12882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12883/* end confdefs.h.  */
12884int i;
12885_ACEOF
12886if ac_fn_c_try_compile "$LINENO"; then :
12887  xorg_cv_cc_flag_unused_command_line_argument=yes
12888else
12889  xorg_cv_cc_flag_unused_command_line_argument=no
12890fi
12891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12892fi
12893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12894$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12895	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12896	CFLAGS="$xorg_testset_save_CFLAGS"
12897fi
12898
12899found="no"
12900
12901	if test $found = "no" ; then
12902		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12903			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12904		fi
12905
12906		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12907			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12908		fi
12909
12910		CFLAGS="$CFLAGS -Wmissing-prototypes"
12911
12912		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12913$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12914		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12915		if eval \${$cacheid+:} false; then :
12916  $as_echo_n "(cached) " >&6
12917else
12918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12919/* end confdefs.h.  */
12920int i;
12921int
12922main ()
12923{
12924
12925  ;
12926  return 0;
12927}
12928_ACEOF
12929if ac_fn_c_try_link "$LINENO"; then :
12930  eval $cacheid=yes
12931else
12932  eval $cacheid=no
12933fi
12934rm -f core conftest.err conftest.$ac_objext \
12935    conftest$ac_exeext conftest.$ac_ext
12936fi
12937
12938
12939		CFLAGS="$xorg_testset_save_CFLAGS"
12940
12941		eval supported=\$$cacheid
12942		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12943$as_echo "$supported" >&6; }
12944		if test "$supported" = "yes" ; then
12945			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12946			found="yes"
12947		fi
12948	fi
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964xorg_testset_save_CFLAGS="$CFLAGS"
12965
12966if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12967	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12968	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12969$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12970if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12971  $as_echo_n "(cached) " >&6
12972else
12973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12974/* end confdefs.h.  */
12975int i;
12976_ACEOF
12977if ac_fn_c_try_compile "$LINENO"; then :
12978  xorg_cv_cc_flag_unknown_warning_option=yes
12979else
12980  xorg_cv_cc_flag_unknown_warning_option=no
12981fi
12982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12983fi
12984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12985$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12986	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12987	CFLAGS="$xorg_testset_save_CFLAGS"
12988fi
12989
12990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12991	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12992		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12993	fi
12994	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12995	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12996$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12997if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12998  $as_echo_n "(cached) " >&6
12999else
13000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13001/* end confdefs.h.  */
13002int i;
13003_ACEOF
13004if ac_fn_c_try_compile "$LINENO"; then :
13005  xorg_cv_cc_flag_unused_command_line_argument=yes
13006else
13007  xorg_cv_cc_flag_unused_command_line_argument=no
13008fi
13009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13010fi
13011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13012$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13013	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13014	CFLAGS="$xorg_testset_save_CFLAGS"
13015fi
13016
13017found="no"
13018
13019	if test $found = "no" ; then
13020		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13021			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13022		fi
13023
13024		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13025			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13026		fi
13027
13028		CFLAGS="$CFLAGS -Wnested-externs"
13029
13030		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13031$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13032		cacheid=xorg_cv_cc_flag__Wnested_externs
13033		if eval \${$cacheid+:} false; then :
13034  $as_echo_n "(cached) " >&6
13035else
13036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13037/* end confdefs.h.  */
13038int i;
13039int
13040main ()
13041{
13042
13043  ;
13044  return 0;
13045}
13046_ACEOF
13047if ac_fn_c_try_link "$LINENO"; then :
13048  eval $cacheid=yes
13049else
13050  eval $cacheid=no
13051fi
13052rm -f core conftest.err conftest.$ac_objext \
13053    conftest$ac_exeext conftest.$ac_ext
13054fi
13055
13056
13057		CFLAGS="$xorg_testset_save_CFLAGS"
13058
13059		eval supported=\$$cacheid
13060		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13061$as_echo "$supported" >&6; }
13062		if test "$supported" = "yes" ; then
13063			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13064			found="yes"
13065		fi
13066	fi
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082xorg_testset_save_CFLAGS="$CFLAGS"
13083
13084if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13085	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13086	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13087$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13088if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13089  $as_echo_n "(cached) " >&6
13090else
13091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13092/* end confdefs.h.  */
13093int i;
13094_ACEOF
13095if ac_fn_c_try_compile "$LINENO"; then :
13096  xorg_cv_cc_flag_unknown_warning_option=yes
13097else
13098  xorg_cv_cc_flag_unknown_warning_option=no
13099fi
13100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13101fi
13102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13103$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13104	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13105	CFLAGS="$xorg_testset_save_CFLAGS"
13106fi
13107
13108if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13109	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13110		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13111	fi
13112	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13113	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13114$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13115if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13116  $as_echo_n "(cached) " >&6
13117else
13118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13119/* end confdefs.h.  */
13120int i;
13121_ACEOF
13122if ac_fn_c_try_compile "$LINENO"; then :
13123  xorg_cv_cc_flag_unused_command_line_argument=yes
13124else
13125  xorg_cv_cc_flag_unused_command_line_argument=no
13126fi
13127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13128fi
13129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13130$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13131	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13132	CFLAGS="$xorg_testset_save_CFLAGS"
13133fi
13134
13135found="no"
13136
13137	if test $found = "no" ; then
13138		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13139			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13140		fi
13141
13142		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13143			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13144		fi
13145
13146		CFLAGS="$CFLAGS -Wbad-function-cast"
13147
13148		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13149$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13150		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13151		if eval \${$cacheid+:} false; then :
13152  $as_echo_n "(cached) " >&6
13153else
13154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13155/* end confdefs.h.  */
13156int i;
13157int
13158main ()
13159{
13160
13161  ;
13162  return 0;
13163}
13164_ACEOF
13165if ac_fn_c_try_link "$LINENO"; then :
13166  eval $cacheid=yes
13167else
13168  eval $cacheid=no
13169fi
13170rm -f core conftest.err conftest.$ac_objext \
13171    conftest$ac_exeext conftest.$ac_ext
13172fi
13173
13174
13175		CFLAGS="$xorg_testset_save_CFLAGS"
13176
13177		eval supported=\$$cacheid
13178		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13179$as_echo "$supported" >&6; }
13180		if test "$supported" = "yes" ; then
13181			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13182			found="yes"
13183		fi
13184	fi
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200xorg_testset_save_CFLAGS="$CFLAGS"
13201
13202if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13203	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13204	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13205$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13206if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13207  $as_echo_n "(cached) " >&6
13208else
13209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13210/* end confdefs.h.  */
13211int i;
13212_ACEOF
13213if ac_fn_c_try_compile "$LINENO"; then :
13214  xorg_cv_cc_flag_unknown_warning_option=yes
13215else
13216  xorg_cv_cc_flag_unknown_warning_option=no
13217fi
13218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13219fi
13220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13221$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13222	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13223	CFLAGS="$xorg_testset_save_CFLAGS"
13224fi
13225
13226if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13227	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13228		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13229	fi
13230	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13231	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13232$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13233if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13234  $as_echo_n "(cached) " >&6
13235else
13236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237/* end confdefs.h.  */
13238int i;
13239_ACEOF
13240if ac_fn_c_try_compile "$LINENO"; then :
13241  xorg_cv_cc_flag_unused_command_line_argument=yes
13242else
13243  xorg_cv_cc_flag_unused_command_line_argument=no
13244fi
13245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13246fi
13247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13248$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13249	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13250	CFLAGS="$xorg_testset_save_CFLAGS"
13251fi
13252
13253found="no"
13254
13255	if test $found = "no" ; then
13256		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13257			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13258		fi
13259
13260		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13261			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13262		fi
13263
13264		CFLAGS="$CFLAGS -Wold-style-definition"
13265
13266		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13267$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13268		cacheid=xorg_cv_cc_flag__Wold_style_definition
13269		if eval \${$cacheid+:} false; then :
13270  $as_echo_n "(cached) " >&6
13271else
13272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13273/* end confdefs.h.  */
13274int i;
13275int
13276main ()
13277{
13278
13279  ;
13280  return 0;
13281}
13282_ACEOF
13283if ac_fn_c_try_link "$LINENO"; then :
13284  eval $cacheid=yes
13285else
13286  eval $cacheid=no
13287fi
13288rm -f core conftest.err conftest.$ac_objext \
13289    conftest$ac_exeext conftest.$ac_ext
13290fi
13291
13292
13293		CFLAGS="$xorg_testset_save_CFLAGS"
13294
13295		eval supported=\$$cacheid
13296		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13297$as_echo "$supported" >&6; }
13298		if test "$supported" = "yes" ; then
13299			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13300			found="yes"
13301		fi
13302	fi
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318xorg_testset_save_CFLAGS="$CFLAGS"
13319
13320if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13321	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13322	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13323$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13324if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13325  $as_echo_n "(cached) " >&6
13326else
13327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328/* end confdefs.h.  */
13329int i;
13330_ACEOF
13331if ac_fn_c_try_compile "$LINENO"; then :
13332  xorg_cv_cc_flag_unknown_warning_option=yes
13333else
13334  xorg_cv_cc_flag_unknown_warning_option=no
13335fi
13336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13337fi
13338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13339$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13340	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13341	CFLAGS="$xorg_testset_save_CFLAGS"
13342fi
13343
13344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13345	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13346		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13347	fi
13348	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13349	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13350$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13351if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13352  $as_echo_n "(cached) " >&6
13353else
13354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355/* end confdefs.h.  */
13356int i;
13357_ACEOF
13358if ac_fn_c_try_compile "$LINENO"; then :
13359  xorg_cv_cc_flag_unused_command_line_argument=yes
13360else
13361  xorg_cv_cc_flag_unused_command_line_argument=no
13362fi
13363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13364fi
13365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13366$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13367	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13368	CFLAGS="$xorg_testset_save_CFLAGS"
13369fi
13370
13371found="no"
13372
13373	if test $found = "no" ; then
13374		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13375			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13376		fi
13377
13378		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13379			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13380		fi
13381
13382		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13383
13384		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13385$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13386		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13387		if eval \${$cacheid+:} false; then :
13388  $as_echo_n "(cached) " >&6
13389else
13390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13391/* end confdefs.h.  */
13392int i;
13393int
13394main ()
13395{
13396
13397  ;
13398  return 0;
13399}
13400_ACEOF
13401if ac_fn_c_try_link "$LINENO"; then :
13402  eval $cacheid=yes
13403else
13404  eval $cacheid=no
13405fi
13406rm -f core conftest.err conftest.$ac_objext \
13407    conftest$ac_exeext conftest.$ac_ext
13408fi
13409
13410
13411		CFLAGS="$xorg_testset_save_CFLAGS"
13412
13413		eval supported=\$$cacheid
13414		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13415$as_echo "$supported" >&6; }
13416		if test "$supported" = "yes" ; then
13417			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13418			found="yes"
13419		fi
13420	fi
13421
13422
13423
13424
13425
13426# This chunk adds additional warnings that could catch undesired effects.
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440xorg_testset_save_CFLAGS="$CFLAGS"
13441
13442if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13443	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13444	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13445$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13446if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13447  $as_echo_n "(cached) " >&6
13448else
13449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13450/* end confdefs.h.  */
13451int i;
13452_ACEOF
13453if ac_fn_c_try_compile "$LINENO"; then :
13454  xorg_cv_cc_flag_unknown_warning_option=yes
13455else
13456  xorg_cv_cc_flag_unknown_warning_option=no
13457fi
13458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13459fi
13460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13461$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13462	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13463	CFLAGS="$xorg_testset_save_CFLAGS"
13464fi
13465
13466if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13467	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13468		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13469	fi
13470	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13471	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13472$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13473if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13474  $as_echo_n "(cached) " >&6
13475else
13476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13477/* end confdefs.h.  */
13478int i;
13479_ACEOF
13480if ac_fn_c_try_compile "$LINENO"; then :
13481  xorg_cv_cc_flag_unused_command_line_argument=yes
13482else
13483  xorg_cv_cc_flag_unused_command_line_argument=no
13484fi
13485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13486fi
13487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13488$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13489	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13490	CFLAGS="$xorg_testset_save_CFLAGS"
13491fi
13492
13493found="no"
13494
13495	if test $found = "no" ; then
13496		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13497			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13498		fi
13499
13500		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13501			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13502		fi
13503
13504		CFLAGS="$CFLAGS -Wunused"
13505
13506		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13507$as_echo_n "checking if $CC supports -Wunused... " >&6; }
13508		cacheid=xorg_cv_cc_flag__Wunused
13509		if eval \${$cacheid+:} false; then :
13510  $as_echo_n "(cached) " >&6
13511else
13512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13513/* end confdefs.h.  */
13514int i;
13515int
13516main ()
13517{
13518
13519  ;
13520  return 0;
13521}
13522_ACEOF
13523if ac_fn_c_try_link "$LINENO"; then :
13524  eval $cacheid=yes
13525else
13526  eval $cacheid=no
13527fi
13528rm -f core conftest.err conftest.$ac_objext \
13529    conftest$ac_exeext conftest.$ac_ext
13530fi
13531
13532
13533		CFLAGS="$xorg_testset_save_CFLAGS"
13534
13535		eval supported=\$$cacheid
13536		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13537$as_echo "$supported" >&6; }
13538		if test "$supported" = "yes" ; then
13539			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13540			found="yes"
13541		fi
13542	fi
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558xorg_testset_save_CFLAGS="$CFLAGS"
13559
13560if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13561	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13562	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13563$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13564if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13565  $as_echo_n "(cached) " >&6
13566else
13567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13568/* end confdefs.h.  */
13569int i;
13570_ACEOF
13571if ac_fn_c_try_compile "$LINENO"; then :
13572  xorg_cv_cc_flag_unknown_warning_option=yes
13573else
13574  xorg_cv_cc_flag_unknown_warning_option=no
13575fi
13576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13577fi
13578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13579$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13580	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13581	CFLAGS="$xorg_testset_save_CFLAGS"
13582fi
13583
13584if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13585	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13586		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13587	fi
13588	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13589	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13590$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13591if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13592  $as_echo_n "(cached) " >&6
13593else
13594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595/* end confdefs.h.  */
13596int i;
13597_ACEOF
13598if ac_fn_c_try_compile "$LINENO"; then :
13599  xorg_cv_cc_flag_unused_command_line_argument=yes
13600else
13601  xorg_cv_cc_flag_unused_command_line_argument=no
13602fi
13603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13604fi
13605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13606$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13607	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13608	CFLAGS="$xorg_testset_save_CFLAGS"
13609fi
13610
13611found="no"
13612
13613	if test $found = "no" ; then
13614		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13615			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13616		fi
13617
13618		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13619			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13620		fi
13621
13622		CFLAGS="$CFLAGS -Wuninitialized"
13623
13624		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13625$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13626		cacheid=xorg_cv_cc_flag__Wuninitialized
13627		if eval \${$cacheid+:} false; then :
13628  $as_echo_n "(cached) " >&6
13629else
13630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13631/* end confdefs.h.  */
13632int i;
13633int
13634main ()
13635{
13636
13637  ;
13638  return 0;
13639}
13640_ACEOF
13641if ac_fn_c_try_link "$LINENO"; then :
13642  eval $cacheid=yes
13643else
13644  eval $cacheid=no
13645fi
13646rm -f core conftest.err conftest.$ac_objext \
13647    conftest$ac_exeext conftest.$ac_ext
13648fi
13649
13650
13651		CFLAGS="$xorg_testset_save_CFLAGS"
13652
13653		eval supported=\$$cacheid
13654		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13655$as_echo "$supported" >&6; }
13656		if test "$supported" = "yes" ; then
13657			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13658			found="yes"
13659		fi
13660	fi
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676xorg_testset_save_CFLAGS="$CFLAGS"
13677
13678if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13679	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13680	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13681$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13682if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13683  $as_echo_n "(cached) " >&6
13684else
13685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13686/* end confdefs.h.  */
13687int i;
13688_ACEOF
13689if ac_fn_c_try_compile "$LINENO"; then :
13690  xorg_cv_cc_flag_unknown_warning_option=yes
13691else
13692  xorg_cv_cc_flag_unknown_warning_option=no
13693fi
13694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13695fi
13696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13697$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13698	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13699	CFLAGS="$xorg_testset_save_CFLAGS"
13700fi
13701
13702if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13703	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13704		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13705	fi
13706	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13707	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13708$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13709if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13710  $as_echo_n "(cached) " >&6
13711else
13712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13713/* end confdefs.h.  */
13714int i;
13715_ACEOF
13716if ac_fn_c_try_compile "$LINENO"; then :
13717  xorg_cv_cc_flag_unused_command_line_argument=yes
13718else
13719  xorg_cv_cc_flag_unused_command_line_argument=no
13720fi
13721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13722fi
13723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13724$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13725	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13726	CFLAGS="$xorg_testset_save_CFLAGS"
13727fi
13728
13729found="no"
13730
13731	if test $found = "no" ; then
13732		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13733			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13734		fi
13735
13736		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13737			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13738		fi
13739
13740		CFLAGS="$CFLAGS -Wshadow"
13741
13742		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13743$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13744		cacheid=xorg_cv_cc_flag__Wshadow
13745		if eval \${$cacheid+:} false; then :
13746  $as_echo_n "(cached) " >&6
13747else
13748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13749/* end confdefs.h.  */
13750int i;
13751int
13752main ()
13753{
13754
13755  ;
13756  return 0;
13757}
13758_ACEOF
13759if ac_fn_c_try_link "$LINENO"; then :
13760  eval $cacheid=yes
13761else
13762  eval $cacheid=no
13763fi
13764rm -f core conftest.err conftest.$ac_objext \
13765    conftest$ac_exeext conftest.$ac_ext
13766fi
13767
13768
13769		CFLAGS="$xorg_testset_save_CFLAGS"
13770
13771		eval supported=\$$cacheid
13772		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13773$as_echo "$supported" >&6; }
13774		if test "$supported" = "yes" ; then
13775			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13776			found="yes"
13777		fi
13778	fi
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794xorg_testset_save_CFLAGS="$CFLAGS"
13795
13796if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13797	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13798	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13799$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13800if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13801  $as_echo_n "(cached) " >&6
13802else
13803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13804/* end confdefs.h.  */
13805int i;
13806_ACEOF
13807if ac_fn_c_try_compile "$LINENO"; then :
13808  xorg_cv_cc_flag_unknown_warning_option=yes
13809else
13810  xorg_cv_cc_flag_unknown_warning_option=no
13811fi
13812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13813fi
13814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13815$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13816	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13817	CFLAGS="$xorg_testset_save_CFLAGS"
13818fi
13819
13820if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13821	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13822		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13823	fi
13824	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13825	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13826$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13827if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13828  $as_echo_n "(cached) " >&6
13829else
13830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13831/* end confdefs.h.  */
13832int i;
13833_ACEOF
13834if ac_fn_c_try_compile "$LINENO"; then :
13835  xorg_cv_cc_flag_unused_command_line_argument=yes
13836else
13837  xorg_cv_cc_flag_unused_command_line_argument=no
13838fi
13839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13840fi
13841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13842$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13843	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13844	CFLAGS="$xorg_testset_save_CFLAGS"
13845fi
13846
13847found="no"
13848
13849	if test $found = "no" ; then
13850		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13851			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13852		fi
13853
13854		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13855			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13856		fi
13857
13858		CFLAGS="$CFLAGS -Wcast-qual"
13859
13860		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13861$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13862		cacheid=xorg_cv_cc_flag__Wcast_qual
13863		if eval \${$cacheid+:} false; then :
13864  $as_echo_n "(cached) " >&6
13865else
13866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13867/* end confdefs.h.  */
13868int i;
13869int
13870main ()
13871{
13872
13873  ;
13874  return 0;
13875}
13876_ACEOF
13877if ac_fn_c_try_link "$LINENO"; then :
13878  eval $cacheid=yes
13879else
13880  eval $cacheid=no
13881fi
13882rm -f core conftest.err conftest.$ac_objext \
13883    conftest$ac_exeext conftest.$ac_ext
13884fi
13885
13886
13887		CFLAGS="$xorg_testset_save_CFLAGS"
13888
13889		eval supported=\$$cacheid
13890		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13891$as_echo "$supported" >&6; }
13892		if test "$supported" = "yes" ; then
13893			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13894			found="yes"
13895		fi
13896	fi
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912xorg_testset_save_CFLAGS="$CFLAGS"
13913
13914if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13915	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13916	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13917$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13918if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13919  $as_echo_n "(cached) " >&6
13920else
13921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13922/* end confdefs.h.  */
13923int i;
13924_ACEOF
13925if ac_fn_c_try_compile "$LINENO"; then :
13926  xorg_cv_cc_flag_unknown_warning_option=yes
13927else
13928  xorg_cv_cc_flag_unknown_warning_option=no
13929fi
13930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13931fi
13932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13933$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13934	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13935	CFLAGS="$xorg_testset_save_CFLAGS"
13936fi
13937
13938if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13939	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13940		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13941	fi
13942	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13943	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13944$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13945if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13946  $as_echo_n "(cached) " >&6
13947else
13948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13949/* end confdefs.h.  */
13950int i;
13951_ACEOF
13952if ac_fn_c_try_compile "$LINENO"; then :
13953  xorg_cv_cc_flag_unused_command_line_argument=yes
13954else
13955  xorg_cv_cc_flag_unused_command_line_argument=no
13956fi
13957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13958fi
13959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13960$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13961	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13962	CFLAGS="$xorg_testset_save_CFLAGS"
13963fi
13964
13965found="no"
13966
13967	if test $found = "no" ; then
13968		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13969			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13970		fi
13971
13972		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13973			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13974		fi
13975
13976		CFLAGS="$CFLAGS -Wmissing-noreturn"
13977
13978		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13979$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13980		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13981		if eval \${$cacheid+:} false; then :
13982  $as_echo_n "(cached) " >&6
13983else
13984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13985/* end confdefs.h.  */
13986int i;
13987int
13988main ()
13989{
13990
13991  ;
13992  return 0;
13993}
13994_ACEOF
13995if ac_fn_c_try_link "$LINENO"; then :
13996  eval $cacheid=yes
13997else
13998  eval $cacheid=no
13999fi
14000rm -f core conftest.err conftest.$ac_objext \
14001    conftest$ac_exeext conftest.$ac_ext
14002fi
14003
14004
14005		CFLAGS="$xorg_testset_save_CFLAGS"
14006
14007		eval supported=\$$cacheid
14008		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14009$as_echo "$supported" >&6; }
14010		if test "$supported" = "yes" ; then
14011			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14012			found="yes"
14013		fi
14014	fi
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030xorg_testset_save_CFLAGS="$CFLAGS"
14031
14032if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14033	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14034	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14035$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14036if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14037  $as_echo_n "(cached) " >&6
14038else
14039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14040/* end confdefs.h.  */
14041int i;
14042_ACEOF
14043if ac_fn_c_try_compile "$LINENO"; then :
14044  xorg_cv_cc_flag_unknown_warning_option=yes
14045else
14046  xorg_cv_cc_flag_unknown_warning_option=no
14047fi
14048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14049fi
14050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14051$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14052	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14053	CFLAGS="$xorg_testset_save_CFLAGS"
14054fi
14055
14056if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14057	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14058		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14059	fi
14060	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14061	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14062$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14063if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14064  $as_echo_n "(cached) " >&6
14065else
14066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14067/* end confdefs.h.  */
14068int i;
14069_ACEOF
14070if ac_fn_c_try_compile "$LINENO"; then :
14071  xorg_cv_cc_flag_unused_command_line_argument=yes
14072else
14073  xorg_cv_cc_flag_unused_command_line_argument=no
14074fi
14075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14076fi
14077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14078$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14079	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14080	CFLAGS="$xorg_testset_save_CFLAGS"
14081fi
14082
14083found="no"
14084
14085	if test $found = "no" ; then
14086		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14087			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14088		fi
14089
14090		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14091			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14092		fi
14093
14094		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14095
14096		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14097$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14098		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14099		if eval \${$cacheid+:} false; then :
14100  $as_echo_n "(cached) " >&6
14101else
14102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14103/* end confdefs.h.  */
14104int i;
14105int
14106main ()
14107{
14108
14109  ;
14110  return 0;
14111}
14112_ACEOF
14113if ac_fn_c_try_link "$LINENO"; then :
14114  eval $cacheid=yes
14115else
14116  eval $cacheid=no
14117fi
14118rm -f core conftest.err conftest.$ac_objext \
14119    conftest$ac_exeext conftest.$ac_ext
14120fi
14121
14122
14123		CFLAGS="$xorg_testset_save_CFLAGS"
14124
14125		eval supported=\$$cacheid
14126		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14127$as_echo "$supported" >&6; }
14128		if test "$supported" = "yes" ; then
14129			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14130			found="yes"
14131		fi
14132	fi
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148xorg_testset_save_CFLAGS="$CFLAGS"
14149
14150if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14151	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14152	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14153$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14154if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14155  $as_echo_n "(cached) " >&6
14156else
14157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14158/* end confdefs.h.  */
14159int i;
14160_ACEOF
14161if ac_fn_c_try_compile "$LINENO"; then :
14162  xorg_cv_cc_flag_unknown_warning_option=yes
14163else
14164  xorg_cv_cc_flag_unknown_warning_option=no
14165fi
14166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14167fi
14168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14169$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14170	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14171	CFLAGS="$xorg_testset_save_CFLAGS"
14172fi
14173
14174if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14175	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14176		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14177	fi
14178	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14179	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14180$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14181if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14182  $as_echo_n "(cached) " >&6
14183else
14184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14185/* end confdefs.h.  */
14186int i;
14187_ACEOF
14188if ac_fn_c_try_compile "$LINENO"; then :
14189  xorg_cv_cc_flag_unused_command_line_argument=yes
14190else
14191  xorg_cv_cc_flag_unused_command_line_argument=no
14192fi
14193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14194fi
14195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14196$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14197	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14198	CFLAGS="$xorg_testset_save_CFLAGS"
14199fi
14200
14201found="no"
14202
14203	if test $found = "no" ; then
14204		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14205			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14206		fi
14207
14208		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14209			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14210		fi
14211
14212		CFLAGS="$CFLAGS -Wredundant-decls"
14213
14214		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14215$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14216		cacheid=xorg_cv_cc_flag__Wredundant_decls
14217		if eval \${$cacheid+:} false; then :
14218  $as_echo_n "(cached) " >&6
14219else
14220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14221/* end confdefs.h.  */
14222int i;
14223int
14224main ()
14225{
14226
14227  ;
14228  return 0;
14229}
14230_ACEOF
14231if ac_fn_c_try_link "$LINENO"; then :
14232  eval $cacheid=yes
14233else
14234  eval $cacheid=no
14235fi
14236rm -f core conftest.err conftest.$ac_objext \
14237    conftest$ac_exeext conftest.$ac_ext
14238fi
14239
14240
14241		CFLAGS="$xorg_testset_save_CFLAGS"
14242
14243		eval supported=\$$cacheid
14244		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14245$as_echo "$supported" >&6; }
14246		if test "$supported" = "yes" ; then
14247			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14248			found="yes"
14249		fi
14250	fi
14251
14252
14253
14254# These are currently disabled because they are noisy.  They will be enabled
14255# in the future once the codebase is sufficiently modernized to silence
14256# them.  For now, I don't want them to drown out the other warnings.
14257# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
14258# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14259# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14260
14261# Turn some warnings into errors, so we don't accidently get successful builds
14262# when there are problems that should be fixed.
14263
14264if test "x$SELECTIVE_WERROR" = "xyes" ; then
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278xorg_testset_save_CFLAGS="$CFLAGS"
14279
14280if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14281	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14282	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14283$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14284if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14285  $as_echo_n "(cached) " >&6
14286else
14287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14288/* end confdefs.h.  */
14289int i;
14290_ACEOF
14291if ac_fn_c_try_compile "$LINENO"; then :
14292  xorg_cv_cc_flag_unknown_warning_option=yes
14293else
14294  xorg_cv_cc_flag_unknown_warning_option=no
14295fi
14296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14297fi
14298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14299$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14300	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14301	CFLAGS="$xorg_testset_save_CFLAGS"
14302fi
14303
14304if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14305	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14306		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14307	fi
14308	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14309	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14310$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14311if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14312  $as_echo_n "(cached) " >&6
14313else
14314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14315/* end confdefs.h.  */
14316int i;
14317_ACEOF
14318if ac_fn_c_try_compile "$LINENO"; then :
14319  xorg_cv_cc_flag_unused_command_line_argument=yes
14320else
14321  xorg_cv_cc_flag_unused_command_line_argument=no
14322fi
14323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14324fi
14325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14326$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14327	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14328	CFLAGS="$xorg_testset_save_CFLAGS"
14329fi
14330
14331found="no"
14332
14333	if test $found = "no" ; then
14334		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14335			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14336		fi
14337
14338		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14339			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14340		fi
14341
14342		CFLAGS="$CFLAGS -Werror=implicit"
14343
14344		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14345$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14346		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
14347		if eval \${$cacheid+:} false; then :
14348  $as_echo_n "(cached) " >&6
14349else
14350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14351/* end confdefs.h.  */
14352int i;
14353int
14354main ()
14355{
14356
14357  ;
14358  return 0;
14359}
14360_ACEOF
14361if ac_fn_c_try_link "$LINENO"; then :
14362  eval $cacheid=yes
14363else
14364  eval $cacheid=no
14365fi
14366rm -f core conftest.err conftest.$ac_objext \
14367    conftest$ac_exeext conftest.$ac_ext
14368fi
14369
14370
14371		CFLAGS="$xorg_testset_save_CFLAGS"
14372
14373		eval supported=\$$cacheid
14374		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14375$as_echo "$supported" >&6; }
14376		if test "$supported" = "yes" ; then
14377			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14378			found="yes"
14379		fi
14380	fi
14381
14382	if test $found = "no" ; then
14383		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14384			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14385		fi
14386
14387		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14388			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14389		fi
14390
14391		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14392
14393		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14394$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14395		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
14396		if eval \${$cacheid+:} false; then :
14397  $as_echo_n "(cached) " >&6
14398else
14399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14400/* end confdefs.h.  */
14401int i;
14402int
14403main ()
14404{
14405
14406  ;
14407  return 0;
14408}
14409_ACEOF
14410if ac_fn_c_try_link "$LINENO"; then :
14411  eval $cacheid=yes
14412else
14413  eval $cacheid=no
14414fi
14415rm -f core conftest.err conftest.$ac_objext \
14416    conftest$ac_exeext conftest.$ac_ext
14417fi
14418
14419
14420		CFLAGS="$xorg_testset_save_CFLAGS"
14421
14422		eval supported=\$$cacheid
14423		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14424$as_echo "$supported" >&6; }
14425		if test "$supported" = "yes" ; then
14426			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14427			found="yes"
14428		fi
14429	fi
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445xorg_testset_save_CFLAGS="$CFLAGS"
14446
14447if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14448	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14449	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14450$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14451if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14452  $as_echo_n "(cached) " >&6
14453else
14454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14455/* end confdefs.h.  */
14456int i;
14457_ACEOF
14458if ac_fn_c_try_compile "$LINENO"; then :
14459  xorg_cv_cc_flag_unknown_warning_option=yes
14460else
14461  xorg_cv_cc_flag_unknown_warning_option=no
14462fi
14463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14464fi
14465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14466$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14467	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14468	CFLAGS="$xorg_testset_save_CFLAGS"
14469fi
14470
14471if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14472	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14473		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14474	fi
14475	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14476	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14477$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14478if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14479  $as_echo_n "(cached) " >&6
14480else
14481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14482/* end confdefs.h.  */
14483int i;
14484_ACEOF
14485if ac_fn_c_try_compile "$LINENO"; then :
14486  xorg_cv_cc_flag_unused_command_line_argument=yes
14487else
14488  xorg_cv_cc_flag_unused_command_line_argument=no
14489fi
14490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14491fi
14492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14493$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14494	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14495	CFLAGS="$xorg_testset_save_CFLAGS"
14496fi
14497
14498found="no"
14499
14500	if test $found = "no" ; then
14501		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14502			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14503		fi
14504
14505		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14506			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14507		fi
14508
14509		CFLAGS="$CFLAGS -Werror=nonnull"
14510
14511		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14512$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14513		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
14514		if eval \${$cacheid+:} false; then :
14515  $as_echo_n "(cached) " >&6
14516else
14517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14518/* end confdefs.h.  */
14519int i;
14520int
14521main ()
14522{
14523
14524  ;
14525  return 0;
14526}
14527_ACEOF
14528if ac_fn_c_try_link "$LINENO"; then :
14529  eval $cacheid=yes
14530else
14531  eval $cacheid=no
14532fi
14533rm -f core conftest.err conftest.$ac_objext \
14534    conftest$ac_exeext conftest.$ac_ext
14535fi
14536
14537
14538		CFLAGS="$xorg_testset_save_CFLAGS"
14539
14540		eval supported=\$$cacheid
14541		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14542$as_echo "$supported" >&6; }
14543		if test "$supported" = "yes" ; then
14544			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14545			found="yes"
14546		fi
14547	fi
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563xorg_testset_save_CFLAGS="$CFLAGS"
14564
14565if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14566	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14567	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14568$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14569if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14570  $as_echo_n "(cached) " >&6
14571else
14572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14573/* end confdefs.h.  */
14574int i;
14575_ACEOF
14576if ac_fn_c_try_compile "$LINENO"; then :
14577  xorg_cv_cc_flag_unknown_warning_option=yes
14578else
14579  xorg_cv_cc_flag_unknown_warning_option=no
14580fi
14581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14582fi
14583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14584$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14585	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14586	CFLAGS="$xorg_testset_save_CFLAGS"
14587fi
14588
14589if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14590	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14591		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14592	fi
14593	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14594	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14595$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14596if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14597  $as_echo_n "(cached) " >&6
14598else
14599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14600/* end confdefs.h.  */
14601int i;
14602_ACEOF
14603if ac_fn_c_try_compile "$LINENO"; then :
14604  xorg_cv_cc_flag_unused_command_line_argument=yes
14605else
14606  xorg_cv_cc_flag_unused_command_line_argument=no
14607fi
14608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14609fi
14610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14611$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14612	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14613	CFLAGS="$xorg_testset_save_CFLAGS"
14614fi
14615
14616found="no"
14617
14618	if test $found = "no" ; then
14619		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14620			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14621		fi
14622
14623		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14624			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14625		fi
14626
14627		CFLAGS="$CFLAGS -Werror=init-self"
14628
14629		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14630$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14631		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
14632		if eval \${$cacheid+:} false; then :
14633  $as_echo_n "(cached) " >&6
14634else
14635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14636/* end confdefs.h.  */
14637int i;
14638int
14639main ()
14640{
14641
14642  ;
14643  return 0;
14644}
14645_ACEOF
14646if ac_fn_c_try_link "$LINENO"; then :
14647  eval $cacheid=yes
14648else
14649  eval $cacheid=no
14650fi
14651rm -f core conftest.err conftest.$ac_objext \
14652    conftest$ac_exeext conftest.$ac_ext
14653fi
14654
14655
14656		CFLAGS="$xorg_testset_save_CFLAGS"
14657
14658		eval supported=\$$cacheid
14659		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14660$as_echo "$supported" >&6; }
14661		if test "$supported" = "yes" ; then
14662			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14663			found="yes"
14664		fi
14665	fi
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681xorg_testset_save_CFLAGS="$CFLAGS"
14682
14683if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14684	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14685	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14686$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14687if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14688  $as_echo_n "(cached) " >&6
14689else
14690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14691/* end confdefs.h.  */
14692int i;
14693_ACEOF
14694if ac_fn_c_try_compile "$LINENO"; then :
14695  xorg_cv_cc_flag_unknown_warning_option=yes
14696else
14697  xorg_cv_cc_flag_unknown_warning_option=no
14698fi
14699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14700fi
14701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14702$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14703	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14704	CFLAGS="$xorg_testset_save_CFLAGS"
14705fi
14706
14707if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14708	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14709		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14710	fi
14711	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14712	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14713$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14714if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14715  $as_echo_n "(cached) " >&6
14716else
14717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14718/* end confdefs.h.  */
14719int i;
14720_ACEOF
14721if ac_fn_c_try_compile "$LINENO"; then :
14722  xorg_cv_cc_flag_unused_command_line_argument=yes
14723else
14724  xorg_cv_cc_flag_unused_command_line_argument=no
14725fi
14726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14727fi
14728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14729$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14730	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14731	CFLAGS="$xorg_testset_save_CFLAGS"
14732fi
14733
14734found="no"
14735
14736	if test $found = "no" ; then
14737		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14738			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14739		fi
14740
14741		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14742			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14743		fi
14744
14745		CFLAGS="$CFLAGS -Werror=main"
14746
14747		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14748$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14749		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
14750		if eval \${$cacheid+:} false; then :
14751  $as_echo_n "(cached) " >&6
14752else
14753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14754/* end confdefs.h.  */
14755int i;
14756int
14757main ()
14758{
14759
14760  ;
14761  return 0;
14762}
14763_ACEOF
14764if ac_fn_c_try_link "$LINENO"; then :
14765  eval $cacheid=yes
14766else
14767  eval $cacheid=no
14768fi
14769rm -f core conftest.err conftest.$ac_objext \
14770    conftest$ac_exeext conftest.$ac_ext
14771fi
14772
14773
14774		CFLAGS="$xorg_testset_save_CFLAGS"
14775
14776		eval supported=\$$cacheid
14777		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14778$as_echo "$supported" >&6; }
14779		if test "$supported" = "yes" ; then
14780			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14781			found="yes"
14782		fi
14783	fi
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799xorg_testset_save_CFLAGS="$CFLAGS"
14800
14801if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14802	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14803	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14804$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14805if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14806  $as_echo_n "(cached) " >&6
14807else
14808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14809/* end confdefs.h.  */
14810int i;
14811_ACEOF
14812if ac_fn_c_try_compile "$LINENO"; then :
14813  xorg_cv_cc_flag_unknown_warning_option=yes
14814else
14815  xorg_cv_cc_flag_unknown_warning_option=no
14816fi
14817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14818fi
14819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14820$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14821	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14822	CFLAGS="$xorg_testset_save_CFLAGS"
14823fi
14824
14825if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14826	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14827		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14828	fi
14829	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14830	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14831$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14832if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14833  $as_echo_n "(cached) " >&6
14834else
14835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14836/* end confdefs.h.  */
14837int i;
14838_ACEOF
14839if ac_fn_c_try_compile "$LINENO"; then :
14840  xorg_cv_cc_flag_unused_command_line_argument=yes
14841else
14842  xorg_cv_cc_flag_unused_command_line_argument=no
14843fi
14844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14845fi
14846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14847$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14848	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14849	CFLAGS="$xorg_testset_save_CFLAGS"
14850fi
14851
14852found="no"
14853
14854	if test $found = "no" ; then
14855		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14856			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14857		fi
14858
14859		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14860			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14861		fi
14862
14863		CFLAGS="$CFLAGS -Werror=missing-braces"
14864
14865		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14866$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14867		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
14868		if eval \${$cacheid+:} false; then :
14869  $as_echo_n "(cached) " >&6
14870else
14871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14872/* end confdefs.h.  */
14873int i;
14874int
14875main ()
14876{
14877
14878  ;
14879  return 0;
14880}
14881_ACEOF
14882if ac_fn_c_try_link "$LINENO"; then :
14883  eval $cacheid=yes
14884else
14885  eval $cacheid=no
14886fi
14887rm -f core conftest.err conftest.$ac_objext \
14888    conftest$ac_exeext conftest.$ac_ext
14889fi
14890
14891
14892		CFLAGS="$xorg_testset_save_CFLAGS"
14893
14894		eval supported=\$$cacheid
14895		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14896$as_echo "$supported" >&6; }
14897		if test "$supported" = "yes" ; then
14898			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14899			found="yes"
14900		fi
14901	fi
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917xorg_testset_save_CFLAGS="$CFLAGS"
14918
14919if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14920	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14921	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14922$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14923if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14924  $as_echo_n "(cached) " >&6
14925else
14926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14927/* end confdefs.h.  */
14928int i;
14929_ACEOF
14930if ac_fn_c_try_compile "$LINENO"; then :
14931  xorg_cv_cc_flag_unknown_warning_option=yes
14932else
14933  xorg_cv_cc_flag_unknown_warning_option=no
14934fi
14935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14936fi
14937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14938$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14939	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14940	CFLAGS="$xorg_testset_save_CFLAGS"
14941fi
14942
14943if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14944	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14945		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14946	fi
14947	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14948	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14949$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14950if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14951  $as_echo_n "(cached) " >&6
14952else
14953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14954/* end confdefs.h.  */
14955int i;
14956_ACEOF
14957if ac_fn_c_try_compile "$LINENO"; then :
14958  xorg_cv_cc_flag_unused_command_line_argument=yes
14959else
14960  xorg_cv_cc_flag_unused_command_line_argument=no
14961fi
14962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14963fi
14964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14965$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14966	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14967	CFLAGS="$xorg_testset_save_CFLAGS"
14968fi
14969
14970found="no"
14971
14972	if test $found = "no" ; then
14973		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14974			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14975		fi
14976
14977		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14978			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14979		fi
14980
14981		CFLAGS="$CFLAGS -Werror=sequence-point"
14982
14983		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14984$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14985		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
14986		if eval \${$cacheid+:} false; then :
14987  $as_echo_n "(cached) " >&6
14988else
14989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14990/* end confdefs.h.  */
14991int i;
14992int
14993main ()
14994{
14995
14996  ;
14997  return 0;
14998}
14999_ACEOF
15000if ac_fn_c_try_link "$LINENO"; then :
15001  eval $cacheid=yes
15002else
15003  eval $cacheid=no
15004fi
15005rm -f core conftest.err conftest.$ac_objext \
15006    conftest$ac_exeext conftest.$ac_ext
15007fi
15008
15009
15010		CFLAGS="$xorg_testset_save_CFLAGS"
15011
15012		eval supported=\$$cacheid
15013		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15014$as_echo "$supported" >&6; }
15015		if test "$supported" = "yes" ; then
15016			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15017			found="yes"
15018		fi
15019	fi
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035xorg_testset_save_CFLAGS="$CFLAGS"
15036
15037if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15038	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15039	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15040$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15041if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15042  $as_echo_n "(cached) " >&6
15043else
15044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15045/* end confdefs.h.  */
15046int i;
15047_ACEOF
15048if ac_fn_c_try_compile "$LINENO"; then :
15049  xorg_cv_cc_flag_unknown_warning_option=yes
15050else
15051  xorg_cv_cc_flag_unknown_warning_option=no
15052fi
15053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15054fi
15055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15056$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15057	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15058	CFLAGS="$xorg_testset_save_CFLAGS"
15059fi
15060
15061if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15062	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15063		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15064	fi
15065	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15066	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15067$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15068if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15069  $as_echo_n "(cached) " >&6
15070else
15071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15072/* end confdefs.h.  */
15073int i;
15074_ACEOF
15075if ac_fn_c_try_compile "$LINENO"; then :
15076  xorg_cv_cc_flag_unused_command_line_argument=yes
15077else
15078  xorg_cv_cc_flag_unused_command_line_argument=no
15079fi
15080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15081fi
15082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15083$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15084	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15085	CFLAGS="$xorg_testset_save_CFLAGS"
15086fi
15087
15088found="no"
15089
15090	if test $found = "no" ; then
15091		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15092			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15093		fi
15094
15095		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15096			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15097		fi
15098
15099		CFLAGS="$CFLAGS -Werror=return-type"
15100
15101		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15102$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15103		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
15104		if eval \${$cacheid+:} false; then :
15105  $as_echo_n "(cached) " >&6
15106else
15107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15108/* end confdefs.h.  */
15109int i;
15110int
15111main ()
15112{
15113
15114  ;
15115  return 0;
15116}
15117_ACEOF
15118if ac_fn_c_try_link "$LINENO"; then :
15119  eval $cacheid=yes
15120else
15121  eval $cacheid=no
15122fi
15123rm -f core conftest.err conftest.$ac_objext \
15124    conftest$ac_exeext conftest.$ac_ext
15125fi
15126
15127
15128		CFLAGS="$xorg_testset_save_CFLAGS"
15129
15130		eval supported=\$$cacheid
15131		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15132$as_echo "$supported" >&6; }
15133		if test "$supported" = "yes" ; then
15134			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15135			found="yes"
15136		fi
15137	fi
15138
15139	if test $found = "no" ; then
15140		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15141			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15142		fi
15143
15144		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15145			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15146		fi
15147
15148		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15149
15150		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15151$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15152		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
15153		if eval \${$cacheid+:} false; then :
15154  $as_echo_n "(cached) " >&6
15155else
15156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15157/* end confdefs.h.  */
15158int i;
15159int
15160main ()
15161{
15162
15163  ;
15164  return 0;
15165}
15166_ACEOF
15167if ac_fn_c_try_link "$LINENO"; then :
15168  eval $cacheid=yes
15169else
15170  eval $cacheid=no
15171fi
15172rm -f core conftest.err conftest.$ac_objext \
15173    conftest$ac_exeext conftest.$ac_ext
15174fi
15175
15176
15177		CFLAGS="$xorg_testset_save_CFLAGS"
15178
15179		eval supported=\$$cacheid
15180		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15181$as_echo "$supported" >&6; }
15182		if test "$supported" = "yes" ; then
15183			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15184			found="yes"
15185		fi
15186	fi
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202xorg_testset_save_CFLAGS="$CFLAGS"
15203
15204if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15205	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15206	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15207$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15208if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15209  $as_echo_n "(cached) " >&6
15210else
15211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15212/* end confdefs.h.  */
15213int i;
15214_ACEOF
15215if ac_fn_c_try_compile "$LINENO"; then :
15216  xorg_cv_cc_flag_unknown_warning_option=yes
15217else
15218  xorg_cv_cc_flag_unknown_warning_option=no
15219fi
15220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15221fi
15222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15223$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15224	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15225	CFLAGS="$xorg_testset_save_CFLAGS"
15226fi
15227
15228if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15229	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15230		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15231	fi
15232	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15233	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15234$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15235if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15236  $as_echo_n "(cached) " >&6
15237else
15238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15239/* end confdefs.h.  */
15240int i;
15241_ACEOF
15242if ac_fn_c_try_compile "$LINENO"; then :
15243  xorg_cv_cc_flag_unused_command_line_argument=yes
15244else
15245  xorg_cv_cc_flag_unused_command_line_argument=no
15246fi
15247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15248fi
15249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15250$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15251	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15252	CFLAGS="$xorg_testset_save_CFLAGS"
15253fi
15254
15255found="no"
15256
15257	if test $found = "no" ; then
15258		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15259			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15260		fi
15261
15262		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15263			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15264		fi
15265
15266		CFLAGS="$CFLAGS -Werror=trigraphs"
15267
15268		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15269$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15270		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
15271		if eval \${$cacheid+:} false; then :
15272  $as_echo_n "(cached) " >&6
15273else
15274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15275/* end confdefs.h.  */
15276int i;
15277int
15278main ()
15279{
15280
15281  ;
15282  return 0;
15283}
15284_ACEOF
15285if ac_fn_c_try_link "$LINENO"; then :
15286  eval $cacheid=yes
15287else
15288  eval $cacheid=no
15289fi
15290rm -f core conftest.err conftest.$ac_objext \
15291    conftest$ac_exeext conftest.$ac_ext
15292fi
15293
15294
15295		CFLAGS="$xorg_testset_save_CFLAGS"
15296
15297		eval supported=\$$cacheid
15298		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15299$as_echo "$supported" >&6; }
15300		if test "$supported" = "yes" ; then
15301			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15302			found="yes"
15303		fi
15304	fi
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320xorg_testset_save_CFLAGS="$CFLAGS"
15321
15322if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15323	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15324	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15325$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15326if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15327  $as_echo_n "(cached) " >&6
15328else
15329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15330/* end confdefs.h.  */
15331int i;
15332_ACEOF
15333if ac_fn_c_try_compile "$LINENO"; then :
15334  xorg_cv_cc_flag_unknown_warning_option=yes
15335else
15336  xorg_cv_cc_flag_unknown_warning_option=no
15337fi
15338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15339fi
15340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15341$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15342	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15343	CFLAGS="$xorg_testset_save_CFLAGS"
15344fi
15345
15346if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15347	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15348		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15349	fi
15350	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15351	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15352$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15353if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15354  $as_echo_n "(cached) " >&6
15355else
15356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357/* end confdefs.h.  */
15358int i;
15359_ACEOF
15360if ac_fn_c_try_compile "$LINENO"; then :
15361  xorg_cv_cc_flag_unused_command_line_argument=yes
15362else
15363  xorg_cv_cc_flag_unused_command_line_argument=no
15364fi
15365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15366fi
15367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15368$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15369	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15370	CFLAGS="$xorg_testset_save_CFLAGS"
15371fi
15372
15373found="no"
15374
15375	if test $found = "no" ; then
15376		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15377			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15378		fi
15379
15380		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15381			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15382		fi
15383
15384		CFLAGS="$CFLAGS -Werror=array-bounds"
15385
15386		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15387$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15388		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
15389		if eval \${$cacheid+:} false; then :
15390  $as_echo_n "(cached) " >&6
15391else
15392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15393/* end confdefs.h.  */
15394int i;
15395int
15396main ()
15397{
15398
15399  ;
15400  return 0;
15401}
15402_ACEOF
15403if ac_fn_c_try_link "$LINENO"; then :
15404  eval $cacheid=yes
15405else
15406  eval $cacheid=no
15407fi
15408rm -f core conftest.err conftest.$ac_objext \
15409    conftest$ac_exeext conftest.$ac_ext
15410fi
15411
15412
15413		CFLAGS="$xorg_testset_save_CFLAGS"
15414
15415		eval supported=\$$cacheid
15416		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15417$as_echo "$supported" >&6; }
15418		if test "$supported" = "yes" ; then
15419			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15420			found="yes"
15421		fi
15422	fi
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438xorg_testset_save_CFLAGS="$CFLAGS"
15439
15440if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15441	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15442	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15443$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15444if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15445  $as_echo_n "(cached) " >&6
15446else
15447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15448/* end confdefs.h.  */
15449int i;
15450_ACEOF
15451if ac_fn_c_try_compile "$LINENO"; then :
15452  xorg_cv_cc_flag_unknown_warning_option=yes
15453else
15454  xorg_cv_cc_flag_unknown_warning_option=no
15455fi
15456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15457fi
15458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15459$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15460	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15461	CFLAGS="$xorg_testset_save_CFLAGS"
15462fi
15463
15464if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15465	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15466		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15467	fi
15468	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15469	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15470$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15471if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15472  $as_echo_n "(cached) " >&6
15473else
15474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15475/* end confdefs.h.  */
15476int i;
15477_ACEOF
15478if ac_fn_c_try_compile "$LINENO"; then :
15479  xorg_cv_cc_flag_unused_command_line_argument=yes
15480else
15481  xorg_cv_cc_flag_unused_command_line_argument=no
15482fi
15483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15484fi
15485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15486$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15487	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15488	CFLAGS="$xorg_testset_save_CFLAGS"
15489fi
15490
15491found="no"
15492
15493	if test $found = "no" ; then
15494		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15495			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15496		fi
15497
15498		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15499			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15500		fi
15501
15502		CFLAGS="$CFLAGS -Werror=write-strings"
15503
15504		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15505$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15506		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
15507		if eval \${$cacheid+:} false; then :
15508  $as_echo_n "(cached) " >&6
15509else
15510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15511/* end confdefs.h.  */
15512int i;
15513int
15514main ()
15515{
15516
15517  ;
15518  return 0;
15519}
15520_ACEOF
15521if ac_fn_c_try_link "$LINENO"; then :
15522  eval $cacheid=yes
15523else
15524  eval $cacheid=no
15525fi
15526rm -f core conftest.err conftest.$ac_objext \
15527    conftest$ac_exeext conftest.$ac_ext
15528fi
15529
15530
15531		CFLAGS="$xorg_testset_save_CFLAGS"
15532
15533		eval supported=\$$cacheid
15534		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15535$as_echo "$supported" >&6; }
15536		if test "$supported" = "yes" ; then
15537			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15538			found="yes"
15539		fi
15540	fi
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556xorg_testset_save_CFLAGS="$CFLAGS"
15557
15558if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15559	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15560	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15561$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15562if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15563  $as_echo_n "(cached) " >&6
15564else
15565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15566/* end confdefs.h.  */
15567int i;
15568_ACEOF
15569if ac_fn_c_try_compile "$LINENO"; then :
15570  xorg_cv_cc_flag_unknown_warning_option=yes
15571else
15572  xorg_cv_cc_flag_unknown_warning_option=no
15573fi
15574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15575fi
15576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15577$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15578	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15579	CFLAGS="$xorg_testset_save_CFLAGS"
15580fi
15581
15582if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15583	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15584		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15585	fi
15586	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15587	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15588$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15589if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15590  $as_echo_n "(cached) " >&6
15591else
15592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15593/* end confdefs.h.  */
15594int i;
15595_ACEOF
15596if ac_fn_c_try_compile "$LINENO"; then :
15597  xorg_cv_cc_flag_unused_command_line_argument=yes
15598else
15599  xorg_cv_cc_flag_unused_command_line_argument=no
15600fi
15601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15602fi
15603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15604$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15605	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15606	CFLAGS="$xorg_testset_save_CFLAGS"
15607fi
15608
15609found="no"
15610
15611	if test $found = "no" ; then
15612		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15613			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15614		fi
15615
15616		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15617			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15618		fi
15619
15620		CFLAGS="$CFLAGS -Werror=address"
15621
15622		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15623$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15624		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
15625		if eval \${$cacheid+:} false; then :
15626  $as_echo_n "(cached) " >&6
15627else
15628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15629/* end confdefs.h.  */
15630int i;
15631int
15632main ()
15633{
15634
15635  ;
15636  return 0;
15637}
15638_ACEOF
15639if ac_fn_c_try_link "$LINENO"; then :
15640  eval $cacheid=yes
15641else
15642  eval $cacheid=no
15643fi
15644rm -f core conftest.err conftest.$ac_objext \
15645    conftest$ac_exeext conftest.$ac_ext
15646fi
15647
15648
15649		CFLAGS="$xorg_testset_save_CFLAGS"
15650
15651		eval supported=\$$cacheid
15652		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15653$as_echo "$supported" >&6; }
15654		if test "$supported" = "yes" ; then
15655			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15656			found="yes"
15657		fi
15658	fi
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674xorg_testset_save_CFLAGS="$CFLAGS"
15675
15676if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15677	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15678	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15679$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15680if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15681  $as_echo_n "(cached) " >&6
15682else
15683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15684/* end confdefs.h.  */
15685int i;
15686_ACEOF
15687if ac_fn_c_try_compile "$LINENO"; then :
15688  xorg_cv_cc_flag_unknown_warning_option=yes
15689else
15690  xorg_cv_cc_flag_unknown_warning_option=no
15691fi
15692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15693fi
15694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15695$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15696	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15697	CFLAGS="$xorg_testset_save_CFLAGS"
15698fi
15699
15700if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15701	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15702		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15703	fi
15704	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15705	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15706$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15707if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15708  $as_echo_n "(cached) " >&6
15709else
15710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15711/* end confdefs.h.  */
15712int i;
15713_ACEOF
15714if ac_fn_c_try_compile "$LINENO"; then :
15715  xorg_cv_cc_flag_unused_command_line_argument=yes
15716else
15717  xorg_cv_cc_flag_unused_command_line_argument=no
15718fi
15719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15720fi
15721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15722$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15723	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15724	CFLAGS="$xorg_testset_save_CFLAGS"
15725fi
15726
15727found="no"
15728
15729	if test $found = "no" ; then
15730		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15731			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15732		fi
15733
15734		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15735			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15736		fi
15737
15738		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15739
15740		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15741$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15742		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
15743		if eval \${$cacheid+:} false; then :
15744  $as_echo_n "(cached) " >&6
15745else
15746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15747/* end confdefs.h.  */
15748int i;
15749int
15750main ()
15751{
15752
15753  ;
15754  return 0;
15755}
15756_ACEOF
15757if ac_fn_c_try_link "$LINENO"; then :
15758  eval $cacheid=yes
15759else
15760  eval $cacheid=no
15761fi
15762rm -f core conftest.err conftest.$ac_objext \
15763    conftest$ac_exeext conftest.$ac_ext
15764fi
15765
15766
15767		CFLAGS="$xorg_testset_save_CFLAGS"
15768
15769		eval supported=\$$cacheid
15770		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15771$as_echo "$supported" >&6; }
15772		if test "$supported" = "yes" ; then
15773			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15774			found="yes"
15775		fi
15776	fi
15777
15778	if test $found = "no" ; then
15779		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15780			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15781		fi
15782
15783		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15784			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15785		fi
15786
15787		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15788
15789		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15790$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15791		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
15792		if eval \${$cacheid+:} false; then :
15793  $as_echo_n "(cached) " >&6
15794else
15795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15796/* end confdefs.h.  */
15797int i;
15798int
15799main ()
15800{
15801
15802  ;
15803  return 0;
15804}
15805_ACEOF
15806if ac_fn_c_try_link "$LINENO"; then :
15807  eval $cacheid=yes
15808else
15809  eval $cacheid=no
15810fi
15811rm -f core conftest.err conftest.$ac_objext \
15812    conftest$ac_exeext conftest.$ac_ext
15813fi
15814
15815
15816		CFLAGS="$xorg_testset_save_CFLAGS"
15817
15818		eval supported=\$$cacheid
15819		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15820$as_echo "$supported" >&6; }
15821		if test "$supported" = "yes" ; then
15822			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15823			found="yes"
15824		fi
15825	fi
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841xorg_testset_save_CFLAGS="$CFLAGS"
15842
15843if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15844	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15845	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15846$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15847if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15848  $as_echo_n "(cached) " >&6
15849else
15850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15851/* end confdefs.h.  */
15852int i;
15853_ACEOF
15854if ac_fn_c_try_compile "$LINENO"; then :
15855  xorg_cv_cc_flag_unknown_warning_option=yes
15856else
15857  xorg_cv_cc_flag_unknown_warning_option=no
15858fi
15859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15860fi
15861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15862$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15863	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15864	CFLAGS="$xorg_testset_save_CFLAGS"
15865fi
15866
15867if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15868	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15869		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15870	fi
15871	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15872	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15873$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15874if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15875  $as_echo_n "(cached) " >&6
15876else
15877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15878/* end confdefs.h.  */
15879int i;
15880_ACEOF
15881if ac_fn_c_try_compile "$LINENO"; then :
15882  xorg_cv_cc_flag_unused_command_line_argument=yes
15883else
15884  xorg_cv_cc_flag_unused_command_line_argument=no
15885fi
15886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15887fi
15888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15889$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15890	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15891	CFLAGS="$xorg_testset_save_CFLAGS"
15892fi
15893
15894found="no"
15895
15896	if test $found = "no" ; then
15897		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15898			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15899		fi
15900
15901		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15902			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15903		fi
15904
15905		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15906
15907		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15908$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15909		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
15910		if eval \${$cacheid+:} false; then :
15911  $as_echo_n "(cached) " >&6
15912else
15913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15914/* end confdefs.h.  */
15915int i;
15916int
15917main ()
15918{
15919
15920  ;
15921  return 0;
15922}
15923_ACEOF
15924if ac_fn_c_try_link "$LINENO"; then :
15925  eval $cacheid=yes
15926else
15927  eval $cacheid=no
15928fi
15929rm -f core conftest.err conftest.$ac_objext \
15930    conftest$ac_exeext conftest.$ac_ext
15931fi
15932
15933
15934		CFLAGS="$xorg_testset_save_CFLAGS"
15935
15936		eval supported=\$$cacheid
15937		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15938$as_echo "$supported" >&6; }
15939		if test "$supported" = "yes" ; then
15940			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15941			found="yes"
15942		fi
15943	fi
15944
15945 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15946else
15947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
15948$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962xorg_testset_save_CFLAGS="$CFLAGS"
15963
15964if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15965	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15966	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15967$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15968if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15969  $as_echo_n "(cached) " >&6
15970else
15971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15972/* end confdefs.h.  */
15973int i;
15974_ACEOF
15975if ac_fn_c_try_compile "$LINENO"; then :
15976  xorg_cv_cc_flag_unknown_warning_option=yes
15977else
15978  xorg_cv_cc_flag_unknown_warning_option=no
15979fi
15980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15981fi
15982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15983$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15984	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15985	CFLAGS="$xorg_testset_save_CFLAGS"
15986fi
15987
15988if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15989	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15990		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15991	fi
15992	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15993	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15994$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15995if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15996  $as_echo_n "(cached) " >&6
15997else
15998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15999/* end confdefs.h.  */
16000int i;
16001_ACEOF
16002if ac_fn_c_try_compile "$LINENO"; then :
16003  xorg_cv_cc_flag_unused_command_line_argument=yes
16004else
16005  xorg_cv_cc_flag_unused_command_line_argument=no
16006fi
16007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16008fi
16009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16010$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16011	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16012	CFLAGS="$xorg_testset_save_CFLAGS"
16013fi
16014
16015found="no"
16016
16017	if test $found = "no" ; then
16018		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16019			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16020		fi
16021
16022		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16023			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16024		fi
16025
16026		CFLAGS="$CFLAGS -Wimplicit"
16027
16028		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16029$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16030		cacheid=xorg_cv_cc_flag__Wimplicit
16031		if eval \${$cacheid+:} false; then :
16032  $as_echo_n "(cached) " >&6
16033else
16034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16035/* end confdefs.h.  */
16036int i;
16037int
16038main ()
16039{
16040
16041  ;
16042  return 0;
16043}
16044_ACEOF
16045if ac_fn_c_try_link "$LINENO"; then :
16046  eval $cacheid=yes
16047else
16048  eval $cacheid=no
16049fi
16050rm -f core conftest.err conftest.$ac_objext \
16051    conftest$ac_exeext conftest.$ac_ext
16052fi
16053
16054
16055		CFLAGS="$xorg_testset_save_CFLAGS"
16056
16057		eval supported=\$$cacheid
16058		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16059$as_echo "$supported" >&6; }
16060		if test "$supported" = "yes" ; then
16061			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16062			found="yes"
16063		fi
16064	fi
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080xorg_testset_save_CFLAGS="$CFLAGS"
16081
16082if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16083	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16084	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16085$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16086if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16087  $as_echo_n "(cached) " >&6
16088else
16089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16090/* end confdefs.h.  */
16091int i;
16092_ACEOF
16093if ac_fn_c_try_compile "$LINENO"; then :
16094  xorg_cv_cc_flag_unknown_warning_option=yes
16095else
16096  xorg_cv_cc_flag_unknown_warning_option=no
16097fi
16098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16099fi
16100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16101$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16102	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16103	CFLAGS="$xorg_testset_save_CFLAGS"
16104fi
16105
16106if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16107	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16108		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16109	fi
16110	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16111	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16112$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16113if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16114  $as_echo_n "(cached) " >&6
16115else
16116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16117/* end confdefs.h.  */
16118int i;
16119_ACEOF
16120if ac_fn_c_try_compile "$LINENO"; then :
16121  xorg_cv_cc_flag_unused_command_line_argument=yes
16122else
16123  xorg_cv_cc_flag_unused_command_line_argument=no
16124fi
16125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16126fi
16127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16128$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16129	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16130	CFLAGS="$xorg_testset_save_CFLAGS"
16131fi
16132
16133found="no"
16134
16135	if test $found = "no" ; then
16136		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16137			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16138		fi
16139
16140		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16141			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16142		fi
16143
16144		CFLAGS="$CFLAGS -Wnonnull"
16145
16146		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16147$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16148		cacheid=xorg_cv_cc_flag__Wnonnull
16149		if eval \${$cacheid+:} false; then :
16150  $as_echo_n "(cached) " >&6
16151else
16152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16153/* end confdefs.h.  */
16154int i;
16155int
16156main ()
16157{
16158
16159  ;
16160  return 0;
16161}
16162_ACEOF
16163if ac_fn_c_try_link "$LINENO"; then :
16164  eval $cacheid=yes
16165else
16166  eval $cacheid=no
16167fi
16168rm -f core conftest.err conftest.$ac_objext \
16169    conftest$ac_exeext conftest.$ac_ext
16170fi
16171
16172
16173		CFLAGS="$xorg_testset_save_CFLAGS"
16174
16175		eval supported=\$$cacheid
16176		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16177$as_echo "$supported" >&6; }
16178		if test "$supported" = "yes" ; then
16179			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16180			found="yes"
16181		fi
16182	fi
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198xorg_testset_save_CFLAGS="$CFLAGS"
16199
16200if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16201	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16202	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16203$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16204if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16205  $as_echo_n "(cached) " >&6
16206else
16207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16208/* end confdefs.h.  */
16209int i;
16210_ACEOF
16211if ac_fn_c_try_compile "$LINENO"; then :
16212  xorg_cv_cc_flag_unknown_warning_option=yes
16213else
16214  xorg_cv_cc_flag_unknown_warning_option=no
16215fi
16216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16217fi
16218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16219$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16220	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16221	CFLAGS="$xorg_testset_save_CFLAGS"
16222fi
16223
16224if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16225	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16226		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16227	fi
16228	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16229	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16230$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16231if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16232  $as_echo_n "(cached) " >&6
16233else
16234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16235/* end confdefs.h.  */
16236int i;
16237_ACEOF
16238if ac_fn_c_try_compile "$LINENO"; then :
16239  xorg_cv_cc_flag_unused_command_line_argument=yes
16240else
16241  xorg_cv_cc_flag_unused_command_line_argument=no
16242fi
16243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16244fi
16245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16246$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16247	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16248	CFLAGS="$xorg_testset_save_CFLAGS"
16249fi
16250
16251found="no"
16252
16253	if test $found = "no" ; then
16254		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16255			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16256		fi
16257
16258		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16259			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16260		fi
16261
16262		CFLAGS="$CFLAGS -Winit-self"
16263
16264		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16265$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16266		cacheid=xorg_cv_cc_flag__Winit_self
16267		if eval \${$cacheid+:} false; then :
16268  $as_echo_n "(cached) " >&6
16269else
16270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16271/* end confdefs.h.  */
16272int i;
16273int
16274main ()
16275{
16276
16277  ;
16278  return 0;
16279}
16280_ACEOF
16281if ac_fn_c_try_link "$LINENO"; then :
16282  eval $cacheid=yes
16283else
16284  eval $cacheid=no
16285fi
16286rm -f core conftest.err conftest.$ac_objext \
16287    conftest$ac_exeext conftest.$ac_ext
16288fi
16289
16290
16291		CFLAGS="$xorg_testset_save_CFLAGS"
16292
16293		eval supported=\$$cacheid
16294		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16295$as_echo "$supported" >&6; }
16296		if test "$supported" = "yes" ; then
16297			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16298			found="yes"
16299		fi
16300	fi
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316xorg_testset_save_CFLAGS="$CFLAGS"
16317
16318if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16319	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16320	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16321$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16322if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16323  $as_echo_n "(cached) " >&6
16324else
16325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16326/* end confdefs.h.  */
16327int i;
16328_ACEOF
16329if ac_fn_c_try_compile "$LINENO"; then :
16330  xorg_cv_cc_flag_unknown_warning_option=yes
16331else
16332  xorg_cv_cc_flag_unknown_warning_option=no
16333fi
16334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16335fi
16336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16337$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16338	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16339	CFLAGS="$xorg_testset_save_CFLAGS"
16340fi
16341
16342if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16343	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16344		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16345	fi
16346	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16347	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16348$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16349if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16350  $as_echo_n "(cached) " >&6
16351else
16352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16353/* end confdefs.h.  */
16354int i;
16355_ACEOF
16356if ac_fn_c_try_compile "$LINENO"; then :
16357  xorg_cv_cc_flag_unused_command_line_argument=yes
16358else
16359  xorg_cv_cc_flag_unused_command_line_argument=no
16360fi
16361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16362fi
16363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16364$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16365	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16366	CFLAGS="$xorg_testset_save_CFLAGS"
16367fi
16368
16369found="no"
16370
16371	if test $found = "no" ; then
16372		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16373			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16374		fi
16375
16376		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16377			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16378		fi
16379
16380		CFLAGS="$CFLAGS -Wmain"
16381
16382		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16383$as_echo_n "checking if $CC supports -Wmain... " >&6; }
16384		cacheid=xorg_cv_cc_flag__Wmain
16385		if eval \${$cacheid+:} false; then :
16386  $as_echo_n "(cached) " >&6
16387else
16388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16389/* end confdefs.h.  */
16390int i;
16391int
16392main ()
16393{
16394
16395  ;
16396  return 0;
16397}
16398_ACEOF
16399if ac_fn_c_try_link "$LINENO"; then :
16400  eval $cacheid=yes
16401else
16402  eval $cacheid=no
16403fi
16404rm -f core conftest.err conftest.$ac_objext \
16405    conftest$ac_exeext conftest.$ac_ext
16406fi
16407
16408
16409		CFLAGS="$xorg_testset_save_CFLAGS"
16410
16411		eval supported=\$$cacheid
16412		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16413$as_echo "$supported" >&6; }
16414		if test "$supported" = "yes" ; then
16415			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16416			found="yes"
16417		fi
16418	fi
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434xorg_testset_save_CFLAGS="$CFLAGS"
16435
16436if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16437	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16438	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16439$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16440if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16441  $as_echo_n "(cached) " >&6
16442else
16443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16444/* end confdefs.h.  */
16445int i;
16446_ACEOF
16447if ac_fn_c_try_compile "$LINENO"; then :
16448  xorg_cv_cc_flag_unknown_warning_option=yes
16449else
16450  xorg_cv_cc_flag_unknown_warning_option=no
16451fi
16452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16453fi
16454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16455$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16456	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16457	CFLAGS="$xorg_testset_save_CFLAGS"
16458fi
16459
16460if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16461	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16462		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16463	fi
16464	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16465	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16466$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16467if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16468  $as_echo_n "(cached) " >&6
16469else
16470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16471/* end confdefs.h.  */
16472int i;
16473_ACEOF
16474if ac_fn_c_try_compile "$LINENO"; then :
16475  xorg_cv_cc_flag_unused_command_line_argument=yes
16476else
16477  xorg_cv_cc_flag_unused_command_line_argument=no
16478fi
16479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16480fi
16481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16482$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16483	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16484	CFLAGS="$xorg_testset_save_CFLAGS"
16485fi
16486
16487found="no"
16488
16489	if test $found = "no" ; then
16490		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16491			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16492		fi
16493
16494		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16495			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16496		fi
16497
16498		CFLAGS="$CFLAGS -Wmissing-braces"
16499
16500		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16501$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16502		cacheid=xorg_cv_cc_flag__Wmissing_braces
16503		if eval \${$cacheid+:} false; then :
16504  $as_echo_n "(cached) " >&6
16505else
16506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16507/* end confdefs.h.  */
16508int i;
16509int
16510main ()
16511{
16512
16513  ;
16514  return 0;
16515}
16516_ACEOF
16517if ac_fn_c_try_link "$LINENO"; then :
16518  eval $cacheid=yes
16519else
16520  eval $cacheid=no
16521fi
16522rm -f core conftest.err conftest.$ac_objext \
16523    conftest$ac_exeext conftest.$ac_ext
16524fi
16525
16526
16527		CFLAGS="$xorg_testset_save_CFLAGS"
16528
16529		eval supported=\$$cacheid
16530		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16531$as_echo "$supported" >&6; }
16532		if test "$supported" = "yes" ; then
16533			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16534			found="yes"
16535		fi
16536	fi
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552xorg_testset_save_CFLAGS="$CFLAGS"
16553
16554if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16555	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16556	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16557$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16558if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16559  $as_echo_n "(cached) " >&6
16560else
16561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16562/* end confdefs.h.  */
16563int i;
16564_ACEOF
16565if ac_fn_c_try_compile "$LINENO"; then :
16566  xorg_cv_cc_flag_unknown_warning_option=yes
16567else
16568  xorg_cv_cc_flag_unknown_warning_option=no
16569fi
16570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16571fi
16572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16573$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16574	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16575	CFLAGS="$xorg_testset_save_CFLAGS"
16576fi
16577
16578if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16579	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16580		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16581	fi
16582	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16583	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16584$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16585if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16586  $as_echo_n "(cached) " >&6
16587else
16588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16589/* end confdefs.h.  */
16590int i;
16591_ACEOF
16592if ac_fn_c_try_compile "$LINENO"; then :
16593  xorg_cv_cc_flag_unused_command_line_argument=yes
16594else
16595  xorg_cv_cc_flag_unused_command_line_argument=no
16596fi
16597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16598fi
16599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16600$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16601	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16602	CFLAGS="$xorg_testset_save_CFLAGS"
16603fi
16604
16605found="no"
16606
16607	if test $found = "no" ; then
16608		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16609			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16610		fi
16611
16612		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16613			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16614		fi
16615
16616		CFLAGS="$CFLAGS -Wsequence-point"
16617
16618		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16619$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16620		cacheid=xorg_cv_cc_flag__Wsequence_point
16621		if eval \${$cacheid+:} false; then :
16622  $as_echo_n "(cached) " >&6
16623else
16624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16625/* end confdefs.h.  */
16626int i;
16627int
16628main ()
16629{
16630
16631  ;
16632  return 0;
16633}
16634_ACEOF
16635if ac_fn_c_try_link "$LINENO"; then :
16636  eval $cacheid=yes
16637else
16638  eval $cacheid=no
16639fi
16640rm -f core conftest.err conftest.$ac_objext \
16641    conftest$ac_exeext conftest.$ac_ext
16642fi
16643
16644
16645		CFLAGS="$xorg_testset_save_CFLAGS"
16646
16647		eval supported=\$$cacheid
16648		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16649$as_echo "$supported" >&6; }
16650		if test "$supported" = "yes" ; then
16651			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16652			found="yes"
16653		fi
16654	fi
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670xorg_testset_save_CFLAGS="$CFLAGS"
16671
16672if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16673	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16674	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16675$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16676if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16677  $as_echo_n "(cached) " >&6
16678else
16679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16680/* end confdefs.h.  */
16681int i;
16682_ACEOF
16683if ac_fn_c_try_compile "$LINENO"; then :
16684  xorg_cv_cc_flag_unknown_warning_option=yes
16685else
16686  xorg_cv_cc_flag_unknown_warning_option=no
16687fi
16688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16689fi
16690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16691$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16692	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16693	CFLAGS="$xorg_testset_save_CFLAGS"
16694fi
16695
16696if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16697	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16698		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16699	fi
16700	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16701	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16702$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16703if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16704  $as_echo_n "(cached) " >&6
16705else
16706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16707/* end confdefs.h.  */
16708int i;
16709_ACEOF
16710if ac_fn_c_try_compile "$LINENO"; then :
16711  xorg_cv_cc_flag_unused_command_line_argument=yes
16712else
16713  xorg_cv_cc_flag_unused_command_line_argument=no
16714fi
16715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16716fi
16717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16718$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16719	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16720	CFLAGS="$xorg_testset_save_CFLAGS"
16721fi
16722
16723found="no"
16724
16725	if test $found = "no" ; then
16726		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16727			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16728		fi
16729
16730		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16731			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16732		fi
16733
16734		CFLAGS="$CFLAGS -Wreturn-type"
16735
16736		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16737$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16738		cacheid=xorg_cv_cc_flag__Wreturn_type
16739		if eval \${$cacheid+:} false; then :
16740  $as_echo_n "(cached) " >&6
16741else
16742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16743/* end confdefs.h.  */
16744int i;
16745int
16746main ()
16747{
16748
16749  ;
16750  return 0;
16751}
16752_ACEOF
16753if ac_fn_c_try_link "$LINENO"; then :
16754  eval $cacheid=yes
16755else
16756  eval $cacheid=no
16757fi
16758rm -f core conftest.err conftest.$ac_objext \
16759    conftest$ac_exeext conftest.$ac_ext
16760fi
16761
16762
16763		CFLAGS="$xorg_testset_save_CFLAGS"
16764
16765		eval supported=\$$cacheid
16766		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16767$as_echo "$supported" >&6; }
16768		if test "$supported" = "yes" ; then
16769			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16770			found="yes"
16771		fi
16772	fi
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788xorg_testset_save_CFLAGS="$CFLAGS"
16789
16790if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16791	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16792	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16793$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16794if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16795  $as_echo_n "(cached) " >&6
16796else
16797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16798/* end confdefs.h.  */
16799int i;
16800_ACEOF
16801if ac_fn_c_try_compile "$LINENO"; then :
16802  xorg_cv_cc_flag_unknown_warning_option=yes
16803else
16804  xorg_cv_cc_flag_unknown_warning_option=no
16805fi
16806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16807fi
16808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16809$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16810	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16811	CFLAGS="$xorg_testset_save_CFLAGS"
16812fi
16813
16814if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16815	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16816		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16817	fi
16818	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16819	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16820$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16821if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16822  $as_echo_n "(cached) " >&6
16823else
16824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16825/* end confdefs.h.  */
16826int i;
16827_ACEOF
16828if ac_fn_c_try_compile "$LINENO"; then :
16829  xorg_cv_cc_flag_unused_command_line_argument=yes
16830else
16831  xorg_cv_cc_flag_unused_command_line_argument=no
16832fi
16833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16834fi
16835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16836$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16837	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16838	CFLAGS="$xorg_testset_save_CFLAGS"
16839fi
16840
16841found="no"
16842
16843	if test $found = "no" ; then
16844		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16845			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16846		fi
16847
16848		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16849			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16850		fi
16851
16852		CFLAGS="$CFLAGS -Wtrigraphs"
16853
16854		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16855$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16856		cacheid=xorg_cv_cc_flag__Wtrigraphs
16857		if eval \${$cacheid+:} false; then :
16858  $as_echo_n "(cached) " >&6
16859else
16860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16861/* end confdefs.h.  */
16862int i;
16863int
16864main ()
16865{
16866
16867  ;
16868  return 0;
16869}
16870_ACEOF
16871if ac_fn_c_try_link "$LINENO"; then :
16872  eval $cacheid=yes
16873else
16874  eval $cacheid=no
16875fi
16876rm -f core conftest.err conftest.$ac_objext \
16877    conftest$ac_exeext conftest.$ac_ext
16878fi
16879
16880
16881		CFLAGS="$xorg_testset_save_CFLAGS"
16882
16883		eval supported=\$$cacheid
16884		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16885$as_echo "$supported" >&6; }
16886		if test "$supported" = "yes" ; then
16887			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16888			found="yes"
16889		fi
16890	fi
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906xorg_testset_save_CFLAGS="$CFLAGS"
16907
16908if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16909	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16910	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16911$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16912if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16913  $as_echo_n "(cached) " >&6
16914else
16915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16916/* end confdefs.h.  */
16917int i;
16918_ACEOF
16919if ac_fn_c_try_compile "$LINENO"; then :
16920  xorg_cv_cc_flag_unknown_warning_option=yes
16921else
16922  xorg_cv_cc_flag_unknown_warning_option=no
16923fi
16924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16925fi
16926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16927$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16928	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16929	CFLAGS="$xorg_testset_save_CFLAGS"
16930fi
16931
16932if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16933	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16934		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16935	fi
16936	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16937	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16938$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16939if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16940  $as_echo_n "(cached) " >&6
16941else
16942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16943/* end confdefs.h.  */
16944int i;
16945_ACEOF
16946if ac_fn_c_try_compile "$LINENO"; then :
16947  xorg_cv_cc_flag_unused_command_line_argument=yes
16948else
16949  xorg_cv_cc_flag_unused_command_line_argument=no
16950fi
16951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16952fi
16953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16954$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16955	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16956	CFLAGS="$xorg_testset_save_CFLAGS"
16957fi
16958
16959found="no"
16960
16961	if test $found = "no" ; then
16962		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16963			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16964		fi
16965
16966		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16967			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16968		fi
16969
16970		CFLAGS="$CFLAGS -Warray-bounds"
16971
16972		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16973$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16974		cacheid=xorg_cv_cc_flag__Warray_bounds
16975		if eval \${$cacheid+:} false; then :
16976  $as_echo_n "(cached) " >&6
16977else
16978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16979/* end confdefs.h.  */
16980int i;
16981int
16982main ()
16983{
16984
16985  ;
16986  return 0;
16987}
16988_ACEOF
16989if ac_fn_c_try_link "$LINENO"; then :
16990  eval $cacheid=yes
16991else
16992  eval $cacheid=no
16993fi
16994rm -f core conftest.err conftest.$ac_objext \
16995    conftest$ac_exeext conftest.$ac_ext
16996fi
16997
16998
16999		CFLAGS="$xorg_testset_save_CFLAGS"
17000
17001		eval supported=\$$cacheid
17002		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17003$as_echo "$supported" >&6; }
17004		if test "$supported" = "yes" ; then
17005			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17006			found="yes"
17007		fi
17008	fi
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024xorg_testset_save_CFLAGS="$CFLAGS"
17025
17026if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17027	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17028	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17029$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17030if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17031  $as_echo_n "(cached) " >&6
17032else
17033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17034/* end confdefs.h.  */
17035int i;
17036_ACEOF
17037if ac_fn_c_try_compile "$LINENO"; then :
17038  xorg_cv_cc_flag_unknown_warning_option=yes
17039else
17040  xorg_cv_cc_flag_unknown_warning_option=no
17041fi
17042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17043fi
17044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17045$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17046	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17047	CFLAGS="$xorg_testset_save_CFLAGS"
17048fi
17049
17050if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17051	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17052		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17053	fi
17054	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17055	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17056$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17057if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17058  $as_echo_n "(cached) " >&6
17059else
17060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17061/* end confdefs.h.  */
17062int i;
17063_ACEOF
17064if ac_fn_c_try_compile "$LINENO"; then :
17065  xorg_cv_cc_flag_unused_command_line_argument=yes
17066else
17067  xorg_cv_cc_flag_unused_command_line_argument=no
17068fi
17069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17070fi
17071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17072$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17073	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17074	CFLAGS="$xorg_testset_save_CFLAGS"
17075fi
17076
17077found="no"
17078
17079	if test $found = "no" ; then
17080		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17081			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17082		fi
17083
17084		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17085			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17086		fi
17087
17088		CFLAGS="$CFLAGS -Wwrite-strings"
17089
17090		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17091$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17092		cacheid=xorg_cv_cc_flag__Wwrite_strings
17093		if eval \${$cacheid+:} false; then :
17094  $as_echo_n "(cached) " >&6
17095else
17096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17097/* end confdefs.h.  */
17098int i;
17099int
17100main ()
17101{
17102
17103  ;
17104  return 0;
17105}
17106_ACEOF
17107if ac_fn_c_try_link "$LINENO"; then :
17108  eval $cacheid=yes
17109else
17110  eval $cacheid=no
17111fi
17112rm -f core conftest.err conftest.$ac_objext \
17113    conftest$ac_exeext conftest.$ac_ext
17114fi
17115
17116
17117		CFLAGS="$xorg_testset_save_CFLAGS"
17118
17119		eval supported=\$$cacheid
17120		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17121$as_echo "$supported" >&6; }
17122		if test "$supported" = "yes" ; then
17123			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17124			found="yes"
17125		fi
17126	fi
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142xorg_testset_save_CFLAGS="$CFLAGS"
17143
17144if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17145	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17146	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17147$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17148if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17149  $as_echo_n "(cached) " >&6
17150else
17151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17152/* end confdefs.h.  */
17153int i;
17154_ACEOF
17155if ac_fn_c_try_compile "$LINENO"; then :
17156  xorg_cv_cc_flag_unknown_warning_option=yes
17157else
17158  xorg_cv_cc_flag_unknown_warning_option=no
17159fi
17160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17161fi
17162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17163$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17164	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17165	CFLAGS="$xorg_testset_save_CFLAGS"
17166fi
17167
17168if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17169	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17170		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17171	fi
17172	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17173	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17174$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17175if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17176  $as_echo_n "(cached) " >&6
17177else
17178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17179/* end confdefs.h.  */
17180int i;
17181_ACEOF
17182if ac_fn_c_try_compile "$LINENO"; then :
17183  xorg_cv_cc_flag_unused_command_line_argument=yes
17184else
17185  xorg_cv_cc_flag_unused_command_line_argument=no
17186fi
17187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17188fi
17189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17190$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17191	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17192	CFLAGS="$xorg_testset_save_CFLAGS"
17193fi
17194
17195found="no"
17196
17197	if test $found = "no" ; then
17198		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17199			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17200		fi
17201
17202		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17203			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17204		fi
17205
17206		CFLAGS="$CFLAGS -Waddress"
17207
17208		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17209$as_echo_n "checking if $CC supports -Waddress... " >&6; }
17210		cacheid=xorg_cv_cc_flag__Waddress
17211		if eval \${$cacheid+:} false; then :
17212  $as_echo_n "(cached) " >&6
17213else
17214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17215/* end confdefs.h.  */
17216int i;
17217int
17218main ()
17219{
17220
17221  ;
17222  return 0;
17223}
17224_ACEOF
17225if ac_fn_c_try_link "$LINENO"; then :
17226  eval $cacheid=yes
17227else
17228  eval $cacheid=no
17229fi
17230rm -f core conftest.err conftest.$ac_objext \
17231    conftest$ac_exeext conftest.$ac_ext
17232fi
17233
17234
17235		CFLAGS="$xorg_testset_save_CFLAGS"
17236
17237		eval supported=\$$cacheid
17238		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17239$as_echo "$supported" >&6; }
17240		if test "$supported" = "yes" ; then
17241			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17242			found="yes"
17243		fi
17244	fi
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260xorg_testset_save_CFLAGS="$CFLAGS"
17261
17262if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17263	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17264	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17265$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17266if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17267  $as_echo_n "(cached) " >&6
17268else
17269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17270/* end confdefs.h.  */
17271int i;
17272_ACEOF
17273if ac_fn_c_try_compile "$LINENO"; then :
17274  xorg_cv_cc_flag_unknown_warning_option=yes
17275else
17276  xorg_cv_cc_flag_unknown_warning_option=no
17277fi
17278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17279fi
17280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17281$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17282	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17283	CFLAGS="$xorg_testset_save_CFLAGS"
17284fi
17285
17286if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17287	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17288		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17289	fi
17290	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17291	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17292$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17293if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17294  $as_echo_n "(cached) " >&6
17295else
17296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17297/* end confdefs.h.  */
17298int i;
17299_ACEOF
17300if ac_fn_c_try_compile "$LINENO"; then :
17301  xorg_cv_cc_flag_unused_command_line_argument=yes
17302else
17303  xorg_cv_cc_flag_unused_command_line_argument=no
17304fi
17305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17306fi
17307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17308$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17309	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17310	CFLAGS="$xorg_testset_save_CFLAGS"
17311fi
17312
17313found="no"
17314
17315	if test $found = "no" ; then
17316		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17317			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17318		fi
17319
17320		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17321			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17322		fi
17323
17324		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17325
17326		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17327$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17328		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17329		if eval \${$cacheid+:} false; then :
17330  $as_echo_n "(cached) " >&6
17331else
17332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17333/* end confdefs.h.  */
17334int i;
17335int
17336main ()
17337{
17338
17339  ;
17340  return 0;
17341}
17342_ACEOF
17343if ac_fn_c_try_link "$LINENO"; then :
17344  eval $cacheid=yes
17345else
17346  eval $cacheid=no
17347fi
17348rm -f core conftest.err conftest.$ac_objext \
17349    conftest$ac_exeext conftest.$ac_ext
17350fi
17351
17352
17353		CFLAGS="$xorg_testset_save_CFLAGS"
17354
17355		eval supported=\$$cacheid
17356		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17357$as_echo "$supported" >&6; }
17358		if test "$supported" = "yes" ; then
17359			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17360			found="yes"
17361		fi
17362	fi
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378xorg_testset_save_CFLAGS="$CFLAGS"
17379
17380if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17381	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17382	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17383$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17384if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17385  $as_echo_n "(cached) " >&6
17386else
17387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17388/* end confdefs.h.  */
17389int i;
17390_ACEOF
17391if ac_fn_c_try_compile "$LINENO"; then :
17392  xorg_cv_cc_flag_unknown_warning_option=yes
17393else
17394  xorg_cv_cc_flag_unknown_warning_option=no
17395fi
17396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17397fi
17398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17399$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17400	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17401	CFLAGS="$xorg_testset_save_CFLAGS"
17402fi
17403
17404if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17405	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17406		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17407	fi
17408	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17409	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17410$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17411if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17412  $as_echo_n "(cached) " >&6
17413else
17414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17415/* end confdefs.h.  */
17416int i;
17417_ACEOF
17418if ac_fn_c_try_compile "$LINENO"; then :
17419  xorg_cv_cc_flag_unused_command_line_argument=yes
17420else
17421  xorg_cv_cc_flag_unused_command_line_argument=no
17422fi
17423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17424fi
17425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17426$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17427	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17428	CFLAGS="$xorg_testset_save_CFLAGS"
17429fi
17430
17431found="no"
17432
17433	if test $found = "no" ; then
17434		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17435			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17436		fi
17437
17438		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17439			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17440		fi
17441
17442		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17443
17444		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17445$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17446		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17447		if eval \${$cacheid+:} false; then :
17448  $as_echo_n "(cached) " >&6
17449else
17450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17451/* end confdefs.h.  */
17452int i;
17453int
17454main ()
17455{
17456
17457  ;
17458  return 0;
17459}
17460_ACEOF
17461if ac_fn_c_try_link "$LINENO"; then :
17462  eval $cacheid=yes
17463else
17464  eval $cacheid=no
17465fi
17466rm -f core conftest.err conftest.$ac_objext \
17467    conftest$ac_exeext conftest.$ac_ext
17468fi
17469
17470
17471		CFLAGS="$xorg_testset_save_CFLAGS"
17472
17473		eval supported=\$$cacheid
17474		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17475$as_echo "$supported" >&6; }
17476		if test "$supported" = "yes" ; then
17477			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17478			found="yes"
17479		fi
17480	fi
17481
17482
17483fi
17484
17485
17486
17487
17488
17489
17490
17491		CWARNFLAGS="$BASE_CFLAGS"
17492		if  test "x$GCC" = xyes ; then
17493		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17494		fi
17495
17496
17497
17498
17499
17500
17501
17502
17503# Check whether --with-xorg-module-dir was given.
17504if test "${with_xorg_module_dir+set}" = set; then :
17505  withval=$with_xorg_module_dir; moduledir="$withval"
17506else
17507  moduledir="$libdir/xorg/modules"
17508fi
17509
17510inputdir=${moduledir}/input
17511
17512
17513# Checks for extensions
17514
17515
17516
17517
17518
17519
17520if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17521	if test -n "$ac_tool_prefix"; then
17522  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17523set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17525$as_echo_n "checking for $ac_word... " >&6; }
17526if ${ac_cv_path_PKG_CONFIG+:} false; then :
17527  $as_echo_n "(cached) " >&6
17528else
17529  case $PKG_CONFIG in
17530  [\\/]* | ?:[\\/]*)
17531  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17532  ;;
17533  *)
17534  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17535for as_dir in $PATH
17536do
17537  IFS=$as_save_IFS
17538  test -z "$as_dir" && as_dir=.
17539    for ac_exec_ext in '' $ac_executable_extensions; do
17540  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17541    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17542    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17543    break 2
17544  fi
17545done
17546  done
17547IFS=$as_save_IFS
17548
17549  ;;
17550esac
17551fi
17552PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17553if test -n "$PKG_CONFIG"; then
17554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17555$as_echo "$PKG_CONFIG" >&6; }
17556else
17557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17558$as_echo "no" >&6; }
17559fi
17560
17561
17562fi
17563if test -z "$ac_cv_path_PKG_CONFIG"; then
17564  ac_pt_PKG_CONFIG=$PKG_CONFIG
17565  # Extract the first word of "pkg-config", so it can be a program name with args.
17566set dummy pkg-config; ac_word=$2
17567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17568$as_echo_n "checking for $ac_word... " >&6; }
17569if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
17570  $as_echo_n "(cached) " >&6
17571else
17572  case $ac_pt_PKG_CONFIG in
17573  [\\/]* | ?:[\\/]*)
17574  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17575  ;;
17576  *)
17577  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17578for as_dir in $PATH
17579do
17580  IFS=$as_save_IFS
17581  test -z "$as_dir" && as_dir=.
17582    for ac_exec_ext in '' $ac_executable_extensions; do
17583  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17584    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17585    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17586    break 2
17587  fi
17588done
17589  done
17590IFS=$as_save_IFS
17591
17592  ;;
17593esac
17594fi
17595ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17596if test -n "$ac_pt_PKG_CONFIG"; then
17597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17598$as_echo "$ac_pt_PKG_CONFIG" >&6; }
17599else
17600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17601$as_echo "no" >&6; }
17602fi
17603
17604  if test "x$ac_pt_PKG_CONFIG" = x; then
17605    PKG_CONFIG=""
17606  else
17607    case $cross_compiling:$ac_tool_warned in
17608yes:)
17609{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17610$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17611ac_tool_warned=yes ;;
17612esac
17613    PKG_CONFIG=$ac_pt_PKG_CONFIG
17614  fi
17615else
17616  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17617fi
17618
17619fi
17620if test -n "$PKG_CONFIG"; then
17621	_pkg_min_version=0.9.0
17622	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17623$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17624	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17625		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17626$as_echo "yes" >&6; }
17627	else
17628		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17629$as_echo "no" >&6; }
17630		PKG_CONFIG=""
17631	fi
17632fi
17633
17634
17635	SAVE_CFLAGS="$CFLAGS"
17636	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17637	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17638/* end confdefs.h.  */
17639
17640#include "xorg-server.h"
17641#if !defined RANDR
17642#error RANDR not defined
17643#endif
17644
17645int
17646main ()
17647{
17648
17649  ;
17650  return 0;
17651}
17652_ACEOF
17653if ac_fn_c_try_compile "$LINENO"; then :
17654  _EXT_CHECK=yes
17655else
17656  _EXT_CHECK=no
17657fi
17658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17659	CFLAGS="$SAVE_CFLAGS"
17660	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
17661$as_echo_n "checking if RANDR is defined... " >&6; }
17662	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17663$as_echo "$_EXT_CHECK" >&6; }
17664	if test "$_EXT_CHECK" != no; then
17665		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
17666	fi
17667
17668
17669
17670	SAVE_CFLAGS="$CFLAGS"
17671	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17672	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17673/* end confdefs.h.  */
17674
17675#include "xorg-server.h"
17676#if !defined XINPUT
17677#error XINPUT not defined
17678#endif
17679
17680int
17681main ()
17682{
17683
17684  ;
17685  return 0;
17686}
17687_ACEOF
17688if ac_fn_c_try_compile "$LINENO"; then :
17689  _EXT_CHECK=yes
17690else
17691  _EXT_CHECK=no
17692fi
17693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17694	CFLAGS="$SAVE_CFLAGS"
17695	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XINPUT is defined" >&5
17696$as_echo_n "checking if XINPUT is defined... " >&6; }
17697	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17698$as_echo "$_EXT_CHECK" >&6; }
17699	if test "$_EXT_CHECK" != no; then
17700		REQUIRED_MODULES="$REQUIRED_MODULES inputproto"
17701	fi
17702
17703
17704# Checks for pkg-config packages
17705
17706pkg_failed=no
17707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17708$as_echo_n "checking for XORG... " >&6; }
17709
17710if test -n "$XORG_CFLAGS"; then
17711    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
17712 elif test -n "$PKG_CONFIG"; then
17713    if test -n "$PKG_CONFIG" && \
17714    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.10.0 xproto \$REQUIRED_MODULES\""; } >&5
17715  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.10.0 xproto $REQUIRED_MODULES") 2>&5
17716  ac_status=$?
17717  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17718  test $ac_status = 0; }; then
17719  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.10.0 xproto $REQUIRED_MODULES" 2>/dev/null`
17720else
17721  pkg_failed=yes
17722fi
17723 else
17724    pkg_failed=untried
17725fi
17726if test -n "$XORG_LIBS"; then
17727    pkg_cv_XORG_LIBS="$XORG_LIBS"
17728 elif test -n "$PKG_CONFIG"; then
17729    if test -n "$PKG_CONFIG" && \
17730    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.10.0 xproto \$REQUIRED_MODULES\""; } >&5
17731  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.10.0 xproto $REQUIRED_MODULES") 2>&5
17732  ac_status=$?
17733  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17734  test $ac_status = 0; }; then
17735  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.10.0 xproto $REQUIRED_MODULES" 2>/dev/null`
17736else
17737  pkg_failed=yes
17738fi
17739 else
17740    pkg_failed=untried
17741fi
17742
17743
17744
17745if test $pkg_failed = yes; then
17746   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17747$as_echo "no" >&6; }
17748
17749if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17750        _pkg_short_errors_supported=yes
17751else
17752        _pkg_short_errors_supported=no
17753fi
17754        if test $_pkg_short_errors_supported = yes; then
17755	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.10.0 xproto $REQUIRED_MODULES" 2>&1`
17756        else
17757	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.10.0 xproto $REQUIRED_MODULES" 2>&1`
17758        fi
17759	# Put the nasty error message in config.log where it belongs
17760	echo "$XORG_PKG_ERRORS" >&5
17761
17762	as_fn_error $? "Package requirements (xorg-server >= 1.10.0 xproto $REQUIRED_MODULES) were not met:
17763
17764$XORG_PKG_ERRORS
17765
17766Consider adjusting the PKG_CONFIG_PATH environment variable if you
17767installed software in a non-standard prefix.
17768
17769Alternatively, you may set the environment variables XORG_CFLAGS
17770and XORG_LIBS to avoid the need to call pkg-config.
17771See the pkg-config man page for more details." "$LINENO" 5
17772
17773elif test $pkg_failed = untried; then
17774     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17775$as_echo "no" >&6; }
17776	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17777$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17778as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17779is in your PATH or set the PKG_CONFIG environment variable to the full
17780path to pkg-config.
17781
17782Alternatively, you may set the environment variables XORG_CFLAGS
17783and XORG_LIBS to avoid the need to call pkg-config.
17784See the pkg-config man page for more details.
17785
17786To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17787See \`config.log' for more details" "$LINENO" 5; }
17788
17789else
17790	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
17791	XORG_LIBS=$pkg_cv_XORG_LIBS
17792        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17793$as_echo "yes" >&6; }
17794
17795fi
17796sdkdir=$(pkg-config --variable=sdkdir xorg-server)
17797XORG_CFLAGS="$CWARNFLAGS $XORG_CFLAGS"
17798
17799# Checks for libraries.
17800
17801# Checks for header files.
17802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17803$as_echo_n "checking for ANSI C header files... " >&6; }
17804if ${ac_cv_header_stdc+:} false; then :
17805  $as_echo_n "(cached) " >&6
17806else
17807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17808/* end confdefs.h.  */
17809#include <stdlib.h>
17810#include <stdarg.h>
17811#include <string.h>
17812#include <float.h>
17813
17814int
17815main ()
17816{
17817
17818  ;
17819  return 0;
17820}
17821_ACEOF
17822if ac_fn_c_try_compile "$LINENO"; then :
17823  ac_cv_header_stdc=yes
17824else
17825  ac_cv_header_stdc=no
17826fi
17827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17828
17829if test $ac_cv_header_stdc = yes; then
17830  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17832/* end confdefs.h.  */
17833#include <string.h>
17834
17835_ACEOF
17836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17837  $EGREP "memchr" >/dev/null 2>&1; then :
17838
17839else
17840  ac_cv_header_stdc=no
17841fi
17842rm -f conftest*
17843
17844fi
17845
17846if test $ac_cv_header_stdc = yes; then
17847  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17849/* end confdefs.h.  */
17850#include <stdlib.h>
17851
17852_ACEOF
17853if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17854  $EGREP "free" >/dev/null 2>&1; then :
17855
17856else
17857  ac_cv_header_stdc=no
17858fi
17859rm -f conftest*
17860
17861fi
17862
17863if test $ac_cv_header_stdc = yes; then
17864  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17865  if test "$cross_compiling" = yes; then :
17866  :
17867else
17868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17869/* end confdefs.h.  */
17870#include <ctype.h>
17871#include <stdlib.h>
17872#if ((' ' & 0x0FF) == 0x020)
17873# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17874# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17875#else
17876# define ISLOWER(c) \
17877		   (('a' <= (c) && (c) <= 'i') \
17878		     || ('j' <= (c) && (c) <= 'r') \
17879		     || ('s' <= (c) && (c) <= 'z'))
17880# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17881#endif
17882
17883#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17884int
17885main ()
17886{
17887  int i;
17888  for (i = 0; i < 256; i++)
17889    if (XOR (islower (i), ISLOWER (i))
17890	|| toupper (i) != TOUPPER (i))
17891      return 2;
17892  return 0;
17893}
17894_ACEOF
17895if ac_fn_c_try_run "$LINENO"; then :
17896
17897else
17898  ac_cv_header_stdc=no
17899fi
17900rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17901  conftest.$ac_objext conftest.beam conftest.$ac_ext
17902fi
17903
17904fi
17905fi
17906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17907$as_echo "$ac_cv_header_stdc" >&6; }
17908if test $ac_cv_header_stdc = yes; then
17909
17910$as_echo "#define STDC_HEADERS 1" >>confdefs.h
17911
17912fi
17913
17914
17915DRIVER_NAME=elographics
17916
17917
17918
17919
17920
17921
17922if test x$APP_MAN_SUFFIX = x    ; then
17923    APP_MAN_SUFFIX=1
17924fi
17925if test x$APP_MAN_DIR = x    ; then
17926    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17927fi
17928
17929if test x$LIB_MAN_SUFFIX = x    ; then
17930    LIB_MAN_SUFFIX=3
17931fi
17932if test x$LIB_MAN_DIR = x    ; then
17933    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17934fi
17935
17936if test x$FILE_MAN_SUFFIX = x    ; then
17937    case $host_os in
17938	solaris*)	FILE_MAN_SUFFIX=4  ;;
17939	*)		FILE_MAN_SUFFIX=5  ;;
17940    esac
17941fi
17942if test x$FILE_MAN_DIR = x    ; then
17943    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17944fi
17945
17946if test x$MISC_MAN_SUFFIX = x    ; then
17947    case $host_os in
17948	solaris*)	MISC_MAN_SUFFIX=5  ;;
17949	*)		MISC_MAN_SUFFIX=7  ;;
17950    esac
17951fi
17952if test x$MISC_MAN_DIR = x    ; then
17953    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17954fi
17955
17956if test x$DRIVER_MAN_SUFFIX = x    ; then
17957    case $host_os in
17958	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
17959	*)		DRIVER_MAN_SUFFIX=4  ;;
17960    esac
17961fi
17962if test x$DRIVER_MAN_DIR = x    ; then
17963    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17964fi
17965
17966if test x$ADMIN_MAN_SUFFIX = x    ; then
17967    case $host_os in
17968	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
17969	*)		ADMIN_MAN_SUFFIX=8  ;;
17970    esac
17971fi
17972if test x$ADMIN_MAN_DIR = x    ; then
17973    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17974fi
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990XORG_MAN_PAGE="X Version 11"
17991
17992MAN_SUBSTS="\
17993	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17994	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17995	-e 's|__xservername__|Xorg|g' \
17996	-e 's|__xconfigfile__|xorg.conf|g' \
17997	-e 's|__xorgconfdir__|xorg.conf.d|g' \
17998	-e 's|__projectroot__|\$(prefix)|g' \
17999	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
18000	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18001	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18002	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18003	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18004	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18005	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18006
18007
18008
18009
18010
18011cat >>confdefs.h <<_ACEOF
18012#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18013_ACEOF
18014
18015	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18016	if test "x$PVM" = "x"; then
18017		PVM="0"
18018	fi
18019
18020cat >>confdefs.h <<_ACEOF
18021#define PACKAGE_VERSION_MINOR $PVM
18022_ACEOF
18023
18024	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18025	if test "x$PVP" = "x"; then
18026		PVP="0"
18027	fi
18028
18029cat >>confdefs.h <<_ACEOF
18030#define PACKAGE_VERSION_PATCHLEVEL $PVP
18031_ACEOF
18032
18033
18034
18035CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18036mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18037|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18038echo 'git directory not found: installing possibly empty changelog.' >&2)"
18039
18040
18041
18042ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18043
18044cat >confcache <<\_ACEOF
18045# This file is a shell script that caches the results of configure
18046# tests run on this system so they can be shared between configure
18047# scripts and configure runs, see configure's option --config-cache.
18048# It is not useful on other systems.  If it contains results you don't
18049# want to keep, you may remove or edit it.
18050#
18051# config.status only pays attention to the cache file if you give it
18052# the --recheck option to rerun configure.
18053#
18054# `ac_cv_env_foo' variables (set or unset) will be overridden when
18055# loading this file, other *unset* `ac_cv_foo' will be assigned the
18056# following values.
18057
18058_ACEOF
18059
18060# The following way of writing the cache mishandles newlines in values,
18061# but we know of no workaround that is simple, portable, and efficient.
18062# So, we kill variables containing newlines.
18063# Ultrix sh set writes to stderr and can't be redirected directly,
18064# and sets the high bit in the cache file unless we assign to the vars.
18065(
18066  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18067    eval ac_val=\$$ac_var
18068    case $ac_val in #(
18069    *${as_nl}*)
18070      case $ac_var in #(
18071      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18072$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18073      esac
18074      case $ac_var in #(
18075      _ | IFS | as_nl) ;; #(
18076      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18077      *) { eval $ac_var=; unset $ac_var;} ;;
18078      esac ;;
18079    esac
18080  done
18081
18082  (set) 2>&1 |
18083    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18084    *${as_nl}ac_space=\ *)
18085      # `set' does not quote correctly, so add quotes: double-quote
18086      # substitution turns \\\\ into \\, and sed turns \\ into \.
18087      sed -n \
18088	"s/'/'\\\\''/g;
18089	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18090      ;; #(
18091    *)
18092      # `set' quotes correctly as required by POSIX, so do not add quotes.
18093      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18094      ;;
18095    esac |
18096    sort
18097) |
18098  sed '
18099     /^ac_cv_env_/b end
18100     t clear
18101     :clear
18102     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18103     t end
18104     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18105     :end' >>confcache
18106if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18107  if test -w "$cache_file"; then
18108    if test "x$cache_file" != "x/dev/null"; then
18109      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18110$as_echo "$as_me: updating cache $cache_file" >&6;}
18111      if test ! -f "$cache_file" || test -h "$cache_file"; then
18112	cat confcache >"$cache_file"
18113      else
18114        case $cache_file in #(
18115        */* | ?:*)
18116	  mv -f confcache "$cache_file"$$ &&
18117	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18118        *)
18119	  mv -f confcache "$cache_file" ;;
18120	esac
18121      fi
18122    fi
18123  else
18124    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18125$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18126  fi
18127fi
18128rm -f confcache
18129
18130test "x$prefix" = xNONE && prefix=$ac_default_prefix
18131# Let make expand exec_prefix.
18132test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18133
18134DEFS=-DHAVE_CONFIG_H
18135
18136ac_libobjs=
18137ac_ltlibobjs=
18138U=
18139for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18140  # 1. Remove the extension, and $U if already installed.
18141  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18142  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18143  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18144  #    will be set to the directory where LIBOBJS objects are built.
18145  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18146  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18147done
18148LIBOBJS=$ac_libobjs
18149
18150LTLIBOBJS=$ac_ltlibobjs
18151
18152
18153 if test -n "$EXEEXT"; then
18154  am__EXEEXT_TRUE=
18155  am__EXEEXT_FALSE='#'
18156else
18157  am__EXEEXT_TRUE='#'
18158  am__EXEEXT_FALSE=
18159fi
18160
18161if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18162  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18163Usually this means the macro was only invoked conditionally." "$LINENO" 5
18164fi
18165if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18166  as_fn_error $? "conditional \"AMDEP\" was never defined.
18167Usually this means the macro was only invoked conditionally." "$LINENO" 5
18168fi
18169if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18170  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18171Usually this means the macro was only invoked conditionally." "$LINENO" 5
18172fi
18173if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18174  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18175Usually this means the macro was only invoked conditionally." "$LINENO" 5
18176fi
18177
18178: "${CONFIG_STATUS=./config.status}"
18179ac_write_fail=0
18180ac_clean_files_save=$ac_clean_files
18181ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18182{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18183$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18184as_write_fail=0
18185cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18186#! $SHELL
18187# Generated by $as_me.
18188# Run this file to recreate the current configuration.
18189# Compiler output produced by configure, useful for debugging
18190# configure, is in config.log if it exists.
18191
18192debug=false
18193ac_cs_recheck=false
18194ac_cs_silent=false
18195
18196SHELL=\${CONFIG_SHELL-$SHELL}
18197export SHELL
18198_ASEOF
18199cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18200## -------------------- ##
18201## M4sh Initialization. ##
18202## -------------------- ##
18203
18204# Be more Bourne compatible
18205DUALCASE=1; export DUALCASE # for MKS sh
18206if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18207  emulate sh
18208  NULLCMD=:
18209  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18210  # is contrary to our usage.  Disable this feature.
18211  alias -g '${1+"$@"}'='"$@"'
18212  setopt NO_GLOB_SUBST
18213else
18214  case `(set -o) 2>/dev/null` in #(
18215  *posix*) :
18216    set -o posix ;; #(
18217  *) :
18218     ;;
18219esac
18220fi
18221
18222
18223as_nl='
18224'
18225export as_nl
18226# Printing a long string crashes Solaris 7 /usr/bin/printf.
18227as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18228as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18229as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18230# Prefer a ksh shell builtin over an external printf program on Solaris,
18231# but without wasting forks for bash or zsh.
18232if test -z "$BASH_VERSION$ZSH_VERSION" \
18233    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18234  as_echo='print -r --'
18235  as_echo_n='print -rn --'
18236elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18237  as_echo='printf %s\n'
18238  as_echo_n='printf %s'
18239else
18240  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18241    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18242    as_echo_n='/usr/ucb/echo -n'
18243  else
18244    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18245    as_echo_n_body='eval
18246      arg=$1;
18247      case $arg in #(
18248      *"$as_nl"*)
18249	expr "X$arg" : "X\\(.*\\)$as_nl";
18250	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18251      esac;
18252      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18253    '
18254    export as_echo_n_body
18255    as_echo_n='sh -c $as_echo_n_body as_echo'
18256  fi
18257  export as_echo_body
18258  as_echo='sh -c $as_echo_body as_echo'
18259fi
18260
18261# The user is always right.
18262if test "${PATH_SEPARATOR+set}" != set; then
18263  PATH_SEPARATOR=:
18264  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18265    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18266      PATH_SEPARATOR=';'
18267  }
18268fi
18269
18270
18271# IFS
18272# We need space, tab and new line, in precisely that order.  Quoting is
18273# there to prevent editors from complaining about space-tab.
18274# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18275# splitting by setting IFS to empty value.)
18276IFS=" ""	$as_nl"
18277
18278# Find who we are.  Look in the path if we contain no directory separator.
18279as_myself=
18280case $0 in #((
18281  *[\\/]* ) as_myself=$0 ;;
18282  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18283for as_dir in $PATH
18284do
18285  IFS=$as_save_IFS
18286  test -z "$as_dir" && as_dir=.
18287    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18288  done
18289IFS=$as_save_IFS
18290
18291     ;;
18292esac
18293# We did not find ourselves, most probably we were run as `sh COMMAND'
18294# in which case we are not to be found in the path.
18295if test "x$as_myself" = x; then
18296  as_myself=$0
18297fi
18298if test ! -f "$as_myself"; then
18299  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18300  exit 1
18301fi
18302
18303# Unset variables that we do not need and which cause bugs (e.g. in
18304# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18305# suppresses any "Segmentation fault" message there.  '((' could
18306# trigger a bug in pdksh 5.2.14.
18307for as_var in BASH_ENV ENV MAIL MAILPATH
18308do eval test x\${$as_var+set} = xset \
18309  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18310done
18311PS1='$ '
18312PS2='> '
18313PS4='+ '
18314
18315# NLS nuisances.
18316LC_ALL=C
18317export LC_ALL
18318LANGUAGE=C
18319export LANGUAGE
18320
18321# CDPATH.
18322(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18323
18324
18325# as_fn_error STATUS ERROR [LINENO LOG_FD]
18326# ----------------------------------------
18327# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18328# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18329# script with STATUS, using 1 if that was 0.
18330as_fn_error ()
18331{
18332  as_status=$1; test $as_status -eq 0 && as_status=1
18333  if test "$4"; then
18334    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18335    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18336  fi
18337  $as_echo "$as_me: error: $2" >&2
18338  as_fn_exit $as_status
18339} # as_fn_error
18340
18341
18342# as_fn_set_status STATUS
18343# -----------------------
18344# Set $? to STATUS, without forking.
18345as_fn_set_status ()
18346{
18347  return $1
18348} # as_fn_set_status
18349
18350# as_fn_exit STATUS
18351# -----------------
18352# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18353as_fn_exit ()
18354{
18355  set +e
18356  as_fn_set_status $1
18357  exit $1
18358} # as_fn_exit
18359
18360# as_fn_unset VAR
18361# ---------------
18362# Portably unset VAR.
18363as_fn_unset ()
18364{
18365  { eval $1=; unset $1;}
18366}
18367as_unset=as_fn_unset
18368# as_fn_append VAR VALUE
18369# ----------------------
18370# Append the text in VALUE to the end of the definition contained in VAR. Take
18371# advantage of any shell optimizations that allow amortized linear growth over
18372# repeated appends, instead of the typical quadratic growth present in naive
18373# implementations.
18374if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18375  eval 'as_fn_append ()
18376  {
18377    eval $1+=\$2
18378  }'
18379else
18380  as_fn_append ()
18381  {
18382    eval $1=\$$1\$2
18383  }
18384fi # as_fn_append
18385
18386# as_fn_arith ARG...
18387# ------------------
18388# Perform arithmetic evaluation on the ARGs, and store the result in the
18389# global $as_val. Take advantage of shells that can avoid forks. The arguments
18390# must be portable across $(()) and expr.
18391if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18392  eval 'as_fn_arith ()
18393  {
18394    as_val=$(( $* ))
18395  }'
18396else
18397  as_fn_arith ()
18398  {
18399    as_val=`expr "$@" || test $? -eq 1`
18400  }
18401fi # as_fn_arith
18402
18403
18404if expr a : '\(a\)' >/dev/null 2>&1 &&
18405   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18406  as_expr=expr
18407else
18408  as_expr=false
18409fi
18410
18411if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18412  as_basename=basename
18413else
18414  as_basename=false
18415fi
18416
18417if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18418  as_dirname=dirname
18419else
18420  as_dirname=false
18421fi
18422
18423as_me=`$as_basename -- "$0" ||
18424$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18425	 X"$0" : 'X\(//\)$' \| \
18426	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18427$as_echo X/"$0" |
18428    sed '/^.*\/\([^/][^/]*\)\/*$/{
18429	    s//\1/
18430	    q
18431	  }
18432	  /^X\/\(\/\/\)$/{
18433	    s//\1/
18434	    q
18435	  }
18436	  /^X\/\(\/\).*/{
18437	    s//\1/
18438	    q
18439	  }
18440	  s/.*/./; q'`
18441
18442# Avoid depending upon Character Ranges.
18443as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18444as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18445as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18446as_cr_digits='0123456789'
18447as_cr_alnum=$as_cr_Letters$as_cr_digits
18448
18449ECHO_C= ECHO_N= ECHO_T=
18450case `echo -n x` in #(((((
18451-n*)
18452  case `echo 'xy\c'` in
18453  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18454  xy)  ECHO_C='\c';;
18455  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18456       ECHO_T='	';;
18457  esac;;
18458*)
18459  ECHO_N='-n';;
18460esac
18461
18462rm -f conf$$ conf$$.exe conf$$.file
18463if test -d conf$$.dir; then
18464  rm -f conf$$.dir/conf$$.file
18465else
18466  rm -f conf$$.dir
18467  mkdir conf$$.dir 2>/dev/null
18468fi
18469if (echo >conf$$.file) 2>/dev/null; then
18470  if ln -s conf$$.file conf$$ 2>/dev/null; then
18471    as_ln_s='ln -s'
18472    # ... but there are two gotchas:
18473    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18474    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18475    # In both cases, we have to default to `cp -p'.
18476    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18477      as_ln_s='cp -p'
18478  elif ln conf$$.file conf$$ 2>/dev/null; then
18479    as_ln_s=ln
18480  else
18481    as_ln_s='cp -p'
18482  fi
18483else
18484  as_ln_s='cp -p'
18485fi
18486rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18487rmdir conf$$.dir 2>/dev/null
18488
18489
18490# as_fn_mkdir_p
18491# -------------
18492# Create "$as_dir" as a directory, including parents if necessary.
18493as_fn_mkdir_p ()
18494{
18495
18496  case $as_dir in #(
18497  -*) as_dir=./$as_dir;;
18498  esac
18499  test -d "$as_dir" || eval $as_mkdir_p || {
18500    as_dirs=
18501    while :; do
18502      case $as_dir in #(
18503      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18504      *) as_qdir=$as_dir;;
18505      esac
18506      as_dirs="'$as_qdir' $as_dirs"
18507      as_dir=`$as_dirname -- "$as_dir" ||
18508$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18509	 X"$as_dir" : 'X\(//\)[^/]' \| \
18510	 X"$as_dir" : 'X\(//\)$' \| \
18511	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18512$as_echo X"$as_dir" |
18513    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18514	    s//\1/
18515	    q
18516	  }
18517	  /^X\(\/\/\)[^/].*/{
18518	    s//\1/
18519	    q
18520	  }
18521	  /^X\(\/\/\)$/{
18522	    s//\1/
18523	    q
18524	  }
18525	  /^X\(\/\).*/{
18526	    s//\1/
18527	    q
18528	  }
18529	  s/.*/./; q'`
18530      test -d "$as_dir" && break
18531    done
18532    test -z "$as_dirs" || eval "mkdir $as_dirs"
18533  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18534
18535
18536} # as_fn_mkdir_p
18537if mkdir -p . 2>/dev/null; then
18538  as_mkdir_p='mkdir -p "$as_dir"'
18539else
18540  test -d ./-p && rmdir ./-p
18541  as_mkdir_p=false
18542fi
18543
18544if test -x / >/dev/null 2>&1; then
18545  as_test_x='test -x'
18546else
18547  if ls -dL / >/dev/null 2>&1; then
18548    as_ls_L_option=L
18549  else
18550    as_ls_L_option=
18551  fi
18552  as_test_x='
18553    eval sh -c '\''
18554      if test -d "$1"; then
18555	test -d "$1/.";
18556      else
18557	case $1 in #(
18558	-*)set "./$1";;
18559	esac;
18560	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18561	???[sx]*):;;*)false;;esac;fi
18562    '\'' sh
18563  '
18564fi
18565as_executable_p=$as_test_x
18566
18567# Sed expression to map a string onto a valid CPP name.
18568as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18569
18570# Sed expression to map a string onto a valid variable name.
18571as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18572
18573
18574exec 6>&1
18575## ----------------------------------- ##
18576## Main body of $CONFIG_STATUS script. ##
18577## ----------------------------------- ##
18578_ASEOF
18579test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18580
18581cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18582# Save the log message, to keep $0 and so on meaningful, and to
18583# report actual input values of CONFIG_FILES etc. instead of their
18584# values after options handling.
18585ac_log="
18586This file was extended by xf86-input-elographics $as_me 1.4.1, which was
18587generated by GNU Autoconf 2.68.  Invocation command line was
18588
18589  CONFIG_FILES    = $CONFIG_FILES
18590  CONFIG_HEADERS  = $CONFIG_HEADERS
18591  CONFIG_LINKS    = $CONFIG_LINKS
18592  CONFIG_COMMANDS = $CONFIG_COMMANDS
18593  $ $0 $@
18594
18595on `(hostname || uname -n) 2>/dev/null | sed 1q`
18596"
18597
18598_ACEOF
18599
18600case $ac_config_files in *"
18601"*) set x $ac_config_files; shift; ac_config_files=$*;;
18602esac
18603
18604case $ac_config_headers in *"
18605"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18606esac
18607
18608
18609cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18610# Files that config.status was made for.
18611config_files="$ac_config_files"
18612config_headers="$ac_config_headers"
18613config_commands="$ac_config_commands"
18614
18615_ACEOF
18616
18617cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18618ac_cs_usage="\
18619\`$as_me' instantiates files and other configuration actions
18620from templates according to the current configuration.  Unless the files
18621and actions are specified as TAGs, all are instantiated by default.
18622
18623Usage: $0 [OPTION]... [TAG]...
18624
18625  -h, --help       print this help, then exit
18626  -V, --version    print version number and configuration settings, then exit
18627      --config     print configuration, then exit
18628  -q, --quiet, --silent
18629                   do not print progress messages
18630  -d, --debug      don't remove temporary files
18631      --recheck    update $as_me by reconfiguring in the same conditions
18632      --file=FILE[:TEMPLATE]
18633                   instantiate the configuration file FILE
18634      --header=FILE[:TEMPLATE]
18635                   instantiate the configuration header FILE
18636
18637Configuration files:
18638$config_files
18639
18640Configuration headers:
18641$config_headers
18642
18643Configuration commands:
18644$config_commands
18645
18646Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18647
18648_ACEOF
18649cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18650ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18651ac_cs_version="\\
18652xf86-input-elographics config.status 1.4.1
18653configured by $0, generated by GNU Autoconf 2.68,
18654  with options \\"\$ac_cs_config\\"
18655
18656Copyright (C) 2010 Free Software Foundation, Inc.
18657This config.status script is free software; the Free Software Foundation
18658gives unlimited permission to copy, distribute and modify it."
18659
18660ac_pwd='$ac_pwd'
18661srcdir='$srcdir'
18662INSTALL='$INSTALL'
18663MKDIR_P='$MKDIR_P'
18664AWK='$AWK'
18665test -n "\$AWK" || AWK=awk
18666_ACEOF
18667
18668cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18669# The default lists apply if the user does not specify any file.
18670ac_need_defaults=:
18671while test $# != 0
18672do
18673  case $1 in
18674  --*=?*)
18675    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18676    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18677    ac_shift=:
18678    ;;
18679  --*=)
18680    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18681    ac_optarg=
18682    ac_shift=:
18683    ;;
18684  *)
18685    ac_option=$1
18686    ac_optarg=$2
18687    ac_shift=shift
18688    ;;
18689  esac
18690
18691  case $ac_option in
18692  # Handling of the options.
18693  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18694    ac_cs_recheck=: ;;
18695  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18696    $as_echo "$ac_cs_version"; exit ;;
18697  --config | --confi | --conf | --con | --co | --c )
18698    $as_echo "$ac_cs_config"; exit ;;
18699  --debug | --debu | --deb | --de | --d | -d )
18700    debug=: ;;
18701  --file | --fil | --fi | --f )
18702    $ac_shift
18703    case $ac_optarg in
18704    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18705    '') as_fn_error $? "missing file argument" ;;
18706    esac
18707    as_fn_append CONFIG_FILES " '$ac_optarg'"
18708    ac_need_defaults=false;;
18709  --header | --heade | --head | --hea )
18710    $ac_shift
18711    case $ac_optarg in
18712    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18713    esac
18714    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18715    ac_need_defaults=false;;
18716  --he | --h)
18717    # Conflict between --help and --header
18718    as_fn_error $? "ambiguous option: \`$1'
18719Try \`$0 --help' for more information.";;
18720  --help | --hel | -h )
18721    $as_echo "$ac_cs_usage"; exit ;;
18722  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18723  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18724    ac_cs_silent=: ;;
18725
18726  # This is an error.
18727  -*) as_fn_error $? "unrecognized option: \`$1'
18728Try \`$0 --help' for more information." ;;
18729
18730  *) as_fn_append ac_config_targets " $1"
18731     ac_need_defaults=false ;;
18732
18733  esac
18734  shift
18735done
18736
18737ac_configure_extra_args=
18738
18739if $ac_cs_silent; then
18740  exec 6>/dev/null
18741  ac_configure_extra_args="$ac_configure_extra_args --silent"
18742fi
18743
18744_ACEOF
18745cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18746if \$ac_cs_recheck; then
18747  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18748  shift
18749  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18750  CONFIG_SHELL='$SHELL'
18751  export CONFIG_SHELL
18752  exec "\$@"
18753fi
18754
18755_ACEOF
18756cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18757exec 5>>config.log
18758{
18759  echo
18760  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18761## Running $as_me. ##
18762_ASBOX
18763  $as_echo "$ac_log"
18764} >&5
18765
18766_ACEOF
18767cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18768#
18769# INIT-COMMANDS
18770#
18771AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18772
18773
18774# The HP-UX ksh and POSIX shell print the target directory to stdout
18775# if CDPATH is set.
18776(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18777
18778sed_quote_subst='$sed_quote_subst'
18779double_quote_subst='$double_quote_subst'
18780delay_variable_subst='$delay_variable_subst'
18781enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18782macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18783macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18784enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18785pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18786enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18787SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18788ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18789PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18790host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18791host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18792host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18793build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18794build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18795build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18796SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18797Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18798GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18799EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18800FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18801LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18802NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18803LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18804max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18805ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18806exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18807lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18808lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18809lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18810lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18811lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18812reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18813reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18814OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18815deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18816file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18817file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18818want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18819DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18820sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18821AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18822AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18823archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18824STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18825RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18826old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18827old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18828old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18829lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18830CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18831CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18832compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18833GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18834lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18835lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18836lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18837lt_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"`'
18838nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18839lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18840objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18841MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18842lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18843lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18844lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18845lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18846lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18847need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18848MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18849DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18850NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18851LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18852OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18853OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18854libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18855shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18856extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18857archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18858enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18859export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18860whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18861compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18862old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18863old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18864archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18865archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18866module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18867module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18868with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18869allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18870no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18871hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18872hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18873hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18874hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18875hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18876hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18877hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18878inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18879link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18880always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18881export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18882exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18883include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18884prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18885postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18886file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18887variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18888need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18889need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18890version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18891runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18892shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18893shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18894libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18895library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18896soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18897install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18898postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18899postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18900finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18901finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18902hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18903sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18904sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18905hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18906enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18907enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18908enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18909old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18910striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18911
18912LTCC='$LTCC'
18913LTCFLAGS='$LTCFLAGS'
18914compiler='$compiler_DEFAULT'
18915
18916# A function that is used when there is no print builtin or printf.
18917func_fallback_echo ()
18918{
18919  eval 'cat <<_LTECHO_EOF
18920\$1
18921_LTECHO_EOF'
18922}
18923
18924# Quote evaled strings.
18925for var in SHELL \
18926ECHO \
18927PATH_SEPARATOR \
18928SED \
18929GREP \
18930EGREP \
18931FGREP \
18932LD \
18933NM \
18934LN_S \
18935lt_SP2NL \
18936lt_NL2SP \
18937reload_flag \
18938OBJDUMP \
18939deplibs_check_method \
18940file_magic_cmd \
18941file_magic_glob \
18942want_nocaseglob \
18943DLLTOOL \
18944sharedlib_from_linklib_cmd \
18945AR \
18946AR_FLAGS \
18947archiver_list_spec \
18948STRIP \
18949RANLIB \
18950CC \
18951CFLAGS \
18952compiler \
18953lt_cv_sys_global_symbol_pipe \
18954lt_cv_sys_global_symbol_to_cdecl \
18955lt_cv_sys_global_symbol_to_c_name_address \
18956lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18957nm_file_list_spec \
18958lt_prog_compiler_no_builtin_flag \
18959lt_prog_compiler_pic \
18960lt_prog_compiler_wl \
18961lt_prog_compiler_static \
18962lt_cv_prog_compiler_c_o \
18963need_locks \
18964MANIFEST_TOOL \
18965DSYMUTIL \
18966NMEDIT \
18967LIPO \
18968OTOOL \
18969OTOOL64 \
18970shrext_cmds \
18971export_dynamic_flag_spec \
18972whole_archive_flag_spec \
18973compiler_needs_object \
18974with_gnu_ld \
18975allow_undefined_flag \
18976no_undefined_flag \
18977hardcode_libdir_flag_spec \
18978hardcode_libdir_separator \
18979exclude_expsyms \
18980include_expsyms \
18981file_list_spec \
18982variables_saved_for_relink \
18983libname_spec \
18984library_names_spec \
18985soname_spec \
18986install_override_mode \
18987finish_eval \
18988old_striplib \
18989striplib; do
18990    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18991    *[\\\\\\\`\\"\\\$]*)
18992      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18993      ;;
18994    *)
18995      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18996      ;;
18997    esac
18998done
18999
19000# Double-quote double-evaled strings.
19001for var in reload_cmds \
19002old_postinstall_cmds \
19003old_postuninstall_cmds \
19004old_archive_cmds \
19005extract_expsyms_cmds \
19006old_archive_from_new_cmds \
19007old_archive_from_expsyms_cmds \
19008archive_cmds \
19009archive_expsym_cmds \
19010module_cmds \
19011module_expsym_cmds \
19012export_symbols_cmds \
19013prelink_cmds \
19014postlink_cmds \
19015postinstall_cmds \
19016postuninstall_cmds \
19017finish_cmds \
19018sys_lib_search_path_spec \
19019sys_lib_dlsearch_path_spec; do
19020    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19021    *[\\\\\\\`\\"\\\$]*)
19022      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19023      ;;
19024    *)
19025      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19026      ;;
19027    esac
19028done
19029
19030ac_aux_dir='$ac_aux_dir'
19031xsi_shell='$xsi_shell'
19032lt_shell_append='$lt_shell_append'
19033
19034# See if we are running on zsh, and set the options which allow our
19035# commands through without removal of \ escapes INIT.
19036if test -n "\${ZSH_VERSION+set}" ; then
19037   setopt NO_GLOB_SUBST
19038fi
19039
19040
19041    PACKAGE='$PACKAGE'
19042    VERSION='$VERSION'
19043    TIMESTAMP='$TIMESTAMP'
19044    RM='$RM'
19045    ofile='$ofile'
19046
19047
19048
19049
19050_ACEOF
19051
19052cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19053
19054# Handling of arguments.
19055for ac_config_target in $ac_config_targets
19056do
19057  case $ac_config_target in
19058    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19059    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19060    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19061    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19062    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19063    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19064
19065  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19066  esac
19067done
19068
19069
19070# If the user did not use the arguments to specify the items to instantiate,
19071# then the envvar interface is used.  Set only those that are not.
19072# We use the long form for the default assignment because of an extremely
19073# bizarre bug on SunOS 4.1.3.
19074if $ac_need_defaults; then
19075  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19076  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19077  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19078fi
19079
19080# Have a temporary directory for convenience.  Make it in the build tree
19081# simply because there is no reason against having it here, and in addition,
19082# creating and moving files from /tmp can sometimes cause problems.
19083# Hook for its removal unless debugging.
19084# Note that there is a small window in which the directory will not be cleaned:
19085# after its creation but before its name has been assigned to `$tmp'.
19086$debug ||
19087{
19088  tmp= ac_tmp=
19089  trap 'exit_status=$?
19090  : "${ac_tmp:=$tmp}"
19091  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19092' 0
19093  trap 'as_fn_exit 1' 1 2 13 15
19094}
19095# Create a (secure) tmp directory for tmp files.
19096
19097{
19098  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19099  test -d "$tmp"
19100}  ||
19101{
19102  tmp=./conf$$-$RANDOM
19103  (umask 077 && mkdir "$tmp")
19104} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19105ac_tmp=$tmp
19106
19107# Set up the scripts for CONFIG_FILES section.
19108# No need to generate them if there are no CONFIG_FILES.
19109# This happens for instance with `./config.status config.h'.
19110if test -n "$CONFIG_FILES"; then
19111
19112
19113ac_cr=`echo X | tr X '\015'`
19114# On cygwin, bash can eat \r inside `` if the user requested igncr.
19115# But we know of no other shell where ac_cr would be empty at this
19116# point, so we can use a bashism as a fallback.
19117if test "x$ac_cr" = x; then
19118  eval ac_cr=\$\'\\r\'
19119fi
19120ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19121if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19122  ac_cs_awk_cr='\\r'
19123else
19124  ac_cs_awk_cr=$ac_cr
19125fi
19126
19127echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19128_ACEOF
19129
19130
19131{
19132  echo "cat >conf$$subs.awk <<_ACEOF" &&
19133  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19134  echo "_ACEOF"
19135} >conf$$subs.sh ||
19136  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19137ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19138ac_delim='%!_!# '
19139for ac_last_try in false false false false false :; do
19140  . ./conf$$subs.sh ||
19141    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19142
19143  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19144  if test $ac_delim_n = $ac_delim_num; then
19145    break
19146  elif $ac_last_try; then
19147    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19148  else
19149    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19150  fi
19151done
19152rm -f conf$$subs.sh
19153
19154cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19155cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19156_ACEOF
19157sed -n '
19158h
19159s/^/S["/; s/!.*/"]=/
19160p
19161g
19162s/^[^!]*!//
19163:repl
19164t repl
19165s/'"$ac_delim"'$//
19166t delim
19167:nl
19168h
19169s/\(.\{148\}\)..*/\1/
19170t more1
19171s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19172p
19173n
19174b repl
19175:more1
19176s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19177p
19178g
19179s/.\{148\}//
19180t nl
19181:delim
19182h
19183s/\(.\{148\}\)..*/\1/
19184t more2
19185s/["\\]/\\&/g; s/^/"/; s/$/"/
19186p
19187b
19188:more2
19189s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19190p
19191g
19192s/.\{148\}//
19193t delim
19194' <conf$$subs.awk | sed '
19195/^[^""]/{
19196  N
19197  s/\n//
19198}
19199' >>$CONFIG_STATUS || ac_write_fail=1
19200rm -f conf$$subs.awk
19201cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19202_ACAWK
19203cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19204  for (key in S) S_is_set[key] = 1
19205  FS = ""
19206
19207}
19208{
19209  line = $ 0
19210  nfields = split(line, field, "@")
19211  substed = 0
19212  len = length(field[1])
19213  for (i = 2; i < nfields; i++) {
19214    key = field[i]
19215    keylen = length(key)
19216    if (S_is_set[key]) {
19217      value = S[key]
19218      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19219      len += length(value) + length(field[++i])
19220      substed = 1
19221    } else
19222      len += 1 + keylen
19223  }
19224
19225  print line
19226}
19227
19228_ACAWK
19229_ACEOF
19230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19231if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19232  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19233else
19234  cat
19235fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19236  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19237_ACEOF
19238
19239# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19240# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19241# trailing colons and then remove the whole line if VPATH becomes empty
19242# (actually we leave an empty line to preserve line numbers).
19243if test "x$srcdir" = x.; then
19244  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19245h
19246s///
19247s/^/:/
19248s/[	 ]*$/:/
19249s/:\$(srcdir):/:/g
19250s/:\${srcdir}:/:/g
19251s/:@srcdir@:/:/g
19252s/^:*//
19253s/:*$//
19254x
19255s/\(=[	 ]*\).*/\1/
19256G
19257s/\n//
19258s/^[^=]*=[	 ]*$//
19259}'
19260fi
19261
19262cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19263fi # test -n "$CONFIG_FILES"
19264
19265# Set up the scripts for CONFIG_HEADERS section.
19266# No need to generate them if there are no CONFIG_HEADERS.
19267# This happens for instance with `./config.status Makefile'.
19268if test -n "$CONFIG_HEADERS"; then
19269cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19270BEGIN {
19271_ACEOF
19272
19273# Transform confdefs.h into an awk script `defines.awk', embedded as
19274# here-document in config.status, that substitutes the proper values into
19275# config.h.in to produce config.h.
19276
19277# Create a delimiter string that does not exist in confdefs.h, to ease
19278# handling of long lines.
19279ac_delim='%!_!# '
19280for ac_last_try in false false :; do
19281  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19282  if test -z "$ac_tt"; then
19283    break
19284  elif $ac_last_try; then
19285    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19286  else
19287    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19288  fi
19289done
19290
19291# For the awk script, D is an array of macro values keyed by name,
19292# likewise P contains macro parameters if any.  Preserve backslash
19293# newline sequences.
19294
19295ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19296sed -n '
19297s/.\{148\}/&'"$ac_delim"'/g
19298t rset
19299:rset
19300s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19301t def
19302d
19303:def
19304s/\\$//
19305t bsnl
19306s/["\\]/\\&/g
19307s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19308D["\1"]=" \3"/p
19309s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19310d
19311:bsnl
19312s/["\\]/\\&/g
19313s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19314D["\1"]=" \3\\\\\\n"\\/p
19315t cont
19316s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19317t cont
19318d
19319:cont
19320n
19321s/.\{148\}/&'"$ac_delim"'/g
19322t clear
19323:clear
19324s/\\$//
19325t bsnlc
19326s/["\\]/\\&/g; s/^/"/; s/$/"/p
19327d
19328:bsnlc
19329s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19330b cont
19331' <confdefs.h | sed '
19332s/'"$ac_delim"'/"\\\
19333"/g' >>$CONFIG_STATUS || ac_write_fail=1
19334
19335cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19336  for (key in D) D_is_set[key] = 1
19337  FS = ""
19338}
19339/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19340  line = \$ 0
19341  split(line, arg, " ")
19342  if (arg[1] == "#") {
19343    defundef = arg[2]
19344    mac1 = arg[3]
19345  } else {
19346    defundef = substr(arg[1], 2)
19347    mac1 = arg[2]
19348  }
19349  split(mac1, mac2, "(") #)
19350  macro = mac2[1]
19351  prefix = substr(line, 1, index(line, defundef) - 1)
19352  if (D_is_set[macro]) {
19353    # Preserve the white space surrounding the "#".
19354    print prefix "define", macro P[macro] D[macro]
19355    next
19356  } else {
19357    # Replace #undef with comments.  This is necessary, for example,
19358    # in the case of _POSIX_SOURCE, which is predefined and required
19359    # on some systems where configure will not decide to define it.
19360    if (defundef == "undef") {
19361      print "/*", prefix defundef, macro, "*/"
19362      next
19363    }
19364  }
19365}
19366{ print }
19367_ACAWK
19368_ACEOF
19369cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19370  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19371fi # test -n "$CONFIG_HEADERS"
19372
19373
19374eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19375shift
19376for ac_tag
19377do
19378  case $ac_tag in
19379  :[FHLC]) ac_mode=$ac_tag; continue;;
19380  esac
19381  case $ac_mode$ac_tag in
19382  :[FHL]*:*);;
19383  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19384  :[FH]-) ac_tag=-:-;;
19385  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19386  esac
19387  ac_save_IFS=$IFS
19388  IFS=:
19389  set x $ac_tag
19390  IFS=$ac_save_IFS
19391  shift
19392  ac_file=$1
19393  shift
19394
19395  case $ac_mode in
19396  :L) ac_source=$1;;
19397  :[FH])
19398    ac_file_inputs=
19399    for ac_f
19400    do
19401      case $ac_f in
19402      -) ac_f="$ac_tmp/stdin";;
19403      *) # Look for the file first in the build tree, then in the source tree
19404	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19405	 # because $ac_f cannot contain `:'.
19406	 test -f "$ac_f" ||
19407	   case $ac_f in
19408	   [\\/$]*) false;;
19409	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19410	   esac ||
19411	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19412      esac
19413      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19414      as_fn_append ac_file_inputs " '$ac_f'"
19415    done
19416
19417    # Let's still pretend it is `configure' which instantiates (i.e., don't
19418    # use $as_me), people would be surprised to read:
19419    #    /* config.h.  Generated by config.status.  */
19420    configure_input='Generated from '`
19421	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19422	`' by configure.'
19423    if test x"$ac_file" != x-; then
19424      configure_input="$ac_file.  $configure_input"
19425      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19426$as_echo "$as_me: creating $ac_file" >&6;}
19427    fi
19428    # Neutralize special characters interpreted by sed in replacement strings.
19429    case $configure_input in #(
19430    *\&* | *\|* | *\\* )
19431       ac_sed_conf_input=`$as_echo "$configure_input" |
19432       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19433    *) ac_sed_conf_input=$configure_input;;
19434    esac
19435
19436    case $ac_tag in
19437    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19438      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19439    esac
19440    ;;
19441  esac
19442
19443  ac_dir=`$as_dirname -- "$ac_file" ||
19444$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19445	 X"$ac_file" : 'X\(//\)[^/]' \| \
19446	 X"$ac_file" : 'X\(//\)$' \| \
19447	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19448$as_echo X"$ac_file" |
19449    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19450	    s//\1/
19451	    q
19452	  }
19453	  /^X\(\/\/\)[^/].*/{
19454	    s//\1/
19455	    q
19456	  }
19457	  /^X\(\/\/\)$/{
19458	    s//\1/
19459	    q
19460	  }
19461	  /^X\(\/\).*/{
19462	    s//\1/
19463	    q
19464	  }
19465	  s/.*/./; q'`
19466  as_dir="$ac_dir"; as_fn_mkdir_p
19467  ac_builddir=.
19468
19469case "$ac_dir" in
19470.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19471*)
19472  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19473  # A ".." for each directory in $ac_dir_suffix.
19474  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19475  case $ac_top_builddir_sub in
19476  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19477  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19478  esac ;;
19479esac
19480ac_abs_top_builddir=$ac_pwd
19481ac_abs_builddir=$ac_pwd$ac_dir_suffix
19482# for backward compatibility:
19483ac_top_builddir=$ac_top_build_prefix
19484
19485case $srcdir in
19486  .)  # We are building in place.
19487    ac_srcdir=.
19488    ac_top_srcdir=$ac_top_builddir_sub
19489    ac_abs_top_srcdir=$ac_pwd ;;
19490  [\\/]* | ?:[\\/]* )  # Absolute name.
19491    ac_srcdir=$srcdir$ac_dir_suffix;
19492    ac_top_srcdir=$srcdir
19493    ac_abs_top_srcdir=$srcdir ;;
19494  *) # Relative name.
19495    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19496    ac_top_srcdir=$ac_top_build_prefix$srcdir
19497    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19498esac
19499ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19500
19501
19502  case $ac_mode in
19503  :F)
19504  #
19505  # CONFIG_FILE
19506  #
19507
19508  case $INSTALL in
19509  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19510  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19511  esac
19512  ac_MKDIR_P=$MKDIR_P
19513  case $MKDIR_P in
19514  [\\/$]* | ?:[\\/]* ) ;;
19515  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19516  esac
19517_ACEOF
19518
19519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19520# If the template does not know about datarootdir, expand it.
19521# FIXME: This hack should be removed a few years after 2.60.
19522ac_datarootdir_hack=; ac_datarootdir_seen=
19523ac_sed_dataroot='
19524/datarootdir/ {
19525  p
19526  q
19527}
19528/@datadir@/p
19529/@docdir@/p
19530/@infodir@/p
19531/@localedir@/p
19532/@mandir@/p'
19533case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19534*datarootdir*) ac_datarootdir_seen=yes;;
19535*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19536  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19537$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19538_ACEOF
19539cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19540  ac_datarootdir_hack='
19541  s&@datadir@&$datadir&g
19542  s&@docdir@&$docdir&g
19543  s&@infodir@&$infodir&g
19544  s&@localedir@&$localedir&g
19545  s&@mandir@&$mandir&g
19546  s&\\\${datarootdir}&$datarootdir&g' ;;
19547esac
19548_ACEOF
19549
19550# Neutralize VPATH when `$srcdir' = `.'.
19551# Shell code in configure.ac might set extrasub.
19552# FIXME: do we really want to maintain this feature?
19553cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19554ac_sed_extra="$ac_vpsub
19555$extrasub
19556_ACEOF
19557cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19558:t
19559/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19560s|@configure_input@|$ac_sed_conf_input|;t t
19561s&@top_builddir@&$ac_top_builddir_sub&;t t
19562s&@top_build_prefix@&$ac_top_build_prefix&;t t
19563s&@srcdir@&$ac_srcdir&;t t
19564s&@abs_srcdir@&$ac_abs_srcdir&;t t
19565s&@top_srcdir@&$ac_top_srcdir&;t t
19566s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19567s&@builddir@&$ac_builddir&;t t
19568s&@abs_builddir@&$ac_abs_builddir&;t t
19569s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19570s&@INSTALL@&$ac_INSTALL&;t t
19571s&@MKDIR_P@&$ac_MKDIR_P&;t t
19572$ac_datarootdir_hack
19573"
19574eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19575  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19576
19577test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19578  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19579  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19580      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19581  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19582which seems to be undefined.  Please make sure it is defined" >&5
19583$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19584which seems to be undefined.  Please make sure it is defined" >&2;}
19585
19586  rm -f "$ac_tmp/stdin"
19587  case $ac_file in
19588  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19589  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19590  esac \
19591  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19592 ;;
19593  :H)
19594  #
19595  # CONFIG_HEADER
19596  #
19597  if test x"$ac_file" != x-; then
19598    {
19599      $as_echo "/* $configure_input  */" \
19600      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19601    } >"$ac_tmp/config.h" \
19602      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19603    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19604      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19605$as_echo "$as_me: $ac_file is unchanged" >&6;}
19606    else
19607      rm -f "$ac_file"
19608      mv "$ac_tmp/config.h" "$ac_file" \
19609	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19610    fi
19611  else
19612    $as_echo "/* $configure_input  */" \
19613      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19614      || as_fn_error $? "could not create -" "$LINENO" 5
19615  fi
19616# Compute "$ac_file"'s index in $config_headers.
19617_am_arg="$ac_file"
19618_am_stamp_count=1
19619for _am_header in $config_headers :; do
19620  case $_am_header in
19621    $_am_arg | $_am_arg:* )
19622      break ;;
19623    * )
19624      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19625  esac
19626done
19627echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19628$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19629	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19630	 X"$_am_arg" : 'X\(//\)$' \| \
19631	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19632$as_echo X"$_am_arg" |
19633    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19634	    s//\1/
19635	    q
19636	  }
19637	  /^X\(\/\/\)[^/].*/{
19638	    s//\1/
19639	    q
19640	  }
19641	  /^X\(\/\/\)$/{
19642	    s//\1/
19643	    q
19644	  }
19645	  /^X\(\/\).*/{
19646	    s//\1/
19647	    q
19648	  }
19649	  s/.*/./; q'`/stamp-h$_am_stamp_count
19650 ;;
19651
19652  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19653$as_echo "$as_me: executing $ac_file commands" >&6;}
19654 ;;
19655  esac
19656
19657
19658  case $ac_file$ac_mode in
19659    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19660  # Autoconf 2.62 quotes --file arguments for eval, but not when files
19661  # are listed without --file.  Let's play safe and only enable the eval
19662  # if we detect the quoting.
19663  case $CONFIG_FILES in
19664  *\'*) eval set x "$CONFIG_FILES" ;;
19665  *)   set x $CONFIG_FILES ;;
19666  esac
19667  shift
19668  for mf
19669  do
19670    # Strip MF so we end up with the name of the file.
19671    mf=`echo "$mf" | sed -e 's/:.*$//'`
19672    # Check whether this is an Automake generated Makefile or not.
19673    # We used to match only the files named `Makefile.in', but
19674    # some people rename them; so instead we look at the file content.
19675    # Grep'ing the first line is not enough: some people post-process
19676    # each Makefile.in and add a new line on top of each file to say so.
19677    # Grep'ing the whole file is not good either: AIX grep has a line
19678    # limit of 2048, but all sed's we know have understand at least 4000.
19679    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19680      dirpart=`$as_dirname -- "$mf" ||
19681$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19682	 X"$mf" : 'X\(//\)[^/]' \| \
19683	 X"$mf" : 'X\(//\)$' \| \
19684	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19685$as_echo X"$mf" |
19686    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19687	    s//\1/
19688	    q
19689	  }
19690	  /^X\(\/\/\)[^/].*/{
19691	    s//\1/
19692	    q
19693	  }
19694	  /^X\(\/\/\)$/{
19695	    s//\1/
19696	    q
19697	  }
19698	  /^X\(\/\).*/{
19699	    s//\1/
19700	    q
19701	  }
19702	  s/.*/./; q'`
19703    else
19704      continue
19705    fi
19706    # Extract the definition of DEPDIR, am__include, and am__quote
19707    # from the Makefile without running `make'.
19708    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19709    test -z "$DEPDIR" && continue
19710    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19711    test -z "am__include" && continue
19712    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19713    # When using ansi2knr, U may be empty or an underscore; expand it
19714    U=`sed -n 's/^U = //p' < "$mf"`
19715    # Find all dependency output files, they are included files with
19716    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19717    # simplest approach to changing $(DEPDIR) to its actual value in the
19718    # expansion.
19719    for file in `sed -n "
19720      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19721	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19722      # Make sure the directory exists.
19723      test -f "$dirpart/$file" && continue
19724      fdir=`$as_dirname -- "$file" ||
19725$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19726	 X"$file" : 'X\(//\)[^/]' \| \
19727	 X"$file" : 'X\(//\)$' \| \
19728	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19729$as_echo X"$file" |
19730    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19731	    s//\1/
19732	    q
19733	  }
19734	  /^X\(\/\/\)[^/].*/{
19735	    s//\1/
19736	    q
19737	  }
19738	  /^X\(\/\/\)$/{
19739	    s//\1/
19740	    q
19741	  }
19742	  /^X\(\/\).*/{
19743	    s//\1/
19744	    q
19745	  }
19746	  s/.*/./; q'`
19747      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19748      # echo "creating $dirpart/$file"
19749      echo '# dummy' > "$dirpart/$file"
19750    done
19751  done
19752}
19753 ;;
19754    "libtool":C)
19755
19756    # See if we are running on zsh, and set the options which allow our
19757    # commands through without removal of \ escapes.
19758    if test -n "${ZSH_VERSION+set}" ; then
19759      setopt NO_GLOB_SUBST
19760    fi
19761
19762    cfgfile="${ofile}T"
19763    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19764    $RM "$cfgfile"
19765
19766    cat <<_LT_EOF >> "$cfgfile"
19767#! $SHELL
19768
19769# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19770# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19771# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19772# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19773#
19774#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19775#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19776#                 Foundation, Inc.
19777#   Written by Gordon Matzigkeit, 1996
19778#
19779#   This file is part of GNU Libtool.
19780#
19781# GNU Libtool is free software; you can redistribute it and/or
19782# modify it under the terms of the GNU General Public License as
19783# published by the Free Software Foundation; either version 2 of
19784# the License, or (at your option) any later version.
19785#
19786# As a special exception to the GNU General Public License,
19787# if you distribute this file as part of a program or library that
19788# is built using GNU Libtool, you may include this file under the
19789# same distribution terms that you use for the rest of that program.
19790#
19791# GNU Libtool is distributed in the hope that it will be useful,
19792# but WITHOUT ANY WARRANTY; without even the implied warranty of
19793# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19794# GNU General Public License for more details.
19795#
19796# You should have received a copy of the GNU General Public License
19797# along with GNU Libtool; see the file COPYING.  If not, a copy
19798# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19799# obtained by writing to the Free Software Foundation, Inc.,
19800# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19801
19802
19803# The names of the tagged configurations supported by this script.
19804available_tags=""
19805
19806# ### BEGIN LIBTOOL CONFIG
19807
19808# Whether or not to build static libraries.
19809build_old_libs=$enable_static
19810
19811# Which release of libtool.m4 was used?
19812macro_version=$macro_version
19813macro_revision=$macro_revision
19814
19815# Whether or not to build shared libraries.
19816build_libtool_libs=$enable_shared
19817
19818# What type of objects to build.
19819pic_mode=$pic_mode
19820
19821# Whether or not to optimize for fast installation.
19822fast_install=$enable_fast_install
19823
19824# Shell to use when invoking shell scripts.
19825SHELL=$lt_SHELL
19826
19827# An echo program that protects backslashes.
19828ECHO=$lt_ECHO
19829
19830# The PATH separator for the build system.
19831PATH_SEPARATOR=$lt_PATH_SEPARATOR
19832
19833# The host system.
19834host_alias=$host_alias
19835host=$host
19836host_os=$host_os
19837
19838# The build system.
19839build_alias=$build_alias
19840build=$build
19841build_os=$build_os
19842
19843# A sed program that does not truncate output.
19844SED=$lt_SED
19845
19846# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19847Xsed="\$SED -e 1s/^X//"
19848
19849# A grep program that handles long lines.
19850GREP=$lt_GREP
19851
19852# An ERE matcher.
19853EGREP=$lt_EGREP
19854
19855# A literal string matcher.
19856FGREP=$lt_FGREP
19857
19858# A BSD- or MS-compatible name lister.
19859NM=$lt_NM
19860
19861# Whether we need soft or hard links.
19862LN_S=$lt_LN_S
19863
19864# What is the maximum length of a command?
19865max_cmd_len=$max_cmd_len
19866
19867# Object file suffix (normally "o").
19868objext=$ac_objext
19869
19870# Executable file suffix (normally "").
19871exeext=$exeext
19872
19873# whether the shell understands "unset".
19874lt_unset=$lt_unset
19875
19876# turn spaces into newlines.
19877SP2NL=$lt_lt_SP2NL
19878
19879# turn newlines into spaces.
19880NL2SP=$lt_lt_NL2SP
19881
19882# convert \$build file names to \$host format.
19883to_host_file_cmd=$lt_cv_to_host_file_cmd
19884
19885# convert \$build files to toolchain format.
19886to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19887
19888# An object symbol dumper.
19889OBJDUMP=$lt_OBJDUMP
19890
19891# Method to check whether dependent libraries are shared objects.
19892deplibs_check_method=$lt_deplibs_check_method
19893
19894# Command to use when deplibs_check_method = "file_magic".
19895file_magic_cmd=$lt_file_magic_cmd
19896
19897# How to find potential files when deplibs_check_method = "file_magic".
19898file_magic_glob=$lt_file_magic_glob
19899
19900# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19901want_nocaseglob=$lt_want_nocaseglob
19902
19903# DLL creation program.
19904DLLTOOL=$lt_DLLTOOL
19905
19906# Command to associate shared and link libraries.
19907sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19908
19909# The archiver.
19910AR=$lt_AR
19911
19912# Flags to create an archive.
19913AR_FLAGS=$lt_AR_FLAGS
19914
19915# How to feed a file listing to the archiver.
19916archiver_list_spec=$lt_archiver_list_spec
19917
19918# A symbol stripping program.
19919STRIP=$lt_STRIP
19920
19921# Commands used to install an old-style archive.
19922RANLIB=$lt_RANLIB
19923old_postinstall_cmds=$lt_old_postinstall_cmds
19924old_postuninstall_cmds=$lt_old_postuninstall_cmds
19925
19926# Whether to use a lock for old archive extraction.
19927lock_old_archive_extraction=$lock_old_archive_extraction
19928
19929# A C compiler.
19930LTCC=$lt_CC
19931
19932# LTCC compiler flags.
19933LTCFLAGS=$lt_CFLAGS
19934
19935# Take the output of nm and produce a listing of raw symbols and C names.
19936global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19937
19938# Transform the output of nm in a proper C declaration.
19939global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19940
19941# Transform the output of nm in a C name address pair.
19942global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19943
19944# Transform the output of nm in a C name address pair when lib prefix is needed.
19945global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19946
19947# Specify filename containing input files for \$NM.
19948nm_file_list_spec=$lt_nm_file_list_spec
19949
19950# The root where to search for dependent libraries,and in which our libraries should be installed.
19951lt_sysroot=$lt_sysroot
19952
19953# The name of the directory that contains temporary libtool files.
19954objdir=$objdir
19955
19956# Used to examine libraries when file_magic_cmd begins with "file".
19957MAGIC_CMD=$MAGIC_CMD
19958
19959# Must we lock files when doing compilation?
19960need_locks=$lt_need_locks
19961
19962# Manifest tool.
19963MANIFEST_TOOL=$lt_MANIFEST_TOOL
19964
19965# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19966DSYMUTIL=$lt_DSYMUTIL
19967
19968# Tool to change global to local symbols on Mac OS X.
19969NMEDIT=$lt_NMEDIT
19970
19971# Tool to manipulate fat objects and archives on Mac OS X.
19972LIPO=$lt_LIPO
19973
19974# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19975OTOOL=$lt_OTOOL
19976
19977# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19978OTOOL64=$lt_OTOOL64
19979
19980# Old archive suffix (normally "a").
19981libext=$libext
19982
19983# Shared library suffix (normally ".so").
19984shrext_cmds=$lt_shrext_cmds
19985
19986# The commands to extract the exported symbol list from a shared archive.
19987extract_expsyms_cmds=$lt_extract_expsyms_cmds
19988
19989# Variables whose values should be saved in libtool wrapper scripts and
19990# restored at link time.
19991variables_saved_for_relink=$lt_variables_saved_for_relink
19992
19993# Do we need the "lib" prefix for modules?
19994need_lib_prefix=$need_lib_prefix
19995
19996# Do we need a version for libraries?
19997need_version=$need_version
19998
19999# Library versioning type.
20000version_type=$version_type
20001
20002# Shared library runtime path variable.
20003runpath_var=$runpath_var
20004
20005# Shared library path variable.
20006shlibpath_var=$shlibpath_var
20007
20008# Is shlibpath searched before the hard-coded library search path?
20009shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20010
20011# Format of library name prefix.
20012libname_spec=$lt_libname_spec
20013
20014# List of archive names.  First name is the real one, the rest are links.
20015# The last name is the one that the linker finds with -lNAME
20016library_names_spec=$lt_library_names_spec
20017
20018# The coded name of the library, if different from the real name.
20019soname_spec=$lt_soname_spec
20020
20021# Permission mode override for installation of shared libraries.
20022install_override_mode=$lt_install_override_mode
20023
20024# Command to use after installation of a shared archive.
20025postinstall_cmds=$lt_postinstall_cmds
20026
20027# Command to use after uninstallation of a shared archive.
20028postuninstall_cmds=$lt_postuninstall_cmds
20029
20030# Commands used to finish a libtool library installation in a directory.
20031finish_cmds=$lt_finish_cmds
20032
20033# As "finish_cmds", except a single script fragment to be evaled but
20034# not shown.
20035finish_eval=$lt_finish_eval
20036
20037# Whether we should hardcode library paths into libraries.
20038hardcode_into_libs=$hardcode_into_libs
20039
20040# Compile-time system search path for libraries.
20041sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20042
20043# Run-time system search path for libraries.
20044sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20045
20046# Whether dlopen is supported.
20047dlopen_support=$enable_dlopen
20048
20049# Whether dlopen of programs is supported.
20050dlopen_self=$enable_dlopen_self
20051
20052# Whether dlopen of statically linked programs is supported.
20053dlopen_self_static=$enable_dlopen_self_static
20054
20055# Commands to strip libraries.
20056old_striplib=$lt_old_striplib
20057striplib=$lt_striplib
20058
20059
20060# The linker used to build libraries.
20061LD=$lt_LD
20062
20063# How to create reloadable object files.
20064reload_flag=$lt_reload_flag
20065reload_cmds=$lt_reload_cmds
20066
20067# Commands used to build an old-style archive.
20068old_archive_cmds=$lt_old_archive_cmds
20069
20070# A language specific compiler.
20071CC=$lt_compiler
20072
20073# Is the compiler the GNU compiler?
20074with_gcc=$GCC
20075
20076# Compiler flag to turn off builtin functions.
20077no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20078
20079# Additional compiler flags for building library objects.
20080pic_flag=$lt_lt_prog_compiler_pic
20081
20082# How to pass a linker flag through the compiler.
20083wl=$lt_lt_prog_compiler_wl
20084
20085# Compiler flag to prevent dynamic linking.
20086link_static_flag=$lt_lt_prog_compiler_static
20087
20088# Does compiler simultaneously support -c and -o options?
20089compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20090
20091# Whether or not to add -lc for building shared libraries.
20092build_libtool_need_lc=$archive_cmds_need_lc
20093
20094# Whether or not to disallow shared libs when runtime libs are static.
20095allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20096
20097# Compiler flag to allow reflexive dlopens.
20098export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20099
20100# Compiler flag to generate shared objects directly from archives.
20101whole_archive_flag_spec=$lt_whole_archive_flag_spec
20102
20103# Whether the compiler copes with passing no objects directly.
20104compiler_needs_object=$lt_compiler_needs_object
20105
20106# Create an old-style archive from a shared archive.
20107old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20108
20109# Create a temporary old-style archive to link instead of a shared archive.
20110old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20111
20112# Commands used to build a shared archive.
20113archive_cmds=$lt_archive_cmds
20114archive_expsym_cmds=$lt_archive_expsym_cmds
20115
20116# Commands used to build a loadable module if different from building
20117# a shared archive.
20118module_cmds=$lt_module_cmds
20119module_expsym_cmds=$lt_module_expsym_cmds
20120
20121# Whether we are building with GNU ld or not.
20122with_gnu_ld=$lt_with_gnu_ld
20123
20124# Flag that allows shared libraries with undefined symbols to be built.
20125allow_undefined_flag=$lt_allow_undefined_flag
20126
20127# Flag that enforces no undefined symbols.
20128no_undefined_flag=$lt_no_undefined_flag
20129
20130# Flag to hardcode \$libdir into a binary during linking.
20131# This must work even if \$libdir does not exist
20132hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20133
20134# Whether we need a single "-rpath" flag with a separated argument.
20135hardcode_libdir_separator=$lt_hardcode_libdir_separator
20136
20137# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20138# DIR into the resulting binary.
20139hardcode_direct=$hardcode_direct
20140
20141# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20142# DIR into the resulting binary and the resulting library dependency is
20143# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20144# library is relocated.
20145hardcode_direct_absolute=$hardcode_direct_absolute
20146
20147# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20148# into the resulting binary.
20149hardcode_minus_L=$hardcode_minus_L
20150
20151# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20152# into the resulting binary.
20153hardcode_shlibpath_var=$hardcode_shlibpath_var
20154
20155# Set to "yes" if building a shared library automatically hardcodes DIR
20156# into the library and all subsequent libraries and executables linked
20157# against it.
20158hardcode_automatic=$hardcode_automatic
20159
20160# Set to yes if linker adds runtime paths of dependent libraries
20161# to runtime path list.
20162inherit_rpath=$inherit_rpath
20163
20164# Whether libtool must link a program against all its dependency libraries.
20165link_all_deplibs=$link_all_deplibs
20166
20167# Set to "yes" if exported symbols are required.
20168always_export_symbols=$always_export_symbols
20169
20170# The commands to list exported symbols.
20171export_symbols_cmds=$lt_export_symbols_cmds
20172
20173# Symbols that should not be listed in the preloaded symbols.
20174exclude_expsyms=$lt_exclude_expsyms
20175
20176# Symbols that must always be exported.
20177include_expsyms=$lt_include_expsyms
20178
20179# Commands necessary for linking programs (against libraries) with templates.
20180prelink_cmds=$lt_prelink_cmds
20181
20182# Commands necessary for finishing linking programs.
20183postlink_cmds=$lt_postlink_cmds
20184
20185# Specify filename containing input files.
20186file_list_spec=$lt_file_list_spec
20187
20188# How to hardcode a shared library path into an executable.
20189hardcode_action=$hardcode_action
20190
20191# ### END LIBTOOL CONFIG
20192
20193_LT_EOF
20194
20195  case $host_os in
20196  aix3*)
20197    cat <<\_LT_EOF >> "$cfgfile"
20198# AIX sometimes has problems with the GCC collect2 program.  For some
20199# reason, if we set the COLLECT_NAMES environment variable, the problems
20200# vanish in a puff of smoke.
20201if test "X${COLLECT_NAMES+set}" != Xset; then
20202  COLLECT_NAMES=
20203  export COLLECT_NAMES
20204fi
20205_LT_EOF
20206    ;;
20207  esac
20208
20209
20210ltmain="$ac_aux_dir/ltmain.sh"
20211
20212
20213  # We use sed instead of cat because bash on DJGPP gets confused if
20214  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20215  # text mode, it properly converts lines to CR/LF.  This bash problem
20216  # is reportedly fixed, but why not run on old versions too?
20217  sed '$q' "$ltmain" >> "$cfgfile" \
20218     || (rm -f "$cfgfile"; exit 1)
20219
20220  if test x"$xsi_shell" = xyes; then
20221  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20222func_dirname ()\
20223{\
20224\    case ${1} in\
20225\      */*) func_dirname_result="${1%/*}${2}" ;;\
20226\      *  ) func_dirname_result="${3}" ;;\
20227\    esac\
20228} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20229  && mv -f "$cfgfile.tmp" "$cfgfile" \
20230    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20231test 0 -eq $? || _lt_function_replace_fail=:
20232
20233
20234  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20235func_basename ()\
20236{\
20237\    func_basename_result="${1##*/}"\
20238} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20239  && mv -f "$cfgfile.tmp" "$cfgfile" \
20240    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20241test 0 -eq $? || _lt_function_replace_fail=:
20242
20243
20244  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20245func_dirname_and_basename ()\
20246{\
20247\    case ${1} in\
20248\      */*) func_dirname_result="${1%/*}${2}" ;;\
20249\      *  ) func_dirname_result="${3}" ;;\
20250\    esac\
20251\    func_basename_result="${1##*/}"\
20252} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20253  && mv -f "$cfgfile.tmp" "$cfgfile" \
20254    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20255test 0 -eq $? || _lt_function_replace_fail=:
20256
20257
20258  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20259func_stripname ()\
20260{\
20261\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20262\    # positional parameters, so assign one to ordinary parameter first.\
20263\    func_stripname_result=${3}\
20264\    func_stripname_result=${func_stripname_result#"${1}"}\
20265\    func_stripname_result=${func_stripname_result%"${2}"}\
20266} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20267  && mv -f "$cfgfile.tmp" "$cfgfile" \
20268    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20269test 0 -eq $? || _lt_function_replace_fail=:
20270
20271
20272  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20273func_split_long_opt ()\
20274{\
20275\    func_split_long_opt_name=${1%%=*}\
20276\    func_split_long_opt_arg=${1#*=}\
20277} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20278  && mv -f "$cfgfile.tmp" "$cfgfile" \
20279    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20280test 0 -eq $? || _lt_function_replace_fail=:
20281
20282
20283  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20284func_split_short_opt ()\
20285{\
20286\    func_split_short_opt_arg=${1#??}\
20287\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20288} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20289  && mv -f "$cfgfile.tmp" "$cfgfile" \
20290    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20291test 0 -eq $? || _lt_function_replace_fail=:
20292
20293
20294  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20295func_lo2o ()\
20296{\
20297\    case ${1} in\
20298\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20299\      *)    func_lo2o_result=${1} ;;\
20300\    esac\
20301} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20302  && mv -f "$cfgfile.tmp" "$cfgfile" \
20303    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20304test 0 -eq $? || _lt_function_replace_fail=:
20305
20306
20307  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20308func_xform ()\
20309{\
20310    func_xform_result=${1%.*}.lo\
20311} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20312  && mv -f "$cfgfile.tmp" "$cfgfile" \
20313    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20314test 0 -eq $? || _lt_function_replace_fail=:
20315
20316
20317  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20318func_arith ()\
20319{\
20320    func_arith_result=$(( $* ))\
20321} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20322  && mv -f "$cfgfile.tmp" "$cfgfile" \
20323    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20324test 0 -eq $? || _lt_function_replace_fail=:
20325
20326
20327  sed -e '/^func_len ()$/,/^} # func_len /c\
20328func_len ()\
20329{\
20330    func_len_result=${#1}\
20331} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20332  && mv -f "$cfgfile.tmp" "$cfgfile" \
20333    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20334test 0 -eq $? || _lt_function_replace_fail=:
20335
20336fi
20337
20338if test x"$lt_shell_append" = xyes; then
20339  sed -e '/^func_append ()$/,/^} # func_append /c\
20340func_append ()\
20341{\
20342    eval "${1}+=\\${2}"\
20343} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20344  && mv -f "$cfgfile.tmp" "$cfgfile" \
20345    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20346test 0 -eq $? || _lt_function_replace_fail=:
20347
20348
20349  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20350func_append_quoted ()\
20351{\
20352\    func_quote_for_eval "${2}"\
20353\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20354} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20355  && mv -f "$cfgfile.tmp" "$cfgfile" \
20356    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20357test 0 -eq $? || _lt_function_replace_fail=:
20358
20359
20360  # Save a `func_append' function call where possible by direct use of '+='
20361  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20362    && mv -f "$cfgfile.tmp" "$cfgfile" \
20363      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20364  test 0 -eq $? || _lt_function_replace_fail=:
20365else
20366  # Save a `func_append' function call even when '+=' is not available
20367  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20368    && mv -f "$cfgfile.tmp" "$cfgfile" \
20369      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20370  test 0 -eq $? || _lt_function_replace_fail=:
20371fi
20372
20373if test x"$_lt_function_replace_fail" = x":"; then
20374  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20375$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20376fi
20377
20378
20379   mv -f "$cfgfile" "$ofile" ||
20380    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20381  chmod +x "$ofile"
20382
20383 ;;
20384
20385  esac
20386done # for ac_tag
20387
20388
20389as_fn_exit 0
20390_ACEOF
20391ac_clean_files=$ac_clean_files_save
20392
20393test $ac_write_fail = 0 ||
20394  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20395
20396
20397# configure is writing to config.log, and then calls config.status.
20398# config.status does its own redirection, appending to config.log.
20399# Unfortunately, on DOS this fails, as config.log is still kept open
20400# by configure, so config.status won't be able to write to it; its
20401# output is simply discarded.  So we exec the FD to /dev/null,
20402# effectively closing config.log, so it can be properly (re)opened and
20403# appended to by config.status.  When coming back to configure, we
20404# need to make the FD available again.
20405if test "$no_create" != yes; then
20406  ac_cs_success=:
20407  ac_config_status_args=
20408  test "$silent" = yes &&
20409    ac_config_status_args="$ac_config_status_args --quiet"
20410  exec 5>/dev/null
20411  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20412  exec 5>>config.log
20413  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20414  # would make configure fail if this is the last instruction.
20415  $ac_cs_success || as_fn_exit 1
20416fi
20417if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20418  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20419$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20420fi
20421
20422