configure revision a73423d7
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xf86-video-i128 1.3.6.
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
177test \$(( 1 + 1 )) = 2 || exit 1
178
179  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183    PATH=/empty FPATH=/empty; export PATH FPATH
184    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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-video-i128'
573PACKAGE_TARNAME='xf86-video-i128'
574PACKAGE_VERSION='1.3.6'
575PACKAGE_STRING='xf86-video-i128 1.3.6'
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
620DRIVER_NAME
621moduledir
622XAA_FALSE
623XAA_TRUE
624XSERVER_LIBPCIACCESS_FALSE
625XSERVER_LIBPCIACCESS_TRUE
626PCIACCESS_LIBS
627PCIACCESS_CFLAGS
628XORG_LIBS
629XORG_CFLAGS
630OTOOL64
631OTOOL
632LIPO
633NMEDIT
634DSYMUTIL
635MANIFEST_TOOL
636RANLIB
637ac_ct_AR
638AR
639DLLTOOL
640OBJDUMP
641LN_S
642NM
643ac_ct_DUMPBIN
644DUMPBIN
645LD
646FGREP
647LIBTOOL
648AM_BACKSLASH
649AM_DEFAULT_VERBOSITY
650AM_DEFAULT_V
651AM_V
652MAN_SUBSTS
653XORG_MAN_PAGE
654ADMIN_MAN_DIR
655DRIVER_MAN_DIR
656MISC_MAN_DIR
657FILE_MAN_DIR
658LIB_MAN_DIR
659APP_MAN_DIR
660ADMIN_MAN_SUFFIX
661DRIVER_MAN_SUFFIX
662MISC_MAN_SUFFIX
663FILE_MAN_SUFFIX
664LIB_MAN_SUFFIX
665APP_MAN_SUFFIX
666SED
667host_os
668host_vendor
669host_cpu
670host
671build_os
672build_vendor
673build_cpu
674build
675INSTALL_CMD
676PKG_CONFIG_LIBDIR
677PKG_CONFIG_PATH
678PKG_CONFIG
679CHANGELOG_CMD
680STRICT_CFLAGS
681CWARNFLAGS
682BASE_CFLAGS
683EGREP
684GREP
685CPP
686am__fastdepCC_FALSE
687am__fastdepCC_TRUE
688CCDEPMODE
689am__nodep
690AMDEPBACKSLASH
691AMDEP_FALSE
692AMDEP_TRUE
693am__quote
694am__include
695DEPDIR
696OBJEXT
697EXEEXT
698ac_ct_CC
699CPPFLAGS
700LDFLAGS
701CFLAGS
702CC
703MAINT
704MAINTAINER_MODE_FALSE
705MAINTAINER_MODE_TRUE
706am__untar
707am__tar
708AMTAR
709am__leading_dot
710SET_MAKE
711AWK
712mkdir_p
713MKDIR_P
714INSTALL_STRIP_PROGRAM
715STRIP
716install_sh
717MAKEINFO
718AUTOHEADER
719AUTOMAKE
720AUTOCONF
721ACLOCAL
722VERSION
723PACKAGE
724CYGPATH_W
725am__isrc
726INSTALL_DATA
727INSTALL_SCRIPT
728INSTALL_PROGRAM
729target_alias
730host_alias
731build_alias
732LIBS
733ECHO_T
734ECHO_N
735ECHO_C
736DEFS
737mandir
738localedir
739libdir
740psdir
741pdfdir
742dvidir
743htmldir
744infodir
745docdir
746oldincludedir
747includedir
748localstatedir
749sharedstatedir
750sysconfdir
751datadir
752datarootdir
753libexecdir
754sbindir
755bindir
756program_transform_name
757prefix
758exec_prefix
759PACKAGE_URL
760PACKAGE_BUGREPORT
761PACKAGE_STRING
762PACKAGE_VERSION
763PACKAGE_TARNAME
764PACKAGE_NAME
765PATH_SEPARATOR
766SHELL'
767ac_subst_files=''
768ac_user_opts='
769enable_option_checking
770enable_maintainer_mode
771enable_dependency_tracking
772enable_selective_werror
773enable_strict_compilation
774enable_silent_rules
775enable_static
776enable_shared
777with_pic
778enable_fast_install
779with_gnu_ld
780with_sysroot
781enable_libtool_lock
782with_xorg_module_dir
783enable_xaa
784'
785      ac_precious_vars='build_alias
786host_alias
787target_alias
788CC
789CFLAGS
790LDFLAGS
791LIBS
792CPPFLAGS
793CPP
794PKG_CONFIG
795PKG_CONFIG_PATH
796PKG_CONFIG_LIBDIR
797XORG_CFLAGS
798XORG_LIBS
799PCIACCESS_CFLAGS
800PCIACCESS_LIBS'
801
802
803# Initialize some variables set by options.
804ac_init_help=
805ac_init_version=false
806ac_unrecognized_opts=
807ac_unrecognized_sep=
808# The variables have the same names as the options, with
809# dashes changed to underlines.
810cache_file=/dev/null
811exec_prefix=NONE
812no_create=
813no_recursion=
814prefix=NONE
815program_prefix=NONE
816program_suffix=NONE
817program_transform_name=s,x,x,
818silent=
819site=
820srcdir=
821verbose=
822x_includes=NONE
823x_libraries=NONE
824
825# Installation directory options.
826# These are left unexpanded so users can "make install exec_prefix=/foo"
827# and all the variables that are supposed to be based on exec_prefix
828# by default will actually change.
829# Use braces instead of parens because sh, perl, etc. also accept them.
830# (The list follows the same order as the GNU Coding Standards.)
831bindir='${exec_prefix}/bin'
832sbindir='${exec_prefix}/sbin'
833libexecdir='${exec_prefix}/libexec'
834datarootdir='${prefix}/share'
835datadir='${datarootdir}'
836sysconfdir='${prefix}/etc'
837sharedstatedir='${prefix}/com'
838localstatedir='${prefix}/var'
839includedir='${prefix}/include'
840oldincludedir='/usr/include'
841docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842infodir='${datarootdir}/info'
843htmldir='${docdir}'
844dvidir='${docdir}'
845pdfdir='${docdir}'
846psdir='${docdir}'
847libdir='${exec_prefix}/lib'
848localedir='${datarootdir}/locale'
849mandir='${datarootdir}/man'
850
851ac_prev=
852ac_dashdash=
853for ac_option
854do
855  # If the previous option needs an argument, assign it.
856  if test -n "$ac_prev"; then
857    eval $ac_prev=\$ac_option
858    ac_prev=
859    continue
860  fi
861
862  case $ac_option in
863  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864  *=)   ac_optarg= ;;
865  *)    ac_optarg=yes ;;
866  esac
867
868  # Accept the important Cygnus configure options, so we can diagnose typos.
869
870  case $ac_dashdash$ac_option in
871  --)
872    ac_dashdash=yes ;;
873
874  -bindir | --bindir | --bindi | --bind | --bin | --bi)
875    ac_prev=bindir ;;
876  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
877    bindir=$ac_optarg ;;
878
879  -build | --build | --buil | --bui | --bu)
880    ac_prev=build_alias ;;
881  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
882    build_alias=$ac_optarg ;;
883
884  -cache-file | --cache-file | --cache-fil | --cache-fi \
885  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
886    ac_prev=cache_file ;;
887  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
888  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
889    cache_file=$ac_optarg ;;
890
891  --config-cache | -C)
892    cache_file=config.cache ;;
893
894  -datadir | --datadir | --datadi | --datad)
895    ac_prev=datadir ;;
896  -datadir=* | --datadir=* | --datadi=* | --datad=*)
897    datadir=$ac_optarg ;;
898
899  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900  | --dataroo | --dataro | --datar)
901    ac_prev=datarootdir ;;
902  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904    datarootdir=$ac_optarg ;;
905
906  -disable-* | --disable-*)
907    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
908    # Reject names that are not valid shell variable names.
909    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910      as_fn_error $? "invalid feature name: $ac_useropt"
911    ac_useropt_orig=$ac_useropt
912    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913    case $ac_user_opts in
914      *"
915"enable_$ac_useropt"
916"*) ;;
917      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
918	 ac_unrecognized_sep=', ';;
919    esac
920    eval enable_$ac_useropt=no ;;
921
922  -docdir | --docdir | --docdi | --doc | --do)
923    ac_prev=docdir ;;
924  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
925    docdir=$ac_optarg ;;
926
927  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
928    ac_prev=dvidir ;;
929  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
930    dvidir=$ac_optarg ;;
931
932  -enable-* | --enable-*)
933    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
934    # Reject names that are not valid shell variable names.
935    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936      as_fn_error $? "invalid feature name: $ac_useropt"
937    ac_useropt_orig=$ac_useropt
938    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939    case $ac_user_opts in
940      *"
941"enable_$ac_useropt"
942"*) ;;
943      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
944	 ac_unrecognized_sep=', ';;
945    esac
946    eval enable_$ac_useropt=\$ac_optarg ;;
947
948  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950  | --exec | --exe | --ex)
951    ac_prev=exec_prefix ;;
952  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954  | --exec=* | --exe=* | --ex=*)
955    exec_prefix=$ac_optarg ;;
956
957  -gas | --gas | --ga | --g)
958    # Obsolete; use --with-gas.
959    with_gas=yes ;;
960
961  -help | --help | --hel | --he | -h)
962    ac_init_help=long ;;
963  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964    ac_init_help=recursive ;;
965  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966    ac_init_help=short ;;
967
968  -host | --host | --hos | --ho)
969    ac_prev=host_alias ;;
970  -host=* | --host=* | --hos=* | --ho=*)
971    host_alias=$ac_optarg ;;
972
973  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974    ac_prev=htmldir ;;
975  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976  | --ht=*)
977    htmldir=$ac_optarg ;;
978
979  -includedir | --includedir | --includedi | --included | --include \
980  | --includ | --inclu | --incl | --inc)
981    ac_prev=includedir ;;
982  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983  | --includ=* | --inclu=* | --incl=* | --inc=*)
984    includedir=$ac_optarg ;;
985
986  -infodir | --infodir | --infodi | --infod | --info | --inf)
987    ac_prev=infodir ;;
988  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989    infodir=$ac_optarg ;;
990
991  -libdir | --libdir | --libdi | --libd)
992    ac_prev=libdir ;;
993  -libdir=* | --libdir=* | --libdi=* | --libd=*)
994    libdir=$ac_optarg ;;
995
996  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997  | --libexe | --libex | --libe)
998    ac_prev=libexecdir ;;
999  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000  | --libexe=* | --libex=* | --libe=*)
1001    libexecdir=$ac_optarg ;;
1002
1003  -localedir | --localedir | --localedi | --localed | --locale)
1004    ac_prev=localedir ;;
1005  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006    localedir=$ac_optarg ;;
1007
1008  -localstatedir | --localstatedir | --localstatedi | --localstated \
1009  | --localstate | --localstat | --localsta | --localst | --locals)
1010    ac_prev=localstatedir ;;
1011  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013    localstatedir=$ac_optarg ;;
1014
1015  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016    ac_prev=mandir ;;
1017  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018    mandir=$ac_optarg ;;
1019
1020  -nfp | --nfp | --nf)
1021    # Obsolete; use --without-fp.
1022    with_fp=no ;;
1023
1024  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025  | --no-cr | --no-c | -n)
1026    no_create=yes ;;
1027
1028  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030    no_recursion=yes ;;
1031
1032  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034  | --oldin | --oldi | --old | --ol | --o)
1035    ac_prev=oldincludedir ;;
1036  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039    oldincludedir=$ac_optarg ;;
1040
1041  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042    ac_prev=prefix ;;
1043  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044    prefix=$ac_optarg ;;
1045
1046  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047  | --program-pre | --program-pr | --program-p)
1048    ac_prev=program_prefix ;;
1049  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051    program_prefix=$ac_optarg ;;
1052
1053  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054  | --program-suf | --program-su | --program-s)
1055    ac_prev=program_suffix ;;
1056  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058    program_suffix=$ac_optarg ;;
1059
1060  -program-transform-name | --program-transform-name \
1061  | --program-transform-nam | --program-transform-na \
1062  | --program-transform-n | --program-transform- \
1063  | --program-transform | --program-transfor \
1064  | --program-transfo | --program-transf \
1065  | --program-trans | --program-tran \
1066  | --progr-tra | --program-tr | --program-t)
1067    ac_prev=program_transform_name ;;
1068  -program-transform-name=* | --program-transform-name=* \
1069  | --program-transform-nam=* | --program-transform-na=* \
1070  | --program-transform-n=* | --program-transform-=* \
1071  | --program-transform=* | --program-transfor=* \
1072  | --program-transfo=* | --program-transf=* \
1073  | --program-trans=* | --program-tran=* \
1074  | --progr-tra=* | --program-tr=* | --program-t=*)
1075    program_transform_name=$ac_optarg ;;
1076
1077  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078    ac_prev=pdfdir ;;
1079  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080    pdfdir=$ac_optarg ;;
1081
1082  -psdir | --psdir | --psdi | --psd | --ps)
1083    ac_prev=psdir ;;
1084  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085    psdir=$ac_optarg ;;
1086
1087  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088  | -silent | --silent | --silen | --sile | --sil)
1089    silent=yes ;;
1090
1091  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092    ac_prev=sbindir ;;
1093  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094  | --sbi=* | --sb=*)
1095    sbindir=$ac_optarg ;;
1096
1097  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099  | --sharedst | --shareds | --shared | --share | --shar \
1100  | --sha | --sh)
1101    ac_prev=sharedstatedir ;;
1102  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105  | --sha=* | --sh=*)
1106    sharedstatedir=$ac_optarg ;;
1107
1108  -site | --site | --sit)
1109    ac_prev=site ;;
1110  -site=* | --site=* | --sit=*)
1111    site=$ac_optarg ;;
1112
1113  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114    ac_prev=srcdir ;;
1115  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116    srcdir=$ac_optarg ;;
1117
1118  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119  | --syscon | --sysco | --sysc | --sys | --sy)
1120    ac_prev=sysconfdir ;;
1121  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123    sysconfdir=$ac_optarg ;;
1124
1125  -target | --target | --targe | --targ | --tar | --ta | --t)
1126    ac_prev=target_alias ;;
1127  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128    target_alias=$ac_optarg ;;
1129
1130  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131    verbose=yes ;;
1132
1133  -version | --version | --versio | --versi | --vers | -V)
1134    ac_init_version=: ;;
1135
1136  -with-* | --with-*)
1137    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138    # Reject names that are not valid shell variable names.
1139    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140      as_fn_error $? "invalid package name: $ac_useropt"
1141    ac_useropt_orig=$ac_useropt
1142    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143    case $ac_user_opts in
1144      *"
1145"with_$ac_useropt"
1146"*) ;;
1147      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1148	 ac_unrecognized_sep=', ';;
1149    esac
1150    eval with_$ac_useropt=\$ac_optarg ;;
1151
1152  -without-* | --without-*)
1153    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1154    # Reject names that are not valid shell variable names.
1155    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156      as_fn_error $? "invalid package name: $ac_useropt"
1157    ac_useropt_orig=$ac_useropt
1158    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159    case $ac_user_opts in
1160      *"
1161"with_$ac_useropt"
1162"*) ;;
1163      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1164	 ac_unrecognized_sep=', ';;
1165    esac
1166    eval with_$ac_useropt=no ;;
1167
1168  --x)
1169    # Obsolete; use --with-x.
1170    with_x=yes ;;
1171
1172  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173  | --x-incl | --x-inc | --x-in | --x-i)
1174    ac_prev=x_includes ;;
1175  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177    x_includes=$ac_optarg ;;
1178
1179  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181    ac_prev=x_libraries ;;
1182  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184    x_libraries=$ac_optarg ;;
1185
1186  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1187Try \`$0 --help' for more information"
1188    ;;
1189
1190  *=*)
1191    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1192    # Reject names that are not valid shell variable names.
1193    case $ac_envvar in #(
1194      '' | [0-9]* | *[!_$as_cr_alnum]* )
1195      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1196    esac
1197    eval $ac_envvar=\$ac_optarg
1198    export $ac_envvar ;;
1199
1200  *)
1201    # FIXME: should be removed in autoconf 3.0.
1202    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1205    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1206    ;;
1207
1208  esac
1209done
1210
1211if test -n "$ac_prev"; then
1212  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1213  as_fn_error $? "missing argument to $ac_option"
1214fi
1215
1216if test -n "$ac_unrecognized_opts"; then
1217  case $enable_option_checking in
1218    no) ;;
1219    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1220    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1221  esac
1222fi
1223
1224# Check all directory arguments for consistency.
1225for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1226		datadir sysconfdir sharedstatedir localstatedir includedir \
1227		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1228		libdir localedir mandir
1229do
1230  eval ac_val=\$$ac_var
1231  # Remove trailing slashes.
1232  case $ac_val in
1233    */ )
1234      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1235      eval $ac_var=\$ac_val;;
1236  esac
1237  # Be sure to have absolute directory names.
1238  case $ac_val in
1239    [\\/$]* | ?:[\\/]* )  continue;;
1240    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1241  esac
1242  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1243done
1244
1245# There might be people who depend on the old broken behavior: `$host'
1246# used to hold the argument of --host etc.
1247# FIXME: To remove some day.
1248build=$build_alias
1249host=$host_alias
1250target=$target_alias
1251
1252# FIXME: To remove some day.
1253if test "x$host_alias" != x; then
1254  if test "x$build_alias" = x; then
1255    cross_compiling=maybe
1256    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1257    If a cross compiler is detected then cross compile mode will be used" >&2
1258  elif test "x$build_alias" != "x$host_alias"; then
1259    cross_compiling=yes
1260  fi
1261fi
1262
1263ac_tool_prefix=
1264test -n "$host_alias" && ac_tool_prefix=$host_alias-
1265
1266test "$silent" = yes && exec 6>/dev/null
1267
1268
1269ac_pwd=`pwd` && test -n "$ac_pwd" &&
1270ac_ls_di=`ls -di .` &&
1271ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1272  as_fn_error $? "working directory cannot be determined"
1273test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1274  as_fn_error $? "pwd does not report name of working directory"
1275
1276
1277# Find the source files, if location was not specified.
1278if test -z "$srcdir"; then
1279  ac_srcdir_defaulted=yes
1280  # Try the directory containing this script, then the parent directory.
1281  ac_confdir=`$as_dirname -- "$as_myself" ||
1282$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1283	 X"$as_myself" : 'X\(//\)[^/]' \| \
1284	 X"$as_myself" : 'X\(//\)$' \| \
1285	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1286$as_echo X"$as_myself" |
1287    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288	    s//\1/
1289	    q
1290	  }
1291	  /^X\(\/\/\)[^/].*/{
1292	    s//\1/
1293	    q
1294	  }
1295	  /^X\(\/\/\)$/{
1296	    s//\1/
1297	    q
1298	  }
1299	  /^X\(\/\).*/{
1300	    s//\1/
1301	    q
1302	  }
1303	  s/.*/./; q'`
1304  srcdir=$ac_confdir
1305  if test ! -r "$srcdir/$ac_unique_file"; then
1306    srcdir=..
1307  fi
1308else
1309  ac_srcdir_defaulted=no
1310fi
1311if test ! -r "$srcdir/$ac_unique_file"; then
1312  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1313  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1314fi
1315ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1316ac_abs_confdir=`(
1317	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1318	pwd)`
1319# When building in place, set srcdir=.
1320if test "$ac_abs_confdir" = "$ac_pwd"; then
1321  srcdir=.
1322fi
1323# Remove unnecessary trailing slashes from srcdir.
1324# Double slashes in file names in object file debugging info
1325# mess up M-x gdb in Emacs.
1326case $srcdir in
1327*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1328esac
1329for ac_var in $ac_precious_vars; do
1330  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1331  eval ac_env_${ac_var}_value=\$${ac_var}
1332  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1333  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1334done
1335
1336#
1337# Report the --help message.
1338#
1339if test "$ac_init_help" = "long"; then
1340  # Omit some internal or obsolete options to make the list less imposing.
1341  # This message is too long to be a string in the A/UX 3.1 sh.
1342  cat <<_ACEOF
1343\`configure' configures xf86-video-i128 1.3.6 to adapt to many kinds of systems.
1344
1345Usage: $0 [OPTION]... [VAR=VALUE]...
1346
1347To assign environment variables (e.g., CC, CFLAGS...), specify them as
1348VAR=VALUE.  See below for descriptions of some of the useful variables.
1349
1350Defaults for the options are specified in brackets.
1351
1352Configuration:
1353  -h, --help              display this help and exit
1354      --help=short        display options specific to this package
1355      --help=recursive    display the short help of all the included packages
1356  -V, --version           display version information and exit
1357  -q, --quiet, --silent   do not print \`checking ...' messages
1358      --cache-file=FILE   cache test results in FILE [disabled]
1359  -C, --config-cache      alias for \`--cache-file=config.cache'
1360  -n, --no-create         do not create output files
1361      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1362
1363Installation directories:
1364  --prefix=PREFIX         install architecture-independent files in PREFIX
1365                          [$ac_default_prefix]
1366  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1367                          [PREFIX]
1368
1369By default, \`make install' will install all the files in
1370\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1371an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1372for instance \`--prefix=\$HOME'.
1373
1374For better control, use the options below.
1375
1376Fine tuning of the installation directories:
1377  --bindir=DIR            user executables [EPREFIX/bin]
1378  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1379  --libexecdir=DIR        program executables [EPREFIX/libexec]
1380  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1381  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1382  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1383  --libdir=DIR            object code libraries [EPREFIX/lib]
1384  --includedir=DIR        C header files [PREFIX/include]
1385  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1386  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1387  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1388  --infodir=DIR           info documentation [DATAROOTDIR/info]
1389  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1390  --mandir=DIR            man documentation [DATAROOTDIR/man]
1391  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-i128]
1392  --htmldir=DIR           html documentation [DOCDIR]
1393  --dvidir=DIR            dvi documentation [DOCDIR]
1394  --pdfdir=DIR            pdf documentation [DOCDIR]
1395  --psdir=DIR             ps documentation [DOCDIR]
1396_ACEOF
1397
1398  cat <<\_ACEOF
1399
1400Program names:
1401  --program-prefix=PREFIX            prepend PREFIX to installed program names
1402  --program-suffix=SUFFIX            append SUFFIX to installed program names
1403  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1404
1405System types:
1406  --build=BUILD     configure for building on BUILD [guessed]
1407  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1408_ACEOF
1409fi
1410
1411if test -n "$ac_init_help"; then
1412  case $ac_init_help in
1413     short | recursive ) echo "Configuration of xf86-video-i128 1.3.6:";;
1414   esac
1415  cat <<\_ACEOF
1416
1417Optional Features:
1418  --disable-option-checking  ignore unrecognized --enable/--with options
1419  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1420  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1421  --enable-maintainer-mode  enable make rules and dependencies not useful
1422			  (and sometimes confusing) to the casual installer
1423  --disable-dependency-tracking  speeds up one-time build
1424  --enable-dependency-tracking   do not reject slow dependency extractors
1425  --disable-selective-werror
1426                          Turn off selective compiler errors. (default:
1427                          enabled)
1428  --enable-strict-compilation
1429                          Enable all warnings from compiler and make them
1430                          errors (default: disabled)
1431  --enable-silent-rules          less verbose build output (undo: `make V=1')
1432  --disable-silent-rules         verbose build output (undo: `make V=0')
1433  --enable-static[=PKGS]  build static libraries [default=no]
1434  --enable-shared[=PKGS]  build shared libraries [default=yes]
1435  --enable-fast-install[=PKGS]
1436                          optimize for fast installation [default=yes]
1437  --disable-libtool-lock  avoid locking (might break parallel builds)
1438  --enable-xaa            Enable legacy X Acceleration Architecture (XAA)
1439                          [default=auto]
1440
1441Optional Packages:
1442  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1443  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1444  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1445                          both]
1446  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1447  --with-sysroot=DIR Search for dependent libraries within DIR
1448                        (or the compiler's sysroot if not specified).
1449  --with-xorg-module-dir=DIR
1450                          Default xorg module directory
1451                          [[default=$libdir/xorg/modules]]
1452
1453Some influential environment variables:
1454  CC          C compiler command
1455  CFLAGS      C compiler flags
1456  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1457              nonstandard directory <lib dir>
1458  LIBS        libraries to pass to the linker, e.g. -l<library>
1459  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1460              you have headers in a nonstandard directory <include dir>
1461  CPP         C preprocessor
1462  PKG_CONFIG  path to pkg-config utility
1463  PKG_CONFIG_PATH
1464              directories to add to pkg-config's search path
1465  PKG_CONFIG_LIBDIR
1466              path overriding pkg-config's built-in search path
1467  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1468  XORG_LIBS   linker flags for XORG, overriding pkg-config
1469  PCIACCESS_CFLAGS
1470              C compiler flags for PCIACCESS, overriding pkg-config
1471  PCIACCESS_LIBS
1472              linker flags for PCIACCESS, overriding pkg-config
1473
1474Use these variables to override the choices made by `configure' or to help
1475it to find libraries and programs with nonstandard names/locations.
1476
1477Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1478_ACEOF
1479ac_status=$?
1480fi
1481
1482if test "$ac_init_help" = "recursive"; then
1483  # If there are subdirs, report their specific --help.
1484  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1485    test -d "$ac_dir" ||
1486      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1487      continue
1488    ac_builddir=.
1489
1490case "$ac_dir" in
1491.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492*)
1493  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1494  # A ".." for each directory in $ac_dir_suffix.
1495  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1496  case $ac_top_builddir_sub in
1497  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499  esac ;;
1500esac
1501ac_abs_top_builddir=$ac_pwd
1502ac_abs_builddir=$ac_pwd$ac_dir_suffix
1503# for backward compatibility:
1504ac_top_builddir=$ac_top_build_prefix
1505
1506case $srcdir in
1507  .)  # We are building in place.
1508    ac_srcdir=.
1509    ac_top_srcdir=$ac_top_builddir_sub
1510    ac_abs_top_srcdir=$ac_pwd ;;
1511  [\\/]* | ?:[\\/]* )  # Absolute name.
1512    ac_srcdir=$srcdir$ac_dir_suffix;
1513    ac_top_srcdir=$srcdir
1514    ac_abs_top_srcdir=$srcdir ;;
1515  *) # Relative name.
1516    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517    ac_top_srcdir=$ac_top_build_prefix$srcdir
1518    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1519esac
1520ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1521
1522    cd "$ac_dir" || { ac_status=$?; continue; }
1523    # Check for guested configure.
1524    if test -f "$ac_srcdir/configure.gnu"; then
1525      echo &&
1526      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1527    elif test -f "$ac_srcdir/configure"; then
1528      echo &&
1529      $SHELL "$ac_srcdir/configure" --help=recursive
1530    else
1531      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1532    fi || ac_status=$?
1533    cd "$ac_pwd" || { ac_status=$?; break; }
1534  done
1535fi
1536
1537test -n "$ac_init_help" && exit $ac_status
1538if $ac_init_version; then
1539  cat <<\_ACEOF
1540xf86-video-i128 configure 1.3.6
1541generated by GNU Autoconf 2.68
1542
1543Copyright (C) 2010 Free Software Foundation, Inc.
1544This configure script is free software; the Free Software Foundation
1545gives unlimited permission to copy, distribute and modify it.
1546_ACEOF
1547  exit
1548fi
1549
1550## ------------------------ ##
1551## Autoconf initialization. ##
1552## ------------------------ ##
1553
1554# ac_fn_c_try_compile LINENO
1555# --------------------------
1556# Try to compile conftest.$ac_ext, and return whether this succeeded.
1557ac_fn_c_try_compile ()
1558{
1559  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560  rm -f conftest.$ac_objext
1561  if { { ac_try="$ac_compile"
1562case "(($ac_try" in
1563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564  *) ac_try_echo=$ac_try;;
1565esac
1566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567$as_echo "$ac_try_echo"; } >&5
1568  (eval "$ac_compile") 2>conftest.err
1569  ac_status=$?
1570  if test -s conftest.err; then
1571    grep -v '^ *+' conftest.err >conftest.er1
1572    cat conftest.er1 >&5
1573    mv -f conftest.er1 conftest.err
1574  fi
1575  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576  test $ac_status = 0; } && {
1577	 test -z "$ac_c_werror_flag" ||
1578	 test ! -s conftest.err
1579       } && test -s conftest.$ac_objext; then :
1580  ac_retval=0
1581else
1582  $as_echo "$as_me: failed program was:" >&5
1583sed 's/^/| /' conftest.$ac_ext >&5
1584
1585	ac_retval=1
1586fi
1587  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588  as_fn_set_status $ac_retval
1589
1590} # ac_fn_c_try_compile
1591
1592# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1593# ---------------------------------------------
1594# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1595# accordingly.
1596ac_fn_c_check_decl ()
1597{
1598  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599  as_decl_name=`echo $2|sed 's/ *(.*//'`
1600  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1601  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1602$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1603if eval \${$3+:} false; then :
1604  $as_echo_n "(cached) " >&6
1605else
1606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1607/* end confdefs.h.  */
1608$4
1609int
1610main ()
1611{
1612#ifndef $as_decl_name
1613#ifdef __cplusplus
1614  (void) $as_decl_use;
1615#else
1616  (void) $as_decl_name;
1617#endif
1618#endif
1619
1620  ;
1621  return 0;
1622}
1623_ACEOF
1624if ac_fn_c_try_compile "$LINENO"; then :
1625  eval "$3=yes"
1626else
1627  eval "$3=no"
1628fi
1629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1630fi
1631eval ac_res=\$$3
1632	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1633$as_echo "$ac_res" >&6; }
1634  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635
1636} # ac_fn_c_check_decl
1637
1638# ac_fn_c_try_cpp LINENO
1639# ----------------------
1640# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1641ac_fn_c_try_cpp ()
1642{
1643  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644  if { { ac_try="$ac_cpp conftest.$ac_ext"
1645case "(($ac_try" in
1646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647  *) ac_try_echo=$ac_try;;
1648esac
1649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650$as_echo "$ac_try_echo"; } >&5
1651  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1652  ac_status=$?
1653  if test -s conftest.err; then
1654    grep -v '^ *+' conftest.err >conftest.er1
1655    cat conftest.er1 >&5
1656    mv -f conftest.er1 conftest.err
1657  fi
1658  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659  test $ac_status = 0; } > conftest.i && {
1660	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1661	 test ! -s conftest.err
1662       }; then :
1663  ac_retval=0
1664else
1665  $as_echo "$as_me: failed program was:" >&5
1666sed 's/^/| /' conftest.$ac_ext >&5
1667
1668    ac_retval=1
1669fi
1670  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671  as_fn_set_status $ac_retval
1672
1673} # ac_fn_c_try_cpp
1674
1675# ac_fn_c_try_run LINENO
1676# ----------------------
1677# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1678# that executables *can* be run.
1679ac_fn_c_try_run ()
1680{
1681  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682  if { { ac_try="$ac_link"
1683case "(($ac_try" in
1684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685  *) ac_try_echo=$ac_try;;
1686esac
1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688$as_echo "$ac_try_echo"; } >&5
1689  (eval "$ac_link") 2>&5
1690  ac_status=$?
1691  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1693  { { case "(($ac_try" in
1694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695  *) ac_try_echo=$ac_try;;
1696esac
1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698$as_echo "$ac_try_echo"; } >&5
1699  (eval "$ac_try") 2>&5
1700  ac_status=$?
1701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702  test $ac_status = 0; }; }; then :
1703  ac_retval=0
1704else
1705  $as_echo "$as_me: program exited with status $ac_status" >&5
1706       $as_echo "$as_me: failed program was:" >&5
1707sed 's/^/| /' conftest.$ac_ext >&5
1708
1709       ac_retval=$ac_status
1710fi
1711  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713  as_fn_set_status $ac_retval
1714
1715} # ac_fn_c_try_run
1716
1717# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1718# -------------------------------------------------------
1719# Tests whether HEADER exists and can be compiled using the include files in
1720# INCLUDES, setting the cache variable VAR accordingly.
1721ac_fn_c_check_header_compile ()
1722{
1723  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725$as_echo_n "checking for $2... " >&6; }
1726if eval \${$3+:} false; then :
1727  $as_echo_n "(cached) " >&6
1728else
1729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730/* end confdefs.h.  */
1731$4
1732#include <$2>
1733_ACEOF
1734if ac_fn_c_try_compile "$LINENO"; then :
1735  eval "$3=yes"
1736else
1737  eval "$3=no"
1738fi
1739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1740fi
1741eval ac_res=\$$3
1742	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743$as_echo "$ac_res" >&6; }
1744  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745
1746} # ac_fn_c_check_header_compile
1747
1748# ac_fn_c_try_link LINENO
1749# -----------------------
1750# Try to link conftest.$ac_ext, and return whether this succeeded.
1751ac_fn_c_try_link ()
1752{
1753  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754  rm -f conftest.$ac_objext conftest$ac_exeext
1755  if { { ac_try="$ac_link"
1756case "(($ac_try" in
1757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758  *) ac_try_echo=$ac_try;;
1759esac
1760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761$as_echo "$ac_try_echo"; } >&5
1762  (eval "$ac_link") 2>conftest.err
1763  ac_status=$?
1764  if test -s conftest.err; then
1765    grep -v '^ *+' conftest.err >conftest.er1
1766    cat conftest.er1 >&5
1767    mv -f conftest.er1 conftest.err
1768  fi
1769  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770  test $ac_status = 0; } && {
1771	 test -z "$ac_c_werror_flag" ||
1772	 test ! -s conftest.err
1773       } && test -s conftest$ac_exeext && {
1774	 test "$cross_compiling" = yes ||
1775	 $as_test_x conftest$ac_exeext
1776       }; then :
1777  ac_retval=0
1778else
1779  $as_echo "$as_me: failed program was:" >&5
1780sed 's/^/| /' conftest.$ac_ext >&5
1781
1782	ac_retval=1
1783fi
1784  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1785  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1786  # interfere with the next link command; also delete a directory that is
1787  # left behind by Apple's compiler.  We do this before executing the actions.
1788  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1789  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790  as_fn_set_status $ac_retval
1791
1792} # ac_fn_c_try_link
1793
1794# ac_fn_c_check_func LINENO FUNC VAR
1795# ----------------------------------
1796# Tests whether FUNC exists, setting the cache variable VAR accordingly
1797ac_fn_c_check_func ()
1798{
1799  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801$as_echo_n "checking for $2... " >&6; }
1802if eval \${$3+:} false; then :
1803  $as_echo_n "(cached) " >&6
1804else
1805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806/* end confdefs.h.  */
1807/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1808   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1809#define $2 innocuous_$2
1810
1811/* System header to define __stub macros and hopefully few prototypes,
1812    which can conflict with char $2 (); below.
1813    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1814    <limits.h> exists even on freestanding compilers.  */
1815
1816#ifdef __STDC__
1817# include <limits.h>
1818#else
1819# include <assert.h>
1820#endif
1821
1822#undef $2
1823
1824/* Override any GCC internal prototype to avoid an error.
1825   Use char because int might match the return type of a GCC
1826   builtin and then its argument prototype would still apply.  */
1827#ifdef __cplusplus
1828extern "C"
1829#endif
1830char $2 ();
1831/* The GNU C library defines this for functions which it implements
1832    to always fail with ENOSYS.  Some functions are actually named
1833    something starting with __ and the normal name is an alias.  */
1834#if defined __stub_$2 || defined __stub___$2
1835choke me
1836#endif
1837
1838int
1839main ()
1840{
1841return $2 ();
1842  ;
1843  return 0;
1844}
1845_ACEOF
1846if ac_fn_c_try_link "$LINENO"; then :
1847  eval "$3=yes"
1848else
1849  eval "$3=no"
1850fi
1851rm -f core conftest.err conftest.$ac_objext \
1852    conftest$ac_exeext conftest.$ac_ext
1853fi
1854eval ac_res=\$$3
1855	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856$as_echo "$ac_res" >&6; }
1857  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858
1859} # ac_fn_c_check_func
1860
1861# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1862# -------------------------------------------------------
1863# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1864# the include files in INCLUDES and setting the cache variable VAR
1865# accordingly.
1866ac_fn_c_check_header_mongrel ()
1867{
1868  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869  if eval \${$3+:} false; then :
1870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871$as_echo_n "checking for $2... " >&6; }
1872if eval \${$3+:} false; then :
1873  $as_echo_n "(cached) " >&6
1874fi
1875eval ac_res=\$$3
1876	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877$as_echo "$ac_res" >&6; }
1878else
1879  # Is the header compilable?
1880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1881$as_echo_n "checking $2 usability... " >&6; }
1882cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883/* end confdefs.h.  */
1884$4
1885#include <$2>
1886_ACEOF
1887if ac_fn_c_try_compile "$LINENO"; then :
1888  ac_header_compiler=yes
1889else
1890  ac_header_compiler=no
1891fi
1892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1894$as_echo "$ac_header_compiler" >&6; }
1895
1896# Is the header present?
1897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1898$as_echo_n "checking $2 presence... " >&6; }
1899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900/* end confdefs.h.  */
1901#include <$2>
1902_ACEOF
1903if ac_fn_c_try_cpp "$LINENO"; then :
1904  ac_header_preproc=yes
1905else
1906  ac_header_preproc=no
1907fi
1908rm -f conftest.err conftest.i conftest.$ac_ext
1909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1910$as_echo "$ac_header_preproc" >&6; }
1911
1912# So?  What about this header?
1913case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1914  yes:no: )
1915    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1916$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1917    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1918$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1919    ;;
1920  no:yes:* )
1921    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1922$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1923    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1924$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1925    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1926$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1927    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1928$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1929    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1930$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1931( $as_echo "## ---------------------------------------------------------------------- ##
1932## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1933## ---------------------------------------------------------------------- ##"
1934     ) | sed "s/^/$as_me: WARNING:     /" >&2
1935    ;;
1936esac
1937  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938$as_echo_n "checking for $2... " >&6; }
1939if eval \${$3+:} false; then :
1940  $as_echo_n "(cached) " >&6
1941else
1942  eval "$3=\$ac_header_compiler"
1943fi
1944eval ac_res=\$$3
1945	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946$as_echo "$ac_res" >&6; }
1947fi
1948  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949
1950} # ac_fn_c_check_header_mongrel
1951cat >config.log <<_ACEOF
1952This file contains any messages produced by compilers while
1953running configure, to aid debugging if configure makes a mistake.
1954
1955It was created by xf86-video-i128 $as_me 1.3.6, which was
1956generated by GNU Autoconf 2.68.  Invocation command line was
1957
1958  $ $0 $@
1959
1960_ACEOF
1961exec 5>>config.log
1962{
1963cat <<_ASUNAME
1964## --------- ##
1965## Platform. ##
1966## --------- ##
1967
1968hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1969uname -m = `(uname -m) 2>/dev/null || echo unknown`
1970uname -r = `(uname -r) 2>/dev/null || echo unknown`
1971uname -s = `(uname -s) 2>/dev/null || echo unknown`
1972uname -v = `(uname -v) 2>/dev/null || echo unknown`
1973
1974/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1975/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1976
1977/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1978/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1979/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1980/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1981/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1982/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1983/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1984
1985_ASUNAME
1986
1987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988for as_dir in $PATH
1989do
1990  IFS=$as_save_IFS
1991  test -z "$as_dir" && as_dir=.
1992    $as_echo "PATH: $as_dir"
1993  done
1994IFS=$as_save_IFS
1995
1996} >&5
1997
1998cat >&5 <<_ACEOF
1999
2000
2001## ----------- ##
2002## Core tests. ##
2003## ----------- ##
2004
2005_ACEOF
2006
2007
2008# Keep a trace of the command line.
2009# Strip out --no-create and --no-recursion so they do not pile up.
2010# Strip out --silent because we don't want to record it for future runs.
2011# Also quote any args containing shell meta-characters.
2012# Make two passes to allow for proper duplicate-argument suppression.
2013ac_configure_args=
2014ac_configure_args0=
2015ac_configure_args1=
2016ac_must_keep_next=false
2017for ac_pass in 1 2
2018do
2019  for ac_arg
2020  do
2021    case $ac_arg in
2022    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2023    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2024    | -silent | --silent | --silen | --sile | --sil)
2025      continue ;;
2026    *\'*)
2027      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2028    esac
2029    case $ac_pass in
2030    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2031    2)
2032      as_fn_append ac_configure_args1 " '$ac_arg'"
2033      if test $ac_must_keep_next = true; then
2034	ac_must_keep_next=false # Got value, back to normal.
2035      else
2036	case $ac_arg in
2037	  *=* | --config-cache | -C | -disable-* | --disable-* \
2038	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2039	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2040	  | -with-* | --with-* | -without-* | --without-* | --x)
2041	    case "$ac_configure_args0 " in
2042	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2043	    esac
2044	    ;;
2045	  -* ) ac_must_keep_next=true ;;
2046	esac
2047      fi
2048      as_fn_append ac_configure_args " '$ac_arg'"
2049      ;;
2050    esac
2051  done
2052done
2053{ ac_configure_args0=; unset ac_configure_args0;}
2054{ ac_configure_args1=; unset ac_configure_args1;}
2055
2056# When interrupted or exit'd, cleanup temporary files, and complete
2057# config.log.  We remove comments because anyway the quotes in there
2058# would cause problems or look ugly.
2059# WARNING: Use '\'' to represent an apostrophe within the trap.
2060# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2061trap 'exit_status=$?
2062  # Save into config.log some information that might help in debugging.
2063  {
2064    echo
2065
2066    $as_echo "## ---------------- ##
2067## Cache variables. ##
2068## ---------------- ##"
2069    echo
2070    # The following way of writing the cache mishandles newlines in values,
2071(
2072  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2073    eval ac_val=\$$ac_var
2074    case $ac_val in #(
2075    *${as_nl}*)
2076      case $ac_var in #(
2077      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2078$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2079      esac
2080      case $ac_var in #(
2081      _ | IFS | as_nl) ;; #(
2082      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2083      *) { eval $ac_var=; unset $ac_var;} ;;
2084      esac ;;
2085    esac
2086  done
2087  (set) 2>&1 |
2088    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2089    *${as_nl}ac_space=\ *)
2090      sed -n \
2091	"s/'\''/'\''\\\\'\'''\''/g;
2092	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2093      ;; #(
2094    *)
2095      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2096      ;;
2097    esac |
2098    sort
2099)
2100    echo
2101
2102    $as_echo "## ----------------- ##
2103## Output variables. ##
2104## ----------------- ##"
2105    echo
2106    for ac_var in $ac_subst_vars
2107    do
2108      eval ac_val=\$$ac_var
2109      case $ac_val in
2110      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2111      esac
2112      $as_echo "$ac_var='\''$ac_val'\''"
2113    done | sort
2114    echo
2115
2116    if test -n "$ac_subst_files"; then
2117      $as_echo "## ------------------- ##
2118## File substitutions. ##
2119## ------------------- ##"
2120      echo
2121      for ac_var in $ac_subst_files
2122      do
2123	eval ac_val=\$$ac_var
2124	case $ac_val in
2125	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2126	esac
2127	$as_echo "$ac_var='\''$ac_val'\''"
2128      done | sort
2129      echo
2130    fi
2131
2132    if test -s confdefs.h; then
2133      $as_echo "## ----------- ##
2134## confdefs.h. ##
2135## ----------- ##"
2136      echo
2137      cat confdefs.h
2138      echo
2139    fi
2140    test "$ac_signal" != 0 &&
2141      $as_echo "$as_me: caught signal $ac_signal"
2142    $as_echo "$as_me: exit $exit_status"
2143  } >&5
2144  rm -f core *.core core.conftest.* &&
2145    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2146    exit $exit_status
2147' 0
2148for ac_signal in 1 2 13 15; do
2149  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2150done
2151ac_signal=0
2152
2153# confdefs.h avoids OS command line length limits that DEFS can exceed.
2154rm -f -r conftest* confdefs.h
2155
2156$as_echo "/* confdefs.h */" > confdefs.h
2157
2158# Predefined preprocessor variables.
2159
2160cat >>confdefs.h <<_ACEOF
2161#define PACKAGE_NAME "$PACKAGE_NAME"
2162_ACEOF
2163
2164cat >>confdefs.h <<_ACEOF
2165#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2166_ACEOF
2167
2168cat >>confdefs.h <<_ACEOF
2169#define PACKAGE_VERSION "$PACKAGE_VERSION"
2170_ACEOF
2171
2172cat >>confdefs.h <<_ACEOF
2173#define PACKAGE_STRING "$PACKAGE_STRING"
2174_ACEOF
2175
2176cat >>confdefs.h <<_ACEOF
2177#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2178_ACEOF
2179
2180cat >>confdefs.h <<_ACEOF
2181#define PACKAGE_URL "$PACKAGE_URL"
2182_ACEOF
2183
2184
2185# Let the site file select an alternate cache file if it wants to.
2186# Prefer an explicitly selected file to automatically selected ones.
2187ac_site_file1=NONE
2188ac_site_file2=NONE
2189if test -n "$CONFIG_SITE"; then
2190  # We do not want a PATH search for config.site.
2191  case $CONFIG_SITE in #((
2192    -*)  ac_site_file1=./$CONFIG_SITE;;
2193    */*) ac_site_file1=$CONFIG_SITE;;
2194    *)   ac_site_file1=./$CONFIG_SITE;;
2195  esac
2196elif test "x$prefix" != xNONE; then
2197  ac_site_file1=$prefix/share/config.site
2198  ac_site_file2=$prefix/etc/config.site
2199else
2200  ac_site_file1=$ac_default_prefix/share/config.site
2201  ac_site_file2=$ac_default_prefix/etc/config.site
2202fi
2203for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2204do
2205  test "x$ac_site_file" = xNONE && continue
2206  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2207    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2208$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2209    sed 's/^/| /' "$ac_site_file" >&5
2210    . "$ac_site_file" \
2211      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2212$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2213as_fn_error $? "failed to load site script $ac_site_file
2214See \`config.log' for more details" "$LINENO" 5; }
2215  fi
2216done
2217
2218if test -r "$cache_file"; then
2219  # Some versions of bash will fail to source /dev/null (special files
2220  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2221  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2222    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2223$as_echo "$as_me: loading cache $cache_file" >&6;}
2224    case $cache_file in
2225      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2226      *)                      . "./$cache_file";;
2227    esac
2228  fi
2229else
2230  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2231$as_echo "$as_me: creating cache $cache_file" >&6;}
2232  >$cache_file
2233fi
2234
2235# Check that the precious variables saved in the cache have kept the same
2236# value.
2237ac_cache_corrupted=false
2238for ac_var in $ac_precious_vars; do
2239  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2240  eval ac_new_set=\$ac_env_${ac_var}_set
2241  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2242  eval ac_new_val=\$ac_env_${ac_var}_value
2243  case $ac_old_set,$ac_new_set in
2244    set,)
2245      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2246$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2247      ac_cache_corrupted=: ;;
2248    ,set)
2249      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2250$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2251      ac_cache_corrupted=: ;;
2252    ,);;
2253    *)
2254      if test "x$ac_old_val" != "x$ac_new_val"; then
2255	# differences in whitespace do not lead to failure.
2256	ac_old_val_w=`echo x $ac_old_val`
2257	ac_new_val_w=`echo x $ac_new_val`
2258	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2259	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2260$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2261	  ac_cache_corrupted=:
2262	else
2263	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2264$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2265	  eval $ac_var=\$ac_old_val
2266	fi
2267	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2268$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2269	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2270$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2271      fi;;
2272  esac
2273  # Pass precious variables to config.status.
2274  if test "$ac_new_set" = set; then
2275    case $ac_new_val in
2276    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2277    *) ac_arg=$ac_var=$ac_new_val ;;
2278    esac
2279    case " $ac_configure_args " in
2280      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2281      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2282    esac
2283  fi
2284done
2285if $ac_cache_corrupted; then
2286  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2288  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2289$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2290  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2291fi
2292## -------------------- ##
2293## Main body of script. ##
2294## -------------------- ##
2295
2296ac_ext=c
2297ac_cpp='$CPP $CPPFLAGS'
2298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2300ac_compiler_gnu=$ac_cv_c_compiler_gnu
2301
2302
2303
2304ac_config_headers="$ac_config_headers config.h"
2305
2306ac_aux_dir=
2307for ac_dir in . "$srcdir"/.; do
2308  if test -f "$ac_dir/install-sh"; then
2309    ac_aux_dir=$ac_dir
2310    ac_install_sh="$ac_aux_dir/install-sh -c"
2311    break
2312  elif test -f "$ac_dir/install.sh"; then
2313    ac_aux_dir=$ac_dir
2314    ac_install_sh="$ac_aux_dir/install.sh -c"
2315    break
2316  elif test -f "$ac_dir/shtool"; then
2317    ac_aux_dir=$ac_dir
2318    ac_install_sh="$ac_aux_dir/shtool install -c"
2319    break
2320  fi
2321done
2322if test -z "$ac_aux_dir"; then
2323  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2324fi
2325
2326# These three variables are undocumented and unsupported,
2327# and are intended to be withdrawn in a future Autoconf release.
2328# They can cause serious problems if a builder's source tree is in a directory
2329# whose full name contains unusual characters.
2330ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2331ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2332ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2333
2334
2335
2336# Initialize Automake
2337am__api_version='1.11'
2338
2339# Find a good install program.  We prefer a C program (faster),
2340# so one script is as good as another.  But avoid the broken or
2341# incompatible versions:
2342# SysV /etc/install, /usr/sbin/install
2343# SunOS /usr/etc/install
2344# IRIX /sbin/install
2345# AIX /bin/install
2346# AmigaOS /C/install, which installs bootblocks on floppy discs
2347# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2348# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2349# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2350# OS/2's system install, which has a completely different semantic
2351# ./install, which can be erroneously created by make from ./install.sh.
2352# Reject install programs that cannot install multiple files.
2353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2354$as_echo_n "checking for a BSD-compatible install... " >&6; }
2355if test -z "$INSTALL"; then
2356if ${ac_cv_path_install+:} false; then :
2357  $as_echo_n "(cached) " >&6
2358else
2359  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360for as_dir in $PATH
2361do
2362  IFS=$as_save_IFS
2363  test -z "$as_dir" && as_dir=.
2364    # Account for people who put trailing slashes in PATH elements.
2365case $as_dir/ in #((
2366  ./ | .// | /[cC]/* | \
2367  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2368  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2369  /usr/ucb/* ) ;;
2370  *)
2371    # OSF1 and SCO ODT 3.0 have their own names for install.
2372    # Don't use installbsd from OSF since it installs stuff as root
2373    # by default.
2374    for ac_prog in ginstall scoinst install; do
2375      for ac_exec_ext in '' $ac_executable_extensions; do
2376	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2377	  if test $ac_prog = install &&
2378	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2379	    # AIX install.  It has an incompatible calling convention.
2380	    :
2381	  elif test $ac_prog = install &&
2382	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2383	    # program-specific install script used by HP pwplus--don't use.
2384	    :
2385	  else
2386	    rm -rf conftest.one conftest.two conftest.dir
2387	    echo one > conftest.one
2388	    echo two > conftest.two
2389	    mkdir conftest.dir
2390	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2391	      test -s conftest.one && test -s conftest.two &&
2392	      test -s conftest.dir/conftest.one &&
2393	      test -s conftest.dir/conftest.two
2394	    then
2395	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2396	      break 3
2397	    fi
2398	  fi
2399	fi
2400      done
2401    done
2402    ;;
2403esac
2404
2405  done
2406IFS=$as_save_IFS
2407
2408rm -rf conftest.one conftest.two conftest.dir
2409
2410fi
2411  if test "${ac_cv_path_install+set}" = set; then
2412    INSTALL=$ac_cv_path_install
2413  else
2414    # As a last resort, use the slow shell script.  Don't cache a
2415    # value for INSTALL within a source directory, because that will
2416    # break other packages using the cache if that directory is
2417    # removed, or if the value is a relative name.
2418    INSTALL=$ac_install_sh
2419  fi
2420fi
2421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2422$as_echo "$INSTALL" >&6; }
2423
2424# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2425# It thinks the first close brace ends the variable substitution.
2426test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2427
2428test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2429
2430test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2431
2432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2433$as_echo_n "checking whether build environment is sane... " >&6; }
2434# Just in case
2435sleep 1
2436echo timestamp > conftest.file
2437# Reject unsafe characters in $srcdir or the absolute working directory
2438# name.  Accept space and tab only in the latter.
2439am_lf='
2440'
2441case `pwd` in
2442  *[\\\"\#\$\&\'\`$am_lf]*)
2443    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2444esac
2445case $srcdir in
2446  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2447    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2448esac
2449
2450# Do `set' in a subshell so we don't clobber the current shell's
2451# arguments.  Must try -L first in case configure is actually a
2452# symlink; some systems play weird games with the mod time of symlinks
2453# (eg FreeBSD returns the mod time of the symlink's containing
2454# directory).
2455if (
2456   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2457   if test "$*" = "X"; then
2458      # -L didn't work.
2459      set X `ls -t "$srcdir/configure" conftest.file`
2460   fi
2461   rm -f conftest.file
2462   if test "$*" != "X $srcdir/configure conftest.file" \
2463      && test "$*" != "X conftest.file $srcdir/configure"; then
2464
2465      # If neither matched, then we have a broken ls.  This can happen
2466      # if, for instance, CONFIG_SHELL is bash and it inherits a
2467      # broken ls alias from the environment.  This has actually
2468      # happened.  Such a system could not be considered "sane".
2469      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2470alias in your environment" "$LINENO" 5
2471   fi
2472
2473   test "$2" = conftest.file
2474   )
2475then
2476   # Ok.
2477   :
2478else
2479   as_fn_error $? "newly created file is older than distributed files!
2480Check your system clock" "$LINENO" 5
2481fi
2482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2483$as_echo "yes" >&6; }
2484test "$program_prefix" != NONE &&
2485  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2486# Use a double $ so make ignores it.
2487test "$program_suffix" != NONE &&
2488  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2489# Double any \ or $.
2490# By default was `s,x,x', remove it if useless.
2491ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2492program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2493
2494# expand $ac_aux_dir to an absolute path
2495am_aux_dir=`cd $ac_aux_dir && pwd`
2496
2497if test x"${MISSING+set}" != xset; then
2498  case $am_aux_dir in
2499  *\ * | *\	*)
2500    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2501  *)
2502    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2503  esac
2504fi
2505# Use eval to expand $SHELL
2506if eval "$MISSING --run true"; then
2507  am_missing_run="$MISSING --run "
2508else
2509  am_missing_run=
2510  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2511$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2512fi
2513
2514if test x"${install_sh}" != xset; then
2515  case $am_aux_dir in
2516  *\ * | *\	*)
2517    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2518  *)
2519    install_sh="\${SHELL} $am_aux_dir/install-sh"
2520  esac
2521fi
2522
2523# Installed binaries are usually stripped using `strip' when the user
2524# run `make install-strip'.  However `strip' might not be the right
2525# tool to use in cross-compilation environments, therefore Automake
2526# will honor the `STRIP' environment variable to overrule this program.
2527if test "$cross_compiling" != no; then
2528  if test -n "$ac_tool_prefix"; then
2529  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2530set dummy ${ac_tool_prefix}strip; ac_word=$2
2531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2532$as_echo_n "checking for $ac_word... " >&6; }
2533if ${ac_cv_prog_STRIP+:} false; then :
2534  $as_echo_n "(cached) " >&6
2535else
2536  if test -n "$STRIP"; then
2537  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2538else
2539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540for as_dir in $PATH
2541do
2542  IFS=$as_save_IFS
2543  test -z "$as_dir" && as_dir=.
2544    for ac_exec_ext in '' $ac_executable_extensions; do
2545  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2546    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2547    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2548    break 2
2549  fi
2550done
2551  done
2552IFS=$as_save_IFS
2553
2554fi
2555fi
2556STRIP=$ac_cv_prog_STRIP
2557if test -n "$STRIP"; then
2558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2559$as_echo "$STRIP" >&6; }
2560else
2561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2562$as_echo "no" >&6; }
2563fi
2564
2565
2566fi
2567if test -z "$ac_cv_prog_STRIP"; then
2568  ac_ct_STRIP=$STRIP
2569  # Extract the first word of "strip", so it can be a program name with args.
2570set dummy strip; ac_word=$2
2571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572$as_echo_n "checking for $ac_word... " >&6; }
2573if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2574  $as_echo_n "(cached) " >&6
2575else
2576  if test -n "$ac_ct_STRIP"; then
2577  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2578else
2579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580for as_dir in $PATH
2581do
2582  IFS=$as_save_IFS
2583  test -z "$as_dir" && as_dir=.
2584    for ac_exec_ext in '' $ac_executable_extensions; do
2585  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2586    ac_cv_prog_ac_ct_STRIP="strip"
2587    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588    break 2
2589  fi
2590done
2591  done
2592IFS=$as_save_IFS
2593
2594fi
2595fi
2596ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2597if test -n "$ac_ct_STRIP"; then
2598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2599$as_echo "$ac_ct_STRIP" >&6; }
2600else
2601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602$as_echo "no" >&6; }
2603fi
2604
2605  if test "x$ac_ct_STRIP" = x; then
2606    STRIP=":"
2607  else
2608    case $cross_compiling:$ac_tool_warned in
2609yes:)
2610{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2611$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2612ac_tool_warned=yes ;;
2613esac
2614    STRIP=$ac_ct_STRIP
2615  fi
2616else
2617  STRIP="$ac_cv_prog_STRIP"
2618fi
2619
2620fi
2621INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2622
2623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2624$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2625if test -z "$MKDIR_P"; then
2626  if ${ac_cv_path_mkdir+:} false; then :
2627  $as_echo_n "(cached) " >&6
2628else
2629  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2631do
2632  IFS=$as_save_IFS
2633  test -z "$as_dir" && as_dir=.
2634    for ac_prog in mkdir gmkdir; do
2635	 for ac_exec_ext in '' $ac_executable_extensions; do
2636	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2637	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2638	     'mkdir (GNU coreutils) '* | \
2639	     'mkdir (coreutils) '* | \
2640	     'mkdir (fileutils) '4.1*)
2641	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2642	       break 3;;
2643	   esac
2644	 done
2645       done
2646  done
2647IFS=$as_save_IFS
2648
2649fi
2650
2651  test -d ./--version && rmdir ./--version
2652  if test "${ac_cv_path_mkdir+set}" = set; then
2653    MKDIR_P="$ac_cv_path_mkdir -p"
2654  else
2655    # As a last resort, use the slow shell script.  Don't cache a
2656    # value for MKDIR_P within a source directory, because that will
2657    # break other packages using the cache if that directory is
2658    # removed, or if the value is a relative name.
2659    MKDIR_P="$ac_install_sh -d"
2660  fi
2661fi
2662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2663$as_echo "$MKDIR_P" >&6; }
2664
2665mkdir_p="$MKDIR_P"
2666case $mkdir_p in
2667  [\\/$]* | ?:[\\/]*) ;;
2668  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2669esac
2670
2671for ac_prog in gawk mawk nawk awk
2672do
2673  # Extract the first word of "$ac_prog", so it can be a program name with args.
2674set dummy $ac_prog; ac_word=$2
2675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2676$as_echo_n "checking for $ac_word... " >&6; }
2677if ${ac_cv_prog_AWK+:} false; then :
2678  $as_echo_n "(cached) " >&6
2679else
2680  if test -n "$AWK"; then
2681  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2682else
2683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684for as_dir in $PATH
2685do
2686  IFS=$as_save_IFS
2687  test -z "$as_dir" && as_dir=.
2688    for ac_exec_ext in '' $ac_executable_extensions; do
2689  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2690    ac_cv_prog_AWK="$ac_prog"
2691    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2692    break 2
2693  fi
2694done
2695  done
2696IFS=$as_save_IFS
2697
2698fi
2699fi
2700AWK=$ac_cv_prog_AWK
2701if test -n "$AWK"; then
2702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2703$as_echo "$AWK" >&6; }
2704else
2705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2706$as_echo "no" >&6; }
2707fi
2708
2709
2710  test -n "$AWK" && break
2711done
2712
2713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2714$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2715set x ${MAKE-make}
2716ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2717if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2718  $as_echo_n "(cached) " >&6
2719else
2720  cat >conftest.make <<\_ACEOF
2721SHELL = /bin/sh
2722all:
2723	@echo '@@@%%%=$(MAKE)=@@@%%%'
2724_ACEOF
2725# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2726case `${MAKE-make} -f conftest.make 2>/dev/null` in
2727  *@@@%%%=?*=@@@%%%*)
2728    eval ac_cv_prog_make_${ac_make}_set=yes;;
2729  *)
2730    eval ac_cv_prog_make_${ac_make}_set=no;;
2731esac
2732rm -f conftest.make
2733fi
2734if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2736$as_echo "yes" >&6; }
2737  SET_MAKE=
2738else
2739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740$as_echo "no" >&6; }
2741  SET_MAKE="MAKE=${MAKE-make}"
2742fi
2743
2744rm -rf .tst 2>/dev/null
2745mkdir .tst 2>/dev/null
2746if test -d .tst; then
2747  am__leading_dot=.
2748else
2749  am__leading_dot=_
2750fi
2751rmdir .tst 2>/dev/null
2752
2753if test "`cd $srcdir && pwd`" != "`pwd`"; then
2754  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2755  # is not polluted with repeated "-I."
2756  am__isrc=' -I$(srcdir)'
2757  # test to see if srcdir already configured
2758  if test -f $srcdir/config.status; then
2759    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2760  fi
2761fi
2762
2763# test whether we have cygpath
2764if test -z "$CYGPATH_W"; then
2765  if (cygpath --version) >/dev/null 2>/dev/null; then
2766    CYGPATH_W='cygpath -w'
2767  else
2768    CYGPATH_W=echo
2769  fi
2770fi
2771
2772
2773# Define the identity of the package.
2774 PACKAGE='xf86-video-i128'
2775 VERSION='1.3.6'
2776
2777
2778cat >>confdefs.h <<_ACEOF
2779#define PACKAGE "$PACKAGE"
2780_ACEOF
2781
2782
2783cat >>confdefs.h <<_ACEOF
2784#define VERSION "$VERSION"
2785_ACEOF
2786
2787# Some tools Automake needs.
2788
2789ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2790
2791
2792AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2793
2794
2795AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2796
2797
2798AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2799
2800
2801MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2802
2803# We need awk for the "check" target.  The system "awk" is bad on
2804# some platforms.
2805# Always define AMTAR for backward compatibility.  Yes, it's still used
2806# in the wild :-(  We should find a proper way to deprecate it ...
2807AMTAR='$${TAR-tar}'
2808
2809am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2810
2811
2812
2813
2814
2815
2816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2817$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2818    # Check whether --enable-maintainer-mode was given.
2819if test "${enable_maintainer_mode+set}" = set; then :
2820  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2821else
2822  USE_MAINTAINER_MODE=no
2823fi
2824
2825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2826$as_echo "$USE_MAINTAINER_MODE" >&6; }
2827   if test $USE_MAINTAINER_MODE = yes; then
2828  MAINTAINER_MODE_TRUE=
2829  MAINTAINER_MODE_FALSE='#'
2830else
2831  MAINTAINER_MODE_TRUE='#'
2832  MAINTAINER_MODE_FALSE=
2833fi
2834
2835  MAINT=$MAINTAINER_MODE_TRUE
2836
2837
2838
2839# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851DEPDIR="${am__leading_dot}deps"
2852
2853ac_config_commands="$ac_config_commands depfiles"
2854
2855
2856am_make=${MAKE-make}
2857cat > confinc << 'END'
2858am__doit:
2859	@echo this is the am__doit target
2860.PHONY: am__doit
2861END
2862# If we don't find an include directive, just comment out the code.
2863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2864$as_echo_n "checking for style of include used by $am_make... " >&6; }
2865am__include="#"
2866am__quote=
2867_am_result=none
2868# First try GNU make style include.
2869echo "include confinc" > confmf
2870# Ignore all kinds of additional output from `make'.
2871case `$am_make -s -f confmf 2> /dev/null` in #(
2872*the\ am__doit\ target*)
2873  am__include=include
2874  am__quote=
2875  _am_result=GNU
2876  ;;
2877esac
2878# Now try BSD make style include.
2879if test "$am__include" = "#"; then
2880   echo '.include "confinc"' > confmf
2881   case `$am_make -s -f confmf 2> /dev/null` in #(
2882   *the\ am__doit\ target*)
2883     am__include=.include
2884     am__quote="\""
2885     _am_result=BSD
2886     ;;
2887   esac
2888fi
2889
2890
2891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2892$as_echo "$_am_result" >&6; }
2893rm -f confinc confmf
2894
2895# Check whether --enable-dependency-tracking was given.
2896if test "${enable_dependency_tracking+set}" = set; then :
2897  enableval=$enable_dependency_tracking;
2898fi
2899
2900if test "x$enable_dependency_tracking" != xno; then
2901  am_depcomp="$ac_aux_dir/depcomp"
2902  AMDEPBACKSLASH='\'
2903  am__nodep='_no'
2904fi
2905 if test "x$enable_dependency_tracking" != xno; then
2906  AMDEP_TRUE=
2907  AMDEP_FALSE='#'
2908else
2909  AMDEP_TRUE='#'
2910  AMDEP_FALSE=
2911fi
2912
2913
2914ac_ext=c
2915ac_cpp='$CPP $CPPFLAGS'
2916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2918ac_compiler_gnu=$ac_cv_c_compiler_gnu
2919if test -n "$ac_tool_prefix"; then
2920  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2921set dummy ${ac_tool_prefix}gcc; ac_word=$2
2922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923$as_echo_n "checking for $ac_word... " >&6; }
2924if ${ac_cv_prog_CC+:} false; then :
2925  $as_echo_n "(cached) " >&6
2926else
2927  if test -n "$CC"; then
2928  ac_cv_prog_CC="$CC" # Let the user override the test.
2929else
2930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931for as_dir in $PATH
2932do
2933  IFS=$as_save_IFS
2934  test -z "$as_dir" && as_dir=.
2935    for ac_exec_ext in '' $ac_executable_extensions; do
2936  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2938    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939    break 2
2940  fi
2941done
2942  done
2943IFS=$as_save_IFS
2944
2945fi
2946fi
2947CC=$ac_cv_prog_CC
2948if test -n "$CC"; then
2949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2950$as_echo "$CC" >&6; }
2951else
2952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953$as_echo "no" >&6; }
2954fi
2955
2956
2957fi
2958if test -z "$ac_cv_prog_CC"; then
2959  ac_ct_CC=$CC
2960  # Extract the first word of "gcc", so it can be a program name with args.
2961set dummy gcc; ac_word=$2
2962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963$as_echo_n "checking for $ac_word... " >&6; }
2964if ${ac_cv_prog_ac_ct_CC+:} false; then :
2965  $as_echo_n "(cached) " >&6
2966else
2967  if test -n "$ac_ct_CC"; then
2968  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2969else
2970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971for as_dir in $PATH
2972do
2973  IFS=$as_save_IFS
2974  test -z "$as_dir" && as_dir=.
2975    for ac_exec_ext in '' $ac_executable_extensions; do
2976  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2977    ac_cv_prog_ac_ct_CC="gcc"
2978    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2979    break 2
2980  fi
2981done
2982  done
2983IFS=$as_save_IFS
2984
2985fi
2986fi
2987ac_ct_CC=$ac_cv_prog_ac_ct_CC
2988if test -n "$ac_ct_CC"; then
2989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2990$as_echo "$ac_ct_CC" >&6; }
2991else
2992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993$as_echo "no" >&6; }
2994fi
2995
2996  if test "x$ac_ct_CC" = x; then
2997    CC=""
2998  else
2999    case $cross_compiling:$ac_tool_warned in
3000yes:)
3001{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3002$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3003ac_tool_warned=yes ;;
3004esac
3005    CC=$ac_ct_CC
3006  fi
3007else
3008  CC="$ac_cv_prog_CC"
3009fi
3010
3011if test -z "$CC"; then
3012          if test -n "$ac_tool_prefix"; then
3013    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3014set dummy ${ac_tool_prefix}cc; ac_word=$2
3015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016$as_echo_n "checking for $ac_word... " >&6; }
3017if ${ac_cv_prog_CC+:} false; then :
3018  $as_echo_n "(cached) " >&6
3019else
3020  if test -n "$CC"; then
3021  ac_cv_prog_CC="$CC" # Let the user override the test.
3022else
3023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024for as_dir in $PATH
3025do
3026  IFS=$as_save_IFS
3027  test -z "$as_dir" && as_dir=.
3028    for ac_exec_ext in '' $ac_executable_extensions; do
3029  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3030    ac_cv_prog_CC="${ac_tool_prefix}cc"
3031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032    break 2
3033  fi
3034done
3035  done
3036IFS=$as_save_IFS
3037
3038fi
3039fi
3040CC=$ac_cv_prog_CC
3041if test -n "$CC"; then
3042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3043$as_echo "$CC" >&6; }
3044else
3045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046$as_echo "no" >&6; }
3047fi
3048
3049
3050  fi
3051fi
3052if test -z "$CC"; then
3053  # Extract the first word of "cc", so it can be a program name with args.
3054set dummy cc; ac_word=$2
3055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056$as_echo_n "checking for $ac_word... " >&6; }
3057if ${ac_cv_prog_CC+:} false; then :
3058  $as_echo_n "(cached) " >&6
3059else
3060  if test -n "$CC"; then
3061  ac_cv_prog_CC="$CC" # Let the user override the test.
3062else
3063  ac_prog_rejected=no
3064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065for as_dir in $PATH
3066do
3067  IFS=$as_save_IFS
3068  test -z "$as_dir" && as_dir=.
3069    for ac_exec_ext in '' $ac_executable_extensions; do
3070  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3072       ac_prog_rejected=yes
3073       continue
3074     fi
3075    ac_cv_prog_CC="cc"
3076    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3077    break 2
3078  fi
3079done
3080  done
3081IFS=$as_save_IFS
3082
3083if test $ac_prog_rejected = yes; then
3084  # We found a bogon in the path, so make sure we never use it.
3085  set dummy $ac_cv_prog_CC
3086  shift
3087  if test $# != 0; then
3088    # We chose a different compiler from the bogus one.
3089    # However, it has the same basename, so the bogon will be chosen
3090    # first if we set CC to just the basename; use the full file name.
3091    shift
3092    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3093  fi
3094fi
3095fi
3096fi
3097CC=$ac_cv_prog_CC
3098if test -n "$CC"; then
3099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3100$as_echo "$CC" >&6; }
3101else
3102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103$as_echo "no" >&6; }
3104fi
3105
3106
3107fi
3108if test -z "$CC"; then
3109  if test -n "$ac_tool_prefix"; then
3110  for ac_prog in cl.exe
3111  do
3112    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3113set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115$as_echo_n "checking for $ac_word... " >&6; }
3116if ${ac_cv_prog_CC+:} false; then :
3117  $as_echo_n "(cached) " >&6
3118else
3119  if test -n "$CC"; then
3120  ac_cv_prog_CC="$CC" # Let the user override the test.
3121else
3122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123for as_dir in $PATH
3124do
3125  IFS=$as_save_IFS
3126  test -z "$as_dir" && as_dir=.
3127    for ac_exec_ext in '' $ac_executable_extensions; do
3128  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3129    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3130    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131    break 2
3132  fi
3133done
3134  done
3135IFS=$as_save_IFS
3136
3137fi
3138fi
3139CC=$ac_cv_prog_CC
3140if test -n "$CC"; then
3141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3142$as_echo "$CC" >&6; }
3143else
3144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145$as_echo "no" >&6; }
3146fi
3147
3148
3149    test -n "$CC" && break
3150  done
3151fi
3152if test -z "$CC"; then
3153  ac_ct_CC=$CC
3154  for ac_prog in cl.exe
3155do
3156  # Extract the first word of "$ac_prog", so it can be a program name with args.
3157set dummy $ac_prog; ac_word=$2
3158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159$as_echo_n "checking for $ac_word... " >&6; }
3160if ${ac_cv_prog_ac_ct_CC+:} false; then :
3161  $as_echo_n "(cached) " >&6
3162else
3163  if test -n "$ac_ct_CC"; then
3164  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3165else
3166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167for as_dir in $PATH
3168do
3169  IFS=$as_save_IFS
3170  test -z "$as_dir" && as_dir=.
3171    for ac_exec_ext in '' $ac_executable_extensions; do
3172  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3173    ac_cv_prog_ac_ct_CC="$ac_prog"
3174    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175    break 2
3176  fi
3177done
3178  done
3179IFS=$as_save_IFS
3180
3181fi
3182fi
3183ac_ct_CC=$ac_cv_prog_ac_ct_CC
3184if test -n "$ac_ct_CC"; then
3185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3186$as_echo "$ac_ct_CC" >&6; }
3187else
3188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189$as_echo "no" >&6; }
3190fi
3191
3192
3193  test -n "$ac_ct_CC" && break
3194done
3195
3196  if test "x$ac_ct_CC" = x; then
3197    CC=""
3198  else
3199    case $cross_compiling:$ac_tool_warned in
3200yes:)
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3202$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3203ac_tool_warned=yes ;;
3204esac
3205    CC=$ac_ct_CC
3206  fi
3207fi
3208
3209fi
3210
3211
3212test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214as_fn_error $? "no acceptable C compiler found in \$PATH
3215See \`config.log' for more details" "$LINENO" 5; }
3216
3217# Provide some information about the compiler.
3218$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3219set X $ac_compile
3220ac_compiler=$2
3221for ac_option in --version -v -V -qversion; do
3222  { { ac_try="$ac_compiler $ac_option >&5"
3223case "(($ac_try" in
3224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225  *) ac_try_echo=$ac_try;;
3226esac
3227eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3228$as_echo "$ac_try_echo"; } >&5
3229  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3230  ac_status=$?
3231  if test -s conftest.err; then
3232    sed '10a\
3233... rest of stderr output deleted ...
3234         10q' conftest.err >conftest.er1
3235    cat conftest.er1 >&5
3236  fi
3237  rm -f conftest.er1 conftest.err
3238  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239  test $ac_status = 0; }
3240done
3241
3242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3243/* end confdefs.h.  */
3244
3245int
3246main ()
3247{
3248
3249  ;
3250  return 0;
3251}
3252_ACEOF
3253ac_clean_files_save=$ac_clean_files
3254ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3255# Try to create an executable without -o first, disregard a.out.
3256# It will help us diagnose broken compilers, and finding out an intuition
3257# of exeext.
3258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3259$as_echo_n "checking whether the C compiler works... " >&6; }
3260ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3261
3262# The possible output files:
3263ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3264
3265ac_rmfiles=
3266for ac_file in $ac_files
3267do
3268  case $ac_file in
3269    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3270    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3271  esac
3272done
3273rm -f $ac_rmfiles
3274
3275if { { ac_try="$ac_link_default"
3276case "(($ac_try" in
3277  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278  *) ac_try_echo=$ac_try;;
3279esac
3280eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281$as_echo "$ac_try_echo"; } >&5
3282  (eval "$ac_link_default") 2>&5
3283  ac_status=$?
3284  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285  test $ac_status = 0; }; then :
3286  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3287# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3288# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3289# so that the user can short-circuit this test for compilers unknown to
3290# Autoconf.
3291for ac_file in $ac_files ''
3292do
3293  test -f "$ac_file" || continue
3294  case $ac_file in
3295    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3296	;;
3297    [ab].out )
3298	# We found the default executable, but exeext='' is most
3299	# certainly right.
3300	break;;
3301    *.* )
3302	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3303	then :; else
3304	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3305	fi
3306	# We set ac_cv_exeext here because the later test for it is not
3307	# safe: cross compilers may not add the suffix if given an `-o'
3308	# argument, so we may need to know it at that point already.
3309	# Even if this section looks crufty: it has the advantage of
3310	# actually working.
3311	break;;
3312    * )
3313	break;;
3314  esac
3315done
3316test "$ac_cv_exeext" = no && ac_cv_exeext=
3317
3318else
3319  ac_file=''
3320fi
3321if test -z "$ac_file"; then :
3322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323$as_echo "no" >&6; }
3324$as_echo "$as_me: failed program was:" >&5
3325sed 's/^/| /' conftest.$ac_ext >&5
3326
3327{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3328$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3329as_fn_error 77 "C compiler cannot create executables
3330See \`config.log' for more details" "$LINENO" 5; }
3331else
3332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3333$as_echo "yes" >&6; }
3334fi
3335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3336$as_echo_n "checking for C compiler default output file name... " >&6; }
3337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3338$as_echo "$ac_file" >&6; }
3339ac_exeext=$ac_cv_exeext
3340
3341rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3342ac_clean_files=$ac_clean_files_save
3343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3344$as_echo_n "checking for suffix of executables... " >&6; }
3345if { { ac_try="$ac_link"
3346case "(($ac_try" in
3347  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348  *) ac_try_echo=$ac_try;;
3349esac
3350eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3351$as_echo "$ac_try_echo"; } >&5
3352  (eval "$ac_link") 2>&5
3353  ac_status=$?
3354  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3355  test $ac_status = 0; }; then :
3356  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3357# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3358# work properly (i.e., refer to `conftest.exe'), while it won't with
3359# `rm'.
3360for ac_file in conftest.exe conftest conftest.*; do
3361  test -f "$ac_file" || continue
3362  case $ac_file in
3363    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3364    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3365	  break;;
3366    * ) break;;
3367  esac
3368done
3369else
3370  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3371$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3373See \`config.log' for more details" "$LINENO" 5; }
3374fi
3375rm -f conftest conftest$ac_cv_exeext
3376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3377$as_echo "$ac_cv_exeext" >&6; }
3378
3379rm -f conftest.$ac_ext
3380EXEEXT=$ac_cv_exeext
3381ac_exeext=$EXEEXT
3382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3383/* end confdefs.h.  */
3384#include <stdio.h>
3385int
3386main ()
3387{
3388FILE *f = fopen ("conftest.out", "w");
3389 return ferror (f) || fclose (f) != 0;
3390
3391  ;
3392  return 0;
3393}
3394_ACEOF
3395ac_clean_files="$ac_clean_files conftest.out"
3396# Check that the compiler produces executables we can run.  If not, either
3397# the compiler is broken, or we cross compile.
3398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3399$as_echo_n "checking whether we are cross compiling... " >&6; }
3400if test "$cross_compiling" != yes; then
3401  { { ac_try="$ac_link"
3402case "(($ac_try" in
3403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404  *) ac_try_echo=$ac_try;;
3405esac
3406eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3407$as_echo "$ac_try_echo"; } >&5
3408  (eval "$ac_link") 2>&5
3409  ac_status=$?
3410  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3411  test $ac_status = 0; }
3412  if { ac_try='./conftest$ac_cv_exeext'
3413  { { case "(($ac_try" in
3414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415  *) ac_try_echo=$ac_try;;
3416esac
3417eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3418$as_echo "$ac_try_echo"; } >&5
3419  (eval "$ac_try") 2>&5
3420  ac_status=$?
3421  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3422  test $ac_status = 0; }; }; then
3423    cross_compiling=no
3424  else
3425    if test "$cross_compiling" = maybe; then
3426	cross_compiling=yes
3427    else
3428	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3429$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3430as_fn_error $? "cannot run C compiled programs.
3431If you meant to cross compile, use \`--host'.
3432See \`config.log' for more details" "$LINENO" 5; }
3433    fi
3434  fi
3435fi
3436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3437$as_echo "$cross_compiling" >&6; }
3438
3439rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3440ac_clean_files=$ac_clean_files_save
3441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3442$as_echo_n "checking for suffix of object files... " >&6; }
3443if ${ac_cv_objext+:} false; then :
3444  $as_echo_n "(cached) " >&6
3445else
3446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447/* end confdefs.h.  */
3448
3449int
3450main ()
3451{
3452
3453  ;
3454  return 0;
3455}
3456_ACEOF
3457rm -f conftest.o conftest.obj
3458if { { ac_try="$ac_compile"
3459case "(($ac_try" in
3460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461  *) ac_try_echo=$ac_try;;
3462esac
3463eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464$as_echo "$ac_try_echo"; } >&5
3465  (eval "$ac_compile") 2>&5
3466  ac_status=$?
3467  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468  test $ac_status = 0; }; then :
3469  for ac_file in conftest.o conftest.obj conftest.*; do
3470  test -f "$ac_file" || continue;
3471  case $ac_file in
3472    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3473    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3474       break;;
3475  esac
3476done
3477else
3478  $as_echo "$as_me: failed program was:" >&5
3479sed 's/^/| /' conftest.$ac_ext >&5
3480
3481{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3482$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3483as_fn_error $? "cannot compute suffix of object files: cannot compile
3484See \`config.log' for more details" "$LINENO" 5; }
3485fi
3486rm -f conftest.$ac_cv_objext conftest.$ac_ext
3487fi
3488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3489$as_echo "$ac_cv_objext" >&6; }
3490OBJEXT=$ac_cv_objext
3491ac_objext=$OBJEXT
3492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3493$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3494if ${ac_cv_c_compiler_gnu+:} false; then :
3495  $as_echo_n "(cached) " >&6
3496else
3497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498/* end confdefs.h.  */
3499
3500int
3501main ()
3502{
3503#ifndef __GNUC__
3504       choke me
3505#endif
3506
3507  ;
3508  return 0;
3509}
3510_ACEOF
3511if ac_fn_c_try_compile "$LINENO"; then :
3512  ac_compiler_gnu=yes
3513else
3514  ac_compiler_gnu=no
3515fi
3516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517ac_cv_c_compiler_gnu=$ac_compiler_gnu
3518
3519fi
3520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3521$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3522if test $ac_compiler_gnu = yes; then
3523  GCC=yes
3524else
3525  GCC=
3526fi
3527ac_test_CFLAGS=${CFLAGS+set}
3528ac_save_CFLAGS=$CFLAGS
3529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3530$as_echo_n "checking whether $CC accepts -g... " >&6; }
3531if ${ac_cv_prog_cc_g+:} false; then :
3532  $as_echo_n "(cached) " >&6
3533else
3534  ac_save_c_werror_flag=$ac_c_werror_flag
3535   ac_c_werror_flag=yes
3536   ac_cv_prog_cc_g=no
3537   CFLAGS="-g"
3538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539/* end confdefs.h.  */
3540
3541int
3542main ()
3543{
3544
3545  ;
3546  return 0;
3547}
3548_ACEOF
3549if ac_fn_c_try_compile "$LINENO"; then :
3550  ac_cv_prog_cc_g=yes
3551else
3552  CFLAGS=""
3553      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554/* end confdefs.h.  */
3555
3556int
3557main ()
3558{
3559
3560  ;
3561  return 0;
3562}
3563_ACEOF
3564if ac_fn_c_try_compile "$LINENO"; then :
3565
3566else
3567  ac_c_werror_flag=$ac_save_c_werror_flag
3568	 CFLAGS="-g"
3569	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570/* end confdefs.h.  */
3571
3572int
3573main ()
3574{
3575
3576  ;
3577  return 0;
3578}
3579_ACEOF
3580if ac_fn_c_try_compile "$LINENO"; then :
3581  ac_cv_prog_cc_g=yes
3582fi
3583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584fi
3585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586fi
3587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588   ac_c_werror_flag=$ac_save_c_werror_flag
3589fi
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3591$as_echo "$ac_cv_prog_cc_g" >&6; }
3592if test "$ac_test_CFLAGS" = set; then
3593  CFLAGS=$ac_save_CFLAGS
3594elif test $ac_cv_prog_cc_g = yes; then
3595  if test "$GCC" = yes; then
3596    CFLAGS="-g -O2"
3597  else
3598    CFLAGS="-g"
3599  fi
3600else
3601  if test "$GCC" = yes; then
3602    CFLAGS="-O2"
3603  else
3604    CFLAGS=
3605  fi
3606fi
3607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3608$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3609if ${ac_cv_prog_cc_c89+:} false; then :
3610  $as_echo_n "(cached) " >&6
3611else
3612  ac_cv_prog_cc_c89=no
3613ac_save_CC=$CC
3614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615/* end confdefs.h.  */
3616#include <stdarg.h>
3617#include <stdio.h>
3618#include <sys/types.h>
3619#include <sys/stat.h>
3620/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3621struct buf { int x; };
3622FILE * (*rcsopen) (struct buf *, struct stat *, int);
3623static char *e (p, i)
3624     char **p;
3625     int i;
3626{
3627  return p[i];
3628}
3629static char *f (char * (*g) (char **, int), char **p, ...)
3630{
3631  char *s;
3632  va_list v;
3633  va_start (v,p);
3634  s = g (p, va_arg (v,int));
3635  va_end (v);
3636  return s;
3637}
3638
3639/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3640   function prototypes and stuff, but not '\xHH' hex character constants.
3641   These don't provoke an error unfortunately, instead are silently treated
3642   as 'x'.  The following induces an error, until -std is added to get
3643   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3644   array size at least.  It's necessary to write '\x00'==0 to get something
3645   that's true only with -std.  */
3646int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3647
3648/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3649   inside strings and character constants.  */
3650#define FOO(x) 'x'
3651int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3652
3653int test (int i, double x);
3654struct s1 {int (*f) (int a);};
3655struct s2 {int (*f) (double a);};
3656int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3657int argc;
3658char **argv;
3659int
3660main ()
3661{
3662return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3663  ;
3664  return 0;
3665}
3666_ACEOF
3667for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3668	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3669do
3670  CC="$ac_save_CC $ac_arg"
3671  if ac_fn_c_try_compile "$LINENO"; then :
3672  ac_cv_prog_cc_c89=$ac_arg
3673fi
3674rm -f core conftest.err conftest.$ac_objext
3675  test "x$ac_cv_prog_cc_c89" != "xno" && break
3676done
3677rm -f conftest.$ac_ext
3678CC=$ac_save_CC
3679
3680fi
3681# AC_CACHE_VAL
3682case "x$ac_cv_prog_cc_c89" in
3683  x)
3684    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3685$as_echo "none needed" >&6; } ;;
3686  xno)
3687    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3688$as_echo "unsupported" >&6; } ;;
3689  *)
3690    CC="$CC $ac_cv_prog_cc_c89"
3691    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3692$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3693esac
3694if test "x$ac_cv_prog_cc_c89" != xno; then :
3695
3696fi
3697
3698ac_ext=c
3699ac_cpp='$CPP $CPPFLAGS'
3700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702ac_compiler_gnu=$ac_cv_c_compiler_gnu
3703
3704depcc="$CC"   am_compiler_list=
3705
3706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3707$as_echo_n "checking dependency style of $depcc... " >&6; }
3708if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3709  $as_echo_n "(cached) " >&6
3710else
3711  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3712  # We make a subdir and do the tests there.  Otherwise we can end up
3713  # making bogus files that we don't know about and never remove.  For
3714  # instance it was reported that on HP-UX the gcc test will end up
3715  # making a dummy file named `D' -- because `-MD' means `put the output
3716  # in D'.
3717  rm -rf conftest.dir
3718  mkdir conftest.dir
3719  # Copy depcomp to subdir because otherwise we won't find it if we're
3720  # using a relative directory.
3721  cp "$am_depcomp" conftest.dir
3722  cd conftest.dir
3723  # We will build objects and dependencies in a subdirectory because
3724  # it helps to detect inapplicable dependency modes.  For instance
3725  # both Tru64's cc and ICC support -MD to output dependencies as a
3726  # side effect of compilation, but ICC will put the dependencies in
3727  # the current directory while Tru64 will put them in the object
3728  # directory.
3729  mkdir sub
3730
3731  am_cv_CC_dependencies_compiler_type=none
3732  if test "$am_compiler_list" = ""; then
3733     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3734  fi
3735  am__universal=false
3736  case " $depcc " in #(
3737     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3738     esac
3739
3740  for depmode in $am_compiler_list; do
3741    # Setup a source with many dependencies, because some compilers
3742    # like to wrap large dependency lists on column 80 (with \), and
3743    # we should not choose a depcomp mode which is confused by this.
3744    #
3745    # We need to recreate these files for each test, as the compiler may
3746    # overwrite some of them when testing with obscure command lines.
3747    # This happens at least with the AIX C compiler.
3748    : > sub/conftest.c
3749    for i in 1 2 3 4 5 6; do
3750      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3751      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3752      # Solaris 8's {/usr,}/bin/sh.
3753      touch sub/conftst$i.h
3754    done
3755    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3756
3757    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3758    # mode.  It turns out that the SunPro C++ compiler does not properly
3759    # handle `-M -o', and we need to detect this.  Also, some Intel
3760    # versions had trouble with output in subdirs
3761    am__obj=sub/conftest.${OBJEXT-o}
3762    am__minus_obj="-o $am__obj"
3763    case $depmode in
3764    gcc)
3765      # This depmode causes a compiler race in universal mode.
3766      test "$am__universal" = false || continue
3767      ;;
3768    nosideeffect)
3769      # after this tag, mechanisms are not by side-effect, so they'll
3770      # only be used when explicitly requested
3771      if test "x$enable_dependency_tracking" = xyes; then
3772	continue
3773      else
3774	break
3775      fi
3776      ;;
3777    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3778      # This compiler won't grok `-c -o', but also, the minuso test has
3779      # not run yet.  These depmodes are late enough in the game, and
3780      # so weak that their functioning should not be impacted.
3781      am__obj=conftest.${OBJEXT-o}
3782      am__minus_obj=
3783      ;;
3784    none) break ;;
3785    esac
3786    if depmode=$depmode \
3787       source=sub/conftest.c object=$am__obj \
3788       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3789       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3790         >/dev/null 2>conftest.err &&
3791       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3792       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3793       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3794       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3795      # icc doesn't choke on unknown options, it will just issue warnings
3796      # or remarks (even with -Werror).  So we grep stderr for any message
3797      # that says an option was ignored or not supported.
3798      # When given -MP, icc 7.0 and 7.1 complain thusly:
3799      #   icc: Command line warning: ignoring option '-M'; no argument required
3800      # The diagnosis changed in icc 8.0:
3801      #   icc: Command line remark: option '-MP' not supported
3802      if (grep 'ignoring option' conftest.err ||
3803          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3804        am_cv_CC_dependencies_compiler_type=$depmode
3805        break
3806      fi
3807    fi
3808  done
3809
3810  cd ..
3811  rm -rf conftest.dir
3812else
3813  am_cv_CC_dependencies_compiler_type=none
3814fi
3815
3816fi
3817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3818$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3819CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3820
3821 if
3822  test "x$enable_dependency_tracking" != xno \
3823  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3824  am__fastdepCC_TRUE=
3825  am__fastdepCC_FALSE='#'
3826else
3827  am__fastdepCC_TRUE='#'
3828  am__fastdepCC_FALSE=
3829fi
3830
3831
3832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3833$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3834if ${ac_cv_prog_cc_c99+:} false; then :
3835  $as_echo_n "(cached) " >&6
3836else
3837  ac_cv_prog_cc_c99=no
3838ac_save_CC=$CC
3839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840/* end confdefs.h.  */
3841#include <stdarg.h>
3842#include <stdbool.h>
3843#include <stdlib.h>
3844#include <wchar.h>
3845#include <stdio.h>
3846
3847// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3848#define debug(...) fprintf (stderr, __VA_ARGS__)
3849#define showlist(...) puts (#__VA_ARGS__)
3850#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3851static void
3852test_varargs_macros (void)
3853{
3854  int x = 1234;
3855  int y = 5678;
3856  debug ("Flag");
3857  debug ("X = %d\n", x);
3858  showlist (The first, second, and third items.);
3859  report (x>y, "x is %d but y is %d", x, y);
3860}
3861
3862// Check long long types.
3863#define BIG64 18446744073709551615ull
3864#define BIG32 4294967295ul
3865#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3866#if !BIG_OK
3867  your preprocessor is broken;
3868#endif
3869#if BIG_OK
3870#else
3871  your preprocessor is broken;
3872#endif
3873static long long int bignum = -9223372036854775807LL;
3874static unsigned long long int ubignum = BIG64;
3875
3876struct incomplete_array
3877{
3878  int datasize;
3879  double data[];
3880};
3881
3882struct named_init {
3883  int number;
3884  const wchar_t *name;
3885  double average;
3886};
3887
3888typedef const char *ccp;
3889
3890static inline int
3891test_restrict (ccp restrict text)
3892{
3893  // See if C++-style comments work.
3894  // Iterate through items via the restricted pointer.
3895  // Also check for declarations in for loops.
3896  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3897    continue;
3898  return 0;
3899}
3900
3901// Check varargs and va_copy.
3902static void
3903test_varargs (const char *format, ...)
3904{
3905  va_list args;
3906  va_start (args, format);
3907  va_list args_copy;
3908  va_copy (args_copy, args);
3909
3910  const char *str;
3911  int number;
3912  float fnumber;
3913
3914  while (*format)
3915    {
3916      switch (*format++)
3917	{
3918	case 's': // string
3919	  str = va_arg (args_copy, const char *);
3920	  break;
3921	case 'd': // int
3922	  number = va_arg (args_copy, int);
3923	  break;
3924	case 'f': // float
3925	  fnumber = va_arg (args_copy, double);
3926	  break;
3927	default:
3928	  break;
3929	}
3930    }
3931  va_end (args_copy);
3932  va_end (args);
3933}
3934
3935int
3936main ()
3937{
3938
3939  // Check bool.
3940  _Bool success = false;
3941
3942  // Check restrict.
3943  if (test_restrict ("String literal") == 0)
3944    success = true;
3945  char *restrict newvar = "Another string";
3946
3947  // Check varargs.
3948  test_varargs ("s, d' f .", "string", 65, 34.234);
3949  test_varargs_macros ();
3950
3951  // Check flexible array members.
3952  struct incomplete_array *ia =
3953    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3954  ia->datasize = 10;
3955  for (int i = 0; i < ia->datasize; ++i)
3956    ia->data[i] = i * 1.234;
3957
3958  // Check named initializers.
3959  struct named_init ni = {
3960    .number = 34,
3961    .name = L"Test wide string",
3962    .average = 543.34343,
3963  };
3964
3965  ni.number = 58;
3966
3967  int dynamic_array[ni.number];
3968  dynamic_array[ni.number - 1] = 543;
3969
3970  // work around unused variable warnings
3971  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3972	  || dynamic_array[ni.number - 1] != 543);
3973
3974  ;
3975  return 0;
3976}
3977_ACEOF
3978for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3979do
3980  CC="$ac_save_CC $ac_arg"
3981  if ac_fn_c_try_compile "$LINENO"; then :
3982  ac_cv_prog_cc_c99=$ac_arg
3983fi
3984rm -f core conftest.err conftest.$ac_objext
3985  test "x$ac_cv_prog_cc_c99" != "xno" && break
3986done
3987rm -f conftest.$ac_ext
3988CC=$ac_save_CC
3989
3990fi
3991# AC_CACHE_VAL
3992case "x$ac_cv_prog_cc_c99" in
3993  x)
3994    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3995$as_echo "none needed" >&6; } ;;
3996  xno)
3997    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3998$as_echo "unsupported" >&6; } ;;
3999  *)
4000    CC="$CC $ac_cv_prog_cc_c99"
4001    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4002$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4003esac
4004if test "x$ac_cv_prog_cc_c99" != xno; then :
4005
4006fi
4007
4008
4009
4010ac_ext=c
4011ac_cpp='$CPP $CPPFLAGS'
4012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4014ac_compiler_gnu=$ac_cv_c_compiler_gnu
4015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4016$as_echo_n "checking how to run the C preprocessor... " >&6; }
4017# On Suns, sometimes $CPP names a directory.
4018if test -n "$CPP" && test -d "$CPP"; then
4019  CPP=
4020fi
4021if test -z "$CPP"; then
4022  if ${ac_cv_prog_CPP+:} false; then :
4023  $as_echo_n "(cached) " >&6
4024else
4025      # Double quotes because CPP needs to be expanded
4026    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4027    do
4028      ac_preproc_ok=false
4029for ac_c_preproc_warn_flag in '' yes
4030do
4031  # Use a header file that comes with gcc, so configuring glibc
4032  # with a fresh cross-compiler works.
4033  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4034  # <limits.h> exists even on freestanding compilers.
4035  # On the NeXT, cc -E runs the code through the compiler's parser,
4036  # not just through cpp. "Syntax error" is here to catch this case.
4037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038/* end confdefs.h.  */
4039#ifdef __STDC__
4040# include <limits.h>
4041#else
4042# include <assert.h>
4043#endif
4044		     Syntax error
4045_ACEOF
4046if ac_fn_c_try_cpp "$LINENO"; then :
4047
4048else
4049  # Broken: fails on valid input.
4050continue
4051fi
4052rm -f conftest.err conftest.i conftest.$ac_ext
4053
4054  # OK, works on sane cases.  Now check whether nonexistent headers
4055  # can be detected and how.
4056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057/* end confdefs.h.  */
4058#include <ac_nonexistent.h>
4059_ACEOF
4060if ac_fn_c_try_cpp "$LINENO"; then :
4061  # Broken: success on invalid input.
4062continue
4063else
4064  # Passes both tests.
4065ac_preproc_ok=:
4066break
4067fi
4068rm -f conftest.err conftest.i conftest.$ac_ext
4069
4070done
4071# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4072rm -f conftest.i conftest.err conftest.$ac_ext
4073if $ac_preproc_ok; then :
4074  break
4075fi
4076
4077    done
4078    ac_cv_prog_CPP=$CPP
4079
4080fi
4081  CPP=$ac_cv_prog_CPP
4082else
4083  ac_cv_prog_CPP=$CPP
4084fi
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4086$as_echo "$CPP" >&6; }
4087ac_preproc_ok=false
4088for ac_c_preproc_warn_flag in '' yes
4089do
4090  # Use a header file that comes with gcc, so configuring glibc
4091  # with a fresh cross-compiler works.
4092  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4093  # <limits.h> exists even on freestanding compilers.
4094  # On the NeXT, cc -E runs the code through the compiler's parser,
4095  # not just through cpp. "Syntax error" is here to catch this case.
4096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097/* end confdefs.h.  */
4098#ifdef __STDC__
4099# include <limits.h>
4100#else
4101# include <assert.h>
4102#endif
4103		     Syntax error
4104_ACEOF
4105if ac_fn_c_try_cpp "$LINENO"; then :
4106
4107else
4108  # Broken: fails on valid input.
4109continue
4110fi
4111rm -f conftest.err conftest.i conftest.$ac_ext
4112
4113  # OK, works on sane cases.  Now check whether nonexistent headers
4114  # can be detected and how.
4115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116/* end confdefs.h.  */
4117#include <ac_nonexistent.h>
4118_ACEOF
4119if ac_fn_c_try_cpp "$LINENO"; then :
4120  # Broken: success on invalid input.
4121continue
4122else
4123  # Passes both tests.
4124ac_preproc_ok=:
4125break
4126fi
4127rm -f conftest.err conftest.i conftest.$ac_ext
4128
4129done
4130# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4131rm -f conftest.i conftest.err conftest.$ac_ext
4132if $ac_preproc_ok; then :
4133
4134else
4135  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4137as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4138See \`config.log' for more details" "$LINENO" 5; }
4139fi
4140
4141ac_ext=c
4142ac_cpp='$CPP $CPPFLAGS'
4143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145ac_compiler_gnu=$ac_cv_c_compiler_gnu
4146
4147
4148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4149$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4150if ${ac_cv_path_GREP+:} false; then :
4151  $as_echo_n "(cached) " >&6
4152else
4153  if test -z "$GREP"; then
4154  ac_path_GREP_found=false
4155  # Loop through the user's path and test for each of PROGNAME-LIST
4156  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4158do
4159  IFS=$as_save_IFS
4160  test -z "$as_dir" && as_dir=.
4161    for ac_prog in grep ggrep; do
4162    for ac_exec_ext in '' $ac_executable_extensions; do
4163      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4164      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4165# Check for GNU ac_path_GREP and select it if it is found.
4166  # Check for GNU $ac_path_GREP
4167case `"$ac_path_GREP" --version 2>&1` in
4168*GNU*)
4169  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4170*)
4171  ac_count=0
4172  $as_echo_n 0123456789 >"conftest.in"
4173  while :
4174  do
4175    cat "conftest.in" "conftest.in" >"conftest.tmp"
4176    mv "conftest.tmp" "conftest.in"
4177    cp "conftest.in" "conftest.nl"
4178    $as_echo 'GREP' >> "conftest.nl"
4179    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4180    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4181    as_fn_arith $ac_count + 1 && ac_count=$as_val
4182    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4183      # Best one so far, save it but keep looking for a better one
4184      ac_cv_path_GREP="$ac_path_GREP"
4185      ac_path_GREP_max=$ac_count
4186    fi
4187    # 10*(2^10) chars as input seems more than enough
4188    test $ac_count -gt 10 && break
4189  done
4190  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4191esac
4192
4193      $ac_path_GREP_found && break 3
4194    done
4195  done
4196  done
4197IFS=$as_save_IFS
4198  if test -z "$ac_cv_path_GREP"; then
4199    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4200  fi
4201else
4202  ac_cv_path_GREP=$GREP
4203fi
4204
4205fi
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4207$as_echo "$ac_cv_path_GREP" >&6; }
4208 GREP="$ac_cv_path_GREP"
4209
4210
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4212$as_echo_n "checking for egrep... " >&6; }
4213if ${ac_cv_path_EGREP+:} false; then :
4214  $as_echo_n "(cached) " >&6
4215else
4216  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4217   then ac_cv_path_EGREP="$GREP -E"
4218   else
4219     if test -z "$EGREP"; then
4220  ac_path_EGREP_found=false
4221  # Loop through the user's path and test for each of PROGNAME-LIST
4222  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4224do
4225  IFS=$as_save_IFS
4226  test -z "$as_dir" && as_dir=.
4227    for ac_prog in egrep; do
4228    for ac_exec_ext in '' $ac_executable_extensions; do
4229      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4230      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4231# Check for GNU ac_path_EGREP and select it if it is found.
4232  # Check for GNU $ac_path_EGREP
4233case `"$ac_path_EGREP" --version 2>&1` in
4234*GNU*)
4235  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4236*)
4237  ac_count=0
4238  $as_echo_n 0123456789 >"conftest.in"
4239  while :
4240  do
4241    cat "conftest.in" "conftest.in" >"conftest.tmp"
4242    mv "conftest.tmp" "conftest.in"
4243    cp "conftest.in" "conftest.nl"
4244    $as_echo 'EGREP' >> "conftest.nl"
4245    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4246    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4247    as_fn_arith $ac_count + 1 && ac_count=$as_val
4248    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4249      # Best one so far, save it but keep looking for a better one
4250      ac_cv_path_EGREP="$ac_path_EGREP"
4251      ac_path_EGREP_max=$ac_count
4252    fi
4253    # 10*(2^10) chars as input seems more than enough
4254    test $ac_count -gt 10 && break
4255  done
4256  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4257esac
4258
4259      $ac_path_EGREP_found && break 3
4260    done
4261  done
4262  done
4263IFS=$as_save_IFS
4264  if test -z "$ac_cv_path_EGREP"; then
4265    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4266  fi
4267else
4268  ac_cv_path_EGREP=$EGREP
4269fi
4270
4271   fi
4272fi
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4274$as_echo "$ac_cv_path_EGREP" >&6; }
4275 EGREP="$ac_cv_path_EGREP"
4276
4277
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4279$as_echo_n "checking for ANSI C header files... " >&6; }
4280if ${ac_cv_header_stdc+:} false; then :
4281  $as_echo_n "(cached) " >&6
4282else
4283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284/* end confdefs.h.  */
4285#include <stdlib.h>
4286#include <stdarg.h>
4287#include <string.h>
4288#include <float.h>
4289
4290int
4291main ()
4292{
4293
4294  ;
4295  return 0;
4296}
4297_ACEOF
4298if ac_fn_c_try_compile "$LINENO"; then :
4299  ac_cv_header_stdc=yes
4300else
4301  ac_cv_header_stdc=no
4302fi
4303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304
4305if test $ac_cv_header_stdc = yes; then
4306  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308/* end confdefs.h.  */
4309#include <string.h>
4310
4311_ACEOF
4312if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4313  $EGREP "memchr" >/dev/null 2>&1; then :
4314
4315else
4316  ac_cv_header_stdc=no
4317fi
4318rm -f conftest*
4319
4320fi
4321
4322if test $ac_cv_header_stdc = yes; then
4323  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325/* end confdefs.h.  */
4326#include <stdlib.h>
4327
4328_ACEOF
4329if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4330  $EGREP "free" >/dev/null 2>&1; then :
4331
4332else
4333  ac_cv_header_stdc=no
4334fi
4335rm -f conftest*
4336
4337fi
4338
4339if test $ac_cv_header_stdc = yes; then
4340  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4341  if test "$cross_compiling" = yes; then :
4342  :
4343else
4344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345/* end confdefs.h.  */
4346#include <ctype.h>
4347#include <stdlib.h>
4348#if ((' ' & 0x0FF) == 0x020)
4349# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4350# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4351#else
4352# define ISLOWER(c) \
4353		   (('a' <= (c) && (c) <= 'i') \
4354		     || ('j' <= (c) && (c) <= 'r') \
4355		     || ('s' <= (c) && (c) <= 'z'))
4356# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4357#endif
4358
4359#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4360int
4361main ()
4362{
4363  int i;
4364  for (i = 0; i < 256; i++)
4365    if (XOR (islower (i), ISLOWER (i))
4366	|| toupper (i) != TOUPPER (i))
4367      return 2;
4368  return 0;
4369}
4370_ACEOF
4371if ac_fn_c_try_run "$LINENO"; then :
4372
4373else
4374  ac_cv_header_stdc=no
4375fi
4376rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4377  conftest.$ac_objext conftest.beam conftest.$ac_ext
4378fi
4379
4380fi
4381fi
4382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4383$as_echo "$ac_cv_header_stdc" >&6; }
4384if test $ac_cv_header_stdc = yes; then
4385
4386$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4387
4388fi
4389
4390# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4391for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4392		  inttypes.h stdint.h unistd.h
4393do :
4394  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4395ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4396"
4397if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4398  cat >>confdefs.h <<_ACEOF
4399#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4400_ACEOF
4401
4402fi
4403
4404done
4405
4406
4407
4408
4409
4410
4411ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4412if test "x$ac_cv_have_decl___clang__" = xyes; then :
4413  CLANGCC="yes"
4414else
4415  CLANGCC="no"
4416fi
4417
4418ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4419if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4420  INTELCC="yes"
4421else
4422  INTELCC="no"
4423fi
4424
4425ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4426if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4427  SUNCC="yes"
4428else
4429  SUNCC="no"
4430fi
4431
4432
4433
4434
4435
4436
4437
4438
4439if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4440	if test -n "$ac_tool_prefix"; then
4441  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4442set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4444$as_echo_n "checking for $ac_word... " >&6; }
4445if ${ac_cv_path_PKG_CONFIG+:} false; then :
4446  $as_echo_n "(cached) " >&6
4447else
4448  case $PKG_CONFIG in
4449  [\\/]* | ?:[\\/]*)
4450  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4451  ;;
4452  *)
4453  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454for as_dir in $PATH
4455do
4456  IFS=$as_save_IFS
4457  test -z "$as_dir" && as_dir=.
4458    for ac_exec_ext in '' $ac_executable_extensions; do
4459  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4460    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4461    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4462    break 2
4463  fi
4464done
4465  done
4466IFS=$as_save_IFS
4467
4468  ;;
4469esac
4470fi
4471PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4472if test -n "$PKG_CONFIG"; then
4473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4474$as_echo "$PKG_CONFIG" >&6; }
4475else
4476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4477$as_echo "no" >&6; }
4478fi
4479
4480
4481fi
4482if test -z "$ac_cv_path_PKG_CONFIG"; then
4483  ac_pt_PKG_CONFIG=$PKG_CONFIG
4484  # Extract the first word of "pkg-config", so it can be a program name with args.
4485set dummy pkg-config; ac_word=$2
4486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4487$as_echo_n "checking for $ac_word... " >&6; }
4488if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4489  $as_echo_n "(cached) " >&6
4490else
4491  case $ac_pt_PKG_CONFIG in
4492  [\\/]* | ?:[\\/]*)
4493  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4494  ;;
4495  *)
4496  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497for as_dir in $PATH
4498do
4499  IFS=$as_save_IFS
4500  test -z "$as_dir" && as_dir=.
4501    for ac_exec_ext in '' $ac_executable_extensions; do
4502  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4503    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4504    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4505    break 2
4506  fi
4507done
4508  done
4509IFS=$as_save_IFS
4510
4511  ;;
4512esac
4513fi
4514ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4515if test -n "$ac_pt_PKG_CONFIG"; then
4516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4517$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4518else
4519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4520$as_echo "no" >&6; }
4521fi
4522
4523  if test "x$ac_pt_PKG_CONFIG" = x; then
4524    PKG_CONFIG=""
4525  else
4526    case $cross_compiling:$ac_tool_warned in
4527yes:)
4528{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4530ac_tool_warned=yes ;;
4531esac
4532    PKG_CONFIG=$ac_pt_PKG_CONFIG
4533  fi
4534else
4535  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4536fi
4537
4538fi
4539if test -n "$PKG_CONFIG"; then
4540	_pkg_min_version=0.9.0
4541	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4542$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4543	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4544		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4545$as_echo "yes" >&6; }
4546	else
4547		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4548$as_echo "no" >&6; }
4549		PKG_CONFIG=""
4550	fi
4551fi
4552# Make sure we can run config.sub.
4553$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4554  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4555
4556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4557$as_echo_n "checking build system type... " >&6; }
4558if ${ac_cv_build+:} false; then :
4559  $as_echo_n "(cached) " >&6
4560else
4561  ac_build_alias=$build_alias
4562test "x$ac_build_alias" = x &&
4563  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4564test "x$ac_build_alias" = x &&
4565  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4566ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4567  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4568
4569fi
4570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4571$as_echo "$ac_cv_build" >&6; }
4572case $ac_cv_build in
4573*-*-*) ;;
4574*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4575esac
4576build=$ac_cv_build
4577ac_save_IFS=$IFS; IFS='-'
4578set x $ac_cv_build
4579shift
4580build_cpu=$1
4581build_vendor=$2
4582shift; shift
4583# Remember, the first character of IFS is used to create $*,
4584# except with old shells:
4585build_os=$*
4586IFS=$ac_save_IFS
4587case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4588
4589
4590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4591$as_echo_n "checking host system type... " >&6; }
4592if ${ac_cv_host+:} false; then :
4593  $as_echo_n "(cached) " >&6
4594else
4595  if test "x$host_alias" = x; then
4596  ac_cv_host=$ac_cv_build
4597else
4598  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4599    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4600fi
4601
4602fi
4603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4604$as_echo "$ac_cv_host" >&6; }
4605case $ac_cv_host in
4606*-*-*) ;;
4607*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4608esac
4609host=$ac_cv_host
4610ac_save_IFS=$IFS; IFS='-'
4611set x $ac_cv_host
4612shift
4613host_cpu=$1
4614host_vendor=$2
4615shift; shift
4616# Remember, the first character of IFS is used to create $*,
4617# except with old shells:
4618host_os=$*
4619IFS=$ac_save_IFS
4620case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4621
4622
4623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4624$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4625if ${ac_cv_path_SED+:} false; then :
4626  $as_echo_n "(cached) " >&6
4627else
4628            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4629     for ac_i in 1 2 3 4 5 6 7; do
4630       ac_script="$ac_script$as_nl$ac_script"
4631     done
4632     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4633     { ac_script=; unset ac_script;}
4634     if test -z "$SED"; then
4635  ac_path_SED_found=false
4636  # Loop through the user's path and test for each of PROGNAME-LIST
4637  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638for as_dir in $PATH
4639do
4640  IFS=$as_save_IFS
4641  test -z "$as_dir" && as_dir=.
4642    for ac_prog in sed gsed; do
4643    for ac_exec_ext in '' $ac_executable_extensions; do
4644      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4645      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4646# Check for GNU ac_path_SED and select it if it is found.
4647  # Check for GNU $ac_path_SED
4648case `"$ac_path_SED" --version 2>&1` in
4649*GNU*)
4650  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4651*)
4652  ac_count=0
4653  $as_echo_n 0123456789 >"conftest.in"
4654  while :
4655  do
4656    cat "conftest.in" "conftest.in" >"conftest.tmp"
4657    mv "conftest.tmp" "conftest.in"
4658    cp "conftest.in" "conftest.nl"
4659    $as_echo '' >> "conftest.nl"
4660    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4661    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4662    as_fn_arith $ac_count + 1 && ac_count=$as_val
4663    if test $ac_count -gt ${ac_path_SED_max-0}; then
4664      # Best one so far, save it but keep looking for a better one
4665      ac_cv_path_SED="$ac_path_SED"
4666      ac_path_SED_max=$ac_count
4667    fi
4668    # 10*(2^10) chars as input seems more than enough
4669    test $ac_count -gt 10 && break
4670  done
4671  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4672esac
4673
4674      $ac_path_SED_found && break 3
4675    done
4676  done
4677  done
4678IFS=$as_save_IFS
4679  if test -z "$ac_cv_path_SED"; then
4680    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4681  fi
4682else
4683  ac_cv_path_SED=$SED
4684fi
4685
4686fi
4687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4688$as_echo "$ac_cv_path_SED" >&6; }
4689 SED="$ac_cv_path_SED"
4690  rm -f conftest.sed
4691
4692
4693
4694
4695
4696
4697# Check whether --enable-selective-werror was given.
4698if test "${enable_selective_werror+set}" = set; then :
4699  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4700else
4701  SELECTIVE_WERROR=yes
4702fi
4703
4704
4705
4706
4707
4708# -v is too short to test reliably with XORG_TESTSET_CFLAG
4709if test "x$SUNCC" = "xyes"; then
4710    BASE_CFLAGS="-v"
4711else
4712    BASE_CFLAGS=""
4713fi
4714
4715# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729xorg_testset_save_CFLAGS="$CFLAGS"
4730
4731if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4732	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4733	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4734$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4735if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4736  $as_echo_n "(cached) " >&6
4737else
4738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739/* end confdefs.h.  */
4740int i;
4741_ACEOF
4742if ac_fn_c_try_compile "$LINENO"; then :
4743  xorg_cv_cc_flag_unknown_warning_option=yes
4744else
4745  xorg_cv_cc_flag_unknown_warning_option=no
4746fi
4747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748fi
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4750$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4751	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4752	CFLAGS="$xorg_testset_save_CFLAGS"
4753fi
4754
4755if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4756	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4757		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4758	fi
4759	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4760	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4761$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4762if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4763  $as_echo_n "(cached) " >&6
4764else
4765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4766/* end confdefs.h.  */
4767int i;
4768_ACEOF
4769if ac_fn_c_try_compile "$LINENO"; then :
4770  xorg_cv_cc_flag_unused_command_line_argument=yes
4771else
4772  xorg_cv_cc_flag_unused_command_line_argument=no
4773fi
4774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4775fi
4776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4777$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4778	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4779	CFLAGS="$xorg_testset_save_CFLAGS"
4780fi
4781
4782found="no"
4783
4784	if test $found = "no" ; then
4785		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4786			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4787		fi
4788
4789		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4790			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4791		fi
4792
4793		CFLAGS="$CFLAGS -Wall"
4794
4795		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4796$as_echo_n "checking if $CC supports -Wall... " >&6; }
4797		cacheid=xorg_cv_cc_flag__Wall
4798		if eval \${$cacheid+:} false; then :
4799  $as_echo_n "(cached) " >&6
4800else
4801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802/* end confdefs.h.  */
4803int i;
4804int
4805main ()
4806{
4807
4808  ;
4809  return 0;
4810}
4811_ACEOF
4812if ac_fn_c_try_link "$LINENO"; then :
4813  eval $cacheid=yes
4814else
4815  eval $cacheid=no
4816fi
4817rm -f core conftest.err conftest.$ac_objext \
4818    conftest$ac_exeext conftest.$ac_ext
4819fi
4820
4821
4822		CFLAGS="$xorg_testset_save_CFLAGS"
4823
4824		eval supported=\$$cacheid
4825		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4826$as_echo "$supported" >&6; }
4827		if test "$supported" = "yes" ; then
4828			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4829			found="yes"
4830		fi
4831	fi
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847xorg_testset_save_CFLAGS="$CFLAGS"
4848
4849if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4850	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4851	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4852$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4853if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4854  $as_echo_n "(cached) " >&6
4855else
4856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4857/* end confdefs.h.  */
4858int i;
4859_ACEOF
4860if ac_fn_c_try_compile "$LINENO"; then :
4861  xorg_cv_cc_flag_unknown_warning_option=yes
4862else
4863  xorg_cv_cc_flag_unknown_warning_option=no
4864fi
4865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4866fi
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4868$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4869	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4870	CFLAGS="$xorg_testset_save_CFLAGS"
4871fi
4872
4873if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4874	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4875		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4876	fi
4877	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4878	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4879$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4880if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4881  $as_echo_n "(cached) " >&6
4882else
4883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884/* end confdefs.h.  */
4885int i;
4886_ACEOF
4887if ac_fn_c_try_compile "$LINENO"; then :
4888  xorg_cv_cc_flag_unused_command_line_argument=yes
4889else
4890  xorg_cv_cc_flag_unused_command_line_argument=no
4891fi
4892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893fi
4894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4895$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4896	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4897	CFLAGS="$xorg_testset_save_CFLAGS"
4898fi
4899
4900found="no"
4901
4902	if test $found = "no" ; then
4903		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4904			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4905		fi
4906
4907		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4908			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4909		fi
4910
4911		CFLAGS="$CFLAGS -Wpointer-arith"
4912
4913		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4914$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4915		cacheid=xorg_cv_cc_flag__Wpointer_arith
4916		if eval \${$cacheid+:} false; then :
4917  $as_echo_n "(cached) " >&6
4918else
4919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920/* end confdefs.h.  */
4921int i;
4922int
4923main ()
4924{
4925
4926  ;
4927  return 0;
4928}
4929_ACEOF
4930if ac_fn_c_try_link "$LINENO"; then :
4931  eval $cacheid=yes
4932else
4933  eval $cacheid=no
4934fi
4935rm -f core conftest.err conftest.$ac_objext \
4936    conftest$ac_exeext conftest.$ac_ext
4937fi
4938
4939
4940		CFLAGS="$xorg_testset_save_CFLAGS"
4941
4942		eval supported=\$$cacheid
4943		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4944$as_echo "$supported" >&6; }
4945		if test "$supported" = "yes" ; then
4946			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4947			found="yes"
4948		fi
4949	fi
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965xorg_testset_save_CFLAGS="$CFLAGS"
4966
4967if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4968	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4969	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4970$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4971if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4972  $as_echo_n "(cached) " >&6
4973else
4974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975/* end confdefs.h.  */
4976int i;
4977_ACEOF
4978if ac_fn_c_try_compile "$LINENO"; then :
4979  xorg_cv_cc_flag_unknown_warning_option=yes
4980else
4981  xorg_cv_cc_flag_unknown_warning_option=no
4982fi
4983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4984fi
4985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4986$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4987	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4988	CFLAGS="$xorg_testset_save_CFLAGS"
4989fi
4990
4991if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4992	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4993		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4994	fi
4995	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4996	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4997$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4998if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4999  $as_echo_n "(cached) " >&6
5000else
5001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002/* end confdefs.h.  */
5003int i;
5004_ACEOF
5005if ac_fn_c_try_compile "$LINENO"; then :
5006  xorg_cv_cc_flag_unused_command_line_argument=yes
5007else
5008  xorg_cv_cc_flag_unused_command_line_argument=no
5009fi
5010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5011fi
5012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5013$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5014	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5015	CFLAGS="$xorg_testset_save_CFLAGS"
5016fi
5017
5018found="no"
5019
5020	if test $found = "no" ; then
5021		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5022			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5023		fi
5024
5025		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5026			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5027		fi
5028
5029		CFLAGS="$CFLAGS -Wmissing-declarations"
5030
5031		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5032$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5033		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5034		if eval \${$cacheid+:} false; then :
5035  $as_echo_n "(cached) " >&6
5036else
5037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038/* end confdefs.h.  */
5039int i;
5040int
5041main ()
5042{
5043
5044  ;
5045  return 0;
5046}
5047_ACEOF
5048if ac_fn_c_try_link "$LINENO"; then :
5049  eval $cacheid=yes
5050else
5051  eval $cacheid=no
5052fi
5053rm -f core conftest.err conftest.$ac_objext \
5054    conftest$ac_exeext conftest.$ac_ext
5055fi
5056
5057
5058		CFLAGS="$xorg_testset_save_CFLAGS"
5059
5060		eval supported=\$$cacheid
5061		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5062$as_echo "$supported" >&6; }
5063		if test "$supported" = "yes" ; then
5064			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5065			found="yes"
5066		fi
5067	fi
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083xorg_testset_save_CFLAGS="$CFLAGS"
5084
5085if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5086	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5087	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5088$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5089if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5090  $as_echo_n "(cached) " >&6
5091else
5092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093/* end confdefs.h.  */
5094int i;
5095_ACEOF
5096if ac_fn_c_try_compile "$LINENO"; then :
5097  xorg_cv_cc_flag_unknown_warning_option=yes
5098else
5099  xorg_cv_cc_flag_unknown_warning_option=no
5100fi
5101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5102fi
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5104$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5105	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5106	CFLAGS="$xorg_testset_save_CFLAGS"
5107fi
5108
5109if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5110	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5111		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5112	fi
5113	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5114	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5115$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5116if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5117  $as_echo_n "(cached) " >&6
5118else
5119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120/* end confdefs.h.  */
5121int i;
5122_ACEOF
5123if ac_fn_c_try_compile "$LINENO"; then :
5124  xorg_cv_cc_flag_unused_command_line_argument=yes
5125else
5126  xorg_cv_cc_flag_unused_command_line_argument=no
5127fi
5128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5129fi
5130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5131$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5132	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5133	CFLAGS="$xorg_testset_save_CFLAGS"
5134fi
5135
5136found="no"
5137
5138	if test $found = "no" ; then
5139		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5140			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5141		fi
5142
5143		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5144			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5145		fi
5146
5147		CFLAGS="$CFLAGS -Wformat=2"
5148
5149		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5150$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5151		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5152		if eval \${$cacheid+:} false; then :
5153  $as_echo_n "(cached) " >&6
5154else
5155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156/* end confdefs.h.  */
5157int i;
5158int
5159main ()
5160{
5161
5162  ;
5163  return 0;
5164}
5165_ACEOF
5166if ac_fn_c_try_link "$LINENO"; then :
5167  eval $cacheid=yes
5168else
5169  eval $cacheid=no
5170fi
5171rm -f core conftest.err conftest.$ac_objext \
5172    conftest$ac_exeext conftest.$ac_ext
5173fi
5174
5175
5176		CFLAGS="$xorg_testset_save_CFLAGS"
5177
5178		eval supported=\$$cacheid
5179		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5180$as_echo "$supported" >&6; }
5181		if test "$supported" = "yes" ; then
5182			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5183			found="yes"
5184		fi
5185	fi
5186
5187	if test $found = "no" ; then
5188		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5189			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5190		fi
5191
5192		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5193			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5194		fi
5195
5196		CFLAGS="$CFLAGS -Wformat"
5197
5198		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5199$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5200		cacheid=xorg_cv_cc_flag__Wformat
5201		if eval \${$cacheid+:} false; then :
5202  $as_echo_n "(cached) " >&6
5203else
5204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205/* end confdefs.h.  */
5206int i;
5207int
5208main ()
5209{
5210
5211  ;
5212  return 0;
5213}
5214_ACEOF
5215if ac_fn_c_try_link "$LINENO"; then :
5216  eval $cacheid=yes
5217else
5218  eval $cacheid=no
5219fi
5220rm -f core conftest.err conftest.$ac_objext \
5221    conftest$ac_exeext conftest.$ac_ext
5222fi
5223
5224
5225		CFLAGS="$xorg_testset_save_CFLAGS"
5226
5227		eval supported=\$$cacheid
5228		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5229$as_echo "$supported" >&6; }
5230		if test "$supported" = "yes" ; then
5231			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5232			found="yes"
5233		fi
5234	fi
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252xorg_testset_save_CFLAGS="$CFLAGS"
5253
5254if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5255	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5256	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5257$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5258if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5259  $as_echo_n "(cached) " >&6
5260else
5261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262/* end confdefs.h.  */
5263int i;
5264_ACEOF
5265if ac_fn_c_try_compile "$LINENO"; then :
5266  xorg_cv_cc_flag_unknown_warning_option=yes
5267else
5268  xorg_cv_cc_flag_unknown_warning_option=no
5269fi
5270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5271fi
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5273$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5274	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5275	CFLAGS="$xorg_testset_save_CFLAGS"
5276fi
5277
5278if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5279	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5280		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5281	fi
5282	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5283	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5284$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5285if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5286  $as_echo_n "(cached) " >&6
5287else
5288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289/* end confdefs.h.  */
5290int i;
5291_ACEOF
5292if ac_fn_c_try_compile "$LINENO"; then :
5293  xorg_cv_cc_flag_unused_command_line_argument=yes
5294else
5295  xorg_cv_cc_flag_unused_command_line_argument=no
5296fi
5297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5298fi
5299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5300$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5301	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5302	CFLAGS="$xorg_testset_save_CFLAGS"
5303fi
5304
5305found="no"
5306
5307	if test $found = "no" ; then
5308		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5309			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5310		fi
5311
5312		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5313			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5314		fi
5315
5316		CFLAGS="$CFLAGS -Wstrict-prototypes"
5317
5318		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5319$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5320		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5321		if eval \${$cacheid+:} false; then :
5322  $as_echo_n "(cached) " >&6
5323else
5324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325/* end confdefs.h.  */
5326int i;
5327int
5328main ()
5329{
5330
5331  ;
5332  return 0;
5333}
5334_ACEOF
5335if ac_fn_c_try_link "$LINENO"; then :
5336  eval $cacheid=yes
5337else
5338  eval $cacheid=no
5339fi
5340rm -f core conftest.err conftest.$ac_objext \
5341    conftest$ac_exeext conftest.$ac_ext
5342fi
5343
5344
5345		CFLAGS="$xorg_testset_save_CFLAGS"
5346
5347		eval supported=\$$cacheid
5348		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5349$as_echo "$supported" >&6; }
5350		if test "$supported" = "yes" ; then
5351			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5352			found="yes"
5353		fi
5354	fi
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370xorg_testset_save_CFLAGS="$CFLAGS"
5371
5372if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5373	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5374	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5375$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5376if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5377  $as_echo_n "(cached) " >&6
5378else
5379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380/* end confdefs.h.  */
5381int i;
5382_ACEOF
5383if ac_fn_c_try_compile "$LINENO"; then :
5384  xorg_cv_cc_flag_unknown_warning_option=yes
5385else
5386  xorg_cv_cc_flag_unknown_warning_option=no
5387fi
5388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389fi
5390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5391$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5392	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5393	CFLAGS="$xorg_testset_save_CFLAGS"
5394fi
5395
5396if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5397	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5398		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5399	fi
5400	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5401	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5402$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5403if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5404  $as_echo_n "(cached) " >&6
5405else
5406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407/* end confdefs.h.  */
5408int i;
5409_ACEOF
5410if ac_fn_c_try_compile "$LINENO"; then :
5411  xorg_cv_cc_flag_unused_command_line_argument=yes
5412else
5413  xorg_cv_cc_flag_unused_command_line_argument=no
5414fi
5415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5416fi
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5418$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5419	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5420	CFLAGS="$xorg_testset_save_CFLAGS"
5421fi
5422
5423found="no"
5424
5425	if test $found = "no" ; then
5426		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5427			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5428		fi
5429
5430		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5431			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5432		fi
5433
5434		CFLAGS="$CFLAGS -Wmissing-prototypes"
5435
5436		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5437$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5438		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5439		if eval \${$cacheid+:} false; then :
5440  $as_echo_n "(cached) " >&6
5441else
5442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443/* end confdefs.h.  */
5444int i;
5445int
5446main ()
5447{
5448
5449  ;
5450  return 0;
5451}
5452_ACEOF
5453if ac_fn_c_try_link "$LINENO"; then :
5454  eval $cacheid=yes
5455else
5456  eval $cacheid=no
5457fi
5458rm -f core conftest.err conftest.$ac_objext \
5459    conftest$ac_exeext conftest.$ac_ext
5460fi
5461
5462
5463		CFLAGS="$xorg_testset_save_CFLAGS"
5464
5465		eval supported=\$$cacheid
5466		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5467$as_echo "$supported" >&6; }
5468		if test "$supported" = "yes" ; then
5469			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5470			found="yes"
5471		fi
5472	fi
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488xorg_testset_save_CFLAGS="$CFLAGS"
5489
5490if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5491	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5492	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5493$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5494if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5495  $as_echo_n "(cached) " >&6
5496else
5497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498/* end confdefs.h.  */
5499int i;
5500_ACEOF
5501if ac_fn_c_try_compile "$LINENO"; then :
5502  xorg_cv_cc_flag_unknown_warning_option=yes
5503else
5504  xorg_cv_cc_flag_unknown_warning_option=no
5505fi
5506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5507fi
5508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5509$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5510	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5511	CFLAGS="$xorg_testset_save_CFLAGS"
5512fi
5513
5514if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5515	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5516		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5517	fi
5518	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5519	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5520$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5521if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5522  $as_echo_n "(cached) " >&6
5523else
5524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525/* end confdefs.h.  */
5526int i;
5527_ACEOF
5528if ac_fn_c_try_compile "$LINENO"; then :
5529  xorg_cv_cc_flag_unused_command_line_argument=yes
5530else
5531  xorg_cv_cc_flag_unused_command_line_argument=no
5532fi
5533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534fi
5535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5536$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5537	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5538	CFLAGS="$xorg_testset_save_CFLAGS"
5539fi
5540
5541found="no"
5542
5543	if test $found = "no" ; then
5544		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5545			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5546		fi
5547
5548		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5549			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5550		fi
5551
5552		CFLAGS="$CFLAGS -Wnested-externs"
5553
5554		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5555$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5556		cacheid=xorg_cv_cc_flag__Wnested_externs
5557		if eval \${$cacheid+:} false; then :
5558  $as_echo_n "(cached) " >&6
5559else
5560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561/* end confdefs.h.  */
5562int i;
5563int
5564main ()
5565{
5566
5567  ;
5568  return 0;
5569}
5570_ACEOF
5571if ac_fn_c_try_link "$LINENO"; then :
5572  eval $cacheid=yes
5573else
5574  eval $cacheid=no
5575fi
5576rm -f core conftest.err conftest.$ac_objext \
5577    conftest$ac_exeext conftest.$ac_ext
5578fi
5579
5580
5581		CFLAGS="$xorg_testset_save_CFLAGS"
5582
5583		eval supported=\$$cacheid
5584		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5585$as_echo "$supported" >&6; }
5586		if test "$supported" = "yes" ; then
5587			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5588			found="yes"
5589		fi
5590	fi
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606xorg_testset_save_CFLAGS="$CFLAGS"
5607
5608if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5609	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5610	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5611$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5612if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5613  $as_echo_n "(cached) " >&6
5614else
5615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616/* end confdefs.h.  */
5617int i;
5618_ACEOF
5619if ac_fn_c_try_compile "$LINENO"; then :
5620  xorg_cv_cc_flag_unknown_warning_option=yes
5621else
5622  xorg_cv_cc_flag_unknown_warning_option=no
5623fi
5624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5625fi
5626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5627$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5628	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5629	CFLAGS="$xorg_testset_save_CFLAGS"
5630fi
5631
5632if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5633	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5634		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5635	fi
5636	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5637	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5638$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5639if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5640  $as_echo_n "(cached) " >&6
5641else
5642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643/* end confdefs.h.  */
5644int i;
5645_ACEOF
5646if ac_fn_c_try_compile "$LINENO"; then :
5647  xorg_cv_cc_flag_unused_command_line_argument=yes
5648else
5649  xorg_cv_cc_flag_unused_command_line_argument=no
5650fi
5651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652fi
5653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5654$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5655	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5656	CFLAGS="$xorg_testset_save_CFLAGS"
5657fi
5658
5659found="no"
5660
5661	if test $found = "no" ; then
5662		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5663			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5664		fi
5665
5666		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5667			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5668		fi
5669
5670		CFLAGS="$CFLAGS -Wbad-function-cast"
5671
5672		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5673$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5674		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5675		if eval \${$cacheid+:} false; then :
5676  $as_echo_n "(cached) " >&6
5677else
5678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5679/* end confdefs.h.  */
5680int i;
5681int
5682main ()
5683{
5684
5685  ;
5686  return 0;
5687}
5688_ACEOF
5689if ac_fn_c_try_link "$LINENO"; then :
5690  eval $cacheid=yes
5691else
5692  eval $cacheid=no
5693fi
5694rm -f core conftest.err conftest.$ac_objext \
5695    conftest$ac_exeext conftest.$ac_ext
5696fi
5697
5698
5699		CFLAGS="$xorg_testset_save_CFLAGS"
5700
5701		eval supported=\$$cacheid
5702		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5703$as_echo "$supported" >&6; }
5704		if test "$supported" = "yes" ; then
5705			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5706			found="yes"
5707		fi
5708	fi
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724xorg_testset_save_CFLAGS="$CFLAGS"
5725
5726if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5727	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5728	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5729$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5730if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5731  $as_echo_n "(cached) " >&6
5732else
5733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734/* end confdefs.h.  */
5735int i;
5736_ACEOF
5737if ac_fn_c_try_compile "$LINENO"; then :
5738  xorg_cv_cc_flag_unknown_warning_option=yes
5739else
5740  xorg_cv_cc_flag_unknown_warning_option=no
5741fi
5742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743fi
5744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5745$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5746	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5747	CFLAGS="$xorg_testset_save_CFLAGS"
5748fi
5749
5750if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5751	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5752		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5753	fi
5754	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5755	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5756$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5757if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5758  $as_echo_n "(cached) " >&6
5759else
5760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761/* end confdefs.h.  */
5762int i;
5763_ACEOF
5764if ac_fn_c_try_compile "$LINENO"; then :
5765  xorg_cv_cc_flag_unused_command_line_argument=yes
5766else
5767  xorg_cv_cc_flag_unused_command_line_argument=no
5768fi
5769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5770fi
5771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5772$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5773	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5774	CFLAGS="$xorg_testset_save_CFLAGS"
5775fi
5776
5777found="no"
5778
5779	if test $found = "no" ; then
5780		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5781			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5782		fi
5783
5784		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5785			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5786		fi
5787
5788		CFLAGS="$CFLAGS -Wold-style-definition"
5789
5790		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5791$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5792		cacheid=xorg_cv_cc_flag__Wold_style_definition
5793		if eval \${$cacheid+:} false; then :
5794  $as_echo_n "(cached) " >&6
5795else
5796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797/* end confdefs.h.  */
5798int i;
5799int
5800main ()
5801{
5802
5803  ;
5804  return 0;
5805}
5806_ACEOF
5807if ac_fn_c_try_link "$LINENO"; then :
5808  eval $cacheid=yes
5809else
5810  eval $cacheid=no
5811fi
5812rm -f core conftest.err conftest.$ac_objext \
5813    conftest$ac_exeext conftest.$ac_ext
5814fi
5815
5816
5817		CFLAGS="$xorg_testset_save_CFLAGS"
5818
5819		eval supported=\$$cacheid
5820		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5821$as_echo "$supported" >&6; }
5822		if test "$supported" = "yes" ; then
5823			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5824			found="yes"
5825		fi
5826	fi
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842xorg_testset_save_CFLAGS="$CFLAGS"
5843
5844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5845	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5846	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5847$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5848if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5849  $as_echo_n "(cached) " >&6
5850else
5851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852/* end confdefs.h.  */
5853int i;
5854_ACEOF
5855if ac_fn_c_try_compile "$LINENO"; then :
5856  xorg_cv_cc_flag_unknown_warning_option=yes
5857else
5858  xorg_cv_cc_flag_unknown_warning_option=no
5859fi
5860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861fi
5862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5863$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5864	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5865	CFLAGS="$xorg_testset_save_CFLAGS"
5866fi
5867
5868if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5869	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5870		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5871	fi
5872	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5873	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5874$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5875if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5876  $as_echo_n "(cached) " >&6
5877else
5878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5879/* end confdefs.h.  */
5880int i;
5881_ACEOF
5882if ac_fn_c_try_compile "$LINENO"; then :
5883  xorg_cv_cc_flag_unused_command_line_argument=yes
5884else
5885  xorg_cv_cc_flag_unused_command_line_argument=no
5886fi
5887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5888fi
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5890$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5891	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5892	CFLAGS="$xorg_testset_save_CFLAGS"
5893fi
5894
5895found="no"
5896
5897	if test $found = "no" ; then
5898		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5899			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5900		fi
5901
5902		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5903			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5904		fi
5905
5906		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5907
5908		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5909$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5910		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5911		if eval \${$cacheid+:} false; then :
5912  $as_echo_n "(cached) " >&6
5913else
5914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915/* end confdefs.h.  */
5916int i;
5917int
5918main ()
5919{
5920
5921  ;
5922  return 0;
5923}
5924_ACEOF
5925if ac_fn_c_try_link "$LINENO"; then :
5926  eval $cacheid=yes
5927else
5928  eval $cacheid=no
5929fi
5930rm -f core conftest.err conftest.$ac_objext \
5931    conftest$ac_exeext conftest.$ac_ext
5932fi
5933
5934
5935		CFLAGS="$xorg_testset_save_CFLAGS"
5936
5937		eval supported=\$$cacheid
5938		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5939$as_echo "$supported" >&6; }
5940		if test "$supported" = "yes" ; then
5941			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5942			found="yes"
5943		fi
5944	fi
5945
5946
5947
5948
5949
5950# This chunk adds additional warnings that could catch undesired effects.
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964xorg_testset_save_CFLAGS="$CFLAGS"
5965
5966if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5967	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5968	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5969$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5970if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5971  $as_echo_n "(cached) " >&6
5972else
5973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974/* end confdefs.h.  */
5975int i;
5976_ACEOF
5977if ac_fn_c_try_compile "$LINENO"; then :
5978  xorg_cv_cc_flag_unknown_warning_option=yes
5979else
5980  xorg_cv_cc_flag_unknown_warning_option=no
5981fi
5982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5983fi
5984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5985$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5986	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5987	CFLAGS="$xorg_testset_save_CFLAGS"
5988fi
5989
5990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5991	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5992		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5993	fi
5994	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5995	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5996$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5997if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5998  $as_echo_n "(cached) " >&6
5999else
6000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6001/* end confdefs.h.  */
6002int i;
6003_ACEOF
6004if ac_fn_c_try_compile "$LINENO"; then :
6005  xorg_cv_cc_flag_unused_command_line_argument=yes
6006else
6007  xorg_cv_cc_flag_unused_command_line_argument=no
6008fi
6009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010fi
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6012$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6013	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6014	CFLAGS="$xorg_testset_save_CFLAGS"
6015fi
6016
6017found="no"
6018
6019	if test $found = "no" ; then
6020		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6021			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6022		fi
6023
6024		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6025			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6026		fi
6027
6028		CFLAGS="$CFLAGS -Wunused"
6029
6030		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6031$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6032		cacheid=xorg_cv_cc_flag__Wunused
6033		if eval \${$cacheid+:} false; then :
6034  $as_echo_n "(cached) " >&6
6035else
6036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037/* end confdefs.h.  */
6038int i;
6039int
6040main ()
6041{
6042
6043  ;
6044  return 0;
6045}
6046_ACEOF
6047if ac_fn_c_try_link "$LINENO"; then :
6048  eval $cacheid=yes
6049else
6050  eval $cacheid=no
6051fi
6052rm -f core conftest.err conftest.$ac_objext \
6053    conftest$ac_exeext conftest.$ac_ext
6054fi
6055
6056
6057		CFLAGS="$xorg_testset_save_CFLAGS"
6058
6059		eval supported=\$$cacheid
6060		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6061$as_echo "$supported" >&6; }
6062		if test "$supported" = "yes" ; then
6063			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6064			found="yes"
6065		fi
6066	fi
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082xorg_testset_save_CFLAGS="$CFLAGS"
6083
6084if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6085	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6086	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6087$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6088if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6089  $as_echo_n "(cached) " >&6
6090else
6091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092/* end confdefs.h.  */
6093int i;
6094_ACEOF
6095if ac_fn_c_try_compile "$LINENO"; then :
6096  xorg_cv_cc_flag_unknown_warning_option=yes
6097else
6098  xorg_cv_cc_flag_unknown_warning_option=no
6099fi
6100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6101fi
6102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6103$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6104	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6105	CFLAGS="$xorg_testset_save_CFLAGS"
6106fi
6107
6108if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6109	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6110		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6111	fi
6112	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6113	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6114$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6115if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6116  $as_echo_n "(cached) " >&6
6117else
6118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6119/* end confdefs.h.  */
6120int i;
6121_ACEOF
6122if ac_fn_c_try_compile "$LINENO"; then :
6123  xorg_cv_cc_flag_unused_command_line_argument=yes
6124else
6125  xorg_cv_cc_flag_unused_command_line_argument=no
6126fi
6127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6128fi
6129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6130$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6131	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6132	CFLAGS="$xorg_testset_save_CFLAGS"
6133fi
6134
6135found="no"
6136
6137	if test $found = "no" ; then
6138		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6139			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6140		fi
6141
6142		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6143			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6144		fi
6145
6146		CFLAGS="$CFLAGS -Wuninitialized"
6147
6148		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6149$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6150		cacheid=xorg_cv_cc_flag__Wuninitialized
6151		if eval \${$cacheid+:} false; then :
6152  $as_echo_n "(cached) " >&6
6153else
6154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155/* end confdefs.h.  */
6156int i;
6157int
6158main ()
6159{
6160
6161  ;
6162  return 0;
6163}
6164_ACEOF
6165if ac_fn_c_try_link "$LINENO"; then :
6166  eval $cacheid=yes
6167else
6168  eval $cacheid=no
6169fi
6170rm -f core conftest.err conftest.$ac_objext \
6171    conftest$ac_exeext conftest.$ac_ext
6172fi
6173
6174
6175		CFLAGS="$xorg_testset_save_CFLAGS"
6176
6177		eval supported=\$$cacheid
6178		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6179$as_echo "$supported" >&6; }
6180		if test "$supported" = "yes" ; then
6181			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6182			found="yes"
6183		fi
6184	fi
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200xorg_testset_save_CFLAGS="$CFLAGS"
6201
6202if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6203	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6204	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6205$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6206if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6207  $as_echo_n "(cached) " >&6
6208else
6209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210/* end confdefs.h.  */
6211int i;
6212_ACEOF
6213if ac_fn_c_try_compile "$LINENO"; then :
6214  xorg_cv_cc_flag_unknown_warning_option=yes
6215else
6216  xorg_cv_cc_flag_unknown_warning_option=no
6217fi
6218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6219fi
6220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6221$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6222	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6223	CFLAGS="$xorg_testset_save_CFLAGS"
6224fi
6225
6226if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6227	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6228		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6229	fi
6230	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6231	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6232$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6233if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6234  $as_echo_n "(cached) " >&6
6235else
6236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237/* end confdefs.h.  */
6238int i;
6239_ACEOF
6240if ac_fn_c_try_compile "$LINENO"; then :
6241  xorg_cv_cc_flag_unused_command_line_argument=yes
6242else
6243  xorg_cv_cc_flag_unused_command_line_argument=no
6244fi
6245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6246fi
6247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6248$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6249	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6250	CFLAGS="$xorg_testset_save_CFLAGS"
6251fi
6252
6253found="no"
6254
6255	if test $found = "no" ; then
6256		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6257			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6258		fi
6259
6260		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6261			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6262		fi
6263
6264		CFLAGS="$CFLAGS -Wshadow"
6265
6266		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6267$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6268		cacheid=xorg_cv_cc_flag__Wshadow
6269		if eval \${$cacheid+:} false; then :
6270  $as_echo_n "(cached) " >&6
6271else
6272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273/* end confdefs.h.  */
6274int i;
6275int
6276main ()
6277{
6278
6279  ;
6280  return 0;
6281}
6282_ACEOF
6283if ac_fn_c_try_link "$LINENO"; then :
6284  eval $cacheid=yes
6285else
6286  eval $cacheid=no
6287fi
6288rm -f core conftest.err conftest.$ac_objext \
6289    conftest$ac_exeext conftest.$ac_ext
6290fi
6291
6292
6293		CFLAGS="$xorg_testset_save_CFLAGS"
6294
6295		eval supported=\$$cacheid
6296		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6297$as_echo "$supported" >&6; }
6298		if test "$supported" = "yes" ; then
6299			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6300			found="yes"
6301		fi
6302	fi
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318xorg_testset_save_CFLAGS="$CFLAGS"
6319
6320if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6321	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6322	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6323$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6324if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6325  $as_echo_n "(cached) " >&6
6326else
6327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328/* end confdefs.h.  */
6329int i;
6330_ACEOF
6331if ac_fn_c_try_compile "$LINENO"; then :
6332  xorg_cv_cc_flag_unknown_warning_option=yes
6333else
6334  xorg_cv_cc_flag_unknown_warning_option=no
6335fi
6336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6337fi
6338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6339$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6340	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6341	CFLAGS="$xorg_testset_save_CFLAGS"
6342fi
6343
6344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6345	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6346		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6347	fi
6348	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6349	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6350$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6351if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6352  $as_echo_n "(cached) " >&6
6353else
6354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355/* end confdefs.h.  */
6356int i;
6357_ACEOF
6358if ac_fn_c_try_compile "$LINENO"; then :
6359  xorg_cv_cc_flag_unused_command_line_argument=yes
6360else
6361  xorg_cv_cc_flag_unused_command_line_argument=no
6362fi
6363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364fi
6365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6366$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6367	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6368	CFLAGS="$xorg_testset_save_CFLAGS"
6369fi
6370
6371found="no"
6372
6373	if test $found = "no" ; then
6374		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6375			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6376		fi
6377
6378		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6379			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6380		fi
6381
6382		CFLAGS="$CFLAGS -Wcast-qual"
6383
6384		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6385$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6386		cacheid=xorg_cv_cc_flag__Wcast_qual
6387		if eval \${$cacheid+:} false; then :
6388  $as_echo_n "(cached) " >&6
6389else
6390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391/* end confdefs.h.  */
6392int i;
6393int
6394main ()
6395{
6396
6397  ;
6398  return 0;
6399}
6400_ACEOF
6401if ac_fn_c_try_link "$LINENO"; then :
6402  eval $cacheid=yes
6403else
6404  eval $cacheid=no
6405fi
6406rm -f core conftest.err conftest.$ac_objext \
6407    conftest$ac_exeext conftest.$ac_ext
6408fi
6409
6410
6411		CFLAGS="$xorg_testset_save_CFLAGS"
6412
6413		eval supported=\$$cacheid
6414		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6415$as_echo "$supported" >&6; }
6416		if test "$supported" = "yes" ; then
6417			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6418			found="yes"
6419		fi
6420	fi
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436xorg_testset_save_CFLAGS="$CFLAGS"
6437
6438if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6439	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6440	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6441$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6442if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6443  $as_echo_n "(cached) " >&6
6444else
6445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6446/* end confdefs.h.  */
6447int i;
6448_ACEOF
6449if ac_fn_c_try_compile "$LINENO"; then :
6450  xorg_cv_cc_flag_unknown_warning_option=yes
6451else
6452  xorg_cv_cc_flag_unknown_warning_option=no
6453fi
6454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6455fi
6456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6457$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6458	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6459	CFLAGS="$xorg_testset_save_CFLAGS"
6460fi
6461
6462if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6463	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6464		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6465	fi
6466	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6467	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6468$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6469if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6470  $as_echo_n "(cached) " >&6
6471else
6472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473/* end confdefs.h.  */
6474int i;
6475_ACEOF
6476if ac_fn_c_try_compile "$LINENO"; then :
6477  xorg_cv_cc_flag_unused_command_line_argument=yes
6478else
6479  xorg_cv_cc_flag_unused_command_line_argument=no
6480fi
6481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6482fi
6483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6484$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6485	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6486	CFLAGS="$xorg_testset_save_CFLAGS"
6487fi
6488
6489found="no"
6490
6491	if test $found = "no" ; then
6492		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6493			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6494		fi
6495
6496		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6497			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6498		fi
6499
6500		CFLAGS="$CFLAGS -Wmissing-noreturn"
6501
6502		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6503$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6504		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6505		if eval \${$cacheid+:} false; then :
6506  $as_echo_n "(cached) " >&6
6507else
6508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509/* end confdefs.h.  */
6510int i;
6511int
6512main ()
6513{
6514
6515  ;
6516  return 0;
6517}
6518_ACEOF
6519if ac_fn_c_try_link "$LINENO"; then :
6520  eval $cacheid=yes
6521else
6522  eval $cacheid=no
6523fi
6524rm -f core conftest.err conftest.$ac_objext \
6525    conftest$ac_exeext conftest.$ac_ext
6526fi
6527
6528
6529		CFLAGS="$xorg_testset_save_CFLAGS"
6530
6531		eval supported=\$$cacheid
6532		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6533$as_echo "$supported" >&6; }
6534		if test "$supported" = "yes" ; then
6535			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6536			found="yes"
6537		fi
6538	fi
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554xorg_testset_save_CFLAGS="$CFLAGS"
6555
6556if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6557	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6558	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6559$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6560if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6561  $as_echo_n "(cached) " >&6
6562else
6563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564/* end confdefs.h.  */
6565int i;
6566_ACEOF
6567if ac_fn_c_try_compile "$LINENO"; then :
6568  xorg_cv_cc_flag_unknown_warning_option=yes
6569else
6570  xorg_cv_cc_flag_unknown_warning_option=no
6571fi
6572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6573fi
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6575$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6576	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6577	CFLAGS="$xorg_testset_save_CFLAGS"
6578fi
6579
6580if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6581	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6582		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6583	fi
6584	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6585	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6586$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6587if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6588  $as_echo_n "(cached) " >&6
6589else
6590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591/* end confdefs.h.  */
6592int i;
6593_ACEOF
6594if ac_fn_c_try_compile "$LINENO"; then :
6595  xorg_cv_cc_flag_unused_command_line_argument=yes
6596else
6597  xorg_cv_cc_flag_unused_command_line_argument=no
6598fi
6599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600fi
6601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6602$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6603	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6604	CFLAGS="$xorg_testset_save_CFLAGS"
6605fi
6606
6607found="no"
6608
6609	if test $found = "no" ; then
6610		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6611			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6612		fi
6613
6614		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6615			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6616		fi
6617
6618		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6619
6620		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6621$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6622		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6623		if eval \${$cacheid+:} false; then :
6624  $as_echo_n "(cached) " >&6
6625else
6626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6627/* end confdefs.h.  */
6628int i;
6629int
6630main ()
6631{
6632
6633  ;
6634  return 0;
6635}
6636_ACEOF
6637if ac_fn_c_try_link "$LINENO"; then :
6638  eval $cacheid=yes
6639else
6640  eval $cacheid=no
6641fi
6642rm -f core conftest.err conftest.$ac_objext \
6643    conftest$ac_exeext conftest.$ac_ext
6644fi
6645
6646
6647		CFLAGS="$xorg_testset_save_CFLAGS"
6648
6649		eval supported=\$$cacheid
6650		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6651$as_echo "$supported" >&6; }
6652		if test "$supported" = "yes" ; then
6653			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6654			found="yes"
6655		fi
6656	fi
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672xorg_testset_save_CFLAGS="$CFLAGS"
6673
6674if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6675	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6676	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6677$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6678if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6679  $as_echo_n "(cached) " >&6
6680else
6681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682/* end confdefs.h.  */
6683int i;
6684_ACEOF
6685if ac_fn_c_try_compile "$LINENO"; then :
6686  xorg_cv_cc_flag_unknown_warning_option=yes
6687else
6688  xorg_cv_cc_flag_unknown_warning_option=no
6689fi
6690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6691fi
6692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6693$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6694	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6695	CFLAGS="$xorg_testset_save_CFLAGS"
6696fi
6697
6698if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6699	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6700		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6701	fi
6702	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6703	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6704$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6705if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6706  $as_echo_n "(cached) " >&6
6707else
6708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709/* end confdefs.h.  */
6710int i;
6711_ACEOF
6712if ac_fn_c_try_compile "$LINENO"; then :
6713  xorg_cv_cc_flag_unused_command_line_argument=yes
6714else
6715  xorg_cv_cc_flag_unused_command_line_argument=no
6716fi
6717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6718fi
6719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6720$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6721	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6722	CFLAGS="$xorg_testset_save_CFLAGS"
6723fi
6724
6725found="no"
6726
6727	if test $found = "no" ; then
6728		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6729			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6730		fi
6731
6732		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6733			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6734		fi
6735
6736		CFLAGS="$CFLAGS -Wredundant-decls"
6737
6738		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6739$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6740		cacheid=xorg_cv_cc_flag__Wredundant_decls
6741		if eval \${$cacheid+:} false; then :
6742  $as_echo_n "(cached) " >&6
6743else
6744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745/* end confdefs.h.  */
6746int i;
6747int
6748main ()
6749{
6750
6751  ;
6752  return 0;
6753}
6754_ACEOF
6755if ac_fn_c_try_link "$LINENO"; then :
6756  eval $cacheid=yes
6757else
6758  eval $cacheid=no
6759fi
6760rm -f core conftest.err conftest.$ac_objext \
6761    conftest$ac_exeext conftest.$ac_ext
6762fi
6763
6764
6765		CFLAGS="$xorg_testset_save_CFLAGS"
6766
6767		eval supported=\$$cacheid
6768		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6769$as_echo "$supported" >&6; }
6770		if test "$supported" = "yes" ; then
6771			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6772			found="yes"
6773		fi
6774	fi
6775
6776
6777
6778# These are currently disabled because they are noisy.  They will be enabled
6779# in the future once the codebase is sufficiently modernized to silence
6780# them.  For now, I don't want them to drown out the other warnings.
6781# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6782# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6783# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6784
6785# Turn some warnings into errors, so we don't accidently get successful builds
6786# when there are problems that should be fixed.
6787
6788if test "x$SELECTIVE_WERROR" = "xyes" ; then
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802xorg_testset_save_CFLAGS="$CFLAGS"
6803
6804if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6805	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6806	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6807$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6808if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6809  $as_echo_n "(cached) " >&6
6810else
6811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812/* end confdefs.h.  */
6813int i;
6814_ACEOF
6815if ac_fn_c_try_compile "$LINENO"; then :
6816  xorg_cv_cc_flag_unknown_warning_option=yes
6817else
6818  xorg_cv_cc_flag_unknown_warning_option=no
6819fi
6820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6821fi
6822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6823$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6824	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6825	CFLAGS="$xorg_testset_save_CFLAGS"
6826fi
6827
6828if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6829	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6830		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6831	fi
6832	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6833	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6834$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6835if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6836  $as_echo_n "(cached) " >&6
6837else
6838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839/* end confdefs.h.  */
6840int i;
6841_ACEOF
6842if ac_fn_c_try_compile "$LINENO"; then :
6843  xorg_cv_cc_flag_unused_command_line_argument=yes
6844else
6845  xorg_cv_cc_flag_unused_command_line_argument=no
6846fi
6847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6848fi
6849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6850$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6851	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6852	CFLAGS="$xorg_testset_save_CFLAGS"
6853fi
6854
6855found="no"
6856
6857	if test $found = "no" ; then
6858		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6859			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6860		fi
6861
6862		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6863			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6864		fi
6865
6866		CFLAGS="$CFLAGS -Werror=implicit"
6867
6868		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6869$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6870		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6871		if eval \${$cacheid+:} false; then :
6872  $as_echo_n "(cached) " >&6
6873else
6874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875/* end confdefs.h.  */
6876int i;
6877int
6878main ()
6879{
6880
6881  ;
6882  return 0;
6883}
6884_ACEOF
6885if ac_fn_c_try_link "$LINENO"; then :
6886  eval $cacheid=yes
6887else
6888  eval $cacheid=no
6889fi
6890rm -f core conftest.err conftest.$ac_objext \
6891    conftest$ac_exeext conftest.$ac_ext
6892fi
6893
6894
6895		CFLAGS="$xorg_testset_save_CFLAGS"
6896
6897		eval supported=\$$cacheid
6898		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6899$as_echo "$supported" >&6; }
6900		if test "$supported" = "yes" ; then
6901			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6902			found="yes"
6903		fi
6904	fi
6905
6906	if test $found = "no" ; then
6907		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6908			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6909		fi
6910
6911		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6912			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6913		fi
6914
6915		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6916
6917		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6918$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6919		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6920		if eval \${$cacheid+:} false; then :
6921  $as_echo_n "(cached) " >&6
6922else
6923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6924/* end confdefs.h.  */
6925int i;
6926int
6927main ()
6928{
6929
6930  ;
6931  return 0;
6932}
6933_ACEOF
6934if ac_fn_c_try_link "$LINENO"; then :
6935  eval $cacheid=yes
6936else
6937  eval $cacheid=no
6938fi
6939rm -f core conftest.err conftest.$ac_objext \
6940    conftest$ac_exeext conftest.$ac_ext
6941fi
6942
6943
6944		CFLAGS="$xorg_testset_save_CFLAGS"
6945
6946		eval supported=\$$cacheid
6947		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6948$as_echo "$supported" >&6; }
6949		if test "$supported" = "yes" ; then
6950			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6951			found="yes"
6952		fi
6953	fi
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969xorg_testset_save_CFLAGS="$CFLAGS"
6970
6971if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6972	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6973	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6974$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6975if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6976  $as_echo_n "(cached) " >&6
6977else
6978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979/* end confdefs.h.  */
6980int i;
6981_ACEOF
6982if ac_fn_c_try_compile "$LINENO"; then :
6983  xorg_cv_cc_flag_unknown_warning_option=yes
6984else
6985  xorg_cv_cc_flag_unknown_warning_option=no
6986fi
6987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6988fi
6989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6990$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6991	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6992	CFLAGS="$xorg_testset_save_CFLAGS"
6993fi
6994
6995if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6996	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6997		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6998	fi
6999	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7000	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7001$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7002if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7003  $as_echo_n "(cached) " >&6
7004else
7005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006/* end confdefs.h.  */
7007int i;
7008_ACEOF
7009if ac_fn_c_try_compile "$LINENO"; then :
7010  xorg_cv_cc_flag_unused_command_line_argument=yes
7011else
7012  xorg_cv_cc_flag_unused_command_line_argument=no
7013fi
7014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7015fi
7016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7017$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7018	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7019	CFLAGS="$xorg_testset_save_CFLAGS"
7020fi
7021
7022found="no"
7023
7024	if test $found = "no" ; then
7025		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7026			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7027		fi
7028
7029		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7030			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7031		fi
7032
7033		CFLAGS="$CFLAGS -Werror=nonnull"
7034
7035		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7036$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7037		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7038		if eval \${$cacheid+:} false; then :
7039  $as_echo_n "(cached) " >&6
7040else
7041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7042/* end confdefs.h.  */
7043int i;
7044int
7045main ()
7046{
7047
7048  ;
7049  return 0;
7050}
7051_ACEOF
7052if ac_fn_c_try_link "$LINENO"; then :
7053  eval $cacheid=yes
7054else
7055  eval $cacheid=no
7056fi
7057rm -f core conftest.err conftest.$ac_objext \
7058    conftest$ac_exeext conftest.$ac_ext
7059fi
7060
7061
7062		CFLAGS="$xorg_testset_save_CFLAGS"
7063
7064		eval supported=\$$cacheid
7065		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7066$as_echo "$supported" >&6; }
7067		if test "$supported" = "yes" ; then
7068			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7069			found="yes"
7070		fi
7071	fi
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087xorg_testset_save_CFLAGS="$CFLAGS"
7088
7089if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7090	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7091	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7092$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7093if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7094  $as_echo_n "(cached) " >&6
7095else
7096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7097/* end confdefs.h.  */
7098int i;
7099_ACEOF
7100if ac_fn_c_try_compile "$LINENO"; then :
7101  xorg_cv_cc_flag_unknown_warning_option=yes
7102else
7103  xorg_cv_cc_flag_unknown_warning_option=no
7104fi
7105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7106fi
7107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7108$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7109	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7110	CFLAGS="$xorg_testset_save_CFLAGS"
7111fi
7112
7113if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7114	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7115		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7116	fi
7117	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7118	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7119$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7120if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7121  $as_echo_n "(cached) " >&6
7122else
7123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124/* end confdefs.h.  */
7125int i;
7126_ACEOF
7127if ac_fn_c_try_compile "$LINENO"; then :
7128  xorg_cv_cc_flag_unused_command_line_argument=yes
7129else
7130  xorg_cv_cc_flag_unused_command_line_argument=no
7131fi
7132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7133fi
7134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7135$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7136	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7137	CFLAGS="$xorg_testset_save_CFLAGS"
7138fi
7139
7140found="no"
7141
7142	if test $found = "no" ; then
7143		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7144			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7145		fi
7146
7147		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7148			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7149		fi
7150
7151		CFLAGS="$CFLAGS -Werror=init-self"
7152
7153		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7154$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7155		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7156		if eval \${$cacheid+:} false; then :
7157  $as_echo_n "(cached) " >&6
7158else
7159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160/* end confdefs.h.  */
7161int i;
7162int
7163main ()
7164{
7165
7166  ;
7167  return 0;
7168}
7169_ACEOF
7170if ac_fn_c_try_link "$LINENO"; then :
7171  eval $cacheid=yes
7172else
7173  eval $cacheid=no
7174fi
7175rm -f core conftest.err conftest.$ac_objext \
7176    conftest$ac_exeext conftest.$ac_ext
7177fi
7178
7179
7180		CFLAGS="$xorg_testset_save_CFLAGS"
7181
7182		eval supported=\$$cacheid
7183		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7184$as_echo "$supported" >&6; }
7185		if test "$supported" = "yes" ; then
7186			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7187			found="yes"
7188		fi
7189	fi
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205xorg_testset_save_CFLAGS="$CFLAGS"
7206
7207if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7208	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7209	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7210$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7211if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7212  $as_echo_n "(cached) " >&6
7213else
7214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215/* end confdefs.h.  */
7216int i;
7217_ACEOF
7218if ac_fn_c_try_compile "$LINENO"; then :
7219  xorg_cv_cc_flag_unknown_warning_option=yes
7220else
7221  xorg_cv_cc_flag_unknown_warning_option=no
7222fi
7223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7224fi
7225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7226$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7227	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7228	CFLAGS="$xorg_testset_save_CFLAGS"
7229fi
7230
7231if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7232	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7233		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7234	fi
7235	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7236	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7237$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7238if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7239  $as_echo_n "(cached) " >&6
7240else
7241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242/* end confdefs.h.  */
7243int i;
7244_ACEOF
7245if ac_fn_c_try_compile "$LINENO"; then :
7246  xorg_cv_cc_flag_unused_command_line_argument=yes
7247else
7248  xorg_cv_cc_flag_unused_command_line_argument=no
7249fi
7250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7251fi
7252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7253$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7254	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7255	CFLAGS="$xorg_testset_save_CFLAGS"
7256fi
7257
7258found="no"
7259
7260	if test $found = "no" ; then
7261		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7262			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7263		fi
7264
7265		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7266			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7267		fi
7268
7269		CFLAGS="$CFLAGS -Werror=main"
7270
7271		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7272$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7273		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7274		if eval \${$cacheid+:} false; then :
7275  $as_echo_n "(cached) " >&6
7276else
7277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278/* end confdefs.h.  */
7279int i;
7280int
7281main ()
7282{
7283
7284  ;
7285  return 0;
7286}
7287_ACEOF
7288if ac_fn_c_try_link "$LINENO"; then :
7289  eval $cacheid=yes
7290else
7291  eval $cacheid=no
7292fi
7293rm -f core conftest.err conftest.$ac_objext \
7294    conftest$ac_exeext conftest.$ac_ext
7295fi
7296
7297
7298		CFLAGS="$xorg_testset_save_CFLAGS"
7299
7300		eval supported=\$$cacheid
7301		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7302$as_echo "$supported" >&6; }
7303		if test "$supported" = "yes" ; then
7304			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7305			found="yes"
7306		fi
7307	fi
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323xorg_testset_save_CFLAGS="$CFLAGS"
7324
7325if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7326	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7327	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7328$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7329if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7330  $as_echo_n "(cached) " >&6
7331else
7332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7333/* end confdefs.h.  */
7334int i;
7335_ACEOF
7336if ac_fn_c_try_compile "$LINENO"; then :
7337  xorg_cv_cc_flag_unknown_warning_option=yes
7338else
7339  xorg_cv_cc_flag_unknown_warning_option=no
7340fi
7341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342fi
7343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7344$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7345	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7346	CFLAGS="$xorg_testset_save_CFLAGS"
7347fi
7348
7349if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7350	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7351		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7352	fi
7353	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7354	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7355$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7356if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7357  $as_echo_n "(cached) " >&6
7358else
7359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360/* end confdefs.h.  */
7361int i;
7362_ACEOF
7363if ac_fn_c_try_compile "$LINENO"; then :
7364  xorg_cv_cc_flag_unused_command_line_argument=yes
7365else
7366  xorg_cv_cc_flag_unused_command_line_argument=no
7367fi
7368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7369fi
7370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7371$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7372	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7373	CFLAGS="$xorg_testset_save_CFLAGS"
7374fi
7375
7376found="no"
7377
7378	if test $found = "no" ; then
7379		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7380			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7381		fi
7382
7383		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7384			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7385		fi
7386
7387		CFLAGS="$CFLAGS -Werror=missing-braces"
7388
7389		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7390$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7391		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7392		if eval \${$cacheid+:} false; then :
7393  $as_echo_n "(cached) " >&6
7394else
7395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7396/* end confdefs.h.  */
7397int i;
7398int
7399main ()
7400{
7401
7402  ;
7403  return 0;
7404}
7405_ACEOF
7406if ac_fn_c_try_link "$LINENO"; then :
7407  eval $cacheid=yes
7408else
7409  eval $cacheid=no
7410fi
7411rm -f core conftest.err conftest.$ac_objext \
7412    conftest$ac_exeext conftest.$ac_ext
7413fi
7414
7415
7416		CFLAGS="$xorg_testset_save_CFLAGS"
7417
7418		eval supported=\$$cacheid
7419		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7420$as_echo "$supported" >&6; }
7421		if test "$supported" = "yes" ; then
7422			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7423			found="yes"
7424		fi
7425	fi
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441xorg_testset_save_CFLAGS="$CFLAGS"
7442
7443if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7444	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7445	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7446$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7447if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7448  $as_echo_n "(cached) " >&6
7449else
7450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451/* end confdefs.h.  */
7452int i;
7453_ACEOF
7454if ac_fn_c_try_compile "$LINENO"; then :
7455  xorg_cv_cc_flag_unknown_warning_option=yes
7456else
7457  xorg_cv_cc_flag_unknown_warning_option=no
7458fi
7459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7460fi
7461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7462$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7463	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7464	CFLAGS="$xorg_testset_save_CFLAGS"
7465fi
7466
7467if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7468	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7469		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7470	fi
7471	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7472	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7473$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7474if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7475  $as_echo_n "(cached) " >&6
7476else
7477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478/* end confdefs.h.  */
7479int i;
7480_ACEOF
7481if ac_fn_c_try_compile "$LINENO"; then :
7482  xorg_cv_cc_flag_unused_command_line_argument=yes
7483else
7484  xorg_cv_cc_flag_unused_command_line_argument=no
7485fi
7486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7487fi
7488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7489$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7490	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7491	CFLAGS="$xorg_testset_save_CFLAGS"
7492fi
7493
7494found="no"
7495
7496	if test $found = "no" ; then
7497		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7498			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7499		fi
7500
7501		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7502			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7503		fi
7504
7505		CFLAGS="$CFLAGS -Werror=sequence-point"
7506
7507		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7508$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7509		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7510		if eval \${$cacheid+:} false; then :
7511  $as_echo_n "(cached) " >&6
7512else
7513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7514/* end confdefs.h.  */
7515int i;
7516int
7517main ()
7518{
7519
7520  ;
7521  return 0;
7522}
7523_ACEOF
7524if ac_fn_c_try_link "$LINENO"; then :
7525  eval $cacheid=yes
7526else
7527  eval $cacheid=no
7528fi
7529rm -f core conftest.err conftest.$ac_objext \
7530    conftest$ac_exeext conftest.$ac_ext
7531fi
7532
7533
7534		CFLAGS="$xorg_testset_save_CFLAGS"
7535
7536		eval supported=\$$cacheid
7537		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7538$as_echo "$supported" >&6; }
7539		if test "$supported" = "yes" ; then
7540			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7541			found="yes"
7542		fi
7543	fi
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559xorg_testset_save_CFLAGS="$CFLAGS"
7560
7561if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7562	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7563	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7564$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7565if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7566  $as_echo_n "(cached) " >&6
7567else
7568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7569/* end confdefs.h.  */
7570int i;
7571_ACEOF
7572if ac_fn_c_try_compile "$LINENO"; then :
7573  xorg_cv_cc_flag_unknown_warning_option=yes
7574else
7575  xorg_cv_cc_flag_unknown_warning_option=no
7576fi
7577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7578fi
7579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7580$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7581	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7582	CFLAGS="$xorg_testset_save_CFLAGS"
7583fi
7584
7585if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7586	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7587		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7588	fi
7589	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7590	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7591$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7592if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7593  $as_echo_n "(cached) " >&6
7594else
7595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596/* end confdefs.h.  */
7597int i;
7598_ACEOF
7599if ac_fn_c_try_compile "$LINENO"; then :
7600  xorg_cv_cc_flag_unused_command_line_argument=yes
7601else
7602  xorg_cv_cc_flag_unused_command_line_argument=no
7603fi
7604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7605fi
7606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7607$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7608	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7609	CFLAGS="$xorg_testset_save_CFLAGS"
7610fi
7611
7612found="no"
7613
7614	if test $found = "no" ; then
7615		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7616			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7617		fi
7618
7619		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7620			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7621		fi
7622
7623		CFLAGS="$CFLAGS -Werror=return-type"
7624
7625		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7626$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7627		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7628		if eval \${$cacheid+:} false; then :
7629  $as_echo_n "(cached) " >&6
7630else
7631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632/* end confdefs.h.  */
7633int i;
7634int
7635main ()
7636{
7637
7638  ;
7639  return 0;
7640}
7641_ACEOF
7642if ac_fn_c_try_link "$LINENO"; then :
7643  eval $cacheid=yes
7644else
7645  eval $cacheid=no
7646fi
7647rm -f core conftest.err conftest.$ac_objext \
7648    conftest$ac_exeext conftest.$ac_ext
7649fi
7650
7651
7652		CFLAGS="$xorg_testset_save_CFLAGS"
7653
7654		eval supported=\$$cacheid
7655		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7656$as_echo "$supported" >&6; }
7657		if test "$supported" = "yes" ; then
7658			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7659			found="yes"
7660		fi
7661	fi
7662
7663	if test $found = "no" ; then
7664		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7665			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7666		fi
7667
7668		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7669			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7670		fi
7671
7672		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7673
7674		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7675$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7676		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7677		if eval \${$cacheid+:} false; then :
7678  $as_echo_n "(cached) " >&6
7679else
7680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681/* end confdefs.h.  */
7682int i;
7683int
7684main ()
7685{
7686
7687  ;
7688  return 0;
7689}
7690_ACEOF
7691if ac_fn_c_try_link "$LINENO"; then :
7692  eval $cacheid=yes
7693else
7694  eval $cacheid=no
7695fi
7696rm -f core conftest.err conftest.$ac_objext \
7697    conftest$ac_exeext conftest.$ac_ext
7698fi
7699
7700
7701		CFLAGS="$xorg_testset_save_CFLAGS"
7702
7703		eval supported=\$$cacheid
7704		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7705$as_echo "$supported" >&6; }
7706		if test "$supported" = "yes" ; then
7707			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7708			found="yes"
7709		fi
7710	fi
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726xorg_testset_save_CFLAGS="$CFLAGS"
7727
7728if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7729	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7730	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7731$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7732if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7733  $as_echo_n "(cached) " >&6
7734else
7735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736/* end confdefs.h.  */
7737int i;
7738_ACEOF
7739if ac_fn_c_try_compile "$LINENO"; then :
7740  xorg_cv_cc_flag_unknown_warning_option=yes
7741else
7742  xorg_cv_cc_flag_unknown_warning_option=no
7743fi
7744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7745fi
7746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7747$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7748	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7749	CFLAGS="$xorg_testset_save_CFLAGS"
7750fi
7751
7752if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7753	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7754		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7755	fi
7756	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7757	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7758$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7759if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7760  $as_echo_n "(cached) " >&6
7761else
7762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763/* end confdefs.h.  */
7764int i;
7765_ACEOF
7766if ac_fn_c_try_compile "$LINENO"; then :
7767  xorg_cv_cc_flag_unused_command_line_argument=yes
7768else
7769  xorg_cv_cc_flag_unused_command_line_argument=no
7770fi
7771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7772fi
7773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7774$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7775	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7776	CFLAGS="$xorg_testset_save_CFLAGS"
7777fi
7778
7779found="no"
7780
7781	if test $found = "no" ; then
7782		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7783			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7784		fi
7785
7786		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7787			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7788		fi
7789
7790		CFLAGS="$CFLAGS -Werror=trigraphs"
7791
7792		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7793$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7794		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7795		if eval \${$cacheid+:} false; then :
7796  $as_echo_n "(cached) " >&6
7797else
7798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799/* end confdefs.h.  */
7800int i;
7801int
7802main ()
7803{
7804
7805  ;
7806  return 0;
7807}
7808_ACEOF
7809if ac_fn_c_try_link "$LINENO"; then :
7810  eval $cacheid=yes
7811else
7812  eval $cacheid=no
7813fi
7814rm -f core conftest.err conftest.$ac_objext \
7815    conftest$ac_exeext conftest.$ac_ext
7816fi
7817
7818
7819		CFLAGS="$xorg_testset_save_CFLAGS"
7820
7821		eval supported=\$$cacheid
7822		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7823$as_echo "$supported" >&6; }
7824		if test "$supported" = "yes" ; then
7825			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7826			found="yes"
7827		fi
7828	fi
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844xorg_testset_save_CFLAGS="$CFLAGS"
7845
7846if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7847	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7848	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7849$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7850if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7851  $as_echo_n "(cached) " >&6
7852else
7853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7854/* end confdefs.h.  */
7855int i;
7856_ACEOF
7857if ac_fn_c_try_compile "$LINENO"; then :
7858  xorg_cv_cc_flag_unknown_warning_option=yes
7859else
7860  xorg_cv_cc_flag_unknown_warning_option=no
7861fi
7862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7863fi
7864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7865$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7866	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7867	CFLAGS="$xorg_testset_save_CFLAGS"
7868fi
7869
7870if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7871	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7872		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7873	fi
7874	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7875	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7876$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7877if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7878  $as_echo_n "(cached) " >&6
7879else
7880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7881/* end confdefs.h.  */
7882int i;
7883_ACEOF
7884if ac_fn_c_try_compile "$LINENO"; then :
7885  xorg_cv_cc_flag_unused_command_line_argument=yes
7886else
7887  xorg_cv_cc_flag_unused_command_line_argument=no
7888fi
7889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7890fi
7891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7892$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7893	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7894	CFLAGS="$xorg_testset_save_CFLAGS"
7895fi
7896
7897found="no"
7898
7899	if test $found = "no" ; then
7900		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7901			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7902		fi
7903
7904		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7905			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7906		fi
7907
7908		CFLAGS="$CFLAGS -Werror=array-bounds"
7909
7910		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7911$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7912		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7913		if eval \${$cacheid+:} false; then :
7914  $as_echo_n "(cached) " >&6
7915else
7916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917/* end confdefs.h.  */
7918int i;
7919int
7920main ()
7921{
7922
7923  ;
7924  return 0;
7925}
7926_ACEOF
7927if ac_fn_c_try_link "$LINENO"; then :
7928  eval $cacheid=yes
7929else
7930  eval $cacheid=no
7931fi
7932rm -f core conftest.err conftest.$ac_objext \
7933    conftest$ac_exeext conftest.$ac_ext
7934fi
7935
7936
7937		CFLAGS="$xorg_testset_save_CFLAGS"
7938
7939		eval supported=\$$cacheid
7940		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7941$as_echo "$supported" >&6; }
7942		if test "$supported" = "yes" ; then
7943			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7944			found="yes"
7945		fi
7946	fi
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962xorg_testset_save_CFLAGS="$CFLAGS"
7963
7964if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7965	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7966	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7967$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7968if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7969  $as_echo_n "(cached) " >&6
7970else
7971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972/* end confdefs.h.  */
7973int i;
7974_ACEOF
7975if ac_fn_c_try_compile "$LINENO"; then :
7976  xorg_cv_cc_flag_unknown_warning_option=yes
7977else
7978  xorg_cv_cc_flag_unknown_warning_option=no
7979fi
7980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7981fi
7982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7983$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7984	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7985	CFLAGS="$xorg_testset_save_CFLAGS"
7986fi
7987
7988if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7989	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7990		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7991	fi
7992	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7993	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7994$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7995if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7996  $as_echo_n "(cached) " >&6
7997else
7998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7999/* end confdefs.h.  */
8000int i;
8001_ACEOF
8002if ac_fn_c_try_compile "$LINENO"; then :
8003  xorg_cv_cc_flag_unused_command_line_argument=yes
8004else
8005  xorg_cv_cc_flag_unused_command_line_argument=no
8006fi
8007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8008fi
8009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8010$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8011	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8012	CFLAGS="$xorg_testset_save_CFLAGS"
8013fi
8014
8015found="no"
8016
8017	if test $found = "no" ; then
8018		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8019			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8020		fi
8021
8022		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8023			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8024		fi
8025
8026		CFLAGS="$CFLAGS -Werror=write-strings"
8027
8028		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8029$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8030		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8031		if eval \${$cacheid+:} false; then :
8032  $as_echo_n "(cached) " >&6
8033else
8034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8035/* end confdefs.h.  */
8036int i;
8037int
8038main ()
8039{
8040
8041  ;
8042  return 0;
8043}
8044_ACEOF
8045if ac_fn_c_try_link "$LINENO"; then :
8046  eval $cacheid=yes
8047else
8048  eval $cacheid=no
8049fi
8050rm -f core conftest.err conftest.$ac_objext \
8051    conftest$ac_exeext conftest.$ac_ext
8052fi
8053
8054
8055		CFLAGS="$xorg_testset_save_CFLAGS"
8056
8057		eval supported=\$$cacheid
8058		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8059$as_echo "$supported" >&6; }
8060		if test "$supported" = "yes" ; then
8061			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8062			found="yes"
8063		fi
8064	fi
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080xorg_testset_save_CFLAGS="$CFLAGS"
8081
8082if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8083	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8084	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8085$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8086if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8087  $as_echo_n "(cached) " >&6
8088else
8089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090/* end confdefs.h.  */
8091int i;
8092_ACEOF
8093if ac_fn_c_try_compile "$LINENO"; then :
8094  xorg_cv_cc_flag_unknown_warning_option=yes
8095else
8096  xorg_cv_cc_flag_unknown_warning_option=no
8097fi
8098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8099fi
8100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8101$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8102	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8103	CFLAGS="$xorg_testset_save_CFLAGS"
8104fi
8105
8106if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8107	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8108		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8109	fi
8110	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8111	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8112$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8113if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8114  $as_echo_n "(cached) " >&6
8115else
8116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117/* end confdefs.h.  */
8118int i;
8119_ACEOF
8120if ac_fn_c_try_compile "$LINENO"; then :
8121  xorg_cv_cc_flag_unused_command_line_argument=yes
8122else
8123  xorg_cv_cc_flag_unused_command_line_argument=no
8124fi
8125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8126fi
8127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8128$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8129	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8130	CFLAGS="$xorg_testset_save_CFLAGS"
8131fi
8132
8133found="no"
8134
8135	if test $found = "no" ; then
8136		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8137			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8138		fi
8139
8140		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8141			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8142		fi
8143
8144		CFLAGS="$CFLAGS -Werror=address"
8145
8146		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8147$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8148		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8149		if eval \${$cacheid+:} false; then :
8150  $as_echo_n "(cached) " >&6
8151else
8152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153/* end confdefs.h.  */
8154int i;
8155int
8156main ()
8157{
8158
8159  ;
8160  return 0;
8161}
8162_ACEOF
8163if ac_fn_c_try_link "$LINENO"; then :
8164  eval $cacheid=yes
8165else
8166  eval $cacheid=no
8167fi
8168rm -f core conftest.err conftest.$ac_objext \
8169    conftest$ac_exeext conftest.$ac_ext
8170fi
8171
8172
8173		CFLAGS="$xorg_testset_save_CFLAGS"
8174
8175		eval supported=\$$cacheid
8176		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8177$as_echo "$supported" >&6; }
8178		if test "$supported" = "yes" ; then
8179			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8180			found="yes"
8181		fi
8182	fi
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198xorg_testset_save_CFLAGS="$CFLAGS"
8199
8200if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8201	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8202	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8203$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8204if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8205  $as_echo_n "(cached) " >&6
8206else
8207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208/* end confdefs.h.  */
8209int i;
8210_ACEOF
8211if ac_fn_c_try_compile "$LINENO"; then :
8212  xorg_cv_cc_flag_unknown_warning_option=yes
8213else
8214  xorg_cv_cc_flag_unknown_warning_option=no
8215fi
8216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8217fi
8218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8219$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8220	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8221	CFLAGS="$xorg_testset_save_CFLAGS"
8222fi
8223
8224if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8225	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8226		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8227	fi
8228	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8229	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8230$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8231if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8232  $as_echo_n "(cached) " >&6
8233else
8234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235/* end confdefs.h.  */
8236int i;
8237_ACEOF
8238if ac_fn_c_try_compile "$LINENO"; then :
8239  xorg_cv_cc_flag_unused_command_line_argument=yes
8240else
8241  xorg_cv_cc_flag_unused_command_line_argument=no
8242fi
8243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8244fi
8245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8246$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8247	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8248	CFLAGS="$xorg_testset_save_CFLAGS"
8249fi
8250
8251found="no"
8252
8253	if test $found = "no" ; then
8254		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8255			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8256		fi
8257
8258		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8259			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8260		fi
8261
8262		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8263
8264		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8265$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8266		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8267		if eval \${$cacheid+:} false; then :
8268  $as_echo_n "(cached) " >&6
8269else
8270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271/* end confdefs.h.  */
8272int i;
8273int
8274main ()
8275{
8276
8277  ;
8278  return 0;
8279}
8280_ACEOF
8281if ac_fn_c_try_link "$LINENO"; then :
8282  eval $cacheid=yes
8283else
8284  eval $cacheid=no
8285fi
8286rm -f core conftest.err conftest.$ac_objext \
8287    conftest$ac_exeext conftest.$ac_ext
8288fi
8289
8290
8291		CFLAGS="$xorg_testset_save_CFLAGS"
8292
8293		eval supported=\$$cacheid
8294		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8295$as_echo "$supported" >&6; }
8296		if test "$supported" = "yes" ; then
8297			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8298			found="yes"
8299		fi
8300	fi
8301
8302	if test $found = "no" ; then
8303		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8304			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8305		fi
8306
8307		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8308			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8309		fi
8310
8311		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8312
8313		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8314$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8315		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8316		if eval \${$cacheid+:} false; then :
8317  $as_echo_n "(cached) " >&6
8318else
8319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320/* end confdefs.h.  */
8321int i;
8322int
8323main ()
8324{
8325
8326  ;
8327  return 0;
8328}
8329_ACEOF
8330if ac_fn_c_try_link "$LINENO"; then :
8331  eval $cacheid=yes
8332else
8333  eval $cacheid=no
8334fi
8335rm -f core conftest.err conftest.$ac_objext \
8336    conftest$ac_exeext conftest.$ac_ext
8337fi
8338
8339
8340		CFLAGS="$xorg_testset_save_CFLAGS"
8341
8342		eval supported=\$$cacheid
8343		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8344$as_echo "$supported" >&6; }
8345		if test "$supported" = "yes" ; then
8346			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8347			found="yes"
8348		fi
8349	fi
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365xorg_testset_save_CFLAGS="$CFLAGS"
8366
8367if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8368	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8369	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8370$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8371if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8372  $as_echo_n "(cached) " >&6
8373else
8374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8375/* end confdefs.h.  */
8376int i;
8377_ACEOF
8378if ac_fn_c_try_compile "$LINENO"; then :
8379  xorg_cv_cc_flag_unknown_warning_option=yes
8380else
8381  xorg_cv_cc_flag_unknown_warning_option=no
8382fi
8383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8384fi
8385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8386$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8387	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8388	CFLAGS="$xorg_testset_save_CFLAGS"
8389fi
8390
8391if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8392	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8393		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8394	fi
8395	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8396	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8397$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8398if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8399  $as_echo_n "(cached) " >&6
8400else
8401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402/* end confdefs.h.  */
8403int i;
8404_ACEOF
8405if ac_fn_c_try_compile "$LINENO"; then :
8406  xorg_cv_cc_flag_unused_command_line_argument=yes
8407else
8408  xorg_cv_cc_flag_unused_command_line_argument=no
8409fi
8410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8411fi
8412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8413$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8414	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8415	CFLAGS="$xorg_testset_save_CFLAGS"
8416fi
8417
8418found="no"
8419
8420	if test $found = "no" ; then
8421		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8422			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8423		fi
8424
8425		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8426			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8427		fi
8428
8429		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8430
8431		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8432$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8433		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8434		if eval \${$cacheid+:} false; then :
8435  $as_echo_n "(cached) " >&6
8436else
8437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8438/* end confdefs.h.  */
8439int i;
8440int
8441main ()
8442{
8443
8444  ;
8445  return 0;
8446}
8447_ACEOF
8448if ac_fn_c_try_link "$LINENO"; then :
8449  eval $cacheid=yes
8450else
8451  eval $cacheid=no
8452fi
8453rm -f core conftest.err conftest.$ac_objext \
8454    conftest$ac_exeext conftest.$ac_ext
8455fi
8456
8457
8458		CFLAGS="$xorg_testset_save_CFLAGS"
8459
8460		eval supported=\$$cacheid
8461		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8462$as_echo "$supported" >&6; }
8463		if test "$supported" = "yes" ; then
8464			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8465			found="yes"
8466		fi
8467	fi
8468
8469 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8470else
8471{ $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
8472$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;}
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486xorg_testset_save_CFLAGS="$CFLAGS"
8487
8488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8489	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8490	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8491$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8492if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8493  $as_echo_n "(cached) " >&6
8494else
8495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496/* end confdefs.h.  */
8497int i;
8498_ACEOF
8499if ac_fn_c_try_compile "$LINENO"; then :
8500  xorg_cv_cc_flag_unknown_warning_option=yes
8501else
8502  xorg_cv_cc_flag_unknown_warning_option=no
8503fi
8504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8505fi
8506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8507$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8508	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8509	CFLAGS="$xorg_testset_save_CFLAGS"
8510fi
8511
8512if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8513	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8514		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8515	fi
8516	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8517	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8518$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8519if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8520  $as_echo_n "(cached) " >&6
8521else
8522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523/* end confdefs.h.  */
8524int i;
8525_ACEOF
8526if ac_fn_c_try_compile "$LINENO"; then :
8527  xorg_cv_cc_flag_unused_command_line_argument=yes
8528else
8529  xorg_cv_cc_flag_unused_command_line_argument=no
8530fi
8531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8532fi
8533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8534$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8535	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8536	CFLAGS="$xorg_testset_save_CFLAGS"
8537fi
8538
8539found="no"
8540
8541	if test $found = "no" ; then
8542		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8543			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8544		fi
8545
8546		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8547			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8548		fi
8549
8550		CFLAGS="$CFLAGS -Wimplicit"
8551
8552		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8553$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8554		cacheid=xorg_cv_cc_flag__Wimplicit
8555		if eval \${$cacheid+:} false; then :
8556  $as_echo_n "(cached) " >&6
8557else
8558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559/* end confdefs.h.  */
8560int i;
8561int
8562main ()
8563{
8564
8565  ;
8566  return 0;
8567}
8568_ACEOF
8569if ac_fn_c_try_link "$LINENO"; then :
8570  eval $cacheid=yes
8571else
8572  eval $cacheid=no
8573fi
8574rm -f core conftest.err conftest.$ac_objext \
8575    conftest$ac_exeext conftest.$ac_ext
8576fi
8577
8578
8579		CFLAGS="$xorg_testset_save_CFLAGS"
8580
8581		eval supported=\$$cacheid
8582		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8583$as_echo "$supported" >&6; }
8584		if test "$supported" = "yes" ; then
8585			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8586			found="yes"
8587		fi
8588	fi
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604xorg_testset_save_CFLAGS="$CFLAGS"
8605
8606if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8607	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8608	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8609$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8610if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8611  $as_echo_n "(cached) " >&6
8612else
8613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614/* end confdefs.h.  */
8615int i;
8616_ACEOF
8617if ac_fn_c_try_compile "$LINENO"; then :
8618  xorg_cv_cc_flag_unknown_warning_option=yes
8619else
8620  xorg_cv_cc_flag_unknown_warning_option=no
8621fi
8622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8623fi
8624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8625$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8626	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8627	CFLAGS="$xorg_testset_save_CFLAGS"
8628fi
8629
8630if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8631	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8632		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8633	fi
8634	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8635	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8636$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8637if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8638  $as_echo_n "(cached) " >&6
8639else
8640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641/* end confdefs.h.  */
8642int i;
8643_ACEOF
8644if ac_fn_c_try_compile "$LINENO"; then :
8645  xorg_cv_cc_flag_unused_command_line_argument=yes
8646else
8647  xorg_cv_cc_flag_unused_command_line_argument=no
8648fi
8649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8650fi
8651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8652$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8653	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8654	CFLAGS="$xorg_testset_save_CFLAGS"
8655fi
8656
8657found="no"
8658
8659	if test $found = "no" ; then
8660		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8661			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8662		fi
8663
8664		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8665			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8666		fi
8667
8668		CFLAGS="$CFLAGS -Wnonnull"
8669
8670		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8671$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8672		cacheid=xorg_cv_cc_flag__Wnonnull
8673		if eval \${$cacheid+:} false; then :
8674  $as_echo_n "(cached) " >&6
8675else
8676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8677/* end confdefs.h.  */
8678int i;
8679int
8680main ()
8681{
8682
8683  ;
8684  return 0;
8685}
8686_ACEOF
8687if ac_fn_c_try_link "$LINENO"; then :
8688  eval $cacheid=yes
8689else
8690  eval $cacheid=no
8691fi
8692rm -f core conftest.err conftest.$ac_objext \
8693    conftest$ac_exeext conftest.$ac_ext
8694fi
8695
8696
8697		CFLAGS="$xorg_testset_save_CFLAGS"
8698
8699		eval supported=\$$cacheid
8700		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8701$as_echo "$supported" >&6; }
8702		if test "$supported" = "yes" ; then
8703			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8704			found="yes"
8705		fi
8706	fi
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722xorg_testset_save_CFLAGS="$CFLAGS"
8723
8724if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8725	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8726	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8727$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8728if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8729  $as_echo_n "(cached) " >&6
8730else
8731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732/* end confdefs.h.  */
8733int i;
8734_ACEOF
8735if ac_fn_c_try_compile "$LINENO"; then :
8736  xorg_cv_cc_flag_unknown_warning_option=yes
8737else
8738  xorg_cv_cc_flag_unknown_warning_option=no
8739fi
8740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8741fi
8742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8743$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8744	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8745	CFLAGS="$xorg_testset_save_CFLAGS"
8746fi
8747
8748if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8749	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8750		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8751	fi
8752	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8753	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8754$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8755if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8756  $as_echo_n "(cached) " >&6
8757else
8758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8759/* end confdefs.h.  */
8760int i;
8761_ACEOF
8762if ac_fn_c_try_compile "$LINENO"; then :
8763  xorg_cv_cc_flag_unused_command_line_argument=yes
8764else
8765  xorg_cv_cc_flag_unused_command_line_argument=no
8766fi
8767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8768fi
8769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8770$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8771	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8772	CFLAGS="$xorg_testset_save_CFLAGS"
8773fi
8774
8775found="no"
8776
8777	if test $found = "no" ; then
8778		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8779			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8780		fi
8781
8782		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8783			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8784		fi
8785
8786		CFLAGS="$CFLAGS -Winit-self"
8787
8788		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8789$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8790		cacheid=xorg_cv_cc_flag__Winit_self
8791		if eval \${$cacheid+:} false; then :
8792  $as_echo_n "(cached) " >&6
8793else
8794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795/* end confdefs.h.  */
8796int i;
8797int
8798main ()
8799{
8800
8801  ;
8802  return 0;
8803}
8804_ACEOF
8805if ac_fn_c_try_link "$LINENO"; then :
8806  eval $cacheid=yes
8807else
8808  eval $cacheid=no
8809fi
8810rm -f core conftest.err conftest.$ac_objext \
8811    conftest$ac_exeext conftest.$ac_ext
8812fi
8813
8814
8815		CFLAGS="$xorg_testset_save_CFLAGS"
8816
8817		eval supported=\$$cacheid
8818		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8819$as_echo "$supported" >&6; }
8820		if test "$supported" = "yes" ; then
8821			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8822			found="yes"
8823		fi
8824	fi
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840xorg_testset_save_CFLAGS="$CFLAGS"
8841
8842if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8843	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8844	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8845$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8846if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8847  $as_echo_n "(cached) " >&6
8848else
8849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8850/* end confdefs.h.  */
8851int i;
8852_ACEOF
8853if ac_fn_c_try_compile "$LINENO"; then :
8854  xorg_cv_cc_flag_unknown_warning_option=yes
8855else
8856  xorg_cv_cc_flag_unknown_warning_option=no
8857fi
8858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8859fi
8860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8861$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8862	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8863	CFLAGS="$xorg_testset_save_CFLAGS"
8864fi
8865
8866if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8867	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8868		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8869	fi
8870	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8871	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8872$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8873if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8874  $as_echo_n "(cached) " >&6
8875else
8876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8877/* end confdefs.h.  */
8878int i;
8879_ACEOF
8880if ac_fn_c_try_compile "$LINENO"; then :
8881  xorg_cv_cc_flag_unused_command_line_argument=yes
8882else
8883  xorg_cv_cc_flag_unused_command_line_argument=no
8884fi
8885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8886fi
8887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8888$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8889	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8890	CFLAGS="$xorg_testset_save_CFLAGS"
8891fi
8892
8893found="no"
8894
8895	if test $found = "no" ; then
8896		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8897			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8898		fi
8899
8900		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8901			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8902		fi
8903
8904		CFLAGS="$CFLAGS -Wmain"
8905
8906		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8907$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8908		cacheid=xorg_cv_cc_flag__Wmain
8909		if eval \${$cacheid+:} false; then :
8910  $as_echo_n "(cached) " >&6
8911else
8912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913/* end confdefs.h.  */
8914int i;
8915int
8916main ()
8917{
8918
8919  ;
8920  return 0;
8921}
8922_ACEOF
8923if ac_fn_c_try_link "$LINENO"; then :
8924  eval $cacheid=yes
8925else
8926  eval $cacheid=no
8927fi
8928rm -f core conftest.err conftest.$ac_objext \
8929    conftest$ac_exeext conftest.$ac_ext
8930fi
8931
8932
8933		CFLAGS="$xorg_testset_save_CFLAGS"
8934
8935		eval supported=\$$cacheid
8936		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8937$as_echo "$supported" >&6; }
8938		if test "$supported" = "yes" ; then
8939			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8940			found="yes"
8941		fi
8942	fi
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958xorg_testset_save_CFLAGS="$CFLAGS"
8959
8960if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8961	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8962	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8963$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8964if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8965  $as_echo_n "(cached) " >&6
8966else
8967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8968/* end confdefs.h.  */
8969int i;
8970_ACEOF
8971if ac_fn_c_try_compile "$LINENO"; then :
8972  xorg_cv_cc_flag_unknown_warning_option=yes
8973else
8974  xorg_cv_cc_flag_unknown_warning_option=no
8975fi
8976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8977fi
8978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8979$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8980	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8981	CFLAGS="$xorg_testset_save_CFLAGS"
8982fi
8983
8984if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8985	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8986		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8987	fi
8988	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8989	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8990$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8991if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8992  $as_echo_n "(cached) " >&6
8993else
8994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995/* end confdefs.h.  */
8996int i;
8997_ACEOF
8998if ac_fn_c_try_compile "$LINENO"; then :
8999  xorg_cv_cc_flag_unused_command_line_argument=yes
9000else
9001  xorg_cv_cc_flag_unused_command_line_argument=no
9002fi
9003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9004fi
9005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9006$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9007	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9008	CFLAGS="$xorg_testset_save_CFLAGS"
9009fi
9010
9011found="no"
9012
9013	if test $found = "no" ; then
9014		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9015			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9016		fi
9017
9018		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9019			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9020		fi
9021
9022		CFLAGS="$CFLAGS -Wmissing-braces"
9023
9024		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9025$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9026		cacheid=xorg_cv_cc_flag__Wmissing_braces
9027		if eval \${$cacheid+:} false; then :
9028  $as_echo_n "(cached) " >&6
9029else
9030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031/* end confdefs.h.  */
9032int i;
9033int
9034main ()
9035{
9036
9037  ;
9038  return 0;
9039}
9040_ACEOF
9041if ac_fn_c_try_link "$LINENO"; then :
9042  eval $cacheid=yes
9043else
9044  eval $cacheid=no
9045fi
9046rm -f core conftest.err conftest.$ac_objext \
9047    conftest$ac_exeext conftest.$ac_ext
9048fi
9049
9050
9051		CFLAGS="$xorg_testset_save_CFLAGS"
9052
9053		eval supported=\$$cacheid
9054		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9055$as_echo "$supported" >&6; }
9056		if test "$supported" = "yes" ; then
9057			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9058			found="yes"
9059		fi
9060	fi
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076xorg_testset_save_CFLAGS="$CFLAGS"
9077
9078if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9079	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9080	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9081$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9082if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9083  $as_echo_n "(cached) " >&6
9084else
9085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086/* end confdefs.h.  */
9087int i;
9088_ACEOF
9089if ac_fn_c_try_compile "$LINENO"; then :
9090  xorg_cv_cc_flag_unknown_warning_option=yes
9091else
9092  xorg_cv_cc_flag_unknown_warning_option=no
9093fi
9094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9095fi
9096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9097$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9098	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9099	CFLAGS="$xorg_testset_save_CFLAGS"
9100fi
9101
9102if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9103	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9104		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9105	fi
9106	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9107	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9108$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9109if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9110  $as_echo_n "(cached) " >&6
9111else
9112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9113/* end confdefs.h.  */
9114int i;
9115_ACEOF
9116if ac_fn_c_try_compile "$LINENO"; then :
9117  xorg_cv_cc_flag_unused_command_line_argument=yes
9118else
9119  xorg_cv_cc_flag_unused_command_line_argument=no
9120fi
9121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9122fi
9123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9124$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9125	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9126	CFLAGS="$xorg_testset_save_CFLAGS"
9127fi
9128
9129found="no"
9130
9131	if test $found = "no" ; then
9132		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9133			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9134		fi
9135
9136		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9137			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9138		fi
9139
9140		CFLAGS="$CFLAGS -Wsequence-point"
9141
9142		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9143$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9144		cacheid=xorg_cv_cc_flag__Wsequence_point
9145		if eval \${$cacheid+:} false; then :
9146  $as_echo_n "(cached) " >&6
9147else
9148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9149/* end confdefs.h.  */
9150int i;
9151int
9152main ()
9153{
9154
9155  ;
9156  return 0;
9157}
9158_ACEOF
9159if ac_fn_c_try_link "$LINENO"; then :
9160  eval $cacheid=yes
9161else
9162  eval $cacheid=no
9163fi
9164rm -f core conftest.err conftest.$ac_objext \
9165    conftest$ac_exeext conftest.$ac_ext
9166fi
9167
9168
9169		CFLAGS="$xorg_testset_save_CFLAGS"
9170
9171		eval supported=\$$cacheid
9172		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9173$as_echo "$supported" >&6; }
9174		if test "$supported" = "yes" ; then
9175			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9176			found="yes"
9177		fi
9178	fi
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194xorg_testset_save_CFLAGS="$CFLAGS"
9195
9196if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9197	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9198	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9199$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9200if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9201  $as_echo_n "(cached) " >&6
9202else
9203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9204/* end confdefs.h.  */
9205int i;
9206_ACEOF
9207if ac_fn_c_try_compile "$LINENO"; then :
9208  xorg_cv_cc_flag_unknown_warning_option=yes
9209else
9210  xorg_cv_cc_flag_unknown_warning_option=no
9211fi
9212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9213fi
9214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9215$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9216	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9217	CFLAGS="$xorg_testset_save_CFLAGS"
9218fi
9219
9220if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9221	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9222		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9223	fi
9224	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9225	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9226$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9227if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9228  $as_echo_n "(cached) " >&6
9229else
9230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231/* end confdefs.h.  */
9232int i;
9233_ACEOF
9234if ac_fn_c_try_compile "$LINENO"; then :
9235  xorg_cv_cc_flag_unused_command_line_argument=yes
9236else
9237  xorg_cv_cc_flag_unused_command_line_argument=no
9238fi
9239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9240fi
9241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9242$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9243	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9244	CFLAGS="$xorg_testset_save_CFLAGS"
9245fi
9246
9247found="no"
9248
9249	if test $found = "no" ; then
9250		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9251			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9252		fi
9253
9254		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9255			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9256		fi
9257
9258		CFLAGS="$CFLAGS -Wreturn-type"
9259
9260		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9261$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9262		cacheid=xorg_cv_cc_flag__Wreturn_type
9263		if eval \${$cacheid+:} false; then :
9264  $as_echo_n "(cached) " >&6
9265else
9266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9267/* end confdefs.h.  */
9268int i;
9269int
9270main ()
9271{
9272
9273  ;
9274  return 0;
9275}
9276_ACEOF
9277if ac_fn_c_try_link "$LINENO"; then :
9278  eval $cacheid=yes
9279else
9280  eval $cacheid=no
9281fi
9282rm -f core conftest.err conftest.$ac_objext \
9283    conftest$ac_exeext conftest.$ac_ext
9284fi
9285
9286
9287		CFLAGS="$xorg_testset_save_CFLAGS"
9288
9289		eval supported=\$$cacheid
9290		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9291$as_echo "$supported" >&6; }
9292		if test "$supported" = "yes" ; then
9293			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9294			found="yes"
9295		fi
9296	fi
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312xorg_testset_save_CFLAGS="$CFLAGS"
9313
9314if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9315	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9316	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9317$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9318if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9319  $as_echo_n "(cached) " >&6
9320else
9321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9322/* end confdefs.h.  */
9323int i;
9324_ACEOF
9325if ac_fn_c_try_compile "$LINENO"; then :
9326  xorg_cv_cc_flag_unknown_warning_option=yes
9327else
9328  xorg_cv_cc_flag_unknown_warning_option=no
9329fi
9330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9331fi
9332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9333$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9334	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9335	CFLAGS="$xorg_testset_save_CFLAGS"
9336fi
9337
9338if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9339	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9340		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9341	fi
9342	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9343	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9344$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9345if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9346  $as_echo_n "(cached) " >&6
9347else
9348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9349/* end confdefs.h.  */
9350int i;
9351_ACEOF
9352if ac_fn_c_try_compile "$LINENO"; then :
9353  xorg_cv_cc_flag_unused_command_line_argument=yes
9354else
9355  xorg_cv_cc_flag_unused_command_line_argument=no
9356fi
9357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9358fi
9359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9360$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9361	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9362	CFLAGS="$xorg_testset_save_CFLAGS"
9363fi
9364
9365found="no"
9366
9367	if test $found = "no" ; then
9368		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9369			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9370		fi
9371
9372		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9373			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9374		fi
9375
9376		CFLAGS="$CFLAGS -Wtrigraphs"
9377
9378		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9379$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9380		cacheid=xorg_cv_cc_flag__Wtrigraphs
9381		if eval \${$cacheid+:} false; then :
9382  $as_echo_n "(cached) " >&6
9383else
9384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9385/* end confdefs.h.  */
9386int i;
9387int
9388main ()
9389{
9390
9391  ;
9392  return 0;
9393}
9394_ACEOF
9395if ac_fn_c_try_link "$LINENO"; then :
9396  eval $cacheid=yes
9397else
9398  eval $cacheid=no
9399fi
9400rm -f core conftest.err conftest.$ac_objext \
9401    conftest$ac_exeext conftest.$ac_ext
9402fi
9403
9404
9405		CFLAGS="$xorg_testset_save_CFLAGS"
9406
9407		eval supported=\$$cacheid
9408		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9409$as_echo "$supported" >&6; }
9410		if test "$supported" = "yes" ; then
9411			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9412			found="yes"
9413		fi
9414	fi
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430xorg_testset_save_CFLAGS="$CFLAGS"
9431
9432if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9433	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9434	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9435$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9436if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9437  $as_echo_n "(cached) " >&6
9438else
9439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9440/* end confdefs.h.  */
9441int i;
9442_ACEOF
9443if ac_fn_c_try_compile "$LINENO"; then :
9444  xorg_cv_cc_flag_unknown_warning_option=yes
9445else
9446  xorg_cv_cc_flag_unknown_warning_option=no
9447fi
9448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9449fi
9450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9451$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9452	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9453	CFLAGS="$xorg_testset_save_CFLAGS"
9454fi
9455
9456if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9457	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9458		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9459	fi
9460	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9461	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9462$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9463if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9464  $as_echo_n "(cached) " >&6
9465else
9466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9467/* end confdefs.h.  */
9468int i;
9469_ACEOF
9470if ac_fn_c_try_compile "$LINENO"; then :
9471  xorg_cv_cc_flag_unused_command_line_argument=yes
9472else
9473  xorg_cv_cc_flag_unused_command_line_argument=no
9474fi
9475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9476fi
9477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9478$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9479	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9480	CFLAGS="$xorg_testset_save_CFLAGS"
9481fi
9482
9483found="no"
9484
9485	if test $found = "no" ; then
9486		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9487			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9488		fi
9489
9490		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9491			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9492		fi
9493
9494		CFLAGS="$CFLAGS -Warray-bounds"
9495
9496		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9497$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9498		cacheid=xorg_cv_cc_flag__Warray_bounds
9499		if eval \${$cacheid+:} false; then :
9500  $as_echo_n "(cached) " >&6
9501else
9502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503/* end confdefs.h.  */
9504int i;
9505int
9506main ()
9507{
9508
9509  ;
9510  return 0;
9511}
9512_ACEOF
9513if ac_fn_c_try_link "$LINENO"; then :
9514  eval $cacheid=yes
9515else
9516  eval $cacheid=no
9517fi
9518rm -f core conftest.err conftest.$ac_objext \
9519    conftest$ac_exeext conftest.$ac_ext
9520fi
9521
9522
9523		CFLAGS="$xorg_testset_save_CFLAGS"
9524
9525		eval supported=\$$cacheid
9526		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9527$as_echo "$supported" >&6; }
9528		if test "$supported" = "yes" ; then
9529			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9530			found="yes"
9531		fi
9532	fi
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548xorg_testset_save_CFLAGS="$CFLAGS"
9549
9550if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9551	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9552	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9553$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9554if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9555  $as_echo_n "(cached) " >&6
9556else
9557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558/* end confdefs.h.  */
9559int i;
9560_ACEOF
9561if ac_fn_c_try_compile "$LINENO"; then :
9562  xorg_cv_cc_flag_unknown_warning_option=yes
9563else
9564  xorg_cv_cc_flag_unknown_warning_option=no
9565fi
9566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9567fi
9568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9569$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9570	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9571	CFLAGS="$xorg_testset_save_CFLAGS"
9572fi
9573
9574if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9575	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9576		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9577	fi
9578	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9579	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9580$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9581if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9582  $as_echo_n "(cached) " >&6
9583else
9584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585/* end confdefs.h.  */
9586int i;
9587_ACEOF
9588if ac_fn_c_try_compile "$LINENO"; then :
9589  xorg_cv_cc_flag_unused_command_line_argument=yes
9590else
9591  xorg_cv_cc_flag_unused_command_line_argument=no
9592fi
9593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9594fi
9595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9596$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9597	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9598	CFLAGS="$xorg_testset_save_CFLAGS"
9599fi
9600
9601found="no"
9602
9603	if test $found = "no" ; then
9604		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9605			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9606		fi
9607
9608		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9609			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9610		fi
9611
9612		CFLAGS="$CFLAGS -Wwrite-strings"
9613
9614		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9615$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9616		cacheid=xorg_cv_cc_flag__Wwrite_strings
9617		if eval \${$cacheid+:} false; then :
9618  $as_echo_n "(cached) " >&6
9619else
9620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621/* end confdefs.h.  */
9622int i;
9623int
9624main ()
9625{
9626
9627  ;
9628  return 0;
9629}
9630_ACEOF
9631if ac_fn_c_try_link "$LINENO"; then :
9632  eval $cacheid=yes
9633else
9634  eval $cacheid=no
9635fi
9636rm -f core conftest.err conftest.$ac_objext \
9637    conftest$ac_exeext conftest.$ac_ext
9638fi
9639
9640
9641		CFLAGS="$xorg_testset_save_CFLAGS"
9642
9643		eval supported=\$$cacheid
9644		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9645$as_echo "$supported" >&6; }
9646		if test "$supported" = "yes" ; then
9647			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9648			found="yes"
9649		fi
9650	fi
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666xorg_testset_save_CFLAGS="$CFLAGS"
9667
9668if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9669	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9670	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9671$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9672if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9673  $as_echo_n "(cached) " >&6
9674else
9675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9676/* end confdefs.h.  */
9677int i;
9678_ACEOF
9679if ac_fn_c_try_compile "$LINENO"; then :
9680  xorg_cv_cc_flag_unknown_warning_option=yes
9681else
9682  xorg_cv_cc_flag_unknown_warning_option=no
9683fi
9684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9685fi
9686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9687$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9688	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9689	CFLAGS="$xorg_testset_save_CFLAGS"
9690fi
9691
9692if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9693	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9694		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9695	fi
9696	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9697	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9698$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9699if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9700  $as_echo_n "(cached) " >&6
9701else
9702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9703/* end confdefs.h.  */
9704int i;
9705_ACEOF
9706if ac_fn_c_try_compile "$LINENO"; then :
9707  xorg_cv_cc_flag_unused_command_line_argument=yes
9708else
9709  xorg_cv_cc_flag_unused_command_line_argument=no
9710fi
9711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9712fi
9713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9714$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9715	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9716	CFLAGS="$xorg_testset_save_CFLAGS"
9717fi
9718
9719found="no"
9720
9721	if test $found = "no" ; then
9722		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9723			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9724		fi
9725
9726		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9727			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9728		fi
9729
9730		CFLAGS="$CFLAGS -Waddress"
9731
9732		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9733$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9734		cacheid=xorg_cv_cc_flag__Waddress
9735		if eval \${$cacheid+:} false; then :
9736  $as_echo_n "(cached) " >&6
9737else
9738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9739/* end confdefs.h.  */
9740int i;
9741int
9742main ()
9743{
9744
9745  ;
9746  return 0;
9747}
9748_ACEOF
9749if ac_fn_c_try_link "$LINENO"; then :
9750  eval $cacheid=yes
9751else
9752  eval $cacheid=no
9753fi
9754rm -f core conftest.err conftest.$ac_objext \
9755    conftest$ac_exeext conftest.$ac_ext
9756fi
9757
9758
9759		CFLAGS="$xorg_testset_save_CFLAGS"
9760
9761		eval supported=\$$cacheid
9762		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9763$as_echo "$supported" >&6; }
9764		if test "$supported" = "yes" ; then
9765			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9766			found="yes"
9767		fi
9768	fi
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784xorg_testset_save_CFLAGS="$CFLAGS"
9785
9786if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9787	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9788	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9789$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9790if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9791  $as_echo_n "(cached) " >&6
9792else
9793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9794/* end confdefs.h.  */
9795int i;
9796_ACEOF
9797if ac_fn_c_try_compile "$LINENO"; then :
9798  xorg_cv_cc_flag_unknown_warning_option=yes
9799else
9800  xorg_cv_cc_flag_unknown_warning_option=no
9801fi
9802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9803fi
9804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9805$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9806	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9807	CFLAGS="$xorg_testset_save_CFLAGS"
9808fi
9809
9810if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9811	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9812		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9813	fi
9814	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9815	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9816$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9817if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9818  $as_echo_n "(cached) " >&6
9819else
9820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821/* end confdefs.h.  */
9822int i;
9823_ACEOF
9824if ac_fn_c_try_compile "$LINENO"; then :
9825  xorg_cv_cc_flag_unused_command_line_argument=yes
9826else
9827  xorg_cv_cc_flag_unused_command_line_argument=no
9828fi
9829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9830fi
9831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9832$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9833	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9834	CFLAGS="$xorg_testset_save_CFLAGS"
9835fi
9836
9837found="no"
9838
9839	if test $found = "no" ; then
9840		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9841			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9842		fi
9843
9844		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9845			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9846		fi
9847
9848		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9849
9850		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9851$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9852		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9853		if eval \${$cacheid+:} false; then :
9854  $as_echo_n "(cached) " >&6
9855else
9856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9857/* end confdefs.h.  */
9858int i;
9859int
9860main ()
9861{
9862
9863  ;
9864  return 0;
9865}
9866_ACEOF
9867if ac_fn_c_try_link "$LINENO"; then :
9868  eval $cacheid=yes
9869else
9870  eval $cacheid=no
9871fi
9872rm -f core conftest.err conftest.$ac_objext \
9873    conftest$ac_exeext conftest.$ac_ext
9874fi
9875
9876
9877		CFLAGS="$xorg_testset_save_CFLAGS"
9878
9879		eval supported=\$$cacheid
9880		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9881$as_echo "$supported" >&6; }
9882		if test "$supported" = "yes" ; then
9883			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9884			found="yes"
9885		fi
9886	fi
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902xorg_testset_save_CFLAGS="$CFLAGS"
9903
9904if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9905	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9906	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9907$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9908if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9909  $as_echo_n "(cached) " >&6
9910else
9911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9912/* end confdefs.h.  */
9913int i;
9914_ACEOF
9915if ac_fn_c_try_compile "$LINENO"; then :
9916  xorg_cv_cc_flag_unknown_warning_option=yes
9917else
9918  xorg_cv_cc_flag_unknown_warning_option=no
9919fi
9920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9921fi
9922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9923$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9924	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9925	CFLAGS="$xorg_testset_save_CFLAGS"
9926fi
9927
9928if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9929	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9930		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9931	fi
9932	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9933	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9934$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9935if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9936  $as_echo_n "(cached) " >&6
9937else
9938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9939/* end confdefs.h.  */
9940int i;
9941_ACEOF
9942if ac_fn_c_try_compile "$LINENO"; then :
9943  xorg_cv_cc_flag_unused_command_line_argument=yes
9944else
9945  xorg_cv_cc_flag_unused_command_line_argument=no
9946fi
9947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9948fi
9949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9950$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9951	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9952	CFLAGS="$xorg_testset_save_CFLAGS"
9953fi
9954
9955found="no"
9956
9957	if test $found = "no" ; then
9958		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9959			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9960		fi
9961
9962		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9963			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9964		fi
9965
9966		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9967
9968		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9969$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9970		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9971		if eval \${$cacheid+:} false; then :
9972  $as_echo_n "(cached) " >&6
9973else
9974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9975/* end confdefs.h.  */
9976int i;
9977int
9978main ()
9979{
9980
9981  ;
9982  return 0;
9983}
9984_ACEOF
9985if ac_fn_c_try_link "$LINENO"; then :
9986  eval $cacheid=yes
9987else
9988  eval $cacheid=no
9989fi
9990rm -f core conftest.err conftest.$ac_objext \
9991    conftest$ac_exeext conftest.$ac_ext
9992fi
9993
9994
9995		CFLAGS="$xorg_testset_save_CFLAGS"
9996
9997		eval supported=\$$cacheid
9998		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9999$as_echo "$supported" >&6; }
10000		if test "$supported" = "yes" ; then
10001			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10002			found="yes"
10003		fi
10004	fi
10005
10006
10007fi
10008
10009
10010
10011
10012
10013
10014
10015		CWARNFLAGS="$BASE_CFLAGS"
10016		if  test "x$GCC" = xyes ; then
10017		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10018		fi
10019
10020
10021
10022
10023
10024
10025
10026
10027# Check whether --enable-strict-compilation was given.
10028if test "${enable_strict_compilation+set}" = set; then :
10029  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10030else
10031  STRICT_COMPILE=no
10032fi
10033
10034
10035
10036
10037
10038
10039STRICT_CFLAGS=""
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053xorg_testset_save_CFLAGS="$CFLAGS"
10054
10055if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10056	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10057	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10058$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10059if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10060  $as_echo_n "(cached) " >&6
10061else
10062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10063/* end confdefs.h.  */
10064int i;
10065_ACEOF
10066if ac_fn_c_try_compile "$LINENO"; then :
10067  xorg_cv_cc_flag_unknown_warning_option=yes
10068else
10069  xorg_cv_cc_flag_unknown_warning_option=no
10070fi
10071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10072fi
10073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10074$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10075	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10076	CFLAGS="$xorg_testset_save_CFLAGS"
10077fi
10078
10079if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10080	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10081		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10082	fi
10083	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10084	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10085$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10086if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10087  $as_echo_n "(cached) " >&6
10088else
10089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10090/* end confdefs.h.  */
10091int i;
10092_ACEOF
10093if ac_fn_c_try_compile "$LINENO"; then :
10094  xorg_cv_cc_flag_unused_command_line_argument=yes
10095else
10096  xorg_cv_cc_flag_unused_command_line_argument=no
10097fi
10098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10099fi
10100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10101$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10102	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10103	CFLAGS="$xorg_testset_save_CFLAGS"
10104fi
10105
10106found="no"
10107
10108	if test $found = "no" ; then
10109		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10110			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10111		fi
10112
10113		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10114			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10115		fi
10116
10117		CFLAGS="$CFLAGS -pedantic"
10118
10119		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10120$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10121		cacheid=xorg_cv_cc_flag__pedantic
10122		if eval \${$cacheid+:} false; then :
10123  $as_echo_n "(cached) " >&6
10124else
10125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10126/* end confdefs.h.  */
10127int i;
10128int
10129main ()
10130{
10131
10132  ;
10133  return 0;
10134}
10135_ACEOF
10136if ac_fn_c_try_link "$LINENO"; then :
10137  eval $cacheid=yes
10138else
10139  eval $cacheid=no
10140fi
10141rm -f core conftest.err conftest.$ac_objext \
10142    conftest$ac_exeext conftest.$ac_ext
10143fi
10144
10145
10146		CFLAGS="$xorg_testset_save_CFLAGS"
10147
10148		eval supported=\$$cacheid
10149		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10150$as_echo "$supported" >&6; }
10151		if test "$supported" = "yes" ; then
10152			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10153			found="yes"
10154		fi
10155	fi
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171xorg_testset_save_CFLAGS="$CFLAGS"
10172
10173if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10174	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10175	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10176$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10177if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10178  $as_echo_n "(cached) " >&6
10179else
10180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181/* end confdefs.h.  */
10182int i;
10183_ACEOF
10184if ac_fn_c_try_compile "$LINENO"; then :
10185  xorg_cv_cc_flag_unknown_warning_option=yes
10186else
10187  xorg_cv_cc_flag_unknown_warning_option=no
10188fi
10189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10190fi
10191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10192$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10193	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10194	CFLAGS="$xorg_testset_save_CFLAGS"
10195fi
10196
10197if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10198	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10199		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10200	fi
10201	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10202	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10203$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10204if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10205  $as_echo_n "(cached) " >&6
10206else
10207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10208/* end confdefs.h.  */
10209int i;
10210_ACEOF
10211if ac_fn_c_try_compile "$LINENO"; then :
10212  xorg_cv_cc_flag_unused_command_line_argument=yes
10213else
10214  xorg_cv_cc_flag_unused_command_line_argument=no
10215fi
10216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10217fi
10218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10219$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10220	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10221	CFLAGS="$xorg_testset_save_CFLAGS"
10222fi
10223
10224found="no"
10225
10226	if test $found = "no" ; then
10227		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10228			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10229		fi
10230
10231		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10232			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10233		fi
10234
10235		CFLAGS="$CFLAGS -Werror"
10236
10237		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10238$as_echo_n "checking if $CC supports -Werror... " >&6; }
10239		cacheid=xorg_cv_cc_flag__Werror
10240		if eval \${$cacheid+:} false; then :
10241  $as_echo_n "(cached) " >&6
10242else
10243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10244/* end confdefs.h.  */
10245int i;
10246int
10247main ()
10248{
10249
10250  ;
10251  return 0;
10252}
10253_ACEOF
10254if ac_fn_c_try_link "$LINENO"; then :
10255  eval $cacheid=yes
10256else
10257  eval $cacheid=no
10258fi
10259rm -f core conftest.err conftest.$ac_objext \
10260    conftest$ac_exeext conftest.$ac_ext
10261fi
10262
10263
10264		CFLAGS="$xorg_testset_save_CFLAGS"
10265
10266		eval supported=\$$cacheid
10267		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10268$as_echo "$supported" >&6; }
10269		if test "$supported" = "yes" ; then
10270			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10271			found="yes"
10272		fi
10273	fi
10274
10275	if test $found = "no" ; then
10276		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10277			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10278		fi
10279
10280		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10281			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10282		fi
10283
10284		CFLAGS="$CFLAGS -errwarn"
10285
10286		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10287$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10288		cacheid=xorg_cv_cc_flag__errwarn
10289		if eval \${$cacheid+:} false; then :
10290  $as_echo_n "(cached) " >&6
10291else
10292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10293/* end confdefs.h.  */
10294int i;
10295int
10296main ()
10297{
10298
10299  ;
10300  return 0;
10301}
10302_ACEOF
10303if ac_fn_c_try_link "$LINENO"; then :
10304  eval $cacheid=yes
10305else
10306  eval $cacheid=no
10307fi
10308rm -f core conftest.err conftest.$ac_objext \
10309    conftest$ac_exeext conftest.$ac_ext
10310fi
10311
10312
10313		CFLAGS="$xorg_testset_save_CFLAGS"
10314
10315		eval supported=\$$cacheid
10316		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10317$as_echo "$supported" >&6; }
10318		if test "$supported" = "yes" ; then
10319			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10320			found="yes"
10321		fi
10322	fi
10323
10324
10325
10326# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10327# activate it with -Werror, so we add it here explicitly.
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341xorg_testset_save_CFLAGS="$CFLAGS"
10342
10343if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10344	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10345	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10346$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10347if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10348  $as_echo_n "(cached) " >&6
10349else
10350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10351/* end confdefs.h.  */
10352int i;
10353_ACEOF
10354if ac_fn_c_try_compile "$LINENO"; then :
10355  xorg_cv_cc_flag_unknown_warning_option=yes
10356else
10357  xorg_cv_cc_flag_unknown_warning_option=no
10358fi
10359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10360fi
10361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10362$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10363	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10364	CFLAGS="$xorg_testset_save_CFLAGS"
10365fi
10366
10367if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10368	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10369		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10370	fi
10371	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10372	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10373$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10374if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10375  $as_echo_n "(cached) " >&6
10376else
10377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10378/* end confdefs.h.  */
10379int i;
10380_ACEOF
10381if ac_fn_c_try_compile "$LINENO"; then :
10382  xorg_cv_cc_flag_unused_command_line_argument=yes
10383else
10384  xorg_cv_cc_flag_unused_command_line_argument=no
10385fi
10386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10387fi
10388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10389$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10390	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10391	CFLAGS="$xorg_testset_save_CFLAGS"
10392fi
10393
10394found="no"
10395
10396	if test $found = "no" ; then
10397		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10398			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10399		fi
10400
10401		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10402			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10403		fi
10404
10405		CFLAGS="$CFLAGS -Werror=attributes"
10406
10407		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10408$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10409		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10410		if eval \${$cacheid+:} false; then :
10411  $as_echo_n "(cached) " >&6
10412else
10413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10414/* end confdefs.h.  */
10415int i;
10416int
10417main ()
10418{
10419
10420  ;
10421  return 0;
10422}
10423_ACEOF
10424if ac_fn_c_try_link "$LINENO"; then :
10425  eval $cacheid=yes
10426else
10427  eval $cacheid=no
10428fi
10429rm -f core conftest.err conftest.$ac_objext \
10430    conftest$ac_exeext conftest.$ac_ext
10431fi
10432
10433
10434		CFLAGS="$xorg_testset_save_CFLAGS"
10435
10436		eval supported=\$$cacheid
10437		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10438$as_echo "$supported" >&6; }
10439		if test "$supported" = "yes" ; then
10440			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10441			found="yes"
10442		fi
10443	fi
10444
10445
10446
10447if test "x$STRICT_COMPILE" = "xyes"; then
10448    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10449    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10450fi
10451
10452
10453
10454
10455
10456
10457cat >>confdefs.h <<_ACEOF
10458#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10459_ACEOF
10460
10461	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10462	if test "x$PVM" = "x"; then
10463		PVM="0"
10464	fi
10465
10466cat >>confdefs.h <<_ACEOF
10467#define PACKAGE_VERSION_MINOR $PVM
10468_ACEOF
10469
10470	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10471	if test "x$PVP" = "x"; then
10472		PVP="0"
10473	fi
10474
10475cat >>confdefs.h <<_ACEOF
10476#define PACKAGE_VERSION_PATCHLEVEL $PVP
10477_ACEOF
10478
10479
10480
10481CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10482mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10483|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10484echo 'git directory not found: installing possibly empty changelog.' >&2)"
10485
10486
10487
10488
10489macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10490INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10491mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10492|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10493echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10494
10495
10496
10497
10498
10499
10500if test x$APP_MAN_SUFFIX = x    ; then
10501    APP_MAN_SUFFIX=1
10502fi
10503if test x$APP_MAN_DIR = x    ; then
10504    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10505fi
10506
10507if test x$LIB_MAN_SUFFIX = x    ; then
10508    LIB_MAN_SUFFIX=3
10509fi
10510if test x$LIB_MAN_DIR = x    ; then
10511    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10512fi
10513
10514if test x$FILE_MAN_SUFFIX = x    ; then
10515    case $host_os in
10516	solaris*)	FILE_MAN_SUFFIX=4  ;;
10517	*)		FILE_MAN_SUFFIX=5  ;;
10518    esac
10519fi
10520if test x$FILE_MAN_DIR = x    ; then
10521    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10522fi
10523
10524if test x$MISC_MAN_SUFFIX = x    ; then
10525    case $host_os in
10526	solaris*)	MISC_MAN_SUFFIX=5  ;;
10527	*)		MISC_MAN_SUFFIX=7  ;;
10528    esac
10529fi
10530if test x$MISC_MAN_DIR = x    ; then
10531    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10532fi
10533
10534if test x$DRIVER_MAN_SUFFIX = x    ; then
10535    case $host_os in
10536	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10537	*)		DRIVER_MAN_SUFFIX=4  ;;
10538    esac
10539fi
10540if test x$DRIVER_MAN_DIR = x    ; then
10541    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10542fi
10543
10544if test x$ADMIN_MAN_SUFFIX = x    ; then
10545    case $host_os in
10546	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10547	*)		ADMIN_MAN_SUFFIX=8  ;;
10548    esac
10549fi
10550if test x$ADMIN_MAN_DIR = x    ; then
10551    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10552fi
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568XORG_MAN_PAGE="X Version 11"
10569
10570MAN_SUBSTS="\
10571	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10572	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10573	-e 's|__xservername__|Xorg|g' \
10574	-e 's|__xconfigfile__|xorg.conf|g' \
10575	-e 's|__projectroot__|\$(prefix)|g' \
10576	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10577	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10578	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10579	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10580	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10581	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10582	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10583
10584
10585
10586# Check whether --enable-silent-rules was given.
10587if test "${enable_silent_rules+set}" = set; then :
10588  enableval=$enable_silent_rules;
10589fi
10590
10591case $enable_silent_rules in
10592yes) AM_DEFAULT_VERBOSITY=0;;
10593no)  AM_DEFAULT_VERBOSITY=1;;
10594*)   AM_DEFAULT_VERBOSITY=0;;
10595esac
10596am_make=${MAKE-make}
10597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10598$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10599if ${am_cv_make_support_nested_variables+:} false; then :
10600  $as_echo_n "(cached) " >&6
10601else
10602  if $as_echo 'TRUE=$(BAR$(V))
10603BAR0=false
10604BAR1=true
10605V=1
10606am__doit:
10607	@$(TRUE)
10608.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10609  am_cv_make_support_nested_variables=yes
10610else
10611  am_cv_make_support_nested_variables=no
10612fi
10613fi
10614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10615$as_echo "$am_cv_make_support_nested_variables" >&6; }
10616if test $am_cv_make_support_nested_variables = yes; then
10617    AM_V='$(V)'
10618  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10619else
10620  AM_V=$AM_DEFAULT_VERBOSITY
10621  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10622fi
10623AM_BACKSLASH='\'
10624
10625
10626
10627# Initialize libtool
10628# Check whether --enable-static was given.
10629if test "${enable_static+set}" = set; then :
10630  enableval=$enable_static; p=${PACKAGE-default}
10631    case $enableval in
10632    yes) enable_static=yes ;;
10633    no) enable_static=no ;;
10634    *)
10635     enable_static=no
10636      # Look at the argument we got.  We use all the common list separators.
10637      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10638      for pkg in $enableval; do
10639	IFS="$lt_save_ifs"
10640	if test "X$pkg" = "X$p"; then
10641	  enable_static=yes
10642	fi
10643      done
10644      IFS="$lt_save_ifs"
10645      ;;
10646    esac
10647else
10648  enable_static=no
10649fi
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659case `pwd` in
10660  *\ * | *\	*)
10661    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10662$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10663esac
10664
10665
10666
10667macro_version='2.4.2'
10668macro_revision='1.3337'
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682ltmain="$ac_aux_dir/ltmain.sh"
10683
10684# Backslashify metacharacters that are still active within
10685# double-quoted strings.
10686sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10687
10688# Same as above, but do not quote variable references.
10689double_quote_subst='s/\(["`\\]\)/\\\1/g'
10690
10691# Sed substitution to delay expansion of an escaped shell variable in a
10692# double_quote_subst'ed string.
10693delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10694
10695# Sed substitution to delay expansion of an escaped single quote.
10696delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10697
10698# Sed substitution to avoid accidental globbing in evaled expressions
10699no_glob_subst='s/\*/\\\*/g'
10700
10701ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10702ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10703ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10704
10705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10706$as_echo_n "checking how to print strings... " >&6; }
10707# Test print first, because it will be a builtin if present.
10708if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10709   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10710  ECHO='print -r --'
10711elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10712  ECHO='printf %s\n'
10713else
10714  # Use this function as a fallback that always works.
10715  func_fallback_echo ()
10716  {
10717    eval 'cat <<_LTECHO_EOF
10718$1
10719_LTECHO_EOF'
10720  }
10721  ECHO='func_fallback_echo'
10722fi
10723
10724# func_echo_all arg...
10725# Invoke $ECHO with all args, space-separated.
10726func_echo_all ()
10727{
10728    $ECHO ""
10729}
10730
10731case "$ECHO" in
10732  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10733$as_echo "printf" >&6; } ;;
10734  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10735$as_echo "print -r" >&6; } ;;
10736  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10737$as_echo "cat" >&6; } ;;
10738esac
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10754$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10755if ${ac_cv_path_SED+:} false; then :
10756  $as_echo_n "(cached) " >&6
10757else
10758            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10759     for ac_i in 1 2 3 4 5 6 7; do
10760       ac_script="$ac_script$as_nl$ac_script"
10761     done
10762     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10763     { ac_script=; unset ac_script;}
10764     if test -z "$SED"; then
10765  ac_path_SED_found=false
10766  # Loop through the user's path and test for each of PROGNAME-LIST
10767  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10768for as_dir in $PATH
10769do
10770  IFS=$as_save_IFS
10771  test -z "$as_dir" && as_dir=.
10772    for ac_prog in sed gsed; do
10773    for ac_exec_ext in '' $ac_executable_extensions; do
10774      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10775      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
10776# Check for GNU ac_path_SED and select it if it is found.
10777  # Check for GNU $ac_path_SED
10778case `"$ac_path_SED" --version 2>&1` in
10779*GNU*)
10780  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10781*)
10782  ac_count=0
10783  $as_echo_n 0123456789 >"conftest.in"
10784  while :
10785  do
10786    cat "conftest.in" "conftest.in" >"conftest.tmp"
10787    mv "conftest.tmp" "conftest.in"
10788    cp "conftest.in" "conftest.nl"
10789    $as_echo '' >> "conftest.nl"
10790    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10791    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10792    as_fn_arith $ac_count + 1 && ac_count=$as_val
10793    if test $ac_count -gt ${ac_path_SED_max-0}; then
10794      # Best one so far, save it but keep looking for a better one
10795      ac_cv_path_SED="$ac_path_SED"
10796      ac_path_SED_max=$ac_count
10797    fi
10798    # 10*(2^10) chars as input seems more than enough
10799    test $ac_count -gt 10 && break
10800  done
10801  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10802esac
10803
10804      $ac_path_SED_found && break 3
10805    done
10806  done
10807  done
10808IFS=$as_save_IFS
10809  if test -z "$ac_cv_path_SED"; then
10810    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10811  fi
10812else
10813  ac_cv_path_SED=$SED
10814fi
10815
10816fi
10817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10818$as_echo "$ac_cv_path_SED" >&6; }
10819 SED="$ac_cv_path_SED"
10820  rm -f conftest.sed
10821
10822test -z "$SED" && SED=sed
10823Xsed="$SED -e 1s/^X//"
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10836$as_echo_n "checking for fgrep... " >&6; }
10837if ${ac_cv_path_FGREP+:} false; then :
10838  $as_echo_n "(cached) " >&6
10839else
10840  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10841   then ac_cv_path_FGREP="$GREP -F"
10842   else
10843     if test -z "$FGREP"; then
10844  ac_path_FGREP_found=false
10845  # Loop through the user's path and test for each of PROGNAME-LIST
10846  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10847for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10848do
10849  IFS=$as_save_IFS
10850  test -z "$as_dir" && as_dir=.
10851    for ac_prog in fgrep; do
10852    for ac_exec_ext in '' $ac_executable_extensions; do
10853      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10854      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
10855# Check for GNU ac_path_FGREP and select it if it is found.
10856  # Check for GNU $ac_path_FGREP
10857case `"$ac_path_FGREP" --version 2>&1` in
10858*GNU*)
10859  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10860*)
10861  ac_count=0
10862  $as_echo_n 0123456789 >"conftest.in"
10863  while :
10864  do
10865    cat "conftest.in" "conftest.in" >"conftest.tmp"
10866    mv "conftest.tmp" "conftest.in"
10867    cp "conftest.in" "conftest.nl"
10868    $as_echo 'FGREP' >> "conftest.nl"
10869    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10870    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10871    as_fn_arith $ac_count + 1 && ac_count=$as_val
10872    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10873      # Best one so far, save it but keep looking for a better one
10874      ac_cv_path_FGREP="$ac_path_FGREP"
10875      ac_path_FGREP_max=$ac_count
10876    fi
10877    # 10*(2^10) chars as input seems more than enough
10878    test $ac_count -gt 10 && break
10879  done
10880  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10881esac
10882
10883      $ac_path_FGREP_found && break 3
10884    done
10885  done
10886  done
10887IFS=$as_save_IFS
10888  if test -z "$ac_cv_path_FGREP"; then
10889    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10890  fi
10891else
10892  ac_cv_path_FGREP=$FGREP
10893fi
10894
10895   fi
10896fi
10897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10898$as_echo "$ac_cv_path_FGREP" >&6; }
10899 FGREP="$ac_cv_path_FGREP"
10900
10901
10902test -z "$GREP" && GREP=grep
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922# Check whether --with-gnu-ld was given.
10923if test "${with_gnu_ld+set}" = set; then :
10924  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10925else
10926  with_gnu_ld=no
10927fi
10928
10929ac_prog=ld
10930if test "$GCC" = yes; then
10931  # Check if gcc -print-prog-name=ld gives a path.
10932  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10933$as_echo_n "checking for ld used by $CC... " >&6; }
10934  case $host in
10935  *-*-mingw*)
10936    # gcc leaves a trailing carriage return which upsets mingw
10937    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10938  *)
10939    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10940  esac
10941  case $ac_prog in
10942    # Accept absolute paths.
10943    [\\/]* | ?:[\\/]*)
10944      re_direlt='/[^/][^/]*/\.\./'
10945      # Canonicalize the pathname of ld
10946      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10947      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10948	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10949      done
10950      test -z "$LD" && LD="$ac_prog"
10951      ;;
10952  "")
10953    # If it fails, then pretend we aren't using GCC.
10954    ac_prog=ld
10955    ;;
10956  *)
10957    # If it is relative, then search for the first ld in PATH.
10958    with_gnu_ld=unknown
10959    ;;
10960  esac
10961elif test "$with_gnu_ld" = yes; then
10962  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10963$as_echo_n "checking for GNU ld... " >&6; }
10964else
10965  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10966$as_echo_n "checking for non-GNU ld... " >&6; }
10967fi
10968if ${lt_cv_path_LD+:} false; then :
10969  $as_echo_n "(cached) " >&6
10970else
10971  if test -z "$LD"; then
10972  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10973  for ac_dir in $PATH; do
10974    IFS="$lt_save_ifs"
10975    test -z "$ac_dir" && ac_dir=.
10976    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10977      lt_cv_path_LD="$ac_dir/$ac_prog"
10978      # Check to see if the program is GNU ld.  I'd rather use --version,
10979      # but apparently some variants of GNU ld only accept -v.
10980      # Break only if it was the GNU/non-GNU ld that we prefer.
10981      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10982      *GNU* | *'with BFD'*)
10983	test "$with_gnu_ld" != no && break
10984	;;
10985      *)
10986	test "$with_gnu_ld" != yes && break
10987	;;
10988      esac
10989    fi
10990  done
10991  IFS="$lt_save_ifs"
10992else
10993  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10994fi
10995fi
10996
10997LD="$lt_cv_path_LD"
10998if test -n "$LD"; then
10999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11000$as_echo "$LD" >&6; }
11001else
11002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11003$as_echo "no" >&6; }
11004fi
11005test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11007$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11008if ${lt_cv_prog_gnu_ld+:} false; then :
11009  $as_echo_n "(cached) " >&6
11010else
11011  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11012case `$LD -v 2>&1 </dev/null` in
11013*GNU* | *'with BFD'*)
11014  lt_cv_prog_gnu_ld=yes
11015  ;;
11016*)
11017  lt_cv_prog_gnu_ld=no
11018  ;;
11019esac
11020fi
11021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11022$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11023with_gnu_ld=$lt_cv_prog_gnu_ld
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11034$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11035if ${lt_cv_path_NM+:} false; then :
11036  $as_echo_n "(cached) " >&6
11037else
11038  if test -n "$NM"; then
11039  # Let the user override the test.
11040  lt_cv_path_NM="$NM"
11041else
11042  lt_nm_to_check="${ac_tool_prefix}nm"
11043  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11044    lt_nm_to_check="$lt_nm_to_check nm"
11045  fi
11046  for lt_tmp_nm in $lt_nm_to_check; do
11047    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11048    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11049      IFS="$lt_save_ifs"
11050      test -z "$ac_dir" && ac_dir=.
11051      tmp_nm="$ac_dir/$lt_tmp_nm"
11052      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11053	# Check to see if the nm accepts a BSD-compat flag.
11054	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
11055	#   nm: unknown option "B" ignored
11056	# Tru64's nm complains that /dev/null is an invalid object file
11057	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11058	*/dev/null* | *'Invalid file or object type'*)
11059	  lt_cv_path_NM="$tmp_nm -B"
11060	  break
11061	  ;;
11062	*)
11063	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11064	  */dev/null*)
11065	    lt_cv_path_NM="$tmp_nm -p"
11066	    break
11067	    ;;
11068	  *)
11069	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11070	    continue # so that we can try to find one that supports BSD flags
11071	    ;;
11072	  esac
11073	  ;;
11074	esac
11075      fi
11076    done
11077    IFS="$lt_save_ifs"
11078  done
11079  : ${lt_cv_path_NM=no}
11080fi
11081fi
11082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11083$as_echo "$lt_cv_path_NM" >&6; }
11084if test "$lt_cv_path_NM" != "no"; then
11085  NM="$lt_cv_path_NM"
11086else
11087  # Didn't find any BSD compatible name lister, look for dumpbin.
11088  if test -n "$DUMPBIN"; then :
11089    # Let the user override the test.
11090  else
11091    if test -n "$ac_tool_prefix"; then
11092  for ac_prog in dumpbin "link -dump"
11093  do
11094    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11095set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11097$as_echo_n "checking for $ac_word... " >&6; }
11098if ${ac_cv_prog_DUMPBIN+:} false; then :
11099  $as_echo_n "(cached) " >&6
11100else
11101  if test -n "$DUMPBIN"; then
11102  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11103else
11104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11105for as_dir in $PATH
11106do
11107  IFS=$as_save_IFS
11108  test -z "$as_dir" && as_dir=.
11109    for ac_exec_ext in '' $ac_executable_extensions; do
11110  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11111    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11112    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11113    break 2
11114  fi
11115done
11116  done
11117IFS=$as_save_IFS
11118
11119fi
11120fi
11121DUMPBIN=$ac_cv_prog_DUMPBIN
11122if test -n "$DUMPBIN"; then
11123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11124$as_echo "$DUMPBIN" >&6; }
11125else
11126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11127$as_echo "no" >&6; }
11128fi
11129
11130
11131    test -n "$DUMPBIN" && break
11132  done
11133fi
11134if test -z "$DUMPBIN"; then
11135  ac_ct_DUMPBIN=$DUMPBIN
11136  for ac_prog in dumpbin "link -dump"
11137do
11138  # Extract the first word of "$ac_prog", so it can be a program name with args.
11139set dummy $ac_prog; ac_word=$2
11140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11141$as_echo_n "checking for $ac_word... " >&6; }
11142if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11143  $as_echo_n "(cached) " >&6
11144else
11145  if test -n "$ac_ct_DUMPBIN"; then
11146  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11147else
11148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11149for as_dir in $PATH
11150do
11151  IFS=$as_save_IFS
11152  test -z "$as_dir" && as_dir=.
11153    for ac_exec_ext in '' $ac_executable_extensions; do
11154  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11155    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11156    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11157    break 2
11158  fi
11159done
11160  done
11161IFS=$as_save_IFS
11162
11163fi
11164fi
11165ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11166if test -n "$ac_ct_DUMPBIN"; then
11167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11168$as_echo "$ac_ct_DUMPBIN" >&6; }
11169else
11170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11171$as_echo "no" >&6; }
11172fi
11173
11174
11175  test -n "$ac_ct_DUMPBIN" && break
11176done
11177
11178  if test "x$ac_ct_DUMPBIN" = x; then
11179    DUMPBIN=":"
11180  else
11181    case $cross_compiling:$ac_tool_warned in
11182yes:)
11183{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11184$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11185ac_tool_warned=yes ;;
11186esac
11187    DUMPBIN=$ac_ct_DUMPBIN
11188  fi
11189fi
11190
11191    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11192    *COFF*)
11193      DUMPBIN="$DUMPBIN -symbols"
11194      ;;
11195    *)
11196      DUMPBIN=:
11197      ;;
11198    esac
11199  fi
11200
11201  if test "$DUMPBIN" != ":"; then
11202    NM="$DUMPBIN"
11203  fi
11204fi
11205test -z "$NM" && NM=nm
11206
11207
11208
11209
11210
11211
11212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11213$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11214if ${lt_cv_nm_interface+:} false; then :
11215  $as_echo_n "(cached) " >&6
11216else
11217  lt_cv_nm_interface="BSD nm"
11218  echo "int some_variable = 0;" > conftest.$ac_ext
11219  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11220  (eval "$ac_compile" 2>conftest.err)
11221  cat conftest.err >&5
11222  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11223  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11224  cat conftest.err >&5
11225  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11226  cat conftest.out >&5
11227  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11228    lt_cv_nm_interface="MS dumpbin"
11229  fi
11230  rm -f conftest*
11231fi
11232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11233$as_echo "$lt_cv_nm_interface" >&6; }
11234
11235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11236$as_echo_n "checking whether ln -s works... " >&6; }
11237LN_S=$as_ln_s
11238if test "$LN_S" = "ln -s"; then
11239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11240$as_echo "yes" >&6; }
11241else
11242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11243$as_echo "no, using $LN_S" >&6; }
11244fi
11245
11246# find the maximum length of command line arguments
11247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11248$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11249if ${lt_cv_sys_max_cmd_len+:} false; then :
11250  $as_echo_n "(cached) " >&6
11251else
11252    i=0
11253  teststring="ABCD"
11254
11255  case $build_os in
11256  msdosdjgpp*)
11257    # On DJGPP, this test can blow up pretty badly due to problems in libc
11258    # (any single argument exceeding 2000 bytes causes a buffer overrun
11259    # during glob expansion).  Even if it were fixed, the result of this
11260    # check would be larger than it should be.
11261    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11262    ;;
11263
11264  gnu*)
11265    # Under GNU Hurd, this test is not required because there is
11266    # no limit to the length of command line arguments.
11267    # Libtool will interpret -1 as no limit whatsoever
11268    lt_cv_sys_max_cmd_len=-1;
11269    ;;
11270
11271  cygwin* | mingw* | cegcc*)
11272    # On Win9x/ME, this test blows up -- it succeeds, but takes
11273    # about 5 minutes as the teststring grows exponentially.
11274    # Worse, since 9x/ME are not pre-emptively multitasking,
11275    # you end up with a "frozen" computer, even though with patience
11276    # the test eventually succeeds (with a max line length of 256k).
11277    # Instead, let's just punt: use the minimum linelength reported by
11278    # all of the supported platforms: 8192 (on NT/2K/XP).
11279    lt_cv_sys_max_cmd_len=8192;
11280    ;;
11281
11282  mint*)
11283    # On MiNT this can take a long time and run out of memory.
11284    lt_cv_sys_max_cmd_len=8192;
11285    ;;
11286
11287  amigaos*)
11288    # On AmigaOS with pdksh, this test takes hours, literally.
11289    # So we just punt and use a minimum line length of 8192.
11290    lt_cv_sys_max_cmd_len=8192;
11291    ;;
11292
11293  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11294    # This has been around since 386BSD, at least.  Likely further.
11295    if test -x /sbin/sysctl; then
11296      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11297    elif test -x /usr/sbin/sysctl; then
11298      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11299    else
11300      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11301    fi
11302    # And add a safety zone
11303    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11304    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11305    ;;
11306
11307  interix*)
11308    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11309    lt_cv_sys_max_cmd_len=196608
11310    ;;
11311
11312  os2*)
11313    # The test takes a long time on OS/2.
11314    lt_cv_sys_max_cmd_len=8192
11315    ;;
11316
11317  osf*)
11318    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11319    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11320    # nice to cause kernel panics so lets avoid the loop below.
11321    # First set a reasonable default.
11322    lt_cv_sys_max_cmd_len=16384
11323    #
11324    if test -x /sbin/sysconfig; then
11325      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11326        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11327      esac
11328    fi
11329    ;;
11330  sco3.2v5*)
11331    lt_cv_sys_max_cmd_len=102400
11332    ;;
11333  sysv5* | sco5v6* | sysv4.2uw2*)
11334    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11335    if test -n "$kargmax"; then
11336      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11337    else
11338      lt_cv_sys_max_cmd_len=32768
11339    fi
11340    ;;
11341  *)
11342    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11343    if test -n "$lt_cv_sys_max_cmd_len"; then
11344      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11345      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11346    else
11347      # Make teststring a little bigger before we do anything with it.
11348      # a 1K string should be a reasonable start.
11349      for i in 1 2 3 4 5 6 7 8 ; do
11350        teststring=$teststring$teststring
11351      done
11352      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11353      # If test is not a shell built-in, we'll probably end up computing a
11354      # maximum length that is only half of the actual maximum length, but
11355      # we can't tell.
11356      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11357	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11358	      test $i != 17 # 1/2 MB should be enough
11359      do
11360        i=`expr $i + 1`
11361        teststring=$teststring$teststring
11362      done
11363      # Only check the string length outside the loop.
11364      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11365      teststring=
11366      # Add a significant safety factor because C++ compilers can tack on
11367      # massive amounts of additional arguments before passing them to the
11368      # linker.  It appears as though 1/2 is a usable value.
11369      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11370    fi
11371    ;;
11372  esac
11373
11374fi
11375
11376if test -n $lt_cv_sys_max_cmd_len ; then
11377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11378$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11379else
11380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11381$as_echo "none" >&6; }
11382fi
11383max_cmd_len=$lt_cv_sys_max_cmd_len
11384
11385
11386
11387
11388
11389
11390: ${CP="cp -f"}
11391: ${MV="mv -f"}
11392: ${RM="rm -f"}
11393
11394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11395$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11396# Try some XSI features
11397xsi_shell=no
11398( _lt_dummy="a/b/c"
11399  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11400      = c,a/b,b/c, \
11401    && eval 'test $(( 1 + 1 )) -eq 2 \
11402    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11403  && xsi_shell=yes
11404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11405$as_echo "$xsi_shell" >&6; }
11406
11407
11408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11409$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11410lt_shell_append=no
11411( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11412    >/dev/null 2>&1 \
11413  && lt_shell_append=yes
11414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11415$as_echo "$lt_shell_append" >&6; }
11416
11417
11418if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11419  lt_unset=unset
11420else
11421  lt_unset=false
11422fi
11423
11424
11425
11426
11427
11428# test EBCDIC or ASCII
11429case `echo X|tr X '\101'` in
11430 A) # ASCII based system
11431    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11432  lt_SP2NL='tr \040 \012'
11433  lt_NL2SP='tr \015\012 \040\040'
11434  ;;
11435 *) # EBCDIC based system
11436  lt_SP2NL='tr \100 \n'
11437  lt_NL2SP='tr \r\n \100\100'
11438  ;;
11439esac
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11450$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11451if ${lt_cv_to_host_file_cmd+:} false; then :
11452  $as_echo_n "(cached) " >&6
11453else
11454  case $host in
11455  *-*-mingw* )
11456    case $build in
11457      *-*-mingw* ) # actually msys
11458        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11459        ;;
11460      *-*-cygwin* )
11461        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11462        ;;
11463      * ) # otherwise, assume *nix
11464        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11465        ;;
11466    esac
11467    ;;
11468  *-*-cygwin* )
11469    case $build in
11470      *-*-mingw* ) # actually msys
11471        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11472        ;;
11473      *-*-cygwin* )
11474        lt_cv_to_host_file_cmd=func_convert_file_noop
11475        ;;
11476      * ) # otherwise, assume *nix
11477        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11478        ;;
11479    esac
11480    ;;
11481  * ) # unhandled hosts (and "normal" native builds)
11482    lt_cv_to_host_file_cmd=func_convert_file_noop
11483    ;;
11484esac
11485
11486fi
11487
11488to_host_file_cmd=$lt_cv_to_host_file_cmd
11489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11490$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11491
11492
11493
11494
11495
11496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11497$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11498if ${lt_cv_to_tool_file_cmd+:} false; then :
11499  $as_echo_n "(cached) " >&6
11500else
11501  #assume ordinary cross tools, or native build.
11502lt_cv_to_tool_file_cmd=func_convert_file_noop
11503case $host in
11504  *-*-mingw* )
11505    case $build in
11506      *-*-mingw* ) # actually msys
11507        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11508        ;;
11509    esac
11510    ;;
11511esac
11512
11513fi
11514
11515to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11517$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11518
11519
11520
11521
11522
11523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11524$as_echo_n "checking for $LD option to reload object files... " >&6; }
11525if ${lt_cv_ld_reload_flag+:} false; then :
11526  $as_echo_n "(cached) " >&6
11527else
11528  lt_cv_ld_reload_flag='-r'
11529fi
11530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11531$as_echo "$lt_cv_ld_reload_flag" >&6; }
11532reload_flag=$lt_cv_ld_reload_flag
11533case $reload_flag in
11534"" | " "*) ;;
11535*) reload_flag=" $reload_flag" ;;
11536esac
11537reload_cmds='$LD$reload_flag -o $output$reload_objs'
11538case $host_os in
11539  cygwin* | mingw* | pw32* | cegcc*)
11540    if test "$GCC" != yes; then
11541      reload_cmds=false
11542    fi
11543    ;;
11544  darwin*)
11545    if test "$GCC" = yes; then
11546      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11547    else
11548      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11549    fi
11550    ;;
11551esac
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561if test -n "$ac_tool_prefix"; then
11562  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11563set dummy ${ac_tool_prefix}objdump; ac_word=$2
11564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11565$as_echo_n "checking for $ac_word... " >&6; }
11566if ${ac_cv_prog_OBJDUMP+:} false; then :
11567  $as_echo_n "(cached) " >&6
11568else
11569  if test -n "$OBJDUMP"; then
11570  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11571else
11572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11573for as_dir in $PATH
11574do
11575  IFS=$as_save_IFS
11576  test -z "$as_dir" && as_dir=.
11577    for ac_exec_ext in '' $ac_executable_extensions; do
11578  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11579    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11580    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11581    break 2
11582  fi
11583done
11584  done
11585IFS=$as_save_IFS
11586
11587fi
11588fi
11589OBJDUMP=$ac_cv_prog_OBJDUMP
11590if test -n "$OBJDUMP"; then
11591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11592$as_echo "$OBJDUMP" >&6; }
11593else
11594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11595$as_echo "no" >&6; }
11596fi
11597
11598
11599fi
11600if test -z "$ac_cv_prog_OBJDUMP"; then
11601  ac_ct_OBJDUMP=$OBJDUMP
11602  # Extract the first word of "objdump", so it can be a program name with args.
11603set dummy objdump; ac_word=$2
11604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11605$as_echo_n "checking for $ac_word... " >&6; }
11606if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11607  $as_echo_n "(cached) " >&6
11608else
11609  if test -n "$ac_ct_OBJDUMP"; then
11610  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11611else
11612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11613for as_dir in $PATH
11614do
11615  IFS=$as_save_IFS
11616  test -z "$as_dir" && as_dir=.
11617    for ac_exec_ext in '' $ac_executable_extensions; do
11618  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11619    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11620    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11621    break 2
11622  fi
11623done
11624  done
11625IFS=$as_save_IFS
11626
11627fi
11628fi
11629ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11630if test -n "$ac_ct_OBJDUMP"; then
11631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11632$as_echo "$ac_ct_OBJDUMP" >&6; }
11633else
11634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11635$as_echo "no" >&6; }
11636fi
11637
11638  if test "x$ac_ct_OBJDUMP" = x; then
11639    OBJDUMP="false"
11640  else
11641    case $cross_compiling:$ac_tool_warned in
11642yes:)
11643{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11644$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11645ac_tool_warned=yes ;;
11646esac
11647    OBJDUMP=$ac_ct_OBJDUMP
11648  fi
11649else
11650  OBJDUMP="$ac_cv_prog_OBJDUMP"
11651fi
11652
11653test -z "$OBJDUMP" && OBJDUMP=objdump
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11664$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11665if ${lt_cv_deplibs_check_method+:} false; then :
11666  $as_echo_n "(cached) " >&6
11667else
11668  lt_cv_file_magic_cmd='$MAGIC_CMD'
11669lt_cv_file_magic_test_file=
11670lt_cv_deplibs_check_method='unknown'
11671# Need to set the preceding variable on all platforms that support
11672# interlibrary dependencies.
11673# 'none' -- dependencies not supported.
11674# `unknown' -- same as none, but documents that we really don't know.
11675# 'pass_all' -- all dependencies passed with no checks.
11676# 'test_compile' -- check by making test program.
11677# 'file_magic [[regex]]' -- check by looking for files in library path
11678# which responds to the $file_magic_cmd with a given extended regex.
11679# If you have `file' or equivalent on your system and you're not sure
11680# whether `pass_all' will *always* work, you probably want this one.
11681
11682case $host_os in
11683aix[4-9]*)
11684  lt_cv_deplibs_check_method=pass_all
11685  ;;
11686
11687beos*)
11688  lt_cv_deplibs_check_method=pass_all
11689  ;;
11690
11691bsdi[45]*)
11692  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11693  lt_cv_file_magic_cmd='/usr/bin/file -L'
11694  lt_cv_file_magic_test_file=/shlib/libc.so
11695  ;;
11696
11697cygwin*)
11698  # func_win32_libid is a shell function defined in ltmain.sh
11699  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11700  lt_cv_file_magic_cmd='func_win32_libid'
11701  ;;
11702
11703mingw* | pw32*)
11704  # Base MSYS/MinGW do not provide the 'file' command needed by
11705  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11706  # unless we find 'file', for example because we are cross-compiling.
11707  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11708  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11709    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11710    lt_cv_file_magic_cmd='func_win32_libid'
11711  else
11712    # Keep this pattern in sync with the one in func_win32_libid.
11713    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11714    lt_cv_file_magic_cmd='$OBJDUMP -f'
11715  fi
11716  ;;
11717
11718cegcc*)
11719  # use the weaker test based on 'objdump'. See mingw*.
11720  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11721  lt_cv_file_magic_cmd='$OBJDUMP -f'
11722  ;;
11723
11724darwin* | rhapsody*)
11725  lt_cv_deplibs_check_method=pass_all
11726  ;;
11727
11728freebsd* | dragonfly*)
11729  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11730    case $host_cpu in
11731    i*86 )
11732      # Not sure whether the presence of OpenBSD here was a mistake.
11733      # Let's accept both of them until this is cleared up.
11734      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11735      lt_cv_file_magic_cmd=/usr/bin/file
11736      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11737      ;;
11738    esac
11739  else
11740    lt_cv_deplibs_check_method=pass_all
11741  fi
11742  ;;
11743
11744gnu*)
11745  lt_cv_deplibs_check_method=pass_all
11746  ;;
11747
11748haiku*)
11749  lt_cv_deplibs_check_method=pass_all
11750  ;;
11751
11752hpux10.20* | hpux11*)
11753  lt_cv_file_magic_cmd=/usr/bin/file
11754  case $host_cpu in
11755  ia64*)
11756    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11757    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11758    ;;
11759  hppa*64*)
11760    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]'
11761    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11762    ;;
11763  *)
11764    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11765    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11766    ;;
11767  esac
11768  ;;
11769
11770interix[3-9]*)
11771  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11772  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11773  ;;
11774
11775irix5* | irix6* | nonstopux*)
11776  case $LD in
11777  *-32|*"-32 ") libmagic=32-bit;;
11778  *-n32|*"-n32 ") libmagic=N32;;
11779  *-64|*"-64 ") libmagic=64-bit;;
11780  *) libmagic=never-match;;
11781  esac
11782  lt_cv_deplibs_check_method=pass_all
11783  ;;
11784
11785# This must be glibc/ELF.
11786linux* | k*bsd*-gnu | kopensolaris*-gnu)
11787  lt_cv_deplibs_check_method=pass_all
11788  ;;
11789
11790netbsd*)
11791  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11792    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11793  else
11794    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11795  fi
11796  ;;
11797
11798newos6*)
11799  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11800  lt_cv_file_magic_cmd=/usr/bin/file
11801  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11802  ;;
11803
11804*nto* | *qnx*)
11805  lt_cv_deplibs_check_method=pass_all
11806  ;;
11807
11808openbsd*)
11809  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11810    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11811  else
11812    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11813  fi
11814  ;;
11815
11816osf3* | osf4* | osf5*)
11817  lt_cv_deplibs_check_method=pass_all
11818  ;;
11819
11820rdos*)
11821  lt_cv_deplibs_check_method=pass_all
11822  ;;
11823
11824solaris*)
11825  lt_cv_deplibs_check_method=pass_all
11826  ;;
11827
11828sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11829  lt_cv_deplibs_check_method=pass_all
11830  ;;
11831
11832sysv4 | sysv4.3*)
11833  case $host_vendor in
11834  motorola)
11835    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]'
11836    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11837    ;;
11838  ncr)
11839    lt_cv_deplibs_check_method=pass_all
11840    ;;
11841  sequent)
11842    lt_cv_file_magic_cmd='/bin/file'
11843    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11844    ;;
11845  sni)
11846    lt_cv_file_magic_cmd='/bin/file'
11847    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11848    lt_cv_file_magic_test_file=/lib/libc.so
11849    ;;
11850  siemens)
11851    lt_cv_deplibs_check_method=pass_all
11852    ;;
11853  pc)
11854    lt_cv_deplibs_check_method=pass_all
11855    ;;
11856  esac
11857  ;;
11858
11859tpf*)
11860  lt_cv_deplibs_check_method=pass_all
11861  ;;
11862esac
11863
11864fi
11865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11866$as_echo "$lt_cv_deplibs_check_method" >&6; }
11867
11868file_magic_glob=
11869want_nocaseglob=no
11870if test "$build" = "$host"; then
11871  case $host_os in
11872  mingw* | pw32*)
11873    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11874      want_nocaseglob=yes
11875    else
11876      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11877    fi
11878    ;;
11879  esac
11880fi
11881
11882file_magic_cmd=$lt_cv_file_magic_cmd
11883deplibs_check_method=$lt_cv_deplibs_check_method
11884test -z "$deplibs_check_method" && deplibs_check_method=unknown
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907if test -n "$ac_tool_prefix"; then
11908  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11909set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11911$as_echo_n "checking for $ac_word... " >&6; }
11912if ${ac_cv_prog_DLLTOOL+:} false; then :
11913  $as_echo_n "(cached) " >&6
11914else
11915  if test -n "$DLLTOOL"; then
11916  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11917else
11918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11919for as_dir in $PATH
11920do
11921  IFS=$as_save_IFS
11922  test -z "$as_dir" && as_dir=.
11923    for ac_exec_ext in '' $ac_executable_extensions; do
11924  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11925    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11926    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11927    break 2
11928  fi
11929done
11930  done
11931IFS=$as_save_IFS
11932
11933fi
11934fi
11935DLLTOOL=$ac_cv_prog_DLLTOOL
11936if test -n "$DLLTOOL"; then
11937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11938$as_echo "$DLLTOOL" >&6; }
11939else
11940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11941$as_echo "no" >&6; }
11942fi
11943
11944
11945fi
11946if test -z "$ac_cv_prog_DLLTOOL"; then
11947  ac_ct_DLLTOOL=$DLLTOOL
11948  # Extract the first word of "dlltool", so it can be a program name with args.
11949set dummy dlltool; ac_word=$2
11950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11951$as_echo_n "checking for $ac_word... " >&6; }
11952if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11953  $as_echo_n "(cached) " >&6
11954else
11955  if test -n "$ac_ct_DLLTOOL"; then
11956  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11957else
11958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11959for as_dir in $PATH
11960do
11961  IFS=$as_save_IFS
11962  test -z "$as_dir" && as_dir=.
11963    for ac_exec_ext in '' $ac_executable_extensions; do
11964  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11965    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11966    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11967    break 2
11968  fi
11969done
11970  done
11971IFS=$as_save_IFS
11972
11973fi
11974fi
11975ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11976if test -n "$ac_ct_DLLTOOL"; then
11977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11978$as_echo "$ac_ct_DLLTOOL" >&6; }
11979else
11980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11981$as_echo "no" >&6; }
11982fi
11983
11984  if test "x$ac_ct_DLLTOOL" = x; then
11985    DLLTOOL="false"
11986  else
11987    case $cross_compiling:$ac_tool_warned in
11988yes:)
11989{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11990$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11991ac_tool_warned=yes ;;
11992esac
11993    DLLTOOL=$ac_ct_DLLTOOL
11994  fi
11995else
11996  DLLTOOL="$ac_cv_prog_DLLTOOL"
11997fi
11998
11999test -z "$DLLTOOL" && DLLTOOL=dlltool
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12011$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12012if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12013  $as_echo_n "(cached) " >&6
12014else
12015  lt_cv_sharedlib_from_linklib_cmd='unknown'
12016
12017case $host_os in
12018cygwin* | mingw* | pw32* | cegcc*)
12019  # two different shell functions defined in ltmain.sh
12020  # decide which to use based on capabilities of $DLLTOOL
12021  case `$DLLTOOL --help 2>&1` in
12022  *--identify-strict*)
12023    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12024    ;;
12025  *)
12026    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12027    ;;
12028  esac
12029  ;;
12030*)
12031  # fallback: assume linklib IS sharedlib
12032  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12033  ;;
12034esac
12035
12036fi
12037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12038$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12039sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12040test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12041
12042
12043
12044
12045
12046
12047
12048if test -n "$ac_tool_prefix"; then
12049  for ac_prog in ar
12050  do
12051    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12052set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12054$as_echo_n "checking for $ac_word... " >&6; }
12055if ${ac_cv_prog_AR+:} false; then :
12056  $as_echo_n "(cached) " >&6
12057else
12058  if test -n "$AR"; then
12059  ac_cv_prog_AR="$AR" # Let the user override the test.
12060else
12061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12062for as_dir in $PATH
12063do
12064  IFS=$as_save_IFS
12065  test -z "$as_dir" && as_dir=.
12066    for ac_exec_ext in '' $ac_executable_extensions; do
12067  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12068    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12069    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12070    break 2
12071  fi
12072done
12073  done
12074IFS=$as_save_IFS
12075
12076fi
12077fi
12078AR=$ac_cv_prog_AR
12079if test -n "$AR"; then
12080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12081$as_echo "$AR" >&6; }
12082else
12083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12084$as_echo "no" >&6; }
12085fi
12086
12087
12088    test -n "$AR" && break
12089  done
12090fi
12091if test -z "$AR"; then
12092  ac_ct_AR=$AR
12093  for ac_prog in ar
12094do
12095  # Extract the first word of "$ac_prog", so it can be a program name with args.
12096set dummy $ac_prog; ac_word=$2
12097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12098$as_echo_n "checking for $ac_word... " >&6; }
12099if ${ac_cv_prog_ac_ct_AR+:} false; then :
12100  $as_echo_n "(cached) " >&6
12101else
12102  if test -n "$ac_ct_AR"; then
12103  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12104else
12105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12106for as_dir in $PATH
12107do
12108  IFS=$as_save_IFS
12109  test -z "$as_dir" && as_dir=.
12110    for ac_exec_ext in '' $ac_executable_extensions; do
12111  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12112    ac_cv_prog_ac_ct_AR="$ac_prog"
12113    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12114    break 2
12115  fi
12116done
12117  done
12118IFS=$as_save_IFS
12119
12120fi
12121fi
12122ac_ct_AR=$ac_cv_prog_ac_ct_AR
12123if test -n "$ac_ct_AR"; then
12124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12125$as_echo "$ac_ct_AR" >&6; }
12126else
12127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12128$as_echo "no" >&6; }
12129fi
12130
12131
12132  test -n "$ac_ct_AR" && break
12133done
12134
12135  if test "x$ac_ct_AR" = x; then
12136    AR="false"
12137  else
12138    case $cross_compiling:$ac_tool_warned in
12139yes:)
12140{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12141$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12142ac_tool_warned=yes ;;
12143esac
12144    AR=$ac_ct_AR
12145  fi
12146fi
12147
12148: ${AR=ar}
12149: ${AR_FLAGS=cru}
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12162$as_echo_n "checking for archiver @FILE support... " >&6; }
12163if ${lt_cv_ar_at_file+:} false; then :
12164  $as_echo_n "(cached) " >&6
12165else
12166  lt_cv_ar_at_file=no
12167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12168/* end confdefs.h.  */
12169
12170int
12171main ()
12172{
12173
12174  ;
12175  return 0;
12176}
12177_ACEOF
12178if ac_fn_c_try_compile "$LINENO"; then :
12179  echo conftest.$ac_objext > conftest.lst
12180      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12181      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12182  (eval $lt_ar_try) 2>&5
12183  ac_status=$?
12184  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12185  test $ac_status = 0; }
12186      if test "$ac_status" -eq 0; then
12187	# Ensure the archiver fails upon bogus file names.
12188	rm -f conftest.$ac_objext libconftest.a
12189	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12190  (eval $lt_ar_try) 2>&5
12191  ac_status=$?
12192  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12193  test $ac_status = 0; }
12194	if test "$ac_status" -ne 0; then
12195          lt_cv_ar_at_file=@
12196        fi
12197      fi
12198      rm -f conftest.* libconftest.a
12199
12200fi
12201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12202
12203fi
12204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12205$as_echo "$lt_cv_ar_at_file" >&6; }
12206
12207if test "x$lt_cv_ar_at_file" = xno; then
12208  archiver_list_spec=
12209else
12210  archiver_list_spec=$lt_cv_ar_at_file
12211fi
12212
12213
12214
12215
12216
12217
12218
12219if test -n "$ac_tool_prefix"; then
12220  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12221set dummy ${ac_tool_prefix}strip; ac_word=$2
12222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12223$as_echo_n "checking for $ac_word... " >&6; }
12224if ${ac_cv_prog_STRIP+:} false; then :
12225  $as_echo_n "(cached) " >&6
12226else
12227  if test -n "$STRIP"; then
12228  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12229else
12230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12231for as_dir in $PATH
12232do
12233  IFS=$as_save_IFS
12234  test -z "$as_dir" && as_dir=.
12235    for ac_exec_ext in '' $ac_executable_extensions; do
12236  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12237    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12238    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12239    break 2
12240  fi
12241done
12242  done
12243IFS=$as_save_IFS
12244
12245fi
12246fi
12247STRIP=$ac_cv_prog_STRIP
12248if test -n "$STRIP"; then
12249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12250$as_echo "$STRIP" >&6; }
12251else
12252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12253$as_echo "no" >&6; }
12254fi
12255
12256
12257fi
12258if test -z "$ac_cv_prog_STRIP"; then
12259  ac_ct_STRIP=$STRIP
12260  # Extract the first word of "strip", so it can be a program name with args.
12261set dummy strip; ac_word=$2
12262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12263$as_echo_n "checking for $ac_word... " >&6; }
12264if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12265  $as_echo_n "(cached) " >&6
12266else
12267  if test -n "$ac_ct_STRIP"; then
12268  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12269else
12270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12271for as_dir in $PATH
12272do
12273  IFS=$as_save_IFS
12274  test -z "$as_dir" && as_dir=.
12275    for ac_exec_ext in '' $ac_executable_extensions; do
12276  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12277    ac_cv_prog_ac_ct_STRIP="strip"
12278    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12279    break 2
12280  fi
12281done
12282  done
12283IFS=$as_save_IFS
12284
12285fi
12286fi
12287ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12288if test -n "$ac_ct_STRIP"; then
12289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12290$as_echo "$ac_ct_STRIP" >&6; }
12291else
12292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293$as_echo "no" >&6; }
12294fi
12295
12296  if test "x$ac_ct_STRIP" = x; then
12297    STRIP=":"
12298  else
12299    case $cross_compiling:$ac_tool_warned in
12300yes:)
12301{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12302$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12303ac_tool_warned=yes ;;
12304esac
12305    STRIP=$ac_ct_STRIP
12306  fi
12307else
12308  STRIP="$ac_cv_prog_STRIP"
12309fi
12310
12311test -z "$STRIP" && STRIP=:
12312
12313
12314
12315
12316
12317
12318if test -n "$ac_tool_prefix"; then
12319  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12320set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12322$as_echo_n "checking for $ac_word... " >&6; }
12323if ${ac_cv_prog_RANLIB+:} false; then :
12324  $as_echo_n "(cached) " >&6
12325else
12326  if test -n "$RANLIB"; then
12327  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12328else
12329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12330for as_dir in $PATH
12331do
12332  IFS=$as_save_IFS
12333  test -z "$as_dir" && as_dir=.
12334    for ac_exec_ext in '' $ac_executable_extensions; do
12335  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12336    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12337    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12338    break 2
12339  fi
12340done
12341  done
12342IFS=$as_save_IFS
12343
12344fi
12345fi
12346RANLIB=$ac_cv_prog_RANLIB
12347if test -n "$RANLIB"; then
12348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12349$as_echo "$RANLIB" >&6; }
12350else
12351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12352$as_echo "no" >&6; }
12353fi
12354
12355
12356fi
12357if test -z "$ac_cv_prog_RANLIB"; then
12358  ac_ct_RANLIB=$RANLIB
12359  # Extract the first word of "ranlib", so it can be a program name with args.
12360set dummy ranlib; ac_word=$2
12361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12362$as_echo_n "checking for $ac_word... " >&6; }
12363if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12364  $as_echo_n "(cached) " >&6
12365else
12366  if test -n "$ac_ct_RANLIB"; then
12367  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12368else
12369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12370for as_dir in $PATH
12371do
12372  IFS=$as_save_IFS
12373  test -z "$as_dir" && as_dir=.
12374    for ac_exec_ext in '' $ac_executable_extensions; do
12375  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12376    ac_cv_prog_ac_ct_RANLIB="ranlib"
12377    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12378    break 2
12379  fi
12380done
12381  done
12382IFS=$as_save_IFS
12383
12384fi
12385fi
12386ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12387if test -n "$ac_ct_RANLIB"; then
12388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12389$as_echo "$ac_ct_RANLIB" >&6; }
12390else
12391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12392$as_echo "no" >&6; }
12393fi
12394
12395  if test "x$ac_ct_RANLIB" = x; then
12396    RANLIB=":"
12397  else
12398    case $cross_compiling:$ac_tool_warned in
12399yes:)
12400{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12402ac_tool_warned=yes ;;
12403esac
12404    RANLIB=$ac_ct_RANLIB
12405  fi
12406else
12407  RANLIB="$ac_cv_prog_RANLIB"
12408fi
12409
12410test -z "$RANLIB" && RANLIB=:
12411
12412
12413
12414
12415
12416
12417# Determine commands to create old-style static archives.
12418old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12419old_postinstall_cmds='chmod 644 $oldlib'
12420old_postuninstall_cmds=
12421
12422if test -n "$RANLIB"; then
12423  case $host_os in
12424  openbsd*)
12425    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12426    ;;
12427  *)
12428    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12429    ;;
12430  esac
12431  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12432fi
12433
12434case $host_os in
12435  darwin*)
12436    lock_old_archive_extraction=yes ;;
12437  *)
12438    lock_old_archive_extraction=no ;;
12439esac
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479# If no C compiler was specified, use CC.
12480LTCC=${LTCC-"$CC"}
12481
12482# If no C compiler flags were specified, use CFLAGS.
12483LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12484
12485# Allow CC to be a program name with arguments.
12486compiler=$CC
12487
12488
12489# Check for command to grab the raw symbol name followed by C symbol from nm.
12490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12491$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12492if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12493  $as_echo_n "(cached) " >&6
12494else
12495
12496# These are sane defaults that work on at least a few old systems.
12497# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12498
12499# Character class describing NM global symbol codes.
12500symcode='[BCDEGRST]'
12501
12502# Regexp to match symbols that can be accessed directly from C.
12503sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12504
12505# Define system-specific variables.
12506case $host_os in
12507aix*)
12508  symcode='[BCDT]'
12509  ;;
12510cygwin* | mingw* | pw32* | cegcc*)
12511  symcode='[ABCDGISTW]'
12512  ;;
12513hpux*)
12514  if test "$host_cpu" = ia64; then
12515    symcode='[ABCDEGRST]'
12516  fi
12517  ;;
12518irix* | nonstopux*)
12519  symcode='[BCDEGRST]'
12520  ;;
12521osf*)
12522  symcode='[BCDEGQRST]'
12523  ;;
12524solaris*)
12525  symcode='[BDRT]'
12526  ;;
12527sco3.2v5*)
12528  symcode='[DT]'
12529  ;;
12530sysv4.2uw2*)
12531  symcode='[DT]'
12532  ;;
12533sysv5* | sco5v6* | unixware* | OpenUNIX*)
12534  symcode='[ABDT]'
12535  ;;
12536sysv4)
12537  symcode='[DFNSTU]'
12538  ;;
12539esac
12540
12541# If we're using GNU nm, then use its standard symbol codes.
12542case `$NM -V 2>&1` in
12543*GNU* | *'with BFD'*)
12544  symcode='[ABCDGIRSTW]' ;;
12545esac
12546
12547# Transform an extracted symbol line into a proper C declaration.
12548# Some systems (esp. on ia64) link data and code symbols differently,
12549# so use this general approach.
12550lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12551
12552# Transform an extracted symbol line into symbol name and symbol address
12553lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12554lt_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'"
12555
12556# Handle CRLF in mingw tool chain
12557opt_cr=
12558case $build_os in
12559mingw*)
12560  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12561  ;;
12562esac
12563
12564# Try without a prefix underscore, then with it.
12565for ac_symprfx in "" "_"; do
12566
12567  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12568  symxfrm="\\1 $ac_symprfx\\2 \\2"
12569
12570  # Write the raw and C identifiers.
12571  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12572    # Fake it for dumpbin and say T for any non-static function
12573    # and D for any global variable.
12574    # Also find C++ and __fastcall symbols from MSVC++,
12575    # which start with @ or ?.
12576    lt_cv_sys_global_symbol_pipe="$AWK '"\
12577"     {last_section=section; section=\$ 3};"\
12578"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12579"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12580"     \$ 0!~/External *\|/{next};"\
12581"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12582"     {if(hide[section]) next};"\
12583"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12584"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12585"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12586"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12587"     ' prfx=^$ac_symprfx"
12588  else
12589    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12590  fi
12591  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12592
12593  # Check to see that the pipe works correctly.
12594  pipe_works=no
12595
12596  rm -f conftest*
12597  cat > conftest.$ac_ext <<_LT_EOF
12598#ifdef __cplusplus
12599extern "C" {
12600#endif
12601char nm_test_var;
12602void nm_test_func(void);
12603void nm_test_func(void){}
12604#ifdef __cplusplus
12605}
12606#endif
12607int main(){nm_test_var='a';nm_test_func();return(0);}
12608_LT_EOF
12609
12610  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12611  (eval $ac_compile) 2>&5
12612  ac_status=$?
12613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12614  test $ac_status = 0; }; then
12615    # Now try to grab the symbols.
12616    nlist=conftest.nm
12617    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12618  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12619  ac_status=$?
12620  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12621  test $ac_status = 0; } && test -s "$nlist"; then
12622      # Try sorting and uniquifying the output.
12623      if sort "$nlist" | uniq > "$nlist"T; then
12624	mv -f "$nlist"T "$nlist"
12625      else
12626	rm -f "$nlist"T
12627      fi
12628
12629      # Make sure that we snagged all the symbols we need.
12630      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12631	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12632	  cat <<_LT_EOF > conftest.$ac_ext
12633/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12634#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12635/* DATA imports from DLLs on WIN32 con't be const, because runtime
12636   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12637# define LT_DLSYM_CONST
12638#elif defined(__osf__)
12639/* This system does not cope well with relocations in const data.  */
12640# define LT_DLSYM_CONST
12641#else
12642# define LT_DLSYM_CONST const
12643#endif
12644
12645#ifdef __cplusplus
12646extern "C" {
12647#endif
12648
12649_LT_EOF
12650	  # Now generate the symbol file.
12651	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12652
12653	  cat <<_LT_EOF >> conftest.$ac_ext
12654
12655/* The mapping between symbol names and symbols.  */
12656LT_DLSYM_CONST struct {
12657  const char *name;
12658  void       *address;
12659}
12660lt__PROGRAM__LTX_preloaded_symbols[] =
12661{
12662  { "@PROGRAM@", (void *) 0 },
12663_LT_EOF
12664	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12665	  cat <<\_LT_EOF >> conftest.$ac_ext
12666  {0, (void *) 0}
12667};
12668
12669/* This works around a problem in FreeBSD linker */
12670#ifdef FREEBSD_WORKAROUND
12671static const void *lt_preloaded_setup() {
12672  return lt__PROGRAM__LTX_preloaded_symbols;
12673}
12674#endif
12675
12676#ifdef __cplusplus
12677}
12678#endif
12679_LT_EOF
12680	  # Now try linking the two files.
12681	  mv conftest.$ac_objext conftstm.$ac_objext
12682	  lt_globsym_save_LIBS=$LIBS
12683	  lt_globsym_save_CFLAGS=$CFLAGS
12684	  LIBS="conftstm.$ac_objext"
12685	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12686	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12687  (eval $ac_link) 2>&5
12688  ac_status=$?
12689  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12690  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12691	    pipe_works=yes
12692	  fi
12693	  LIBS=$lt_globsym_save_LIBS
12694	  CFLAGS=$lt_globsym_save_CFLAGS
12695	else
12696	  echo "cannot find nm_test_func in $nlist" >&5
12697	fi
12698      else
12699	echo "cannot find nm_test_var in $nlist" >&5
12700      fi
12701    else
12702      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12703    fi
12704  else
12705    echo "$progname: failed program was:" >&5
12706    cat conftest.$ac_ext >&5
12707  fi
12708  rm -rf conftest* conftst*
12709
12710  # Do not use the global_symbol_pipe unless it works.
12711  if test "$pipe_works" = yes; then
12712    break
12713  else
12714    lt_cv_sys_global_symbol_pipe=
12715  fi
12716done
12717
12718fi
12719
12720if test -z "$lt_cv_sys_global_symbol_pipe"; then
12721  lt_cv_sys_global_symbol_to_cdecl=
12722fi
12723if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12725$as_echo "failed" >&6; }
12726else
12727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12728$as_echo "ok" >&6; }
12729fi
12730
12731# Response file support.
12732if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12733  nm_file_list_spec='@'
12734elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12735  nm_file_list_spec='@'
12736fi
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12765$as_echo_n "checking for sysroot... " >&6; }
12766
12767# Check whether --with-sysroot was given.
12768if test "${with_sysroot+set}" = set; then :
12769  withval=$with_sysroot;
12770else
12771  with_sysroot=no
12772fi
12773
12774
12775lt_sysroot=
12776case ${with_sysroot} in #(
12777 yes)
12778   if test "$GCC" = yes; then
12779     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12780   fi
12781   ;; #(
12782 /*)
12783   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12784   ;; #(
12785 no|'')
12786   ;; #(
12787 *)
12788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12789$as_echo "${with_sysroot}" >&6; }
12790   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12791   ;;
12792esac
12793
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12795$as_echo "${lt_sysroot:-no}" >&6; }
12796
12797
12798
12799
12800
12801# Check whether --enable-libtool-lock was given.
12802if test "${enable_libtool_lock+set}" = set; then :
12803  enableval=$enable_libtool_lock;
12804fi
12805
12806test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12807
12808# Some flags need to be propagated to the compiler or linker for good
12809# libtool support.
12810case $host in
12811ia64-*-hpux*)
12812  # Find out which ABI we are using.
12813  echo 'int i;' > conftest.$ac_ext
12814  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12815  (eval $ac_compile) 2>&5
12816  ac_status=$?
12817  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12818  test $ac_status = 0; }; then
12819    case `/usr/bin/file conftest.$ac_objext` in
12820      *ELF-32*)
12821	HPUX_IA64_MODE="32"
12822	;;
12823      *ELF-64*)
12824	HPUX_IA64_MODE="64"
12825	;;
12826    esac
12827  fi
12828  rm -rf conftest*
12829  ;;
12830*-*-irix6*)
12831  # Find out which ABI we are using.
12832  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12833  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12834  (eval $ac_compile) 2>&5
12835  ac_status=$?
12836  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12837  test $ac_status = 0; }; then
12838    if test "$lt_cv_prog_gnu_ld" = yes; then
12839      case `/usr/bin/file conftest.$ac_objext` in
12840	*32-bit*)
12841	  LD="${LD-ld} -melf32bsmip"
12842	  ;;
12843	*N32*)
12844	  LD="${LD-ld} -melf32bmipn32"
12845	  ;;
12846	*64-bit*)
12847	  LD="${LD-ld} -melf64bmip"
12848	;;
12849      esac
12850    else
12851      case `/usr/bin/file conftest.$ac_objext` in
12852	*32-bit*)
12853	  LD="${LD-ld} -32"
12854	  ;;
12855	*N32*)
12856	  LD="${LD-ld} -n32"
12857	  ;;
12858	*64-bit*)
12859	  LD="${LD-ld} -64"
12860	  ;;
12861      esac
12862    fi
12863  fi
12864  rm -rf conftest*
12865  ;;
12866
12867x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12868s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12869  # Find out which ABI we are using.
12870  echo 'int i;' > conftest.$ac_ext
12871  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12872  (eval $ac_compile) 2>&5
12873  ac_status=$?
12874  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12875  test $ac_status = 0; }; then
12876    case `/usr/bin/file conftest.o` in
12877      *32-bit*)
12878	case $host in
12879	  x86_64-*kfreebsd*-gnu)
12880	    LD="${LD-ld} -m elf_i386_fbsd"
12881	    ;;
12882	  x86_64-*linux*)
12883	    LD="${LD-ld} -m elf_i386"
12884	    ;;
12885	  ppc64-*linux*|powerpc64-*linux*)
12886	    LD="${LD-ld} -m elf32ppclinux"
12887	    ;;
12888	  s390x-*linux*)
12889	    LD="${LD-ld} -m elf_s390"
12890	    ;;
12891	  sparc64-*linux*)
12892	    LD="${LD-ld} -m elf32_sparc"
12893	    ;;
12894	esac
12895	;;
12896      *64-bit*)
12897	case $host in
12898	  x86_64-*kfreebsd*-gnu)
12899	    LD="${LD-ld} -m elf_x86_64_fbsd"
12900	    ;;
12901	  x86_64-*linux*)
12902	    LD="${LD-ld} -m elf_x86_64"
12903	    ;;
12904	  ppc*-*linux*|powerpc*-*linux*)
12905	    LD="${LD-ld} -m elf64ppc"
12906	    ;;
12907	  s390*-*linux*|s390*-*tpf*)
12908	    LD="${LD-ld} -m elf64_s390"
12909	    ;;
12910	  sparc*-*linux*)
12911	    LD="${LD-ld} -m elf64_sparc"
12912	    ;;
12913	esac
12914	;;
12915    esac
12916  fi
12917  rm -rf conftest*
12918  ;;
12919
12920*-*-sco3.2v5*)
12921  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12922  SAVE_CFLAGS="$CFLAGS"
12923  CFLAGS="$CFLAGS -belf"
12924  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12925$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12926if ${lt_cv_cc_needs_belf+:} false; then :
12927  $as_echo_n "(cached) " >&6
12928else
12929  ac_ext=c
12930ac_cpp='$CPP $CPPFLAGS'
12931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12933ac_compiler_gnu=$ac_cv_c_compiler_gnu
12934
12935     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936/* end confdefs.h.  */
12937
12938int
12939main ()
12940{
12941
12942  ;
12943  return 0;
12944}
12945_ACEOF
12946if ac_fn_c_try_link "$LINENO"; then :
12947  lt_cv_cc_needs_belf=yes
12948else
12949  lt_cv_cc_needs_belf=no
12950fi
12951rm -f core conftest.err conftest.$ac_objext \
12952    conftest$ac_exeext conftest.$ac_ext
12953     ac_ext=c
12954ac_cpp='$CPP $CPPFLAGS'
12955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12957ac_compiler_gnu=$ac_cv_c_compiler_gnu
12958
12959fi
12960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12961$as_echo "$lt_cv_cc_needs_belf" >&6; }
12962  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12963    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12964    CFLAGS="$SAVE_CFLAGS"
12965  fi
12966  ;;
12967*-*solaris*)
12968  # Find out which ABI we are using.
12969  echo 'int i;' > conftest.$ac_ext
12970  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12971  (eval $ac_compile) 2>&5
12972  ac_status=$?
12973  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12974  test $ac_status = 0; }; then
12975    case `/usr/bin/file conftest.o` in
12976    *64-bit*)
12977      case $lt_cv_prog_gnu_ld in
12978      yes*)
12979        case $host in
12980        i?86-*-solaris*)
12981          LD="${LD-ld} -m elf_x86_64"
12982          ;;
12983        sparc*-*-solaris*)
12984          LD="${LD-ld} -m elf64_sparc"
12985          ;;
12986        esac
12987        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
12988        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12989          LD="${LD-ld}_sol2"
12990        fi
12991        ;;
12992      *)
12993	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12994	  LD="${LD-ld} -64"
12995	fi
12996	;;
12997      esac
12998      ;;
12999    esac
13000  fi
13001  rm -rf conftest*
13002  ;;
13003esac
13004
13005need_locks="$enable_libtool_lock"
13006
13007if test -n "$ac_tool_prefix"; then
13008  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13009set dummy ${ac_tool_prefix}mt; ac_word=$2
13010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13011$as_echo_n "checking for $ac_word... " >&6; }
13012if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13013  $as_echo_n "(cached) " >&6
13014else
13015  if test -n "$MANIFEST_TOOL"; then
13016  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13017else
13018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13019for as_dir in $PATH
13020do
13021  IFS=$as_save_IFS
13022  test -z "$as_dir" && as_dir=.
13023    for ac_exec_ext in '' $ac_executable_extensions; do
13024  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13025    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13026    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13027    break 2
13028  fi
13029done
13030  done
13031IFS=$as_save_IFS
13032
13033fi
13034fi
13035MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13036if test -n "$MANIFEST_TOOL"; then
13037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13038$as_echo "$MANIFEST_TOOL" >&6; }
13039else
13040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13041$as_echo "no" >&6; }
13042fi
13043
13044
13045fi
13046if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13047  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13048  # Extract the first word of "mt", so it can be a program name with args.
13049set dummy mt; ac_word=$2
13050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13051$as_echo_n "checking for $ac_word... " >&6; }
13052if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13053  $as_echo_n "(cached) " >&6
13054else
13055  if test -n "$ac_ct_MANIFEST_TOOL"; then
13056  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13057else
13058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13059for as_dir in $PATH
13060do
13061  IFS=$as_save_IFS
13062  test -z "$as_dir" && as_dir=.
13063    for ac_exec_ext in '' $ac_executable_extensions; do
13064  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13065    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13066    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13067    break 2
13068  fi
13069done
13070  done
13071IFS=$as_save_IFS
13072
13073fi
13074fi
13075ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13076if test -n "$ac_ct_MANIFEST_TOOL"; then
13077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13078$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13079else
13080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13081$as_echo "no" >&6; }
13082fi
13083
13084  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13085    MANIFEST_TOOL=":"
13086  else
13087    case $cross_compiling:$ac_tool_warned in
13088yes:)
13089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13091ac_tool_warned=yes ;;
13092esac
13093    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13094  fi
13095else
13096  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13097fi
13098
13099test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13101$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13102if ${lt_cv_path_mainfest_tool+:} false; then :
13103  $as_echo_n "(cached) " >&6
13104else
13105  lt_cv_path_mainfest_tool=no
13106  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13107  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13108  cat conftest.err >&5
13109  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13110    lt_cv_path_mainfest_tool=yes
13111  fi
13112  rm -f conftest*
13113fi
13114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13115$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13116if test "x$lt_cv_path_mainfest_tool" != xyes; then
13117  MANIFEST_TOOL=:
13118fi
13119
13120
13121
13122
13123
13124
13125  case $host_os in
13126    rhapsody* | darwin*)
13127    if test -n "$ac_tool_prefix"; then
13128  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13129set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13131$as_echo_n "checking for $ac_word... " >&6; }
13132if ${ac_cv_prog_DSYMUTIL+:} false; then :
13133  $as_echo_n "(cached) " >&6
13134else
13135  if test -n "$DSYMUTIL"; then
13136  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13137else
13138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13139for as_dir in $PATH
13140do
13141  IFS=$as_save_IFS
13142  test -z "$as_dir" && as_dir=.
13143    for ac_exec_ext in '' $ac_executable_extensions; do
13144  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13145    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13146    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13147    break 2
13148  fi
13149done
13150  done
13151IFS=$as_save_IFS
13152
13153fi
13154fi
13155DSYMUTIL=$ac_cv_prog_DSYMUTIL
13156if test -n "$DSYMUTIL"; then
13157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13158$as_echo "$DSYMUTIL" >&6; }
13159else
13160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13161$as_echo "no" >&6; }
13162fi
13163
13164
13165fi
13166if test -z "$ac_cv_prog_DSYMUTIL"; then
13167  ac_ct_DSYMUTIL=$DSYMUTIL
13168  # Extract the first word of "dsymutil", so it can be a program name with args.
13169set dummy dsymutil; ac_word=$2
13170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13171$as_echo_n "checking for $ac_word... " >&6; }
13172if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13173  $as_echo_n "(cached) " >&6
13174else
13175  if test -n "$ac_ct_DSYMUTIL"; then
13176  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13177else
13178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13179for as_dir in $PATH
13180do
13181  IFS=$as_save_IFS
13182  test -z "$as_dir" && as_dir=.
13183    for ac_exec_ext in '' $ac_executable_extensions; do
13184  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13185    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13186    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13187    break 2
13188  fi
13189done
13190  done
13191IFS=$as_save_IFS
13192
13193fi
13194fi
13195ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13196if test -n "$ac_ct_DSYMUTIL"; then
13197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13198$as_echo "$ac_ct_DSYMUTIL" >&6; }
13199else
13200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13201$as_echo "no" >&6; }
13202fi
13203
13204  if test "x$ac_ct_DSYMUTIL" = x; then
13205    DSYMUTIL=":"
13206  else
13207    case $cross_compiling:$ac_tool_warned in
13208yes:)
13209{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13210$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13211ac_tool_warned=yes ;;
13212esac
13213    DSYMUTIL=$ac_ct_DSYMUTIL
13214  fi
13215else
13216  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13217fi
13218
13219    if test -n "$ac_tool_prefix"; then
13220  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13221set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13223$as_echo_n "checking for $ac_word... " >&6; }
13224if ${ac_cv_prog_NMEDIT+:} false; then :
13225  $as_echo_n "(cached) " >&6
13226else
13227  if test -n "$NMEDIT"; then
13228  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13229else
13230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13231for as_dir in $PATH
13232do
13233  IFS=$as_save_IFS
13234  test -z "$as_dir" && as_dir=.
13235    for ac_exec_ext in '' $ac_executable_extensions; do
13236  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13237    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13238    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13239    break 2
13240  fi
13241done
13242  done
13243IFS=$as_save_IFS
13244
13245fi
13246fi
13247NMEDIT=$ac_cv_prog_NMEDIT
13248if test -n "$NMEDIT"; then
13249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13250$as_echo "$NMEDIT" >&6; }
13251else
13252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13253$as_echo "no" >&6; }
13254fi
13255
13256
13257fi
13258if test -z "$ac_cv_prog_NMEDIT"; then
13259  ac_ct_NMEDIT=$NMEDIT
13260  # Extract the first word of "nmedit", so it can be a program name with args.
13261set dummy nmedit; ac_word=$2
13262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13263$as_echo_n "checking for $ac_word... " >&6; }
13264if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13265  $as_echo_n "(cached) " >&6
13266else
13267  if test -n "$ac_ct_NMEDIT"; then
13268  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13269else
13270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13271for as_dir in $PATH
13272do
13273  IFS=$as_save_IFS
13274  test -z "$as_dir" && as_dir=.
13275    for ac_exec_ext in '' $ac_executable_extensions; do
13276  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13277    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13278    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13279    break 2
13280  fi
13281done
13282  done
13283IFS=$as_save_IFS
13284
13285fi
13286fi
13287ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13288if test -n "$ac_ct_NMEDIT"; then
13289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13290$as_echo "$ac_ct_NMEDIT" >&6; }
13291else
13292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13293$as_echo "no" >&6; }
13294fi
13295
13296  if test "x$ac_ct_NMEDIT" = x; then
13297    NMEDIT=":"
13298  else
13299    case $cross_compiling:$ac_tool_warned in
13300yes:)
13301{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13302$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13303ac_tool_warned=yes ;;
13304esac
13305    NMEDIT=$ac_ct_NMEDIT
13306  fi
13307else
13308  NMEDIT="$ac_cv_prog_NMEDIT"
13309fi
13310
13311    if test -n "$ac_tool_prefix"; then
13312  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13313set dummy ${ac_tool_prefix}lipo; ac_word=$2
13314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13315$as_echo_n "checking for $ac_word... " >&6; }
13316if ${ac_cv_prog_LIPO+:} false; then :
13317  $as_echo_n "(cached) " >&6
13318else
13319  if test -n "$LIPO"; then
13320  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13321else
13322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13323for as_dir in $PATH
13324do
13325  IFS=$as_save_IFS
13326  test -z "$as_dir" && as_dir=.
13327    for ac_exec_ext in '' $ac_executable_extensions; do
13328  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13329    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13330    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13331    break 2
13332  fi
13333done
13334  done
13335IFS=$as_save_IFS
13336
13337fi
13338fi
13339LIPO=$ac_cv_prog_LIPO
13340if test -n "$LIPO"; then
13341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13342$as_echo "$LIPO" >&6; }
13343else
13344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13345$as_echo "no" >&6; }
13346fi
13347
13348
13349fi
13350if test -z "$ac_cv_prog_LIPO"; then
13351  ac_ct_LIPO=$LIPO
13352  # Extract the first word of "lipo", so it can be a program name with args.
13353set dummy lipo; ac_word=$2
13354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13355$as_echo_n "checking for $ac_word... " >&6; }
13356if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13357  $as_echo_n "(cached) " >&6
13358else
13359  if test -n "$ac_ct_LIPO"; then
13360  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13361else
13362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13363for as_dir in $PATH
13364do
13365  IFS=$as_save_IFS
13366  test -z "$as_dir" && as_dir=.
13367    for ac_exec_ext in '' $ac_executable_extensions; do
13368  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13369    ac_cv_prog_ac_ct_LIPO="lipo"
13370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13371    break 2
13372  fi
13373done
13374  done
13375IFS=$as_save_IFS
13376
13377fi
13378fi
13379ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13380if test -n "$ac_ct_LIPO"; then
13381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13382$as_echo "$ac_ct_LIPO" >&6; }
13383else
13384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13385$as_echo "no" >&6; }
13386fi
13387
13388  if test "x$ac_ct_LIPO" = x; then
13389    LIPO=":"
13390  else
13391    case $cross_compiling:$ac_tool_warned in
13392yes:)
13393{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13394$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13395ac_tool_warned=yes ;;
13396esac
13397    LIPO=$ac_ct_LIPO
13398  fi
13399else
13400  LIPO="$ac_cv_prog_LIPO"
13401fi
13402
13403    if test -n "$ac_tool_prefix"; then
13404  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13405set dummy ${ac_tool_prefix}otool; ac_word=$2
13406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13407$as_echo_n "checking for $ac_word... " >&6; }
13408if ${ac_cv_prog_OTOOL+:} false; then :
13409  $as_echo_n "(cached) " >&6
13410else
13411  if test -n "$OTOOL"; then
13412  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13413else
13414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13415for as_dir in $PATH
13416do
13417  IFS=$as_save_IFS
13418  test -z "$as_dir" && as_dir=.
13419    for ac_exec_ext in '' $ac_executable_extensions; do
13420  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13421    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13422    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13423    break 2
13424  fi
13425done
13426  done
13427IFS=$as_save_IFS
13428
13429fi
13430fi
13431OTOOL=$ac_cv_prog_OTOOL
13432if test -n "$OTOOL"; then
13433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13434$as_echo "$OTOOL" >&6; }
13435else
13436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13437$as_echo "no" >&6; }
13438fi
13439
13440
13441fi
13442if test -z "$ac_cv_prog_OTOOL"; then
13443  ac_ct_OTOOL=$OTOOL
13444  # Extract the first word of "otool", so it can be a program name with args.
13445set dummy otool; ac_word=$2
13446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13447$as_echo_n "checking for $ac_word... " >&6; }
13448if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13449  $as_echo_n "(cached) " >&6
13450else
13451  if test -n "$ac_ct_OTOOL"; then
13452  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13453else
13454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13455for as_dir in $PATH
13456do
13457  IFS=$as_save_IFS
13458  test -z "$as_dir" && as_dir=.
13459    for ac_exec_ext in '' $ac_executable_extensions; do
13460  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13461    ac_cv_prog_ac_ct_OTOOL="otool"
13462    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13463    break 2
13464  fi
13465done
13466  done
13467IFS=$as_save_IFS
13468
13469fi
13470fi
13471ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13472if test -n "$ac_ct_OTOOL"; then
13473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13474$as_echo "$ac_ct_OTOOL" >&6; }
13475else
13476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13477$as_echo "no" >&6; }
13478fi
13479
13480  if test "x$ac_ct_OTOOL" = x; then
13481    OTOOL=":"
13482  else
13483    case $cross_compiling:$ac_tool_warned in
13484yes:)
13485{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13486$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13487ac_tool_warned=yes ;;
13488esac
13489    OTOOL=$ac_ct_OTOOL
13490  fi
13491else
13492  OTOOL="$ac_cv_prog_OTOOL"
13493fi
13494
13495    if test -n "$ac_tool_prefix"; then
13496  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13497set dummy ${ac_tool_prefix}otool64; ac_word=$2
13498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13499$as_echo_n "checking for $ac_word... " >&6; }
13500if ${ac_cv_prog_OTOOL64+:} false; then :
13501  $as_echo_n "(cached) " >&6
13502else
13503  if test -n "$OTOOL64"; then
13504  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13505else
13506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13507for as_dir in $PATH
13508do
13509  IFS=$as_save_IFS
13510  test -z "$as_dir" && as_dir=.
13511    for ac_exec_ext in '' $ac_executable_extensions; do
13512  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13513    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13515    break 2
13516  fi
13517done
13518  done
13519IFS=$as_save_IFS
13520
13521fi
13522fi
13523OTOOL64=$ac_cv_prog_OTOOL64
13524if test -n "$OTOOL64"; then
13525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13526$as_echo "$OTOOL64" >&6; }
13527else
13528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13529$as_echo "no" >&6; }
13530fi
13531
13532
13533fi
13534if test -z "$ac_cv_prog_OTOOL64"; then
13535  ac_ct_OTOOL64=$OTOOL64
13536  # Extract the first word of "otool64", so it can be a program name with args.
13537set dummy otool64; ac_word=$2
13538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13539$as_echo_n "checking for $ac_word... " >&6; }
13540if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13541  $as_echo_n "(cached) " >&6
13542else
13543  if test -n "$ac_ct_OTOOL64"; then
13544  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13545else
13546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13547for as_dir in $PATH
13548do
13549  IFS=$as_save_IFS
13550  test -z "$as_dir" && as_dir=.
13551    for ac_exec_ext in '' $ac_executable_extensions; do
13552  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13553    ac_cv_prog_ac_ct_OTOOL64="otool64"
13554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13555    break 2
13556  fi
13557done
13558  done
13559IFS=$as_save_IFS
13560
13561fi
13562fi
13563ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13564if test -n "$ac_ct_OTOOL64"; then
13565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13566$as_echo "$ac_ct_OTOOL64" >&6; }
13567else
13568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13569$as_echo "no" >&6; }
13570fi
13571
13572  if test "x$ac_ct_OTOOL64" = x; then
13573    OTOOL64=":"
13574  else
13575    case $cross_compiling:$ac_tool_warned in
13576yes:)
13577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13579ac_tool_warned=yes ;;
13580esac
13581    OTOOL64=$ac_ct_OTOOL64
13582  fi
13583else
13584  OTOOL64="$ac_cv_prog_OTOOL64"
13585fi
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13614$as_echo_n "checking for -single_module linker flag... " >&6; }
13615if ${lt_cv_apple_cc_single_mod+:} false; then :
13616  $as_echo_n "(cached) " >&6
13617else
13618  lt_cv_apple_cc_single_mod=no
13619      if test -z "${LT_MULTI_MODULE}"; then
13620	# By default we will add the -single_module flag. You can override
13621	# by either setting the environment variable LT_MULTI_MODULE
13622	# non-empty at configure time, or by adding -multi_module to the
13623	# link flags.
13624	rm -rf libconftest.dylib*
13625	echo "int foo(void){return 1;}" > conftest.c
13626	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13627-dynamiclib -Wl,-single_module conftest.c" >&5
13628	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13629	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13630        _lt_result=$?
13631	# If there is a non-empty error log, and "single_module"
13632	# appears in it, assume the flag caused a linker warning
13633        if test -s conftest.err && $GREP single_module conftest.err; then
13634	  cat conftest.err >&5
13635	# Otherwise, if the output was created with a 0 exit code from
13636	# the compiler, it worked.
13637	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13638	  lt_cv_apple_cc_single_mod=yes
13639	else
13640	  cat conftest.err >&5
13641	fi
13642	rm -rf libconftest.dylib*
13643	rm -f conftest.*
13644      fi
13645fi
13646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13647$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13648
13649    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13650$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13651if ${lt_cv_ld_exported_symbols_list+:} false; then :
13652  $as_echo_n "(cached) " >&6
13653else
13654  lt_cv_ld_exported_symbols_list=no
13655      save_LDFLAGS=$LDFLAGS
13656      echo "_main" > conftest.sym
13657      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13658      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13659/* end confdefs.h.  */
13660
13661int
13662main ()
13663{
13664
13665  ;
13666  return 0;
13667}
13668_ACEOF
13669if ac_fn_c_try_link "$LINENO"; then :
13670  lt_cv_ld_exported_symbols_list=yes
13671else
13672  lt_cv_ld_exported_symbols_list=no
13673fi
13674rm -f core conftest.err conftest.$ac_objext \
13675    conftest$ac_exeext conftest.$ac_ext
13676	LDFLAGS="$save_LDFLAGS"
13677
13678fi
13679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13680$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13681
13682    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13683$as_echo_n "checking for -force_load linker flag... " >&6; }
13684if ${lt_cv_ld_force_load+:} false; then :
13685  $as_echo_n "(cached) " >&6
13686else
13687  lt_cv_ld_force_load=no
13688      cat > conftest.c << _LT_EOF
13689int forced_loaded() { return 2;}
13690_LT_EOF
13691      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13692      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13693      echo "$AR cru libconftest.a conftest.o" >&5
13694      $AR cru libconftest.a conftest.o 2>&5
13695      echo "$RANLIB libconftest.a" >&5
13696      $RANLIB libconftest.a 2>&5
13697      cat > conftest.c << _LT_EOF
13698int main() { return 0;}
13699_LT_EOF
13700      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13701      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13702      _lt_result=$?
13703      if test -s conftest.err && $GREP force_load conftest.err; then
13704	cat conftest.err >&5
13705      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13706	lt_cv_ld_force_load=yes
13707      else
13708	cat conftest.err >&5
13709      fi
13710        rm -f conftest.err libconftest.a conftest conftest.c
13711        rm -rf conftest.dSYM
13712
13713fi
13714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13715$as_echo "$lt_cv_ld_force_load" >&6; }
13716    case $host_os in
13717    rhapsody* | darwin1.[012])
13718      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13719    darwin1.*)
13720      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13721    darwin*) # darwin 5.x on
13722      # if running on 10.5 or later, the deployment target defaults
13723      # to the OS version, if on x86, and 10.4, the deployment
13724      # target defaults to 10.4. Don't you love it?
13725      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13726	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13727	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13728	10.[012]*)
13729	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13730	10.*)
13731	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13732      esac
13733    ;;
13734  esac
13735    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13736      _lt_dar_single_mod='$single_module'
13737    fi
13738    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13739      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13740    else
13741      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13742    fi
13743    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13744      _lt_dsymutil='~$DSYMUTIL $lib || :'
13745    else
13746      _lt_dsymutil=
13747    fi
13748    ;;
13749  esac
13750
13751for ac_header in dlfcn.h
13752do :
13753  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13754"
13755if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13756  cat >>confdefs.h <<_ACEOF
13757#define HAVE_DLFCN_H 1
13758_ACEOF
13759
13760fi
13761
13762done
13763
13764
13765
13766
13767
13768# Set options
13769
13770
13771
13772        enable_dlopen=no
13773
13774
13775  enable_win32_dll=no
13776
13777
13778            # Check whether --enable-shared was given.
13779if test "${enable_shared+set}" = set; then :
13780  enableval=$enable_shared; p=${PACKAGE-default}
13781    case $enableval in
13782    yes) enable_shared=yes ;;
13783    no) enable_shared=no ;;
13784    *)
13785      enable_shared=no
13786      # Look at the argument we got.  We use all the common list separators.
13787      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13788      for pkg in $enableval; do
13789	IFS="$lt_save_ifs"
13790	if test "X$pkg" = "X$p"; then
13791	  enable_shared=yes
13792	fi
13793      done
13794      IFS="$lt_save_ifs"
13795      ;;
13796    esac
13797else
13798  enable_shared=yes
13799fi
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811# Check whether --with-pic was given.
13812if test "${with_pic+set}" = set; then :
13813  withval=$with_pic; lt_p=${PACKAGE-default}
13814    case $withval in
13815    yes|no) pic_mode=$withval ;;
13816    *)
13817      pic_mode=default
13818      # Look at the argument we got.  We use all the common list separators.
13819      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13820      for lt_pkg in $withval; do
13821	IFS="$lt_save_ifs"
13822	if test "X$lt_pkg" = "X$lt_p"; then
13823	  pic_mode=yes
13824	fi
13825      done
13826      IFS="$lt_save_ifs"
13827      ;;
13828    esac
13829else
13830  pic_mode=default
13831fi
13832
13833
13834test -z "$pic_mode" && pic_mode=default
13835
13836
13837
13838
13839
13840
13841
13842  # Check whether --enable-fast-install was given.
13843if test "${enable_fast_install+set}" = set; then :
13844  enableval=$enable_fast_install; p=${PACKAGE-default}
13845    case $enableval in
13846    yes) enable_fast_install=yes ;;
13847    no) enable_fast_install=no ;;
13848    *)
13849      enable_fast_install=no
13850      # Look at the argument we got.  We use all the common list separators.
13851      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13852      for pkg in $enableval; do
13853	IFS="$lt_save_ifs"
13854	if test "X$pkg" = "X$p"; then
13855	  enable_fast_install=yes
13856	fi
13857      done
13858      IFS="$lt_save_ifs"
13859      ;;
13860    esac
13861else
13862  enable_fast_install=yes
13863fi
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875# This can be used to rebuild libtool when needed
13876LIBTOOL_DEPS="$ltmain"
13877
13878# Always use our own libtool.
13879LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910test -z "$LN_S" && LN_S="ln -s"
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925if test -n "${ZSH_VERSION+set}" ; then
13926   setopt NO_GLOB_SUBST
13927fi
13928
13929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13930$as_echo_n "checking for objdir... " >&6; }
13931if ${lt_cv_objdir+:} false; then :
13932  $as_echo_n "(cached) " >&6
13933else
13934  rm -f .libs 2>/dev/null
13935mkdir .libs 2>/dev/null
13936if test -d .libs; then
13937  lt_cv_objdir=.libs
13938else
13939  # MS-DOS does not allow filenames that begin with a dot.
13940  lt_cv_objdir=_libs
13941fi
13942rmdir .libs 2>/dev/null
13943fi
13944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13945$as_echo "$lt_cv_objdir" >&6; }
13946objdir=$lt_cv_objdir
13947
13948
13949
13950
13951
13952cat >>confdefs.h <<_ACEOF
13953#define LT_OBJDIR "$lt_cv_objdir/"
13954_ACEOF
13955
13956
13957
13958
13959case $host_os in
13960aix3*)
13961  # AIX sometimes has problems with the GCC collect2 program.  For some
13962  # reason, if we set the COLLECT_NAMES environment variable, the problems
13963  # vanish in a puff of smoke.
13964  if test "X${COLLECT_NAMES+set}" != Xset; then
13965    COLLECT_NAMES=
13966    export COLLECT_NAMES
13967  fi
13968  ;;
13969esac
13970
13971# Global variables:
13972ofile=libtool
13973can_build_shared=yes
13974
13975# All known linkers require a `.a' archive for static linking (except MSVC,
13976# which needs '.lib').
13977libext=a
13978
13979with_gnu_ld="$lt_cv_prog_gnu_ld"
13980
13981old_CC="$CC"
13982old_CFLAGS="$CFLAGS"
13983
13984# Set sane defaults for various variables
13985test -z "$CC" && CC=cc
13986test -z "$LTCC" && LTCC=$CC
13987test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13988test -z "$LD" && LD=ld
13989test -z "$ac_objext" && ac_objext=o
13990
13991for cc_temp in $compiler""; do
13992  case $cc_temp in
13993    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13994    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13995    \-*) ;;
13996    *) break;;
13997  esac
13998done
13999cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14000
14001
14002# Only perform the check for file, if the check method requires it
14003test -z "$MAGIC_CMD" && MAGIC_CMD=file
14004case $deplibs_check_method in
14005file_magic*)
14006  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14007    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14008$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14009if ${lt_cv_path_MAGIC_CMD+:} false; then :
14010  $as_echo_n "(cached) " >&6
14011else
14012  case $MAGIC_CMD in
14013[\\/*] |  ?:[\\/]*)
14014  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14015  ;;
14016*)
14017  lt_save_MAGIC_CMD="$MAGIC_CMD"
14018  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14019  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14020  for ac_dir in $ac_dummy; do
14021    IFS="$lt_save_ifs"
14022    test -z "$ac_dir" && ac_dir=.
14023    if test -f $ac_dir/${ac_tool_prefix}file; then
14024      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14025      if test -n "$file_magic_test_file"; then
14026	case $deplibs_check_method in
14027	"file_magic "*)
14028	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14029	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14030	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14031	    $EGREP "$file_magic_regex" > /dev/null; then
14032	    :
14033	  else
14034	    cat <<_LT_EOF 1>&2
14035
14036*** Warning: the command libtool uses to detect shared libraries,
14037*** $file_magic_cmd, produces output that libtool cannot recognize.
14038*** The result is that libtool may fail to recognize shared libraries
14039*** as such.  This will affect the creation of libtool libraries that
14040*** depend on shared libraries, but programs linked with such libtool
14041*** libraries will work regardless of this problem.  Nevertheless, you
14042*** may want to report the problem to your system manager and/or to
14043*** bug-libtool@gnu.org
14044
14045_LT_EOF
14046	  fi ;;
14047	esac
14048      fi
14049      break
14050    fi
14051  done
14052  IFS="$lt_save_ifs"
14053  MAGIC_CMD="$lt_save_MAGIC_CMD"
14054  ;;
14055esac
14056fi
14057
14058MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14059if test -n "$MAGIC_CMD"; then
14060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14061$as_echo "$MAGIC_CMD" >&6; }
14062else
14063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14064$as_echo "no" >&6; }
14065fi
14066
14067
14068
14069
14070
14071if test -z "$lt_cv_path_MAGIC_CMD"; then
14072  if test -n "$ac_tool_prefix"; then
14073    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14074$as_echo_n "checking for file... " >&6; }
14075if ${lt_cv_path_MAGIC_CMD+:} false; then :
14076  $as_echo_n "(cached) " >&6
14077else
14078  case $MAGIC_CMD in
14079[\\/*] |  ?:[\\/]*)
14080  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14081  ;;
14082*)
14083  lt_save_MAGIC_CMD="$MAGIC_CMD"
14084  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14085  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14086  for ac_dir in $ac_dummy; do
14087    IFS="$lt_save_ifs"
14088    test -z "$ac_dir" && ac_dir=.
14089    if test -f $ac_dir/file; then
14090      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14091      if test -n "$file_magic_test_file"; then
14092	case $deplibs_check_method in
14093	"file_magic "*)
14094	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14095	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14096	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14097	    $EGREP "$file_magic_regex" > /dev/null; then
14098	    :
14099	  else
14100	    cat <<_LT_EOF 1>&2
14101
14102*** Warning: the command libtool uses to detect shared libraries,
14103*** $file_magic_cmd, produces output that libtool cannot recognize.
14104*** The result is that libtool may fail to recognize shared libraries
14105*** as such.  This will affect the creation of libtool libraries that
14106*** depend on shared libraries, but programs linked with such libtool
14107*** libraries will work regardless of this problem.  Nevertheless, you
14108*** may want to report the problem to your system manager and/or to
14109*** bug-libtool@gnu.org
14110
14111_LT_EOF
14112	  fi ;;
14113	esac
14114      fi
14115      break
14116    fi
14117  done
14118  IFS="$lt_save_ifs"
14119  MAGIC_CMD="$lt_save_MAGIC_CMD"
14120  ;;
14121esac
14122fi
14123
14124MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14125if test -n "$MAGIC_CMD"; then
14126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14127$as_echo "$MAGIC_CMD" >&6; }
14128else
14129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14130$as_echo "no" >&6; }
14131fi
14132
14133
14134  else
14135    MAGIC_CMD=:
14136  fi
14137fi
14138
14139  fi
14140  ;;
14141esac
14142
14143# Use C for the default configuration in the libtool script
14144
14145lt_save_CC="$CC"
14146ac_ext=c
14147ac_cpp='$CPP $CPPFLAGS'
14148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14150ac_compiler_gnu=$ac_cv_c_compiler_gnu
14151
14152
14153# Source file extension for C test sources.
14154ac_ext=c
14155
14156# Object file extension for compiled C test sources.
14157objext=o
14158objext=$objext
14159
14160# Code to be used in simple compile tests
14161lt_simple_compile_test_code="int some_variable = 0;"
14162
14163# Code to be used in simple link tests
14164lt_simple_link_test_code='int main(){return(0);}'
14165
14166
14167
14168
14169
14170
14171
14172# If no C compiler was specified, use CC.
14173LTCC=${LTCC-"$CC"}
14174
14175# If no C compiler flags were specified, use CFLAGS.
14176LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14177
14178# Allow CC to be a program name with arguments.
14179compiler=$CC
14180
14181# Save the default compiler, since it gets overwritten when the other
14182# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14183compiler_DEFAULT=$CC
14184
14185# save warnings/boilerplate of simple test code
14186ac_outfile=conftest.$ac_objext
14187echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14188eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14189_lt_compiler_boilerplate=`cat conftest.err`
14190$RM conftest*
14191
14192ac_outfile=conftest.$ac_objext
14193echo "$lt_simple_link_test_code" >conftest.$ac_ext
14194eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14195_lt_linker_boilerplate=`cat conftest.err`
14196$RM -r conftest*
14197
14198
14199if test -n "$compiler"; then
14200
14201lt_prog_compiler_no_builtin_flag=
14202
14203if test "$GCC" = yes; then
14204  case $cc_basename in
14205  nvcc*)
14206    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14207  *)
14208    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14209  esac
14210
14211  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14212$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14213if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14214  $as_echo_n "(cached) " >&6
14215else
14216  lt_cv_prog_compiler_rtti_exceptions=no
14217   ac_outfile=conftest.$ac_objext
14218   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14219   lt_compiler_flag="-fno-rtti -fno-exceptions"
14220   # Insert the option either (1) after the last *FLAGS variable, or
14221   # (2) before a word containing "conftest.", or (3) at the end.
14222   # Note that $ac_compile itself does not contain backslashes and begins
14223   # with a dollar sign (not a hyphen), so the echo should work correctly.
14224   # The option is referenced via a variable to avoid confusing sed.
14225   lt_compile=`echo "$ac_compile" | $SED \
14226   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14227   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14228   -e 's:$: $lt_compiler_flag:'`
14229   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14230   (eval "$lt_compile" 2>conftest.err)
14231   ac_status=$?
14232   cat conftest.err >&5
14233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234   if (exit $ac_status) && test -s "$ac_outfile"; then
14235     # The compiler can only warn and ignore the option if not recognized
14236     # So say no if there are warnings other than the usual output.
14237     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14238     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14239     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14240       lt_cv_prog_compiler_rtti_exceptions=yes
14241     fi
14242   fi
14243   $RM conftest*
14244
14245fi
14246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14247$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14248
14249if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14250    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14251else
14252    :
14253fi
14254
14255fi
14256
14257
14258
14259
14260
14261
14262  lt_prog_compiler_wl=
14263lt_prog_compiler_pic=
14264lt_prog_compiler_static=
14265
14266
14267  if test "$GCC" = yes; then
14268    lt_prog_compiler_wl='-Wl,'
14269    lt_prog_compiler_static='-static'
14270
14271    case $host_os in
14272      aix*)
14273      # All AIX code is PIC.
14274      if test "$host_cpu" = ia64; then
14275	# AIX 5 now supports IA64 processor
14276	lt_prog_compiler_static='-Bstatic'
14277      fi
14278      ;;
14279
14280    amigaos*)
14281      case $host_cpu in
14282      powerpc)
14283            # see comment about AmigaOS4 .so support
14284            lt_prog_compiler_pic='-fPIC'
14285        ;;
14286      m68k)
14287            # FIXME: we need at least 68020 code to build shared libraries, but
14288            # adding the `-m68020' flag to GCC prevents building anything better,
14289            # like `-m68040'.
14290            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14291        ;;
14292      esac
14293      ;;
14294
14295    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14296      # PIC is the default for these OSes.
14297      ;;
14298
14299    mingw* | cygwin* | pw32* | os2* | cegcc*)
14300      # This hack is so that the source file can tell whether it is being
14301      # built for inclusion in a dll (and should export symbols for example).
14302      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14303      # (--disable-auto-import) libraries
14304      lt_prog_compiler_pic='-DDLL_EXPORT'
14305      ;;
14306
14307    darwin* | rhapsody*)
14308      # PIC is the default on this platform
14309      # Common symbols not allowed in MH_DYLIB files
14310      lt_prog_compiler_pic='-fno-common'
14311      ;;
14312
14313    haiku*)
14314      # PIC is the default for Haiku.
14315      # The "-static" flag exists, but is broken.
14316      lt_prog_compiler_static=
14317      ;;
14318
14319    hpux*)
14320      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14321      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14322      # sets the default TLS model and affects inlining.
14323      case $host_cpu in
14324      hppa*64*)
14325	# +Z the default
14326	;;
14327      *)
14328	lt_prog_compiler_pic='-fPIC'
14329	;;
14330      esac
14331      ;;
14332
14333    interix[3-9]*)
14334      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14335      # Instead, we relocate shared libraries at runtime.
14336      ;;
14337
14338    msdosdjgpp*)
14339      # Just because we use GCC doesn't mean we suddenly get shared libraries
14340      # on systems that don't support them.
14341      lt_prog_compiler_can_build_shared=no
14342      enable_shared=no
14343      ;;
14344
14345    *nto* | *qnx*)
14346      # QNX uses GNU C++, but need to define -shared option too, otherwise
14347      # it will coredump.
14348      lt_prog_compiler_pic='-fPIC -shared'
14349      ;;
14350
14351    sysv4*MP*)
14352      if test -d /usr/nec; then
14353	lt_prog_compiler_pic=-Kconform_pic
14354      fi
14355      ;;
14356
14357    *)
14358      lt_prog_compiler_pic='-fPIC'
14359      ;;
14360    esac
14361
14362    case $cc_basename in
14363    nvcc*) # Cuda Compiler Driver 2.2
14364      lt_prog_compiler_wl='-Xlinker '
14365      if test -n "$lt_prog_compiler_pic"; then
14366        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14367      fi
14368      ;;
14369    esac
14370  else
14371    # PORTME Check for flag to pass linker flags through the system compiler.
14372    case $host_os in
14373    aix*)
14374      lt_prog_compiler_wl='-Wl,'
14375      if test "$host_cpu" = ia64; then
14376	# AIX 5 now supports IA64 processor
14377	lt_prog_compiler_static='-Bstatic'
14378      else
14379	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14380      fi
14381      ;;
14382
14383    mingw* | cygwin* | pw32* | os2* | cegcc*)
14384      # This hack is so that the source file can tell whether it is being
14385      # built for inclusion in a dll (and should export symbols for example).
14386      lt_prog_compiler_pic='-DDLL_EXPORT'
14387      ;;
14388
14389    hpux9* | hpux10* | hpux11*)
14390      lt_prog_compiler_wl='-Wl,'
14391      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14392      # not for PA HP-UX.
14393      case $host_cpu in
14394      hppa*64*|ia64*)
14395	# +Z the default
14396	;;
14397      *)
14398	lt_prog_compiler_pic='+Z'
14399	;;
14400      esac
14401      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14402      lt_prog_compiler_static='${wl}-a ${wl}archive'
14403      ;;
14404
14405    irix5* | irix6* | nonstopux*)
14406      lt_prog_compiler_wl='-Wl,'
14407      # PIC (with -KPIC) is the default.
14408      lt_prog_compiler_static='-non_shared'
14409      ;;
14410
14411    linux* | k*bsd*-gnu | kopensolaris*-gnu)
14412      case $cc_basename in
14413      # old Intel for x86_64 which still supported -KPIC.
14414      ecc*)
14415	lt_prog_compiler_wl='-Wl,'
14416	lt_prog_compiler_pic='-KPIC'
14417	lt_prog_compiler_static='-static'
14418        ;;
14419      # icc used to be incompatible with GCC.
14420      # ICC 10 doesn't accept -KPIC any more.
14421      icc* | ifort*)
14422	lt_prog_compiler_wl='-Wl,'
14423	lt_prog_compiler_pic='-fPIC'
14424	lt_prog_compiler_static='-static'
14425        ;;
14426      # Lahey Fortran 8.1.
14427      lf95*)
14428	lt_prog_compiler_wl='-Wl,'
14429	lt_prog_compiler_pic='--shared'
14430	lt_prog_compiler_static='--static'
14431	;;
14432      nagfor*)
14433	# NAG Fortran compiler
14434	lt_prog_compiler_wl='-Wl,-Wl,,'
14435	lt_prog_compiler_pic='-PIC'
14436	lt_prog_compiler_static='-Bstatic'
14437	;;
14438      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14439        # Portland Group compilers (*not* the Pentium gcc compiler,
14440	# which looks to be a dead project)
14441	lt_prog_compiler_wl='-Wl,'
14442	lt_prog_compiler_pic='-fpic'
14443	lt_prog_compiler_static='-Bstatic'
14444        ;;
14445      ccc*)
14446        lt_prog_compiler_wl='-Wl,'
14447        # All Alpha code is PIC.
14448        lt_prog_compiler_static='-non_shared'
14449        ;;
14450      xl* | bgxl* | bgf* | mpixl*)
14451	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14452	lt_prog_compiler_wl='-Wl,'
14453	lt_prog_compiler_pic='-qpic'
14454	lt_prog_compiler_static='-qstaticlink'
14455	;;
14456      *)
14457	case `$CC -V 2>&1 | sed 5q` in
14458	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14459	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14460	  lt_prog_compiler_pic='-KPIC'
14461	  lt_prog_compiler_static='-Bstatic'
14462	  lt_prog_compiler_wl=''
14463	  ;;
14464	*Sun\ F* | *Sun*Fortran*)
14465	  lt_prog_compiler_pic='-KPIC'
14466	  lt_prog_compiler_static='-Bstatic'
14467	  lt_prog_compiler_wl='-Qoption ld '
14468	  ;;
14469	*Sun\ C*)
14470	  # Sun C 5.9
14471	  lt_prog_compiler_pic='-KPIC'
14472	  lt_prog_compiler_static='-Bstatic'
14473	  lt_prog_compiler_wl='-Wl,'
14474	  ;;
14475        *Intel*\ [CF]*Compiler*)
14476	  lt_prog_compiler_wl='-Wl,'
14477	  lt_prog_compiler_pic='-fPIC'
14478	  lt_prog_compiler_static='-static'
14479	  ;;
14480	*Portland\ Group*)
14481	  lt_prog_compiler_wl='-Wl,'
14482	  lt_prog_compiler_pic='-fpic'
14483	  lt_prog_compiler_static='-Bstatic'
14484	  ;;
14485	esac
14486	;;
14487      esac
14488      ;;
14489
14490    newsos6)
14491      lt_prog_compiler_pic='-KPIC'
14492      lt_prog_compiler_static='-Bstatic'
14493      ;;
14494
14495    *nto* | *qnx*)
14496      # QNX uses GNU C++, but need to define -shared option too, otherwise
14497      # it will coredump.
14498      lt_prog_compiler_pic='-fPIC -shared'
14499      ;;
14500
14501    osf3* | osf4* | osf5*)
14502      lt_prog_compiler_wl='-Wl,'
14503      # All OSF/1 code is PIC.
14504      lt_prog_compiler_static='-non_shared'
14505      ;;
14506
14507    rdos*)
14508      lt_prog_compiler_static='-non_shared'
14509      ;;
14510
14511    solaris*)
14512      lt_prog_compiler_pic='-KPIC'
14513      lt_prog_compiler_static='-Bstatic'
14514      case $cc_basename in
14515      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14516	lt_prog_compiler_wl='-Qoption ld ';;
14517      *)
14518	lt_prog_compiler_wl='-Wl,';;
14519      esac
14520      ;;
14521
14522    sunos4*)
14523      lt_prog_compiler_wl='-Qoption ld '
14524      lt_prog_compiler_pic='-PIC'
14525      lt_prog_compiler_static='-Bstatic'
14526      ;;
14527
14528    sysv4 | sysv4.2uw2* | sysv4.3*)
14529      lt_prog_compiler_wl='-Wl,'
14530      lt_prog_compiler_pic='-KPIC'
14531      lt_prog_compiler_static='-Bstatic'
14532      ;;
14533
14534    sysv4*MP*)
14535      if test -d /usr/nec ;then
14536	lt_prog_compiler_pic='-Kconform_pic'
14537	lt_prog_compiler_static='-Bstatic'
14538      fi
14539      ;;
14540
14541    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14542      lt_prog_compiler_wl='-Wl,'
14543      lt_prog_compiler_pic='-KPIC'
14544      lt_prog_compiler_static='-Bstatic'
14545      ;;
14546
14547    unicos*)
14548      lt_prog_compiler_wl='-Wl,'
14549      lt_prog_compiler_can_build_shared=no
14550      ;;
14551
14552    uts4*)
14553      lt_prog_compiler_pic='-pic'
14554      lt_prog_compiler_static='-Bstatic'
14555      ;;
14556
14557    *)
14558      lt_prog_compiler_can_build_shared=no
14559      ;;
14560    esac
14561  fi
14562
14563case $host_os in
14564  # For platforms which do not support PIC, -DPIC is meaningless:
14565  *djgpp*)
14566    lt_prog_compiler_pic=
14567    ;;
14568  *)
14569    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14570    ;;
14571esac
14572
14573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14574$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14575if ${lt_cv_prog_compiler_pic+:} false; then :
14576  $as_echo_n "(cached) " >&6
14577else
14578  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14579fi
14580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14581$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14582lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14583
14584#
14585# Check to make sure the PIC flag actually works.
14586#
14587if test -n "$lt_prog_compiler_pic"; then
14588  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14589$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14590if ${lt_cv_prog_compiler_pic_works+:} false; then :
14591  $as_echo_n "(cached) " >&6
14592else
14593  lt_cv_prog_compiler_pic_works=no
14594   ac_outfile=conftest.$ac_objext
14595   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14596   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14597   # Insert the option either (1) after the last *FLAGS variable, or
14598   # (2) before a word containing "conftest.", or (3) at the end.
14599   # Note that $ac_compile itself does not contain backslashes and begins
14600   # with a dollar sign (not a hyphen), so the echo should work correctly.
14601   # The option is referenced via a variable to avoid confusing sed.
14602   lt_compile=`echo "$ac_compile" | $SED \
14603   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14604   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14605   -e 's:$: $lt_compiler_flag:'`
14606   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14607   (eval "$lt_compile" 2>conftest.err)
14608   ac_status=$?
14609   cat conftest.err >&5
14610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611   if (exit $ac_status) && test -s "$ac_outfile"; then
14612     # The compiler can only warn and ignore the option if not recognized
14613     # So say no if there are warnings other than the usual output.
14614     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14615     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14616     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14617       lt_cv_prog_compiler_pic_works=yes
14618     fi
14619   fi
14620   $RM conftest*
14621
14622fi
14623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14624$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14625
14626if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14627    case $lt_prog_compiler_pic in
14628     "" | " "*) ;;
14629     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14630     esac
14631else
14632    lt_prog_compiler_pic=
14633     lt_prog_compiler_can_build_shared=no
14634fi
14635
14636fi
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648#
14649# Check to make sure the static flag actually works.
14650#
14651wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14653$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14654if ${lt_cv_prog_compiler_static_works+:} false; then :
14655  $as_echo_n "(cached) " >&6
14656else
14657  lt_cv_prog_compiler_static_works=no
14658   save_LDFLAGS="$LDFLAGS"
14659   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14660   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14661   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14662     # The linker can only warn and ignore the option if not recognized
14663     # So say no if there are warnings
14664     if test -s conftest.err; then
14665       # Append any errors to the config.log.
14666       cat conftest.err 1>&5
14667       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14668       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14669       if diff conftest.exp conftest.er2 >/dev/null; then
14670         lt_cv_prog_compiler_static_works=yes
14671       fi
14672     else
14673       lt_cv_prog_compiler_static_works=yes
14674     fi
14675   fi
14676   $RM -r conftest*
14677   LDFLAGS="$save_LDFLAGS"
14678
14679fi
14680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14681$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14682
14683if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14684    :
14685else
14686    lt_prog_compiler_static=
14687fi
14688
14689
14690
14691
14692
14693
14694
14695  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14696$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14697if ${lt_cv_prog_compiler_c_o+:} false; then :
14698  $as_echo_n "(cached) " >&6
14699else
14700  lt_cv_prog_compiler_c_o=no
14701   $RM -r conftest 2>/dev/null
14702   mkdir conftest
14703   cd conftest
14704   mkdir out
14705   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14706
14707   lt_compiler_flag="-o out/conftest2.$ac_objext"
14708   # Insert the option either (1) after the last *FLAGS variable, or
14709   # (2) before a word containing "conftest.", or (3) at the end.
14710   # Note that $ac_compile itself does not contain backslashes and begins
14711   # with a dollar sign (not a hyphen), so the echo should work correctly.
14712   lt_compile=`echo "$ac_compile" | $SED \
14713   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14714   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14715   -e 's:$: $lt_compiler_flag:'`
14716   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14717   (eval "$lt_compile" 2>out/conftest.err)
14718   ac_status=$?
14719   cat out/conftest.err >&5
14720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14722   then
14723     # The compiler can only warn and ignore the option if not recognized
14724     # So say no if there are warnings
14725     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14726     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14727     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14728       lt_cv_prog_compiler_c_o=yes
14729     fi
14730   fi
14731   chmod u+w . 2>&5
14732   $RM conftest*
14733   # SGI C++ compiler will create directory out/ii_files/ for
14734   # template instantiation
14735   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14736   $RM out/* && rmdir out
14737   cd ..
14738   $RM -r conftest
14739   $RM conftest*
14740
14741fi
14742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14743$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14744
14745
14746
14747
14748
14749
14750  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14751$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14752if ${lt_cv_prog_compiler_c_o+:} false; then :
14753  $as_echo_n "(cached) " >&6
14754else
14755  lt_cv_prog_compiler_c_o=no
14756   $RM -r conftest 2>/dev/null
14757   mkdir conftest
14758   cd conftest
14759   mkdir out
14760   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14761
14762   lt_compiler_flag="-o out/conftest2.$ac_objext"
14763   # Insert the option either (1) after the last *FLAGS variable, or
14764   # (2) before a word containing "conftest.", or (3) at the end.
14765   # Note that $ac_compile itself does not contain backslashes and begins
14766   # with a dollar sign (not a hyphen), so the echo should work correctly.
14767   lt_compile=`echo "$ac_compile" | $SED \
14768   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14769   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14770   -e 's:$: $lt_compiler_flag:'`
14771   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14772   (eval "$lt_compile" 2>out/conftest.err)
14773   ac_status=$?
14774   cat out/conftest.err >&5
14775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14777   then
14778     # The compiler can only warn and ignore the option if not recognized
14779     # So say no if there are warnings
14780     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14781     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14782     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14783       lt_cv_prog_compiler_c_o=yes
14784     fi
14785   fi
14786   chmod u+w . 2>&5
14787   $RM conftest*
14788   # SGI C++ compiler will create directory out/ii_files/ for
14789   # template instantiation
14790   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14791   $RM out/* && rmdir out
14792   cd ..
14793   $RM -r conftest
14794   $RM conftest*
14795
14796fi
14797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14798$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14799
14800
14801
14802
14803hard_links="nottested"
14804if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14805  # do not overwrite the value of need_locks provided by the user
14806  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14807$as_echo_n "checking if we can lock with hard links... " >&6; }
14808  hard_links=yes
14809  $RM conftest*
14810  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14811  touch conftest.a
14812  ln conftest.a conftest.b 2>&5 || hard_links=no
14813  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14815$as_echo "$hard_links" >&6; }
14816  if test "$hard_links" = no; then
14817    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14818$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14819    need_locks=warn
14820  fi
14821else
14822  need_locks=no
14823fi
14824
14825
14826
14827
14828
14829
14830  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14831$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14832
14833  runpath_var=
14834  allow_undefined_flag=
14835  always_export_symbols=no
14836  archive_cmds=
14837  archive_expsym_cmds=
14838  compiler_needs_object=no
14839  enable_shared_with_static_runtimes=no
14840  export_dynamic_flag_spec=
14841  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14842  hardcode_automatic=no
14843  hardcode_direct=no
14844  hardcode_direct_absolute=no
14845  hardcode_libdir_flag_spec=
14846  hardcode_libdir_separator=
14847  hardcode_minus_L=no
14848  hardcode_shlibpath_var=unsupported
14849  inherit_rpath=no
14850  link_all_deplibs=unknown
14851  module_cmds=
14852  module_expsym_cmds=
14853  old_archive_from_new_cmds=
14854  old_archive_from_expsyms_cmds=
14855  thread_safe_flag_spec=
14856  whole_archive_flag_spec=
14857  # include_expsyms should be a list of space-separated symbols to be *always*
14858  # included in the symbol list
14859  include_expsyms=
14860  # exclude_expsyms can be an extended regexp of symbols to exclude
14861  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14862  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14863  # as well as any symbol that contains `d'.
14864  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14865  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14866  # platforms (ab)use it in PIC code, but their linkers get confused if
14867  # the symbol is explicitly referenced.  Since portable code cannot
14868  # rely on this symbol name, it's probably fine to never include it in
14869  # preloaded symbol tables.
14870  # Exclude shared library initialization/finalization symbols.
14871  extract_expsyms_cmds=
14872
14873  case $host_os in
14874  cygwin* | mingw* | pw32* | cegcc*)
14875    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14876    # When not using gcc, we currently assume that we are using
14877    # Microsoft Visual C++.
14878    if test "$GCC" != yes; then
14879      with_gnu_ld=no
14880    fi
14881    ;;
14882  interix*)
14883    # we just hope/assume this is gcc and not c89 (= MSVC++)
14884    with_gnu_ld=yes
14885    ;;
14886  openbsd*)
14887    with_gnu_ld=no
14888    ;;
14889  esac
14890
14891  ld_shlibs=yes
14892
14893  # On some targets, GNU ld is compatible enough with the native linker
14894  # that we're better off using the native interface for both.
14895  lt_use_gnu_ld_interface=no
14896  if test "$with_gnu_ld" = yes; then
14897    case $host_os in
14898      aix*)
14899	# The AIX port of GNU ld has always aspired to compatibility
14900	# with the native linker.  However, as the warning in the GNU ld
14901	# block says, versions before 2.19.5* couldn't really create working
14902	# shared libraries, regardless of the interface used.
14903	case `$LD -v 2>&1` in
14904	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14905	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14906	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14907	  *)
14908	    lt_use_gnu_ld_interface=yes
14909	    ;;
14910	esac
14911	;;
14912      *)
14913	lt_use_gnu_ld_interface=yes
14914	;;
14915    esac
14916  fi
14917
14918  if test "$lt_use_gnu_ld_interface" = yes; then
14919    # If archive_cmds runs LD, not CC, wlarc should be empty
14920    wlarc='${wl}'
14921
14922    # Set some defaults for GNU ld with shared library support. These
14923    # are reset later if shared libraries are not supported. Putting them
14924    # here allows them to be overridden if necessary.
14925    runpath_var=LD_RUN_PATH
14926    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14927    export_dynamic_flag_spec='${wl}--export-dynamic'
14928    # ancient GNU ld didn't support --whole-archive et. al.
14929    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14930      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14931    else
14932      whole_archive_flag_spec=
14933    fi
14934    supports_anon_versioning=no
14935    case `$LD -v 2>&1` in
14936      *GNU\ gold*) supports_anon_versioning=yes ;;
14937      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14938      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14939      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14940      *\ 2.11.*) ;; # other 2.11 versions
14941      *) supports_anon_versioning=yes ;;
14942    esac
14943
14944    # See if GNU ld supports shared libraries.
14945    case $host_os in
14946    aix[3-9]*)
14947      # On AIX/PPC, the GNU linker is very broken
14948      if test "$host_cpu" != ia64; then
14949	ld_shlibs=no
14950	cat <<_LT_EOF 1>&2
14951
14952*** Warning: the GNU linker, at least up to release 2.19, is reported
14953*** to be unable to reliably create shared libraries on AIX.
14954*** Therefore, libtool is disabling shared libraries support.  If you
14955*** really care for shared libraries, you may want to install binutils
14956*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14957*** You will then need to restart the configuration process.
14958
14959_LT_EOF
14960      fi
14961      ;;
14962
14963    amigaos*)
14964      case $host_cpu in
14965      powerpc)
14966            # see comment about AmigaOS4 .so support
14967            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14968            archive_expsym_cmds=''
14969        ;;
14970      m68k)
14971            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)'
14972            hardcode_libdir_flag_spec='-L$libdir'
14973            hardcode_minus_L=yes
14974        ;;
14975      esac
14976      ;;
14977
14978    beos*)
14979      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14980	allow_undefined_flag=unsupported
14981	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14982	# support --undefined.  This deserves some investigation.  FIXME
14983	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14984      else
14985	ld_shlibs=no
14986      fi
14987      ;;
14988
14989    cygwin* | mingw* | pw32* | cegcc*)
14990      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14991      # as there is no search path for DLLs.
14992      hardcode_libdir_flag_spec='-L$libdir'
14993      export_dynamic_flag_spec='${wl}--export-all-symbols'
14994      allow_undefined_flag=unsupported
14995      always_export_symbols=no
14996      enable_shared_with_static_runtimes=yes
14997      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'
14998      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14999
15000      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15001        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15002	# If the export-symbols file already is a .def file (1st line
15003	# is EXPORTS), use it as is; otherwise, prepend...
15004	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15005	  cp $export_symbols $output_objdir/$soname.def;
15006	else
15007	  echo EXPORTS > $output_objdir/$soname.def;
15008	  cat $export_symbols >> $output_objdir/$soname.def;
15009	fi~
15010	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15011      else
15012	ld_shlibs=no
15013      fi
15014      ;;
15015
15016    haiku*)
15017      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15018      link_all_deplibs=yes
15019      ;;
15020
15021    interix[3-9]*)
15022      hardcode_direct=no
15023      hardcode_shlibpath_var=no
15024      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15025      export_dynamic_flag_spec='${wl}-E'
15026      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15027      # Instead, shared libraries are loaded at an image base (0x10000000 by
15028      # default) and relocated if they conflict, which is a slow very memory
15029      # consuming and fragmenting process.  To avoid this, we pick a random,
15030      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15031      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15032      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15033      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'
15034      ;;
15035
15036    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15037      tmp_diet=no
15038      if test "$host_os" = linux-dietlibc; then
15039	case $cc_basename in
15040	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15041	esac
15042      fi
15043      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15044	 && test "$tmp_diet" = no
15045      then
15046	tmp_addflag=' $pic_flag'
15047	tmp_sharedflag='-shared'
15048	case $cc_basename,$host_cpu in
15049        pgcc*)				# Portland Group C compiler
15050	  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'
15051	  tmp_addflag=' $pic_flag'
15052	  ;;
15053	pgf77* | pgf90* | pgf95* | pgfortran*)
15054					# Portland Group f77 and f90 compilers
15055	  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'
15056	  tmp_addflag=' $pic_flag -Mnomain' ;;
15057	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15058	  tmp_addflag=' -i_dynamic' ;;
15059	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15060	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15061	ifc* | ifort*)			# Intel Fortran compiler
15062	  tmp_addflag=' -nofor_main' ;;
15063	lf95*)				# Lahey Fortran 8.1
15064	  whole_archive_flag_spec=
15065	  tmp_sharedflag='--shared' ;;
15066	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15067	  tmp_sharedflag='-qmkshrobj'
15068	  tmp_addflag= ;;
15069	nvcc*)	# Cuda Compiler Driver 2.2
15070	  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'
15071	  compiler_needs_object=yes
15072	  ;;
15073	esac
15074	case `$CC -V 2>&1 | sed 5q` in
15075	*Sun\ C*)			# Sun C 5.9
15076	  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'
15077	  compiler_needs_object=yes
15078	  tmp_sharedflag='-G' ;;
15079	*Sun\ F*)			# Sun Fortran 8.3
15080	  tmp_sharedflag='-G' ;;
15081	esac
15082	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15083
15084        if test "x$supports_anon_versioning" = xyes; then
15085          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15086	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15087	    echo "local: *; };" >> $output_objdir/$libname.ver~
15088	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15089        fi
15090
15091	case $cc_basename in
15092	xlf* | bgf* | bgxlf* | mpixlf*)
15093	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15094	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15095	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15096	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15097	  if test "x$supports_anon_versioning" = xyes; then
15098	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15099	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15100	      echo "local: *; };" >> $output_objdir/$libname.ver~
15101	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15102	  fi
15103	  ;;
15104	esac
15105      else
15106        ld_shlibs=no
15107      fi
15108      ;;
15109
15110    netbsd*)
15111      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15112	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15113	wlarc=
15114      else
15115	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15116	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15117      fi
15118      ;;
15119
15120    solaris*)
15121      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15122	ld_shlibs=no
15123	cat <<_LT_EOF 1>&2
15124
15125*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15126*** create shared libraries on Solaris systems.  Therefore, libtool
15127*** is disabling shared libraries support.  We urge you to upgrade GNU
15128*** binutils to release 2.9.1 or newer.  Another option is to modify
15129*** your PATH or compiler configuration so that the native linker is
15130*** used, and then restart.
15131
15132_LT_EOF
15133      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15134	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15135	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15136      else
15137	ld_shlibs=no
15138      fi
15139      ;;
15140
15141    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15142      case `$LD -v 2>&1` in
15143        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15144	ld_shlibs=no
15145	cat <<_LT_EOF 1>&2
15146
15147*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15148*** reliably create shared libraries on SCO systems.  Therefore, libtool
15149*** is disabling shared libraries support.  We urge you to upgrade GNU
15150*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15151*** your PATH or compiler configuration so that the native linker is
15152*** used, and then restart.
15153
15154_LT_EOF
15155	;;
15156	*)
15157	  # For security reasons, it is highly recommended that you always
15158	  # use absolute paths for naming shared libraries, and exclude the
15159	  # DT_RUNPATH tag from executables and libraries.  But doing so
15160	  # requires that you compile everything twice, which is a pain.
15161	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15162	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15163	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15164	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15165	  else
15166	    ld_shlibs=no
15167	  fi
15168	;;
15169      esac
15170      ;;
15171
15172    sunos4*)
15173      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15174      wlarc=
15175      hardcode_direct=yes
15176      hardcode_shlibpath_var=no
15177      ;;
15178
15179    *)
15180      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15181	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15182	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15183      else
15184	ld_shlibs=no
15185      fi
15186      ;;
15187    esac
15188
15189    if test "$ld_shlibs" = no; then
15190      runpath_var=
15191      hardcode_libdir_flag_spec=
15192      export_dynamic_flag_spec=
15193      whole_archive_flag_spec=
15194    fi
15195  else
15196    # PORTME fill in a description of your system's linker (not GNU ld)
15197    case $host_os in
15198    aix3*)
15199      allow_undefined_flag=unsupported
15200      always_export_symbols=yes
15201      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'
15202      # Note: this linker hardcodes the directories in LIBPATH if there
15203      # are no directories specified by -L.
15204      hardcode_minus_L=yes
15205      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15206	# Neither direct hardcoding nor static linking is supported with a
15207	# broken collect2.
15208	hardcode_direct=unsupported
15209      fi
15210      ;;
15211
15212    aix[4-9]*)
15213      if test "$host_cpu" = ia64; then
15214	# On IA64, the linker does run time linking by default, so we don't
15215	# have to do anything special.
15216	aix_use_runtimelinking=no
15217	exp_sym_flag='-Bexport'
15218	no_entry_flag=""
15219      else
15220	# If we're using GNU nm, then we don't want the "-C" option.
15221	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15222	# Also, AIX nm treats weak defined symbols like other global
15223	# defined symbols, whereas GNU nm marks them as "W".
15224	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15225	  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'
15226	else
15227	  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'
15228	fi
15229	aix_use_runtimelinking=no
15230
15231	# Test if we are trying to use run time linking or normal
15232	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15233	# need to do runtime linking.
15234	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15235	  for ld_flag in $LDFLAGS; do
15236	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15237	    aix_use_runtimelinking=yes
15238	    break
15239	  fi
15240	  done
15241	  ;;
15242	esac
15243
15244	exp_sym_flag='-bexport'
15245	no_entry_flag='-bnoentry'
15246      fi
15247
15248      # When large executables or shared objects are built, AIX ld can
15249      # have problems creating the table of contents.  If linking a library
15250      # or program results in "error TOC overflow" add -mminimal-toc to
15251      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15252      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15253
15254      archive_cmds=''
15255      hardcode_direct=yes
15256      hardcode_direct_absolute=yes
15257      hardcode_libdir_separator=':'
15258      link_all_deplibs=yes
15259      file_list_spec='${wl}-f,'
15260
15261      if test "$GCC" = yes; then
15262	case $host_os in aix4.[012]|aix4.[012].*)
15263	# We only want to do this on AIX 4.2 and lower, the check
15264	# below for broken collect2 doesn't work under 4.3+
15265	  collect2name=`${CC} -print-prog-name=collect2`
15266	  if test -f "$collect2name" &&
15267	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15268	  then
15269	  # We have reworked collect2
15270	  :
15271	  else
15272	  # We have old collect2
15273	  hardcode_direct=unsupported
15274	  # It fails to find uninstalled libraries when the uninstalled
15275	  # path is not listed in the libpath.  Setting hardcode_minus_L
15276	  # to unsupported forces relinking
15277	  hardcode_minus_L=yes
15278	  hardcode_libdir_flag_spec='-L$libdir'
15279	  hardcode_libdir_separator=
15280	  fi
15281	  ;;
15282	esac
15283	shared_flag='-shared'
15284	if test "$aix_use_runtimelinking" = yes; then
15285	  shared_flag="$shared_flag "'${wl}-G'
15286	fi
15287      else
15288	# not using gcc
15289	if test "$host_cpu" = ia64; then
15290	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15291	# chokes on -Wl,-G. The following line is correct:
15292	  shared_flag='-G'
15293	else
15294	  if test "$aix_use_runtimelinking" = yes; then
15295	    shared_flag='${wl}-G'
15296	  else
15297	    shared_flag='${wl}-bM:SRE'
15298	  fi
15299	fi
15300      fi
15301
15302      export_dynamic_flag_spec='${wl}-bexpall'
15303      # It seems that -bexpall does not export symbols beginning with
15304      # underscore (_), so it is better to generate a list of symbols to export.
15305      always_export_symbols=yes
15306      if test "$aix_use_runtimelinking" = yes; then
15307	# Warning - without using the other runtime loading flags (-brtl),
15308	# -berok will link without error, but may produce a broken library.
15309	allow_undefined_flag='-berok'
15310        # Determine the default libpath from the value encoded in an
15311        # empty executable.
15312        if test "${lt_cv_aix_libpath+set}" = set; then
15313  aix_libpath=$lt_cv_aix_libpath
15314else
15315  if ${lt_cv_aix_libpath_+:} false; then :
15316  $as_echo_n "(cached) " >&6
15317else
15318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15319/* end confdefs.h.  */
15320
15321int
15322main ()
15323{
15324
15325  ;
15326  return 0;
15327}
15328_ACEOF
15329if ac_fn_c_try_link "$LINENO"; then :
15330
15331  lt_aix_libpath_sed='
15332      /Import File Strings/,/^$/ {
15333	  /^0/ {
15334	      s/^0  *\([^ ]*\) *$/\1/
15335	      p
15336	  }
15337      }'
15338  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15339  # Check for a 64-bit object if we didn't find anything.
15340  if test -z "$lt_cv_aix_libpath_"; then
15341    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15342  fi
15343fi
15344rm -f core conftest.err conftest.$ac_objext \
15345    conftest$ac_exeext conftest.$ac_ext
15346  if test -z "$lt_cv_aix_libpath_"; then
15347    lt_cv_aix_libpath_="/usr/lib:/lib"
15348  fi
15349
15350fi
15351
15352  aix_libpath=$lt_cv_aix_libpath_
15353fi
15354
15355        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15356        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"
15357      else
15358	if test "$host_cpu" = ia64; then
15359	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15360	  allow_undefined_flag="-z nodefs"
15361	  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"
15362	else
15363	 # Determine the default libpath from the value encoded in an
15364	 # empty executable.
15365	 if test "${lt_cv_aix_libpath+set}" = set; then
15366  aix_libpath=$lt_cv_aix_libpath
15367else
15368  if ${lt_cv_aix_libpath_+:} false; then :
15369  $as_echo_n "(cached) " >&6
15370else
15371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15372/* end confdefs.h.  */
15373
15374int
15375main ()
15376{
15377
15378  ;
15379  return 0;
15380}
15381_ACEOF
15382if ac_fn_c_try_link "$LINENO"; then :
15383
15384  lt_aix_libpath_sed='
15385      /Import File Strings/,/^$/ {
15386	  /^0/ {
15387	      s/^0  *\([^ ]*\) *$/\1/
15388	      p
15389	  }
15390      }'
15391  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15392  # Check for a 64-bit object if we didn't find anything.
15393  if test -z "$lt_cv_aix_libpath_"; then
15394    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15395  fi
15396fi
15397rm -f core conftest.err conftest.$ac_objext \
15398    conftest$ac_exeext conftest.$ac_ext
15399  if test -z "$lt_cv_aix_libpath_"; then
15400    lt_cv_aix_libpath_="/usr/lib:/lib"
15401  fi
15402
15403fi
15404
15405  aix_libpath=$lt_cv_aix_libpath_
15406fi
15407
15408	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15409	  # Warning - without using the other run time loading flags,
15410	  # -berok will link without error, but may produce a broken library.
15411	  no_undefined_flag=' ${wl}-bernotok'
15412	  allow_undefined_flag=' ${wl}-berok'
15413	  if test "$with_gnu_ld" = yes; then
15414	    # We only use this code for GNU lds that support --whole-archive.
15415	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15416	  else
15417	    # Exported symbols can be pulled into shared objects from archives
15418	    whole_archive_flag_spec='$convenience'
15419	  fi
15420	  archive_cmds_need_lc=yes
15421	  # This is similar to how AIX traditionally builds its shared libraries.
15422	  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'
15423	fi
15424      fi
15425      ;;
15426
15427    amigaos*)
15428      case $host_cpu in
15429      powerpc)
15430            # see comment about AmigaOS4 .so support
15431            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15432            archive_expsym_cmds=''
15433        ;;
15434      m68k)
15435            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)'
15436            hardcode_libdir_flag_spec='-L$libdir'
15437            hardcode_minus_L=yes
15438        ;;
15439      esac
15440      ;;
15441
15442    bsdi[45]*)
15443      export_dynamic_flag_spec=-rdynamic
15444      ;;
15445
15446    cygwin* | mingw* | pw32* | cegcc*)
15447      # When not using gcc, we currently assume that we are using
15448      # Microsoft Visual C++.
15449      # hardcode_libdir_flag_spec is actually meaningless, as there is
15450      # no search path for DLLs.
15451      case $cc_basename in
15452      cl*)
15453	# Native MSVC
15454	hardcode_libdir_flag_spec=' '
15455	allow_undefined_flag=unsupported
15456	always_export_symbols=yes
15457	file_list_spec='@'
15458	# Tell ltmain to make .lib files, not .a files.
15459	libext=lib
15460	# Tell ltmain to make .dll files, not .so files.
15461	shrext_cmds=".dll"
15462	# FIXME: Setting linknames here is a bad hack.
15463	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15464	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15465	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15466	  else
15467	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15468	  fi~
15469	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15470	  linknames='
15471	# The linker will not automatically build a static lib if we build a DLL.
15472	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15473	enable_shared_with_static_runtimes=yes
15474	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15475	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15476	# Don't use ranlib
15477	old_postinstall_cmds='chmod 644 $oldlib'
15478	postlink_cmds='lt_outputfile="@OUTPUT@"~
15479	  lt_tool_outputfile="@TOOL_OUTPUT@"~
15480	  case $lt_outputfile in
15481	    *.exe|*.EXE) ;;
15482	    *)
15483	      lt_outputfile="$lt_outputfile.exe"
15484	      lt_tool_outputfile="$lt_tool_outputfile.exe"
15485	      ;;
15486	  esac~
15487	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15488	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15489	    $RM "$lt_outputfile.manifest";
15490	  fi'
15491	;;
15492      *)
15493	# Assume MSVC wrapper
15494	hardcode_libdir_flag_spec=' '
15495	allow_undefined_flag=unsupported
15496	# Tell ltmain to make .lib files, not .a files.
15497	libext=lib
15498	# Tell ltmain to make .dll files, not .so files.
15499	shrext_cmds=".dll"
15500	# FIXME: Setting linknames here is a bad hack.
15501	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15502	# The linker will automatically build a .lib file if we build a DLL.
15503	old_archive_from_new_cmds='true'
15504	# FIXME: Should let the user specify the lib program.
15505	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15506	enable_shared_with_static_runtimes=yes
15507	;;
15508      esac
15509      ;;
15510
15511    darwin* | rhapsody*)
15512
15513
15514  archive_cmds_need_lc=no
15515  hardcode_direct=no
15516  hardcode_automatic=yes
15517  hardcode_shlibpath_var=unsupported
15518  if test "$lt_cv_ld_force_load" = "yes"; then
15519    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\"`'
15520
15521  else
15522    whole_archive_flag_spec=''
15523  fi
15524  link_all_deplibs=yes
15525  allow_undefined_flag="$_lt_dar_allow_undefined"
15526  case $cc_basename in
15527     ifort*) _lt_dar_can_shared=yes ;;
15528     *) _lt_dar_can_shared=$GCC ;;
15529  esac
15530  if test "$_lt_dar_can_shared" = "yes"; then
15531    output_verbose_link_cmd=func_echo_all
15532    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15533    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15534    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}"
15535    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}"
15536
15537  else
15538  ld_shlibs=no
15539  fi
15540
15541      ;;
15542
15543    dgux*)
15544      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15545      hardcode_libdir_flag_spec='-L$libdir'
15546      hardcode_shlibpath_var=no
15547      ;;
15548
15549    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15550    # support.  Future versions do this automatically, but an explicit c++rt0.o
15551    # does not break anything, and helps significantly (at the cost of a little
15552    # extra space).
15553    freebsd2.2*)
15554      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15555      hardcode_libdir_flag_spec='-R$libdir'
15556      hardcode_direct=yes
15557      hardcode_shlibpath_var=no
15558      ;;
15559
15560    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15561    freebsd2.*)
15562      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15563      hardcode_direct=yes
15564      hardcode_minus_L=yes
15565      hardcode_shlibpath_var=no
15566      ;;
15567
15568    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15569    freebsd* | dragonfly*)
15570      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15571      hardcode_libdir_flag_spec='-R$libdir'
15572      hardcode_direct=yes
15573      hardcode_shlibpath_var=no
15574      ;;
15575
15576    hpux9*)
15577      if test "$GCC" = yes; then
15578	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'
15579      else
15580	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'
15581      fi
15582      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15583      hardcode_libdir_separator=:
15584      hardcode_direct=yes
15585
15586      # hardcode_minus_L: Not really in the search PATH,
15587      # but as the default location of the library.
15588      hardcode_minus_L=yes
15589      export_dynamic_flag_spec='${wl}-E'
15590      ;;
15591
15592    hpux10*)
15593      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15594	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15595      else
15596	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15597      fi
15598      if test "$with_gnu_ld" = no; then
15599	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15600	hardcode_libdir_separator=:
15601	hardcode_direct=yes
15602	hardcode_direct_absolute=yes
15603	export_dynamic_flag_spec='${wl}-E'
15604	# hardcode_minus_L: Not really in the search PATH,
15605	# but as the default location of the library.
15606	hardcode_minus_L=yes
15607      fi
15608      ;;
15609
15610    hpux11*)
15611      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15612	case $host_cpu in
15613	hppa*64*)
15614	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15615	  ;;
15616	ia64*)
15617	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15618	  ;;
15619	*)
15620	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15621	  ;;
15622	esac
15623      else
15624	case $host_cpu in
15625	hppa*64*)
15626	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15627	  ;;
15628	ia64*)
15629	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15630	  ;;
15631	*)
15632
15633	  # Older versions of the 11.00 compiler do not understand -b yet
15634	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15635	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15636$as_echo_n "checking if $CC understands -b... " >&6; }
15637if ${lt_cv_prog_compiler__b+:} false; then :
15638  $as_echo_n "(cached) " >&6
15639else
15640  lt_cv_prog_compiler__b=no
15641   save_LDFLAGS="$LDFLAGS"
15642   LDFLAGS="$LDFLAGS -b"
15643   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15644   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15645     # The linker can only warn and ignore the option if not recognized
15646     # So say no if there are warnings
15647     if test -s conftest.err; then
15648       # Append any errors to the config.log.
15649       cat conftest.err 1>&5
15650       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15651       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15652       if diff conftest.exp conftest.er2 >/dev/null; then
15653         lt_cv_prog_compiler__b=yes
15654       fi
15655     else
15656       lt_cv_prog_compiler__b=yes
15657     fi
15658   fi
15659   $RM -r conftest*
15660   LDFLAGS="$save_LDFLAGS"
15661
15662fi
15663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15664$as_echo "$lt_cv_prog_compiler__b" >&6; }
15665
15666if test x"$lt_cv_prog_compiler__b" = xyes; then
15667    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15668else
15669    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15670fi
15671
15672	  ;;
15673	esac
15674      fi
15675      if test "$with_gnu_ld" = no; then
15676	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15677	hardcode_libdir_separator=:
15678
15679	case $host_cpu in
15680	hppa*64*|ia64*)
15681	  hardcode_direct=no
15682	  hardcode_shlibpath_var=no
15683	  ;;
15684	*)
15685	  hardcode_direct=yes
15686	  hardcode_direct_absolute=yes
15687	  export_dynamic_flag_spec='${wl}-E'
15688
15689	  # hardcode_minus_L: Not really in the search PATH,
15690	  # but as the default location of the library.
15691	  hardcode_minus_L=yes
15692	  ;;
15693	esac
15694      fi
15695      ;;
15696
15697    irix5* | irix6* | nonstopux*)
15698      if test "$GCC" = yes; then
15699	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'
15700	# Try to use the -exported_symbol ld option, if it does not
15701	# work, assume that -exports_file does not work either and
15702	# implicitly export all symbols.
15703	# This should be the same for all languages, so no per-tag cache variable.
15704	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15705$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15706if ${lt_cv_irix_exported_symbol+:} false; then :
15707  $as_echo_n "(cached) " >&6
15708else
15709  save_LDFLAGS="$LDFLAGS"
15710	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15711	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15712/* end confdefs.h.  */
15713int foo (void) { return 0; }
15714_ACEOF
15715if ac_fn_c_try_link "$LINENO"; then :
15716  lt_cv_irix_exported_symbol=yes
15717else
15718  lt_cv_irix_exported_symbol=no
15719fi
15720rm -f core conftest.err conftest.$ac_objext \
15721    conftest$ac_exeext conftest.$ac_ext
15722           LDFLAGS="$save_LDFLAGS"
15723fi
15724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15725$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15726	if test "$lt_cv_irix_exported_symbol" = yes; then
15727          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'
15728	fi
15729      else
15730	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'
15731	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'
15732      fi
15733      archive_cmds_need_lc='no'
15734      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15735      hardcode_libdir_separator=:
15736      inherit_rpath=yes
15737      link_all_deplibs=yes
15738      ;;
15739
15740    netbsd*)
15741      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15742	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15743      else
15744	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15745      fi
15746      hardcode_libdir_flag_spec='-R$libdir'
15747      hardcode_direct=yes
15748      hardcode_shlibpath_var=no
15749      ;;
15750
15751    newsos6)
15752      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15753      hardcode_direct=yes
15754      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15755      hardcode_libdir_separator=:
15756      hardcode_shlibpath_var=no
15757      ;;
15758
15759    *nto* | *qnx*)
15760      ;;
15761
15762    openbsd*)
15763      if test -f /usr/libexec/ld.so; then
15764	hardcode_direct=yes
15765	hardcode_shlibpath_var=no
15766	hardcode_direct_absolute=yes
15767	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15768	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15769	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15770	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15771	  export_dynamic_flag_spec='${wl}-E'
15772	else
15773	  case $host_os in
15774	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15775	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15776	     hardcode_libdir_flag_spec='-R$libdir'
15777	     ;;
15778	   *)
15779	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15780	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15781	     ;;
15782	  esac
15783	fi
15784      else
15785	ld_shlibs=no
15786      fi
15787      ;;
15788
15789    os2*)
15790      hardcode_libdir_flag_spec='-L$libdir'
15791      hardcode_minus_L=yes
15792      allow_undefined_flag=unsupported
15793      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'
15794      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15795      ;;
15796
15797    osf3*)
15798      if test "$GCC" = yes; then
15799	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15800	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'
15801      else
15802	allow_undefined_flag=' -expect_unresolved \*'
15803	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'
15804      fi
15805      archive_cmds_need_lc='no'
15806      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15807      hardcode_libdir_separator=:
15808      ;;
15809
15810    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15811      if test "$GCC" = yes; then
15812	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15813	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'
15814	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15815      else
15816	allow_undefined_flag=' -expect_unresolved \*'
15817	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'
15818	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~
15819	$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'
15820
15821	# Both c and cxx compiler support -rpath directly
15822	hardcode_libdir_flag_spec='-rpath $libdir'
15823      fi
15824      archive_cmds_need_lc='no'
15825      hardcode_libdir_separator=:
15826      ;;
15827
15828    solaris*)
15829      no_undefined_flag=' -z defs'
15830      if test "$GCC" = yes; then
15831	wlarc='${wl}'
15832	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15833	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15834	  $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'
15835      else
15836	case `$CC -V 2>&1` in
15837	*"Compilers 5.0"*)
15838	  wlarc=''
15839	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15840	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15841	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15842	  ;;
15843	*)
15844	  wlarc='${wl}'
15845	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15846	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15847	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15848	  ;;
15849	esac
15850      fi
15851      hardcode_libdir_flag_spec='-R$libdir'
15852      hardcode_shlibpath_var=no
15853      case $host_os in
15854      solaris2.[0-5] | solaris2.[0-5].*) ;;
15855      *)
15856	# The compiler driver will combine and reorder linker options,
15857	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15858	# but is careful enough not to reorder.
15859	# Supported since Solaris 2.6 (maybe 2.5.1?)
15860	if test "$GCC" = yes; then
15861	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15862	else
15863	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15864	fi
15865	;;
15866      esac
15867      link_all_deplibs=yes
15868      ;;
15869
15870    sunos4*)
15871      if test "x$host_vendor" = xsequent; then
15872	# Use $CC to link under sequent, because it throws in some extra .o
15873	# files that make .init and .fini sections work.
15874	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15875      else
15876	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15877      fi
15878      hardcode_libdir_flag_spec='-L$libdir'
15879      hardcode_direct=yes
15880      hardcode_minus_L=yes
15881      hardcode_shlibpath_var=no
15882      ;;
15883
15884    sysv4)
15885      case $host_vendor in
15886	sni)
15887	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15888	  hardcode_direct=yes # is this really true???
15889	;;
15890	siemens)
15891	  ## LD is ld it makes a PLAMLIB
15892	  ## CC just makes a GrossModule.
15893	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15894	  reload_cmds='$CC -r -o $output$reload_objs'
15895	  hardcode_direct=no
15896        ;;
15897	motorola)
15898	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15899	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15900	;;
15901      esac
15902      runpath_var='LD_RUN_PATH'
15903      hardcode_shlibpath_var=no
15904      ;;
15905
15906    sysv4.3*)
15907      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15908      hardcode_shlibpath_var=no
15909      export_dynamic_flag_spec='-Bexport'
15910      ;;
15911
15912    sysv4*MP*)
15913      if test -d /usr/nec; then
15914	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15915	hardcode_shlibpath_var=no
15916	runpath_var=LD_RUN_PATH
15917	hardcode_runpath_var=yes
15918	ld_shlibs=yes
15919      fi
15920      ;;
15921
15922    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15923      no_undefined_flag='${wl}-z,text'
15924      archive_cmds_need_lc=no
15925      hardcode_shlibpath_var=no
15926      runpath_var='LD_RUN_PATH'
15927
15928      if test "$GCC" = yes; then
15929	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15930	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15931      else
15932	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15933	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15934      fi
15935      ;;
15936
15937    sysv5* | sco3.2v5* | sco5v6*)
15938      # Note: We can NOT use -z defs as we might desire, because we do not
15939      # link with -lc, and that would cause any symbols used from libc to
15940      # always be unresolved, which means just about no library would
15941      # ever link correctly.  If we're not using GNU ld we use -z text
15942      # though, which does catch some bad symbols but isn't as heavy-handed
15943      # as -z defs.
15944      no_undefined_flag='${wl}-z,text'
15945      allow_undefined_flag='${wl}-z,nodefs'
15946      archive_cmds_need_lc=no
15947      hardcode_shlibpath_var=no
15948      hardcode_libdir_flag_spec='${wl}-R,$libdir'
15949      hardcode_libdir_separator=':'
15950      link_all_deplibs=yes
15951      export_dynamic_flag_spec='${wl}-Bexport'
15952      runpath_var='LD_RUN_PATH'
15953
15954      if test "$GCC" = yes; then
15955	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15956	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15957      else
15958	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15959	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15960      fi
15961      ;;
15962
15963    uts4*)
15964      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15965      hardcode_libdir_flag_spec='-L$libdir'
15966      hardcode_shlibpath_var=no
15967      ;;
15968
15969    *)
15970      ld_shlibs=no
15971      ;;
15972    esac
15973
15974    if test x$host_vendor = xsni; then
15975      case $host in
15976      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15977	export_dynamic_flag_spec='${wl}-Blargedynsym'
15978	;;
15979      esac
15980    fi
15981  fi
15982
15983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15984$as_echo "$ld_shlibs" >&6; }
15985test "$ld_shlibs" = no && can_build_shared=no
15986
15987with_gnu_ld=$with_gnu_ld
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003#
16004# Do we need to explicitly link libc?
16005#
16006case "x$archive_cmds_need_lc" in
16007x|xyes)
16008  # Assume -lc should be added
16009  archive_cmds_need_lc=yes
16010
16011  if test "$enable_shared" = yes && test "$GCC" = yes; then
16012    case $archive_cmds in
16013    *'~'*)
16014      # FIXME: we may have to deal with multi-command sequences.
16015      ;;
16016    '$CC '*)
16017      # Test whether the compiler implicitly links with -lc since on some
16018      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16019      # to ld, don't add -lc before -lgcc.
16020      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16021$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16022if ${lt_cv_archive_cmds_need_lc+:} false; then :
16023  $as_echo_n "(cached) " >&6
16024else
16025  $RM conftest*
16026	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16027
16028	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16029  (eval $ac_compile) 2>&5
16030  ac_status=$?
16031  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16032  test $ac_status = 0; } 2>conftest.err; then
16033	  soname=conftest
16034	  lib=conftest
16035	  libobjs=conftest.$ac_objext
16036	  deplibs=
16037	  wl=$lt_prog_compiler_wl
16038	  pic_flag=$lt_prog_compiler_pic
16039	  compiler_flags=-v
16040	  linker_flags=-v
16041	  verstring=
16042	  output_objdir=.
16043	  libname=conftest
16044	  lt_save_allow_undefined_flag=$allow_undefined_flag
16045	  allow_undefined_flag=
16046	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16047  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16048  ac_status=$?
16049  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16050  test $ac_status = 0; }
16051	  then
16052	    lt_cv_archive_cmds_need_lc=no
16053	  else
16054	    lt_cv_archive_cmds_need_lc=yes
16055	  fi
16056	  allow_undefined_flag=$lt_save_allow_undefined_flag
16057	else
16058	  cat conftest.err 1>&5
16059	fi
16060	$RM conftest*
16061
16062fi
16063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16064$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16065      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16066      ;;
16067    esac
16068  fi
16069  ;;
16070esac
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16224$as_echo_n "checking dynamic linker characteristics... " >&6; }
16225
16226if test "$GCC" = yes; then
16227  case $host_os in
16228    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16229    *) lt_awk_arg="/^libraries:/" ;;
16230  esac
16231  case $host_os in
16232    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16233    *) lt_sed_strip_eq="s,=/,/,g" ;;
16234  esac
16235  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16236  case $lt_search_path_spec in
16237  *\;*)
16238    # if the path contains ";" then we assume it to be the separator
16239    # otherwise default to the standard path separator (i.e. ":") - it is
16240    # assumed that no part of a normal pathname contains ";" but that should
16241    # okay in the real world where ";" in dirpaths is itself problematic.
16242    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16243    ;;
16244  *)
16245    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16246    ;;
16247  esac
16248  # Ok, now we have the path, separated by spaces, we can step through it
16249  # and add multilib dir if necessary.
16250  lt_tmp_lt_search_path_spec=
16251  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16252  for lt_sys_path in $lt_search_path_spec; do
16253    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16254      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16255    else
16256      test -d "$lt_sys_path" && \
16257	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16258    fi
16259  done
16260  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16261BEGIN {RS=" "; FS="/|\n";} {
16262  lt_foo="";
16263  lt_count=0;
16264  for (lt_i = NF; lt_i > 0; lt_i--) {
16265    if ($lt_i != "" && $lt_i != ".") {
16266      if ($lt_i == "..") {
16267        lt_count++;
16268      } else {
16269        if (lt_count == 0) {
16270          lt_foo="/" $lt_i lt_foo;
16271        } else {
16272          lt_count--;
16273        }
16274      }
16275    }
16276  }
16277  if (lt_foo != "") { lt_freq[lt_foo]++; }
16278  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16279}'`
16280  # AWK program above erroneously prepends '/' to C:/dos/paths
16281  # for these hosts.
16282  case $host_os in
16283    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16284      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16285  esac
16286  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16287else
16288  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16289fi
16290library_names_spec=
16291libname_spec='lib$name'
16292soname_spec=
16293shrext_cmds=".so"
16294postinstall_cmds=
16295postuninstall_cmds=
16296finish_cmds=
16297finish_eval=
16298shlibpath_var=
16299shlibpath_overrides_runpath=unknown
16300version_type=none
16301dynamic_linker="$host_os ld.so"
16302sys_lib_dlsearch_path_spec="/lib /usr/lib"
16303need_lib_prefix=unknown
16304hardcode_into_libs=no
16305
16306# when you set need_version to no, make sure it does not cause -set_version
16307# flags to be left without arguments
16308need_version=unknown
16309
16310case $host_os in
16311aix3*)
16312  version_type=linux # correct to gnu/linux during the next big refactor
16313  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16314  shlibpath_var=LIBPATH
16315
16316  # AIX 3 has no versioning support, so we append a major version to the name.
16317  soname_spec='${libname}${release}${shared_ext}$major'
16318  ;;
16319
16320aix[4-9]*)
16321  version_type=linux # correct to gnu/linux during the next big refactor
16322  need_lib_prefix=no
16323  need_version=no
16324  hardcode_into_libs=yes
16325  if test "$host_cpu" = ia64; then
16326    # AIX 5 supports IA64
16327    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16328    shlibpath_var=LD_LIBRARY_PATH
16329  else
16330    # With GCC up to 2.95.x, collect2 would create an import file
16331    # for dependence libraries.  The import file would start with
16332    # the line `#! .'.  This would cause the generated library to
16333    # depend on `.', always an invalid library.  This was fixed in
16334    # development snapshots of GCC prior to 3.0.
16335    case $host_os in
16336      aix4 | aix4.[01] | aix4.[01].*)
16337      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16338	   echo ' yes '
16339	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16340	:
16341      else
16342	can_build_shared=no
16343      fi
16344      ;;
16345    esac
16346    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16347    # soname into executable. Probably we can add versioning support to
16348    # collect2, so additional links can be useful in future.
16349    if test "$aix_use_runtimelinking" = yes; then
16350      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16351      # instead of lib<name>.a to let people know that these are not
16352      # typical AIX shared libraries.
16353      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16354    else
16355      # We preserve .a as extension for shared libraries through AIX4.2
16356      # and later when we are not doing run time linking.
16357      library_names_spec='${libname}${release}.a $libname.a'
16358      soname_spec='${libname}${release}${shared_ext}$major'
16359    fi
16360    shlibpath_var=LIBPATH
16361  fi
16362  ;;
16363
16364amigaos*)
16365  case $host_cpu in
16366  powerpc)
16367    # Since July 2007 AmigaOS4 officially supports .so libraries.
16368    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16369    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16370    ;;
16371  m68k)
16372    library_names_spec='$libname.ixlibrary $libname.a'
16373    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16374    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'
16375    ;;
16376  esac
16377  ;;
16378
16379beos*)
16380  library_names_spec='${libname}${shared_ext}'
16381  dynamic_linker="$host_os ld.so"
16382  shlibpath_var=LIBRARY_PATH
16383  ;;
16384
16385bsdi[45]*)
16386  version_type=linux # correct to gnu/linux during the next big refactor
16387  need_version=no
16388  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16389  soname_spec='${libname}${release}${shared_ext}$major'
16390  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16391  shlibpath_var=LD_LIBRARY_PATH
16392  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16393  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16394  # the default ld.so.conf also contains /usr/contrib/lib and
16395  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16396  # libtool to hard-code these into programs
16397  ;;
16398
16399cygwin* | mingw* | pw32* | cegcc*)
16400  version_type=windows
16401  shrext_cmds=".dll"
16402  need_version=no
16403  need_lib_prefix=no
16404
16405  case $GCC,$cc_basename in
16406  yes,*)
16407    # gcc
16408    library_names_spec='$libname.dll.a'
16409    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16410    postinstall_cmds='base_file=`basename \${file}`~
16411      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16412      dldir=$destdir/`dirname \$dlpath`~
16413      test -d \$dldir || mkdir -p \$dldir~
16414      $install_prog $dir/$dlname \$dldir/$dlname~
16415      chmod a+x \$dldir/$dlname~
16416      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16417        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16418      fi'
16419    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16420      dlpath=$dir/\$dldll~
16421       $RM \$dlpath'
16422    shlibpath_overrides_runpath=yes
16423
16424    case $host_os in
16425    cygwin*)
16426      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16427      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16428
16429      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16430      ;;
16431    mingw* | cegcc*)
16432      # MinGW DLLs use traditional 'lib' prefix
16433      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16434      ;;
16435    pw32*)
16436      # pw32 DLLs use 'pw' prefix rather than 'lib'
16437      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16438      ;;
16439    esac
16440    dynamic_linker='Win32 ld.exe'
16441    ;;
16442
16443  *,cl*)
16444    # Native MSVC
16445    libname_spec='$name'
16446    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16447    library_names_spec='${libname}.dll.lib'
16448
16449    case $build_os in
16450    mingw*)
16451      sys_lib_search_path_spec=
16452      lt_save_ifs=$IFS
16453      IFS=';'
16454      for lt_path in $LIB
16455      do
16456        IFS=$lt_save_ifs
16457        # Let DOS variable expansion print the short 8.3 style file name.
16458        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16459        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16460      done
16461      IFS=$lt_save_ifs
16462      # Convert to MSYS style.
16463      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16464      ;;
16465    cygwin*)
16466      # Convert to unix form, then to dos form, then back to unix form
16467      # but this time dos style (no spaces!) so that the unix form looks
16468      # like /cygdrive/c/PROGRA~1:/cygdr...
16469      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16470      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16471      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16472      ;;
16473    *)
16474      sys_lib_search_path_spec="$LIB"
16475      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16476        # It is most probably a Windows format PATH.
16477        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16478      else
16479        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16480      fi
16481      # FIXME: find the short name or the path components, as spaces are
16482      # common. (e.g. "Program Files" -> "PROGRA~1")
16483      ;;
16484    esac
16485
16486    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16487    postinstall_cmds='base_file=`basename \${file}`~
16488      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16489      dldir=$destdir/`dirname \$dlpath`~
16490      test -d \$dldir || mkdir -p \$dldir~
16491      $install_prog $dir/$dlname \$dldir/$dlname'
16492    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16493      dlpath=$dir/\$dldll~
16494       $RM \$dlpath'
16495    shlibpath_overrides_runpath=yes
16496    dynamic_linker='Win32 link.exe'
16497    ;;
16498
16499  *)
16500    # Assume MSVC wrapper
16501    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16502    dynamic_linker='Win32 ld.exe'
16503    ;;
16504  esac
16505  # FIXME: first we should search . and the directory the executable is in
16506  shlibpath_var=PATH
16507  ;;
16508
16509darwin* | rhapsody*)
16510  dynamic_linker="$host_os dyld"
16511  version_type=darwin
16512  need_lib_prefix=no
16513  need_version=no
16514  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16515  soname_spec='${libname}${release}${major}$shared_ext'
16516  shlibpath_overrides_runpath=yes
16517  shlibpath_var=DYLD_LIBRARY_PATH
16518  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16519
16520  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16521  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16522  ;;
16523
16524dgux*)
16525  version_type=linux # correct to gnu/linux during the next big refactor
16526  need_lib_prefix=no
16527  need_version=no
16528  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16529  soname_spec='${libname}${release}${shared_ext}$major'
16530  shlibpath_var=LD_LIBRARY_PATH
16531  ;;
16532
16533freebsd* | dragonfly*)
16534  # DragonFly does not have aout.  When/if they implement a new
16535  # versioning mechanism, adjust this.
16536  if test -x /usr/bin/objformat; then
16537    objformat=`/usr/bin/objformat`
16538  else
16539    case $host_os in
16540    freebsd[23].*) objformat=aout ;;
16541    *) objformat=elf ;;
16542    esac
16543  fi
16544  version_type=freebsd-$objformat
16545  case $version_type in
16546    freebsd-elf*)
16547      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16548      need_version=no
16549      need_lib_prefix=no
16550      ;;
16551    freebsd-*)
16552      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16553      need_version=yes
16554      ;;
16555  esac
16556  shlibpath_var=LD_LIBRARY_PATH
16557  case $host_os in
16558  freebsd2.*)
16559    shlibpath_overrides_runpath=yes
16560    ;;
16561  freebsd3.[01]* | freebsdelf3.[01]*)
16562    shlibpath_overrides_runpath=yes
16563    hardcode_into_libs=yes
16564    ;;
16565  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16566  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16567    shlibpath_overrides_runpath=no
16568    hardcode_into_libs=yes
16569    ;;
16570  *) # from 4.6 on, and DragonFly
16571    shlibpath_overrides_runpath=yes
16572    hardcode_into_libs=yes
16573    ;;
16574  esac
16575  ;;
16576
16577gnu*)
16578  version_type=linux # correct to gnu/linux during the next big refactor
16579  need_lib_prefix=no
16580  need_version=no
16581  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16582  soname_spec='${libname}${release}${shared_ext}$major'
16583  shlibpath_var=LD_LIBRARY_PATH
16584  shlibpath_overrides_runpath=no
16585  hardcode_into_libs=yes
16586  ;;
16587
16588haiku*)
16589  version_type=linux # correct to gnu/linux during the next big refactor
16590  need_lib_prefix=no
16591  need_version=no
16592  dynamic_linker="$host_os runtime_loader"
16593  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16594  soname_spec='${libname}${release}${shared_ext}$major'
16595  shlibpath_var=LIBRARY_PATH
16596  shlibpath_overrides_runpath=yes
16597  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16598  hardcode_into_libs=yes
16599  ;;
16600
16601hpux9* | hpux10* | hpux11*)
16602  # Give a soname corresponding to the major version so that dld.sl refuses to
16603  # link against other versions.
16604  version_type=sunos
16605  need_lib_prefix=no
16606  need_version=no
16607  case $host_cpu in
16608  ia64*)
16609    shrext_cmds='.so'
16610    hardcode_into_libs=yes
16611    dynamic_linker="$host_os dld.so"
16612    shlibpath_var=LD_LIBRARY_PATH
16613    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16614    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16615    soname_spec='${libname}${release}${shared_ext}$major'
16616    if test "X$HPUX_IA64_MODE" = X32; then
16617      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16618    else
16619      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16620    fi
16621    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16622    ;;
16623  hppa*64*)
16624    shrext_cmds='.sl'
16625    hardcode_into_libs=yes
16626    dynamic_linker="$host_os dld.sl"
16627    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16628    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16629    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16630    soname_spec='${libname}${release}${shared_ext}$major'
16631    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16632    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16633    ;;
16634  *)
16635    shrext_cmds='.sl'
16636    dynamic_linker="$host_os dld.sl"
16637    shlibpath_var=SHLIB_PATH
16638    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16639    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16640    soname_spec='${libname}${release}${shared_ext}$major'
16641    ;;
16642  esac
16643  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16644  postinstall_cmds='chmod 555 $lib'
16645  # or fails outright, so override atomically:
16646  install_override_mode=555
16647  ;;
16648
16649interix[3-9]*)
16650  version_type=linux # correct to gnu/linux during the next big refactor
16651  need_lib_prefix=no
16652  need_version=no
16653  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16654  soname_spec='${libname}${release}${shared_ext}$major'
16655  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16656  shlibpath_var=LD_LIBRARY_PATH
16657  shlibpath_overrides_runpath=no
16658  hardcode_into_libs=yes
16659  ;;
16660
16661irix5* | irix6* | nonstopux*)
16662  case $host_os in
16663    nonstopux*) version_type=nonstopux ;;
16664    *)
16665	if test "$lt_cv_prog_gnu_ld" = yes; then
16666		version_type=linux # correct to gnu/linux during the next big refactor
16667	else
16668		version_type=irix
16669	fi ;;
16670  esac
16671  need_lib_prefix=no
16672  need_version=no
16673  soname_spec='${libname}${release}${shared_ext}$major'
16674  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16675  case $host_os in
16676  irix5* | nonstopux*)
16677    libsuff= shlibsuff=
16678    ;;
16679  *)
16680    case $LD in # libtool.m4 will add one of these switches to LD
16681    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16682      libsuff= shlibsuff= libmagic=32-bit;;
16683    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16684      libsuff=32 shlibsuff=N32 libmagic=N32;;
16685    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16686      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16687    *) libsuff= shlibsuff= libmagic=never-match;;
16688    esac
16689    ;;
16690  esac
16691  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16692  shlibpath_overrides_runpath=no
16693  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16694  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16695  hardcode_into_libs=yes
16696  ;;
16697
16698# No shared lib support for Linux oldld, aout, or coff.
16699linux*oldld* | linux*aout* | linux*coff*)
16700  dynamic_linker=no
16701  ;;
16702
16703# This must be glibc/ELF.
16704linux* | k*bsd*-gnu | kopensolaris*-gnu)
16705  version_type=linux # correct to gnu/linux during the next big refactor
16706  need_lib_prefix=no
16707  need_version=no
16708  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16709  soname_spec='${libname}${release}${shared_ext}$major'
16710  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16711  shlibpath_var=LD_LIBRARY_PATH
16712  shlibpath_overrides_runpath=no
16713
16714  # Some binutils ld are patched to set DT_RUNPATH
16715  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16716  $as_echo_n "(cached) " >&6
16717else
16718  lt_cv_shlibpath_overrides_runpath=no
16719    save_LDFLAGS=$LDFLAGS
16720    save_libdir=$libdir
16721    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16722	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16723    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16724/* end confdefs.h.  */
16725
16726int
16727main ()
16728{
16729
16730  ;
16731  return 0;
16732}
16733_ACEOF
16734if ac_fn_c_try_link "$LINENO"; then :
16735  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16736  lt_cv_shlibpath_overrides_runpath=yes
16737fi
16738fi
16739rm -f core conftest.err conftest.$ac_objext \
16740    conftest$ac_exeext conftest.$ac_ext
16741    LDFLAGS=$save_LDFLAGS
16742    libdir=$save_libdir
16743
16744fi
16745
16746  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16747
16748  # This implies no fast_install, which is unacceptable.
16749  # Some rework will be needed to allow for fast_install
16750  # before this can be enabled.
16751  hardcode_into_libs=yes
16752
16753  # Add ABI-specific directories to the system library path.
16754  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16755
16756  # Append ld.so.conf contents to the search path
16757  if test -f /etc/ld.so.conf; then
16758    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' ' '`
16759    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16760
16761  fi
16762
16763  # We used to test for /lib/ld.so.1 and disable shared libraries on
16764  # powerpc, because MkLinux only supported shared libraries with the
16765  # GNU dynamic linker.  Since this was broken with cross compilers,
16766  # most powerpc-linux boxes support dynamic linking these days and
16767  # people can always --disable-shared, the test was removed, and we
16768  # assume the GNU/Linux dynamic linker is in use.
16769  dynamic_linker='GNU/Linux ld.so'
16770  ;;
16771
16772netbsd*)
16773  version_type=sunos
16774  need_lib_prefix=no
16775  need_version=no
16776  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16777    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16778    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16779    dynamic_linker='NetBSD (a.out) ld.so'
16780  else
16781    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16782    soname_spec='${libname}${release}${shared_ext}$major'
16783    dynamic_linker='NetBSD ld.elf_so'
16784  fi
16785  shlibpath_var=LD_LIBRARY_PATH
16786  shlibpath_overrides_runpath=yes
16787  hardcode_into_libs=yes
16788  ;;
16789
16790newsos6)
16791  version_type=linux # correct to gnu/linux during the next big refactor
16792  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16793  shlibpath_var=LD_LIBRARY_PATH
16794  shlibpath_overrides_runpath=yes
16795  ;;
16796
16797*nto* | *qnx*)
16798  version_type=qnx
16799  need_lib_prefix=no
16800  need_version=no
16801  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16802  soname_spec='${libname}${release}${shared_ext}$major'
16803  shlibpath_var=LD_LIBRARY_PATH
16804  shlibpath_overrides_runpath=no
16805  hardcode_into_libs=yes
16806  dynamic_linker='ldqnx.so'
16807  ;;
16808
16809openbsd*)
16810  version_type=sunos
16811  sys_lib_dlsearch_path_spec="/usr/lib"
16812  need_lib_prefix=no
16813  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16814  case $host_os in
16815    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
16816    *)				need_version=no  ;;
16817  esac
16818  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16819  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16820  shlibpath_var=LD_LIBRARY_PATH
16821  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16822    case $host_os in
16823      openbsd2.[89] | openbsd2.[89].*)
16824	shlibpath_overrides_runpath=no
16825	;;
16826      *)
16827	shlibpath_overrides_runpath=yes
16828	;;
16829      esac
16830  else
16831    shlibpath_overrides_runpath=yes
16832  fi
16833  ;;
16834
16835os2*)
16836  libname_spec='$name'
16837  shrext_cmds=".dll"
16838  need_lib_prefix=no
16839  library_names_spec='$libname${shared_ext} $libname.a'
16840  dynamic_linker='OS/2 ld.exe'
16841  shlibpath_var=LIBPATH
16842  ;;
16843
16844osf3* | osf4* | osf5*)
16845  version_type=osf
16846  need_lib_prefix=no
16847  need_version=no
16848  soname_spec='${libname}${release}${shared_ext}$major'
16849  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16850  shlibpath_var=LD_LIBRARY_PATH
16851  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16852  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16853  ;;
16854
16855rdos*)
16856  dynamic_linker=no
16857  ;;
16858
16859solaris*)
16860  version_type=linux # correct to gnu/linux during the next big refactor
16861  need_lib_prefix=no
16862  need_version=no
16863  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16864  soname_spec='${libname}${release}${shared_ext}$major'
16865  shlibpath_var=LD_LIBRARY_PATH
16866  shlibpath_overrides_runpath=yes
16867  hardcode_into_libs=yes
16868  # ldd complains unless libraries are executable
16869  postinstall_cmds='chmod +x $lib'
16870  ;;
16871
16872sunos4*)
16873  version_type=sunos
16874  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16875  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16876  shlibpath_var=LD_LIBRARY_PATH
16877  shlibpath_overrides_runpath=yes
16878  if test "$with_gnu_ld" = yes; then
16879    need_lib_prefix=no
16880  fi
16881  need_version=yes
16882  ;;
16883
16884sysv4 | sysv4.3*)
16885  version_type=linux # correct to gnu/linux during the next big refactor
16886  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16887  soname_spec='${libname}${release}${shared_ext}$major'
16888  shlibpath_var=LD_LIBRARY_PATH
16889  case $host_vendor in
16890    sni)
16891      shlibpath_overrides_runpath=no
16892      need_lib_prefix=no
16893      runpath_var=LD_RUN_PATH
16894      ;;
16895    siemens)
16896      need_lib_prefix=no
16897      ;;
16898    motorola)
16899      need_lib_prefix=no
16900      need_version=no
16901      shlibpath_overrides_runpath=no
16902      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16903      ;;
16904  esac
16905  ;;
16906
16907sysv4*MP*)
16908  if test -d /usr/nec ;then
16909    version_type=linux # correct to gnu/linux during the next big refactor
16910    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16911    soname_spec='$libname${shared_ext}.$major'
16912    shlibpath_var=LD_LIBRARY_PATH
16913  fi
16914  ;;
16915
16916sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16917  version_type=freebsd-elf
16918  need_lib_prefix=no
16919  need_version=no
16920  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16921  soname_spec='${libname}${release}${shared_ext}$major'
16922  shlibpath_var=LD_LIBRARY_PATH
16923  shlibpath_overrides_runpath=yes
16924  hardcode_into_libs=yes
16925  if test "$with_gnu_ld" = yes; then
16926    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16927  else
16928    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16929    case $host_os in
16930      sco3.2v5*)
16931        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16932	;;
16933    esac
16934  fi
16935  sys_lib_dlsearch_path_spec='/usr/lib'
16936  ;;
16937
16938tpf*)
16939  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16940  version_type=linux # correct to gnu/linux during the next big refactor
16941  need_lib_prefix=no
16942  need_version=no
16943  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16944  shlibpath_var=LD_LIBRARY_PATH
16945  shlibpath_overrides_runpath=no
16946  hardcode_into_libs=yes
16947  ;;
16948
16949uts4*)
16950  version_type=linux # correct to gnu/linux during the next big refactor
16951  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16952  soname_spec='${libname}${release}${shared_ext}$major'
16953  shlibpath_var=LD_LIBRARY_PATH
16954  ;;
16955
16956*)
16957  dynamic_linker=no
16958  ;;
16959esac
16960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16961$as_echo "$dynamic_linker" >&6; }
16962test "$dynamic_linker" = no && can_build_shared=no
16963
16964variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16965if test "$GCC" = yes; then
16966  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16967fi
16968
16969if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16970  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16971fi
16972if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16973  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16974fi
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17068$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17069hardcode_action=
17070if test -n "$hardcode_libdir_flag_spec" ||
17071   test -n "$runpath_var" ||
17072   test "X$hardcode_automatic" = "Xyes" ; then
17073
17074  # We can hardcode non-existent directories.
17075  if test "$hardcode_direct" != no &&
17076     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17077     # have to relink, otherwise we might link with an installed library
17078     # when we should be linking with a yet-to-be-installed one
17079     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17080     test "$hardcode_minus_L" != no; then
17081    # Linking always hardcodes the temporary library directory.
17082    hardcode_action=relink
17083  else
17084    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17085    hardcode_action=immediate
17086  fi
17087else
17088  # We cannot hardcode anything, or else we can only hardcode existing
17089  # directories.
17090  hardcode_action=unsupported
17091fi
17092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17093$as_echo "$hardcode_action" >&6; }
17094
17095if test "$hardcode_action" = relink ||
17096   test "$inherit_rpath" = yes; then
17097  # Fast installation is not supported
17098  enable_fast_install=no
17099elif test "$shlibpath_overrides_runpath" = yes ||
17100     test "$enable_shared" = no; then
17101  # Fast installation is not necessary
17102  enable_fast_install=needless
17103fi
17104
17105
17106
17107
17108
17109
17110  if test "x$enable_dlopen" != xyes; then
17111  enable_dlopen=unknown
17112  enable_dlopen_self=unknown
17113  enable_dlopen_self_static=unknown
17114else
17115  lt_cv_dlopen=no
17116  lt_cv_dlopen_libs=
17117
17118  case $host_os in
17119  beos*)
17120    lt_cv_dlopen="load_add_on"
17121    lt_cv_dlopen_libs=
17122    lt_cv_dlopen_self=yes
17123    ;;
17124
17125  mingw* | pw32* | cegcc*)
17126    lt_cv_dlopen="LoadLibrary"
17127    lt_cv_dlopen_libs=
17128    ;;
17129
17130  cygwin*)
17131    lt_cv_dlopen="dlopen"
17132    lt_cv_dlopen_libs=
17133    ;;
17134
17135  darwin*)
17136  # if libdl is installed we need to link against it
17137    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17138$as_echo_n "checking for dlopen in -ldl... " >&6; }
17139if ${ac_cv_lib_dl_dlopen+:} false; then :
17140  $as_echo_n "(cached) " >&6
17141else
17142  ac_check_lib_save_LIBS=$LIBS
17143LIBS="-ldl  $LIBS"
17144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17145/* end confdefs.h.  */
17146
17147/* Override any GCC internal prototype to avoid an error.
17148   Use char because int might match the return type of a GCC
17149   builtin and then its argument prototype would still apply.  */
17150#ifdef __cplusplus
17151extern "C"
17152#endif
17153char dlopen ();
17154int
17155main ()
17156{
17157return dlopen ();
17158  ;
17159  return 0;
17160}
17161_ACEOF
17162if ac_fn_c_try_link "$LINENO"; then :
17163  ac_cv_lib_dl_dlopen=yes
17164else
17165  ac_cv_lib_dl_dlopen=no
17166fi
17167rm -f core conftest.err conftest.$ac_objext \
17168    conftest$ac_exeext conftest.$ac_ext
17169LIBS=$ac_check_lib_save_LIBS
17170fi
17171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17172$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17173if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17174  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17175else
17176
17177    lt_cv_dlopen="dyld"
17178    lt_cv_dlopen_libs=
17179    lt_cv_dlopen_self=yes
17180
17181fi
17182
17183    ;;
17184
17185  *)
17186    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17187if test "x$ac_cv_func_shl_load" = xyes; then :
17188  lt_cv_dlopen="shl_load"
17189else
17190  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17191$as_echo_n "checking for shl_load in -ldld... " >&6; }
17192if ${ac_cv_lib_dld_shl_load+:} false; then :
17193  $as_echo_n "(cached) " >&6
17194else
17195  ac_check_lib_save_LIBS=$LIBS
17196LIBS="-ldld  $LIBS"
17197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17198/* end confdefs.h.  */
17199
17200/* Override any GCC internal prototype to avoid an error.
17201   Use char because int might match the return type of a GCC
17202   builtin and then its argument prototype would still apply.  */
17203#ifdef __cplusplus
17204extern "C"
17205#endif
17206char shl_load ();
17207int
17208main ()
17209{
17210return shl_load ();
17211  ;
17212  return 0;
17213}
17214_ACEOF
17215if ac_fn_c_try_link "$LINENO"; then :
17216  ac_cv_lib_dld_shl_load=yes
17217else
17218  ac_cv_lib_dld_shl_load=no
17219fi
17220rm -f core conftest.err conftest.$ac_objext \
17221    conftest$ac_exeext conftest.$ac_ext
17222LIBS=$ac_check_lib_save_LIBS
17223fi
17224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17225$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17226if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17227  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17228else
17229  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17230if test "x$ac_cv_func_dlopen" = xyes; then :
17231  lt_cv_dlopen="dlopen"
17232else
17233  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17234$as_echo_n "checking for dlopen in -ldl... " >&6; }
17235if ${ac_cv_lib_dl_dlopen+:} false; then :
17236  $as_echo_n "(cached) " >&6
17237else
17238  ac_check_lib_save_LIBS=$LIBS
17239LIBS="-ldl  $LIBS"
17240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17241/* end confdefs.h.  */
17242
17243/* Override any GCC internal prototype to avoid an error.
17244   Use char because int might match the return type of a GCC
17245   builtin and then its argument prototype would still apply.  */
17246#ifdef __cplusplus
17247extern "C"
17248#endif
17249char dlopen ();
17250int
17251main ()
17252{
17253return dlopen ();
17254  ;
17255  return 0;
17256}
17257_ACEOF
17258if ac_fn_c_try_link "$LINENO"; then :
17259  ac_cv_lib_dl_dlopen=yes
17260else
17261  ac_cv_lib_dl_dlopen=no
17262fi
17263rm -f core conftest.err conftest.$ac_objext \
17264    conftest$ac_exeext conftest.$ac_ext
17265LIBS=$ac_check_lib_save_LIBS
17266fi
17267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17268$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17269if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17270  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17271else
17272  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17273$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17274if ${ac_cv_lib_svld_dlopen+:} false; then :
17275  $as_echo_n "(cached) " >&6
17276else
17277  ac_check_lib_save_LIBS=$LIBS
17278LIBS="-lsvld  $LIBS"
17279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17280/* end confdefs.h.  */
17281
17282/* Override any GCC internal prototype to avoid an error.
17283   Use char because int might match the return type of a GCC
17284   builtin and then its argument prototype would still apply.  */
17285#ifdef __cplusplus
17286extern "C"
17287#endif
17288char dlopen ();
17289int
17290main ()
17291{
17292return dlopen ();
17293  ;
17294  return 0;
17295}
17296_ACEOF
17297if ac_fn_c_try_link "$LINENO"; then :
17298  ac_cv_lib_svld_dlopen=yes
17299else
17300  ac_cv_lib_svld_dlopen=no
17301fi
17302rm -f core conftest.err conftest.$ac_objext \
17303    conftest$ac_exeext conftest.$ac_ext
17304LIBS=$ac_check_lib_save_LIBS
17305fi
17306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17307$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17308if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17309  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17310else
17311  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17312$as_echo_n "checking for dld_link in -ldld... " >&6; }
17313if ${ac_cv_lib_dld_dld_link+:} false; then :
17314  $as_echo_n "(cached) " >&6
17315else
17316  ac_check_lib_save_LIBS=$LIBS
17317LIBS="-ldld  $LIBS"
17318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17319/* end confdefs.h.  */
17320
17321/* Override any GCC internal prototype to avoid an error.
17322   Use char because int might match the return type of a GCC
17323   builtin and then its argument prototype would still apply.  */
17324#ifdef __cplusplus
17325extern "C"
17326#endif
17327char dld_link ();
17328int
17329main ()
17330{
17331return dld_link ();
17332  ;
17333  return 0;
17334}
17335_ACEOF
17336if ac_fn_c_try_link "$LINENO"; then :
17337  ac_cv_lib_dld_dld_link=yes
17338else
17339  ac_cv_lib_dld_dld_link=no
17340fi
17341rm -f core conftest.err conftest.$ac_objext \
17342    conftest$ac_exeext conftest.$ac_ext
17343LIBS=$ac_check_lib_save_LIBS
17344fi
17345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17346$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17347if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17348  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17349fi
17350
17351
17352fi
17353
17354
17355fi
17356
17357
17358fi
17359
17360
17361fi
17362
17363
17364fi
17365
17366    ;;
17367  esac
17368
17369  if test "x$lt_cv_dlopen" != xno; then
17370    enable_dlopen=yes
17371  else
17372    enable_dlopen=no
17373  fi
17374
17375  case $lt_cv_dlopen in
17376  dlopen)
17377    save_CPPFLAGS="$CPPFLAGS"
17378    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17379
17380    save_LDFLAGS="$LDFLAGS"
17381    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17382
17383    save_LIBS="$LIBS"
17384    LIBS="$lt_cv_dlopen_libs $LIBS"
17385
17386    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17387$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17388if ${lt_cv_dlopen_self+:} false; then :
17389  $as_echo_n "(cached) " >&6
17390else
17391  	  if test "$cross_compiling" = yes; then :
17392  lt_cv_dlopen_self=cross
17393else
17394  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17395  lt_status=$lt_dlunknown
17396  cat > conftest.$ac_ext <<_LT_EOF
17397#line $LINENO "configure"
17398#include "confdefs.h"
17399
17400#if HAVE_DLFCN_H
17401#include <dlfcn.h>
17402#endif
17403
17404#include <stdio.h>
17405
17406#ifdef RTLD_GLOBAL
17407#  define LT_DLGLOBAL		RTLD_GLOBAL
17408#else
17409#  ifdef DL_GLOBAL
17410#    define LT_DLGLOBAL		DL_GLOBAL
17411#  else
17412#    define LT_DLGLOBAL		0
17413#  endif
17414#endif
17415
17416/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17417   find out it does not work in some platform. */
17418#ifndef LT_DLLAZY_OR_NOW
17419#  ifdef RTLD_LAZY
17420#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17421#  else
17422#    ifdef DL_LAZY
17423#      define LT_DLLAZY_OR_NOW		DL_LAZY
17424#    else
17425#      ifdef RTLD_NOW
17426#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17427#      else
17428#        ifdef DL_NOW
17429#          define LT_DLLAZY_OR_NOW	DL_NOW
17430#        else
17431#          define LT_DLLAZY_OR_NOW	0
17432#        endif
17433#      endif
17434#    endif
17435#  endif
17436#endif
17437
17438/* When -fvisbility=hidden is used, assume the code has been annotated
17439   correspondingly for the symbols needed.  */
17440#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17441int fnord () __attribute__((visibility("default")));
17442#endif
17443
17444int fnord () { return 42; }
17445int main ()
17446{
17447  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17448  int status = $lt_dlunknown;
17449
17450  if (self)
17451    {
17452      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17453      else
17454        {
17455	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17456          else puts (dlerror ());
17457	}
17458      /* dlclose (self); */
17459    }
17460  else
17461    puts (dlerror ());
17462
17463  return status;
17464}
17465_LT_EOF
17466  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17467  (eval $ac_link) 2>&5
17468  ac_status=$?
17469  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17470  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17471    (./conftest; exit; ) >&5 2>/dev/null
17472    lt_status=$?
17473    case x$lt_status in
17474      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17475      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17476      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17477    esac
17478  else :
17479    # compilation failed
17480    lt_cv_dlopen_self=no
17481  fi
17482fi
17483rm -fr conftest*
17484
17485
17486fi
17487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17488$as_echo "$lt_cv_dlopen_self" >&6; }
17489
17490    if test "x$lt_cv_dlopen_self" = xyes; then
17491      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17492      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17493$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17494if ${lt_cv_dlopen_self_static+:} false; then :
17495  $as_echo_n "(cached) " >&6
17496else
17497  	  if test "$cross_compiling" = yes; then :
17498  lt_cv_dlopen_self_static=cross
17499else
17500  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17501  lt_status=$lt_dlunknown
17502  cat > conftest.$ac_ext <<_LT_EOF
17503#line $LINENO "configure"
17504#include "confdefs.h"
17505
17506#if HAVE_DLFCN_H
17507#include <dlfcn.h>
17508#endif
17509
17510#include <stdio.h>
17511
17512#ifdef RTLD_GLOBAL
17513#  define LT_DLGLOBAL		RTLD_GLOBAL
17514#else
17515#  ifdef DL_GLOBAL
17516#    define LT_DLGLOBAL		DL_GLOBAL
17517#  else
17518#    define LT_DLGLOBAL		0
17519#  endif
17520#endif
17521
17522/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17523   find out it does not work in some platform. */
17524#ifndef LT_DLLAZY_OR_NOW
17525#  ifdef RTLD_LAZY
17526#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17527#  else
17528#    ifdef DL_LAZY
17529#      define LT_DLLAZY_OR_NOW		DL_LAZY
17530#    else
17531#      ifdef RTLD_NOW
17532#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17533#      else
17534#        ifdef DL_NOW
17535#          define LT_DLLAZY_OR_NOW	DL_NOW
17536#        else
17537#          define LT_DLLAZY_OR_NOW	0
17538#        endif
17539#      endif
17540#    endif
17541#  endif
17542#endif
17543
17544/* When -fvisbility=hidden is used, assume the code has been annotated
17545   correspondingly for the symbols needed.  */
17546#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17547int fnord () __attribute__((visibility("default")));
17548#endif
17549
17550int fnord () { return 42; }
17551int main ()
17552{
17553  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17554  int status = $lt_dlunknown;
17555
17556  if (self)
17557    {
17558      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17559      else
17560        {
17561	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17562          else puts (dlerror ());
17563	}
17564      /* dlclose (self); */
17565    }
17566  else
17567    puts (dlerror ());
17568
17569  return status;
17570}
17571_LT_EOF
17572  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17573  (eval $ac_link) 2>&5
17574  ac_status=$?
17575  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17576  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17577    (./conftest; exit; ) >&5 2>/dev/null
17578    lt_status=$?
17579    case x$lt_status in
17580      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17581      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17582      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17583    esac
17584  else :
17585    # compilation failed
17586    lt_cv_dlopen_self_static=no
17587  fi
17588fi
17589rm -fr conftest*
17590
17591
17592fi
17593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17594$as_echo "$lt_cv_dlopen_self_static" >&6; }
17595    fi
17596
17597    CPPFLAGS="$save_CPPFLAGS"
17598    LDFLAGS="$save_LDFLAGS"
17599    LIBS="$save_LIBS"
17600    ;;
17601  esac
17602
17603  case $lt_cv_dlopen_self in
17604  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17605  *) enable_dlopen_self=unknown ;;
17606  esac
17607
17608  case $lt_cv_dlopen_self_static in
17609  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17610  *) enable_dlopen_self_static=unknown ;;
17611  esac
17612fi
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630striplib=
17631old_striplib=
17632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17633$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17634if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17635  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17636  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17638$as_echo "yes" >&6; }
17639else
17640# FIXME - insert some real tests, host_os isn't really good enough
17641  case $host_os in
17642  darwin*)
17643    if test -n "$STRIP" ; then
17644      striplib="$STRIP -x"
17645      old_striplib="$STRIP -S"
17646      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17647$as_echo "yes" >&6; }
17648    else
17649      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17650$as_echo "no" >&6; }
17651    fi
17652    ;;
17653  *)
17654    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17655$as_echo "no" >&6; }
17656    ;;
17657  esac
17658fi
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671  # Report which library types will actually be built
17672  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17673$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17675$as_echo "$can_build_shared" >&6; }
17676
17677  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17678$as_echo_n "checking whether to build shared libraries... " >&6; }
17679  test "$can_build_shared" = "no" && enable_shared=no
17680
17681  # On AIX, shared libraries and static libraries use the same namespace, and
17682  # are all built from PIC.
17683  case $host_os in
17684  aix3*)
17685    test "$enable_shared" = yes && enable_static=no
17686    if test -n "$RANLIB"; then
17687      archive_cmds="$archive_cmds~\$RANLIB \$lib"
17688      postinstall_cmds='$RANLIB $lib'
17689    fi
17690    ;;
17691
17692  aix[4-9]*)
17693    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17694      test "$enable_shared" = yes && enable_static=no
17695    fi
17696    ;;
17697  esac
17698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17699$as_echo "$enable_shared" >&6; }
17700
17701  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17702$as_echo_n "checking whether to build static libraries... " >&6; }
17703  # Make sure either enable_shared or enable_static is yes.
17704  test "$enable_shared" = yes || enable_static=yes
17705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17706$as_echo "$enable_static" >&6; }
17707
17708
17709
17710
17711fi
17712ac_ext=c
17713ac_cpp='$CPP $CPPFLAGS'
17714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17716ac_compiler_gnu=$ac_cv_c_compiler_gnu
17717
17718CC="$lt_save_CC"
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734        ac_config_commands="$ac_config_commands libtool"
17735
17736
17737
17738
17739# Only expand once:
17740
17741
17742
17743
17744
17745# Define a configure option for an alternate module directory
17746
17747# Check whether --with-xorg-module-dir was given.
17748if test "${with_xorg_module_dir+set}" = set; then :
17749  withval=$with_xorg_module_dir; moduledir="$withval"
17750else
17751  moduledir="$libdir/xorg/modules"
17752fi
17753
17754
17755# Store the list of server defined optional extensions in REQUIRED_MODULES
17756
17757
17758	SAVE_CFLAGS="$CFLAGS"
17759	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17760	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17761/* end confdefs.h.  */
17762
17763#include "xorg-server.h"
17764#if !defined RANDR
17765#error RANDR not defined
17766#endif
17767
17768int
17769main ()
17770{
17771
17772  ;
17773  return 0;
17774}
17775_ACEOF
17776if ac_fn_c_try_compile "$LINENO"; then :
17777  _EXT_CHECK=yes
17778else
17779  _EXT_CHECK=no
17780fi
17781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17782	CFLAGS="$SAVE_CFLAGS"
17783	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
17784$as_echo_n "checking if RANDR is defined... " >&6; }
17785	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17786$as_echo "$_EXT_CHECK" >&6; }
17787	if test "$_EXT_CHECK" != no; then
17788		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
17789	fi
17790
17791
17792
17793	SAVE_CFLAGS="$CFLAGS"
17794	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17795	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17796/* end confdefs.h.  */
17797
17798#include "xorg-server.h"
17799#if !defined RENDER
17800#error RENDER not defined
17801#endif
17802
17803int
17804main ()
17805{
17806
17807  ;
17808  return 0;
17809}
17810_ACEOF
17811if ac_fn_c_try_compile "$LINENO"; then :
17812  _EXT_CHECK=yes
17813else
17814  _EXT_CHECK=no
17815fi
17816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17817	CFLAGS="$SAVE_CFLAGS"
17818	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
17819$as_echo_n "checking if RENDER is defined... " >&6; }
17820	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17821$as_echo "$_EXT_CHECK" >&6; }
17822	if test "$_EXT_CHECK" != no; then
17823		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
17824	fi
17825
17826
17827
17828	SAVE_CFLAGS="$CFLAGS"
17829	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17830	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17831/* end confdefs.h.  */
17832
17833#include "xorg-server.h"
17834#if !defined XV
17835#error XV not defined
17836#endif
17837
17838int
17839main ()
17840{
17841
17842  ;
17843  return 0;
17844}
17845_ACEOF
17846if ac_fn_c_try_compile "$LINENO"; then :
17847  _EXT_CHECK=yes
17848else
17849  _EXT_CHECK=no
17850fi
17851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17852	CFLAGS="$SAVE_CFLAGS"
17853	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
17854$as_echo_n "checking if XV is defined... " >&6; }
17855	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17856$as_echo "$_EXT_CHECK" >&6; }
17857	if test "$_EXT_CHECK" != no; then
17858		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
17859	fi
17860
17861
17862
17863	SAVE_CFLAGS="$CFLAGS"
17864	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17865	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17866/* end confdefs.h.  */
17867
17868#include "xorg-server.h"
17869#if !defined DPMSExtension
17870#error DPMSExtension not defined
17871#endif
17872
17873int
17874main ()
17875{
17876
17877  ;
17878  return 0;
17879}
17880_ACEOF
17881if ac_fn_c_try_compile "$LINENO"; then :
17882  _EXT_CHECK=yes
17883else
17884  _EXT_CHECK=no
17885fi
17886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17887	CFLAGS="$SAVE_CFLAGS"
17888	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
17889$as_echo_n "checking if DPMSExtension is defined... " >&6; }
17890	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17891$as_echo "$_EXT_CHECK" >&6; }
17892	if test "$_EXT_CHECK" != no; then
17893		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
17894	fi
17895
17896
17897# Obtain compiler/linker options for the driver dependencies
17898
17899pkg_failed=no
17900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17901$as_echo_n "checking for XORG... " >&6; }
17902
17903if test -n "$XORG_CFLAGS"; then
17904    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
17905 elif test -n "$PKG_CONFIG"; then
17906    if test -n "$PKG_CONFIG" && \
17907    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17908  ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES") 2>&5
17909  ac_status=$?
17910  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17911  test $ac_status = 0; }; then
17912  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17913else
17914  pkg_failed=yes
17915fi
17916 else
17917    pkg_failed=untried
17918fi
17919if test -n "$XORG_LIBS"; then
17920    pkg_cv_XORG_LIBS="$XORG_LIBS"
17921 elif test -n "$PKG_CONFIG"; then
17922    if test -n "$PKG_CONFIG" && \
17923    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17924  ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES") 2>&5
17925  ac_status=$?
17926  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17927  test $ac_status = 0; }; then
17928  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17929else
17930  pkg_failed=yes
17931fi
17932 else
17933    pkg_failed=untried
17934fi
17935
17936
17937
17938if test $pkg_failed = yes; then
17939   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17940$as_echo "no" >&6; }
17941
17942if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17943        _pkg_short_errors_supported=yes
17944else
17945        _pkg_short_errors_supported=no
17946fi
17947        if test $_pkg_short_errors_supported = yes; then
17948	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>&1`
17949        else
17950	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>&1`
17951        fi
17952	# Put the nasty error message in config.log where it belongs
17953	echo "$XORG_PKG_ERRORS" >&5
17954
17955	as_fn_error $? "Package requirements (xorg-server xproto fontsproto $REQUIRED_MODULES) were not met:
17956
17957$XORG_PKG_ERRORS
17958
17959Consider adjusting the PKG_CONFIG_PATH environment variable if you
17960installed software in a non-standard prefix.
17961
17962Alternatively, you may set the environment variables XORG_CFLAGS
17963and XORG_LIBS to avoid the need to call pkg-config.
17964See the pkg-config man page for more details." "$LINENO" 5
17965
17966elif test $pkg_failed = untried; then
17967     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17968$as_echo "no" >&6; }
17969	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17970$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17971as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17972is in your PATH or set the PKG_CONFIG environment variable to the full
17973path to pkg-config.
17974
17975Alternatively, you may set the environment variables XORG_CFLAGS
17976and XORG_LIBS to avoid the need to call pkg-config.
17977See the pkg-config man page for more details.
17978
17979To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17980See \`config.log' for more details" "$LINENO" 5; }
17981
17982else
17983	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
17984	XORG_LIBS=$pkg_cv_XORG_LIBS
17985        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17986$as_echo "yes" >&6; }
17987
17988fi
17989
17990# Checks for libraries.
17991SAVE_CPPFLAGS="$CPPFLAGS"
17992CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
17993ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
17994"
17995if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
17996  XSERVER_LIBPCIACCESS=yes
17997else
17998  XSERVER_LIBPCIACCESS=no
17999fi
18000
18001ac_fn_c_check_header_mongrel "$LINENO" "xf1bpp.h" "ac_cv_header_xf1bpp_h" "$ac_includes_default"
18002if test "x$ac_cv_header_xf1bpp_h" = xyes; then :
18003
18004$as_echo "#define HAVE_XF1BPP 1" >>confdefs.h
18005
18006fi
18007
18008
18009ac_fn_c_check_header_mongrel "$LINENO" "xf4bpp.h" "ac_cv_header_xf4bpp_h" "$ac_includes_default"
18010if test "x$ac_cv_header_xf4bpp_h" = xyes; then :
18011
18012$as_echo "#define HAVE_XF4BPP 1" >>confdefs.h
18013
18014fi
18015
18016
18017CPPFLAGS="$SAVE_CPPFLAGS"
18018
18019if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18020
18021pkg_failed=no
18022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18023$as_echo_n "checking for PCIACCESS... " >&6; }
18024
18025if test -n "$PCIACCESS_CFLAGS"; then
18026    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18027 elif test -n "$PKG_CONFIG"; then
18028    if test -n "$PKG_CONFIG" && \
18029    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18030  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18031  ac_status=$?
18032  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18033  test $ac_status = 0; }; then
18034  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18035else
18036  pkg_failed=yes
18037fi
18038 else
18039    pkg_failed=untried
18040fi
18041if test -n "$PCIACCESS_LIBS"; then
18042    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18043 elif test -n "$PKG_CONFIG"; then
18044    if test -n "$PKG_CONFIG" && \
18045    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18046  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18047  ac_status=$?
18048  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18049  test $ac_status = 0; }; then
18050  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18051else
18052  pkg_failed=yes
18053fi
18054 else
18055    pkg_failed=untried
18056fi
18057
18058
18059
18060if test $pkg_failed = yes; then
18061   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18062$as_echo "no" >&6; }
18063
18064if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18065        _pkg_short_errors_supported=yes
18066else
18067        _pkg_short_errors_supported=no
18068fi
18069        if test $_pkg_short_errors_supported = yes; then
18070	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
18071        else
18072	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
18073        fi
18074	# Put the nasty error message in config.log where it belongs
18075	echo "$PCIACCESS_PKG_ERRORS" >&5
18076
18077	as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18078
18079$PCIACCESS_PKG_ERRORS
18080
18081Consider adjusting the PKG_CONFIG_PATH environment variable if you
18082installed software in a non-standard prefix.
18083
18084Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18085and PCIACCESS_LIBS to avoid the need to call pkg-config.
18086See the pkg-config man page for more details." "$LINENO" 5
18087
18088elif test $pkg_failed = untried; then
18089     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18090$as_echo "no" >&6; }
18091	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18092$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18093as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18094is in your PATH or set the PKG_CONFIG environment variable to the full
18095path to pkg-config.
18096
18097Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18098and PCIACCESS_LIBS to avoid the need to call pkg-config.
18099See the pkg-config man page for more details.
18100
18101To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18102See \`config.log' for more details" "$LINENO" 5; }
18103
18104else
18105	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18106	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18107        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18108$as_echo "yes" >&6; }
18109
18110fi
18111    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
18112fi
18113 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18114  XSERVER_LIBPCIACCESS_TRUE=
18115  XSERVER_LIBPCIACCESS_FALSE='#'
18116else
18117  XSERVER_LIBPCIACCESS_TRUE='#'
18118  XSERVER_LIBPCIACCESS_FALSE=
18119fi
18120
18121
18122
18123# Check whether --enable-xaa was given.
18124if test "${enable_xaa+set}" = set; then :
18125  enableval=$enable_xaa; XAA="$enableval"
18126else
18127  XAA=auto
18128fi
18129
18130if test "x$XAA" != xno; then
18131        save_CFLAGS=$CFLAGS
18132        save_CPPFLAGS=$CPPFLAGS
18133        CFLAGS=$XORG_CFLAGS
18134        CPPFLAGS="$XORG_CFLAGS"
18135        for ac_header in xaa.h
18136do :
18137  ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18138if test "x$ac_cv_header_xaa_h" = xyes; then :
18139  cat >>confdefs.h <<_ACEOF
18140#define HAVE_XAA_H 1
18141_ACEOF
18142 XAA=yes
18143else
18144  XAA=no
18145fi
18146
18147done
18148
18149        CFLAGS=$save_CFLAGS
18150        CPPFLAGS=$save_CPPFLAGS
18151fi
18152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18153$as_echo_n "checking whether to include XAA support... " >&6; }
18154 if test "x$XAA" = xyes; then
18155  XAA_TRUE=
18156  XAA_FALSE='#'
18157else
18158  XAA_TRUE='#'
18159  XAA_FALSE=
18160fi
18161
18162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18163$as_echo "$XAA" >&6; }
18164
18165# Required by exa.h
18166
18167$as_echo "#define EXA_DRIVER_KNOWN_MAJOR 3" >>confdefs.h
18168
18169
18170
18171
18172
18173DRIVER_NAME=i128
18174
18175
18176ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18177
18178cat >confcache <<\_ACEOF
18179# This file is a shell script that caches the results of configure
18180# tests run on this system so they can be shared between configure
18181# scripts and configure runs, see configure's option --config-cache.
18182# It is not useful on other systems.  If it contains results you don't
18183# want to keep, you may remove or edit it.
18184#
18185# config.status only pays attention to the cache file if you give it
18186# the --recheck option to rerun configure.
18187#
18188# `ac_cv_env_foo' variables (set or unset) will be overridden when
18189# loading this file, other *unset* `ac_cv_foo' will be assigned the
18190# following values.
18191
18192_ACEOF
18193
18194# The following way of writing the cache mishandles newlines in values,
18195# but we know of no workaround that is simple, portable, and efficient.
18196# So, we kill variables containing newlines.
18197# Ultrix sh set writes to stderr and can't be redirected directly,
18198# and sets the high bit in the cache file unless we assign to the vars.
18199(
18200  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18201    eval ac_val=\$$ac_var
18202    case $ac_val in #(
18203    *${as_nl}*)
18204      case $ac_var in #(
18205      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18206$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18207      esac
18208      case $ac_var in #(
18209      _ | IFS | as_nl) ;; #(
18210      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18211      *) { eval $ac_var=; unset $ac_var;} ;;
18212      esac ;;
18213    esac
18214  done
18215
18216  (set) 2>&1 |
18217    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18218    *${as_nl}ac_space=\ *)
18219      # `set' does not quote correctly, so add quotes: double-quote
18220      # substitution turns \\\\ into \\, and sed turns \\ into \.
18221      sed -n \
18222	"s/'/'\\\\''/g;
18223	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18224      ;; #(
18225    *)
18226      # `set' quotes correctly as required by POSIX, so do not add quotes.
18227      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18228      ;;
18229    esac |
18230    sort
18231) |
18232  sed '
18233     /^ac_cv_env_/b end
18234     t clear
18235     :clear
18236     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18237     t end
18238     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18239     :end' >>confcache
18240if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18241  if test -w "$cache_file"; then
18242    if test "x$cache_file" != "x/dev/null"; then
18243      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18244$as_echo "$as_me: updating cache $cache_file" >&6;}
18245      if test ! -f "$cache_file" || test -h "$cache_file"; then
18246	cat confcache >"$cache_file"
18247      else
18248        case $cache_file in #(
18249        */* | ?:*)
18250	  mv -f confcache "$cache_file"$$ &&
18251	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18252        *)
18253	  mv -f confcache "$cache_file" ;;
18254	esac
18255      fi
18256    fi
18257  else
18258    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18259$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18260  fi
18261fi
18262rm -f confcache
18263
18264test "x$prefix" = xNONE && prefix=$ac_default_prefix
18265# Let make expand exec_prefix.
18266test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18267
18268DEFS=-DHAVE_CONFIG_H
18269
18270ac_libobjs=
18271ac_ltlibobjs=
18272U=
18273for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18274  # 1. Remove the extension, and $U if already installed.
18275  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18276  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18277  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18278  #    will be set to the directory where LIBOBJS objects are built.
18279  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18280  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18281done
18282LIBOBJS=$ac_libobjs
18283
18284LTLIBOBJS=$ac_ltlibobjs
18285
18286
18287 if test -n "$EXEEXT"; then
18288  am__EXEEXT_TRUE=
18289  am__EXEEXT_FALSE='#'
18290else
18291  am__EXEEXT_TRUE='#'
18292  am__EXEEXT_FALSE=
18293fi
18294
18295if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18296  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18297Usually this means the macro was only invoked conditionally." "$LINENO" 5
18298fi
18299if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18300  as_fn_error $? "conditional \"AMDEP\" was never defined.
18301Usually this means the macro was only invoked conditionally." "$LINENO" 5
18302fi
18303if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18304  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18305Usually this means the macro was only invoked conditionally." "$LINENO" 5
18306fi
18307if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
18308  as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
18309Usually this means the macro was only invoked conditionally." "$LINENO" 5
18310fi
18311if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
18312  as_fn_error $? "conditional \"XAA\" was never defined.
18313Usually this means the macro was only invoked conditionally." "$LINENO" 5
18314fi
18315
18316: "${CONFIG_STATUS=./config.status}"
18317ac_write_fail=0
18318ac_clean_files_save=$ac_clean_files
18319ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18320{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18321$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18322as_write_fail=0
18323cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18324#! $SHELL
18325# Generated by $as_me.
18326# Run this file to recreate the current configuration.
18327# Compiler output produced by configure, useful for debugging
18328# configure, is in config.log if it exists.
18329
18330debug=false
18331ac_cs_recheck=false
18332ac_cs_silent=false
18333
18334SHELL=\${CONFIG_SHELL-$SHELL}
18335export SHELL
18336_ASEOF
18337cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18338## -------------------- ##
18339## M4sh Initialization. ##
18340## -------------------- ##
18341
18342# Be more Bourne compatible
18343DUALCASE=1; export DUALCASE # for MKS sh
18344if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18345  emulate sh
18346  NULLCMD=:
18347  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18348  # is contrary to our usage.  Disable this feature.
18349  alias -g '${1+"$@"}'='"$@"'
18350  setopt NO_GLOB_SUBST
18351else
18352  case `(set -o) 2>/dev/null` in #(
18353  *posix*) :
18354    set -o posix ;; #(
18355  *) :
18356     ;;
18357esac
18358fi
18359
18360
18361as_nl='
18362'
18363export as_nl
18364# Printing a long string crashes Solaris 7 /usr/bin/printf.
18365as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18366as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18367as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18368# Prefer a ksh shell builtin over an external printf program on Solaris,
18369# but without wasting forks for bash or zsh.
18370if test -z "$BASH_VERSION$ZSH_VERSION" \
18371    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18372  as_echo='print -r --'
18373  as_echo_n='print -rn --'
18374elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18375  as_echo='printf %s\n'
18376  as_echo_n='printf %s'
18377else
18378  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18379    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18380    as_echo_n='/usr/ucb/echo -n'
18381  else
18382    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18383    as_echo_n_body='eval
18384      arg=$1;
18385      case $arg in #(
18386      *"$as_nl"*)
18387	expr "X$arg" : "X\\(.*\\)$as_nl";
18388	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18389      esac;
18390      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18391    '
18392    export as_echo_n_body
18393    as_echo_n='sh -c $as_echo_n_body as_echo'
18394  fi
18395  export as_echo_body
18396  as_echo='sh -c $as_echo_body as_echo'
18397fi
18398
18399# The user is always right.
18400if test "${PATH_SEPARATOR+set}" != set; then
18401  PATH_SEPARATOR=:
18402  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18403    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18404      PATH_SEPARATOR=';'
18405  }
18406fi
18407
18408
18409# IFS
18410# We need space, tab and new line, in precisely that order.  Quoting is
18411# there to prevent editors from complaining about space-tab.
18412# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18413# splitting by setting IFS to empty value.)
18414IFS=" ""	$as_nl"
18415
18416# Find who we are.  Look in the path if we contain no directory separator.
18417as_myself=
18418case $0 in #((
18419  *[\\/]* ) as_myself=$0 ;;
18420  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18421for as_dir in $PATH
18422do
18423  IFS=$as_save_IFS
18424  test -z "$as_dir" && as_dir=.
18425    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18426  done
18427IFS=$as_save_IFS
18428
18429     ;;
18430esac
18431# We did not find ourselves, most probably we were run as `sh COMMAND'
18432# in which case we are not to be found in the path.
18433if test "x$as_myself" = x; then
18434  as_myself=$0
18435fi
18436if test ! -f "$as_myself"; then
18437  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18438  exit 1
18439fi
18440
18441# Unset variables that we do not need and which cause bugs (e.g. in
18442# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18443# suppresses any "Segmentation fault" message there.  '((' could
18444# trigger a bug in pdksh 5.2.14.
18445for as_var in BASH_ENV ENV MAIL MAILPATH
18446do eval test x\${$as_var+set} = xset \
18447  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18448done
18449PS1='$ '
18450PS2='> '
18451PS4='+ '
18452
18453# NLS nuisances.
18454LC_ALL=C
18455export LC_ALL
18456LANGUAGE=C
18457export LANGUAGE
18458
18459# CDPATH.
18460(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18461
18462
18463# as_fn_error STATUS ERROR [LINENO LOG_FD]
18464# ----------------------------------------
18465# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18466# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18467# script with STATUS, using 1 if that was 0.
18468as_fn_error ()
18469{
18470  as_status=$1; test $as_status -eq 0 && as_status=1
18471  if test "$4"; then
18472    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18473    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18474  fi
18475  $as_echo "$as_me: error: $2" >&2
18476  as_fn_exit $as_status
18477} # as_fn_error
18478
18479
18480# as_fn_set_status STATUS
18481# -----------------------
18482# Set $? to STATUS, without forking.
18483as_fn_set_status ()
18484{
18485  return $1
18486} # as_fn_set_status
18487
18488# as_fn_exit STATUS
18489# -----------------
18490# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18491as_fn_exit ()
18492{
18493  set +e
18494  as_fn_set_status $1
18495  exit $1
18496} # as_fn_exit
18497
18498# as_fn_unset VAR
18499# ---------------
18500# Portably unset VAR.
18501as_fn_unset ()
18502{
18503  { eval $1=; unset $1;}
18504}
18505as_unset=as_fn_unset
18506# as_fn_append VAR VALUE
18507# ----------------------
18508# Append the text in VALUE to the end of the definition contained in VAR. Take
18509# advantage of any shell optimizations that allow amortized linear growth over
18510# repeated appends, instead of the typical quadratic growth present in naive
18511# implementations.
18512if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18513  eval 'as_fn_append ()
18514  {
18515    eval $1+=\$2
18516  }'
18517else
18518  as_fn_append ()
18519  {
18520    eval $1=\$$1\$2
18521  }
18522fi # as_fn_append
18523
18524# as_fn_arith ARG...
18525# ------------------
18526# Perform arithmetic evaluation on the ARGs, and store the result in the
18527# global $as_val. Take advantage of shells that can avoid forks. The arguments
18528# must be portable across $(()) and expr.
18529if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18530  eval 'as_fn_arith ()
18531  {
18532    as_val=$(( $* ))
18533  }'
18534else
18535  as_fn_arith ()
18536  {
18537    as_val=`expr "$@" || test $? -eq 1`
18538  }
18539fi # as_fn_arith
18540
18541
18542if expr a : '\(a\)' >/dev/null 2>&1 &&
18543   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18544  as_expr=expr
18545else
18546  as_expr=false
18547fi
18548
18549if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18550  as_basename=basename
18551else
18552  as_basename=false
18553fi
18554
18555if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18556  as_dirname=dirname
18557else
18558  as_dirname=false
18559fi
18560
18561as_me=`$as_basename -- "$0" ||
18562$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18563	 X"$0" : 'X\(//\)$' \| \
18564	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18565$as_echo X/"$0" |
18566    sed '/^.*\/\([^/][^/]*\)\/*$/{
18567	    s//\1/
18568	    q
18569	  }
18570	  /^X\/\(\/\/\)$/{
18571	    s//\1/
18572	    q
18573	  }
18574	  /^X\/\(\/\).*/{
18575	    s//\1/
18576	    q
18577	  }
18578	  s/.*/./; q'`
18579
18580# Avoid depending upon Character Ranges.
18581as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18582as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18583as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18584as_cr_digits='0123456789'
18585as_cr_alnum=$as_cr_Letters$as_cr_digits
18586
18587ECHO_C= ECHO_N= ECHO_T=
18588case `echo -n x` in #(((((
18589-n*)
18590  case `echo 'xy\c'` in
18591  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18592  xy)  ECHO_C='\c';;
18593  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18594       ECHO_T='	';;
18595  esac;;
18596*)
18597  ECHO_N='-n';;
18598esac
18599
18600rm -f conf$$ conf$$.exe conf$$.file
18601if test -d conf$$.dir; then
18602  rm -f conf$$.dir/conf$$.file
18603else
18604  rm -f conf$$.dir
18605  mkdir conf$$.dir 2>/dev/null
18606fi
18607if (echo >conf$$.file) 2>/dev/null; then
18608  if ln -s conf$$.file conf$$ 2>/dev/null; then
18609    as_ln_s='ln -s'
18610    # ... but there are two gotchas:
18611    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18612    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18613    # In both cases, we have to default to `cp -p'.
18614    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18615      as_ln_s='cp -p'
18616  elif ln conf$$.file conf$$ 2>/dev/null; then
18617    as_ln_s=ln
18618  else
18619    as_ln_s='cp -p'
18620  fi
18621else
18622  as_ln_s='cp -p'
18623fi
18624rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18625rmdir conf$$.dir 2>/dev/null
18626
18627
18628# as_fn_mkdir_p
18629# -------------
18630# Create "$as_dir" as a directory, including parents if necessary.
18631as_fn_mkdir_p ()
18632{
18633
18634  case $as_dir in #(
18635  -*) as_dir=./$as_dir;;
18636  esac
18637  test -d "$as_dir" || eval $as_mkdir_p || {
18638    as_dirs=
18639    while :; do
18640      case $as_dir in #(
18641      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18642      *) as_qdir=$as_dir;;
18643      esac
18644      as_dirs="'$as_qdir' $as_dirs"
18645      as_dir=`$as_dirname -- "$as_dir" ||
18646$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18647	 X"$as_dir" : 'X\(//\)[^/]' \| \
18648	 X"$as_dir" : 'X\(//\)$' \| \
18649	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18650$as_echo X"$as_dir" |
18651    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18652	    s//\1/
18653	    q
18654	  }
18655	  /^X\(\/\/\)[^/].*/{
18656	    s//\1/
18657	    q
18658	  }
18659	  /^X\(\/\/\)$/{
18660	    s//\1/
18661	    q
18662	  }
18663	  /^X\(\/\).*/{
18664	    s//\1/
18665	    q
18666	  }
18667	  s/.*/./; q'`
18668      test -d "$as_dir" && break
18669    done
18670    test -z "$as_dirs" || eval "mkdir $as_dirs"
18671  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18672
18673
18674} # as_fn_mkdir_p
18675if mkdir -p . 2>/dev/null; then
18676  as_mkdir_p='mkdir -p "$as_dir"'
18677else
18678  test -d ./-p && rmdir ./-p
18679  as_mkdir_p=false
18680fi
18681
18682if test -x / >/dev/null 2>&1; then
18683  as_test_x='test -x'
18684else
18685  if ls -dL / >/dev/null 2>&1; then
18686    as_ls_L_option=L
18687  else
18688    as_ls_L_option=
18689  fi
18690  as_test_x='
18691    eval sh -c '\''
18692      if test -d "$1"; then
18693	test -d "$1/.";
18694      else
18695	case $1 in #(
18696	-*)set "./$1";;
18697	esac;
18698	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18699	???[sx]*):;;*)false;;esac;fi
18700    '\'' sh
18701  '
18702fi
18703as_executable_p=$as_test_x
18704
18705# Sed expression to map a string onto a valid CPP name.
18706as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18707
18708# Sed expression to map a string onto a valid variable name.
18709as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18710
18711
18712exec 6>&1
18713## ----------------------------------- ##
18714## Main body of $CONFIG_STATUS script. ##
18715## ----------------------------------- ##
18716_ASEOF
18717test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18718
18719cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18720# Save the log message, to keep $0 and so on meaningful, and to
18721# report actual input values of CONFIG_FILES etc. instead of their
18722# values after options handling.
18723ac_log="
18724This file was extended by xf86-video-i128 $as_me 1.3.6, which was
18725generated by GNU Autoconf 2.68.  Invocation command line was
18726
18727  CONFIG_FILES    = $CONFIG_FILES
18728  CONFIG_HEADERS  = $CONFIG_HEADERS
18729  CONFIG_LINKS    = $CONFIG_LINKS
18730  CONFIG_COMMANDS = $CONFIG_COMMANDS
18731  $ $0 $@
18732
18733on `(hostname || uname -n) 2>/dev/null | sed 1q`
18734"
18735
18736_ACEOF
18737
18738case $ac_config_files in *"
18739"*) set x $ac_config_files; shift; ac_config_files=$*;;
18740esac
18741
18742case $ac_config_headers in *"
18743"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18744esac
18745
18746
18747cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18748# Files that config.status was made for.
18749config_files="$ac_config_files"
18750config_headers="$ac_config_headers"
18751config_commands="$ac_config_commands"
18752
18753_ACEOF
18754
18755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18756ac_cs_usage="\
18757\`$as_me' instantiates files and other configuration actions
18758from templates according to the current configuration.  Unless the files
18759and actions are specified as TAGs, all are instantiated by default.
18760
18761Usage: $0 [OPTION]... [TAG]...
18762
18763  -h, --help       print this help, then exit
18764  -V, --version    print version number and configuration settings, then exit
18765      --config     print configuration, then exit
18766  -q, --quiet, --silent
18767                   do not print progress messages
18768  -d, --debug      don't remove temporary files
18769      --recheck    update $as_me by reconfiguring in the same conditions
18770      --file=FILE[:TEMPLATE]
18771                   instantiate the configuration file FILE
18772      --header=FILE[:TEMPLATE]
18773                   instantiate the configuration header FILE
18774
18775Configuration files:
18776$config_files
18777
18778Configuration headers:
18779$config_headers
18780
18781Configuration commands:
18782$config_commands
18783
18784Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18785
18786_ACEOF
18787cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18788ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18789ac_cs_version="\\
18790xf86-video-i128 config.status 1.3.6
18791configured by $0, generated by GNU Autoconf 2.68,
18792  with options \\"\$ac_cs_config\\"
18793
18794Copyright (C) 2010 Free Software Foundation, Inc.
18795This config.status script is free software; the Free Software Foundation
18796gives unlimited permission to copy, distribute and modify it."
18797
18798ac_pwd='$ac_pwd'
18799srcdir='$srcdir'
18800INSTALL='$INSTALL'
18801MKDIR_P='$MKDIR_P'
18802AWK='$AWK'
18803test -n "\$AWK" || AWK=awk
18804_ACEOF
18805
18806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18807# The default lists apply if the user does not specify any file.
18808ac_need_defaults=:
18809while test $# != 0
18810do
18811  case $1 in
18812  --*=?*)
18813    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18814    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18815    ac_shift=:
18816    ;;
18817  --*=)
18818    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18819    ac_optarg=
18820    ac_shift=:
18821    ;;
18822  *)
18823    ac_option=$1
18824    ac_optarg=$2
18825    ac_shift=shift
18826    ;;
18827  esac
18828
18829  case $ac_option in
18830  # Handling of the options.
18831  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18832    ac_cs_recheck=: ;;
18833  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18834    $as_echo "$ac_cs_version"; exit ;;
18835  --config | --confi | --conf | --con | --co | --c )
18836    $as_echo "$ac_cs_config"; exit ;;
18837  --debug | --debu | --deb | --de | --d | -d )
18838    debug=: ;;
18839  --file | --fil | --fi | --f )
18840    $ac_shift
18841    case $ac_optarg in
18842    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18843    '') as_fn_error $? "missing file argument" ;;
18844    esac
18845    as_fn_append CONFIG_FILES " '$ac_optarg'"
18846    ac_need_defaults=false;;
18847  --header | --heade | --head | --hea )
18848    $ac_shift
18849    case $ac_optarg in
18850    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18851    esac
18852    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18853    ac_need_defaults=false;;
18854  --he | --h)
18855    # Conflict between --help and --header
18856    as_fn_error $? "ambiguous option: \`$1'
18857Try \`$0 --help' for more information.";;
18858  --help | --hel | -h )
18859    $as_echo "$ac_cs_usage"; exit ;;
18860  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18861  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18862    ac_cs_silent=: ;;
18863
18864  # This is an error.
18865  -*) as_fn_error $? "unrecognized option: \`$1'
18866Try \`$0 --help' for more information." ;;
18867
18868  *) as_fn_append ac_config_targets " $1"
18869     ac_need_defaults=false ;;
18870
18871  esac
18872  shift
18873done
18874
18875ac_configure_extra_args=
18876
18877if $ac_cs_silent; then
18878  exec 6>/dev/null
18879  ac_configure_extra_args="$ac_configure_extra_args --silent"
18880fi
18881
18882_ACEOF
18883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18884if \$ac_cs_recheck; then
18885  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18886  shift
18887  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18888  CONFIG_SHELL='$SHELL'
18889  export CONFIG_SHELL
18890  exec "\$@"
18891fi
18892
18893_ACEOF
18894cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18895exec 5>>config.log
18896{
18897  echo
18898  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18899## Running $as_me. ##
18900_ASBOX
18901  $as_echo "$ac_log"
18902} >&5
18903
18904_ACEOF
18905cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18906#
18907# INIT-COMMANDS
18908#
18909AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18910
18911
18912# The HP-UX ksh and POSIX shell print the target directory to stdout
18913# if CDPATH is set.
18914(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18915
18916sed_quote_subst='$sed_quote_subst'
18917double_quote_subst='$double_quote_subst'
18918delay_variable_subst='$delay_variable_subst'
18919enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18920macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18921macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18922enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18923pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18924enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18925SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18926ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18927PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18928host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18929host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18930host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18931build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18932build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18933build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18934SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18935Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18936GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18937EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18938FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18939LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18940NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18941LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18942max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18943ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18944exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18945lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18946lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18947lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18948lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18949lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18950reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18951reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18952OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18953deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18954file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18955file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18956want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18957DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18958sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18959AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18960AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18961archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18962STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18963RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18964old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18965old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18966old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18967lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18968CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18969CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18970compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18971GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18972lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18973lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18974lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18975lt_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"`'
18976nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18977lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18978objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18979MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18980lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18981lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18982lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18983lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18984lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18985need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18986MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18987DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18988NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18989LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18990OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18991OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18992libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18993shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18994extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18995archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18996enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18997export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18998whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18999compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19000old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19001old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19002archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19003archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19004module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19005module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19006with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19007allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19008no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19009hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19010hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19011hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19012hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19013hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19014hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19015hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19016inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19017link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19018always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19019export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19020exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19021include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19022prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19023postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19024file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19025variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19026need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19027need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19028version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19029runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19030shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19031shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19032libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19033library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19034soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19035install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19036postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19037postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19038finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19039finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19040hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19041sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19042sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19043hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19044enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19045enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19046enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19047old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19048striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19049
19050LTCC='$LTCC'
19051LTCFLAGS='$LTCFLAGS'
19052compiler='$compiler_DEFAULT'
19053
19054# A function that is used when there is no print builtin or printf.
19055func_fallback_echo ()
19056{
19057  eval 'cat <<_LTECHO_EOF
19058\$1
19059_LTECHO_EOF'
19060}
19061
19062# Quote evaled strings.
19063for var in SHELL \
19064ECHO \
19065PATH_SEPARATOR \
19066SED \
19067GREP \
19068EGREP \
19069FGREP \
19070LD \
19071NM \
19072LN_S \
19073lt_SP2NL \
19074lt_NL2SP \
19075reload_flag \
19076OBJDUMP \
19077deplibs_check_method \
19078file_magic_cmd \
19079file_magic_glob \
19080want_nocaseglob \
19081DLLTOOL \
19082sharedlib_from_linklib_cmd \
19083AR \
19084AR_FLAGS \
19085archiver_list_spec \
19086STRIP \
19087RANLIB \
19088CC \
19089CFLAGS \
19090compiler \
19091lt_cv_sys_global_symbol_pipe \
19092lt_cv_sys_global_symbol_to_cdecl \
19093lt_cv_sys_global_symbol_to_c_name_address \
19094lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19095nm_file_list_spec \
19096lt_prog_compiler_no_builtin_flag \
19097lt_prog_compiler_pic \
19098lt_prog_compiler_wl \
19099lt_prog_compiler_static \
19100lt_cv_prog_compiler_c_o \
19101need_locks \
19102MANIFEST_TOOL \
19103DSYMUTIL \
19104NMEDIT \
19105LIPO \
19106OTOOL \
19107OTOOL64 \
19108shrext_cmds \
19109export_dynamic_flag_spec \
19110whole_archive_flag_spec \
19111compiler_needs_object \
19112with_gnu_ld \
19113allow_undefined_flag \
19114no_undefined_flag \
19115hardcode_libdir_flag_spec \
19116hardcode_libdir_separator \
19117exclude_expsyms \
19118include_expsyms \
19119file_list_spec \
19120variables_saved_for_relink \
19121libname_spec \
19122library_names_spec \
19123soname_spec \
19124install_override_mode \
19125finish_eval \
19126old_striplib \
19127striplib; do
19128    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19129    *[\\\\\\\`\\"\\\$]*)
19130      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19131      ;;
19132    *)
19133      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19134      ;;
19135    esac
19136done
19137
19138# Double-quote double-evaled strings.
19139for var in reload_cmds \
19140old_postinstall_cmds \
19141old_postuninstall_cmds \
19142old_archive_cmds \
19143extract_expsyms_cmds \
19144old_archive_from_new_cmds \
19145old_archive_from_expsyms_cmds \
19146archive_cmds \
19147archive_expsym_cmds \
19148module_cmds \
19149module_expsym_cmds \
19150export_symbols_cmds \
19151prelink_cmds \
19152postlink_cmds \
19153postinstall_cmds \
19154postuninstall_cmds \
19155finish_cmds \
19156sys_lib_search_path_spec \
19157sys_lib_dlsearch_path_spec; do
19158    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19159    *[\\\\\\\`\\"\\\$]*)
19160      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19161      ;;
19162    *)
19163      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19164      ;;
19165    esac
19166done
19167
19168ac_aux_dir='$ac_aux_dir'
19169xsi_shell='$xsi_shell'
19170lt_shell_append='$lt_shell_append'
19171
19172# See if we are running on zsh, and set the options which allow our
19173# commands through without removal of \ escapes INIT.
19174if test -n "\${ZSH_VERSION+set}" ; then
19175   setopt NO_GLOB_SUBST
19176fi
19177
19178
19179    PACKAGE='$PACKAGE'
19180    VERSION='$VERSION'
19181    TIMESTAMP='$TIMESTAMP'
19182    RM='$RM'
19183    ofile='$ofile'
19184
19185
19186
19187
19188_ACEOF
19189
19190cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19191
19192# Handling of arguments.
19193for ac_config_target in $ac_config_targets
19194do
19195  case $ac_config_target in
19196    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19197    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19198    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19199    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19200    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19201    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19202
19203  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19204  esac
19205done
19206
19207
19208# If the user did not use the arguments to specify the items to instantiate,
19209# then the envvar interface is used.  Set only those that are not.
19210# We use the long form for the default assignment because of an extremely
19211# bizarre bug on SunOS 4.1.3.
19212if $ac_need_defaults; then
19213  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19214  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19215  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19216fi
19217
19218# Have a temporary directory for convenience.  Make it in the build tree
19219# simply because there is no reason against having it here, and in addition,
19220# creating and moving files from /tmp can sometimes cause problems.
19221# Hook for its removal unless debugging.
19222# Note that there is a small window in which the directory will not be cleaned:
19223# after its creation but before its name has been assigned to `$tmp'.
19224$debug ||
19225{
19226  tmp= ac_tmp=
19227  trap 'exit_status=$?
19228  : "${ac_tmp:=$tmp}"
19229  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19230' 0
19231  trap 'as_fn_exit 1' 1 2 13 15
19232}
19233# Create a (secure) tmp directory for tmp files.
19234
19235{
19236  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19237  test -d "$tmp"
19238}  ||
19239{
19240  tmp=./conf$$-$RANDOM
19241  (umask 077 && mkdir "$tmp")
19242} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19243ac_tmp=$tmp
19244
19245# Set up the scripts for CONFIG_FILES section.
19246# No need to generate them if there are no CONFIG_FILES.
19247# This happens for instance with `./config.status config.h'.
19248if test -n "$CONFIG_FILES"; then
19249
19250
19251ac_cr=`echo X | tr X '\015'`
19252# On cygwin, bash can eat \r inside `` if the user requested igncr.
19253# But we know of no other shell where ac_cr would be empty at this
19254# point, so we can use a bashism as a fallback.
19255if test "x$ac_cr" = x; then
19256  eval ac_cr=\$\'\\r\'
19257fi
19258ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19259if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19260  ac_cs_awk_cr='\\r'
19261else
19262  ac_cs_awk_cr=$ac_cr
19263fi
19264
19265echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19266_ACEOF
19267
19268
19269{
19270  echo "cat >conf$$subs.awk <<_ACEOF" &&
19271  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19272  echo "_ACEOF"
19273} >conf$$subs.sh ||
19274  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19275ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19276ac_delim='%!_!# '
19277for ac_last_try in false false false false false :; do
19278  . ./conf$$subs.sh ||
19279    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19280
19281  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19282  if test $ac_delim_n = $ac_delim_num; then
19283    break
19284  elif $ac_last_try; then
19285    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19286  else
19287    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19288  fi
19289done
19290rm -f conf$$subs.sh
19291
19292cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19293cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19294_ACEOF
19295sed -n '
19296h
19297s/^/S["/; s/!.*/"]=/
19298p
19299g
19300s/^[^!]*!//
19301:repl
19302t repl
19303s/'"$ac_delim"'$//
19304t delim
19305:nl
19306h
19307s/\(.\{148\}\)..*/\1/
19308t more1
19309s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19310p
19311n
19312b repl
19313:more1
19314s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19315p
19316g
19317s/.\{148\}//
19318t nl
19319:delim
19320h
19321s/\(.\{148\}\)..*/\1/
19322t more2
19323s/["\\]/\\&/g; s/^/"/; s/$/"/
19324p
19325b
19326:more2
19327s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19328p
19329g
19330s/.\{148\}//
19331t delim
19332' <conf$$subs.awk | sed '
19333/^[^""]/{
19334  N
19335  s/\n//
19336}
19337' >>$CONFIG_STATUS || ac_write_fail=1
19338rm -f conf$$subs.awk
19339cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19340_ACAWK
19341cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19342  for (key in S) S_is_set[key] = 1
19343  FS = ""
19344
19345}
19346{
19347  line = $ 0
19348  nfields = split(line, field, "@")
19349  substed = 0
19350  len = length(field[1])
19351  for (i = 2; i < nfields; i++) {
19352    key = field[i]
19353    keylen = length(key)
19354    if (S_is_set[key]) {
19355      value = S[key]
19356      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19357      len += length(value) + length(field[++i])
19358      substed = 1
19359    } else
19360      len += 1 + keylen
19361  }
19362
19363  print line
19364}
19365
19366_ACAWK
19367_ACEOF
19368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19369if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19370  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19371else
19372  cat
19373fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19374  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19375_ACEOF
19376
19377# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19378# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19379# trailing colons and then remove the whole line if VPATH becomes empty
19380# (actually we leave an empty line to preserve line numbers).
19381if test "x$srcdir" = x.; then
19382  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19383h
19384s///
19385s/^/:/
19386s/[	 ]*$/:/
19387s/:\$(srcdir):/:/g
19388s/:\${srcdir}:/:/g
19389s/:@srcdir@:/:/g
19390s/^:*//
19391s/:*$//
19392x
19393s/\(=[	 ]*\).*/\1/
19394G
19395s/\n//
19396s/^[^=]*=[	 ]*$//
19397}'
19398fi
19399
19400cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19401fi # test -n "$CONFIG_FILES"
19402
19403# Set up the scripts for CONFIG_HEADERS section.
19404# No need to generate them if there are no CONFIG_HEADERS.
19405# This happens for instance with `./config.status Makefile'.
19406if test -n "$CONFIG_HEADERS"; then
19407cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19408BEGIN {
19409_ACEOF
19410
19411# Transform confdefs.h into an awk script `defines.awk', embedded as
19412# here-document in config.status, that substitutes the proper values into
19413# config.h.in to produce config.h.
19414
19415# Create a delimiter string that does not exist in confdefs.h, to ease
19416# handling of long lines.
19417ac_delim='%!_!# '
19418for ac_last_try in false false :; do
19419  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19420  if test -z "$ac_tt"; then
19421    break
19422  elif $ac_last_try; then
19423    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19424  else
19425    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19426  fi
19427done
19428
19429# For the awk script, D is an array of macro values keyed by name,
19430# likewise P contains macro parameters if any.  Preserve backslash
19431# newline sequences.
19432
19433ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19434sed -n '
19435s/.\{148\}/&'"$ac_delim"'/g
19436t rset
19437:rset
19438s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19439t def
19440d
19441:def
19442s/\\$//
19443t bsnl
19444s/["\\]/\\&/g
19445s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19446D["\1"]=" \3"/p
19447s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19448d
19449:bsnl
19450s/["\\]/\\&/g
19451s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19452D["\1"]=" \3\\\\\\n"\\/p
19453t cont
19454s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19455t cont
19456d
19457:cont
19458n
19459s/.\{148\}/&'"$ac_delim"'/g
19460t clear
19461:clear
19462s/\\$//
19463t bsnlc
19464s/["\\]/\\&/g; s/^/"/; s/$/"/p
19465d
19466:bsnlc
19467s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19468b cont
19469' <confdefs.h | sed '
19470s/'"$ac_delim"'/"\\\
19471"/g' >>$CONFIG_STATUS || ac_write_fail=1
19472
19473cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19474  for (key in D) D_is_set[key] = 1
19475  FS = ""
19476}
19477/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19478  line = \$ 0
19479  split(line, arg, " ")
19480  if (arg[1] == "#") {
19481    defundef = arg[2]
19482    mac1 = arg[3]
19483  } else {
19484    defundef = substr(arg[1], 2)
19485    mac1 = arg[2]
19486  }
19487  split(mac1, mac2, "(") #)
19488  macro = mac2[1]
19489  prefix = substr(line, 1, index(line, defundef) - 1)
19490  if (D_is_set[macro]) {
19491    # Preserve the white space surrounding the "#".
19492    print prefix "define", macro P[macro] D[macro]
19493    next
19494  } else {
19495    # Replace #undef with comments.  This is necessary, for example,
19496    # in the case of _POSIX_SOURCE, which is predefined and required
19497    # on some systems where configure will not decide to define it.
19498    if (defundef == "undef") {
19499      print "/*", prefix defundef, macro, "*/"
19500      next
19501    }
19502  }
19503}
19504{ print }
19505_ACAWK
19506_ACEOF
19507cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19508  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19509fi # test -n "$CONFIG_HEADERS"
19510
19511
19512eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19513shift
19514for ac_tag
19515do
19516  case $ac_tag in
19517  :[FHLC]) ac_mode=$ac_tag; continue;;
19518  esac
19519  case $ac_mode$ac_tag in
19520  :[FHL]*:*);;
19521  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19522  :[FH]-) ac_tag=-:-;;
19523  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19524  esac
19525  ac_save_IFS=$IFS
19526  IFS=:
19527  set x $ac_tag
19528  IFS=$ac_save_IFS
19529  shift
19530  ac_file=$1
19531  shift
19532
19533  case $ac_mode in
19534  :L) ac_source=$1;;
19535  :[FH])
19536    ac_file_inputs=
19537    for ac_f
19538    do
19539      case $ac_f in
19540      -) ac_f="$ac_tmp/stdin";;
19541      *) # Look for the file first in the build tree, then in the source tree
19542	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19543	 # because $ac_f cannot contain `:'.
19544	 test -f "$ac_f" ||
19545	   case $ac_f in
19546	   [\\/$]*) false;;
19547	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19548	   esac ||
19549	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19550      esac
19551      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19552      as_fn_append ac_file_inputs " '$ac_f'"
19553    done
19554
19555    # Let's still pretend it is `configure' which instantiates (i.e., don't
19556    # use $as_me), people would be surprised to read:
19557    #    /* config.h.  Generated by config.status.  */
19558    configure_input='Generated from '`
19559	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19560	`' by configure.'
19561    if test x"$ac_file" != x-; then
19562      configure_input="$ac_file.  $configure_input"
19563      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19564$as_echo "$as_me: creating $ac_file" >&6;}
19565    fi
19566    # Neutralize special characters interpreted by sed in replacement strings.
19567    case $configure_input in #(
19568    *\&* | *\|* | *\\* )
19569       ac_sed_conf_input=`$as_echo "$configure_input" |
19570       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19571    *) ac_sed_conf_input=$configure_input;;
19572    esac
19573
19574    case $ac_tag in
19575    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19576      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19577    esac
19578    ;;
19579  esac
19580
19581  ac_dir=`$as_dirname -- "$ac_file" ||
19582$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19583	 X"$ac_file" : 'X\(//\)[^/]' \| \
19584	 X"$ac_file" : 'X\(//\)$' \| \
19585	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19586$as_echo X"$ac_file" |
19587    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19588	    s//\1/
19589	    q
19590	  }
19591	  /^X\(\/\/\)[^/].*/{
19592	    s//\1/
19593	    q
19594	  }
19595	  /^X\(\/\/\)$/{
19596	    s//\1/
19597	    q
19598	  }
19599	  /^X\(\/\).*/{
19600	    s//\1/
19601	    q
19602	  }
19603	  s/.*/./; q'`
19604  as_dir="$ac_dir"; as_fn_mkdir_p
19605  ac_builddir=.
19606
19607case "$ac_dir" in
19608.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19609*)
19610  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19611  # A ".." for each directory in $ac_dir_suffix.
19612  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19613  case $ac_top_builddir_sub in
19614  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19615  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19616  esac ;;
19617esac
19618ac_abs_top_builddir=$ac_pwd
19619ac_abs_builddir=$ac_pwd$ac_dir_suffix
19620# for backward compatibility:
19621ac_top_builddir=$ac_top_build_prefix
19622
19623case $srcdir in
19624  .)  # We are building in place.
19625    ac_srcdir=.
19626    ac_top_srcdir=$ac_top_builddir_sub
19627    ac_abs_top_srcdir=$ac_pwd ;;
19628  [\\/]* | ?:[\\/]* )  # Absolute name.
19629    ac_srcdir=$srcdir$ac_dir_suffix;
19630    ac_top_srcdir=$srcdir
19631    ac_abs_top_srcdir=$srcdir ;;
19632  *) # Relative name.
19633    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19634    ac_top_srcdir=$ac_top_build_prefix$srcdir
19635    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19636esac
19637ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19638
19639
19640  case $ac_mode in
19641  :F)
19642  #
19643  # CONFIG_FILE
19644  #
19645
19646  case $INSTALL in
19647  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19648  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19649  esac
19650  ac_MKDIR_P=$MKDIR_P
19651  case $MKDIR_P in
19652  [\\/$]* | ?:[\\/]* ) ;;
19653  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19654  esac
19655_ACEOF
19656
19657cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19658# If the template does not know about datarootdir, expand it.
19659# FIXME: This hack should be removed a few years after 2.60.
19660ac_datarootdir_hack=; ac_datarootdir_seen=
19661ac_sed_dataroot='
19662/datarootdir/ {
19663  p
19664  q
19665}
19666/@datadir@/p
19667/@docdir@/p
19668/@infodir@/p
19669/@localedir@/p
19670/@mandir@/p'
19671case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19672*datarootdir*) ac_datarootdir_seen=yes;;
19673*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19674  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19675$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19676_ACEOF
19677cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19678  ac_datarootdir_hack='
19679  s&@datadir@&$datadir&g
19680  s&@docdir@&$docdir&g
19681  s&@infodir@&$infodir&g
19682  s&@localedir@&$localedir&g
19683  s&@mandir@&$mandir&g
19684  s&\\\${datarootdir}&$datarootdir&g' ;;
19685esac
19686_ACEOF
19687
19688# Neutralize VPATH when `$srcdir' = `.'.
19689# Shell code in configure.ac might set extrasub.
19690# FIXME: do we really want to maintain this feature?
19691cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19692ac_sed_extra="$ac_vpsub
19693$extrasub
19694_ACEOF
19695cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19696:t
19697/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19698s|@configure_input@|$ac_sed_conf_input|;t t
19699s&@top_builddir@&$ac_top_builddir_sub&;t t
19700s&@top_build_prefix@&$ac_top_build_prefix&;t t
19701s&@srcdir@&$ac_srcdir&;t t
19702s&@abs_srcdir@&$ac_abs_srcdir&;t t
19703s&@top_srcdir@&$ac_top_srcdir&;t t
19704s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19705s&@builddir@&$ac_builddir&;t t
19706s&@abs_builddir@&$ac_abs_builddir&;t t
19707s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19708s&@INSTALL@&$ac_INSTALL&;t t
19709s&@MKDIR_P@&$ac_MKDIR_P&;t t
19710$ac_datarootdir_hack
19711"
19712eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19713  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19714
19715test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19716  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19717  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19718      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19719  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19720which seems to be undefined.  Please make sure it is defined" >&5
19721$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19722which seems to be undefined.  Please make sure it is defined" >&2;}
19723
19724  rm -f "$ac_tmp/stdin"
19725  case $ac_file in
19726  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19727  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19728  esac \
19729  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19730 ;;
19731  :H)
19732  #
19733  # CONFIG_HEADER
19734  #
19735  if test x"$ac_file" != x-; then
19736    {
19737      $as_echo "/* $configure_input  */" \
19738      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19739    } >"$ac_tmp/config.h" \
19740      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19741    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19742      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19743$as_echo "$as_me: $ac_file is unchanged" >&6;}
19744    else
19745      rm -f "$ac_file"
19746      mv "$ac_tmp/config.h" "$ac_file" \
19747	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19748    fi
19749  else
19750    $as_echo "/* $configure_input  */" \
19751      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19752      || as_fn_error $? "could not create -" "$LINENO" 5
19753  fi
19754# Compute "$ac_file"'s index in $config_headers.
19755_am_arg="$ac_file"
19756_am_stamp_count=1
19757for _am_header in $config_headers :; do
19758  case $_am_header in
19759    $_am_arg | $_am_arg:* )
19760      break ;;
19761    * )
19762      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19763  esac
19764done
19765echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19766$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19767	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19768	 X"$_am_arg" : 'X\(//\)$' \| \
19769	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19770$as_echo X"$_am_arg" |
19771    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19772	    s//\1/
19773	    q
19774	  }
19775	  /^X\(\/\/\)[^/].*/{
19776	    s//\1/
19777	    q
19778	  }
19779	  /^X\(\/\/\)$/{
19780	    s//\1/
19781	    q
19782	  }
19783	  /^X\(\/\).*/{
19784	    s//\1/
19785	    q
19786	  }
19787	  s/.*/./; q'`/stamp-h$_am_stamp_count
19788 ;;
19789
19790  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19791$as_echo "$as_me: executing $ac_file commands" >&6;}
19792 ;;
19793  esac
19794
19795
19796  case $ac_file$ac_mode in
19797    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19798  # Autoconf 2.62 quotes --file arguments for eval, but not when files
19799  # are listed without --file.  Let's play safe and only enable the eval
19800  # if we detect the quoting.
19801  case $CONFIG_FILES in
19802  *\'*) eval set x "$CONFIG_FILES" ;;
19803  *)   set x $CONFIG_FILES ;;
19804  esac
19805  shift
19806  for mf
19807  do
19808    # Strip MF so we end up with the name of the file.
19809    mf=`echo "$mf" | sed -e 's/:.*$//'`
19810    # Check whether this is an Automake generated Makefile or not.
19811    # We used to match only the files named `Makefile.in', but
19812    # some people rename them; so instead we look at the file content.
19813    # Grep'ing the first line is not enough: some people post-process
19814    # each Makefile.in and add a new line on top of each file to say so.
19815    # Grep'ing the whole file is not good either: AIX grep has a line
19816    # limit of 2048, but all sed's we know have understand at least 4000.
19817    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19818      dirpart=`$as_dirname -- "$mf" ||
19819$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19820	 X"$mf" : 'X\(//\)[^/]' \| \
19821	 X"$mf" : 'X\(//\)$' \| \
19822	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19823$as_echo X"$mf" |
19824    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19825	    s//\1/
19826	    q
19827	  }
19828	  /^X\(\/\/\)[^/].*/{
19829	    s//\1/
19830	    q
19831	  }
19832	  /^X\(\/\/\)$/{
19833	    s//\1/
19834	    q
19835	  }
19836	  /^X\(\/\).*/{
19837	    s//\1/
19838	    q
19839	  }
19840	  s/.*/./; q'`
19841    else
19842      continue
19843    fi
19844    # Extract the definition of DEPDIR, am__include, and am__quote
19845    # from the Makefile without running `make'.
19846    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19847    test -z "$DEPDIR" && continue
19848    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19849    test -z "am__include" && continue
19850    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19851    # When using ansi2knr, U may be empty or an underscore; expand it
19852    U=`sed -n 's/^U = //p' < "$mf"`
19853    # Find all dependency output files, they are included files with
19854    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19855    # simplest approach to changing $(DEPDIR) to its actual value in the
19856    # expansion.
19857    for file in `sed -n "
19858      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19859	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19860      # Make sure the directory exists.
19861      test -f "$dirpart/$file" && continue
19862      fdir=`$as_dirname -- "$file" ||
19863$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19864	 X"$file" : 'X\(//\)[^/]' \| \
19865	 X"$file" : 'X\(//\)$' \| \
19866	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19867$as_echo X"$file" |
19868    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19869	    s//\1/
19870	    q
19871	  }
19872	  /^X\(\/\/\)[^/].*/{
19873	    s//\1/
19874	    q
19875	  }
19876	  /^X\(\/\/\)$/{
19877	    s//\1/
19878	    q
19879	  }
19880	  /^X\(\/\).*/{
19881	    s//\1/
19882	    q
19883	  }
19884	  s/.*/./; q'`
19885      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19886      # echo "creating $dirpart/$file"
19887      echo '# dummy' > "$dirpart/$file"
19888    done
19889  done
19890}
19891 ;;
19892    "libtool":C)
19893
19894    # See if we are running on zsh, and set the options which allow our
19895    # commands through without removal of \ escapes.
19896    if test -n "${ZSH_VERSION+set}" ; then
19897      setopt NO_GLOB_SUBST
19898    fi
19899
19900    cfgfile="${ofile}T"
19901    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19902    $RM "$cfgfile"
19903
19904    cat <<_LT_EOF >> "$cfgfile"
19905#! $SHELL
19906
19907# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19908# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19909# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19910# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19911#
19912#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19913#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19914#                 Foundation, Inc.
19915#   Written by Gordon Matzigkeit, 1996
19916#
19917#   This file is part of GNU Libtool.
19918#
19919# GNU Libtool is free software; you can redistribute it and/or
19920# modify it under the terms of the GNU General Public License as
19921# published by the Free Software Foundation; either version 2 of
19922# the License, or (at your option) any later version.
19923#
19924# As a special exception to the GNU General Public License,
19925# if you distribute this file as part of a program or library that
19926# is built using GNU Libtool, you may include this file under the
19927# same distribution terms that you use for the rest of that program.
19928#
19929# GNU Libtool is distributed in the hope that it will be useful,
19930# but WITHOUT ANY WARRANTY; without even the implied warranty of
19931# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19932# GNU General Public License for more details.
19933#
19934# You should have received a copy of the GNU General Public License
19935# along with GNU Libtool; see the file COPYING.  If not, a copy
19936# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19937# obtained by writing to the Free Software Foundation, Inc.,
19938# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19939
19940
19941# The names of the tagged configurations supported by this script.
19942available_tags=""
19943
19944# ### BEGIN LIBTOOL CONFIG
19945
19946# Whether or not to build static libraries.
19947build_old_libs=$enable_static
19948
19949# Which release of libtool.m4 was used?
19950macro_version=$macro_version
19951macro_revision=$macro_revision
19952
19953# Whether or not to build shared libraries.
19954build_libtool_libs=$enable_shared
19955
19956# What type of objects to build.
19957pic_mode=$pic_mode
19958
19959# Whether or not to optimize for fast installation.
19960fast_install=$enable_fast_install
19961
19962# Shell to use when invoking shell scripts.
19963SHELL=$lt_SHELL
19964
19965# An echo program that protects backslashes.
19966ECHO=$lt_ECHO
19967
19968# The PATH separator for the build system.
19969PATH_SEPARATOR=$lt_PATH_SEPARATOR
19970
19971# The host system.
19972host_alias=$host_alias
19973host=$host
19974host_os=$host_os
19975
19976# The build system.
19977build_alias=$build_alias
19978build=$build
19979build_os=$build_os
19980
19981# A sed program that does not truncate output.
19982SED=$lt_SED
19983
19984# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19985Xsed="\$SED -e 1s/^X//"
19986
19987# A grep program that handles long lines.
19988GREP=$lt_GREP
19989
19990# An ERE matcher.
19991EGREP=$lt_EGREP
19992
19993# A literal string matcher.
19994FGREP=$lt_FGREP
19995
19996# A BSD- or MS-compatible name lister.
19997NM=$lt_NM
19998
19999# Whether we need soft or hard links.
20000LN_S=$lt_LN_S
20001
20002# What is the maximum length of a command?
20003max_cmd_len=$max_cmd_len
20004
20005# Object file suffix (normally "o").
20006objext=$ac_objext
20007
20008# Executable file suffix (normally "").
20009exeext=$exeext
20010
20011# whether the shell understands "unset".
20012lt_unset=$lt_unset
20013
20014# turn spaces into newlines.
20015SP2NL=$lt_lt_SP2NL
20016
20017# turn newlines into spaces.
20018NL2SP=$lt_lt_NL2SP
20019
20020# convert \$build file names to \$host format.
20021to_host_file_cmd=$lt_cv_to_host_file_cmd
20022
20023# convert \$build files to toolchain format.
20024to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20025
20026# An object symbol dumper.
20027OBJDUMP=$lt_OBJDUMP
20028
20029# Method to check whether dependent libraries are shared objects.
20030deplibs_check_method=$lt_deplibs_check_method
20031
20032# Command to use when deplibs_check_method = "file_magic".
20033file_magic_cmd=$lt_file_magic_cmd
20034
20035# How to find potential files when deplibs_check_method = "file_magic".
20036file_magic_glob=$lt_file_magic_glob
20037
20038# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20039want_nocaseglob=$lt_want_nocaseglob
20040
20041# DLL creation program.
20042DLLTOOL=$lt_DLLTOOL
20043
20044# Command to associate shared and link libraries.
20045sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20046
20047# The archiver.
20048AR=$lt_AR
20049
20050# Flags to create an archive.
20051AR_FLAGS=$lt_AR_FLAGS
20052
20053# How to feed a file listing to the archiver.
20054archiver_list_spec=$lt_archiver_list_spec
20055
20056# A symbol stripping program.
20057STRIP=$lt_STRIP
20058
20059# Commands used to install an old-style archive.
20060RANLIB=$lt_RANLIB
20061old_postinstall_cmds=$lt_old_postinstall_cmds
20062old_postuninstall_cmds=$lt_old_postuninstall_cmds
20063
20064# Whether to use a lock for old archive extraction.
20065lock_old_archive_extraction=$lock_old_archive_extraction
20066
20067# A C compiler.
20068LTCC=$lt_CC
20069
20070# LTCC compiler flags.
20071LTCFLAGS=$lt_CFLAGS
20072
20073# Take the output of nm and produce a listing of raw symbols and C names.
20074global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20075
20076# Transform the output of nm in a proper C declaration.
20077global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20078
20079# Transform the output of nm in a C name address pair.
20080global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20081
20082# Transform the output of nm in a C name address pair when lib prefix is needed.
20083global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20084
20085# Specify filename containing input files for \$NM.
20086nm_file_list_spec=$lt_nm_file_list_spec
20087
20088# The root where to search for dependent libraries,and in which our libraries should be installed.
20089lt_sysroot=$lt_sysroot
20090
20091# The name of the directory that contains temporary libtool files.
20092objdir=$objdir
20093
20094# Used to examine libraries when file_magic_cmd begins with "file".
20095MAGIC_CMD=$MAGIC_CMD
20096
20097# Must we lock files when doing compilation?
20098need_locks=$lt_need_locks
20099
20100# Manifest tool.
20101MANIFEST_TOOL=$lt_MANIFEST_TOOL
20102
20103# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20104DSYMUTIL=$lt_DSYMUTIL
20105
20106# Tool to change global to local symbols on Mac OS X.
20107NMEDIT=$lt_NMEDIT
20108
20109# Tool to manipulate fat objects and archives on Mac OS X.
20110LIPO=$lt_LIPO
20111
20112# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20113OTOOL=$lt_OTOOL
20114
20115# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20116OTOOL64=$lt_OTOOL64
20117
20118# Old archive suffix (normally "a").
20119libext=$libext
20120
20121# Shared library suffix (normally ".so").
20122shrext_cmds=$lt_shrext_cmds
20123
20124# The commands to extract the exported symbol list from a shared archive.
20125extract_expsyms_cmds=$lt_extract_expsyms_cmds
20126
20127# Variables whose values should be saved in libtool wrapper scripts and
20128# restored at link time.
20129variables_saved_for_relink=$lt_variables_saved_for_relink
20130
20131# Do we need the "lib" prefix for modules?
20132need_lib_prefix=$need_lib_prefix
20133
20134# Do we need a version for libraries?
20135need_version=$need_version
20136
20137# Library versioning type.
20138version_type=$version_type
20139
20140# Shared library runtime path variable.
20141runpath_var=$runpath_var
20142
20143# Shared library path variable.
20144shlibpath_var=$shlibpath_var
20145
20146# Is shlibpath searched before the hard-coded library search path?
20147shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20148
20149# Format of library name prefix.
20150libname_spec=$lt_libname_spec
20151
20152# List of archive names.  First name is the real one, the rest are links.
20153# The last name is the one that the linker finds with -lNAME
20154library_names_spec=$lt_library_names_spec
20155
20156# The coded name of the library, if different from the real name.
20157soname_spec=$lt_soname_spec
20158
20159# Permission mode override for installation of shared libraries.
20160install_override_mode=$lt_install_override_mode
20161
20162# Command to use after installation of a shared archive.
20163postinstall_cmds=$lt_postinstall_cmds
20164
20165# Command to use after uninstallation of a shared archive.
20166postuninstall_cmds=$lt_postuninstall_cmds
20167
20168# Commands used to finish a libtool library installation in a directory.
20169finish_cmds=$lt_finish_cmds
20170
20171# As "finish_cmds", except a single script fragment to be evaled but
20172# not shown.
20173finish_eval=$lt_finish_eval
20174
20175# Whether we should hardcode library paths into libraries.
20176hardcode_into_libs=$hardcode_into_libs
20177
20178# Compile-time system search path for libraries.
20179sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20180
20181# Run-time system search path for libraries.
20182sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20183
20184# Whether dlopen is supported.
20185dlopen_support=$enable_dlopen
20186
20187# Whether dlopen of programs is supported.
20188dlopen_self=$enable_dlopen_self
20189
20190# Whether dlopen of statically linked programs is supported.
20191dlopen_self_static=$enable_dlopen_self_static
20192
20193# Commands to strip libraries.
20194old_striplib=$lt_old_striplib
20195striplib=$lt_striplib
20196
20197
20198# The linker used to build libraries.
20199LD=$lt_LD
20200
20201# How to create reloadable object files.
20202reload_flag=$lt_reload_flag
20203reload_cmds=$lt_reload_cmds
20204
20205# Commands used to build an old-style archive.
20206old_archive_cmds=$lt_old_archive_cmds
20207
20208# A language specific compiler.
20209CC=$lt_compiler
20210
20211# Is the compiler the GNU compiler?
20212with_gcc=$GCC
20213
20214# Compiler flag to turn off builtin functions.
20215no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20216
20217# Additional compiler flags for building library objects.
20218pic_flag=$lt_lt_prog_compiler_pic
20219
20220# How to pass a linker flag through the compiler.
20221wl=$lt_lt_prog_compiler_wl
20222
20223# Compiler flag to prevent dynamic linking.
20224link_static_flag=$lt_lt_prog_compiler_static
20225
20226# Does compiler simultaneously support -c and -o options?
20227compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20228
20229# Whether or not to add -lc for building shared libraries.
20230build_libtool_need_lc=$archive_cmds_need_lc
20231
20232# Whether or not to disallow shared libs when runtime libs are static.
20233allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20234
20235# Compiler flag to allow reflexive dlopens.
20236export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20237
20238# Compiler flag to generate shared objects directly from archives.
20239whole_archive_flag_spec=$lt_whole_archive_flag_spec
20240
20241# Whether the compiler copes with passing no objects directly.
20242compiler_needs_object=$lt_compiler_needs_object
20243
20244# Create an old-style archive from a shared archive.
20245old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20246
20247# Create a temporary old-style archive to link instead of a shared archive.
20248old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20249
20250# Commands used to build a shared archive.
20251archive_cmds=$lt_archive_cmds
20252archive_expsym_cmds=$lt_archive_expsym_cmds
20253
20254# Commands used to build a loadable module if different from building
20255# a shared archive.
20256module_cmds=$lt_module_cmds
20257module_expsym_cmds=$lt_module_expsym_cmds
20258
20259# Whether we are building with GNU ld or not.
20260with_gnu_ld=$lt_with_gnu_ld
20261
20262# Flag that allows shared libraries with undefined symbols to be built.
20263allow_undefined_flag=$lt_allow_undefined_flag
20264
20265# Flag that enforces no undefined symbols.
20266no_undefined_flag=$lt_no_undefined_flag
20267
20268# Flag to hardcode \$libdir into a binary during linking.
20269# This must work even if \$libdir does not exist
20270hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20271
20272# Whether we need a single "-rpath" flag with a separated argument.
20273hardcode_libdir_separator=$lt_hardcode_libdir_separator
20274
20275# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20276# DIR into the resulting binary.
20277hardcode_direct=$hardcode_direct
20278
20279# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20280# DIR into the resulting binary and the resulting library dependency is
20281# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20282# library is relocated.
20283hardcode_direct_absolute=$hardcode_direct_absolute
20284
20285# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20286# into the resulting binary.
20287hardcode_minus_L=$hardcode_minus_L
20288
20289# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20290# into the resulting binary.
20291hardcode_shlibpath_var=$hardcode_shlibpath_var
20292
20293# Set to "yes" if building a shared library automatically hardcodes DIR
20294# into the library and all subsequent libraries and executables linked
20295# against it.
20296hardcode_automatic=$hardcode_automatic
20297
20298# Set to yes if linker adds runtime paths of dependent libraries
20299# to runtime path list.
20300inherit_rpath=$inherit_rpath
20301
20302# Whether libtool must link a program against all its dependency libraries.
20303link_all_deplibs=$link_all_deplibs
20304
20305# Set to "yes" if exported symbols are required.
20306always_export_symbols=$always_export_symbols
20307
20308# The commands to list exported symbols.
20309export_symbols_cmds=$lt_export_symbols_cmds
20310
20311# Symbols that should not be listed in the preloaded symbols.
20312exclude_expsyms=$lt_exclude_expsyms
20313
20314# Symbols that must always be exported.
20315include_expsyms=$lt_include_expsyms
20316
20317# Commands necessary for linking programs (against libraries) with templates.
20318prelink_cmds=$lt_prelink_cmds
20319
20320# Commands necessary for finishing linking programs.
20321postlink_cmds=$lt_postlink_cmds
20322
20323# Specify filename containing input files.
20324file_list_spec=$lt_file_list_spec
20325
20326# How to hardcode a shared library path into an executable.
20327hardcode_action=$hardcode_action
20328
20329# ### END LIBTOOL CONFIG
20330
20331_LT_EOF
20332
20333  case $host_os in
20334  aix3*)
20335    cat <<\_LT_EOF >> "$cfgfile"
20336# AIX sometimes has problems with the GCC collect2 program.  For some
20337# reason, if we set the COLLECT_NAMES environment variable, the problems
20338# vanish in a puff of smoke.
20339if test "X${COLLECT_NAMES+set}" != Xset; then
20340  COLLECT_NAMES=
20341  export COLLECT_NAMES
20342fi
20343_LT_EOF
20344    ;;
20345  esac
20346
20347
20348ltmain="$ac_aux_dir/ltmain.sh"
20349
20350
20351  # We use sed instead of cat because bash on DJGPP gets confused if
20352  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20353  # text mode, it properly converts lines to CR/LF.  This bash problem
20354  # is reportedly fixed, but why not run on old versions too?
20355  sed '$q' "$ltmain" >> "$cfgfile" \
20356     || (rm -f "$cfgfile"; exit 1)
20357
20358  if test x"$xsi_shell" = xyes; then
20359  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20360func_dirname ()\
20361{\
20362\    case ${1} in\
20363\      */*) func_dirname_result="${1%/*}${2}" ;;\
20364\      *  ) func_dirname_result="${3}" ;;\
20365\    esac\
20366} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20367  && mv -f "$cfgfile.tmp" "$cfgfile" \
20368    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20369test 0 -eq $? || _lt_function_replace_fail=:
20370
20371
20372  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20373func_basename ()\
20374{\
20375\    func_basename_result="${1##*/}"\
20376} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20377  && mv -f "$cfgfile.tmp" "$cfgfile" \
20378    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20379test 0 -eq $? || _lt_function_replace_fail=:
20380
20381
20382  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20383func_dirname_and_basename ()\
20384{\
20385\    case ${1} in\
20386\      */*) func_dirname_result="${1%/*}${2}" ;;\
20387\      *  ) func_dirname_result="${3}" ;;\
20388\    esac\
20389\    func_basename_result="${1##*/}"\
20390} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20391  && mv -f "$cfgfile.tmp" "$cfgfile" \
20392    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20393test 0 -eq $? || _lt_function_replace_fail=:
20394
20395
20396  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20397func_stripname ()\
20398{\
20399\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20400\    # positional parameters, so assign one to ordinary parameter first.\
20401\    func_stripname_result=${3}\
20402\    func_stripname_result=${func_stripname_result#"${1}"}\
20403\    func_stripname_result=${func_stripname_result%"${2}"}\
20404} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20405  && mv -f "$cfgfile.tmp" "$cfgfile" \
20406    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20407test 0 -eq $? || _lt_function_replace_fail=:
20408
20409
20410  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20411func_split_long_opt ()\
20412{\
20413\    func_split_long_opt_name=${1%%=*}\
20414\    func_split_long_opt_arg=${1#*=}\
20415} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20416  && mv -f "$cfgfile.tmp" "$cfgfile" \
20417    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20418test 0 -eq $? || _lt_function_replace_fail=:
20419
20420
20421  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20422func_split_short_opt ()\
20423{\
20424\    func_split_short_opt_arg=${1#??}\
20425\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20426} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20427  && mv -f "$cfgfile.tmp" "$cfgfile" \
20428    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20429test 0 -eq $? || _lt_function_replace_fail=:
20430
20431
20432  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20433func_lo2o ()\
20434{\
20435\    case ${1} in\
20436\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20437\      *)    func_lo2o_result=${1} ;;\
20438\    esac\
20439} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20440  && mv -f "$cfgfile.tmp" "$cfgfile" \
20441    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20442test 0 -eq $? || _lt_function_replace_fail=:
20443
20444
20445  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20446func_xform ()\
20447{\
20448    func_xform_result=${1%.*}.lo\
20449} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20450  && mv -f "$cfgfile.tmp" "$cfgfile" \
20451    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20452test 0 -eq $? || _lt_function_replace_fail=:
20453
20454
20455  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20456func_arith ()\
20457{\
20458    func_arith_result=$(( $* ))\
20459} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20460  && mv -f "$cfgfile.tmp" "$cfgfile" \
20461    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20462test 0 -eq $? || _lt_function_replace_fail=:
20463
20464
20465  sed -e '/^func_len ()$/,/^} # func_len /c\
20466func_len ()\
20467{\
20468    func_len_result=${#1}\
20469} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20470  && mv -f "$cfgfile.tmp" "$cfgfile" \
20471    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20472test 0 -eq $? || _lt_function_replace_fail=:
20473
20474fi
20475
20476if test x"$lt_shell_append" = xyes; then
20477  sed -e '/^func_append ()$/,/^} # func_append /c\
20478func_append ()\
20479{\
20480    eval "${1}+=\\${2}"\
20481} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20482  && mv -f "$cfgfile.tmp" "$cfgfile" \
20483    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20484test 0 -eq $? || _lt_function_replace_fail=:
20485
20486
20487  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20488func_append_quoted ()\
20489{\
20490\    func_quote_for_eval "${2}"\
20491\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20492} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20493  && mv -f "$cfgfile.tmp" "$cfgfile" \
20494    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20495test 0 -eq $? || _lt_function_replace_fail=:
20496
20497
20498  # Save a `func_append' function call where possible by direct use of '+='
20499  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20500    && mv -f "$cfgfile.tmp" "$cfgfile" \
20501      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20502  test 0 -eq $? || _lt_function_replace_fail=:
20503else
20504  # Save a `func_append' function call even when '+=' is not available
20505  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20506    && mv -f "$cfgfile.tmp" "$cfgfile" \
20507      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20508  test 0 -eq $? || _lt_function_replace_fail=:
20509fi
20510
20511if test x"$_lt_function_replace_fail" = x":"; then
20512  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20513$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20514fi
20515
20516
20517   mv -f "$cfgfile" "$ofile" ||
20518    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20519  chmod +x "$ofile"
20520
20521 ;;
20522
20523  esac
20524done # for ac_tag
20525
20526
20527as_fn_exit 0
20528_ACEOF
20529ac_clean_files=$ac_clean_files_save
20530
20531test $ac_write_fail = 0 ||
20532  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20533
20534
20535# configure is writing to config.log, and then calls config.status.
20536# config.status does its own redirection, appending to config.log.
20537# Unfortunately, on DOS this fails, as config.log is still kept open
20538# by configure, so config.status won't be able to write to it; its
20539# output is simply discarded.  So we exec the FD to /dev/null,
20540# effectively closing config.log, so it can be properly (re)opened and
20541# appended to by config.status.  When coming back to configure, we
20542# need to make the FD available again.
20543if test "$no_create" != yes; then
20544  ac_cs_success=:
20545  ac_config_status_args=
20546  test "$silent" = yes &&
20547    ac_config_status_args="$ac_config_status_args --quiet"
20548  exec 5>/dev/null
20549  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20550  exec 5>>config.log
20551  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20552  # would make configure fail if this is the last instruction.
20553  $ac_cs_success || as_fn_exit 1
20554fi
20555if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20556  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20557$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20558fi
20559
20560