1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xf86-video-intel 2.99.917.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='xf86-video-intel'
593PACKAGE_TARNAME='xf86-video-intel'
594PACKAGE_VERSION='2.99.917'
595PACKAGE_STRING='xf86-video-intel 2.99.917'
596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597PACKAGE_URL=''
598
599ac_unique_file="Makefile.am"
600# Factoring default headers for most tests.
601ac_includes_default="\
602#include <stdio.h>
603#ifdef HAVE_SYS_TYPES_H
604# include <sys/types.h>
605#endif
606#ifdef HAVE_SYS_STAT_H
607# include <sys/stat.h>
608#endif
609#ifdef STDC_HEADERS
610# include <stdlib.h>
611# include <stddef.h>
612#else
613# ifdef HAVE_STDLIB_H
614#  include <stdlib.h>
615# endif
616#endif
617#ifdef HAVE_STRING_H
618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619#  include <memory.h>
620# endif
621# include <string.h>
622#endif
623#ifdef HAVE_STRINGS_H
624# include <strings.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_UNISTD_H
633# include <unistd.h>
634#endif"
635
636ac_config_libobj_dir=libobj
637ac_subst_vars='am__EXEEXT_FALSE
638am__EXEEXT_TRUE
639LTLIBOBJS
640LIBEXEC_PATH
641PREFIX_PATH
642moduledir
643DRIVER_NAME
644LIBOBJS
645VALGRIND_FALSE
646VALGRIND_TRUE
647VALGRIND_LIBS
648VALGRIND_CFLAGS
649FULL_DEBUG_FALSE
650FULL_DEBUG_TRUE
651DEBUG_FALSE
652DEBUG_TRUE
653CLOCK_GETTIME_LIBS
654USE_ASYNC_SWAP_FALSE
655USE_ASYNC_SWAP_TRUE
656USE_CREATE2_FALSE
657USE_CREATE2_TRUE
658XVMC_FALSE
659XVMC_TRUE
660XVMCLIB_LIBS
661XVMCLIB_CFLAGS
662SNA_FALSE
663SNA_TRUE
664UXA_FALSE
665UXA_TRUE
666PRESENT_FALSE
667PRESENT_TRUE
668PRESENT_LIBS
669PRESENT_CFLAGS
670DRI3_FALSE
671DRI3_TRUE
672DRI2_FALSE
673DRI2_TRUE
674DRI3_LIBS
675DRI3_CFLAGS
676DRI_DRIVER_PATH
677DRI2_LIBS
678DRI2_CFLAGS
679DRI1_FALSE
680DRI1_TRUE
681DRI1_LIBS
682DRI1_CFLAGS
683UMS_FALSE
684UMS_TRUE
685KMS_FALSE
686KMS_TRUE
687XAA_FALSE
688XAA_TRUE
689DGA_FALSE
690DGA_TRUE
691XORG_LIBS
692XORG_CFLAGS
693DRMINTEL_LIBS
694DRMINTEL_CFLAGS
695ALLOCA
696PCIACCESS_LIBS
697PCIACCESS_CFLAGS
698DRM_LIBS
699DRM_CFLAGS
700BUILD_TOOL_CURSOR_FALSE
701BUILD_TOOL_CURSOR_TRUE
702BUILD_TOOLS_FALSE
703BUILD_TOOLS_TRUE
704TOOL_CURSOR_LIBS
705TOOL_CURSOR_CFLAGS
706IVO_LIBS
707IVO_CFLAGS
708IVO_EXTRA_LIBS
709IVO_EXTRA_CFLAGS
710X11_VM_FALSE
711X11_VM_TRUE
712X11_VM_LIBS
713X11_VM_CFLAGS
714X11_SHM_FALSE
715X11_SHM_TRUE
716X11_DRI3_FALSE
717X11_DRI3_TRUE
718X11_DRI3_LIBS
719X11_DRI3_CFLAGS
720HAVE_X11_FALSE
721HAVE_X11_TRUE
722X11_LIBS
723X11_CFLAGS
724UDEV_LIBS
725UDEV_CFLAGS
726HAVE_GEN4ASM_FALSE
727HAVE_GEN4ASM_TRUE
728INTEL_GEN4ASM
729GEN4ASM_LIBS
730GEN4ASM_CFLAGS
731HAVE_DOT_GIT_FALSE
732HAVE_DOT_GIT_TRUE
733BUILD_BACKLIGHT_HELPER_FALSE
734BUILD_BACKLIGHT_HELPER_TRUE
735LT_SYS_LIBRARY_PATH
736OTOOL64
737OTOOL
738LIPO
739NMEDIT
740DSYMUTIL
741MANIFEST_TOOL
742RANLIB
743ac_ct_AR
744AR
745DLLTOOL
746OBJDUMP
747LN_S
748NM
749ac_ct_DUMPBIN
750DUMPBIN
751LD
752FGREP
753LIBTOOL
754NOWARNFLAGS
755MAN_SUBSTS
756XORG_MAN_PAGE
757ADMIN_MAN_DIR
758DRIVER_MAN_DIR
759MISC_MAN_DIR
760FILE_MAN_DIR
761LIB_MAN_DIR
762APP_MAN_DIR
763ADMIN_MAN_SUFFIX
764DRIVER_MAN_SUFFIX
765MISC_MAN_SUFFIX
766FILE_MAN_SUFFIX
767LIB_MAN_SUFFIX
768APP_MAN_SUFFIX
769SED
770host_os
771host_vendor
772host_cpu
773host
774build_os
775build_vendor
776build_cpu
777build
778INSTALL_CMD
779PKG_CONFIG_LIBDIR
780PKG_CONFIG_PATH
781PKG_CONFIG
782CHANGELOG_CMD
783STRICT_CFLAGS
784CWARNFLAGS
785BASE_CFLAGS
786EGREP
787GREP
788CPP
789am__fastdepCC_FALSE
790am__fastdepCC_TRUE
791CCDEPMODE
792am__nodep
793AMDEPBACKSLASH
794AMDEP_FALSE
795AMDEP_TRUE
796am__include
797DEPDIR
798OBJEXT
799EXEEXT
800ac_ct_CC
801CPPFLAGS
802LDFLAGS
803CFLAGS
804CC
805AM_BACKSLASH
806AM_DEFAULT_VERBOSITY
807AM_DEFAULT_V
808AM_V
809am__untar
810am__tar
811AMTAR
812am__leading_dot
813SET_MAKE
814AWK
815mkdir_p
816MKDIR_P
817INSTALL_STRIP_PROGRAM
818STRIP
819install_sh
820MAKEINFO
821AUTOHEADER
822AUTOMAKE
823AUTOCONF
824ACLOCAL
825VERSION
826PACKAGE
827CYGPATH_W
828am__isrc
829INSTALL_DATA
830INSTALL_SCRIPT
831INSTALL_PROGRAM
832target_alias
833host_alias
834build_alias
835LIBS
836ECHO_T
837ECHO_N
838ECHO_C
839DEFS
840mandir
841localedir
842libdir
843psdir
844pdfdir
845dvidir
846htmldir
847infodir
848docdir
849oldincludedir
850includedir
851localstatedir
852sharedstatedir
853sysconfdir
854datadir
855datarootdir
856libexecdir
857sbindir
858bindir
859program_transform_name
860prefix
861exec_prefix
862PACKAGE_URL
863PACKAGE_BUGREPORT
864PACKAGE_STRING
865PACKAGE_VERSION
866PACKAGE_TARNAME
867PACKAGE_NAME
868PATH_SEPARATOR
869SHELL
870am__quote'
871ac_subst_files=''
872ac_user_opts='
873enable_option_checking
874enable_silent_rules
875enable_dependency_tracking
876enable_selective_werror
877enable_strict_compilation
878enable_static
879enable_shared
880with_pic
881enable_fast_install
882with_aix_soname
883with_gnu_ld
884with_sysroot
885enable_libtool_lock
886enable_largefile
887enable_backlight
888enable_backlight_helper
889with_builderstring
890enable_gen4asm
891with_gen4asm
892enable_udev
893enable_tools
894with_xorg_module_dir
895enable_dri
896enable_dri1
897enable_dri2
898enable_dri3
899with_default_dri
900enable_xvmc
901enable_kms
902enable_ums
903enable_kms_only
904enable_ums_only
905enable_sna
906enable_uxa
907enable_xaa
908enable_dga
909with_default_accel
910enable_tear_free
911enable_create2
912enable_async_swap
913enable_debug
914enable_valgrind
915'
916      ac_precious_vars='build_alias
917host_alias
918target_alias
919CC
920CFLAGS
921LDFLAGS
922LIBS
923CPPFLAGS
924CPP
925PKG_CONFIG
926PKG_CONFIG_PATH
927PKG_CONFIG_LIBDIR
928LT_SYS_LIBRARY_PATH
929GEN4ASM_CFLAGS
930GEN4ASM_LIBS
931UDEV_CFLAGS
932UDEV_LIBS
933X11_CFLAGS
934X11_LIBS
935X11_DRI3_CFLAGS
936X11_DRI3_LIBS
937X11_VM_CFLAGS
938X11_VM_LIBS
939IVO_EXTRA_CFLAGS
940IVO_EXTRA_LIBS
941IVO_CFLAGS
942IVO_LIBS
943TOOL_CURSOR_CFLAGS
944TOOL_CURSOR_LIBS
945DRM_CFLAGS
946DRM_LIBS
947PCIACCESS_CFLAGS
948PCIACCESS_LIBS
949DRMINTEL_CFLAGS
950DRMINTEL_LIBS
951XORG_CFLAGS
952XORG_LIBS
953DRI1_CFLAGS
954DRI1_LIBS
955DRI2_CFLAGS
956DRI2_LIBS
957DRI3_CFLAGS
958DRI3_LIBS
959PRESENT_CFLAGS
960PRESENT_LIBS
961XVMCLIB_CFLAGS
962XVMCLIB_LIBS
963VALGRIND_CFLAGS
964VALGRIND_LIBS'
965
966
967# Initialize some variables set by options.
968ac_init_help=
969ac_init_version=false
970ac_unrecognized_opts=
971ac_unrecognized_sep=
972# The variables have the same names as the options, with
973# dashes changed to underlines.
974cache_file=/dev/null
975exec_prefix=NONE
976no_create=
977no_recursion=
978prefix=NONE
979program_prefix=NONE
980program_suffix=NONE
981program_transform_name=s,x,x,
982silent=
983site=
984srcdir=
985verbose=
986x_includes=NONE
987x_libraries=NONE
988
989# Installation directory options.
990# These are left unexpanded so users can "make install exec_prefix=/foo"
991# and all the variables that are supposed to be based on exec_prefix
992# by default will actually change.
993# Use braces instead of parens because sh, perl, etc. also accept them.
994# (The list follows the same order as the GNU Coding Standards.)
995bindir='${exec_prefix}/bin'
996sbindir='${exec_prefix}/sbin'
997libexecdir='${exec_prefix}/libexec'
998datarootdir='${prefix}/share'
999datadir='${datarootdir}'
1000sysconfdir='${prefix}/etc'
1001sharedstatedir='${prefix}/com'
1002localstatedir='${prefix}/var'
1003includedir='${prefix}/include'
1004oldincludedir='/usr/include'
1005docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1006infodir='${datarootdir}/info'
1007htmldir='${docdir}'
1008dvidir='${docdir}'
1009pdfdir='${docdir}'
1010psdir='${docdir}'
1011libdir='${exec_prefix}/lib'
1012localedir='${datarootdir}/locale'
1013mandir='${datarootdir}/man'
1014
1015ac_prev=
1016ac_dashdash=
1017for ac_option
1018do
1019  # If the previous option needs an argument, assign it.
1020  if test -n "$ac_prev"; then
1021    eval $ac_prev=\$ac_option
1022    ac_prev=
1023    continue
1024  fi
1025
1026  case $ac_option in
1027  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1028  *=)   ac_optarg= ;;
1029  *)    ac_optarg=yes ;;
1030  esac
1031
1032  # Accept the important Cygnus configure options, so we can diagnose typos.
1033
1034  case $ac_dashdash$ac_option in
1035  --)
1036    ac_dashdash=yes ;;
1037
1038  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1039    ac_prev=bindir ;;
1040  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1041    bindir=$ac_optarg ;;
1042
1043  -build | --build | --buil | --bui | --bu)
1044    ac_prev=build_alias ;;
1045  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1046    build_alias=$ac_optarg ;;
1047
1048  -cache-file | --cache-file | --cache-fil | --cache-fi \
1049  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1050    ac_prev=cache_file ;;
1051  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1052  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1053    cache_file=$ac_optarg ;;
1054
1055  --config-cache | -C)
1056    cache_file=config.cache ;;
1057
1058  -datadir | --datadir | --datadi | --datad)
1059    ac_prev=datadir ;;
1060  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1061    datadir=$ac_optarg ;;
1062
1063  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1064  | --dataroo | --dataro | --datar)
1065    ac_prev=datarootdir ;;
1066  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1067  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1068    datarootdir=$ac_optarg ;;
1069
1070  -disable-* | --disable-*)
1071    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1072    # Reject names that are not valid shell variable names.
1073    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074      as_fn_error $? "invalid feature name: $ac_useropt"
1075    ac_useropt_orig=$ac_useropt
1076    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077    case $ac_user_opts in
1078      *"
1079"enable_$ac_useropt"
1080"*) ;;
1081      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1082	 ac_unrecognized_sep=', ';;
1083    esac
1084    eval enable_$ac_useropt=no ;;
1085
1086  -docdir | --docdir | --docdi | --doc | --do)
1087    ac_prev=docdir ;;
1088  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1089    docdir=$ac_optarg ;;
1090
1091  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1092    ac_prev=dvidir ;;
1093  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1094    dvidir=$ac_optarg ;;
1095
1096  -enable-* | --enable-*)
1097    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1098    # Reject names that are not valid shell variable names.
1099    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100      as_fn_error $? "invalid feature name: $ac_useropt"
1101    ac_useropt_orig=$ac_useropt
1102    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103    case $ac_user_opts in
1104      *"
1105"enable_$ac_useropt"
1106"*) ;;
1107      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1108	 ac_unrecognized_sep=', ';;
1109    esac
1110    eval enable_$ac_useropt=\$ac_optarg ;;
1111
1112  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1113  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1114  | --exec | --exe | --ex)
1115    ac_prev=exec_prefix ;;
1116  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1117  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1118  | --exec=* | --exe=* | --ex=*)
1119    exec_prefix=$ac_optarg ;;
1120
1121  -gas | --gas | --ga | --g)
1122    # Obsolete; use --with-gas.
1123    with_gas=yes ;;
1124
1125  -help | --help | --hel | --he | -h)
1126    ac_init_help=long ;;
1127  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1128    ac_init_help=recursive ;;
1129  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1130    ac_init_help=short ;;
1131
1132  -host | --host | --hos | --ho)
1133    ac_prev=host_alias ;;
1134  -host=* | --host=* | --hos=* | --ho=*)
1135    host_alias=$ac_optarg ;;
1136
1137  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1138    ac_prev=htmldir ;;
1139  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1140  | --ht=*)
1141    htmldir=$ac_optarg ;;
1142
1143  -includedir | --includedir | --includedi | --included | --include \
1144  | --includ | --inclu | --incl | --inc)
1145    ac_prev=includedir ;;
1146  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1147  | --includ=* | --inclu=* | --incl=* | --inc=*)
1148    includedir=$ac_optarg ;;
1149
1150  -infodir | --infodir | --infodi | --infod | --info | --inf)
1151    ac_prev=infodir ;;
1152  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1153    infodir=$ac_optarg ;;
1154
1155  -libdir | --libdir | --libdi | --libd)
1156    ac_prev=libdir ;;
1157  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1158    libdir=$ac_optarg ;;
1159
1160  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1161  | --libexe | --libex | --libe)
1162    ac_prev=libexecdir ;;
1163  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1164  | --libexe=* | --libex=* | --libe=*)
1165    libexecdir=$ac_optarg ;;
1166
1167  -localedir | --localedir | --localedi | --localed | --locale)
1168    ac_prev=localedir ;;
1169  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1170    localedir=$ac_optarg ;;
1171
1172  -localstatedir | --localstatedir | --localstatedi | --localstated \
1173  | --localstate | --localstat | --localsta | --localst | --locals)
1174    ac_prev=localstatedir ;;
1175  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1176  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1177    localstatedir=$ac_optarg ;;
1178
1179  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1180    ac_prev=mandir ;;
1181  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1182    mandir=$ac_optarg ;;
1183
1184  -nfp | --nfp | --nf)
1185    # Obsolete; use --without-fp.
1186    with_fp=no ;;
1187
1188  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1189  | --no-cr | --no-c | -n)
1190    no_create=yes ;;
1191
1192  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1193  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1194    no_recursion=yes ;;
1195
1196  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1197  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1198  | --oldin | --oldi | --old | --ol | --o)
1199    ac_prev=oldincludedir ;;
1200  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1201  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1202  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1203    oldincludedir=$ac_optarg ;;
1204
1205  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1206    ac_prev=prefix ;;
1207  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1208    prefix=$ac_optarg ;;
1209
1210  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1211  | --program-pre | --program-pr | --program-p)
1212    ac_prev=program_prefix ;;
1213  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1214  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1215    program_prefix=$ac_optarg ;;
1216
1217  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1218  | --program-suf | --program-su | --program-s)
1219    ac_prev=program_suffix ;;
1220  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1221  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1222    program_suffix=$ac_optarg ;;
1223
1224  -program-transform-name | --program-transform-name \
1225  | --program-transform-nam | --program-transform-na \
1226  | --program-transform-n | --program-transform- \
1227  | --program-transform | --program-transfor \
1228  | --program-transfo | --program-transf \
1229  | --program-trans | --program-tran \
1230  | --progr-tra | --program-tr | --program-t)
1231    ac_prev=program_transform_name ;;
1232  -program-transform-name=* | --program-transform-name=* \
1233  | --program-transform-nam=* | --program-transform-na=* \
1234  | --program-transform-n=* | --program-transform-=* \
1235  | --program-transform=* | --program-transfor=* \
1236  | --program-transfo=* | --program-transf=* \
1237  | --program-trans=* | --program-tran=* \
1238  | --progr-tra=* | --program-tr=* | --program-t=*)
1239    program_transform_name=$ac_optarg ;;
1240
1241  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1242    ac_prev=pdfdir ;;
1243  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1244    pdfdir=$ac_optarg ;;
1245
1246  -psdir | --psdir | --psdi | --psd | --ps)
1247    ac_prev=psdir ;;
1248  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1249    psdir=$ac_optarg ;;
1250
1251  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1252  | -silent | --silent | --silen | --sile | --sil)
1253    silent=yes ;;
1254
1255  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1256    ac_prev=sbindir ;;
1257  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1258  | --sbi=* | --sb=*)
1259    sbindir=$ac_optarg ;;
1260
1261  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1262  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1263  | --sharedst | --shareds | --shared | --share | --shar \
1264  | --sha | --sh)
1265    ac_prev=sharedstatedir ;;
1266  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1267  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1268  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1269  | --sha=* | --sh=*)
1270    sharedstatedir=$ac_optarg ;;
1271
1272  -site | --site | --sit)
1273    ac_prev=site ;;
1274  -site=* | --site=* | --sit=*)
1275    site=$ac_optarg ;;
1276
1277  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1278    ac_prev=srcdir ;;
1279  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1280    srcdir=$ac_optarg ;;
1281
1282  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1283  | --syscon | --sysco | --sysc | --sys | --sy)
1284    ac_prev=sysconfdir ;;
1285  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1286  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1287    sysconfdir=$ac_optarg ;;
1288
1289  -target | --target | --targe | --targ | --tar | --ta | --t)
1290    ac_prev=target_alias ;;
1291  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1292    target_alias=$ac_optarg ;;
1293
1294  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1295    verbose=yes ;;
1296
1297  -version | --version | --versio | --versi | --vers | -V)
1298    ac_init_version=: ;;
1299
1300  -with-* | --with-*)
1301    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1302    # Reject names that are not valid shell variable names.
1303    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1304      as_fn_error $? "invalid package name: $ac_useropt"
1305    ac_useropt_orig=$ac_useropt
1306    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307    case $ac_user_opts in
1308      *"
1309"with_$ac_useropt"
1310"*) ;;
1311      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1312	 ac_unrecognized_sep=', ';;
1313    esac
1314    eval with_$ac_useropt=\$ac_optarg ;;
1315
1316  -without-* | --without-*)
1317    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1318    # Reject names that are not valid shell variable names.
1319    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1320      as_fn_error $? "invalid package name: $ac_useropt"
1321    ac_useropt_orig=$ac_useropt
1322    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1323    case $ac_user_opts in
1324      *"
1325"with_$ac_useropt"
1326"*) ;;
1327      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1328	 ac_unrecognized_sep=', ';;
1329    esac
1330    eval with_$ac_useropt=no ;;
1331
1332  --x)
1333    # Obsolete; use --with-x.
1334    with_x=yes ;;
1335
1336  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1337  | --x-incl | --x-inc | --x-in | --x-i)
1338    ac_prev=x_includes ;;
1339  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1340  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1341    x_includes=$ac_optarg ;;
1342
1343  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1344  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1345    ac_prev=x_libraries ;;
1346  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1347  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1348    x_libraries=$ac_optarg ;;
1349
1350  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1351Try \`$0 --help' for more information"
1352    ;;
1353
1354  *=*)
1355    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1356    # Reject names that are not valid shell variable names.
1357    case $ac_envvar in #(
1358      '' | [0-9]* | *[!_$as_cr_alnum]* )
1359      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1360    esac
1361    eval $ac_envvar=\$ac_optarg
1362    export $ac_envvar ;;
1363
1364  *)
1365    # FIXME: should be removed in autoconf 3.0.
1366    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1367    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1368      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1369    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1370    ;;
1371
1372  esac
1373done
1374
1375if test -n "$ac_prev"; then
1376  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1377  as_fn_error $? "missing argument to $ac_option"
1378fi
1379
1380if test -n "$ac_unrecognized_opts"; then
1381  case $enable_option_checking in
1382    no) ;;
1383    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1384    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1385  esac
1386fi
1387
1388# Check all directory arguments for consistency.
1389for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1390		datadir sysconfdir sharedstatedir localstatedir includedir \
1391		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1392		libdir localedir mandir
1393do
1394  eval ac_val=\$$ac_var
1395  # Remove trailing slashes.
1396  case $ac_val in
1397    */ )
1398      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1399      eval $ac_var=\$ac_val;;
1400  esac
1401  # Be sure to have absolute directory names.
1402  case $ac_val in
1403    [\\/$]* | ?:[\\/]* )  continue;;
1404    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1405  esac
1406  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1407done
1408
1409# There might be people who depend on the old broken behavior: `$host'
1410# used to hold the argument of --host etc.
1411# FIXME: To remove some day.
1412build=$build_alias
1413host=$host_alias
1414target=$target_alias
1415
1416# FIXME: To remove some day.
1417if test "x$host_alias" != x; then
1418  if test "x$build_alias" = x; then
1419    cross_compiling=maybe
1420  elif test "x$build_alias" != "x$host_alias"; then
1421    cross_compiling=yes
1422  fi
1423fi
1424
1425ac_tool_prefix=
1426test -n "$host_alias" && ac_tool_prefix=$host_alias-
1427
1428test "$silent" = yes && exec 6>/dev/null
1429
1430
1431ac_pwd=`pwd` && test -n "$ac_pwd" &&
1432ac_ls_di=`ls -di .` &&
1433ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1434  as_fn_error $? "working directory cannot be determined"
1435test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1436  as_fn_error $? "pwd does not report name of working directory"
1437
1438
1439# Find the source files, if location was not specified.
1440if test -z "$srcdir"; then
1441  ac_srcdir_defaulted=yes
1442  # Try the directory containing this script, then the parent directory.
1443  ac_confdir=`$as_dirname -- "$as_myself" ||
1444$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1445	 X"$as_myself" : 'X\(//\)[^/]' \| \
1446	 X"$as_myself" : 'X\(//\)$' \| \
1447	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1448$as_echo X"$as_myself" |
1449    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1450	    s//\1/
1451	    q
1452	  }
1453	  /^X\(\/\/\)[^/].*/{
1454	    s//\1/
1455	    q
1456	  }
1457	  /^X\(\/\/\)$/{
1458	    s//\1/
1459	    q
1460	  }
1461	  /^X\(\/\).*/{
1462	    s//\1/
1463	    q
1464	  }
1465	  s/.*/./; q'`
1466  srcdir=$ac_confdir
1467  if test ! -r "$srcdir/$ac_unique_file"; then
1468    srcdir=..
1469  fi
1470else
1471  ac_srcdir_defaulted=no
1472fi
1473if test ! -r "$srcdir/$ac_unique_file"; then
1474  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1475  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1476fi
1477ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1478ac_abs_confdir=`(
1479	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1480	pwd)`
1481# When building in place, set srcdir=.
1482if test "$ac_abs_confdir" = "$ac_pwd"; then
1483  srcdir=.
1484fi
1485# Remove unnecessary trailing slashes from srcdir.
1486# Double slashes in file names in object file debugging info
1487# mess up M-x gdb in Emacs.
1488case $srcdir in
1489*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1490esac
1491for ac_var in $ac_precious_vars; do
1492  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1493  eval ac_env_${ac_var}_value=\$${ac_var}
1494  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1495  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1496done
1497
1498#
1499# Report the --help message.
1500#
1501if test "$ac_init_help" = "long"; then
1502  # Omit some internal or obsolete options to make the list less imposing.
1503  # This message is too long to be a string in the A/UX 3.1 sh.
1504  cat <<_ACEOF
1505\`configure' configures xf86-video-intel 2.99.917 to adapt to many kinds of systems.
1506
1507Usage: $0 [OPTION]... [VAR=VALUE]...
1508
1509To assign environment variables (e.g., CC, CFLAGS...), specify them as
1510VAR=VALUE.  See below for descriptions of some of the useful variables.
1511
1512Defaults for the options are specified in brackets.
1513
1514Configuration:
1515  -h, --help              display this help and exit
1516      --help=short        display options specific to this package
1517      --help=recursive    display the short help of all the included packages
1518  -V, --version           display version information and exit
1519  -q, --quiet, --silent   do not print \`checking ...' messages
1520      --cache-file=FILE   cache test results in FILE [disabled]
1521  -C, --config-cache      alias for \`--cache-file=config.cache'
1522  -n, --no-create         do not create output files
1523      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1524
1525Installation directories:
1526  --prefix=PREFIX         install architecture-independent files in PREFIX
1527                          [$ac_default_prefix]
1528  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1529                          [PREFIX]
1530
1531By default, \`make install' will install all the files in
1532\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1533an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1534for instance \`--prefix=\$HOME'.
1535
1536For better control, use the options below.
1537
1538Fine tuning of the installation directories:
1539  --bindir=DIR            user executables [EPREFIX/bin]
1540  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1541  --libexecdir=DIR        program executables [EPREFIX/libexec]
1542  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1543  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1544  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1545  --libdir=DIR            object code libraries [EPREFIX/lib]
1546  --includedir=DIR        C header files [PREFIX/include]
1547  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1548  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1549  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1550  --infodir=DIR           info documentation [DATAROOTDIR/info]
1551  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1552  --mandir=DIR            man documentation [DATAROOTDIR/man]
1553  --docdir=DIR            documentation root
1554                          [DATAROOTDIR/doc/xf86-video-intel]
1555  --htmldir=DIR           html documentation [DOCDIR]
1556  --dvidir=DIR            dvi documentation [DOCDIR]
1557  --pdfdir=DIR            pdf documentation [DOCDIR]
1558  --psdir=DIR             ps documentation [DOCDIR]
1559_ACEOF
1560
1561  cat <<\_ACEOF
1562
1563Program names:
1564  --program-prefix=PREFIX            prepend PREFIX to installed program names
1565  --program-suffix=SUFFIX            append SUFFIX to installed program names
1566  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1567
1568System types:
1569  --build=BUILD     configure for building on BUILD [guessed]
1570  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1571_ACEOF
1572fi
1573
1574if test -n "$ac_init_help"; then
1575  case $ac_init_help in
1576     short | recursive ) echo "Configuration of xf86-video-intel 2.99.917:";;
1577   esac
1578  cat <<\_ACEOF
1579
1580Optional Features:
1581  --disable-option-checking  ignore unrecognized --enable/--with options
1582  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1583  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1584  --enable-silent-rules   less verbose build output (undo: "make V=1")
1585  --disable-silent-rules  verbose build output (undo: "make V=0")
1586  --enable-dependency-tracking
1587                          do not reject slow dependency extractors
1588  --disable-dependency-tracking
1589                          speeds up one-time build
1590  --disable-selective-werror
1591                          Turn off selective compiler errors. (default:
1592                          enabled)
1593  --enable-strict-compilation
1594                          Enable all warnings from compiler and make them
1595                          errors (default: disabled)
1596  --enable-static[=PKGS]  build static libraries [default=no]
1597  --enable-shared[=PKGS]  build shared libraries [default=yes]
1598  --enable-fast-install[=PKGS]
1599                          optimize for fast installation [default=yes]
1600  --disable-libtool-lock  avoid locking (might break parallel builds)
1601  --disable-largefile     omit support for large files
1602  --disable-backlight     Enable control over the backlight [default=yes]
1603  --disable-backlight-helper
1604                          Enable building the backlight helper executable for
1605                          running X under a normal user [default=auto]
1606  --enable-gen4asm        Enable rebuilding the gen4 assembly files
1607                          [default=no]
1608  --disable-udev          Disable udev-based monitor hotplug detection
1609                          [default=auto]
1610  --disable-tools         Enable building and installing the miscellaneous
1611                          tools [default=auto]
1612  --disable-dri           Disable DRI support [[default=auto]]
1613  --disable-dri1          Disable DRI1 support [[default=auto]]
1614  --disable-dri2          Disable DRI2 support [[default=yes]]
1615  --disable-dri3          Disable DRI3 support [[default=yes]]
1616  --disable-xvmc          Disable XvMC support [[default=yes]]
1617  --enable-kms            Assume KMS support [[default=yes]]
1618  --enable-ums            Assume UMS support [[default=auto]]
1619  --enable-kms-only       Only assume KMS support (no UMS) [[default=no]]
1620  --enable-ums-only       Only assume UMS support (no KMS) [[default=no]]
1621  --enable-sna            Enable SandyBridge\'s New Acceleration (SNA)
1622                          [default=auto]
1623  --enable-uxa            Enable Unified Acceleration Architecture (UXA)
1624                          [default=auto]
1625  --enable-xaa            Enable legacy X Acceleration Architecture (XAA) for
1626                          i810 chipsets [default=auto]
1627  --enable-dga            Enable legacy Direct Graphics Access (DGA) for i810
1628                          chipsets [default=auto]
1629  --enable-tear-free      Enable use of TearFree by default [default=no]
1630  --enable-create2        Enable use of create2 ioctl (experimental)
1631                          [default=no]
1632  --enable-async-swap     Enable use of asynchronous swaps (experimental)
1633                          [default=no]
1634  --enable-debug          Enables internal debugging [default=no]
1635  --enable-valgrind       Enables valgrindified ioctls for debugging
1636                          [default=no]
1637
1638Optional Packages:
1639  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1640  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1641  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1642                          both]
1643  --with-aix-soname=aix|svr4|both
1644                          shared library versioning (aka "SONAME") variant to
1645                          provide on AIX, [default=aix].
1646  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1647  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1648                          compiler's sysroot if not specified).
1649  --with-builderstring=BUILDERSTRING
1650                          Additional builder string (default: use git
1651                          describe)
1652  --with-gen4asm=PATH     Path to intel-gen4asm binary
1653  --with-xorg-module-dir=DIR
1654                          Default xorg module directory
1655                          [[default=$libdir/xorg/modules]]
1656  --with-default-dri      Select the default maximum DRI level [default 2]
1657  --with-default-accel    Select the default acceleration method out of none,
1658                          sna, or uxa [default is sna if enabled, otherwise
1659                          uxa]
1660
1661Some influential environment variables:
1662  CC          C compiler command
1663  CFLAGS      C compiler flags
1664  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1665              nonstandard directory <lib dir>
1666  LIBS        libraries to pass to the linker, e.g. -l<library>
1667  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1668              you have headers in a nonstandard directory <include dir>
1669  CPP         C preprocessor
1670  PKG_CONFIG  path to pkg-config utility
1671  PKG_CONFIG_PATH
1672              directories to add to pkg-config's search path
1673  PKG_CONFIG_LIBDIR
1674              path overriding pkg-config's built-in search path
1675  LT_SYS_LIBRARY_PATH
1676              User-defined run-time library search path.
1677  GEN4ASM_CFLAGS
1678              C compiler flags for GEN4ASM, overriding pkg-config
1679  GEN4ASM_LIBS
1680              linker flags for GEN4ASM, overriding pkg-config
1681  UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1682  UDEV_LIBS   linker flags for UDEV, overriding pkg-config
1683  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1684  X11_LIBS    linker flags for X11, overriding pkg-config
1685  X11_DRI3_CFLAGS
1686              C compiler flags for X11_DRI3, overriding pkg-config
1687  X11_DRI3_LIBS
1688              linker flags for X11_DRI3, overriding pkg-config
1689  X11_VM_CFLAGS
1690              C compiler flags for X11_VM, overriding pkg-config
1691  X11_VM_LIBS linker flags for X11_VM, overriding pkg-config
1692  IVO_EXTRA_CFLAGS
1693              C compiler flags for IVO_EXTRA, overriding pkg-config
1694  IVO_EXTRA_LIBS
1695              linker flags for IVO_EXTRA, overriding pkg-config
1696  IVO_CFLAGS  C compiler flags for IVO, overriding pkg-config
1697  IVO_LIBS    linker flags for IVO, overriding pkg-config
1698  TOOL_CURSOR_CFLAGS
1699              C compiler flags for TOOL_CURSOR, overriding pkg-config
1700  TOOL_CURSOR_LIBS
1701              linker flags for TOOL_CURSOR, overriding pkg-config
1702  DRM_CFLAGS  C compiler flags for DRM, overriding pkg-config
1703  DRM_LIBS    linker flags for DRM, overriding pkg-config
1704  PCIACCESS_CFLAGS
1705              C compiler flags for PCIACCESS, overriding pkg-config
1706  PCIACCESS_LIBS
1707              linker flags for PCIACCESS, overriding pkg-config
1708  DRMINTEL_CFLAGS
1709              C compiler flags for DRMINTEL, overriding pkg-config
1710  DRMINTEL_LIBS
1711              linker flags for DRMINTEL, overriding pkg-config
1712  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1713  XORG_LIBS   linker flags for XORG, overriding pkg-config
1714  DRI1_CFLAGS C compiler flags for DRI1, overriding pkg-config
1715  DRI1_LIBS   linker flags for DRI1, overriding pkg-config
1716  DRI2_CFLAGS C compiler flags for DRI2, overriding pkg-config
1717  DRI2_LIBS   linker flags for DRI2, overriding pkg-config
1718  DRI3_CFLAGS C compiler flags for DRI3, overriding pkg-config
1719  DRI3_LIBS   linker flags for DRI3, overriding pkg-config
1720  PRESENT_CFLAGS
1721              C compiler flags for PRESENT, overriding pkg-config
1722  PRESENT_LIBS
1723              linker flags for PRESENT, overriding pkg-config
1724  XVMCLIB_CFLAGS
1725              C compiler flags for XVMCLIB, overriding pkg-config
1726  XVMCLIB_LIBS
1727              linker flags for XVMCLIB, overriding pkg-config
1728  VALGRIND_CFLAGS
1729              C compiler flags for VALGRIND, overriding pkg-config
1730  VALGRIND_LIBS
1731              linker flags for VALGRIND, overriding pkg-config
1732
1733Use these variables to override the choices made by `configure' or to help
1734it to find libraries and programs with nonstandard names/locations.
1735
1736Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1737_ACEOF
1738ac_status=$?
1739fi
1740
1741if test "$ac_init_help" = "recursive"; then
1742  # If there are subdirs, report their specific --help.
1743  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1744    test -d "$ac_dir" ||
1745      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1746      continue
1747    ac_builddir=.
1748
1749case "$ac_dir" in
1750.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1751*)
1752  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1753  # A ".." for each directory in $ac_dir_suffix.
1754  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1755  case $ac_top_builddir_sub in
1756  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1757  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1758  esac ;;
1759esac
1760ac_abs_top_builddir=$ac_pwd
1761ac_abs_builddir=$ac_pwd$ac_dir_suffix
1762# for backward compatibility:
1763ac_top_builddir=$ac_top_build_prefix
1764
1765case $srcdir in
1766  .)  # We are building in place.
1767    ac_srcdir=.
1768    ac_top_srcdir=$ac_top_builddir_sub
1769    ac_abs_top_srcdir=$ac_pwd ;;
1770  [\\/]* | ?:[\\/]* )  # Absolute name.
1771    ac_srcdir=$srcdir$ac_dir_suffix;
1772    ac_top_srcdir=$srcdir
1773    ac_abs_top_srcdir=$srcdir ;;
1774  *) # Relative name.
1775    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1776    ac_top_srcdir=$ac_top_build_prefix$srcdir
1777    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1778esac
1779ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1780
1781    cd "$ac_dir" || { ac_status=$?; continue; }
1782    # Check for guested configure.
1783    if test -f "$ac_srcdir/configure.gnu"; then
1784      echo &&
1785      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1786    elif test -f "$ac_srcdir/configure"; then
1787      echo &&
1788      $SHELL "$ac_srcdir/configure" --help=recursive
1789    else
1790      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1791    fi || ac_status=$?
1792    cd "$ac_pwd" || { ac_status=$?; break; }
1793  done
1794fi
1795
1796test -n "$ac_init_help" && exit $ac_status
1797if $ac_init_version; then
1798  cat <<\_ACEOF
1799xf86-video-intel configure 2.99.917
1800generated by GNU Autoconf 2.69
1801
1802Copyright (C) 2012 Free Software Foundation, Inc.
1803This configure script is free software; the Free Software Foundation
1804gives unlimited permission to copy, distribute and modify it.
1805_ACEOF
1806  exit
1807fi
1808
1809## ------------------------ ##
1810## Autoconf initialization. ##
1811## ------------------------ ##
1812
1813# ac_fn_c_try_compile LINENO
1814# --------------------------
1815# Try to compile conftest.$ac_ext, and return whether this succeeded.
1816ac_fn_c_try_compile ()
1817{
1818  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819  rm -f conftest.$ac_objext
1820  if { { ac_try="$ac_compile"
1821case "(($ac_try" in
1822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823  *) ac_try_echo=$ac_try;;
1824esac
1825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826$as_echo "$ac_try_echo"; } >&5
1827  (eval "$ac_compile") 2>conftest.err
1828  ac_status=$?
1829  if test -s conftest.err; then
1830    grep -v '^ *+' conftest.err >conftest.er1
1831    cat conftest.er1 >&5
1832    mv -f conftest.er1 conftest.err
1833  fi
1834  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835  test $ac_status = 0; } && {
1836	 test -z "$ac_c_werror_flag" ||
1837	 test ! -s conftest.err
1838       } && test -s conftest.$ac_objext; then :
1839  ac_retval=0
1840else
1841  $as_echo "$as_me: failed program was:" >&5
1842sed 's/^/| /' conftest.$ac_ext >&5
1843
1844	ac_retval=1
1845fi
1846  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847  as_fn_set_status $ac_retval
1848
1849} # ac_fn_c_try_compile
1850
1851# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1852# ---------------------------------------------
1853# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1854# accordingly.
1855ac_fn_c_check_decl ()
1856{
1857  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858  as_decl_name=`echo $2|sed 's/ *(.*//'`
1859  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1860  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1861$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1862if eval \${$3+:} false; then :
1863  $as_echo_n "(cached) " >&6
1864else
1865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866/* end confdefs.h.  */
1867$4
1868int
1869main ()
1870{
1871#ifndef $as_decl_name
1872#ifdef __cplusplus
1873  (void) $as_decl_use;
1874#else
1875  (void) $as_decl_name;
1876#endif
1877#endif
1878
1879  ;
1880  return 0;
1881}
1882_ACEOF
1883if ac_fn_c_try_compile "$LINENO"; then :
1884  eval "$3=yes"
1885else
1886  eval "$3=no"
1887fi
1888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1889fi
1890eval ac_res=\$$3
1891	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892$as_echo "$ac_res" >&6; }
1893  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894
1895} # ac_fn_c_check_decl
1896
1897# ac_fn_c_try_cpp LINENO
1898# ----------------------
1899# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1900ac_fn_c_try_cpp ()
1901{
1902  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903  if { { ac_try="$ac_cpp conftest.$ac_ext"
1904case "(($ac_try" in
1905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906  *) ac_try_echo=$ac_try;;
1907esac
1908eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909$as_echo "$ac_try_echo"; } >&5
1910  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1911  ac_status=$?
1912  if test -s conftest.err; then
1913    grep -v '^ *+' conftest.err >conftest.er1
1914    cat conftest.er1 >&5
1915    mv -f conftest.er1 conftest.err
1916  fi
1917  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918  test $ac_status = 0; } > conftest.i && {
1919	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1920	 test ! -s conftest.err
1921       }; then :
1922  ac_retval=0
1923else
1924  $as_echo "$as_me: failed program was:" >&5
1925sed 's/^/| /' conftest.$ac_ext >&5
1926
1927    ac_retval=1
1928fi
1929  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930  as_fn_set_status $ac_retval
1931
1932} # ac_fn_c_try_cpp
1933
1934# ac_fn_c_try_run LINENO
1935# ----------------------
1936# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1937# that executables *can* be run.
1938ac_fn_c_try_run ()
1939{
1940  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941  if { { ac_try="$ac_link"
1942case "(($ac_try" in
1943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944  *) ac_try_echo=$ac_try;;
1945esac
1946eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947$as_echo "$ac_try_echo"; } >&5
1948  (eval "$ac_link") 2>&5
1949  ac_status=$?
1950  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1952  { { case "(($ac_try" in
1953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1954  *) ac_try_echo=$ac_try;;
1955esac
1956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1957$as_echo "$ac_try_echo"; } >&5
1958  (eval "$ac_try") 2>&5
1959  ac_status=$?
1960  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961  test $ac_status = 0; }; }; then :
1962  ac_retval=0
1963else
1964  $as_echo "$as_me: program exited with status $ac_status" >&5
1965       $as_echo "$as_me: failed program was:" >&5
1966sed 's/^/| /' conftest.$ac_ext >&5
1967
1968       ac_retval=$ac_status
1969fi
1970  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1971  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972  as_fn_set_status $ac_retval
1973
1974} # ac_fn_c_try_run
1975
1976# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1977# -------------------------------------------------------
1978# Tests whether HEADER exists and can be compiled using the include files in
1979# INCLUDES, setting the cache variable VAR accordingly.
1980ac_fn_c_check_header_compile ()
1981{
1982  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1984$as_echo_n "checking for $2... " >&6; }
1985if eval \${$3+:} false; then :
1986  $as_echo_n "(cached) " >&6
1987else
1988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989/* end confdefs.h.  */
1990$4
1991#include <$2>
1992_ACEOF
1993if ac_fn_c_try_compile "$LINENO"; then :
1994  eval "$3=yes"
1995else
1996  eval "$3=no"
1997fi
1998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999fi
2000eval ac_res=\$$3
2001	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002$as_echo "$ac_res" >&6; }
2003  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004
2005} # ac_fn_c_check_header_compile
2006
2007# ac_fn_c_try_link LINENO
2008# -----------------------
2009# Try to link conftest.$ac_ext, and return whether this succeeded.
2010ac_fn_c_try_link ()
2011{
2012  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013  rm -f conftest.$ac_objext conftest$ac_exeext
2014  if { { ac_try="$ac_link"
2015case "(($ac_try" in
2016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2017  *) ac_try_echo=$ac_try;;
2018esac
2019eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2020$as_echo "$ac_try_echo"; } >&5
2021  (eval "$ac_link") 2>conftest.err
2022  ac_status=$?
2023  if test -s conftest.err; then
2024    grep -v '^ *+' conftest.err >conftest.er1
2025    cat conftest.er1 >&5
2026    mv -f conftest.er1 conftest.err
2027  fi
2028  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2029  test $ac_status = 0; } && {
2030	 test -z "$ac_c_werror_flag" ||
2031	 test ! -s conftest.err
2032       } && test -s conftest$ac_exeext && {
2033	 test "$cross_compiling" = yes ||
2034	 test -x conftest$ac_exeext
2035       }; then :
2036  ac_retval=0
2037else
2038  $as_echo "$as_me: failed program was:" >&5
2039sed 's/^/| /' conftest.$ac_ext >&5
2040
2041	ac_retval=1
2042fi
2043  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2044  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2045  # interfere with the next link command; also delete a directory that is
2046  # left behind by Apple's compiler.  We do this before executing the actions.
2047  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2048  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049  as_fn_set_status $ac_retval
2050
2051} # ac_fn_c_try_link
2052
2053# ac_fn_c_check_func LINENO FUNC VAR
2054# ----------------------------------
2055# Tests whether FUNC exists, setting the cache variable VAR accordingly
2056ac_fn_c_check_func ()
2057{
2058  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2060$as_echo_n "checking for $2... " >&6; }
2061if eval \${$3+:} false; then :
2062  $as_echo_n "(cached) " >&6
2063else
2064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065/* end confdefs.h.  */
2066/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2067   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2068#define $2 innocuous_$2
2069
2070/* System header to define __stub macros and hopefully few prototypes,
2071    which can conflict with char $2 (); below.
2072    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2073    <limits.h> exists even on freestanding compilers.  */
2074
2075#ifdef __STDC__
2076# include <limits.h>
2077#else
2078# include <assert.h>
2079#endif
2080
2081#undef $2
2082
2083/* Override any GCC internal prototype to avoid an error.
2084   Use char because int might match the return type of a GCC
2085   builtin and then its argument prototype would still apply.  */
2086#ifdef __cplusplus
2087extern "C"
2088#endif
2089char $2 ();
2090/* The GNU C library defines this for functions which it implements
2091    to always fail with ENOSYS.  Some functions are actually named
2092    something starting with __ and the normal name is an alias.  */
2093#if defined __stub_$2 || defined __stub___$2
2094choke me
2095#endif
2096
2097int
2098main ()
2099{
2100return $2 ();
2101  ;
2102  return 0;
2103}
2104_ACEOF
2105if ac_fn_c_try_link "$LINENO"; then :
2106  eval "$3=yes"
2107else
2108  eval "$3=no"
2109fi
2110rm -f core conftest.err conftest.$ac_objext \
2111    conftest$ac_exeext conftest.$ac_ext
2112fi
2113eval ac_res=\$$3
2114	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2115$as_echo "$ac_res" >&6; }
2116  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2117
2118} # ac_fn_c_check_func
2119
2120# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2121# -------------------------------------------------------
2122# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2123# the include files in INCLUDES and setting the cache variable VAR
2124# accordingly.
2125ac_fn_c_check_header_mongrel ()
2126{
2127  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128  if eval \${$3+:} false; then :
2129  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2130$as_echo_n "checking for $2... " >&6; }
2131if eval \${$3+:} false; then :
2132  $as_echo_n "(cached) " >&6
2133fi
2134eval ac_res=\$$3
2135	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2136$as_echo "$ac_res" >&6; }
2137else
2138  # Is the header compilable?
2139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2140$as_echo_n "checking $2 usability... " >&6; }
2141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142/* end confdefs.h.  */
2143$4
2144#include <$2>
2145_ACEOF
2146if ac_fn_c_try_compile "$LINENO"; then :
2147  ac_header_compiler=yes
2148else
2149  ac_header_compiler=no
2150fi
2151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2153$as_echo "$ac_header_compiler" >&6; }
2154
2155# Is the header present?
2156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2157$as_echo_n "checking $2 presence... " >&6; }
2158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159/* end confdefs.h.  */
2160#include <$2>
2161_ACEOF
2162if ac_fn_c_try_cpp "$LINENO"; then :
2163  ac_header_preproc=yes
2164else
2165  ac_header_preproc=no
2166fi
2167rm -f conftest.err conftest.i conftest.$ac_ext
2168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2169$as_echo "$ac_header_preproc" >&6; }
2170
2171# So?  What about this header?
2172case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2173  yes:no: )
2174    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2175$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2176    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2177$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2178    ;;
2179  no:yes:* )
2180    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2181$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2182    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2183$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2184    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2185$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2186    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2187$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2188    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2189$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2190( $as_echo "## ---------------------------------------------------------------------- ##
2191## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
2192## ---------------------------------------------------------------------- ##"
2193     ) | sed "s/^/$as_me: WARNING:     /" >&2
2194    ;;
2195esac
2196  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2197$as_echo_n "checking for $2... " >&6; }
2198if eval \${$3+:} false; then :
2199  $as_echo_n "(cached) " >&6
2200else
2201  eval "$3=\$ac_header_compiler"
2202fi
2203eval ac_res=\$$3
2204	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2205$as_echo "$ac_res" >&6; }
2206fi
2207  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2208
2209} # ac_fn_c_check_header_mongrel
2210
2211# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2212# -------------------------------------------
2213# Tests whether TYPE exists after having included INCLUDES, setting cache
2214# variable VAR accordingly.
2215ac_fn_c_check_type ()
2216{
2217  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2218  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2219$as_echo_n "checking for $2... " >&6; }
2220if eval \${$3+:} false; then :
2221  $as_echo_n "(cached) " >&6
2222else
2223  eval "$3=no"
2224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225/* end confdefs.h.  */
2226$4
2227int
2228main ()
2229{
2230if (sizeof ($2))
2231	 return 0;
2232  ;
2233  return 0;
2234}
2235_ACEOF
2236if ac_fn_c_try_compile "$LINENO"; then :
2237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238/* end confdefs.h.  */
2239$4
2240int
2241main ()
2242{
2243if (sizeof (($2)))
2244	    return 0;
2245  ;
2246  return 0;
2247}
2248_ACEOF
2249if ac_fn_c_try_compile "$LINENO"; then :
2250
2251else
2252  eval "$3=yes"
2253fi
2254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2255fi
2256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257fi
2258eval ac_res=\$$3
2259	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2260$as_echo "$ac_res" >&6; }
2261  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2262
2263} # ac_fn_c_check_type
2264cat >config.log <<_ACEOF
2265This file contains any messages produced by compilers while
2266running configure, to aid debugging if configure makes a mistake.
2267
2268It was created by xf86-video-intel $as_me 2.99.917, which was
2269generated by GNU Autoconf 2.69.  Invocation command line was
2270
2271  $ $0 $@
2272
2273_ACEOF
2274exec 5>>config.log
2275{
2276cat <<_ASUNAME
2277## --------- ##
2278## Platform. ##
2279## --------- ##
2280
2281hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2282uname -m = `(uname -m) 2>/dev/null || echo unknown`
2283uname -r = `(uname -r) 2>/dev/null || echo unknown`
2284uname -s = `(uname -s) 2>/dev/null || echo unknown`
2285uname -v = `(uname -v) 2>/dev/null || echo unknown`
2286
2287/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2288/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2289
2290/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2291/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2292/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2293/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2294/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2295/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2296/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2297
2298_ASUNAME
2299
2300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301for as_dir in $PATH
2302do
2303  IFS=$as_save_IFS
2304  test -z "$as_dir" && as_dir=.
2305    $as_echo "PATH: $as_dir"
2306  done
2307IFS=$as_save_IFS
2308
2309} >&5
2310
2311cat >&5 <<_ACEOF
2312
2313
2314## ----------- ##
2315## Core tests. ##
2316## ----------- ##
2317
2318_ACEOF
2319
2320
2321# Keep a trace of the command line.
2322# Strip out --no-create and --no-recursion so they do not pile up.
2323# Strip out --silent because we don't want to record it for future runs.
2324# Also quote any args containing shell meta-characters.
2325# Make two passes to allow for proper duplicate-argument suppression.
2326ac_configure_args=
2327ac_configure_args0=
2328ac_configure_args1=
2329ac_must_keep_next=false
2330for ac_pass in 1 2
2331do
2332  for ac_arg
2333  do
2334    case $ac_arg in
2335    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2336    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2337    | -silent | --silent | --silen | --sile | --sil)
2338      continue ;;
2339    *\'*)
2340      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2341    esac
2342    case $ac_pass in
2343    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2344    2)
2345      as_fn_append ac_configure_args1 " '$ac_arg'"
2346      if test $ac_must_keep_next = true; then
2347	ac_must_keep_next=false # Got value, back to normal.
2348      else
2349	case $ac_arg in
2350	  *=* | --config-cache | -C | -disable-* | --disable-* \
2351	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2352	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2353	  | -with-* | --with-* | -without-* | --without-* | --x)
2354	    case "$ac_configure_args0 " in
2355	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2356	    esac
2357	    ;;
2358	  -* ) ac_must_keep_next=true ;;
2359	esac
2360      fi
2361      as_fn_append ac_configure_args " '$ac_arg'"
2362      ;;
2363    esac
2364  done
2365done
2366{ ac_configure_args0=; unset ac_configure_args0;}
2367{ ac_configure_args1=; unset ac_configure_args1;}
2368
2369# When interrupted or exit'd, cleanup temporary files, and complete
2370# config.log.  We remove comments because anyway the quotes in there
2371# would cause problems or look ugly.
2372# WARNING: Use '\'' to represent an apostrophe within the trap.
2373# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2374trap 'exit_status=$?
2375  # Save into config.log some information that might help in debugging.
2376  {
2377    echo
2378
2379    $as_echo "## ---------------- ##
2380## Cache variables. ##
2381## ---------------- ##"
2382    echo
2383    # The following way of writing the cache mishandles newlines in values,
2384(
2385  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2386    eval ac_val=\$$ac_var
2387    case $ac_val in #(
2388    *${as_nl}*)
2389      case $ac_var in #(
2390      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2391$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2392      esac
2393      case $ac_var in #(
2394      _ | IFS | as_nl) ;; #(
2395      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2396      *) { eval $ac_var=; unset $ac_var;} ;;
2397      esac ;;
2398    esac
2399  done
2400  (set) 2>&1 |
2401    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2402    *${as_nl}ac_space=\ *)
2403      sed -n \
2404	"s/'\''/'\''\\\\'\'''\''/g;
2405	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2406      ;; #(
2407    *)
2408      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2409      ;;
2410    esac |
2411    sort
2412)
2413    echo
2414
2415    $as_echo "## ----------------- ##
2416## Output variables. ##
2417## ----------------- ##"
2418    echo
2419    for ac_var in $ac_subst_vars
2420    do
2421      eval ac_val=\$$ac_var
2422      case $ac_val in
2423      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2424      esac
2425      $as_echo "$ac_var='\''$ac_val'\''"
2426    done | sort
2427    echo
2428
2429    if test -n "$ac_subst_files"; then
2430      $as_echo "## ------------------- ##
2431## File substitutions. ##
2432## ------------------- ##"
2433      echo
2434      for ac_var in $ac_subst_files
2435      do
2436	eval ac_val=\$$ac_var
2437	case $ac_val in
2438	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2439	esac
2440	$as_echo "$ac_var='\''$ac_val'\''"
2441      done | sort
2442      echo
2443    fi
2444
2445    if test -s confdefs.h; then
2446      $as_echo "## ----------- ##
2447## confdefs.h. ##
2448## ----------- ##"
2449      echo
2450      cat confdefs.h
2451      echo
2452    fi
2453    test "$ac_signal" != 0 &&
2454      $as_echo "$as_me: caught signal $ac_signal"
2455    $as_echo "$as_me: exit $exit_status"
2456  } >&5
2457  rm -f core *.core core.conftest.* &&
2458    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2459    exit $exit_status
2460' 0
2461for ac_signal in 1 2 13 15; do
2462  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2463done
2464ac_signal=0
2465
2466# confdefs.h avoids OS command line length limits that DEFS can exceed.
2467rm -f -r conftest* confdefs.h
2468
2469$as_echo "/* confdefs.h */" > confdefs.h
2470
2471# Predefined preprocessor variables.
2472
2473cat >>confdefs.h <<_ACEOF
2474#define PACKAGE_NAME "$PACKAGE_NAME"
2475_ACEOF
2476
2477cat >>confdefs.h <<_ACEOF
2478#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2479_ACEOF
2480
2481cat >>confdefs.h <<_ACEOF
2482#define PACKAGE_VERSION "$PACKAGE_VERSION"
2483_ACEOF
2484
2485cat >>confdefs.h <<_ACEOF
2486#define PACKAGE_STRING "$PACKAGE_STRING"
2487_ACEOF
2488
2489cat >>confdefs.h <<_ACEOF
2490#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2491_ACEOF
2492
2493cat >>confdefs.h <<_ACEOF
2494#define PACKAGE_URL "$PACKAGE_URL"
2495_ACEOF
2496
2497
2498# Let the site file select an alternate cache file if it wants to.
2499# Prefer an explicitly selected file to automatically selected ones.
2500ac_site_file1=NONE
2501ac_site_file2=NONE
2502if test -n "$CONFIG_SITE"; then
2503  # We do not want a PATH search for config.site.
2504  case $CONFIG_SITE in #((
2505    -*)  ac_site_file1=./$CONFIG_SITE;;
2506    */*) ac_site_file1=$CONFIG_SITE;;
2507    *)   ac_site_file1=./$CONFIG_SITE;;
2508  esac
2509elif test "x$prefix" != xNONE; then
2510  ac_site_file1=$prefix/share/config.site
2511  ac_site_file2=$prefix/etc/config.site
2512else
2513  ac_site_file1=$ac_default_prefix/share/config.site
2514  ac_site_file2=$ac_default_prefix/etc/config.site
2515fi
2516for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2517do
2518  test "x$ac_site_file" = xNONE && continue
2519  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2520    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2521$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2522    sed 's/^/| /' "$ac_site_file" >&5
2523    . "$ac_site_file" \
2524      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2525$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2526as_fn_error $? "failed to load site script $ac_site_file
2527See \`config.log' for more details" "$LINENO" 5; }
2528  fi
2529done
2530
2531if test -r "$cache_file"; then
2532  # Some versions of bash will fail to source /dev/null (special files
2533  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2534  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2535    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2536$as_echo "$as_me: loading cache $cache_file" >&6;}
2537    case $cache_file in
2538      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2539      *)                      . "./$cache_file";;
2540    esac
2541  fi
2542else
2543  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2544$as_echo "$as_me: creating cache $cache_file" >&6;}
2545  >$cache_file
2546fi
2547
2548# Check that the precious variables saved in the cache have kept the same
2549# value.
2550ac_cache_corrupted=false
2551for ac_var in $ac_precious_vars; do
2552  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2553  eval ac_new_set=\$ac_env_${ac_var}_set
2554  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2555  eval ac_new_val=\$ac_env_${ac_var}_value
2556  case $ac_old_set,$ac_new_set in
2557    set,)
2558      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2559$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2560      ac_cache_corrupted=: ;;
2561    ,set)
2562      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2563$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2564      ac_cache_corrupted=: ;;
2565    ,);;
2566    *)
2567      if test "x$ac_old_val" != "x$ac_new_val"; then
2568	# differences in whitespace do not lead to failure.
2569	ac_old_val_w=`echo x $ac_old_val`
2570	ac_new_val_w=`echo x $ac_new_val`
2571	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2572	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2573$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2574	  ac_cache_corrupted=:
2575	else
2576	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2577$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2578	  eval $ac_var=\$ac_old_val
2579	fi
2580	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2581$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2582	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2583$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2584      fi;;
2585  esac
2586  # Pass precious variables to config.status.
2587  if test "$ac_new_set" = set; then
2588    case $ac_new_val in
2589    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2590    *) ac_arg=$ac_var=$ac_new_val ;;
2591    esac
2592    case " $ac_configure_args " in
2593      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2594      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2595    esac
2596  fi
2597done
2598if $ac_cache_corrupted; then
2599  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2601  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2602$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2603  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2604fi
2605## -------------------- ##
2606## Main body of script. ##
2607## -------------------- ##
2608
2609ac_ext=c
2610ac_cpp='$CPP $CPPFLAGS'
2611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2613ac_compiler_gnu=$ac_cv_c_compiler_gnu
2614
2615
2616
2617ac_config_headers="$ac_config_headers config.h"
2618
2619
2620ac_aux_dir=
2621for ac_dir in . "$srcdir"/.; do
2622  if test -f "$ac_dir/install-sh"; then
2623    ac_aux_dir=$ac_dir
2624    ac_install_sh="$ac_aux_dir/install-sh -c"
2625    break
2626  elif test -f "$ac_dir/install.sh"; then
2627    ac_aux_dir=$ac_dir
2628    ac_install_sh="$ac_aux_dir/install.sh -c"
2629    break
2630  elif test -f "$ac_dir/shtool"; then
2631    ac_aux_dir=$ac_dir
2632    ac_install_sh="$ac_aux_dir/shtool install -c"
2633    break
2634  fi
2635done
2636if test -z "$ac_aux_dir"; then
2637  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2638fi
2639
2640# These three variables are undocumented and unsupported,
2641# and are intended to be withdrawn in a future Autoconf release.
2642# They can cause serious problems if a builder's source tree is in a directory
2643# whose full name contains unusual characters.
2644ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2645ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2646ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2647
2648
2649
2650# Initialize Automake
2651am__api_version='1.16'
2652
2653# Find a good install program.  We prefer a C program (faster),
2654# so one script is as good as another.  But avoid the broken or
2655# incompatible versions:
2656# SysV /etc/install, /usr/sbin/install
2657# SunOS /usr/etc/install
2658# IRIX /sbin/install
2659# AIX /bin/install
2660# AmigaOS /C/install, which installs bootblocks on floppy discs
2661# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2662# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2663# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2664# OS/2's system install, which has a completely different semantic
2665# ./install, which can be erroneously created by make from ./install.sh.
2666# Reject install programs that cannot install multiple files.
2667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2668$as_echo_n "checking for a BSD-compatible install... " >&6; }
2669if test -z "$INSTALL"; then
2670if ${ac_cv_path_install+:} false; then :
2671  $as_echo_n "(cached) " >&6
2672else
2673  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674for as_dir in $PATH
2675do
2676  IFS=$as_save_IFS
2677  test -z "$as_dir" && as_dir=.
2678    # Account for people who put trailing slashes in PATH elements.
2679case $as_dir/ in #((
2680  ./ | .// | /[cC]/* | \
2681  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2682  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2683  /usr/ucb/* ) ;;
2684  *)
2685    # OSF1 and SCO ODT 3.0 have their own names for install.
2686    # Don't use installbsd from OSF since it installs stuff as root
2687    # by default.
2688    for ac_prog in ginstall scoinst install; do
2689      for ac_exec_ext in '' $ac_executable_extensions; do
2690	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2691	  if test $ac_prog = install &&
2692	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2693	    # AIX install.  It has an incompatible calling convention.
2694	    :
2695	  elif test $ac_prog = install &&
2696	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2697	    # program-specific install script used by HP pwplus--don't use.
2698	    :
2699	  else
2700	    rm -rf conftest.one conftest.two conftest.dir
2701	    echo one > conftest.one
2702	    echo two > conftest.two
2703	    mkdir conftest.dir
2704	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2705	      test -s conftest.one && test -s conftest.two &&
2706	      test -s conftest.dir/conftest.one &&
2707	      test -s conftest.dir/conftest.two
2708	    then
2709	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2710	      break 3
2711	    fi
2712	  fi
2713	fi
2714      done
2715    done
2716    ;;
2717esac
2718
2719  done
2720IFS=$as_save_IFS
2721
2722rm -rf conftest.one conftest.two conftest.dir
2723
2724fi
2725  if test "${ac_cv_path_install+set}" = set; then
2726    INSTALL=$ac_cv_path_install
2727  else
2728    # As a last resort, use the slow shell script.  Don't cache a
2729    # value for INSTALL within a source directory, because that will
2730    # break other packages using the cache if that directory is
2731    # removed, or if the value is a relative name.
2732    INSTALL=$ac_install_sh
2733  fi
2734fi
2735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2736$as_echo "$INSTALL" >&6; }
2737
2738# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2739# It thinks the first close brace ends the variable substitution.
2740test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2741
2742test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2743
2744test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2745
2746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2747$as_echo_n "checking whether build environment is sane... " >&6; }
2748# Reject unsafe characters in $srcdir or the absolute working directory
2749# name.  Accept space and tab only in the latter.
2750am_lf='
2751'
2752case `pwd` in
2753  *[\\\"\#\$\&\'\`$am_lf]*)
2754    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2755esac
2756case $srcdir in
2757  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2758    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2759esac
2760
2761# Do 'set' in a subshell so we don't clobber the current shell's
2762# arguments.  Must try -L first in case configure is actually a
2763# symlink; some systems play weird games with the mod time of symlinks
2764# (eg FreeBSD returns the mod time of the symlink's containing
2765# directory).
2766if (
2767   am_has_slept=no
2768   for am_try in 1 2; do
2769     echo "timestamp, slept: $am_has_slept" > conftest.file
2770     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2771     if test "$*" = "X"; then
2772	# -L didn't work.
2773	set X `ls -t "$srcdir/configure" conftest.file`
2774     fi
2775     if test "$*" != "X $srcdir/configure conftest.file" \
2776	&& test "$*" != "X conftest.file $srcdir/configure"; then
2777
2778	# If neither matched, then we have a broken ls.  This can happen
2779	# if, for instance, CONFIG_SHELL is bash and it inherits a
2780	# broken ls alias from the environment.  This has actually
2781	# happened.  Such a system could not be considered "sane".
2782	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2783  alias in your environment" "$LINENO" 5
2784     fi
2785     if test "$2" = conftest.file || test $am_try -eq 2; then
2786       break
2787     fi
2788     # Just in case.
2789     sleep 1
2790     am_has_slept=yes
2791   done
2792   test "$2" = conftest.file
2793   )
2794then
2795   # Ok.
2796   :
2797else
2798   as_fn_error $? "newly created file is older than distributed files!
2799Check your system clock" "$LINENO" 5
2800fi
2801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2802$as_echo "yes" >&6; }
2803# If we didn't sleep, we still need to ensure time stamps of config.status and
2804# generated files are strictly newer.
2805am_sleep_pid=
2806if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2807  ( sleep 1 ) &
2808  am_sleep_pid=$!
2809fi
2810
2811rm -f conftest.file
2812
2813test "$program_prefix" != NONE &&
2814  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2815# Use a double $ so make ignores it.
2816test "$program_suffix" != NONE &&
2817  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2818# Double any \ or $.
2819# By default was `s,x,x', remove it if useless.
2820ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2821program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2822
2823# Expand $ac_aux_dir to an absolute path.
2824am_aux_dir=`cd "$ac_aux_dir" && pwd`
2825
2826if test x"${MISSING+set}" != xset; then
2827  case $am_aux_dir in
2828  *\ * | *\	*)
2829    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2830  *)
2831    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2832  esac
2833fi
2834# Use eval to expand $SHELL
2835if eval "$MISSING --is-lightweight"; then
2836  am_missing_run="$MISSING "
2837else
2838  am_missing_run=
2839  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2840$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2841fi
2842
2843if test x"${install_sh+set}" != xset; then
2844  case $am_aux_dir in
2845  *\ * | *\	*)
2846    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2847  *)
2848    install_sh="\${SHELL} $am_aux_dir/install-sh"
2849  esac
2850fi
2851
2852# Installed binaries are usually stripped using 'strip' when the user
2853# run "make install-strip".  However 'strip' might not be the right
2854# tool to use in cross-compilation environments, therefore Automake
2855# will honor the 'STRIP' environment variable to overrule this program.
2856if test "$cross_compiling" != no; then
2857  if test -n "$ac_tool_prefix"; then
2858  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2859set dummy ${ac_tool_prefix}strip; ac_word=$2
2860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861$as_echo_n "checking for $ac_word... " >&6; }
2862if ${ac_cv_prog_STRIP+:} false; then :
2863  $as_echo_n "(cached) " >&6
2864else
2865  if test -n "$STRIP"; then
2866  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2867else
2868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869for as_dir in $PATH
2870do
2871  IFS=$as_save_IFS
2872  test -z "$as_dir" && as_dir=.
2873    for ac_exec_ext in '' $ac_executable_extensions; do
2874  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2875    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2876    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2877    break 2
2878  fi
2879done
2880  done
2881IFS=$as_save_IFS
2882
2883fi
2884fi
2885STRIP=$ac_cv_prog_STRIP
2886if test -n "$STRIP"; then
2887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2888$as_echo "$STRIP" >&6; }
2889else
2890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891$as_echo "no" >&6; }
2892fi
2893
2894
2895fi
2896if test -z "$ac_cv_prog_STRIP"; then
2897  ac_ct_STRIP=$STRIP
2898  # Extract the first word of "strip", so it can be a program name with args.
2899set dummy strip; ac_word=$2
2900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901$as_echo_n "checking for $ac_word... " >&6; }
2902if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2903  $as_echo_n "(cached) " >&6
2904else
2905  if test -n "$ac_ct_STRIP"; then
2906  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2907else
2908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909for as_dir in $PATH
2910do
2911  IFS=$as_save_IFS
2912  test -z "$as_dir" && as_dir=.
2913    for ac_exec_ext in '' $ac_executable_extensions; do
2914  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2915    ac_cv_prog_ac_ct_STRIP="strip"
2916    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2917    break 2
2918  fi
2919done
2920  done
2921IFS=$as_save_IFS
2922
2923fi
2924fi
2925ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2926if test -n "$ac_ct_STRIP"; then
2927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2928$as_echo "$ac_ct_STRIP" >&6; }
2929else
2930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931$as_echo "no" >&6; }
2932fi
2933
2934  if test "x$ac_ct_STRIP" = x; then
2935    STRIP=":"
2936  else
2937    case $cross_compiling:$ac_tool_warned in
2938yes:)
2939{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2940$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2941ac_tool_warned=yes ;;
2942esac
2943    STRIP=$ac_ct_STRIP
2944  fi
2945else
2946  STRIP="$ac_cv_prog_STRIP"
2947fi
2948
2949fi
2950INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2951
2952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2953$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2954if test -z "$MKDIR_P"; then
2955  if ${ac_cv_path_mkdir+:} false; then :
2956  $as_echo_n "(cached) " >&6
2957else
2958  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2960do
2961  IFS=$as_save_IFS
2962  test -z "$as_dir" && as_dir=.
2963    for ac_prog in mkdir gmkdir; do
2964	 for ac_exec_ext in '' $ac_executable_extensions; do
2965	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2966	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2967	     'mkdir (GNU coreutils) '* | \
2968	     'mkdir (coreutils) '* | \
2969	     'mkdir (fileutils) '4.1*)
2970	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2971	       break 3;;
2972	   esac
2973	 done
2974       done
2975  done
2976IFS=$as_save_IFS
2977
2978fi
2979
2980  test -d ./--version && rmdir ./--version
2981  if test "${ac_cv_path_mkdir+set}" = set; then
2982    MKDIR_P="$ac_cv_path_mkdir -p"
2983  else
2984    # As a last resort, use the slow shell script.  Don't cache a
2985    # value for MKDIR_P within a source directory, because that will
2986    # break other packages using the cache if that directory is
2987    # removed, or if the value is a relative name.
2988    MKDIR_P="$ac_install_sh -d"
2989  fi
2990fi
2991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2992$as_echo "$MKDIR_P" >&6; }
2993
2994for ac_prog in gawk mawk nawk awk
2995do
2996  # Extract the first word of "$ac_prog", so it can be a program name with args.
2997set dummy $ac_prog; ac_word=$2
2998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999$as_echo_n "checking for $ac_word... " >&6; }
3000if ${ac_cv_prog_AWK+:} false; then :
3001  $as_echo_n "(cached) " >&6
3002else
3003  if test -n "$AWK"; then
3004  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3005else
3006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007for as_dir in $PATH
3008do
3009  IFS=$as_save_IFS
3010  test -z "$as_dir" && as_dir=.
3011    for ac_exec_ext in '' $ac_executable_extensions; do
3012  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3013    ac_cv_prog_AWK="$ac_prog"
3014    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015    break 2
3016  fi
3017done
3018  done
3019IFS=$as_save_IFS
3020
3021fi
3022fi
3023AWK=$ac_cv_prog_AWK
3024if test -n "$AWK"; then
3025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3026$as_echo "$AWK" >&6; }
3027else
3028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029$as_echo "no" >&6; }
3030fi
3031
3032
3033  test -n "$AWK" && break
3034done
3035
3036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3037$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3038set x ${MAKE-make}
3039ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3040if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3041  $as_echo_n "(cached) " >&6
3042else
3043  cat >conftest.make <<\_ACEOF
3044SHELL = /bin/sh
3045all:
3046	@echo '@@@%%%=$(MAKE)=@@@%%%'
3047_ACEOF
3048# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3049case `${MAKE-make} -f conftest.make 2>/dev/null` in
3050  *@@@%%%=?*=@@@%%%*)
3051    eval ac_cv_prog_make_${ac_make}_set=yes;;
3052  *)
3053    eval ac_cv_prog_make_${ac_make}_set=no;;
3054esac
3055rm -f conftest.make
3056fi
3057if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3059$as_echo "yes" >&6; }
3060  SET_MAKE=
3061else
3062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063$as_echo "no" >&6; }
3064  SET_MAKE="MAKE=${MAKE-make}"
3065fi
3066
3067rm -rf .tst 2>/dev/null
3068mkdir .tst 2>/dev/null
3069if test -d .tst; then
3070  am__leading_dot=.
3071else
3072  am__leading_dot=_
3073fi
3074rmdir .tst 2>/dev/null
3075
3076# Check whether --enable-silent-rules was given.
3077if test "${enable_silent_rules+set}" = set; then :
3078  enableval=$enable_silent_rules;
3079fi
3080
3081case $enable_silent_rules in # (((
3082  yes) AM_DEFAULT_VERBOSITY=0;;
3083   no) AM_DEFAULT_VERBOSITY=1;;
3084    *) AM_DEFAULT_VERBOSITY=1;;
3085esac
3086am_make=${MAKE-make}
3087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3088$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3089if ${am_cv_make_support_nested_variables+:} false; then :
3090  $as_echo_n "(cached) " >&6
3091else
3092  if $as_echo 'TRUE=$(BAR$(V))
3093BAR0=false
3094BAR1=true
3095V=1
3096am__doit:
3097	@$(TRUE)
3098.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3099  am_cv_make_support_nested_variables=yes
3100else
3101  am_cv_make_support_nested_variables=no
3102fi
3103fi
3104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3105$as_echo "$am_cv_make_support_nested_variables" >&6; }
3106if test $am_cv_make_support_nested_variables = yes; then
3107    AM_V='$(V)'
3108  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3109else
3110  AM_V=$AM_DEFAULT_VERBOSITY
3111  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3112fi
3113AM_BACKSLASH='\'
3114
3115if test "`cd $srcdir && pwd`" != "`pwd`"; then
3116  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3117  # is not polluted with repeated "-I."
3118  am__isrc=' -I$(srcdir)'
3119  # test to see if srcdir already configured
3120  if test -f $srcdir/config.status; then
3121    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3122  fi
3123fi
3124
3125# test whether we have cygpath
3126if test -z "$CYGPATH_W"; then
3127  if (cygpath --version) >/dev/null 2>/dev/null; then
3128    CYGPATH_W='cygpath -w'
3129  else
3130    CYGPATH_W=echo
3131  fi
3132fi
3133
3134
3135# Define the identity of the package.
3136 PACKAGE='xf86-video-intel'
3137 VERSION='2.99.917'
3138
3139
3140cat >>confdefs.h <<_ACEOF
3141#define PACKAGE "$PACKAGE"
3142_ACEOF
3143
3144
3145cat >>confdefs.h <<_ACEOF
3146#define VERSION "$VERSION"
3147_ACEOF
3148
3149# Some tools Automake needs.
3150
3151ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3152
3153
3154AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3155
3156
3157AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3158
3159
3160AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3161
3162
3163MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3164
3165# For better backward compatibility.  To be removed once Automake 1.9.x
3166# dies out for good.  For more background, see:
3167# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3168# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3169mkdir_p='$(MKDIR_P)'
3170
3171# We need awk for the "check" target (and possibly the TAP driver).  The
3172# system "awk" is bad on some platforms.
3173# Always define AMTAR for backward compatibility.  Yes, it's still used
3174# in the wild :-(  We should find a proper way to deprecate it ...
3175AMTAR='$${TAR-tar}'
3176
3177
3178# We'll loop over all known methods to create a tar archive until one works.
3179_am_tools='gnutar  pax cpio none'
3180
3181am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3182
3183
3184
3185
3186
3187
3188# POSIX will say in a future version that running "rm -f" with no argument
3189# is OK; and we want to be able to make that assumption in our Makefile
3190# recipes.  So use an aggressive probe to check that the usage we want is
3191# actually supported "in the wild" to an acceptable degree.
3192# See automake bug#10828.
3193# To make any issue more visible, cause the running configure to be aborted
3194# by default if the 'rm' program in use doesn't match our expectations; the
3195# user can still override this though.
3196if rm -f && rm -fr && rm -rf; then : OK; else
3197  cat >&2 <<'END'
3198Oops!
3199
3200Your 'rm' program seems unable to run without file operands specified
3201on the command line, even when the '-f' option is present.  This is contrary
3202to the behaviour of most rm programs out there, and not conforming with
3203the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3204
3205Please tell bug-automake@gnu.org about your system, including the value
3206of your $PATH and any error possibly output before this message.  This
3207can help us improve future automake versions.
3208
3209END
3210  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3211    echo 'Configuration will proceed anyway, since you have set the' >&2
3212    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3213    echo >&2
3214  else
3215    cat >&2 <<'END'
3216Aborting the configuration process, to ensure you take notice of the issue.
3217
3218You can download and install GNU coreutils to get an 'rm' implementation
3219that behaves properly: <https://www.gnu.org/software/coreutils/>.
3220
3221If you want to complete the configuration process using your problematic
3222'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3223to "yes", and re-run configure.
3224
3225END
3226    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3227  fi
3228fi
3229
3230
3231# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244DEPDIR="${am__leading_dot}deps"
3245
3246ac_config_commands="$ac_config_commands depfiles"
3247
3248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3249$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3250cat > confinc.mk << 'END'
3251am__doit:
3252	@echo this is the am__doit target >confinc.out
3253.PHONY: am__doit
3254END
3255am__include="#"
3256am__quote=
3257# BSD make does it like this.
3258echo '.include "confinc.mk" # ignored' > confmf.BSD
3259# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3260echo 'include confinc.mk # ignored' > confmf.GNU
3261_am_result=no
3262for s in GNU BSD; do
3263  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3264   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3265   ac_status=$?
3266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267   (exit $ac_status); }
3268  case $?:`cat confinc.out 2>/dev/null` in #(
3269  '0:this is the am__doit target') :
3270    case $s in #(
3271  BSD) :
3272    am__include='.include' am__quote='"' ;; #(
3273  *) :
3274    am__include='include' am__quote='' ;;
3275esac ;; #(
3276  *) :
3277     ;;
3278esac
3279  if test "$am__include" != "#"; then
3280    _am_result="yes ($s style)"
3281    break
3282  fi
3283done
3284rm -f confinc.* confmf.*
3285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3286$as_echo "${_am_result}" >&6; }
3287
3288# Check whether --enable-dependency-tracking was given.
3289if test "${enable_dependency_tracking+set}" = set; then :
3290  enableval=$enable_dependency_tracking;
3291fi
3292
3293if test "x$enable_dependency_tracking" != xno; then
3294  am_depcomp="$ac_aux_dir/depcomp"
3295  AMDEPBACKSLASH='\'
3296  am__nodep='_no'
3297fi
3298 if test "x$enable_dependency_tracking" != xno; then
3299  AMDEP_TRUE=
3300  AMDEP_FALSE='#'
3301else
3302  AMDEP_TRUE='#'
3303  AMDEP_FALSE=
3304fi
3305
3306
3307ac_ext=c
3308ac_cpp='$CPP $CPPFLAGS'
3309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3311ac_compiler_gnu=$ac_cv_c_compiler_gnu
3312if test -n "$ac_tool_prefix"; then
3313  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3314set dummy ${ac_tool_prefix}gcc; ac_word=$2
3315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3316$as_echo_n "checking for $ac_word... " >&6; }
3317if ${ac_cv_prog_CC+:} false; then :
3318  $as_echo_n "(cached) " >&6
3319else
3320  if test -n "$CC"; then
3321  ac_cv_prog_CC="$CC" # Let the user override the test.
3322else
3323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324for as_dir in $PATH
3325do
3326  IFS=$as_save_IFS
3327  test -z "$as_dir" && as_dir=.
3328    for ac_exec_ext in '' $ac_executable_extensions; do
3329  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3331    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3332    break 2
3333  fi
3334done
3335  done
3336IFS=$as_save_IFS
3337
3338fi
3339fi
3340CC=$ac_cv_prog_CC
3341if test -n "$CC"; then
3342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3343$as_echo "$CC" >&6; }
3344else
3345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346$as_echo "no" >&6; }
3347fi
3348
3349
3350fi
3351if test -z "$ac_cv_prog_CC"; then
3352  ac_ct_CC=$CC
3353  # Extract the first word of "gcc", so it can be a program name with args.
3354set dummy gcc; ac_word=$2
3355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3356$as_echo_n "checking for $ac_word... " >&6; }
3357if ${ac_cv_prog_ac_ct_CC+:} false; then :
3358  $as_echo_n "(cached) " >&6
3359else
3360  if test -n "$ac_ct_CC"; then
3361  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3362else
3363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364for as_dir in $PATH
3365do
3366  IFS=$as_save_IFS
3367  test -z "$as_dir" && as_dir=.
3368    for ac_exec_ext in '' $ac_executable_extensions; do
3369  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3370    ac_cv_prog_ac_ct_CC="gcc"
3371    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3372    break 2
3373  fi
3374done
3375  done
3376IFS=$as_save_IFS
3377
3378fi
3379fi
3380ac_ct_CC=$ac_cv_prog_ac_ct_CC
3381if test -n "$ac_ct_CC"; then
3382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3383$as_echo "$ac_ct_CC" >&6; }
3384else
3385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3386$as_echo "no" >&6; }
3387fi
3388
3389  if test "x$ac_ct_CC" = x; then
3390    CC=""
3391  else
3392    case $cross_compiling:$ac_tool_warned in
3393yes:)
3394{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3395$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3396ac_tool_warned=yes ;;
3397esac
3398    CC=$ac_ct_CC
3399  fi
3400else
3401  CC="$ac_cv_prog_CC"
3402fi
3403
3404if test -z "$CC"; then
3405          if test -n "$ac_tool_prefix"; then
3406    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3407set dummy ${ac_tool_prefix}cc; ac_word=$2
3408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3409$as_echo_n "checking for $ac_word... " >&6; }
3410if ${ac_cv_prog_CC+:} false; then :
3411  $as_echo_n "(cached) " >&6
3412else
3413  if test -n "$CC"; then
3414  ac_cv_prog_CC="$CC" # Let the user override the test.
3415else
3416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417for as_dir in $PATH
3418do
3419  IFS=$as_save_IFS
3420  test -z "$as_dir" && as_dir=.
3421    for ac_exec_ext in '' $ac_executable_extensions; do
3422  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3423    ac_cv_prog_CC="${ac_tool_prefix}cc"
3424    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3425    break 2
3426  fi
3427done
3428  done
3429IFS=$as_save_IFS
3430
3431fi
3432fi
3433CC=$ac_cv_prog_CC
3434if test -n "$CC"; then
3435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3436$as_echo "$CC" >&6; }
3437else
3438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439$as_echo "no" >&6; }
3440fi
3441
3442
3443  fi
3444fi
3445if test -z "$CC"; then
3446  # Extract the first word of "cc", so it can be a program name with args.
3447set dummy cc; ac_word=$2
3448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3449$as_echo_n "checking for $ac_word... " >&6; }
3450if ${ac_cv_prog_CC+:} false; then :
3451  $as_echo_n "(cached) " >&6
3452else
3453  if test -n "$CC"; then
3454  ac_cv_prog_CC="$CC" # Let the user override the test.
3455else
3456  ac_prog_rejected=no
3457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458for as_dir in $PATH
3459do
3460  IFS=$as_save_IFS
3461  test -z "$as_dir" && as_dir=.
3462    for ac_exec_ext in '' $ac_executable_extensions; do
3463  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3464    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3465       ac_prog_rejected=yes
3466       continue
3467     fi
3468    ac_cv_prog_CC="cc"
3469    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3470    break 2
3471  fi
3472done
3473  done
3474IFS=$as_save_IFS
3475
3476if test $ac_prog_rejected = yes; then
3477  # We found a bogon in the path, so make sure we never use it.
3478  set dummy $ac_cv_prog_CC
3479  shift
3480  if test $# != 0; then
3481    # We chose a different compiler from the bogus one.
3482    # However, it has the same basename, so the bogon will be chosen
3483    # first if we set CC to just the basename; use the full file name.
3484    shift
3485    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3486  fi
3487fi
3488fi
3489fi
3490CC=$ac_cv_prog_CC
3491if test -n "$CC"; then
3492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3493$as_echo "$CC" >&6; }
3494else
3495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496$as_echo "no" >&6; }
3497fi
3498
3499
3500fi
3501if test -z "$CC"; then
3502  if test -n "$ac_tool_prefix"; then
3503  for ac_prog in cl.exe
3504  do
3505    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3506set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508$as_echo_n "checking for $ac_word... " >&6; }
3509if ${ac_cv_prog_CC+:} false; then :
3510  $as_echo_n "(cached) " >&6
3511else
3512  if test -n "$CC"; then
3513  ac_cv_prog_CC="$CC" # Let the user override the test.
3514else
3515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516for as_dir in $PATH
3517do
3518  IFS=$as_save_IFS
3519  test -z "$as_dir" && as_dir=.
3520    for ac_exec_ext in '' $ac_executable_extensions; do
3521  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3522    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3523    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3524    break 2
3525  fi
3526done
3527  done
3528IFS=$as_save_IFS
3529
3530fi
3531fi
3532CC=$ac_cv_prog_CC
3533if test -n "$CC"; then
3534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3535$as_echo "$CC" >&6; }
3536else
3537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538$as_echo "no" >&6; }
3539fi
3540
3541
3542    test -n "$CC" && break
3543  done
3544fi
3545if test -z "$CC"; then
3546  ac_ct_CC=$CC
3547  for ac_prog in cl.exe
3548do
3549  # Extract the first word of "$ac_prog", so it can be a program name with args.
3550set dummy $ac_prog; ac_word=$2
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3552$as_echo_n "checking for $ac_word... " >&6; }
3553if ${ac_cv_prog_ac_ct_CC+:} false; then :
3554  $as_echo_n "(cached) " >&6
3555else
3556  if test -n "$ac_ct_CC"; then
3557  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3558else
3559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560for as_dir in $PATH
3561do
3562  IFS=$as_save_IFS
3563  test -z "$as_dir" && as_dir=.
3564    for ac_exec_ext in '' $ac_executable_extensions; do
3565  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3566    ac_cv_prog_ac_ct_CC="$ac_prog"
3567    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3568    break 2
3569  fi
3570done
3571  done
3572IFS=$as_save_IFS
3573
3574fi
3575fi
3576ac_ct_CC=$ac_cv_prog_ac_ct_CC
3577if test -n "$ac_ct_CC"; then
3578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3579$as_echo "$ac_ct_CC" >&6; }
3580else
3581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582$as_echo "no" >&6; }
3583fi
3584
3585
3586  test -n "$ac_ct_CC" && break
3587done
3588
3589  if test "x$ac_ct_CC" = x; then
3590    CC=""
3591  else
3592    case $cross_compiling:$ac_tool_warned in
3593yes:)
3594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3596ac_tool_warned=yes ;;
3597esac
3598    CC=$ac_ct_CC
3599  fi
3600fi
3601
3602fi
3603
3604
3605test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3606$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3607as_fn_error $? "no acceptable C compiler found in \$PATH
3608See \`config.log' for more details" "$LINENO" 5; }
3609
3610# Provide some information about the compiler.
3611$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3612set X $ac_compile
3613ac_compiler=$2
3614for ac_option in --version -v -V -qversion; do
3615  { { ac_try="$ac_compiler $ac_option >&5"
3616case "(($ac_try" in
3617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618  *) ac_try_echo=$ac_try;;
3619esac
3620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3621$as_echo "$ac_try_echo"; } >&5
3622  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3623  ac_status=$?
3624  if test -s conftest.err; then
3625    sed '10a\
3626... rest of stderr output deleted ...
3627         10q' conftest.err >conftest.er1
3628    cat conftest.er1 >&5
3629  fi
3630  rm -f conftest.er1 conftest.err
3631  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3632  test $ac_status = 0; }
3633done
3634
3635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636/* end confdefs.h.  */
3637
3638int
3639main ()
3640{
3641
3642  ;
3643  return 0;
3644}
3645_ACEOF
3646ac_clean_files_save=$ac_clean_files
3647ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3648# Try to create an executable without -o first, disregard a.out.
3649# It will help us diagnose broken compilers, and finding out an intuition
3650# of exeext.
3651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3652$as_echo_n "checking whether the C compiler works... " >&6; }
3653ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3654
3655# The possible output files:
3656ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3657
3658ac_rmfiles=
3659for ac_file in $ac_files
3660do
3661  case $ac_file in
3662    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3663    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3664  esac
3665done
3666rm -f $ac_rmfiles
3667
3668if { { ac_try="$ac_link_default"
3669case "(($ac_try" in
3670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671  *) ac_try_echo=$ac_try;;
3672esac
3673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3674$as_echo "$ac_try_echo"; } >&5
3675  (eval "$ac_link_default") 2>&5
3676  ac_status=$?
3677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3678  test $ac_status = 0; }; then :
3679  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3680# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3681# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3682# so that the user can short-circuit this test for compilers unknown to
3683# Autoconf.
3684for ac_file in $ac_files ''
3685do
3686  test -f "$ac_file" || continue
3687  case $ac_file in
3688    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3689	;;
3690    [ab].out )
3691	# We found the default executable, but exeext='' is most
3692	# certainly right.
3693	break;;
3694    *.* )
3695	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3696	then :; else
3697	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3698	fi
3699	# We set ac_cv_exeext here because the later test for it is not
3700	# safe: cross compilers may not add the suffix if given an `-o'
3701	# argument, so we may need to know it at that point already.
3702	# Even if this section looks crufty: it has the advantage of
3703	# actually working.
3704	break;;
3705    * )
3706	break;;
3707  esac
3708done
3709test "$ac_cv_exeext" = no && ac_cv_exeext=
3710
3711else
3712  ac_file=''
3713fi
3714if test -z "$ac_file"; then :
3715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3716$as_echo "no" >&6; }
3717$as_echo "$as_me: failed program was:" >&5
3718sed 's/^/| /' conftest.$ac_ext >&5
3719
3720{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3721$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3722as_fn_error 77 "C compiler cannot create executables
3723See \`config.log' for more details" "$LINENO" 5; }
3724else
3725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3726$as_echo "yes" >&6; }
3727fi
3728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3729$as_echo_n "checking for C compiler default output file name... " >&6; }
3730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3731$as_echo "$ac_file" >&6; }
3732ac_exeext=$ac_cv_exeext
3733
3734rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3735ac_clean_files=$ac_clean_files_save
3736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3737$as_echo_n "checking for suffix of executables... " >&6; }
3738if { { ac_try="$ac_link"
3739case "(($ac_try" in
3740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741  *) ac_try_echo=$ac_try;;
3742esac
3743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3744$as_echo "$ac_try_echo"; } >&5
3745  (eval "$ac_link") 2>&5
3746  ac_status=$?
3747  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3748  test $ac_status = 0; }; then :
3749  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3750# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3751# work properly (i.e., refer to `conftest.exe'), while it won't with
3752# `rm'.
3753for ac_file in conftest.exe conftest conftest.*; do
3754  test -f "$ac_file" || continue
3755  case $ac_file in
3756    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3757    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3758	  break;;
3759    * ) break;;
3760  esac
3761done
3762else
3763  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3765as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3766See \`config.log' for more details" "$LINENO" 5; }
3767fi
3768rm -f conftest conftest$ac_cv_exeext
3769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3770$as_echo "$ac_cv_exeext" >&6; }
3771
3772rm -f conftest.$ac_ext
3773EXEEXT=$ac_cv_exeext
3774ac_exeext=$EXEEXT
3775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776/* end confdefs.h.  */
3777#include <stdio.h>
3778int
3779main ()
3780{
3781FILE *f = fopen ("conftest.out", "w");
3782 return ferror (f) || fclose (f) != 0;
3783
3784  ;
3785  return 0;
3786}
3787_ACEOF
3788ac_clean_files="$ac_clean_files conftest.out"
3789# Check that the compiler produces executables we can run.  If not, either
3790# the compiler is broken, or we cross compile.
3791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3792$as_echo_n "checking whether we are cross compiling... " >&6; }
3793if test "$cross_compiling" != yes; then
3794  { { ac_try="$ac_link"
3795case "(($ac_try" in
3796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797  *) ac_try_echo=$ac_try;;
3798esac
3799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3800$as_echo "$ac_try_echo"; } >&5
3801  (eval "$ac_link") 2>&5
3802  ac_status=$?
3803  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3804  test $ac_status = 0; }
3805  if { ac_try='./conftest$ac_cv_exeext'
3806  { { case "(($ac_try" in
3807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808  *) ac_try_echo=$ac_try;;
3809esac
3810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3811$as_echo "$ac_try_echo"; } >&5
3812  (eval "$ac_try") 2>&5
3813  ac_status=$?
3814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3815  test $ac_status = 0; }; }; then
3816    cross_compiling=no
3817  else
3818    if test "$cross_compiling" = maybe; then
3819	cross_compiling=yes
3820    else
3821	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3822$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3823as_fn_error $? "cannot run C compiled programs.
3824If you meant to cross compile, use \`--host'.
3825See \`config.log' for more details" "$LINENO" 5; }
3826    fi
3827  fi
3828fi
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3830$as_echo "$cross_compiling" >&6; }
3831
3832rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3833ac_clean_files=$ac_clean_files_save
3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3835$as_echo_n "checking for suffix of object files... " >&6; }
3836if ${ac_cv_objext+:} false; then :
3837  $as_echo_n "(cached) " >&6
3838else
3839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840/* end confdefs.h.  */
3841
3842int
3843main ()
3844{
3845
3846  ;
3847  return 0;
3848}
3849_ACEOF
3850rm -f conftest.o conftest.obj
3851if { { ac_try="$ac_compile"
3852case "(($ac_try" in
3853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854  *) ac_try_echo=$ac_try;;
3855esac
3856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3857$as_echo "$ac_try_echo"; } >&5
3858  (eval "$ac_compile") 2>&5
3859  ac_status=$?
3860  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3861  test $ac_status = 0; }; then :
3862  for ac_file in conftest.o conftest.obj conftest.*; do
3863  test -f "$ac_file" || continue;
3864  case $ac_file in
3865    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3866    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3867       break;;
3868  esac
3869done
3870else
3871  $as_echo "$as_me: failed program was:" >&5
3872sed 's/^/| /' conftest.$ac_ext >&5
3873
3874{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3875$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3876as_fn_error $? "cannot compute suffix of object files: cannot compile
3877See \`config.log' for more details" "$LINENO" 5; }
3878fi
3879rm -f conftest.$ac_cv_objext conftest.$ac_ext
3880fi
3881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3882$as_echo "$ac_cv_objext" >&6; }
3883OBJEXT=$ac_cv_objext
3884ac_objext=$OBJEXT
3885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3886$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3887if ${ac_cv_c_compiler_gnu+:} false; then :
3888  $as_echo_n "(cached) " >&6
3889else
3890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891/* end confdefs.h.  */
3892
3893int
3894main ()
3895{
3896#ifndef __GNUC__
3897       choke me
3898#endif
3899
3900  ;
3901  return 0;
3902}
3903_ACEOF
3904if ac_fn_c_try_compile "$LINENO"; then :
3905  ac_compiler_gnu=yes
3906else
3907  ac_compiler_gnu=no
3908fi
3909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3910ac_cv_c_compiler_gnu=$ac_compiler_gnu
3911
3912fi
3913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3914$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3915if test $ac_compiler_gnu = yes; then
3916  GCC=yes
3917else
3918  GCC=
3919fi
3920ac_test_CFLAGS=${CFLAGS+set}
3921ac_save_CFLAGS=$CFLAGS
3922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3923$as_echo_n "checking whether $CC accepts -g... " >&6; }
3924if ${ac_cv_prog_cc_g+:} false; then :
3925  $as_echo_n "(cached) " >&6
3926else
3927  ac_save_c_werror_flag=$ac_c_werror_flag
3928   ac_c_werror_flag=yes
3929   ac_cv_prog_cc_g=no
3930   CFLAGS="-g"
3931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932/* end confdefs.h.  */
3933
3934int
3935main ()
3936{
3937
3938  ;
3939  return 0;
3940}
3941_ACEOF
3942if ac_fn_c_try_compile "$LINENO"; then :
3943  ac_cv_prog_cc_g=yes
3944else
3945  CFLAGS=""
3946      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947/* end confdefs.h.  */
3948
3949int
3950main ()
3951{
3952
3953  ;
3954  return 0;
3955}
3956_ACEOF
3957if ac_fn_c_try_compile "$LINENO"; then :
3958
3959else
3960  ac_c_werror_flag=$ac_save_c_werror_flag
3961	 CFLAGS="-g"
3962	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963/* end confdefs.h.  */
3964
3965int
3966main ()
3967{
3968
3969  ;
3970  return 0;
3971}
3972_ACEOF
3973if ac_fn_c_try_compile "$LINENO"; then :
3974  ac_cv_prog_cc_g=yes
3975fi
3976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3977fi
3978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3979fi
3980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3981   ac_c_werror_flag=$ac_save_c_werror_flag
3982fi
3983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3984$as_echo "$ac_cv_prog_cc_g" >&6; }
3985if test "$ac_test_CFLAGS" = set; then
3986  CFLAGS=$ac_save_CFLAGS
3987elif test $ac_cv_prog_cc_g = yes; then
3988  if test "$GCC" = yes; then
3989    CFLAGS="-g -O2"
3990  else
3991    CFLAGS="-g"
3992  fi
3993else
3994  if test "$GCC" = yes; then
3995    CFLAGS="-O2"
3996  else
3997    CFLAGS=
3998  fi
3999fi
4000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4001$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4002if ${ac_cv_prog_cc_c89+:} false; then :
4003  $as_echo_n "(cached) " >&6
4004else
4005  ac_cv_prog_cc_c89=no
4006ac_save_CC=$CC
4007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008/* end confdefs.h.  */
4009#include <stdarg.h>
4010#include <stdio.h>
4011struct stat;
4012/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4013struct buf { int x; };
4014FILE * (*rcsopen) (struct buf *, struct stat *, int);
4015static char *e (p, i)
4016     char **p;
4017     int i;
4018{
4019  return p[i];
4020}
4021static char *f (char * (*g) (char **, int), char **p, ...)
4022{
4023  char *s;
4024  va_list v;
4025  va_start (v,p);
4026  s = g (p, va_arg (v,int));
4027  va_end (v);
4028  return s;
4029}
4030
4031/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4032   function prototypes and stuff, but not '\xHH' hex character constants.
4033   These don't provoke an error unfortunately, instead are silently treated
4034   as 'x'.  The following induces an error, until -std is added to get
4035   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4036   array size at least.  It's necessary to write '\x00'==0 to get something
4037   that's true only with -std.  */
4038int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4039
4040/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4041   inside strings and character constants.  */
4042#define FOO(x) 'x'
4043int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4044
4045int test (int i, double x);
4046struct s1 {int (*f) (int a);};
4047struct s2 {int (*f) (double a);};
4048int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4049int argc;
4050char **argv;
4051int
4052main ()
4053{
4054return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4055  ;
4056  return 0;
4057}
4058_ACEOF
4059for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4060	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4061do
4062  CC="$ac_save_CC $ac_arg"
4063  if ac_fn_c_try_compile "$LINENO"; then :
4064  ac_cv_prog_cc_c89=$ac_arg
4065fi
4066rm -f core conftest.err conftest.$ac_objext
4067  test "x$ac_cv_prog_cc_c89" != "xno" && break
4068done
4069rm -f conftest.$ac_ext
4070CC=$ac_save_CC
4071
4072fi
4073# AC_CACHE_VAL
4074case "x$ac_cv_prog_cc_c89" in
4075  x)
4076    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4077$as_echo "none needed" >&6; } ;;
4078  xno)
4079    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4080$as_echo "unsupported" >&6; } ;;
4081  *)
4082    CC="$CC $ac_cv_prog_cc_c89"
4083    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4084$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4085esac
4086if test "x$ac_cv_prog_cc_c89" != xno; then :
4087
4088fi
4089
4090ac_ext=c
4091ac_cpp='$CPP $CPPFLAGS'
4092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4094ac_compiler_gnu=$ac_cv_c_compiler_gnu
4095
4096ac_ext=c
4097ac_cpp='$CPP $CPPFLAGS'
4098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100ac_compiler_gnu=$ac_cv_c_compiler_gnu
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4102$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4103if ${am_cv_prog_cc_c_o+:} false; then :
4104  $as_echo_n "(cached) " >&6
4105else
4106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107/* end confdefs.h.  */
4108
4109int
4110main ()
4111{
4112
4113  ;
4114  return 0;
4115}
4116_ACEOF
4117  # Make sure it works both with $CC and with simple cc.
4118  # Following AC_PROG_CC_C_O, we do the test twice because some
4119  # compilers refuse to overwrite an existing .o file with -o,
4120  # though they will create one.
4121  am_cv_prog_cc_c_o=yes
4122  for am_i in 1 2; do
4123    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4124   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4125   ac_status=$?
4126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127   (exit $ac_status); } \
4128         && test -f conftest2.$ac_objext; then
4129      : OK
4130    else
4131      am_cv_prog_cc_c_o=no
4132      break
4133    fi
4134  done
4135  rm -f core conftest*
4136  unset am_i
4137fi
4138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4139$as_echo "$am_cv_prog_cc_c_o" >&6; }
4140if test "$am_cv_prog_cc_c_o" != yes; then
4141   # Losing compiler, so override with the script.
4142   # FIXME: It is wrong to rewrite CC.
4143   # But if we don't then we get into trouble of one sort or another.
4144   # A longer-term fix would be to have automake use am__CC in this case,
4145   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4146   CC="$am_aux_dir/compile $CC"
4147fi
4148ac_ext=c
4149ac_cpp='$CPP $CPPFLAGS'
4150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4152ac_compiler_gnu=$ac_cv_c_compiler_gnu
4153
4154
4155depcc="$CC"   am_compiler_list=
4156
4157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4158$as_echo_n "checking dependency style of $depcc... " >&6; }
4159if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4160  $as_echo_n "(cached) " >&6
4161else
4162  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4163  # We make a subdir and do the tests there.  Otherwise we can end up
4164  # making bogus files that we don't know about and never remove.  For
4165  # instance it was reported that on HP-UX the gcc test will end up
4166  # making a dummy file named 'D' -- because '-MD' means "put the output
4167  # in D".
4168  rm -rf conftest.dir
4169  mkdir conftest.dir
4170  # Copy depcomp to subdir because otherwise we won't find it if we're
4171  # using a relative directory.
4172  cp "$am_depcomp" conftest.dir
4173  cd conftest.dir
4174  # We will build objects and dependencies in a subdirectory because
4175  # it helps to detect inapplicable dependency modes.  For instance
4176  # both Tru64's cc and ICC support -MD to output dependencies as a
4177  # side effect of compilation, but ICC will put the dependencies in
4178  # the current directory while Tru64 will put them in the object
4179  # directory.
4180  mkdir sub
4181
4182  am_cv_CC_dependencies_compiler_type=none
4183  if test "$am_compiler_list" = ""; then
4184     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4185  fi
4186  am__universal=false
4187  case " $depcc " in #(
4188     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4189     esac
4190
4191  for depmode in $am_compiler_list; do
4192    # Setup a source with many dependencies, because some compilers
4193    # like to wrap large dependency lists on column 80 (with \), and
4194    # we should not choose a depcomp mode which is confused by this.
4195    #
4196    # We need to recreate these files for each test, as the compiler may
4197    # overwrite some of them when testing with obscure command lines.
4198    # This happens at least with the AIX C compiler.
4199    : > sub/conftest.c
4200    for i in 1 2 3 4 5 6; do
4201      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4202      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4203      # Solaris 10 /bin/sh.
4204      echo '/* dummy */' > sub/conftst$i.h
4205    done
4206    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4207
4208    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4209    # mode.  It turns out that the SunPro C++ compiler does not properly
4210    # handle '-M -o', and we need to detect this.  Also, some Intel
4211    # versions had trouble with output in subdirs.
4212    am__obj=sub/conftest.${OBJEXT-o}
4213    am__minus_obj="-o $am__obj"
4214    case $depmode in
4215    gcc)
4216      # This depmode causes a compiler race in universal mode.
4217      test "$am__universal" = false || continue
4218      ;;
4219    nosideeffect)
4220      # After this tag, mechanisms are not by side-effect, so they'll
4221      # only be used when explicitly requested.
4222      if test "x$enable_dependency_tracking" = xyes; then
4223	continue
4224      else
4225	break
4226      fi
4227      ;;
4228    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4229      # This compiler won't grok '-c -o', but also, the minuso test has
4230      # not run yet.  These depmodes are late enough in the game, and
4231      # so weak that their functioning should not be impacted.
4232      am__obj=conftest.${OBJEXT-o}
4233      am__minus_obj=
4234      ;;
4235    none) break ;;
4236    esac
4237    if depmode=$depmode \
4238       source=sub/conftest.c object=$am__obj \
4239       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4240       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4241         >/dev/null 2>conftest.err &&
4242       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4243       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4244       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4245       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4246      # icc doesn't choke on unknown options, it will just issue warnings
4247      # or remarks (even with -Werror).  So we grep stderr for any message
4248      # that says an option was ignored or not supported.
4249      # When given -MP, icc 7.0 and 7.1 complain thusly:
4250      #   icc: Command line warning: ignoring option '-M'; no argument required
4251      # The diagnosis changed in icc 8.0:
4252      #   icc: Command line remark: option '-MP' not supported
4253      if (grep 'ignoring option' conftest.err ||
4254          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4255        am_cv_CC_dependencies_compiler_type=$depmode
4256        break
4257      fi
4258    fi
4259  done
4260
4261  cd ..
4262  rm -rf conftest.dir
4263else
4264  am_cv_CC_dependencies_compiler_type=none
4265fi
4266
4267fi
4268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4269$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4270CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4271
4272 if
4273  test "x$enable_dependency_tracking" != xno \
4274  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4275  am__fastdepCC_TRUE=
4276  am__fastdepCC_FALSE='#'
4277else
4278  am__fastdepCC_TRUE='#'
4279  am__fastdepCC_FALSE=
4280fi
4281
4282
4283   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4284$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4285if ${ac_cv_prog_cc_c99+:} false; then :
4286  $as_echo_n "(cached) " >&6
4287else
4288  ac_cv_prog_cc_c99=no
4289ac_save_CC=$CC
4290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291/* end confdefs.h.  */
4292#include <stdarg.h>
4293#include <stdbool.h>
4294#include <stdlib.h>
4295#include <wchar.h>
4296#include <stdio.h>
4297
4298// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4299#define debug(...) fprintf (stderr, __VA_ARGS__)
4300#define showlist(...) puts (#__VA_ARGS__)
4301#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4302static void
4303test_varargs_macros (void)
4304{
4305  int x = 1234;
4306  int y = 5678;
4307  debug ("Flag");
4308  debug ("X = %d\n", x);
4309  showlist (The first, second, and third items.);
4310  report (x>y, "x is %d but y is %d", x, y);
4311}
4312
4313// Check long long types.
4314#define BIG64 18446744073709551615ull
4315#define BIG32 4294967295ul
4316#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4317#if !BIG_OK
4318  your preprocessor is broken;
4319#endif
4320#if BIG_OK
4321#else
4322  your preprocessor is broken;
4323#endif
4324static long long int bignum = -9223372036854775807LL;
4325static unsigned long long int ubignum = BIG64;
4326
4327struct incomplete_array
4328{
4329  int datasize;
4330  double data[];
4331};
4332
4333struct named_init {
4334  int number;
4335  const wchar_t *name;
4336  double average;
4337};
4338
4339typedef const char *ccp;
4340
4341static inline int
4342test_restrict (ccp restrict text)
4343{
4344  // See if C++-style comments work.
4345  // Iterate through items via the restricted pointer.
4346  // Also check for declarations in for loops.
4347  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4348    continue;
4349  return 0;
4350}
4351
4352// Check varargs and va_copy.
4353static void
4354test_varargs (const char *format, ...)
4355{
4356  va_list args;
4357  va_start (args, format);
4358  va_list args_copy;
4359  va_copy (args_copy, args);
4360
4361  const char *str;
4362  int number;
4363  float fnumber;
4364
4365  while (*format)
4366    {
4367      switch (*format++)
4368	{
4369	case 's': // string
4370	  str = va_arg (args_copy, const char *);
4371	  break;
4372	case 'd': // int
4373	  number = va_arg (args_copy, int);
4374	  break;
4375	case 'f': // float
4376	  fnumber = va_arg (args_copy, double);
4377	  break;
4378	default:
4379	  break;
4380	}
4381    }
4382  va_end (args_copy);
4383  va_end (args);
4384}
4385
4386int
4387main ()
4388{
4389
4390  // Check bool.
4391  _Bool success = false;
4392
4393  // Check restrict.
4394  if (test_restrict ("String literal") == 0)
4395    success = true;
4396  char *restrict newvar = "Another string";
4397
4398  // Check varargs.
4399  test_varargs ("s, d' f .", "string", 65, 34.234);
4400  test_varargs_macros ();
4401
4402  // Check flexible array members.
4403  struct incomplete_array *ia =
4404    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4405  ia->datasize = 10;
4406  for (int i = 0; i < ia->datasize; ++i)
4407    ia->data[i] = i * 1.234;
4408
4409  // Check named initializers.
4410  struct named_init ni = {
4411    .number = 34,
4412    .name = L"Test wide string",
4413    .average = 543.34343,
4414  };
4415
4416  ni.number = 58;
4417
4418  int dynamic_array[ni.number];
4419  dynamic_array[ni.number - 1] = 543;
4420
4421  // work around unused variable warnings
4422  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4423	  || dynamic_array[ni.number - 1] != 543);
4424
4425  ;
4426  return 0;
4427}
4428_ACEOF
4429for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4430do
4431  CC="$ac_save_CC $ac_arg"
4432  if ac_fn_c_try_compile "$LINENO"; then :
4433  ac_cv_prog_cc_c99=$ac_arg
4434fi
4435rm -f core conftest.err conftest.$ac_objext
4436  test "x$ac_cv_prog_cc_c99" != "xno" && break
4437done
4438rm -f conftest.$ac_ext
4439CC=$ac_save_CC
4440
4441fi
4442# AC_CACHE_VAL
4443case "x$ac_cv_prog_cc_c99" in
4444  x)
4445    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4446$as_echo "none needed" >&6; } ;;
4447  xno)
4448    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4449$as_echo "unsupported" >&6; } ;;
4450  *)
4451    CC="$CC $ac_cv_prog_cc_c99"
4452    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4453$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4454esac
4455if test "x$ac_cv_prog_cc_c99" != xno; then :
4456
4457fi
4458
4459
4460
4461ac_ext=c
4462ac_cpp='$CPP $CPPFLAGS'
4463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4465ac_compiler_gnu=$ac_cv_c_compiler_gnu
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4467$as_echo_n "checking how to run the C preprocessor... " >&6; }
4468# On Suns, sometimes $CPP names a directory.
4469if test -n "$CPP" && test -d "$CPP"; then
4470  CPP=
4471fi
4472if test -z "$CPP"; then
4473  if ${ac_cv_prog_CPP+:} false; then :
4474  $as_echo_n "(cached) " >&6
4475else
4476      # Double quotes because CPP needs to be expanded
4477    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4478    do
4479      ac_preproc_ok=false
4480for ac_c_preproc_warn_flag in '' yes
4481do
4482  # Use a header file that comes with gcc, so configuring glibc
4483  # with a fresh cross-compiler works.
4484  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4485  # <limits.h> exists even on freestanding compilers.
4486  # On the NeXT, cc -E runs the code through the compiler's parser,
4487  # not just through cpp. "Syntax error" is here to catch this case.
4488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489/* end confdefs.h.  */
4490#ifdef __STDC__
4491# include <limits.h>
4492#else
4493# include <assert.h>
4494#endif
4495		     Syntax error
4496_ACEOF
4497if ac_fn_c_try_cpp "$LINENO"; then :
4498
4499else
4500  # Broken: fails on valid input.
4501continue
4502fi
4503rm -f conftest.err conftest.i conftest.$ac_ext
4504
4505  # OK, works on sane cases.  Now check whether nonexistent headers
4506  # can be detected and how.
4507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508/* end confdefs.h.  */
4509#include <ac_nonexistent.h>
4510_ACEOF
4511if ac_fn_c_try_cpp "$LINENO"; then :
4512  # Broken: success on invalid input.
4513continue
4514else
4515  # Passes both tests.
4516ac_preproc_ok=:
4517break
4518fi
4519rm -f conftest.err conftest.i conftest.$ac_ext
4520
4521done
4522# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4523rm -f conftest.i conftest.err conftest.$ac_ext
4524if $ac_preproc_ok; then :
4525  break
4526fi
4527
4528    done
4529    ac_cv_prog_CPP=$CPP
4530
4531fi
4532  CPP=$ac_cv_prog_CPP
4533else
4534  ac_cv_prog_CPP=$CPP
4535fi
4536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4537$as_echo "$CPP" >&6; }
4538ac_preproc_ok=false
4539for ac_c_preproc_warn_flag in '' yes
4540do
4541  # Use a header file that comes with gcc, so configuring glibc
4542  # with a fresh cross-compiler works.
4543  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4544  # <limits.h> exists even on freestanding compilers.
4545  # On the NeXT, cc -E runs the code through the compiler's parser,
4546  # not just through cpp. "Syntax error" is here to catch this case.
4547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548/* end confdefs.h.  */
4549#ifdef __STDC__
4550# include <limits.h>
4551#else
4552# include <assert.h>
4553#endif
4554		     Syntax error
4555_ACEOF
4556if ac_fn_c_try_cpp "$LINENO"; then :
4557
4558else
4559  # Broken: fails on valid input.
4560continue
4561fi
4562rm -f conftest.err conftest.i conftest.$ac_ext
4563
4564  # OK, works on sane cases.  Now check whether nonexistent headers
4565  # can be detected and how.
4566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567/* end confdefs.h.  */
4568#include <ac_nonexistent.h>
4569_ACEOF
4570if ac_fn_c_try_cpp "$LINENO"; then :
4571  # Broken: success on invalid input.
4572continue
4573else
4574  # Passes both tests.
4575ac_preproc_ok=:
4576break
4577fi
4578rm -f conftest.err conftest.i conftest.$ac_ext
4579
4580done
4581# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4582rm -f conftest.i conftest.err conftest.$ac_ext
4583if $ac_preproc_ok; then :
4584
4585else
4586  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4587$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4588as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4589See \`config.log' for more details" "$LINENO" 5; }
4590fi
4591
4592ac_ext=c
4593ac_cpp='$CPP $CPPFLAGS'
4594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4596ac_compiler_gnu=$ac_cv_c_compiler_gnu
4597
4598
4599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4600$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4601if ${ac_cv_path_GREP+:} false; then :
4602  $as_echo_n "(cached) " >&6
4603else
4604  if test -z "$GREP"; then
4605  ac_path_GREP_found=false
4606  # Loop through the user's path and test for each of PROGNAME-LIST
4607  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4609do
4610  IFS=$as_save_IFS
4611  test -z "$as_dir" && as_dir=.
4612    for ac_prog in grep ggrep; do
4613    for ac_exec_ext in '' $ac_executable_extensions; do
4614      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4615      as_fn_executable_p "$ac_path_GREP" || continue
4616# Check for GNU ac_path_GREP and select it if it is found.
4617  # Check for GNU $ac_path_GREP
4618case `"$ac_path_GREP" --version 2>&1` in
4619*GNU*)
4620  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4621*)
4622  ac_count=0
4623  $as_echo_n 0123456789 >"conftest.in"
4624  while :
4625  do
4626    cat "conftest.in" "conftest.in" >"conftest.tmp"
4627    mv "conftest.tmp" "conftest.in"
4628    cp "conftest.in" "conftest.nl"
4629    $as_echo 'GREP' >> "conftest.nl"
4630    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4631    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4632    as_fn_arith $ac_count + 1 && ac_count=$as_val
4633    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4634      # Best one so far, save it but keep looking for a better one
4635      ac_cv_path_GREP="$ac_path_GREP"
4636      ac_path_GREP_max=$ac_count
4637    fi
4638    # 10*(2^10) chars as input seems more than enough
4639    test $ac_count -gt 10 && break
4640  done
4641  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4642esac
4643
4644      $ac_path_GREP_found && break 3
4645    done
4646  done
4647  done
4648IFS=$as_save_IFS
4649  if test -z "$ac_cv_path_GREP"; then
4650    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4651  fi
4652else
4653  ac_cv_path_GREP=$GREP
4654fi
4655
4656fi
4657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4658$as_echo "$ac_cv_path_GREP" >&6; }
4659 GREP="$ac_cv_path_GREP"
4660
4661
4662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4663$as_echo_n "checking for egrep... " >&6; }
4664if ${ac_cv_path_EGREP+:} false; then :
4665  $as_echo_n "(cached) " >&6
4666else
4667  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4668   then ac_cv_path_EGREP="$GREP -E"
4669   else
4670     if test -z "$EGREP"; then
4671  ac_path_EGREP_found=false
4672  # Loop through the user's path and test for each of PROGNAME-LIST
4673  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4675do
4676  IFS=$as_save_IFS
4677  test -z "$as_dir" && as_dir=.
4678    for ac_prog in egrep; do
4679    for ac_exec_ext in '' $ac_executable_extensions; do
4680      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4681      as_fn_executable_p "$ac_path_EGREP" || continue
4682# Check for GNU ac_path_EGREP and select it if it is found.
4683  # Check for GNU $ac_path_EGREP
4684case `"$ac_path_EGREP" --version 2>&1` in
4685*GNU*)
4686  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4687*)
4688  ac_count=0
4689  $as_echo_n 0123456789 >"conftest.in"
4690  while :
4691  do
4692    cat "conftest.in" "conftest.in" >"conftest.tmp"
4693    mv "conftest.tmp" "conftest.in"
4694    cp "conftest.in" "conftest.nl"
4695    $as_echo 'EGREP' >> "conftest.nl"
4696    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4697    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4698    as_fn_arith $ac_count + 1 && ac_count=$as_val
4699    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4700      # Best one so far, save it but keep looking for a better one
4701      ac_cv_path_EGREP="$ac_path_EGREP"
4702      ac_path_EGREP_max=$ac_count
4703    fi
4704    # 10*(2^10) chars as input seems more than enough
4705    test $ac_count -gt 10 && break
4706  done
4707  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4708esac
4709
4710      $ac_path_EGREP_found && break 3
4711    done
4712  done
4713  done
4714IFS=$as_save_IFS
4715  if test -z "$ac_cv_path_EGREP"; then
4716    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4717  fi
4718else
4719  ac_cv_path_EGREP=$EGREP
4720fi
4721
4722   fi
4723fi
4724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4725$as_echo "$ac_cv_path_EGREP" >&6; }
4726 EGREP="$ac_cv_path_EGREP"
4727
4728
4729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4730$as_echo_n "checking for ANSI C header files... " >&6; }
4731if ${ac_cv_header_stdc+:} false; then :
4732  $as_echo_n "(cached) " >&6
4733else
4734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735/* end confdefs.h.  */
4736#include <stdlib.h>
4737#include <stdarg.h>
4738#include <string.h>
4739#include <float.h>
4740
4741int
4742main ()
4743{
4744
4745  ;
4746  return 0;
4747}
4748_ACEOF
4749if ac_fn_c_try_compile "$LINENO"; then :
4750  ac_cv_header_stdc=yes
4751else
4752  ac_cv_header_stdc=no
4753fi
4754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4755
4756if test $ac_cv_header_stdc = yes; then
4757  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4759/* end confdefs.h.  */
4760#include <string.h>
4761
4762_ACEOF
4763if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4764  $EGREP "memchr" >/dev/null 2>&1; then :
4765
4766else
4767  ac_cv_header_stdc=no
4768fi
4769rm -f conftest*
4770
4771fi
4772
4773if test $ac_cv_header_stdc = yes; then
4774  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776/* end confdefs.h.  */
4777#include <stdlib.h>
4778
4779_ACEOF
4780if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4781  $EGREP "free" >/dev/null 2>&1; then :
4782
4783else
4784  ac_cv_header_stdc=no
4785fi
4786rm -f conftest*
4787
4788fi
4789
4790if test $ac_cv_header_stdc = yes; then
4791  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4792  if test "$cross_compiling" = yes; then :
4793  :
4794else
4795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796/* end confdefs.h.  */
4797#include <ctype.h>
4798#include <stdlib.h>
4799#if ((' ' & 0x0FF) == 0x020)
4800# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4801# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4802#else
4803# define ISLOWER(c) \
4804		   (('a' <= (c) && (c) <= 'i') \
4805		     || ('j' <= (c) && (c) <= 'r') \
4806		     || ('s' <= (c) && (c) <= 'z'))
4807# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4808#endif
4809
4810#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4811int
4812main ()
4813{
4814  int i;
4815  for (i = 0; i < 256; i++)
4816    if (XOR (islower (i), ISLOWER (i))
4817	|| toupper (i) != TOUPPER (i))
4818      return 2;
4819  return 0;
4820}
4821_ACEOF
4822if ac_fn_c_try_run "$LINENO"; then :
4823
4824else
4825  ac_cv_header_stdc=no
4826fi
4827rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4828  conftest.$ac_objext conftest.beam conftest.$ac_ext
4829fi
4830
4831fi
4832fi
4833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4834$as_echo "$ac_cv_header_stdc" >&6; }
4835if test $ac_cv_header_stdc = yes; then
4836
4837$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4838
4839fi
4840
4841# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4842for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4843		  inttypes.h stdint.h unistd.h
4844do :
4845  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4846ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4847"
4848if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4849  cat >>confdefs.h <<_ACEOF
4850#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4851_ACEOF
4852
4853fi
4854
4855done
4856
4857
4858
4859
4860
4861
4862ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4863if test "x$ac_cv_have_decl___clang__" = xyes; then :
4864  CLANGCC="yes"
4865else
4866  CLANGCC="no"
4867fi
4868
4869ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4870if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4871  INTELCC="yes"
4872else
4873  INTELCC="no"
4874fi
4875
4876ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4877if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4878  SUNCC="yes"
4879else
4880  SUNCC="no"
4881fi
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4892	if test -n "$ac_tool_prefix"; then
4893  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4894set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4896$as_echo_n "checking for $ac_word... " >&6; }
4897if ${ac_cv_path_PKG_CONFIG+:} false; then :
4898  $as_echo_n "(cached) " >&6
4899else
4900  case $PKG_CONFIG in
4901  [\\/]* | ?:[\\/]*)
4902  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4903  ;;
4904  *)
4905  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906for as_dir in $PATH
4907do
4908  IFS=$as_save_IFS
4909  test -z "$as_dir" && as_dir=.
4910    for ac_exec_ext in '' $ac_executable_extensions; do
4911  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4912    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4913    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4914    break 2
4915  fi
4916done
4917  done
4918IFS=$as_save_IFS
4919
4920  ;;
4921esac
4922fi
4923PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4924if test -n "$PKG_CONFIG"; then
4925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4926$as_echo "$PKG_CONFIG" >&6; }
4927else
4928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929$as_echo "no" >&6; }
4930fi
4931
4932
4933fi
4934if test -z "$ac_cv_path_PKG_CONFIG"; then
4935  ac_pt_PKG_CONFIG=$PKG_CONFIG
4936  # Extract the first word of "pkg-config", so it can be a program name with args.
4937set dummy pkg-config; ac_word=$2
4938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4939$as_echo_n "checking for $ac_word... " >&6; }
4940if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4941  $as_echo_n "(cached) " >&6
4942else
4943  case $ac_pt_PKG_CONFIG in
4944  [\\/]* | ?:[\\/]*)
4945  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4946  ;;
4947  *)
4948  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949for as_dir in $PATH
4950do
4951  IFS=$as_save_IFS
4952  test -z "$as_dir" && as_dir=.
4953    for ac_exec_ext in '' $ac_executable_extensions; do
4954  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4955    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4956    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4957    break 2
4958  fi
4959done
4960  done
4961IFS=$as_save_IFS
4962
4963  ;;
4964esac
4965fi
4966ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4967if test -n "$ac_pt_PKG_CONFIG"; then
4968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4969$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4970else
4971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4972$as_echo "no" >&6; }
4973fi
4974
4975  if test "x$ac_pt_PKG_CONFIG" = x; then
4976    PKG_CONFIG=""
4977  else
4978    case $cross_compiling:$ac_tool_warned in
4979yes:)
4980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4982ac_tool_warned=yes ;;
4983esac
4984    PKG_CONFIG=$ac_pt_PKG_CONFIG
4985  fi
4986else
4987  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4988fi
4989
4990fi
4991if test -n "$PKG_CONFIG"; then
4992	_pkg_min_version=0.9.0
4993	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4994$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4995	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4996		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4997$as_echo "yes" >&6; }
4998	else
4999		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000$as_echo "no" >&6; }
5001		PKG_CONFIG=""
5002	fi
5003fi
5004# Make sure we can run config.sub.
5005$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5006  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5007
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5009$as_echo_n "checking build system type... " >&6; }
5010if ${ac_cv_build+:} false; then :
5011  $as_echo_n "(cached) " >&6
5012else
5013  ac_build_alias=$build_alias
5014test "x$ac_build_alias" = x &&
5015  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5016test "x$ac_build_alias" = x &&
5017  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5018ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5019  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5020
5021fi
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5023$as_echo "$ac_cv_build" >&6; }
5024case $ac_cv_build in
5025*-*-*) ;;
5026*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5027esac
5028build=$ac_cv_build
5029ac_save_IFS=$IFS; IFS='-'
5030set x $ac_cv_build
5031shift
5032build_cpu=$1
5033build_vendor=$2
5034shift; shift
5035# Remember, the first character of IFS is used to create $*,
5036# except with old shells:
5037build_os=$*
5038IFS=$ac_save_IFS
5039case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5040
5041
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5043$as_echo_n "checking host system type... " >&6; }
5044if ${ac_cv_host+:} false; then :
5045  $as_echo_n "(cached) " >&6
5046else
5047  if test "x$host_alias" = x; then
5048  ac_cv_host=$ac_cv_build
5049else
5050  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5051    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5052fi
5053
5054fi
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5056$as_echo "$ac_cv_host" >&6; }
5057case $ac_cv_host in
5058*-*-*) ;;
5059*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5060esac
5061host=$ac_cv_host
5062ac_save_IFS=$IFS; IFS='-'
5063set x $ac_cv_host
5064shift
5065host_cpu=$1
5066host_vendor=$2
5067shift; shift
5068# Remember, the first character of IFS is used to create $*,
5069# except with old shells:
5070host_os=$*
5071IFS=$ac_save_IFS
5072case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5073
5074
5075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5076$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5077if ${ac_cv_path_SED+:} false; then :
5078  $as_echo_n "(cached) " >&6
5079else
5080            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5081     for ac_i in 1 2 3 4 5 6 7; do
5082       ac_script="$ac_script$as_nl$ac_script"
5083     done
5084     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5085     { ac_script=; unset ac_script;}
5086     if test -z "$SED"; then
5087  ac_path_SED_found=false
5088  # Loop through the user's path and test for each of PROGNAME-LIST
5089  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090for as_dir in $PATH
5091do
5092  IFS=$as_save_IFS
5093  test -z "$as_dir" && as_dir=.
5094    for ac_prog in sed gsed; do
5095    for ac_exec_ext in '' $ac_executable_extensions; do
5096      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5097      as_fn_executable_p "$ac_path_SED" || continue
5098# Check for GNU ac_path_SED and select it if it is found.
5099  # Check for GNU $ac_path_SED
5100case `"$ac_path_SED" --version 2>&1` in
5101*GNU*)
5102  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5103*)
5104  ac_count=0
5105  $as_echo_n 0123456789 >"conftest.in"
5106  while :
5107  do
5108    cat "conftest.in" "conftest.in" >"conftest.tmp"
5109    mv "conftest.tmp" "conftest.in"
5110    cp "conftest.in" "conftest.nl"
5111    $as_echo '' >> "conftest.nl"
5112    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5113    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5114    as_fn_arith $ac_count + 1 && ac_count=$as_val
5115    if test $ac_count -gt ${ac_path_SED_max-0}; then
5116      # Best one so far, save it but keep looking for a better one
5117      ac_cv_path_SED="$ac_path_SED"
5118      ac_path_SED_max=$ac_count
5119    fi
5120    # 10*(2^10) chars as input seems more than enough
5121    test $ac_count -gt 10 && break
5122  done
5123  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5124esac
5125
5126      $ac_path_SED_found && break 3
5127    done
5128  done
5129  done
5130IFS=$as_save_IFS
5131  if test -z "$ac_cv_path_SED"; then
5132    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5133  fi
5134else
5135  ac_cv_path_SED=$SED
5136fi
5137
5138fi
5139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5140$as_echo "$ac_cv_path_SED" >&6; }
5141 SED="$ac_cv_path_SED"
5142  rm -f conftest.sed
5143
5144
5145
5146
5147
5148
5149# Check whether --enable-selective-werror was given.
5150if test "${enable_selective_werror+set}" = set; then :
5151  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5152else
5153  SELECTIVE_WERROR=yes
5154fi
5155
5156
5157
5158
5159
5160# -v is too short to test reliably with XORG_TESTSET_CFLAG
5161if test "x$SUNCC" = "xyes"; then
5162    BASE_CFLAGS="-v"
5163else
5164    BASE_CFLAGS=""
5165fi
5166
5167# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181xorg_testset_save_CFLAGS="$CFLAGS"
5182
5183if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5184	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5185	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5186$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5187if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5188  $as_echo_n "(cached) " >&6
5189else
5190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191/* end confdefs.h.  */
5192int i;
5193_ACEOF
5194if ac_fn_c_try_compile "$LINENO"; then :
5195  xorg_cv_cc_flag_unknown_warning_option=yes
5196else
5197  xorg_cv_cc_flag_unknown_warning_option=no
5198fi
5199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5200fi
5201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5202$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5203	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5204	CFLAGS="$xorg_testset_save_CFLAGS"
5205fi
5206
5207if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5208	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5209		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5210	fi
5211	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5212	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5213$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5214if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5215  $as_echo_n "(cached) " >&6
5216else
5217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218/* end confdefs.h.  */
5219int i;
5220_ACEOF
5221if ac_fn_c_try_compile "$LINENO"; then :
5222  xorg_cv_cc_flag_unused_command_line_argument=yes
5223else
5224  xorg_cv_cc_flag_unused_command_line_argument=no
5225fi
5226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5227fi
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5229$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5230	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5231	CFLAGS="$xorg_testset_save_CFLAGS"
5232fi
5233
5234found="no"
5235
5236	if test $found = "no" ; then
5237		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5238			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5239		fi
5240
5241		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5242			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5243		fi
5244
5245		CFLAGS="$CFLAGS -Wall"
5246
5247		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5248$as_echo_n "checking if $CC supports -Wall... " >&6; }
5249		cacheid=xorg_cv_cc_flag__Wall
5250		if eval \${$cacheid+:} false; then :
5251  $as_echo_n "(cached) " >&6
5252else
5253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254/* end confdefs.h.  */
5255int i;
5256int
5257main ()
5258{
5259
5260  ;
5261  return 0;
5262}
5263_ACEOF
5264if ac_fn_c_try_link "$LINENO"; then :
5265  eval $cacheid=yes
5266else
5267  eval $cacheid=no
5268fi
5269rm -f core conftest.err conftest.$ac_objext \
5270    conftest$ac_exeext conftest.$ac_ext
5271fi
5272
5273
5274		CFLAGS="$xorg_testset_save_CFLAGS"
5275
5276		eval supported=\$$cacheid
5277		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5278$as_echo "$supported" >&6; }
5279		if test "$supported" = "yes" ; then
5280			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5281			found="yes"
5282		fi
5283	fi
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299xorg_testset_save_CFLAGS="$CFLAGS"
5300
5301if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5302	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5303	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5304$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5305if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5306  $as_echo_n "(cached) " >&6
5307else
5308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5309/* end confdefs.h.  */
5310int i;
5311_ACEOF
5312if ac_fn_c_try_compile "$LINENO"; then :
5313  xorg_cv_cc_flag_unknown_warning_option=yes
5314else
5315  xorg_cv_cc_flag_unknown_warning_option=no
5316fi
5317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5318fi
5319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5320$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5321	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5322	CFLAGS="$xorg_testset_save_CFLAGS"
5323fi
5324
5325if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5326	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5327		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5328	fi
5329	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5330	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5331$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5332if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5333  $as_echo_n "(cached) " >&6
5334else
5335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336/* end confdefs.h.  */
5337int i;
5338_ACEOF
5339if ac_fn_c_try_compile "$LINENO"; then :
5340  xorg_cv_cc_flag_unused_command_line_argument=yes
5341else
5342  xorg_cv_cc_flag_unused_command_line_argument=no
5343fi
5344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5345fi
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5347$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5348	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5349	CFLAGS="$xorg_testset_save_CFLAGS"
5350fi
5351
5352found="no"
5353
5354	if test $found = "no" ; then
5355		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5356			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5357		fi
5358
5359		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5360			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5361		fi
5362
5363		CFLAGS="$CFLAGS -Wpointer-arith"
5364
5365		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5366$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5367		cacheid=xorg_cv_cc_flag__Wpointer_arith
5368		if eval \${$cacheid+:} false; then :
5369  $as_echo_n "(cached) " >&6
5370else
5371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372/* end confdefs.h.  */
5373int i;
5374int
5375main ()
5376{
5377
5378  ;
5379  return 0;
5380}
5381_ACEOF
5382if ac_fn_c_try_link "$LINENO"; then :
5383  eval $cacheid=yes
5384else
5385  eval $cacheid=no
5386fi
5387rm -f core conftest.err conftest.$ac_objext \
5388    conftest$ac_exeext conftest.$ac_ext
5389fi
5390
5391
5392		CFLAGS="$xorg_testset_save_CFLAGS"
5393
5394		eval supported=\$$cacheid
5395		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5396$as_echo "$supported" >&6; }
5397		if test "$supported" = "yes" ; then
5398			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5399			found="yes"
5400		fi
5401	fi
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417xorg_testset_save_CFLAGS="$CFLAGS"
5418
5419if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5420	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5421	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5422$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5423if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5424  $as_echo_n "(cached) " >&6
5425else
5426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427/* end confdefs.h.  */
5428int i;
5429_ACEOF
5430if ac_fn_c_try_compile "$LINENO"; then :
5431  xorg_cv_cc_flag_unknown_warning_option=yes
5432else
5433  xorg_cv_cc_flag_unknown_warning_option=no
5434fi
5435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5436fi
5437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5438$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5439	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5440	CFLAGS="$xorg_testset_save_CFLAGS"
5441fi
5442
5443if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5444	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5445		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5446	fi
5447	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5448	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5449$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5450if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5451  $as_echo_n "(cached) " >&6
5452else
5453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454/* end confdefs.h.  */
5455int i;
5456_ACEOF
5457if ac_fn_c_try_compile "$LINENO"; then :
5458  xorg_cv_cc_flag_unused_command_line_argument=yes
5459else
5460  xorg_cv_cc_flag_unused_command_line_argument=no
5461fi
5462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463fi
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5465$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5466	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5467	CFLAGS="$xorg_testset_save_CFLAGS"
5468fi
5469
5470found="no"
5471
5472	if test $found = "no" ; then
5473		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5474			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5475		fi
5476
5477		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5478			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5479		fi
5480
5481		CFLAGS="$CFLAGS -Wmissing-declarations"
5482
5483		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5484$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5485		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5486		if eval \${$cacheid+:} false; then :
5487  $as_echo_n "(cached) " >&6
5488else
5489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5490/* end confdefs.h.  */
5491int i;
5492int
5493main ()
5494{
5495
5496  ;
5497  return 0;
5498}
5499_ACEOF
5500if ac_fn_c_try_link "$LINENO"; then :
5501  eval $cacheid=yes
5502else
5503  eval $cacheid=no
5504fi
5505rm -f core conftest.err conftest.$ac_objext \
5506    conftest$ac_exeext conftest.$ac_ext
5507fi
5508
5509
5510		CFLAGS="$xorg_testset_save_CFLAGS"
5511
5512		eval supported=\$$cacheid
5513		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5514$as_echo "$supported" >&6; }
5515		if test "$supported" = "yes" ; then
5516			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5517			found="yes"
5518		fi
5519	fi
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535xorg_testset_save_CFLAGS="$CFLAGS"
5536
5537if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5538	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5539	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5540$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5541if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5542  $as_echo_n "(cached) " >&6
5543else
5544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545/* end confdefs.h.  */
5546int i;
5547_ACEOF
5548if ac_fn_c_try_compile "$LINENO"; then :
5549  xorg_cv_cc_flag_unknown_warning_option=yes
5550else
5551  xorg_cv_cc_flag_unknown_warning_option=no
5552fi
5553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5554fi
5555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5556$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5557	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5558	CFLAGS="$xorg_testset_save_CFLAGS"
5559fi
5560
5561if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5562	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5563		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5564	fi
5565	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5566	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5567$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5568if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5569  $as_echo_n "(cached) " >&6
5570else
5571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572/* end confdefs.h.  */
5573int i;
5574_ACEOF
5575if ac_fn_c_try_compile "$LINENO"; then :
5576  xorg_cv_cc_flag_unused_command_line_argument=yes
5577else
5578  xorg_cv_cc_flag_unused_command_line_argument=no
5579fi
5580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581fi
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5583$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5584	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5585	CFLAGS="$xorg_testset_save_CFLAGS"
5586fi
5587
5588found="no"
5589
5590	if test $found = "no" ; then
5591		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5592			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5593		fi
5594
5595		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5596			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5597		fi
5598
5599		CFLAGS="$CFLAGS -Wformat=2"
5600
5601		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5602$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5603		cacheid=xorg_cv_cc_flag__Wformat_2
5604		if eval \${$cacheid+:} false; then :
5605  $as_echo_n "(cached) " >&6
5606else
5607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608/* end confdefs.h.  */
5609int i;
5610int
5611main ()
5612{
5613
5614  ;
5615  return 0;
5616}
5617_ACEOF
5618if ac_fn_c_try_link "$LINENO"; then :
5619  eval $cacheid=yes
5620else
5621  eval $cacheid=no
5622fi
5623rm -f core conftest.err conftest.$ac_objext \
5624    conftest$ac_exeext conftest.$ac_ext
5625fi
5626
5627
5628		CFLAGS="$xorg_testset_save_CFLAGS"
5629
5630		eval supported=\$$cacheid
5631		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5632$as_echo "$supported" >&6; }
5633		if test "$supported" = "yes" ; then
5634			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5635			found="yes"
5636		fi
5637	fi
5638
5639	if test $found = "no" ; then
5640		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5641			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5642		fi
5643
5644		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5645			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5646		fi
5647
5648		CFLAGS="$CFLAGS -Wformat"
5649
5650		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5651$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5652		cacheid=xorg_cv_cc_flag__Wformat
5653		if eval \${$cacheid+:} false; then :
5654  $as_echo_n "(cached) " >&6
5655else
5656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657/* end confdefs.h.  */
5658int i;
5659int
5660main ()
5661{
5662
5663  ;
5664  return 0;
5665}
5666_ACEOF
5667if ac_fn_c_try_link "$LINENO"; then :
5668  eval $cacheid=yes
5669else
5670  eval $cacheid=no
5671fi
5672rm -f core conftest.err conftest.$ac_objext \
5673    conftest$ac_exeext conftest.$ac_ext
5674fi
5675
5676
5677		CFLAGS="$xorg_testset_save_CFLAGS"
5678
5679		eval supported=\$$cacheid
5680		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5681$as_echo "$supported" >&6; }
5682		if test "$supported" = "yes" ; then
5683			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5684			found="yes"
5685		fi
5686	fi
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704xorg_testset_save_CFLAGS="$CFLAGS"
5705
5706if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5707	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5708	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5709$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5710if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5711  $as_echo_n "(cached) " >&6
5712else
5713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714/* end confdefs.h.  */
5715int i;
5716_ACEOF
5717if ac_fn_c_try_compile "$LINENO"; then :
5718  xorg_cv_cc_flag_unknown_warning_option=yes
5719else
5720  xorg_cv_cc_flag_unknown_warning_option=no
5721fi
5722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5723fi
5724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5725$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5726	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5727	CFLAGS="$xorg_testset_save_CFLAGS"
5728fi
5729
5730if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5731	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5732		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5733	fi
5734	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5735	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5736$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5737if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5738  $as_echo_n "(cached) " >&6
5739else
5740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741/* end confdefs.h.  */
5742int i;
5743_ACEOF
5744if ac_fn_c_try_compile "$LINENO"; then :
5745  xorg_cv_cc_flag_unused_command_line_argument=yes
5746else
5747  xorg_cv_cc_flag_unused_command_line_argument=no
5748fi
5749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5750fi
5751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5752$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5753	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5754	CFLAGS="$xorg_testset_save_CFLAGS"
5755fi
5756
5757found="no"
5758
5759	if test $found = "no" ; then
5760		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5761			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5762		fi
5763
5764		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5765			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5766		fi
5767
5768		CFLAGS="$CFLAGS -Wstrict-prototypes"
5769
5770		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5771$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5772		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5773		if eval \${$cacheid+:} false; then :
5774  $as_echo_n "(cached) " >&6
5775else
5776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777/* end confdefs.h.  */
5778int i;
5779int
5780main ()
5781{
5782
5783  ;
5784  return 0;
5785}
5786_ACEOF
5787if ac_fn_c_try_link "$LINENO"; then :
5788  eval $cacheid=yes
5789else
5790  eval $cacheid=no
5791fi
5792rm -f core conftest.err conftest.$ac_objext \
5793    conftest$ac_exeext conftest.$ac_ext
5794fi
5795
5796
5797		CFLAGS="$xorg_testset_save_CFLAGS"
5798
5799		eval supported=\$$cacheid
5800		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5801$as_echo "$supported" >&6; }
5802		if test "$supported" = "yes" ; then
5803			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5804			found="yes"
5805		fi
5806	fi
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822xorg_testset_save_CFLAGS="$CFLAGS"
5823
5824if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5825	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5826	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5827$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5828if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5829  $as_echo_n "(cached) " >&6
5830else
5831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832/* end confdefs.h.  */
5833int i;
5834_ACEOF
5835if ac_fn_c_try_compile "$LINENO"; then :
5836  xorg_cv_cc_flag_unknown_warning_option=yes
5837else
5838  xorg_cv_cc_flag_unknown_warning_option=no
5839fi
5840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5841fi
5842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5843$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5844	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5845	CFLAGS="$xorg_testset_save_CFLAGS"
5846fi
5847
5848if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5849	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5850		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5851	fi
5852	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5853	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5854$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5855if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5856  $as_echo_n "(cached) " >&6
5857else
5858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859/* end confdefs.h.  */
5860int i;
5861_ACEOF
5862if ac_fn_c_try_compile "$LINENO"; then :
5863  xorg_cv_cc_flag_unused_command_line_argument=yes
5864else
5865  xorg_cv_cc_flag_unused_command_line_argument=no
5866fi
5867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5868fi
5869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5870$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5871	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5872	CFLAGS="$xorg_testset_save_CFLAGS"
5873fi
5874
5875found="no"
5876
5877	if test $found = "no" ; then
5878		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5879			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5880		fi
5881
5882		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5883			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5884		fi
5885
5886		CFLAGS="$CFLAGS -Wmissing-prototypes"
5887
5888		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5889$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5890		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5891		if eval \${$cacheid+:} false; then :
5892  $as_echo_n "(cached) " >&6
5893else
5894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895/* end confdefs.h.  */
5896int i;
5897int
5898main ()
5899{
5900
5901  ;
5902  return 0;
5903}
5904_ACEOF
5905if ac_fn_c_try_link "$LINENO"; then :
5906  eval $cacheid=yes
5907else
5908  eval $cacheid=no
5909fi
5910rm -f core conftest.err conftest.$ac_objext \
5911    conftest$ac_exeext conftest.$ac_ext
5912fi
5913
5914
5915		CFLAGS="$xorg_testset_save_CFLAGS"
5916
5917		eval supported=\$$cacheid
5918		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5919$as_echo "$supported" >&6; }
5920		if test "$supported" = "yes" ; then
5921			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5922			found="yes"
5923		fi
5924	fi
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940xorg_testset_save_CFLAGS="$CFLAGS"
5941
5942if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5943	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5944	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5945$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5946if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5947  $as_echo_n "(cached) " >&6
5948else
5949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950/* end confdefs.h.  */
5951int i;
5952_ACEOF
5953if ac_fn_c_try_compile "$LINENO"; then :
5954  xorg_cv_cc_flag_unknown_warning_option=yes
5955else
5956  xorg_cv_cc_flag_unknown_warning_option=no
5957fi
5958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5959fi
5960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5961$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5962	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5963	CFLAGS="$xorg_testset_save_CFLAGS"
5964fi
5965
5966if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5967	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5968		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5969	fi
5970	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5971	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5972$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5973if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5974  $as_echo_n "(cached) " >&6
5975else
5976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5977/* end confdefs.h.  */
5978int i;
5979_ACEOF
5980if ac_fn_c_try_compile "$LINENO"; then :
5981  xorg_cv_cc_flag_unused_command_line_argument=yes
5982else
5983  xorg_cv_cc_flag_unused_command_line_argument=no
5984fi
5985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986fi
5987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5988$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5989	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5990	CFLAGS="$xorg_testset_save_CFLAGS"
5991fi
5992
5993found="no"
5994
5995	if test $found = "no" ; then
5996		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5997			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5998		fi
5999
6000		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6001			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6002		fi
6003
6004		CFLAGS="$CFLAGS -Wnested-externs"
6005
6006		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6007$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
6008		cacheid=xorg_cv_cc_flag__Wnested_externs
6009		if eval \${$cacheid+:} false; then :
6010  $as_echo_n "(cached) " >&6
6011else
6012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013/* end confdefs.h.  */
6014int i;
6015int
6016main ()
6017{
6018
6019  ;
6020  return 0;
6021}
6022_ACEOF
6023if ac_fn_c_try_link "$LINENO"; then :
6024  eval $cacheid=yes
6025else
6026  eval $cacheid=no
6027fi
6028rm -f core conftest.err conftest.$ac_objext \
6029    conftest$ac_exeext conftest.$ac_ext
6030fi
6031
6032
6033		CFLAGS="$xorg_testset_save_CFLAGS"
6034
6035		eval supported=\$$cacheid
6036		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6037$as_echo "$supported" >&6; }
6038		if test "$supported" = "yes" ; then
6039			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6040			found="yes"
6041		fi
6042	fi
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058xorg_testset_save_CFLAGS="$CFLAGS"
6059
6060if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6061	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6062	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6063$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6064if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6065  $as_echo_n "(cached) " >&6
6066else
6067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068/* end confdefs.h.  */
6069int i;
6070_ACEOF
6071if ac_fn_c_try_compile "$LINENO"; then :
6072  xorg_cv_cc_flag_unknown_warning_option=yes
6073else
6074  xorg_cv_cc_flag_unknown_warning_option=no
6075fi
6076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6077fi
6078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6079$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6080	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6081	CFLAGS="$xorg_testset_save_CFLAGS"
6082fi
6083
6084if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6085	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6086		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6087	fi
6088	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6089	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6090$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6091if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6092  $as_echo_n "(cached) " >&6
6093else
6094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6095/* end confdefs.h.  */
6096int i;
6097_ACEOF
6098if ac_fn_c_try_compile "$LINENO"; then :
6099  xorg_cv_cc_flag_unused_command_line_argument=yes
6100else
6101  xorg_cv_cc_flag_unused_command_line_argument=no
6102fi
6103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6104fi
6105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6106$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6107	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6108	CFLAGS="$xorg_testset_save_CFLAGS"
6109fi
6110
6111found="no"
6112
6113	if test $found = "no" ; then
6114		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6115			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6116		fi
6117
6118		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6119			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6120		fi
6121
6122		CFLAGS="$CFLAGS -Wbad-function-cast"
6123
6124		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6125$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
6126		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6127		if eval \${$cacheid+:} false; then :
6128  $as_echo_n "(cached) " >&6
6129else
6130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131/* end confdefs.h.  */
6132int i;
6133int
6134main ()
6135{
6136
6137  ;
6138  return 0;
6139}
6140_ACEOF
6141if ac_fn_c_try_link "$LINENO"; then :
6142  eval $cacheid=yes
6143else
6144  eval $cacheid=no
6145fi
6146rm -f core conftest.err conftest.$ac_objext \
6147    conftest$ac_exeext conftest.$ac_ext
6148fi
6149
6150
6151		CFLAGS="$xorg_testset_save_CFLAGS"
6152
6153		eval supported=\$$cacheid
6154		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6155$as_echo "$supported" >&6; }
6156		if test "$supported" = "yes" ; then
6157			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6158			found="yes"
6159		fi
6160	fi
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176xorg_testset_save_CFLAGS="$CFLAGS"
6177
6178if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6179	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6180	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6181$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6182if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6183  $as_echo_n "(cached) " >&6
6184else
6185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186/* end confdefs.h.  */
6187int i;
6188_ACEOF
6189if ac_fn_c_try_compile "$LINENO"; then :
6190  xorg_cv_cc_flag_unknown_warning_option=yes
6191else
6192  xorg_cv_cc_flag_unknown_warning_option=no
6193fi
6194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6195fi
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6197$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6198	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6199	CFLAGS="$xorg_testset_save_CFLAGS"
6200fi
6201
6202if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6203	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6204		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6205	fi
6206	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6207	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6208$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6209if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6210  $as_echo_n "(cached) " >&6
6211else
6212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6213/* end confdefs.h.  */
6214int i;
6215_ACEOF
6216if ac_fn_c_try_compile "$LINENO"; then :
6217  xorg_cv_cc_flag_unused_command_line_argument=yes
6218else
6219  xorg_cv_cc_flag_unused_command_line_argument=no
6220fi
6221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6222fi
6223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6224$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6225	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6226	CFLAGS="$xorg_testset_save_CFLAGS"
6227fi
6228
6229found="no"
6230
6231	if test $found = "no" ; then
6232		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6233			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6234		fi
6235
6236		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6237			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6238		fi
6239
6240		CFLAGS="$CFLAGS -Wold-style-definition"
6241
6242		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6243$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
6244		cacheid=xorg_cv_cc_flag__Wold_style_definition
6245		if eval \${$cacheid+:} false; then :
6246  $as_echo_n "(cached) " >&6
6247else
6248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249/* end confdefs.h.  */
6250int i;
6251int
6252main ()
6253{
6254
6255  ;
6256  return 0;
6257}
6258_ACEOF
6259if ac_fn_c_try_link "$LINENO"; then :
6260  eval $cacheid=yes
6261else
6262  eval $cacheid=no
6263fi
6264rm -f core conftest.err conftest.$ac_objext \
6265    conftest$ac_exeext conftest.$ac_ext
6266fi
6267
6268
6269		CFLAGS="$xorg_testset_save_CFLAGS"
6270
6271		eval supported=\$$cacheid
6272		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6273$as_echo "$supported" >&6; }
6274		if test "$supported" = "yes" ; then
6275			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6276			found="yes"
6277		fi
6278	fi
6279
6280	if test $found = "no" ; then
6281		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6282			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6283		fi
6284
6285		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6286			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6287		fi
6288
6289		CFLAGS="$CFLAGS -fd"
6290
6291		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6292$as_echo_n "checking if $CC supports -fd... " >&6; }
6293		cacheid=xorg_cv_cc_flag__fd
6294		if eval \${$cacheid+:} false; then :
6295  $as_echo_n "(cached) " >&6
6296else
6297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298/* end confdefs.h.  */
6299int i;
6300int
6301main ()
6302{
6303
6304  ;
6305  return 0;
6306}
6307_ACEOF
6308if ac_fn_c_try_link "$LINENO"; then :
6309  eval $cacheid=yes
6310else
6311  eval $cacheid=no
6312fi
6313rm -f core conftest.err conftest.$ac_objext \
6314    conftest$ac_exeext conftest.$ac_ext
6315fi
6316
6317
6318		CFLAGS="$xorg_testset_save_CFLAGS"
6319
6320		eval supported=\$$cacheid
6321		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6322$as_echo "$supported" >&6; }
6323		if test "$supported" = "yes" ; then
6324			BASE_CFLAGS="$BASE_CFLAGS -fd"
6325			found="yes"
6326		fi
6327	fi
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343xorg_testset_save_CFLAGS="$CFLAGS"
6344
6345if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6346	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6347	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6348$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6349if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6350  $as_echo_n "(cached) " >&6
6351else
6352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6353/* end confdefs.h.  */
6354int i;
6355_ACEOF
6356if ac_fn_c_try_compile "$LINENO"; then :
6357  xorg_cv_cc_flag_unknown_warning_option=yes
6358else
6359  xorg_cv_cc_flag_unknown_warning_option=no
6360fi
6361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6362fi
6363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6364$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6365	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6366	CFLAGS="$xorg_testset_save_CFLAGS"
6367fi
6368
6369if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6370	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6371		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6372	fi
6373	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6374	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6375$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6376if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6377  $as_echo_n "(cached) " >&6
6378else
6379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6380/* end confdefs.h.  */
6381int i;
6382_ACEOF
6383if ac_fn_c_try_compile "$LINENO"; then :
6384  xorg_cv_cc_flag_unused_command_line_argument=yes
6385else
6386  xorg_cv_cc_flag_unused_command_line_argument=no
6387fi
6388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6389fi
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6391$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6392	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6393	CFLAGS="$xorg_testset_save_CFLAGS"
6394fi
6395
6396found="no"
6397
6398	if test $found = "no" ; then
6399		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6400			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6401		fi
6402
6403		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6404			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6405		fi
6406
6407		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6408
6409		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6410$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6411		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6412		if eval \${$cacheid+:} false; then :
6413  $as_echo_n "(cached) " >&6
6414else
6415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416/* end confdefs.h.  */
6417int i;
6418int
6419main ()
6420{
6421
6422  ;
6423  return 0;
6424}
6425_ACEOF
6426if ac_fn_c_try_link "$LINENO"; then :
6427  eval $cacheid=yes
6428else
6429  eval $cacheid=no
6430fi
6431rm -f core conftest.err conftest.$ac_objext \
6432    conftest$ac_exeext conftest.$ac_ext
6433fi
6434
6435
6436		CFLAGS="$xorg_testset_save_CFLAGS"
6437
6438		eval supported=\$$cacheid
6439		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6440$as_echo "$supported" >&6; }
6441		if test "$supported" = "yes" ; then
6442			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6443			found="yes"
6444		fi
6445	fi
6446
6447
6448
6449
6450
6451# This chunk adds additional warnings that could catch undesired effects.
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465xorg_testset_save_CFLAGS="$CFLAGS"
6466
6467if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6468	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6469	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6470$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6471if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6472  $as_echo_n "(cached) " >&6
6473else
6474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6475/* end confdefs.h.  */
6476int i;
6477_ACEOF
6478if ac_fn_c_try_compile "$LINENO"; then :
6479  xorg_cv_cc_flag_unknown_warning_option=yes
6480else
6481  xorg_cv_cc_flag_unknown_warning_option=no
6482fi
6483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6484fi
6485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6486$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6487	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6488	CFLAGS="$xorg_testset_save_CFLAGS"
6489fi
6490
6491if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6492	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6493		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6494	fi
6495	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6496	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6497$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6498if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6499  $as_echo_n "(cached) " >&6
6500else
6501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502/* end confdefs.h.  */
6503int i;
6504_ACEOF
6505if ac_fn_c_try_compile "$LINENO"; then :
6506  xorg_cv_cc_flag_unused_command_line_argument=yes
6507else
6508  xorg_cv_cc_flag_unused_command_line_argument=no
6509fi
6510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6511fi
6512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6513$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6514	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6515	CFLAGS="$xorg_testset_save_CFLAGS"
6516fi
6517
6518found="no"
6519
6520	if test $found = "no" ; then
6521		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6522			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6523		fi
6524
6525		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6526			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6527		fi
6528
6529		CFLAGS="$CFLAGS -Wunused"
6530
6531		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6532$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6533		cacheid=xorg_cv_cc_flag__Wunused
6534		if eval \${$cacheid+:} false; then :
6535  $as_echo_n "(cached) " >&6
6536else
6537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538/* end confdefs.h.  */
6539int i;
6540int
6541main ()
6542{
6543
6544  ;
6545  return 0;
6546}
6547_ACEOF
6548if ac_fn_c_try_link "$LINENO"; then :
6549  eval $cacheid=yes
6550else
6551  eval $cacheid=no
6552fi
6553rm -f core conftest.err conftest.$ac_objext \
6554    conftest$ac_exeext conftest.$ac_ext
6555fi
6556
6557
6558		CFLAGS="$xorg_testset_save_CFLAGS"
6559
6560		eval supported=\$$cacheid
6561		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6562$as_echo "$supported" >&6; }
6563		if test "$supported" = "yes" ; then
6564			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6565			found="yes"
6566		fi
6567	fi
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583xorg_testset_save_CFLAGS="$CFLAGS"
6584
6585if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6586	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6587	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6588$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6589if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6590  $as_echo_n "(cached) " >&6
6591else
6592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6593/* end confdefs.h.  */
6594int i;
6595_ACEOF
6596if ac_fn_c_try_compile "$LINENO"; then :
6597  xorg_cv_cc_flag_unknown_warning_option=yes
6598else
6599  xorg_cv_cc_flag_unknown_warning_option=no
6600fi
6601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6602fi
6603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6604$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6605	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6606	CFLAGS="$xorg_testset_save_CFLAGS"
6607fi
6608
6609if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6610	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6611		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6612	fi
6613	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6614	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6615$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6616if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6617  $as_echo_n "(cached) " >&6
6618else
6619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620/* end confdefs.h.  */
6621int i;
6622_ACEOF
6623if ac_fn_c_try_compile "$LINENO"; then :
6624  xorg_cv_cc_flag_unused_command_line_argument=yes
6625else
6626  xorg_cv_cc_flag_unused_command_line_argument=no
6627fi
6628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6629fi
6630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6631$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6632	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6633	CFLAGS="$xorg_testset_save_CFLAGS"
6634fi
6635
6636found="no"
6637
6638	if test $found = "no" ; then
6639		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6640			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6641		fi
6642
6643		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6644			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6645		fi
6646
6647		CFLAGS="$CFLAGS -Wuninitialized"
6648
6649		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6650$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6651		cacheid=xorg_cv_cc_flag__Wuninitialized
6652		if eval \${$cacheid+:} false; then :
6653  $as_echo_n "(cached) " >&6
6654else
6655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656/* end confdefs.h.  */
6657int i;
6658int
6659main ()
6660{
6661
6662  ;
6663  return 0;
6664}
6665_ACEOF
6666if ac_fn_c_try_link "$LINENO"; then :
6667  eval $cacheid=yes
6668else
6669  eval $cacheid=no
6670fi
6671rm -f core conftest.err conftest.$ac_objext \
6672    conftest$ac_exeext conftest.$ac_ext
6673fi
6674
6675
6676		CFLAGS="$xorg_testset_save_CFLAGS"
6677
6678		eval supported=\$$cacheid
6679		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6680$as_echo "$supported" >&6; }
6681		if test "$supported" = "yes" ; then
6682			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6683			found="yes"
6684		fi
6685	fi
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701xorg_testset_save_CFLAGS="$CFLAGS"
6702
6703if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6704	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6705	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6706$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6707if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6708  $as_echo_n "(cached) " >&6
6709else
6710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6711/* end confdefs.h.  */
6712int i;
6713_ACEOF
6714if ac_fn_c_try_compile "$LINENO"; then :
6715  xorg_cv_cc_flag_unknown_warning_option=yes
6716else
6717  xorg_cv_cc_flag_unknown_warning_option=no
6718fi
6719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6720fi
6721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6722$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6723	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6724	CFLAGS="$xorg_testset_save_CFLAGS"
6725fi
6726
6727if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6728	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6729		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6730	fi
6731	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6732	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6733$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6734if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6735  $as_echo_n "(cached) " >&6
6736else
6737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6738/* end confdefs.h.  */
6739int i;
6740_ACEOF
6741if ac_fn_c_try_compile "$LINENO"; then :
6742  xorg_cv_cc_flag_unused_command_line_argument=yes
6743else
6744  xorg_cv_cc_flag_unused_command_line_argument=no
6745fi
6746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6747fi
6748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6749$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6750	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6751	CFLAGS="$xorg_testset_save_CFLAGS"
6752fi
6753
6754found="no"
6755
6756	if test $found = "no" ; then
6757		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6758			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6759		fi
6760
6761		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6762			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6763		fi
6764
6765		CFLAGS="$CFLAGS -Wshadow"
6766
6767		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6768$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6769		cacheid=xorg_cv_cc_flag__Wshadow
6770		if eval \${$cacheid+:} false; then :
6771  $as_echo_n "(cached) " >&6
6772else
6773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6774/* end confdefs.h.  */
6775int i;
6776int
6777main ()
6778{
6779
6780  ;
6781  return 0;
6782}
6783_ACEOF
6784if ac_fn_c_try_link "$LINENO"; then :
6785  eval $cacheid=yes
6786else
6787  eval $cacheid=no
6788fi
6789rm -f core conftest.err conftest.$ac_objext \
6790    conftest$ac_exeext conftest.$ac_ext
6791fi
6792
6793
6794		CFLAGS="$xorg_testset_save_CFLAGS"
6795
6796		eval supported=\$$cacheid
6797		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6798$as_echo "$supported" >&6; }
6799		if test "$supported" = "yes" ; then
6800			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6801			found="yes"
6802		fi
6803	fi
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819xorg_testset_save_CFLAGS="$CFLAGS"
6820
6821if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6822	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6823	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6824$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6825if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6826  $as_echo_n "(cached) " >&6
6827else
6828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829/* end confdefs.h.  */
6830int i;
6831_ACEOF
6832if ac_fn_c_try_compile "$LINENO"; then :
6833  xorg_cv_cc_flag_unknown_warning_option=yes
6834else
6835  xorg_cv_cc_flag_unknown_warning_option=no
6836fi
6837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6838fi
6839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6840$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6841	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6842	CFLAGS="$xorg_testset_save_CFLAGS"
6843fi
6844
6845if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6846	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6847		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6848	fi
6849	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6850	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6851$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6852if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6853  $as_echo_n "(cached) " >&6
6854else
6855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856/* end confdefs.h.  */
6857int i;
6858_ACEOF
6859if ac_fn_c_try_compile "$LINENO"; then :
6860  xorg_cv_cc_flag_unused_command_line_argument=yes
6861else
6862  xorg_cv_cc_flag_unused_command_line_argument=no
6863fi
6864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6865fi
6866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6867$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6868	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6869	CFLAGS="$xorg_testset_save_CFLAGS"
6870fi
6871
6872found="no"
6873
6874	if test $found = "no" ; then
6875		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6876			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6877		fi
6878
6879		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6880			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6881		fi
6882
6883		CFLAGS="$CFLAGS -Wmissing-noreturn"
6884
6885		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6886$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6887		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6888		if eval \${$cacheid+:} false; then :
6889  $as_echo_n "(cached) " >&6
6890else
6891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6892/* end confdefs.h.  */
6893int i;
6894int
6895main ()
6896{
6897
6898  ;
6899  return 0;
6900}
6901_ACEOF
6902if ac_fn_c_try_link "$LINENO"; then :
6903  eval $cacheid=yes
6904else
6905  eval $cacheid=no
6906fi
6907rm -f core conftest.err conftest.$ac_objext \
6908    conftest$ac_exeext conftest.$ac_ext
6909fi
6910
6911
6912		CFLAGS="$xorg_testset_save_CFLAGS"
6913
6914		eval supported=\$$cacheid
6915		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6916$as_echo "$supported" >&6; }
6917		if test "$supported" = "yes" ; then
6918			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6919			found="yes"
6920		fi
6921	fi
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937xorg_testset_save_CFLAGS="$CFLAGS"
6938
6939if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6940	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6941	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6942$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6943if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6944  $as_echo_n "(cached) " >&6
6945else
6946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6947/* end confdefs.h.  */
6948int i;
6949_ACEOF
6950if ac_fn_c_try_compile "$LINENO"; then :
6951  xorg_cv_cc_flag_unknown_warning_option=yes
6952else
6953  xorg_cv_cc_flag_unknown_warning_option=no
6954fi
6955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6956fi
6957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6958$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6959	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6960	CFLAGS="$xorg_testset_save_CFLAGS"
6961fi
6962
6963if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6964	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6965		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6966	fi
6967	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6968	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6969$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6970if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6971  $as_echo_n "(cached) " >&6
6972else
6973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974/* end confdefs.h.  */
6975int i;
6976_ACEOF
6977if ac_fn_c_try_compile "$LINENO"; then :
6978  xorg_cv_cc_flag_unused_command_line_argument=yes
6979else
6980  xorg_cv_cc_flag_unused_command_line_argument=no
6981fi
6982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6983fi
6984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6985$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6986	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6987	CFLAGS="$xorg_testset_save_CFLAGS"
6988fi
6989
6990found="no"
6991
6992	if test $found = "no" ; then
6993		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6994			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6995		fi
6996
6997		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6998			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6999		fi
7000
7001		CFLAGS="$CFLAGS -Wmissing-format-attribute"
7002
7003		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7004$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7005		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7006		if eval \${$cacheid+:} false; then :
7007  $as_echo_n "(cached) " >&6
7008else
7009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7010/* end confdefs.h.  */
7011int i;
7012int
7013main ()
7014{
7015
7016  ;
7017  return 0;
7018}
7019_ACEOF
7020if ac_fn_c_try_link "$LINENO"; then :
7021  eval $cacheid=yes
7022else
7023  eval $cacheid=no
7024fi
7025rm -f core conftest.err conftest.$ac_objext \
7026    conftest$ac_exeext conftest.$ac_ext
7027fi
7028
7029
7030		CFLAGS="$xorg_testset_save_CFLAGS"
7031
7032		eval supported=\$$cacheid
7033		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7034$as_echo "$supported" >&6; }
7035		if test "$supported" = "yes" ; then
7036			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7037			found="yes"
7038		fi
7039	fi
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055xorg_testset_save_CFLAGS="$CFLAGS"
7056
7057if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7058	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7059	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7060$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7061if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7062  $as_echo_n "(cached) " >&6
7063else
7064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7065/* end confdefs.h.  */
7066int i;
7067_ACEOF
7068if ac_fn_c_try_compile "$LINENO"; then :
7069  xorg_cv_cc_flag_unknown_warning_option=yes
7070else
7071  xorg_cv_cc_flag_unknown_warning_option=no
7072fi
7073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7074fi
7075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7076$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7077	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7078	CFLAGS="$xorg_testset_save_CFLAGS"
7079fi
7080
7081if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7082	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7083		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7084	fi
7085	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7086	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7087$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7088if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7089  $as_echo_n "(cached) " >&6
7090else
7091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7092/* end confdefs.h.  */
7093int i;
7094_ACEOF
7095if ac_fn_c_try_compile "$LINENO"; then :
7096  xorg_cv_cc_flag_unused_command_line_argument=yes
7097else
7098  xorg_cv_cc_flag_unused_command_line_argument=no
7099fi
7100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7101fi
7102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7103$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7104	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7105	CFLAGS="$xorg_testset_save_CFLAGS"
7106fi
7107
7108found="no"
7109
7110	if test $found = "no" ; then
7111		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7112			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7113		fi
7114
7115		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7116			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7117		fi
7118
7119		CFLAGS="$CFLAGS -Wredundant-decls"
7120
7121		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7122$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
7123		cacheid=xorg_cv_cc_flag__Wredundant_decls
7124		if eval \${$cacheid+:} false; then :
7125  $as_echo_n "(cached) " >&6
7126else
7127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128/* end confdefs.h.  */
7129int i;
7130int
7131main ()
7132{
7133
7134  ;
7135  return 0;
7136}
7137_ACEOF
7138if ac_fn_c_try_link "$LINENO"; then :
7139  eval $cacheid=yes
7140else
7141  eval $cacheid=no
7142fi
7143rm -f core conftest.err conftest.$ac_objext \
7144    conftest$ac_exeext conftest.$ac_ext
7145fi
7146
7147
7148		CFLAGS="$xorg_testset_save_CFLAGS"
7149
7150		eval supported=\$$cacheid
7151		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7152$as_echo "$supported" >&6; }
7153		if test "$supported" = "yes" ; then
7154			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7155			found="yes"
7156		fi
7157	fi
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173xorg_testset_save_CFLAGS="$CFLAGS"
7174
7175if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7176	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7177	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7178$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7179if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7180  $as_echo_n "(cached) " >&6
7181else
7182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7183/* end confdefs.h.  */
7184int i;
7185_ACEOF
7186if ac_fn_c_try_compile "$LINENO"; then :
7187  xorg_cv_cc_flag_unknown_warning_option=yes
7188else
7189  xorg_cv_cc_flag_unknown_warning_option=no
7190fi
7191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7192fi
7193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7194$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7195	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7196	CFLAGS="$xorg_testset_save_CFLAGS"
7197fi
7198
7199if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7200	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7201		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7202	fi
7203	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7204	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7205$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7206if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7207  $as_echo_n "(cached) " >&6
7208else
7209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7210/* end confdefs.h.  */
7211int i;
7212_ACEOF
7213if ac_fn_c_try_compile "$LINENO"; then :
7214  xorg_cv_cc_flag_unused_command_line_argument=yes
7215else
7216  xorg_cv_cc_flag_unused_command_line_argument=no
7217fi
7218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7219fi
7220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7221$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7222	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7223	CFLAGS="$xorg_testset_save_CFLAGS"
7224fi
7225
7226found="no"
7227
7228	if test $found = "no" ; then
7229		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7230			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7231		fi
7232
7233		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7234			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7235		fi
7236
7237		CFLAGS="$CFLAGS -Wlogical-op"
7238
7239		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7240$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
7241		cacheid=xorg_cv_cc_flag__Wlogical_op
7242		if eval \${$cacheid+:} false; then :
7243  $as_echo_n "(cached) " >&6
7244else
7245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246/* end confdefs.h.  */
7247int i;
7248int
7249main ()
7250{
7251
7252  ;
7253  return 0;
7254}
7255_ACEOF
7256if ac_fn_c_try_link "$LINENO"; then :
7257  eval $cacheid=yes
7258else
7259  eval $cacheid=no
7260fi
7261rm -f core conftest.err conftest.$ac_objext \
7262    conftest$ac_exeext conftest.$ac_ext
7263fi
7264
7265
7266		CFLAGS="$xorg_testset_save_CFLAGS"
7267
7268		eval supported=\$$cacheid
7269		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7270$as_echo "$supported" >&6; }
7271		if test "$supported" = "yes" ; then
7272			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7273			found="yes"
7274		fi
7275	fi
7276
7277
7278
7279# These are currently disabled because they are noisy.  They will be enabled
7280# in the future once the codebase is sufficiently modernized to silence
7281# them.  For now, I don't want them to drown out the other warnings.
7282# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7283# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7284# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7285
7286# Turn some warnings into errors, so we don't accidently get successful builds
7287# when there are problems that should be fixed.
7288
7289if test "x$SELECTIVE_WERROR" = "xyes" ; then
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303xorg_testset_save_CFLAGS="$CFLAGS"
7304
7305if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7306	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7307	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7308$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7309if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7310  $as_echo_n "(cached) " >&6
7311else
7312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313/* end confdefs.h.  */
7314int i;
7315_ACEOF
7316if ac_fn_c_try_compile "$LINENO"; then :
7317  xorg_cv_cc_flag_unknown_warning_option=yes
7318else
7319  xorg_cv_cc_flag_unknown_warning_option=no
7320fi
7321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7322fi
7323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7324$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7325	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7326	CFLAGS="$xorg_testset_save_CFLAGS"
7327fi
7328
7329if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7330	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7331		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7332	fi
7333	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7334	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7335$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7336if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7337  $as_echo_n "(cached) " >&6
7338else
7339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7340/* end confdefs.h.  */
7341int i;
7342_ACEOF
7343if ac_fn_c_try_compile "$LINENO"; then :
7344  xorg_cv_cc_flag_unused_command_line_argument=yes
7345else
7346  xorg_cv_cc_flag_unused_command_line_argument=no
7347fi
7348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7349fi
7350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7351$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7352	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7353	CFLAGS="$xorg_testset_save_CFLAGS"
7354fi
7355
7356found="no"
7357
7358	if test $found = "no" ; then
7359		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7360			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7361		fi
7362
7363		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7364			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7365		fi
7366
7367		CFLAGS="$CFLAGS -Werror=implicit"
7368
7369		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7370$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7371		cacheid=xorg_cv_cc_flag__Werror_implicit
7372		if eval \${$cacheid+:} false; then :
7373  $as_echo_n "(cached) " >&6
7374else
7375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7376/* end confdefs.h.  */
7377int i;
7378int
7379main ()
7380{
7381
7382  ;
7383  return 0;
7384}
7385_ACEOF
7386if ac_fn_c_try_link "$LINENO"; then :
7387  eval $cacheid=yes
7388else
7389  eval $cacheid=no
7390fi
7391rm -f core conftest.err conftest.$ac_objext \
7392    conftest$ac_exeext conftest.$ac_ext
7393fi
7394
7395
7396		CFLAGS="$xorg_testset_save_CFLAGS"
7397
7398		eval supported=\$$cacheid
7399		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7400$as_echo "$supported" >&6; }
7401		if test "$supported" = "yes" ; then
7402			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7403			found="yes"
7404		fi
7405	fi
7406
7407	if test $found = "no" ; then
7408		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7409			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7410		fi
7411
7412		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7413			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7414		fi
7415
7416		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7417
7418		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7419$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7420		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7421		if eval \${$cacheid+:} false; then :
7422  $as_echo_n "(cached) " >&6
7423else
7424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425/* end confdefs.h.  */
7426int i;
7427int
7428main ()
7429{
7430
7431  ;
7432  return 0;
7433}
7434_ACEOF
7435if ac_fn_c_try_link "$LINENO"; then :
7436  eval $cacheid=yes
7437else
7438  eval $cacheid=no
7439fi
7440rm -f core conftest.err conftest.$ac_objext \
7441    conftest$ac_exeext conftest.$ac_ext
7442fi
7443
7444
7445		CFLAGS="$xorg_testset_save_CFLAGS"
7446
7447		eval supported=\$$cacheid
7448		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7449$as_echo "$supported" >&6; }
7450		if test "$supported" = "yes" ; then
7451			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7452			found="yes"
7453		fi
7454	fi
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470xorg_testset_save_CFLAGS="$CFLAGS"
7471
7472if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7473	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7474	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7475$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7476if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7477  $as_echo_n "(cached) " >&6
7478else
7479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7480/* end confdefs.h.  */
7481int i;
7482_ACEOF
7483if ac_fn_c_try_compile "$LINENO"; then :
7484  xorg_cv_cc_flag_unknown_warning_option=yes
7485else
7486  xorg_cv_cc_flag_unknown_warning_option=no
7487fi
7488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7489fi
7490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7491$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7492	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7493	CFLAGS="$xorg_testset_save_CFLAGS"
7494fi
7495
7496if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7497	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7498		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7499	fi
7500	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7501	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7502$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7503if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7504  $as_echo_n "(cached) " >&6
7505else
7506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507/* end confdefs.h.  */
7508int i;
7509_ACEOF
7510if ac_fn_c_try_compile "$LINENO"; then :
7511  xorg_cv_cc_flag_unused_command_line_argument=yes
7512else
7513  xorg_cv_cc_flag_unused_command_line_argument=no
7514fi
7515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7516fi
7517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7518$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7519	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7520	CFLAGS="$xorg_testset_save_CFLAGS"
7521fi
7522
7523found="no"
7524
7525	if test $found = "no" ; then
7526		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7527			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7528		fi
7529
7530		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7531			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7532		fi
7533
7534		CFLAGS="$CFLAGS -Werror=nonnull"
7535
7536		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7537$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7538		cacheid=xorg_cv_cc_flag__Werror_nonnull
7539		if eval \${$cacheid+:} false; then :
7540  $as_echo_n "(cached) " >&6
7541else
7542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543/* end confdefs.h.  */
7544int i;
7545int
7546main ()
7547{
7548
7549  ;
7550  return 0;
7551}
7552_ACEOF
7553if ac_fn_c_try_link "$LINENO"; then :
7554  eval $cacheid=yes
7555else
7556  eval $cacheid=no
7557fi
7558rm -f core conftest.err conftest.$ac_objext \
7559    conftest$ac_exeext conftest.$ac_ext
7560fi
7561
7562
7563		CFLAGS="$xorg_testset_save_CFLAGS"
7564
7565		eval supported=\$$cacheid
7566		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7567$as_echo "$supported" >&6; }
7568		if test "$supported" = "yes" ; then
7569			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7570			found="yes"
7571		fi
7572	fi
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588xorg_testset_save_CFLAGS="$CFLAGS"
7589
7590if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7591	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7592	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7593$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7594if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7595  $as_echo_n "(cached) " >&6
7596else
7597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7598/* end confdefs.h.  */
7599int i;
7600_ACEOF
7601if ac_fn_c_try_compile "$LINENO"; then :
7602  xorg_cv_cc_flag_unknown_warning_option=yes
7603else
7604  xorg_cv_cc_flag_unknown_warning_option=no
7605fi
7606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7607fi
7608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7609$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7610	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7611	CFLAGS="$xorg_testset_save_CFLAGS"
7612fi
7613
7614if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7615	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7616		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7617	fi
7618	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7619	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7620$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7621if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7622  $as_echo_n "(cached) " >&6
7623else
7624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7625/* end confdefs.h.  */
7626int i;
7627_ACEOF
7628if ac_fn_c_try_compile "$LINENO"; then :
7629  xorg_cv_cc_flag_unused_command_line_argument=yes
7630else
7631  xorg_cv_cc_flag_unused_command_line_argument=no
7632fi
7633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7634fi
7635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7636$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7637	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7638	CFLAGS="$xorg_testset_save_CFLAGS"
7639fi
7640
7641found="no"
7642
7643	if test $found = "no" ; then
7644		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7645			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7646		fi
7647
7648		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7649			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7650		fi
7651
7652		CFLAGS="$CFLAGS -Werror=init-self"
7653
7654		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7655$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7656		cacheid=xorg_cv_cc_flag__Werror_init_self
7657		if eval \${$cacheid+:} false; then :
7658  $as_echo_n "(cached) " >&6
7659else
7660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7661/* end confdefs.h.  */
7662int i;
7663int
7664main ()
7665{
7666
7667  ;
7668  return 0;
7669}
7670_ACEOF
7671if ac_fn_c_try_link "$LINENO"; then :
7672  eval $cacheid=yes
7673else
7674  eval $cacheid=no
7675fi
7676rm -f core conftest.err conftest.$ac_objext \
7677    conftest$ac_exeext conftest.$ac_ext
7678fi
7679
7680
7681		CFLAGS="$xorg_testset_save_CFLAGS"
7682
7683		eval supported=\$$cacheid
7684		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7685$as_echo "$supported" >&6; }
7686		if test "$supported" = "yes" ; then
7687			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7688			found="yes"
7689		fi
7690	fi
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706xorg_testset_save_CFLAGS="$CFLAGS"
7707
7708if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7709	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7710	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7711$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7712if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7713  $as_echo_n "(cached) " >&6
7714else
7715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7716/* end confdefs.h.  */
7717int i;
7718_ACEOF
7719if ac_fn_c_try_compile "$LINENO"; then :
7720  xorg_cv_cc_flag_unknown_warning_option=yes
7721else
7722  xorg_cv_cc_flag_unknown_warning_option=no
7723fi
7724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7725fi
7726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7727$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7728	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7729	CFLAGS="$xorg_testset_save_CFLAGS"
7730fi
7731
7732if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7733	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7734		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7735	fi
7736	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7737	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7738$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7739if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7740  $as_echo_n "(cached) " >&6
7741else
7742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7743/* end confdefs.h.  */
7744int i;
7745_ACEOF
7746if ac_fn_c_try_compile "$LINENO"; then :
7747  xorg_cv_cc_flag_unused_command_line_argument=yes
7748else
7749  xorg_cv_cc_flag_unused_command_line_argument=no
7750fi
7751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7752fi
7753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7754$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7755	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7756	CFLAGS="$xorg_testset_save_CFLAGS"
7757fi
7758
7759found="no"
7760
7761	if test $found = "no" ; then
7762		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7763			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7764		fi
7765
7766		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7767			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7768		fi
7769
7770		CFLAGS="$CFLAGS -Werror=main"
7771
7772		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7773$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7774		cacheid=xorg_cv_cc_flag__Werror_main
7775		if eval \${$cacheid+:} false; then :
7776  $as_echo_n "(cached) " >&6
7777else
7778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779/* end confdefs.h.  */
7780int i;
7781int
7782main ()
7783{
7784
7785  ;
7786  return 0;
7787}
7788_ACEOF
7789if ac_fn_c_try_link "$LINENO"; then :
7790  eval $cacheid=yes
7791else
7792  eval $cacheid=no
7793fi
7794rm -f core conftest.err conftest.$ac_objext \
7795    conftest$ac_exeext conftest.$ac_ext
7796fi
7797
7798
7799		CFLAGS="$xorg_testset_save_CFLAGS"
7800
7801		eval supported=\$$cacheid
7802		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7803$as_echo "$supported" >&6; }
7804		if test "$supported" = "yes" ; then
7805			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7806			found="yes"
7807		fi
7808	fi
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824xorg_testset_save_CFLAGS="$CFLAGS"
7825
7826if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7827	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7828	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7829$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7830if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7831  $as_echo_n "(cached) " >&6
7832else
7833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834/* end confdefs.h.  */
7835int i;
7836_ACEOF
7837if ac_fn_c_try_compile "$LINENO"; then :
7838  xorg_cv_cc_flag_unknown_warning_option=yes
7839else
7840  xorg_cv_cc_flag_unknown_warning_option=no
7841fi
7842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7843fi
7844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7845$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7846	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7847	CFLAGS="$xorg_testset_save_CFLAGS"
7848fi
7849
7850if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7851	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7852		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7853	fi
7854	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7855	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7856$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7857if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7858  $as_echo_n "(cached) " >&6
7859else
7860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861/* end confdefs.h.  */
7862int i;
7863_ACEOF
7864if ac_fn_c_try_compile "$LINENO"; then :
7865  xorg_cv_cc_flag_unused_command_line_argument=yes
7866else
7867  xorg_cv_cc_flag_unused_command_line_argument=no
7868fi
7869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7870fi
7871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7872$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7873	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7874	CFLAGS="$xorg_testset_save_CFLAGS"
7875fi
7876
7877found="no"
7878
7879	if test $found = "no" ; then
7880		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7881			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7882		fi
7883
7884		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7885			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7886		fi
7887
7888		CFLAGS="$CFLAGS -Werror=missing-braces"
7889
7890		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7891$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7892		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7893		if eval \${$cacheid+:} false; then :
7894  $as_echo_n "(cached) " >&6
7895else
7896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897/* end confdefs.h.  */
7898int i;
7899int
7900main ()
7901{
7902
7903  ;
7904  return 0;
7905}
7906_ACEOF
7907if ac_fn_c_try_link "$LINENO"; then :
7908  eval $cacheid=yes
7909else
7910  eval $cacheid=no
7911fi
7912rm -f core conftest.err conftest.$ac_objext \
7913    conftest$ac_exeext conftest.$ac_ext
7914fi
7915
7916
7917		CFLAGS="$xorg_testset_save_CFLAGS"
7918
7919		eval supported=\$$cacheid
7920		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7921$as_echo "$supported" >&6; }
7922		if test "$supported" = "yes" ; then
7923			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7924			found="yes"
7925		fi
7926	fi
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942xorg_testset_save_CFLAGS="$CFLAGS"
7943
7944if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7945	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7946	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7947$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7948if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7949  $as_echo_n "(cached) " >&6
7950else
7951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7952/* end confdefs.h.  */
7953int i;
7954_ACEOF
7955if ac_fn_c_try_compile "$LINENO"; then :
7956  xorg_cv_cc_flag_unknown_warning_option=yes
7957else
7958  xorg_cv_cc_flag_unknown_warning_option=no
7959fi
7960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7961fi
7962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7963$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7964	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7965	CFLAGS="$xorg_testset_save_CFLAGS"
7966fi
7967
7968if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7969	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7970		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7971	fi
7972	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7973	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7974$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7975if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7976  $as_echo_n "(cached) " >&6
7977else
7978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7979/* end confdefs.h.  */
7980int i;
7981_ACEOF
7982if ac_fn_c_try_compile "$LINENO"; then :
7983  xorg_cv_cc_flag_unused_command_line_argument=yes
7984else
7985  xorg_cv_cc_flag_unused_command_line_argument=no
7986fi
7987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7988fi
7989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7990$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7991	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7992	CFLAGS="$xorg_testset_save_CFLAGS"
7993fi
7994
7995found="no"
7996
7997	if test $found = "no" ; then
7998		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7999			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8000		fi
8001
8002		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8003			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8004		fi
8005
8006		CFLAGS="$CFLAGS -Werror=sequence-point"
8007
8008		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8009$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
8010		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8011		if eval \${$cacheid+:} false; then :
8012  $as_echo_n "(cached) " >&6
8013else
8014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8015/* end confdefs.h.  */
8016int i;
8017int
8018main ()
8019{
8020
8021  ;
8022  return 0;
8023}
8024_ACEOF
8025if ac_fn_c_try_link "$LINENO"; then :
8026  eval $cacheid=yes
8027else
8028  eval $cacheid=no
8029fi
8030rm -f core conftest.err conftest.$ac_objext \
8031    conftest$ac_exeext conftest.$ac_ext
8032fi
8033
8034
8035		CFLAGS="$xorg_testset_save_CFLAGS"
8036
8037		eval supported=\$$cacheid
8038		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8039$as_echo "$supported" >&6; }
8040		if test "$supported" = "yes" ; then
8041			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8042			found="yes"
8043		fi
8044	fi
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060xorg_testset_save_CFLAGS="$CFLAGS"
8061
8062if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8063	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8064	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8065$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8066if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8067  $as_echo_n "(cached) " >&6
8068else
8069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8070/* end confdefs.h.  */
8071int i;
8072_ACEOF
8073if ac_fn_c_try_compile "$LINENO"; then :
8074  xorg_cv_cc_flag_unknown_warning_option=yes
8075else
8076  xorg_cv_cc_flag_unknown_warning_option=no
8077fi
8078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8079fi
8080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8081$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8082	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8083	CFLAGS="$xorg_testset_save_CFLAGS"
8084fi
8085
8086if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8087	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8088		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8089	fi
8090	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8091	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8092$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8093if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8094  $as_echo_n "(cached) " >&6
8095else
8096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8097/* end confdefs.h.  */
8098int i;
8099_ACEOF
8100if ac_fn_c_try_compile "$LINENO"; then :
8101  xorg_cv_cc_flag_unused_command_line_argument=yes
8102else
8103  xorg_cv_cc_flag_unused_command_line_argument=no
8104fi
8105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106fi
8107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8108$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8109	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8110	CFLAGS="$xorg_testset_save_CFLAGS"
8111fi
8112
8113found="no"
8114
8115	if test $found = "no" ; then
8116		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8117			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8118		fi
8119
8120		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8121			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8122		fi
8123
8124		CFLAGS="$CFLAGS -Werror=return-type"
8125
8126		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8127$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
8128		cacheid=xorg_cv_cc_flag__Werror_return_type
8129		if eval \${$cacheid+:} false; then :
8130  $as_echo_n "(cached) " >&6
8131else
8132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8133/* end confdefs.h.  */
8134int i;
8135int
8136main ()
8137{
8138
8139  ;
8140  return 0;
8141}
8142_ACEOF
8143if ac_fn_c_try_link "$LINENO"; then :
8144  eval $cacheid=yes
8145else
8146  eval $cacheid=no
8147fi
8148rm -f core conftest.err conftest.$ac_objext \
8149    conftest$ac_exeext conftest.$ac_ext
8150fi
8151
8152
8153		CFLAGS="$xorg_testset_save_CFLAGS"
8154
8155		eval supported=\$$cacheid
8156		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8157$as_echo "$supported" >&6; }
8158		if test "$supported" = "yes" ; then
8159			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8160			found="yes"
8161		fi
8162	fi
8163
8164	if test $found = "no" ; then
8165		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8166			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8167		fi
8168
8169		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8170			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8171		fi
8172
8173		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8174
8175		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8176$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8177		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8178		if eval \${$cacheid+:} false; then :
8179  $as_echo_n "(cached) " >&6
8180else
8181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8182/* end confdefs.h.  */
8183int i;
8184int
8185main ()
8186{
8187
8188  ;
8189  return 0;
8190}
8191_ACEOF
8192if ac_fn_c_try_link "$LINENO"; then :
8193  eval $cacheid=yes
8194else
8195  eval $cacheid=no
8196fi
8197rm -f core conftest.err conftest.$ac_objext \
8198    conftest$ac_exeext conftest.$ac_ext
8199fi
8200
8201
8202		CFLAGS="$xorg_testset_save_CFLAGS"
8203
8204		eval supported=\$$cacheid
8205		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8206$as_echo "$supported" >&6; }
8207		if test "$supported" = "yes" ; then
8208			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8209			found="yes"
8210		fi
8211	fi
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227xorg_testset_save_CFLAGS="$CFLAGS"
8228
8229if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8230	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8231	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8232$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8233if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8234  $as_echo_n "(cached) " >&6
8235else
8236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8237/* end confdefs.h.  */
8238int i;
8239_ACEOF
8240if ac_fn_c_try_compile "$LINENO"; then :
8241  xorg_cv_cc_flag_unknown_warning_option=yes
8242else
8243  xorg_cv_cc_flag_unknown_warning_option=no
8244fi
8245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8246fi
8247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8248$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8249	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8250	CFLAGS="$xorg_testset_save_CFLAGS"
8251fi
8252
8253if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8254	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8255		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8256	fi
8257	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8258	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8259$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8260if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8261  $as_echo_n "(cached) " >&6
8262else
8263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8264/* end confdefs.h.  */
8265int i;
8266_ACEOF
8267if ac_fn_c_try_compile "$LINENO"; then :
8268  xorg_cv_cc_flag_unused_command_line_argument=yes
8269else
8270  xorg_cv_cc_flag_unused_command_line_argument=no
8271fi
8272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8273fi
8274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8275$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8276	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8277	CFLAGS="$xorg_testset_save_CFLAGS"
8278fi
8279
8280found="no"
8281
8282	if test $found = "no" ; then
8283		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8284			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8285		fi
8286
8287		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8288			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8289		fi
8290
8291		CFLAGS="$CFLAGS -Werror=trigraphs"
8292
8293		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8294$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8295		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8296		if eval \${$cacheid+:} false; then :
8297  $as_echo_n "(cached) " >&6
8298else
8299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300/* end confdefs.h.  */
8301int i;
8302int
8303main ()
8304{
8305
8306  ;
8307  return 0;
8308}
8309_ACEOF
8310if ac_fn_c_try_link "$LINENO"; then :
8311  eval $cacheid=yes
8312else
8313  eval $cacheid=no
8314fi
8315rm -f core conftest.err conftest.$ac_objext \
8316    conftest$ac_exeext conftest.$ac_ext
8317fi
8318
8319
8320		CFLAGS="$xorg_testset_save_CFLAGS"
8321
8322		eval supported=\$$cacheid
8323		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8324$as_echo "$supported" >&6; }
8325		if test "$supported" = "yes" ; then
8326			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8327			found="yes"
8328		fi
8329	fi
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345xorg_testset_save_CFLAGS="$CFLAGS"
8346
8347if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8348	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8349	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8350$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8351if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8352  $as_echo_n "(cached) " >&6
8353else
8354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8355/* end confdefs.h.  */
8356int i;
8357_ACEOF
8358if ac_fn_c_try_compile "$LINENO"; then :
8359  xorg_cv_cc_flag_unknown_warning_option=yes
8360else
8361  xorg_cv_cc_flag_unknown_warning_option=no
8362fi
8363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8364fi
8365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8366$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8367	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8368	CFLAGS="$xorg_testset_save_CFLAGS"
8369fi
8370
8371if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8372	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8373		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8374	fi
8375	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8376	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8377$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8378if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8379  $as_echo_n "(cached) " >&6
8380else
8381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382/* end confdefs.h.  */
8383int i;
8384_ACEOF
8385if ac_fn_c_try_compile "$LINENO"; then :
8386  xorg_cv_cc_flag_unused_command_line_argument=yes
8387else
8388  xorg_cv_cc_flag_unused_command_line_argument=no
8389fi
8390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8391fi
8392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8393$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8394	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8395	CFLAGS="$xorg_testset_save_CFLAGS"
8396fi
8397
8398found="no"
8399
8400	if test $found = "no" ; then
8401		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8402			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8403		fi
8404
8405		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8406			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8407		fi
8408
8409		CFLAGS="$CFLAGS -Werror=array-bounds"
8410
8411		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8412$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8413		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8414		if eval \${$cacheid+:} false; then :
8415  $as_echo_n "(cached) " >&6
8416else
8417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8418/* end confdefs.h.  */
8419int i;
8420int
8421main ()
8422{
8423
8424  ;
8425  return 0;
8426}
8427_ACEOF
8428if ac_fn_c_try_link "$LINENO"; then :
8429  eval $cacheid=yes
8430else
8431  eval $cacheid=no
8432fi
8433rm -f core conftest.err conftest.$ac_objext \
8434    conftest$ac_exeext conftest.$ac_ext
8435fi
8436
8437
8438		CFLAGS="$xorg_testset_save_CFLAGS"
8439
8440		eval supported=\$$cacheid
8441		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8442$as_echo "$supported" >&6; }
8443		if test "$supported" = "yes" ; then
8444			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8445			found="yes"
8446		fi
8447	fi
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463xorg_testset_save_CFLAGS="$CFLAGS"
8464
8465if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8466	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8467	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8468$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8469if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8470  $as_echo_n "(cached) " >&6
8471else
8472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8473/* end confdefs.h.  */
8474int i;
8475_ACEOF
8476if ac_fn_c_try_compile "$LINENO"; then :
8477  xorg_cv_cc_flag_unknown_warning_option=yes
8478else
8479  xorg_cv_cc_flag_unknown_warning_option=no
8480fi
8481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8482fi
8483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8484$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8485	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8486	CFLAGS="$xorg_testset_save_CFLAGS"
8487fi
8488
8489if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8490	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8491		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8492	fi
8493	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8494	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8495$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8496if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8497  $as_echo_n "(cached) " >&6
8498else
8499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8500/* end confdefs.h.  */
8501int i;
8502_ACEOF
8503if ac_fn_c_try_compile "$LINENO"; then :
8504  xorg_cv_cc_flag_unused_command_line_argument=yes
8505else
8506  xorg_cv_cc_flag_unused_command_line_argument=no
8507fi
8508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8509fi
8510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8511$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8512	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8513	CFLAGS="$xorg_testset_save_CFLAGS"
8514fi
8515
8516found="no"
8517
8518	if test $found = "no" ; then
8519		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8520			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8521		fi
8522
8523		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8524			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8525		fi
8526
8527		CFLAGS="$CFLAGS -Werror=write-strings"
8528
8529		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8530$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8531		cacheid=xorg_cv_cc_flag__Werror_write_strings
8532		if eval \${$cacheid+:} false; then :
8533  $as_echo_n "(cached) " >&6
8534else
8535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8536/* end confdefs.h.  */
8537int i;
8538int
8539main ()
8540{
8541
8542  ;
8543  return 0;
8544}
8545_ACEOF
8546if ac_fn_c_try_link "$LINENO"; then :
8547  eval $cacheid=yes
8548else
8549  eval $cacheid=no
8550fi
8551rm -f core conftest.err conftest.$ac_objext \
8552    conftest$ac_exeext conftest.$ac_ext
8553fi
8554
8555
8556		CFLAGS="$xorg_testset_save_CFLAGS"
8557
8558		eval supported=\$$cacheid
8559		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8560$as_echo "$supported" >&6; }
8561		if test "$supported" = "yes" ; then
8562			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8563			found="yes"
8564		fi
8565	fi
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581xorg_testset_save_CFLAGS="$CFLAGS"
8582
8583if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8584	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8585	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8586$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8587if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8588  $as_echo_n "(cached) " >&6
8589else
8590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8591/* end confdefs.h.  */
8592int i;
8593_ACEOF
8594if ac_fn_c_try_compile "$LINENO"; then :
8595  xorg_cv_cc_flag_unknown_warning_option=yes
8596else
8597  xorg_cv_cc_flag_unknown_warning_option=no
8598fi
8599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8600fi
8601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8602$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8603	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8604	CFLAGS="$xorg_testset_save_CFLAGS"
8605fi
8606
8607if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8608	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8609		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8610	fi
8611	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8612	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8613$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8614if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8615  $as_echo_n "(cached) " >&6
8616else
8617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618/* end confdefs.h.  */
8619int i;
8620_ACEOF
8621if ac_fn_c_try_compile "$LINENO"; then :
8622  xorg_cv_cc_flag_unused_command_line_argument=yes
8623else
8624  xorg_cv_cc_flag_unused_command_line_argument=no
8625fi
8626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8627fi
8628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8629$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8630	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8631	CFLAGS="$xorg_testset_save_CFLAGS"
8632fi
8633
8634found="no"
8635
8636	if test $found = "no" ; then
8637		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8638			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8639		fi
8640
8641		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8642			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8643		fi
8644
8645		CFLAGS="$CFLAGS -Werror=address"
8646
8647		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8648$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8649		cacheid=xorg_cv_cc_flag__Werror_address
8650		if eval \${$cacheid+:} false; then :
8651  $as_echo_n "(cached) " >&6
8652else
8653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8654/* end confdefs.h.  */
8655int i;
8656int
8657main ()
8658{
8659
8660  ;
8661  return 0;
8662}
8663_ACEOF
8664if ac_fn_c_try_link "$LINENO"; then :
8665  eval $cacheid=yes
8666else
8667  eval $cacheid=no
8668fi
8669rm -f core conftest.err conftest.$ac_objext \
8670    conftest$ac_exeext conftest.$ac_ext
8671fi
8672
8673
8674		CFLAGS="$xorg_testset_save_CFLAGS"
8675
8676		eval supported=\$$cacheid
8677		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8678$as_echo "$supported" >&6; }
8679		if test "$supported" = "yes" ; then
8680			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8681			found="yes"
8682		fi
8683	fi
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699xorg_testset_save_CFLAGS="$CFLAGS"
8700
8701if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8702	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8703	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8704$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8705if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8706  $as_echo_n "(cached) " >&6
8707else
8708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8709/* end confdefs.h.  */
8710int i;
8711_ACEOF
8712if ac_fn_c_try_compile "$LINENO"; then :
8713  xorg_cv_cc_flag_unknown_warning_option=yes
8714else
8715  xorg_cv_cc_flag_unknown_warning_option=no
8716fi
8717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8718fi
8719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8720$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8721	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8722	CFLAGS="$xorg_testset_save_CFLAGS"
8723fi
8724
8725if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8726	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8727		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8728	fi
8729	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8730	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8731$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8732if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8733  $as_echo_n "(cached) " >&6
8734else
8735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8736/* end confdefs.h.  */
8737int i;
8738_ACEOF
8739if ac_fn_c_try_compile "$LINENO"; then :
8740  xorg_cv_cc_flag_unused_command_line_argument=yes
8741else
8742  xorg_cv_cc_flag_unused_command_line_argument=no
8743fi
8744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8745fi
8746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8747$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8748	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8749	CFLAGS="$xorg_testset_save_CFLAGS"
8750fi
8751
8752found="no"
8753
8754	if test $found = "no" ; then
8755		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8756			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8757		fi
8758
8759		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8760			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8761		fi
8762
8763		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8764
8765		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8766$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8767		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8768		if eval \${$cacheid+:} false; then :
8769  $as_echo_n "(cached) " >&6
8770else
8771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8772/* end confdefs.h.  */
8773int i;
8774int
8775main ()
8776{
8777
8778  ;
8779  return 0;
8780}
8781_ACEOF
8782if ac_fn_c_try_link "$LINENO"; then :
8783  eval $cacheid=yes
8784else
8785  eval $cacheid=no
8786fi
8787rm -f core conftest.err conftest.$ac_objext \
8788    conftest$ac_exeext conftest.$ac_ext
8789fi
8790
8791
8792		CFLAGS="$xorg_testset_save_CFLAGS"
8793
8794		eval supported=\$$cacheid
8795		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8796$as_echo "$supported" >&6; }
8797		if test "$supported" = "yes" ; then
8798			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8799			found="yes"
8800		fi
8801	fi
8802
8803	if test $found = "no" ; then
8804		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8805			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8806		fi
8807
8808		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8809			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8810		fi
8811
8812		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8813
8814		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8815$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8816		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8817		if eval \${$cacheid+:} false; then :
8818  $as_echo_n "(cached) " >&6
8819else
8820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8821/* end confdefs.h.  */
8822int i;
8823int
8824main ()
8825{
8826
8827  ;
8828  return 0;
8829}
8830_ACEOF
8831if ac_fn_c_try_link "$LINENO"; then :
8832  eval $cacheid=yes
8833else
8834  eval $cacheid=no
8835fi
8836rm -f core conftest.err conftest.$ac_objext \
8837    conftest$ac_exeext conftest.$ac_ext
8838fi
8839
8840
8841		CFLAGS="$xorg_testset_save_CFLAGS"
8842
8843		eval supported=\$$cacheid
8844		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8845$as_echo "$supported" >&6; }
8846		if test "$supported" = "yes" ; then
8847			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8848			found="yes"
8849		fi
8850	fi
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866xorg_testset_save_CFLAGS="$CFLAGS"
8867
8868if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8869	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8870	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8871$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8872if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8873  $as_echo_n "(cached) " >&6
8874else
8875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8876/* end confdefs.h.  */
8877int i;
8878_ACEOF
8879if ac_fn_c_try_compile "$LINENO"; then :
8880  xorg_cv_cc_flag_unknown_warning_option=yes
8881else
8882  xorg_cv_cc_flag_unknown_warning_option=no
8883fi
8884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8885fi
8886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8887$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8888	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8889	CFLAGS="$xorg_testset_save_CFLAGS"
8890fi
8891
8892if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8893	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8894		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8895	fi
8896	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8897	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8898$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8899if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8900  $as_echo_n "(cached) " >&6
8901else
8902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8903/* end confdefs.h.  */
8904int i;
8905_ACEOF
8906if ac_fn_c_try_compile "$LINENO"; then :
8907  xorg_cv_cc_flag_unused_command_line_argument=yes
8908else
8909  xorg_cv_cc_flag_unused_command_line_argument=no
8910fi
8911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8912fi
8913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8914$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8915	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8916	CFLAGS="$xorg_testset_save_CFLAGS"
8917fi
8918
8919found="no"
8920
8921	if test $found = "no" ; then
8922		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8923			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8924		fi
8925
8926		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8927			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8928		fi
8929
8930		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8931
8932		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8933$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8934		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8935		if eval \${$cacheid+:} false; then :
8936  $as_echo_n "(cached) " >&6
8937else
8938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8939/* end confdefs.h.  */
8940int i;
8941int
8942main ()
8943{
8944
8945  ;
8946  return 0;
8947}
8948_ACEOF
8949if ac_fn_c_try_link "$LINENO"; then :
8950  eval $cacheid=yes
8951else
8952  eval $cacheid=no
8953fi
8954rm -f core conftest.err conftest.$ac_objext \
8955    conftest$ac_exeext conftest.$ac_ext
8956fi
8957
8958
8959		CFLAGS="$xorg_testset_save_CFLAGS"
8960
8961		eval supported=\$$cacheid
8962		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8963$as_echo "$supported" >&6; }
8964		if test "$supported" = "yes" ; then
8965			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8966			found="yes"
8967		fi
8968	fi
8969
8970 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8971else
8972{ $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
8973$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;}
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987xorg_testset_save_CFLAGS="$CFLAGS"
8988
8989if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8990	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8991	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8992$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8993if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8994  $as_echo_n "(cached) " >&6
8995else
8996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8997/* end confdefs.h.  */
8998int i;
8999_ACEOF
9000if ac_fn_c_try_compile "$LINENO"; then :
9001  xorg_cv_cc_flag_unknown_warning_option=yes
9002else
9003  xorg_cv_cc_flag_unknown_warning_option=no
9004fi
9005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9006fi
9007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9008$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9009	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9010	CFLAGS="$xorg_testset_save_CFLAGS"
9011fi
9012
9013if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9014	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9015		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9016	fi
9017	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9018	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9019$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9020if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9021  $as_echo_n "(cached) " >&6
9022else
9023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9024/* end confdefs.h.  */
9025int i;
9026_ACEOF
9027if ac_fn_c_try_compile "$LINENO"; then :
9028  xorg_cv_cc_flag_unused_command_line_argument=yes
9029else
9030  xorg_cv_cc_flag_unused_command_line_argument=no
9031fi
9032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9033fi
9034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9035$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9036	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9037	CFLAGS="$xorg_testset_save_CFLAGS"
9038fi
9039
9040found="no"
9041
9042	if test $found = "no" ; then
9043		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9044			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9045		fi
9046
9047		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9048			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9049		fi
9050
9051		CFLAGS="$CFLAGS -Wimplicit"
9052
9053		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9054$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
9055		cacheid=xorg_cv_cc_flag__Wimplicit
9056		if eval \${$cacheid+:} false; then :
9057  $as_echo_n "(cached) " >&6
9058else
9059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9060/* end confdefs.h.  */
9061int i;
9062int
9063main ()
9064{
9065
9066  ;
9067  return 0;
9068}
9069_ACEOF
9070if ac_fn_c_try_link "$LINENO"; then :
9071  eval $cacheid=yes
9072else
9073  eval $cacheid=no
9074fi
9075rm -f core conftest.err conftest.$ac_objext \
9076    conftest$ac_exeext conftest.$ac_ext
9077fi
9078
9079
9080		CFLAGS="$xorg_testset_save_CFLAGS"
9081
9082		eval supported=\$$cacheid
9083		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9084$as_echo "$supported" >&6; }
9085		if test "$supported" = "yes" ; then
9086			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9087			found="yes"
9088		fi
9089	fi
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105xorg_testset_save_CFLAGS="$CFLAGS"
9106
9107if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9108	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9109	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9110$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9111if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9112  $as_echo_n "(cached) " >&6
9113else
9114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9115/* end confdefs.h.  */
9116int i;
9117_ACEOF
9118if ac_fn_c_try_compile "$LINENO"; then :
9119  xorg_cv_cc_flag_unknown_warning_option=yes
9120else
9121  xorg_cv_cc_flag_unknown_warning_option=no
9122fi
9123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9124fi
9125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9126$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9127	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9128	CFLAGS="$xorg_testset_save_CFLAGS"
9129fi
9130
9131if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9132	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9133		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9134	fi
9135	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9136	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9137$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9138if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9139  $as_echo_n "(cached) " >&6
9140else
9141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9142/* end confdefs.h.  */
9143int i;
9144_ACEOF
9145if ac_fn_c_try_compile "$LINENO"; then :
9146  xorg_cv_cc_flag_unused_command_line_argument=yes
9147else
9148  xorg_cv_cc_flag_unused_command_line_argument=no
9149fi
9150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9151fi
9152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9153$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9154	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9155	CFLAGS="$xorg_testset_save_CFLAGS"
9156fi
9157
9158found="no"
9159
9160	if test $found = "no" ; then
9161		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9162			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9163		fi
9164
9165		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9166			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9167		fi
9168
9169		CFLAGS="$CFLAGS -Wnonnull"
9170
9171		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9172$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
9173		cacheid=xorg_cv_cc_flag__Wnonnull
9174		if eval \${$cacheid+:} false; then :
9175  $as_echo_n "(cached) " >&6
9176else
9177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9178/* end confdefs.h.  */
9179int i;
9180int
9181main ()
9182{
9183
9184  ;
9185  return 0;
9186}
9187_ACEOF
9188if ac_fn_c_try_link "$LINENO"; then :
9189  eval $cacheid=yes
9190else
9191  eval $cacheid=no
9192fi
9193rm -f core conftest.err conftest.$ac_objext \
9194    conftest$ac_exeext conftest.$ac_ext
9195fi
9196
9197
9198		CFLAGS="$xorg_testset_save_CFLAGS"
9199
9200		eval supported=\$$cacheid
9201		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9202$as_echo "$supported" >&6; }
9203		if test "$supported" = "yes" ; then
9204			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9205			found="yes"
9206		fi
9207	fi
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223xorg_testset_save_CFLAGS="$CFLAGS"
9224
9225if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9226	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9227	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9228$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9229if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9230  $as_echo_n "(cached) " >&6
9231else
9232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9233/* end confdefs.h.  */
9234int i;
9235_ACEOF
9236if ac_fn_c_try_compile "$LINENO"; then :
9237  xorg_cv_cc_flag_unknown_warning_option=yes
9238else
9239  xorg_cv_cc_flag_unknown_warning_option=no
9240fi
9241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9242fi
9243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9244$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9245	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9246	CFLAGS="$xorg_testset_save_CFLAGS"
9247fi
9248
9249if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9250	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9251		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9252	fi
9253	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9254	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9255$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9256if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9257  $as_echo_n "(cached) " >&6
9258else
9259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9260/* end confdefs.h.  */
9261int i;
9262_ACEOF
9263if ac_fn_c_try_compile "$LINENO"; then :
9264  xorg_cv_cc_flag_unused_command_line_argument=yes
9265else
9266  xorg_cv_cc_flag_unused_command_line_argument=no
9267fi
9268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9269fi
9270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9271$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9272	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9273	CFLAGS="$xorg_testset_save_CFLAGS"
9274fi
9275
9276found="no"
9277
9278	if test $found = "no" ; then
9279		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9280			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9281		fi
9282
9283		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9284			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9285		fi
9286
9287		CFLAGS="$CFLAGS -Winit-self"
9288
9289		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9290$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9291		cacheid=xorg_cv_cc_flag__Winit_self
9292		if eval \${$cacheid+:} false; then :
9293  $as_echo_n "(cached) " >&6
9294else
9295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9296/* end confdefs.h.  */
9297int i;
9298int
9299main ()
9300{
9301
9302  ;
9303  return 0;
9304}
9305_ACEOF
9306if ac_fn_c_try_link "$LINENO"; then :
9307  eval $cacheid=yes
9308else
9309  eval $cacheid=no
9310fi
9311rm -f core conftest.err conftest.$ac_objext \
9312    conftest$ac_exeext conftest.$ac_ext
9313fi
9314
9315
9316		CFLAGS="$xorg_testset_save_CFLAGS"
9317
9318		eval supported=\$$cacheid
9319		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9320$as_echo "$supported" >&6; }
9321		if test "$supported" = "yes" ; then
9322			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9323			found="yes"
9324		fi
9325	fi
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341xorg_testset_save_CFLAGS="$CFLAGS"
9342
9343if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9344	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9345	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9346$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9347if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9348  $as_echo_n "(cached) " >&6
9349else
9350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9351/* end confdefs.h.  */
9352int i;
9353_ACEOF
9354if ac_fn_c_try_compile "$LINENO"; then :
9355  xorg_cv_cc_flag_unknown_warning_option=yes
9356else
9357  xorg_cv_cc_flag_unknown_warning_option=no
9358fi
9359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9360fi
9361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9362$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9363	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9364	CFLAGS="$xorg_testset_save_CFLAGS"
9365fi
9366
9367if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9368	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9369		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9370	fi
9371	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9372	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9373$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9374if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9375  $as_echo_n "(cached) " >&6
9376else
9377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9378/* end confdefs.h.  */
9379int i;
9380_ACEOF
9381if ac_fn_c_try_compile "$LINENO"; then :
9382  xorg_cv_cc_flag_unused_command_line_argument=yes
9383else
9384  xorg_cv_cc_flag_unused_command_line_argument=no
9385fi
9386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9387fi
9388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9389$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9390	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9391	CFLAGS="$xorg_testset_save_CFLAGS"
9392fi
9393
9394found="no"
9395
9396	if test $found = "no" ; then
9397		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9398			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9399		fi
9400
9401		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9402			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9403		fi
9404
9405		CFLAGS="$CFLAGS -Wmain"
9406
9407		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9408$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9409		cacheid=xorg_cv_cc_flag__Wmain
9410		if eval \${$cacheid+:} false; then :
9411  $as_echo_n "(cached) " >&6
9412else
9413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9414/* end confdefs.h.  */
9415int i;
9416int
9417main ()
9418{
9419
9420  ;
9421  return 0;
9422}
9423_ACEOF
9424if ac_fn_c_try_link "$LINENO"; then :
9425  eval $cacheid=yes
9426else
9427  eval $cacheid=no
9428fi
9429rm -f core conftest.err conftest.$ac_objext \
9430    conftest$ac_exeext conftest.$ac_ext
9431fi
9432
9433
9434		CFLAGS="$xorg_testset_save_CFLAGS"
9435
9436		eval supported=\$$cacheid
9437		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9438$as_echo "$supported" >&6; }
9439		if test "$supported" = "yes" ; then
9440			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9441			found="yes"
9442		fi
9443	fi
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459xorg_testset_save_CFLAGS="$CFLAGS"
9460
9461if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9462	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9463	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9464$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9465if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9466  $as_echo_n "(cached) " >&6
9467else
9468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9469/* end confdefs.h.  */
9470int i;
9471_ACEOF
9472if ac_fn_c_try_compile "$LINENO"; then :
9473  xorg_cv_cc_flag_unknown_warning_option=yes
9474else
9475  xorg_cv_cc_flag_unknown_warning_option=no
9476fi
9477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9478fi
9479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9480$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9481	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9482	CFLAGS="$xorg_testset_save_CFLAGS"
9483fi
9484
9485if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9486	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9487		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9488	fi
9489	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9490	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9491$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9492if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9493  $as_echo_n "(cached) " >&6
9494else
9495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9496/* end confdefs.h.  */
9497int i;
9498_ACEOF
9499if ac_fn_c_try_compile "$LINENO"; then :
9500  xorg_cv_cc_flag_unused_command_line_argument=yes
9501else
9502  xorg_cv_cc_flag_unused_command_line_argument=no
9503fi
9504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9505fi
9506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9507$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9508	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9509	CFLAGS="$xorg_testset_save_CFLAGS"
9510fi
9511
9512found="no"
9513
9514	if test $found = "no" ; then
9515		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9516			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9517		fi
9518
9519		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9520			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9521		fi
9522
9523		CFLAGS="$CFLAGS -Wmissing-braces"
9524
9525		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9526$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9527		cacheid=xorg_cv_cc_flag__Wmissing_braces
9528		if eval \${$cacheid+:} false; then :
9529  $as_echo_n "(cached) " >&6
9530else
9531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9532/* end confdefs.h.  */
9533int i;
9534int
9535main ()
9536{
9537
9538  ;
9539  return 0;
9540}
9541_ACEOF
9542if ac_fn_c_try_link "$LINENO"; then :
9543  eval $cacheid=yes
9544else
9545  eval $cacheid=no
9546fi
9547rm -f core conftest.err conftest.$ac_objext \
9548    conftest$ac_exeext conftest.$ac_ext
9549fi
9550
9551
9552		CFLAGS="$xorg_testset_save_CFLAGS"
9553
9554		eval supported=\$$cacheid
9555		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9556$as_echo "$supported" >&6; }
9557		if test "$supported" = "yes" ; then
9558			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9559			found="yes"
9560		fi
9561	fi
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577xorg_testset_save_CFLAGS="$CFLAGS"
9578
9579if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9580	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9581	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9582$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9583if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9584  $as_echo_n "(cached) " >&6
9585else
9586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9587/* end confdefs.h.  */
9588int i;
9589_ACEOF
9590if ac_fn_c_try_compile "$LINENO"; then :
9591  xorg_cv_cc_flag_unknown_warning_option=yes
9592else
9593  xorg_cv_cc_flag_unknown_warning_option=no
9594fi
9595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9596fi
9597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9598$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9599	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9600	CFLAGS="$xorg_testset_save_CFLAGS"
9601fi
9602
9603if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9604	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9605		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9606	fi
9607	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9608	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9609$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9610if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9611  $as_echo_n "(cached) " >&6
9612else
9613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9614/* end confdefs.h.  */
9615int i;
9616_ACEOF
9617if ac_fn_c_try_compile "$LINENO"; then :
9618  xorg_cv_cc_flag_unused_command_line_argument=yes
9619else
9620  xorg_cv_cc_flag_unused_command_line_argument=no
9621fi
9622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9623fi
9624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9625$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9626	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9627	CFLAGS="$xorg_testset_save_CFLAGS"
9628fi
9629
9630found="no"
9631
9632	if test $found = "no" ; then
9633		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9634			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9635		fi
9636
9637		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9638			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9639		fi
9640
9641		CFLAGS="$CFLAGS -Wsequence-point"
9642
9643		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9644$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9645		cacheid=xorg_cv_cc_flag__Wsequence_point
9646		if eval \${$cacheid+:} false; then :
9647  $as_echo_n "(cached) " >&6
9648else
9649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9650/* end confdefs.h.  */
9651int i;
9652int
9653main ()
9654{
9655
9656  ;
9657  return 0;
9658}
9659_ACEOF
9660if ac_fn_c_try_link "$LINENO"; then :
9661  eval $cacheid=yes
9662else
9663  eval $cacheid=no
9664fi
9665rm -f core conftest.err conftest.$ac_objext \
9666    conftest$ac_exeext conftest.$ac_ext
9667fi
9668
9669
9670		CFLAGS="$xorg_testset_save_CFLAGS"
9671
9672		eval supported=\$$cacheid
9673		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9674$as_echo "$supported" >&6; }
9675		if test "$supported" = "yes" ; then
9676			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9677			found="yes"
9678		fi
9679	fi
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695xorg_testset_save_CFLAGS="$CFLAGS"
9696
9697if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9698	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9699	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9700$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9701if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9702  $as_echo_n "(cached) " >&6
9703else
9704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9705/* end confdefs.h.  */
9706int i;
9707_ACEOF
9708if ac_fn_c_try_compile "$LINENO"; then :
9709  xorg_cv_cc_flag_unknown_warning_option=yes
9710else
9711  xorg_cv_cc_flag_unknown_warning_option=no
9712fi
9713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9714fi
9715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9716$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9717	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9718	CFLAGS="$xorg_testset_save_CFLAGS"
9719fi
9720
9721if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9722	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9723		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9724	fi
9725	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9726	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9727$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9728if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9729  $as_echo_n "(cached) " >&6
9730else
9731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9732/* end confdefs.h.  */
9733int i;
9734_ACEOF
9735if ac_fn_c_try_compile "$LINENO"; then :
9736  xorg_cv_cc_flag_unused_command_line_argument=yes
9737else
9738  xorg_cv_cc_flag_unused_command_line_argument=no
9739fi
9740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9741fi
9742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9743$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9744	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9745	CFLAGS="$xorg_testset_save_CFLAGS"
9746fi
9747
9748found="no"
9749
9750	if test $found = "no" ; then
9751		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9752			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9753		fi
9754
9755		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9756			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9757		fi
9758
9759		CFLAGS="$CFLAGS -Wreturn-type"
9760
9761		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9762$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9763		cacheid=xorg_cv_cc_flag__Wreturn_type
9764		if eval \${$cacheid+:} false; then :
9765  $as_echo_n "(cached) " >&6
9766else
9767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768/* end confdefs.h.  */
9769int i;
9770int
9771main ()
9772{
9773
9774  ;
9775  return 0;
9776}
9777_ACEOF
9778if ac_fn_c_try_link "$LINENO"; then :
9779  eval $cacheid=yes
9780else
9781  eval $cacheid=no
9782fi
9783rm -f core conftest.err conftest.$ac_objext \
9784    conftest$ac_exeext conftest.$ac_ext
9785fi
9786
9787
9788		CFLAGS="$xorg_testset_save_CFLAGS"
9789
9790		eval supported=\$$cacheid
9791		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9792$as_echo "$supported" >&6; }
9793		if test "$supported" = "yes" ; then
9794			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9795			found="yes"
9796		fi
9797	fi
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813xorg_testset_save_CFLAGS="$CFLAGS"
9814
9815if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9816	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9817	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9818$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9819if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9820  $as_echo_n "(cached) " >&6
9821else
9822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9823/* end confdefs.h.  */
9824int i;
9825_ACEOF
9826if ac_fn_c_try_compile "$LINENO"; then :
9827  xorg_cv_cc_flag_unknown_warning_option=yes
9828else
9829  xorg_cv_cc_flag_unknown_warning_option=no
9830fi
9831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9832fi
9833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9834$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9835	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9836	CFLAGS="$xorg_testset_save_CFLAGS"
9837fi
9838
9839if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9840	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9841		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9842	fi
9843	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9844	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9845$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9846if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9847  $as_echo_n "(cached) " >&6
9848else
9849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9850/* end confdefs.h.  */
9851int i;
9852_ACEOF
9853if ac_fn_c_try_compile "$LINENO"; then :
9854  xorg_cv_cc_flag_unused_command_line_argument=yes
9855else
9856  xorg_cv_cc_flag_unused_command_line_argument=no
9857fi
9858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9859fi
9860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9861$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9862	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9863	CFLAGS="$xorg_testset_save_CFLAGS"
9864fi
9865
9866found="no"
9867
9868	if test $found = "no" ; then
9869		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9870			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9871		fi
9872
9873		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9874			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9875		fi
9876
9877		CFLAGS="$CFLAGS -Wtrigraphs"
9878
9879		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9880$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9881		cacheid=xorg_cv_cc_flag__Wtrigraphs
9882		if eval \${$cacheid+:} false; then :
9883  $as_echo_n "(cached) " >&6
9884else
9885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9886/* end confdefs.h.  */
9887int i;
9888int
9889main ()
9890{
9891
9892  ;
9893  return 0;
9894}
9895_ACEOF
9896if ac_fn_c_try_link "$LINENO"; then :
9897  eval $cacheid=yes
9898else
9899  eval $cacheid=no
9900fi
9901rm -f core conftest.err conftest.$ac_objext \
9902    conftest$ac_exeext conftest.$ac_ext
9903fi
9904
9905
9906		CFLAGS="$xorg_testset_save_CFLAGS"
9907
9908		eval supported=\$$cacheid
9909		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9910$as_echo "$supported" >&6; }
9911		if test "$supported" = "yes" ; then
9912			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9913			found="yes"
9914		fi
9915	fi
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931xorg_testset_save_CFLAGS="$CFLAGS"
9932
9933if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9934	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9935	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9936$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9937if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9938  $as_echo_n "(cached) " >&6
9939else
9940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941/* end confdefs.h.  */
9942int i;
9943_ACEOF
9944if ac_fn_c_try_compile "$LINENO"; then :
9945  xorg_cv_cc_flag_unknown_warning_option=yes
9946else
9947  xorg_cv_cc_flag_unknown_warning_option=no
9948fi
9949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9950fi
9951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9952$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9953	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9954	CFLAGS="$xorg_testset_save_CFLAGS"
9955fi
9956
9957if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9958	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9959		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9960	fi
9961	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9962	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9963$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9964if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9965  $as_echo_n "(cached) " >&6
9966else
9967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9968/* end confdefs.h.  */
9969int i;
9970_ACEOF
9971if ac_fn_c_try_compile "$LINENO"; then :
9972  xorg_cv_cc_flag_unused_command_line_argument=yes
9973else
9974  xorg_cv_cc_flag_unused_command_line_argument=no
9975fi
9976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9977fi
9978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9979$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9980	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9981	CFLAGS="$xorg_testset_save_CFLAGS"
9982fi
9983
9984found="no"
9985
9986	if test $found = "no" ; then
9987		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9988			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9989		fi
9990
9991		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9992			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9993		fi
9994
9995		CFLAGS="$CFLAGS -Warray-bounds"
9996
9997		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9998$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9999		cacheid=xorg_cv_cc_flag__Warray_bounds
10000		if eval \${$cacheid+:} false; then :
10001  $as_echo_n "(cached) " >&6
10002else
10003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10004/* end confdefs.h.  */
10005int i;
10006int
10007main ()
10008{
10009
10010  ;
10011  return 0;
10012}
10013_ACEOF
10014if ac_fn_c_try_link "$LINENO"; then :
10015  eval $cacheid=yes
10016else
10017  eval $cacheid=no
10018fi
10019rm -f core conftest.err conftest.$ac_objext \
10020    conftest$ac_exeext conftest.$ac_ext
10021fi
10022
10023
10024		CFLAGS="$xorg_testset_save_CFLAGS"
10025
10026		eval supported=\$$cacheid
10027		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10028$as_echo "$supported" >&6; }
10029		if test "$supported" = "yes" ; then
10030			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10031			found="yes"
10032		fi
10033	fi
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049xorg_testset_save_CFLAGS="$CFLAGS"
10050
10051if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10052	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10053	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10054$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10055if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10056  $as_echo_n "(cached) " >&6
10057else
10058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10059/* end confdefs.h.  */
10060int i;
10061_ACEOF
10062if ac_fn_c_try_compile "$LINENO"; then :
10063  xorg_cv_cc_flag_unknown_warning_option=yes
10064else
10065  xorg_cv_cc_flag_unknown_warning_option=no
10066fi
10067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10068fi
10069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10070$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10071	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10072	CFLAGS="$xorg_testset_save_CFLAGS"
10073fi
10074
10075if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10076	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10077		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10078	fi
10079	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10080	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10081$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10082if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10083  $as_echo_n "(cached) " >&6
10084else
10085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10086/* end confdefs.h.  */
10087int i;
10088_ACEOF
10089if ac_fn_c_try_compile "$LINENO"; then :
10090  xorg_cv_cc_flag_unused_command_line_argument=yes
10091else
10092  xorg_cv_cc_flag_unused_command_line_argument=no
10093fi
10094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10095fi
10096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10097$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10098	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10099	CFLAGS="$xorg_testset_save_CFLAGS"
10100fi
10101
10102found="no"
10103
10104	if test $found = "no" ; then
10105		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10106			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10107		fi
10108
10109		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10110			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10111		fi
10112
10113		CFLAGS="$CFLAGS -Wwrite-strings"
10114
10115		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10116$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
10117		cacheid=xorg_cv_cc_flag__Wwrite_strings
10118		if eval \${$cacheid+:} false; then :
10119  $as_echo_n "(cached) " >&6
10120else
10121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10122/* end confdefs.h.  */
10123int i;
10124int
10125main ()
10126{
10127
10128  ;
10129  return 0;
10130}
10131_ACEOF
10132if ac_fn_c_try_link "$LINENO"; then :
10133  eval $cacheid=yes
10134else
10135  eval $cacheid=no
10136fi
10137rm -f core conftest.err conftest.$ac_objext \
10138    conftest$ac_exeext conftest.$ac_ext
10139fi
10140
10141
10142		CFLAGS="$xorg_testset_save_CFLAGS"
10143
10144		eval supported=\$$cacheid
10145		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10146$as_echo "$supported" >&6; }
10147		if test "$supported" = "yes" ; then
10148			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10149			found="yes"
10150		fi
10151	fi
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167xorg_testset_save_CFLAGS="$CFLAGS"
10168
10169if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10170	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10171	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10172$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10173if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10174  $as_echo_n "(cached) " >&6
10175else
10176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10177/* end confdefs.h.  */
10178int i;
10179_ACEOF
10180if ac_fn_c_try_compile "$LINENO"; then :
10181  xorg_cv_cc_flag_unknown_warning_option=yes
10182else
10183  xorg_cv_cc_flag_unknown_warning_option=no
10184fi
10185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10186fi
10187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10188$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10189	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10190	CFLAGS="$xorg_testset_save_CFLAGS"
10191fi
10192
10193if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10194	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10195		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10196	fi
10197	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10198	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10199$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10200if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10201  $as_echo_n "(cached) " >&6
10202else
10203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10204/* end confdefs.h.  */
10205int i;
10206_ACEOF
10207if ac_fn_c_try_compile "$LINENO"; then :
10208  xorg_cv_cc_flag_unused_command_line_argument=yes
10209else
10210  xorg_cv_cc_flag_unused_command_line_argument=no
10211fi
10212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10213fi
10214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10215$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10216	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10217	CFLAGS="$xorg_testset_save_CFLAGS"
10218fi
10219
10220found="no"
10221
10222	if test $found = "no" ; then
10223		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10224			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10225		fi
10226
10227		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10228			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10229		fi
10230
10231		CFLAGS="$CFLAGS -Waddress"
10232
10233		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10234$as_echo_n "checking if $CC supports -Waddress... " >&6; }
10235		cacheid=xorg_cv_cc_flag__Waddress
10236		if eval \${$cacheid+:} false; then :
10237  $as_echo_n "(cached) " >&6
10238else
10239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10240/* end confdefs.h.  */
10241int i;
10242int
10243main ()
10244{
10245
10246  ;
10247  return 0;
10248}
10249_ACEOF
10250if ac_fn_c_try_link "$LINENO"; then :
10251  eval $cacheid=yes
10252else
10253  eval $cacheid=no
10254fi
10255rm -f core conftest.err conftest.$ac_objext \
10256    conftest$ac_exeext conftest.$ac_ext
10257fi
10258
10259
10260		CFLAGS="$xorg_testset_save_CFLAGS"
10261
10262		eval supported=\$$cacheid
10263		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10264$as_echo "$supported" >&6; }
10265		if test "$supported" = "yes" ; then
10266			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10267			found="yes"
10268		fi
10269	fi
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285xorg_testset_save_CFLAGS="$CFLAGS"
10286
10287if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10288	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10289	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10290$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10291if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10292  $as_echo_n "(cached) " >&6
10293else
10294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10295/* end confdefs.h.  */
10296int i;
10297_ACEOF
10298if ac_fn_c_try_compile "$LINENO"; then :
10299  xorg_cv_cc_flag_unknown_warning_option=yes
10300else
10301  xorg_cv_cc_flag_unknown_warning_option=no
10302fi
10303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10304fi
10305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10306$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10307	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10308	CFLAGS="$xorg_testset_save_CFLAGS"
10309fi
10310
10311if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10312	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10313		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10314	fi
10315	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10316	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10317$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10318if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10319  $as_echo_n "(cached) " >&6
10320else
10321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322/* end confdefs.h.  */
10323int i;
10324_ACEOF
10325if ac_fn_c_try_compile "$LINENO"; then :
10326  xorg_cv_cc_flag_unused_command_line_argument=yes
10327else
10328  xorg_cv_cc_flag_unused_command_line_argument=no
10329fi
10330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10331fi
10332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10333$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10334	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10335	CFLAGS="$xorg_testset_save_CFLAGS"
10336fi
10337
10338found="no"
10339
10340	if test $found = "no" ; then
10341		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10342			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10343		fi
10344
10345		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10346			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10347		fi
10348
10349		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10350
10351		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10352$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10353		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10354		if eval \${$cacheid+:} false; then :
10355  $as_echo_n "(cached) " >&6
10356else
10357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10358/* end confdefs.h.  */
10359int i;
10360int
10361main ()
10362{
10363
10364  ;
10365  return 0;
10366}
10367_ACEOF
10368if ac_fn_c_try_link "$LINENO"; then :
10369  eval $cacheid=yes
10370else
10371  eval $cacheid=no
10372fi
10373rm -f core conftest.err conftest.$ac_objext \
10374    conftest$ac_exeext conftest.$ac_ext
10375fi
10376
10377
10378		CFLAGS="$xorg_testset_save_CFLAGS"
10379
10380		eval supported=\$$cacheid
10381		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10382$as_echo "$supported" >&6; }
10383		if test "$supported" = "yes" ; then
10384			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10385			found="yes"
10386		fi
10387	fi
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403xorg_testset_save_CFLAGS="$CFLAGS"
10404
10405if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10406	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10407	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10408$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10409if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10410  $as_echo_n "(cached) " >&6
10411else
10412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10413/* end confdefs.h.  */
10414int i;
10415_ACEOF
10416if ac_fn_c_try_compile "$LINENO"; then :
10417  xorg_cv_cc_flag_unknown_warning_option=yes
10418else
10419  xorg_cv_cc_flag_unknown_warning_option=no
10420fi
10421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10422fi
10423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10424$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10425	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10426	CFLAGS="$xorg_testset_save_CFLAGS"
10427fi
10428
10429if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10430	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10431		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10432	fi
10433	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10434	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10435$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10436if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10437  $as_echo_n "(cached) " >&6
10438else
10439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10440/* end confdefs.h.  */
10441int i;
10442_ACEOF
10443if ac_fn_c_try_compile "$LINENO"; then :
10444  xorg_cv_cc_flag_unused_command_line_argument=yes
10445else
10446  xorg_cv_cc_flag_unused_command_line_argument=no
10447fi
10448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10449fi
10450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10451$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10452	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10453	CFLAGS="$xorg_testset_save_CFLAGS"
10454fi
10455
10456found="no"
10457
10458	if test $found = "no" ; then
10459		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10460			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10461		fi
10462
10463		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10464			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10465		fi
10466
10467		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10468
10469		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10470$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10471		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10472		if eval \${$cacheid+:} false; then :
10473  $as_echo_n "(cached) " >&6
10474else
10475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10476/* end confdefs.h.  */
10477int i;
10478int
10479main ()
10480{
10481
10482  ;
10483  return 0;
10484}
10485_ACEOF
10486if ac_fn_c_try_link "$LINENO"; then :
10487  eval $cacheid=yes
10488else
10489  eval $cacheid=no
10490fi
10491rm -f core conftest.err conftest.$ac_objext \
10492    conftest$ac_exeext conftest.$ac_ext
10493fi
10494
10495
10496		CFLAGS="$xorg_testset_save_CFLAGS"
10497
10498		eval supported=\$$cacheid
10499		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10500$as_echo "$supported" >&6; }
10501		if test "$supported" = "yes" ; then
10502			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10503			found="yes"
10504		fi
10505	fi
10506
10507
10508fi
10509
10510
10511
10512
10513
10514
10515
10516		CWARNFLAGS="$BASE_CFLAGS"
10517		if  test "x$GCC" = xyes ; then
10518		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10519		fi
10520
10521
10522
10523
10524
10525
10526
10527
10528# Check whether --enable-strict-compilation was given.
10529if test "${enable_strict_compilation+set}" = set; then :
10530  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10531else
10532  STRICT_COMPILE=no
10533fi
10534
10535
10536
10537
10538
10539
10540STRICT_CFLAGS=""
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554xorg_testset_save_CFLAGS="$CFLAGS"
10555
10556if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10557	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10558	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10559$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10560if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10561  $as_echo_n "(cached) " >&6
10562else
10563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10564/* end confdefs.h.  */
10565int i;
10566_ACEOF
10567if ac_fn_c_try_compile "$LINENO"; then :
10568  xorg_cv_cc_flag_unknown_warning_option=yes
10569else
10570  xorg_cv_cc_flag_unknown_warning_option=no
10571fi
10572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10573fi
10574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10575$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10576	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10577	CFLAGS="$xorg_testset_save_CFLAGS"
10578fi
10579
10580if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10581	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10582		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10583	fi
10584	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10585	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10586$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10587if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10588  $as_echo_n "(cached) " >&6
10589else
10590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10591/* end confdefs.h.  */
10592int i;
10593_ACEOF
10594if ac_fn_c_try_compile "$LINENO"; then :
10595  xorg_cv_cc_flag_unused_command_line_argument=yes
10596else
10597  xorg_cv_cc_flag_unused_command_line_argument=no
10598fi
10599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10600fi
10601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10602$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10603	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10604	CFLAGS="$xorg_testset_save_CFLAGS"
10605fi
10606
10607found="no"
10608
10609	if test $found = "no" ; then
10610		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10611			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10612		fi
10613
10614		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10615			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10616		fi
10617
10618		CFLAGS="$CFLAGS -pedantic"
10619
10620		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10621$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10622		cacheid=xorg_cv_cc_flag__pedantic
10623		if eval \${$cacheid+:} false; then :
10624  $as_echo_n "(cached) " >&6
10625else
10626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10627/* end confdefs.h.  */
10628int i;
10629int
10630main ()
10631{
10632
10633  ;
10634  return 0;
10635}
10636_ACEOF
10637if ac_fn_c_try_link "$LINENO"; then :
10638  eval $cacheid=yes
10639else
10640  eval $cacheid=no
10641fi
10642rm -f core conftest.err conftest.$ac_objext \
10643    conftest$ac_exeext conftest.$ac_ext
10644fi
10645
10646
10647		CFLAGS="$xorg_testset_save_CFLAGS"
10648
10649		eval supported=\$$cacheid
10650		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10651$as_echo "$supported" >&6; }
10652		if test "$supported" = "yes" ; then
10653			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10654			found="yes"
10655		fi
10656	fi
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672xorg_testset_save_CFLAGS="$CFLAGS"
10673
10674if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10675	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10676	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10677$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10678if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10679  $as_echo_n "(cached) " >&6
10680else
10681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10682/* end confdefs.h.  */
10683int i;
10684_ACEOF
10685if ac_fn_c_try_compile "$LINENO"; then :
10686  xorg_cv_cc_flag_unknown_warning_option=yes
10687else
10688  xorg_cv_cc_flag_unknown_warning_option=no
10689fi
10690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10691fi
10692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10693$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10694	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10695	CFLAGS="$xorg_testset_save_CFLAGS"
10696fi
10697
10698if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10699	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10700		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10701	fi
10702	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10703	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10704$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10705if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10706  $as_echo_n "(cached) " >&6
10707else
10708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709/* end confdefs.h.  */
10710int i;
10711_ACEOF
10712if ac_fn_c_try_compile "$LINENO"; then :
10713  xorg_cv_cc_flag_unused_command_line_argument=yes
10714else
10715  xorg_cv_cc_flag_unused_command_line_argument=no
10716fi
10717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10718fi
10719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10720$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10721	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10722	CFLAGS="$xorg_testset_save_CFLAGS"
10723fi
10724
10725found="no"
10726
10727	if test $found = "no" ; then
10728		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10729			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10730		fi
10731
10732		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10733			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10734		fi
10735
10736		CFLAGS="$CFLAGS -Werror"
10737
10738		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10739$as_echo_n "checking if $CC supports -Werror... " >&6; }
10740		cacheid=xorg_cv_cc_flag__Werror
10741		if eval \${$cacheid+:} false; then :
10742  $as_echo_n "(cached) " >&6
10743else
10744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10745/* end confdefs.h.  */
10746int i;
10747int
10748main ()
10749{
10750
10751  ;
10752  return 0;
10753}
10754_ACEOF
10755if ac_fn_c_try_link "$LINENO"; then :
10756  eval $cacheid=yes
10757else
10758  eval $cacheid=no
10759fi
10760rm -f core conftest.err conftest.$ac_objext \
10761    conftest$ac_exeext conftest.$ac_ext
10762fi
10763
10764
10765		CFLAGS="$xorg_testset_save_CFLAGS"
10766
10767		eval supported=\$$cacheid
10768		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10769$as_echo "$supported" >&6; }
10770		if test "$supported" = "yes" ; then
10771			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10772			found="yes"
10773		fi
10774	fi
10775
10776	if test $found = "no" ; then
10777		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10778			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10779		fi
10780
10781		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10782			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10783		fi
10784
10785		CFLAGS="$CFLAGS -errwarn"
10786
10787		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10788$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10789		cacheid=xorg_cv_cc_flag__errwarn
10790		if eval \${$cacheid+:} false; then :
10791  $as_echo_n "(cached) " >&6
10792else
10793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794/* end confdefs.h.  */
10795int i;
10796int
10797main ()
10798{
10799
10800  ;
10801  return 0;
10802}
10803_ACEOF
10804if ac_fn_c_try_link "$LINENO"; then :
10805  eval $cacheid=yes
10806else
10807  eval $cacheid=no
10808fi
10809rm -f core conftest.err conftest.$ac_objext \
10810    conftest$ac_exeext conftest.$ac_ext
10811fi
10812
10813
10814		CFLAGS="$xorg_testset_save_CFLAGS"
10815
10816		eval supported=\$$cacheid
10817		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10818$as_echo "$supported" >&6; }
10819		if test "$supported" = "yes" ; then
10820			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10821			found="yes"
10822		fi
10823	fi
10824
10825
10826
10827# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10828# activate it with -Werror, so we add it here explicitly.
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842xorg_testset_save_CFLAGS="$CFLAGS"
10843
10844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10845	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10846	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10847$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10848if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10849  $as_echo_n "(cached) " >&6
10850else
10851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10852/* end confdefs.h.  */
10853int i;
10854_ACEOF
10855if ac_fn_c_try_compile "$LINENO"; then :
10856  xorg_cv_cc_flag_unknown_warning_option=yes
10857else
10858  xorg_cv_cc_flag_unknown_warning_option=no
10859fi
10860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10861fi
10862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10863$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10864	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10865	CFLAGS="$xorg_testset_save_CFLAGS"
10866fi
10867
10868if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10869	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10870		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10871	fi
10872	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10873	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10874$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10875if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10876  $as_echo_n "(cached) " >&6
10877else
10878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10879/* end confdefs.h.  */
10880int i;
10881_ACEOF
10882if ac_fn_c_try_compile "$LINENO"; then :
10883  xorg_cv_cc_flag_unused_command_line_argument=yes
10884else
10885  xorg_cv_cc_flag_unused_command_line_argument=no
10886fi
10887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10888fi
10889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10890$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10891	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10892	CFLAGS="$xorg_testset_save_CFLAGS"
10893fi
10894
10895found="no"
10896
10897	if test $found = "no" ; then
10898		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10899			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10900		fi
10901
10902		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10903			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10904		fi
10905
10906		CFLAGS="$CFLAGS -Werror=attributes"
10907
10908		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10909$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10910		cacheid=xorg_cv_cc_flag__Werror_attributes
10911		if eval \${$cacheid+:} false; then :
10912  $as_echo_n "(cached) " >&6
10913else
10914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10915/* end confdefs.h.  */
10916int i;
10917int
10918main ()
10919{
10920
10921  ;
10922  return 0;
10923}
10924_ACEOF
10925if ac_fn_c_try_link "$LINENO"; then :
10926  eval $cacheid=yes
10927else
10928  eval $cacheid=no
10929fi
10930rm -f core conftest.err conftest.$ac_objext \
10931    conftest$ac_exeext conftest.$ac_ext
10932fi
10933
10934
10935		CFLAGS="$xorg_testset_save_CFLAGS"
10936
10937		eval supported=\$$cacheid
10938		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10939$as_echo "$supported" >&6; }
10940		if test "$supported" = "yes" ; then
10941			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10942			found="yes"
10943		fi
10944	fi
10945
10946
10947
10948if test "x$STRICT_COMPILE" = "xyes"; then
10949    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10950    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10951fi
10952
10953
10954
10955
10956
10957
10958cat >>confdefs.h <<_ACEOF
10959#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10960_ACEOF
10961
10962	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10963	if test "x$PVM" = "x"; then
10964		PVM="0"
10965	fi
10966
10967cat >>confdefs.h <<_ACEOF
10968#define PACKAGE_VERSION_MINOR $PVM
10969_ACEOF
10970
10971	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10972	if test "x$PVP" = "x"; then
10973		PVP="0"
10974	fi
10975
10976cat >>confdefs.h <<_ACEOF
10977#define PACKAGE_VERSION_PATCHLEVEL $PVP
10978_ACEOF
10979
10980
10981
10982CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10983mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10984|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10985touch \$(top_srcdir)/ChangeLog; \
10986echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10987
10988
10989
10990
10991macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10992INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10993mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10994|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10995touch \$(top_srcdir)/INSTALL; \
10996echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10997
10998
10999
11000
11001
11002
11003case $host_os in
11004    solaris*)
11005        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11006        # check for a man page file found in later versions that use
11007        # traditional section numbers instead
11008        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11009$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; }
11010if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then :
11011  $as_echo_n "(cached) " >&6
11012else
11013  test "$cross_compiling" = yes &&
11014  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11015if test -r "/usr/share/man/man7/attributes.7"; then
11016  ac_cv_file__usr_share_man_man7_attributes_7=yes
11017else
11018  ac_cv_file__usr_share_man_man7_attributes_7=no
11019fi
11020fi
11021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11022$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11023if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then :
11024  SYSV_MAN_SECTIONS=false
11025else
11026  SYSV_MAN_SECTIONS=true
11027fi
11028
11029        ;;
11030    *) SYSV_MAN_SECTIONS=false ;;
11031esac
11032
11033if test x$APP_MAN_SUFFIX = x    ; then
11034    APP_MAN_SUFFIX=1
11035fi
11036if test x$APP_MAN_DIR = x    ; then
11037    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11038fi
11039
11040if test x$LIB_MAN_SUFFIX = x    ; then
11041    LIB_MAN_SUFFIX=3
11042fi
11043if test x$LIB_MAN_DIR = x    ; then
11044    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11045fi
11046
11047if test x$FILE_MAN_SUFFIX = x    ; then
11048    case $SYSV_MAN_SECTIONS in
11049	true)				FILE_MAN_SUFFIX=4  ;;
11050	*)				FILE_MAN_SUFFIX=5  ;;
11051    esac
11052fi
11053if test x$FILE_MAN_DIR = x    ; then
11054    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11055fi
11056
11057if test x$MISC_MAN_SUFFIX = x    ; then
11058    case $SYSV_MAN_SECTIONS in
11059	true)				MISC_MAN_SUFFIX=5  ;;
11060	*)				MISC_MAN_SUFFIX=7  ;;
11061    esac
11062fi
11063if test x$MISC_MAN_DIR = x    ; then
11064    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11065fi
11066
11067if test x$DRIVER_MAN_SUFFIX = x    ; then
11068    case $SYSV_MAN_SECTIONS in
11069	true)				DRIVER_MAN_SUFFIX=7  ;;
11070	*)				DRIVER_MAN_SUFFIX=4  ;;
11071    esac
11072fi
11073if test x$DRIVER_MAN_DIR = x    ; then
11074    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11075fi
11076
11077if test x$ADMIN_MAN_SUFFIX = x    ; then
11078    case $SYSV_MAN_SECTIONS in
11079	true)				ADMIN_MAN_SUFFIX=1m ;;
11080	*)				ADMIN_MAN_SUFFIX=8  ;;
11081    esac
11082fi
11083if test x$ADMIN_MAN_DIR = x    ; then
11084    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11085fi
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101XORG_MAN_PAGE="X Version 11"
11102
11103MAN_SUBSTS="\
11104	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11105	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11106	-e 's|__xservername__|Xorg|g' \
11107	-e 's|__xconfigfile__|xorg.conf|g' \
11108	-e 's|__projectroot__|\$(prefix)|g' \
11109	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11110	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11111	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11112	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11113	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11114	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11115	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11116
11117
11118
11119# Check whether --enable-silent-rules was given.
11120if test "${enable_silent_rules+set}" = set; then :
11121  enableval=$enable_silent_rules;
11122fi
11123
11124case $enable_silent_rules in # (((
11125  yes) AM_DEFAULT_VERBOSITY=0;;
11126   no) AM_DEFAULT_VERBOSITY=1;;
11127    *) AM_DEFAULT_VERBOSITY=0;;
11128esac
11129am_make=${MAKE-make}
11130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11131$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
11132if ${am_cv_make_support_nested_variables+:} false; then :
11133  $as_echo_n "(cached) " >&6
11134else
11135  if $as_echo 'TRUE=$(BAR$(V))
11136BAR0=false
11137BAR1=true
11138V=1
11139am__doit:
11140	@$(TRUE)
11141.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11142  am_cv_make_support_nested_variables=yes
11143else
11144  am_cv_make_support_nested_variables=no
11145fi
11146fi
11147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11148$as_echo "$am_cv_make_support_nested_variables" >&6; }
11149if test $am_cv_make_support_nested_variables = yes; then
11150    AM_V='$(V)'
11151  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11152else
11153  AM_V=$AM_DEFAULT_VERBOSITY
11154  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11155fi
11156AM_BACKSLASH='\'
11157
11158
11159
11160# And disable a few very noisy warnings
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175xorg_testset_save_CFLAGS="$CFLAGS"
11176
11177if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11178	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11179	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11180$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11181if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11182  $as_echo_n "(cached) " >&6
11183else
11184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11185/* end confdefs.h.  */
11186int i;
11187_ACEOF
11188if ac_fn_c_try_compile "$LINENO"; then :
11189  xorg_cv_cc_flag_unknown_warning_option=yes
11190else
11191  xorg_cv_cc_flag_unknown_warning_option=no
11192fi
11193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11194fi
11195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11196$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11197	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11198	CFLAGS="$xorg_testset_save_CFLAGS"
11199fi
11200
11201if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11202	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11203		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11204	fi
11205	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11206	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11207$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11208if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11209  $as_echo_n "(cached) " >&6
11210else
11211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11212/* end confdefs.h.  */
11213int i;
11214_ACEOF
11215if ac_fn_c_try_compile "$LINENO"; then :
11216  xorg_cv_cc_flag_unused_command_line_argument=yes
11217else
11218  xorg_cv_cc_flag_unused_command_line_argument=no
11219fi
11220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11221fi
11222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11223$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11224	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11225	CFLAGS="$xorg_testset_save_CFLAGS"
11226fi
11227
11228found="no"
11229
11230	if test $found = "no" ; then
11231		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11232			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11233		fi
11234
11235		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11236			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11237		fi
11238
11239		CFLAGS="$CFLAGS -Wno-cast-qual"
11240
11241		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-cast-qual" >&5
11242$as_echo_n "checking if $CC supports -Wno-cast-qual... " >&6; }
11243		cacheid=xorg_cv_cc_flag__Wno_cast_qual
11244		if eval \${$cacheid+:} false; then :
11245  $as_echo_n "(cached) " >&6
11246else
11247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11248/* end confdefs.h.  */
11249int i;
11250int
11251main ()
11252{
11253
11254  ;
11255  return 0;
11256}
11257_ACEOF
11258if ac_fn_c_try_link "$LINENO"; then :
11259  eval $cacheid=yes
11260else
11261  eval $cacheid=no
11262fi
11263rm -f core conftest.err conftest.$ac_objext \
11264    conftest$ac_exeext conftest.$ac_ext
11265fi
11266
11267
11268		CFLAGS="$xorg_testset_save_CFLAGS"
11269
11270		eval supported=\$$cacheid
11271		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11272$as_echo "$supported" >&6; }
11273		if test "$supported" = "yes" ; then
11274			NOWARNFLAGS="$NOWARNFLAGS -Wno-cast-qual"
11275			found="yes"
11276		fi
11277	fi
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293xorg_testset_save_CFLAGS="$CFLAGS"
11294
11295if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11296	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11297	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11298$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11299if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11300  $as_echo_n "(cached) " >&6
11301else
11302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303/* end confdefs.h.  */
11304int i;
11305_ACEOF
11306if ac_fn_c_try_compile "$LINENO"; then :
11307  xorg_cv_cc_flag_unknown_warning_option=yes
11308else
11309  xorg_cv_cc_flag_unknown_warning_option=no
11310fi
11311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11312fi
11313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11314$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11315	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11316	CFLAGS="$xorg_testset_save_CFLAGS"
11317fi
11318
11319if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11320	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11321		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11322	fi
11323	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11324	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11325$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11326if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11327  $as_echo_n "(cached) " >&6
11328else
11329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11330/* end confdefs.h.  */
11331int i;
11332_ACEOF
11333if ac_fn_c_try_compile "$LINENO"; then :
11334  xorg_cv_cc_flag_unused_command_line_argument=yes
11335else
11336  xorg_cv_cc_flag_unused_command_line_argument=no
11337fi
11338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11339fi
11340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11341$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11342	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11343	CFLAGS="$xorg_testset_save_CFLAGS"
11344fi
11345
11346found="no"
11347
11348	if test $found = "no" ; then
11349		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11350			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11351		fi
11352
11353		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11354			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11355		fi
11356
11357		CFLAGS="$CFLAGS -Wno-redundant-decls"
11358
11359		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-redundant-decls" >&5
11360$as_echo_n "checking if $CC supports -Wno-redundant-decls... " >&6; }
11361		cacheid=xorg_cv_cc_flag__Wno_redundant_decls
11362		if eval \${$cacheid+:} false; then :
11363  $as_echo_n "(cached) " >&6
11364else
11365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11366/* end confdefs.h.  */
11367int i;
11368int
11369main ()
11370{
11371
11372  ;
11373  return 0;
11374}
11375_ACEOF
11376if ac_fn_c_try_link "$LINENO"; then :
11377  eval $cacheid=yes
11378else
11379  eval $cacheid=no
11380fi
11381rm -f core conftest.err conftest.$ac_objext \
11382    conftest$ac_exeext conftest.$ac_ext
11383fi
11384
11385
11386		CFLAGS="$xorg_testset_save_CFLAGS"
11387
11388		eval supported=\$$cacheid
11389		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11390$as_echo "$supported" >&6; }
11391		if test "$supported" = "yes" ; then
11392			NOWARNFLAGS="$NOWARNFLAGS -Wno-redundant-decls"
11393			found="yes"
11394		fi
11395	fi
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411xorg_testset_save_CFLAGS="$CFLAGS"
11412
11413if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11414	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11415	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11416$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11417if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11418  $as_echo_n "(cached) " >&6
11419else
11420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11421/* end confdefs.h.  */
11422int i;
11423_ACEOF
11424if ac_fn_c_try_compile "$LINENO"; then :
11425  xorg_cv_cc_flag_unknown_warning_option=yes
11426else
11427  xorg_cv_cc_flag_unknown_warning_option=no
11428fi
11429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11430fi
11431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11432$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11433	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11434	CFLAGS="$xorg_testset_save_CFLAGS"
11435fi
11436
11437if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11438	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11439		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11440	fi
11441	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11442	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11443$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11444if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11445  $as_echo_n "(cached) " >&6
11446else
11447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11448/* end confdefs.h.  */
11449int i;
11450_ACEOF
11451if ac_fn_c_try_compile "$LINENO"; then :
11452  xorg_cv_cc_flag_unused_command_line_argument=yes
11453else
11454  xorg_cv_cc_flag_unused_command_line_argument=no
11455fi
11456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11457fi
11458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11459$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11460	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11461	CFLAGS="$xorg_testset_save_CFLAGS"
11462fi
11463
11464found="no"
11465
11466	if test $found = "no" ; then
11467		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11468			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11469		fi
11470
11471		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11472			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11473		fi
11474
11475		CFLAGS="$CFLAGS -Wno-maybe-uninitialized"
11476
11477		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-maybe-uninitialized" >&5
11478$as_echo_n "checking if $CC supports -Wno-maybe-uninitialized... " >&6; }
11479		cacheid=xorg_cv_cc_flag__Wno_maybe_uninitialized
11480		if eval \${$cacheid+:} false; then :
11481  $as_echo_n "(cached) " >&6
11482else
11483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11484/* end confdefs.h.  */
11485int i;
11486int
11487main ()
11488{
11489
11490  ;
11491  return 0;
11492}
11493_ACEOF
11494if ac_fn_c_try_link "$LINENO"; then :
11495  eval $cacheid=yes
11496else
11497  eval $cacheid=no
11498fi
11499rm -f core conftest.err conftest.$ac_objext \
11500    conftest$ac_exeext conftest.$ac_ext
11501fi
11502
11503
11504		CFLAGS="$xorg_testset_save_CFLAGS"
11505
11506		eval supported=\$$cacheid
11507		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11508$as_echo "$supported" >&6; }
11509		if test "$supported" = "yes" ; then
11510			NOWARNFLAGS="$NOWARNFLAGS -Wno-maybe-uninitialized"
11511			found="yes"
11512		fi
11513	fi
11514
11515
11516
11517
11518
11519# Require X.Org server macros (i.e. XORG_DRIVER_CHECK_EXT) to check for required modules
11520
11521
11522# Initialize libtool
11523# Check whether --enable-static was given.
11524if test "${enable_static+set}" = set; then :
11525  enableval=$enable_static; p=${PACKAGE-default}
11526    case $enableval in
11527    yes) enable_static=yes ;;
11528    no) enable_static=no ;;
11529    *)
11530     enable_static=no
11531      # Look at the argument we got.  We use all the common list separators.
11532      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11533      for pkg in $enableval; do
11534	IFS=$lt_save_ifs
11535	if test "X$pkg" = "X$p"; then
11536	  enable_static=yes
11537	fi
11538      done
11539      IFS=$lt_save_ifs
11540      ;;
11541    esac
11542else
11543  enable_static=no
11544fi
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554case `pwd` in
11555  *\ * | *\	*)
11556    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11557$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11558esac
11559
11560
11561
11562macro_version='2.4.6'
11563macro_revision='2.4.6'
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577ltmain=$ac_aux_dir/ltmain.sh
11578
11579# Backslashify metacharacters that are still active within
11580# double-quoted strings.
11581sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11582
11583# Same as above, but do not quote variable references.
11584double_quote_subst='s/\(["`\\]\)/\\\1/g'
11585
11586# Sed substitution to delay expansion of an escaped shell variable in a
11587# double_quote_subst'ed string.
11588delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11589
11590# Sed substitution to delay expansion of an escaped single quote.
11591delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11592
11593# Sed substitution to avoid accidental globbing in evaled expressions
11594no_glob_subst='s/\*/\\\*/g'
11595
11596ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11597ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11598ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11599
11600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11601$as_echo_n "checking how to print strings... " >&6; }
11602# Test print first, because it will be a builtin if present.
11603if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11604   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11605  ECHO='print -r --'
11606elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11607  ECHO='printf %s\n'
11608else
11609  # Use this function as a fallback that always works.
11610  func_fallback_echo ()
11611  {
11612    eval 'cat <<_LTECHO_EOF
11613$1
11614_LTECHO_EOF'
11615  }
11616  ECHO='func_fallback_echo'
11617fi
11618
11619# func_echo_all arg...
11620# Invoke $ECHO with all args, space-separated.
11621func_echo_all ()
11622{
11623    $ECHO ""
11624}
11625
11626case $ECHO in
11627  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11628$as_echo "printf" >&6; } ;;
11629  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11630$as_echo "print -r" >&6; } ;;
11631  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11632$as_echo "cat" >&6; } ;;
11633esac
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11649$as_echo_n "checking for a sed that does not truncate output... " >&6; }
11650if ${ac_cv_path_SED+:} false; then :
11651  $as_echo_n "(cached) " >&6
11652else
11653            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11654     for ac_i in 1 2 3 4 5 6 7; do
11655       ac_script="$ac_script$as_nl$ac_script"
11656     done
11657     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11658     { ac_script=; unset ac_script;}
11659     if test -z "$SED"; then
11660  ac_path_SED_found=false
11661  # Loop through the user's path and test for each of PROGNAME-LIST
11662  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11663for as_dir in $PATH
11664do
11665  IFS=$as_save_IFS
11666  test -z "$as_dir" && as_dir=.
11667    for ac_prog in sed gsed; do
11668    for ac_exec_ext in '' $ac_executable_extensions; do
11669      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11670      as_fn_executable_p "$ac_path_SED" || continue
11671# Check for GNU ac_path_SED and select it if it is found.
11672  # Check for GNU $ac_path_SED
11673case `"$ac_path_SED" --version 2>&1` in
11674*GNU*)
11675  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11676*)
11677  ac_count=0
11678  $as_echo_n 0123456789 >"conftest.in"
11679  while :
11680  do
11681    cat "conftest.in" "conftest.in" >"conftest.tmp"
11682    mv "conftest.tmp" "conftest.in"
11683    cp "conftest.in" "conftest.nl"
11684    $as_echo '' >> "conftest.nl"
11685    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11686    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11687    as_fn_arith $ac_count + 1 && ac_count=$as_val
11688    if test $ac_count -gt ${ac_path_SED_max-0}; then
11689      # Best one so far, save it but keep looking for a better one
11690      ac_cv_path_SED="$ac_path_SED"
11691      ac_path_SED_max=$ac_count
11692    fi
11693    # 10*(2^10) chars as input seems more than enough
11694    test $ac_count -gt 10 && break
11695  done
11696  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11697esac
11698
11699      $ac_path_SED_found && break 3
11700    done
11701  done
11702  done
11703IFS=$as_save_IFS
11704  if test -z "$ac_cv_path_SED"; then
11705    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11706  fi
11707else
11708  ac_cv_path_SED=$SED
11709fi
11710
11711fi
11712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11713$as_echo "$ac_cv_path_SED" >&6; }
11714 SED="$ac_cv_path_SED"
11715  rm -f conftest.sed
11716
11717test -z "$SED" && SED=sed
11718Xsed="$SED -e 1s/^X//"
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11731$as_echo_n "checking for fgrep... " >&6; }
11732if ${ac_cv_path_FGREP+:} false; then :
11733  $as_echo_n "(cached) " >&6
11734else
11735  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11736   then ac_cv_path_FGREP="$GREP -F"
11737   else
11738     if test -z "$FGREP"; then
11739  ac_path_FGREP_found=false
11740  # Loop through the user's path and test for each of PROGNAME-LIST
11741  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11742for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11743do
11744  IFS=$as_save_IFS
11745  test -z "$as_dir" && as_dir=.
11746    for ac_prog in fgrep; do
11747    for ac_exec_ext in '' $ac_executable_extensions; do
11748      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11749      as_fn_executable_p "$ac_path_FGREP" || continue
11750# Check for GNU ac_path_FGREP and select it if it is found.
11751  # Check for GNU $ac_path_FGREP
11752case `"$ac_path_FGREP" --version 2>&1` in
11753*GNU*)
11754  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11755*)
11756  ac_count=0
11757  $as_echo_n 0123456789 >"conftest.in"
11758  while :
11759  do
11760    cat "conftest.in" "conftest.in" >"conftest.tmp"
11761    mv "conftest.tmp" "conftest.in"
11762    cp "conftest.in" "conftest.nl"
11763    $as_echo 'FGREP' >> "conftest.nl"
11764    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11765    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11766    as_fn_arith $ac_count + 1 && ac_count=$as_val
11767    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11768      # Best one so far, save it but keep looking for a better one
11769      ac_cv_path_FGREP="$ac_path_FGREP"
11770      ac_path_FGREP_max=$ac_count
11771    fi
11772    # 10*(2^10) chars as input seems more than enough
11773    test $ac_count -gt 10 && break
11774  done
11775  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11776esac
11777
11778      $ac_path_FGREP_found && break 3
11779    done
11780  done
11781  done
11782IFS=$as_save_IFS
11783  if test -z "$ac_cv_path_FGREP"; then
11784    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11785  fi
11786else
11787  ac_cv_path_FGREP=$FGREP
11788fi
11789
11790   fi
11791fi
11792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11793$as_echo "$ac_cv_path_FGREP" >&6; }
11794 FGREP="$ac_cv_path_FGREP"
11795
11796
11797test -z "$GREP" && GREP=grep
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817# Check whether --with-gnu-ld was given.
11818if test "${with_gnu_ld+set}" = set; then :
11819  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11820else
11821  with_gnu_ld=no
11822fi
11823
11824ac_prog=ld
11825if test yes = "$GCC"; then
11826  # Check if gcc -print-prog-name=ld gives a path.
11827  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11828$as_echo_n "checking for ld used by $CC... " >&6; }
11829  case $host in
11830  *-*-mingw*)
11831    # gcc leaves a trailing carriage return, which upsets mingw
11832    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11833  *)
11834    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11835  esac
11836  case $ac_prog in
11837    # Accept absolute paths.
11838    [\\/]* | ?:[\\/]*)
11839      re_direlt='/[^/][^/]*/\.\./'
11840      # Canonicalize the pathname of ld
11841      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11842      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11843	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11844      done
11845      test -z "$LD" && LD=$ac_prog
11846      ;;
11847  "")
11848    # If it fails, then pretend we aren't using GCC.
11849    ac_prog=ld
11850    ;;
11851  *)
11852    # If it is relative, then search for the first ld in PATH.
11853    with_gnu_ld=unknown
11854    ;;
11855  esac
11856elif test yes = "$with_gnu_ld"; then
11857  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11858$as_echo_n "checking for GNU ld... " >&6; }
11859else
11860  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11861$as_echo_n "checking for non-GNU ld... " >&6; }
11862fi
11863if ${lt_cv_path_LD+:} false; then :
11864  $as_echo_n "(cached) " >&6
11865else
11866  if test -z "$LD"; then
11867  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11868  for ac_dir in $PATH; do
11869    IFS=$lt_save_ifs
11870    test -z "$ac_dir" && ac_dir=.
11871    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11872      lt_cv_path_LD=$ac_dir/$ac_prog
11873      # Check to see if the program is GNU ld.  I'd rather use --version,
11874      # but apparently some variants of GNU ld only accept -v.
11875      # Break only if it was the GNU/non-GNU ld that we prefer.
11876      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11877      *GNU* | *'with BFD'*)
11878	test no != "$with_gnu_ld" && break
11879	;;
11880      *)
11881	test yes != "$with_gnu_ld" && break
11882	;;
11883      esac
11884    fi
11885  done
11886  IFS=$lt_save_ifs
11887else
11888  lt_cv_path_LD=$LD # Let the user override the test with a path.
11889fi
11890fi
11891
11892LD=$lt_cv_path_LD
11893if test -n "$LD"; then
11894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11895$as_echo "$LD" >&6; }
11896else
11897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11898$as_echo "no" >&6; }
11899fi
11900test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11902$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11903if ${lt_cv_prog_gnu_ld+:} false; then :
11904  $as_echo_n "(cached) " >&6
11905else
11906  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11907case `$LD -v 2>&1 </dev/null` in
11908*GNU* | *'with BFD'*)
11909  lt_cv_prog_gnu_ld=yes
11910  ;;
11911*)
11912  lt_cv_prog_gnu_ld=no
11913  ;;
11914esac
11915fi
11916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11917$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11918with_gnu_ld=$lt_cv_prog_gnu_ld
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11929$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11930if ${lt_cv_path_NM+:} false; then :
11931  $as_echo_n "(cached) " >&6
11932else
11933  if test -n "$NM"; then
11934  # Let the user override the test.
11935  lt_cv_path_NM=$NM
11936else
11937  lt_nm_to_check=${ac_tool_prefix}nm
11938  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11939    lt_nm_to_check="$lt_nm_to_check nm"
11940  fi
11941  for lt_tmp_nm in $lt_nm_to_check; do
11942    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11943    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11944      IFS=$lt_save_ifs
11945      test -z "$ac_dir" && ac_dir=.
11946      tmp_nm=$ac_dir/$lt_tmp_nm
11947      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11948	# Check to see if the nm accepts a BSD-compat flag.
11949	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11950	#   nm: unknown option "B" ignored
11951	# Tru64's nm complains that /dev/null is an invalid object file
11952	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11953	case $build_os in
11954	mingw*) lt_bad_file=conftest.nm/nofile ;;
11955	*) lt_bad_file=/dev/null ;;
11956	esac
11957	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11958	*$lt_bad_file* | *'Invalid file or object type'*)
11959	  lt_cv_path_NM="$tmp_nm -B"
11960	  break 2
11961	  ;;
11962	*)
11963	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11964	  */dev/null*)
11965	    lt_cv_path_NM="$tmp_nm -p"
11966	    break 2
11967	    ;;
11968	  *)
11969	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11970	    continue # so that we can try to find one that supports BSD flags
11971	    ;;
11972	  esac
11973	  ;;
11974	esac
11975      fi
11976    done
11977    IFS=$lt_save_ifs
11978  done
11979  : ${lt_cv_path_NM=no}
11980fi
11981fi
11982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11983$as_echo "$lt_cv_path_NM" >&6; }
11984if test no != "$lt_cv_path_NM"; then
11985  NM=$lt_cv_path_NM
11986else
11987  # Didn't find any BSD compatible name lister, look for dumpbin.
11988  if test -n "$DUMPBIN"; then :
11989    # Let the user override the test.
11990  else
11991    if test -n "$ac_tool_prefix"; then
11992  for ac_prog in dumpbin "link -dump"
11993  do
11994    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11995set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11997$as_echo_n "checking for $ac_word... " >&6; }
11998if ${ac_cv_prog_DUMPBIN+:} false; then :
11999  $as_echo_n "(cached) " >&6
12000else
12001  if test -n "$DUMPBIN"; then
12002  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12003else
12004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12005for as_dir in $PATH
12006do
12007  IFS=$as_save_IFS
12008  test -z "$as_dir" && as_dir=.
12009    for ac_exec_ext in '' $ac_executable_extensions; do
12010  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12011    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12012    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12013    break 2
12014  fi
12015done
12016  done
12017IFS=$as_save_IFS
12018
12019fi
12020fi
12021DUMPBIN=$ac_cv_prog_DUMPBIN
12022if test -n "$DUMPBIN"; then
12023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12024$as_echo "$DUMPBIN" >&6; }
12025else
12026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12027$as_echo "no" >&6; }
12028fi
12029
12030
12031    test -n "$DUMPBIN" && break
12032  done
12033fi
12034if test -z "$DUMPBIN"; then
12035  ac_ct_DUMPBIN=$DUMPBIN
12036  for ac_prog in dumpbin "link -dump"
12037do
12038  # Extract the first word of "$ac_prog", so it can be a program name with args.
12039set dummy $ac_prog; ac_word=$2
12040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12041$as_echo_n "checking for $ac_word... " >&6; }
12042if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
12043  $as_echo_n "(cached) " >&6
12044else
12045  if test -n "$ac_ct_DUMPBIN"; then
12046  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12047else
12048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12049for as_dir in $PATH
12050do
12051  IFS=$as_save_IFS
12052  test -z "$as_dir" && as_dir=.
12053    for ac_exec_ext in '' $ac_executable_extensions; do
12054  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12055    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12056    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12057    break 2
12058  fi
12059done
12060  done
12061IFS=$as_save_IFS
12062
12063fi
12064fi
12065ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12066if test -n "$ac_ct_DUMPBIN"; then
12067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12068$as_echo "$ac_ct_DUMPBIN" >&6; }
12069else
12070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12071$as_echo "no" >&6; }
12072fi
12073
12074
12075  test -n "$ac_ct_DUMPBIN" && break
12076done
12077
12078  if test "x$ac_ct_DUMPBIN" = x; then
12079    DUMPBIN=":"
12080  else
12081    case $cross_compiling:$ac_tool_warned in
12082yes:)
12083{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12084$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12085ac_tool_warned=yes ;;
12086esac
12087    DUMPBIN=$ac_ct_DUMPBIN
12088  fi
12089fi
12090
12091    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
12092    *COFF*)
12093      DUMPBIN="$DUMPBIN -symbols -headers"
12094      ;;
12095    *)
12096      DUMPBIN=:
12097      ;;
12098    esac
12099  fi
12100
12101  if test : != "$DUMPBIN"; then
12102    NM=$DUMPBIN
12103  fi
12104fi
12105test -z "$NM" && NM=nm
12106
12107
12108
12109
12110
12111
12112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12113$as_echo_n "checking the name lister ($NM) interface... " >&6; }
12114if ${lt_cv_nm_interface+:} false; then :
12115  $as_echo_n "(cached) " >&6
12116else
12117  lt_cv_nm_interface="BSD nm"
12118  echo "int some_variable = 0;" > conftest.$ac_ext
12119  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12120  (eval "$ac_compile" 2>conftest.err)
12121  cat conftest.err >&5
12122  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12123  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12124  cat conftest.err >&5
12125  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12126  cat conftest.out >&5
12127  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12128    lt_cv_nm_interface="MS dumpbin"
12129  fi
12130  rm -f conftest*
12131fi
12132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12133$as_echo "$lt_cv_nm_interface" >&6; }
12134
12135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12136$as_echo_n "checking whether ln -s works... " >&6; }
12137LN_S=$as_ln_s
12138if test "$LN_S" = "ln -s"; then
12139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12140$as_echo "yes" >&6; }
12141else
12142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12143$as_echo "no, using $LN_S" >&6; }
12144fi
12145
12146# find the maximum length of command line arguments
12147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12148$as_echo_n "checking the maximum length of command line arguments... " >&6; }
12149if ${lt_cv_sys_max_cmd_len+:} false; then :
12150  $as_echo_n "(cached) " >&6
12151else
12152    i=0
12153  teststring=ABCD
12154
12155  case $build_os in
12156  msdosdjgpp*)
12157    # On DJGPP, this test can blow up pretty badly due to problems in libc
12158    # (any single argument exceeding 2000 bytes causes a buffer overrun
12159    # during glob expansion).  Even if it were fixed, the result of this
12160    # check would be larger than it should be.
12161    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12162    ;;
12163
12164  gnu*)
12165    # Under GNU Hurd, this test is not required because there is
12166    # no limit to the length of command line arguments.
12167    # Libtool will interpret -1 as no limit whatsoever
12168    lt_cv_sys_max_cmd_len=-1;
12169    ;;
12170
12171  cygwin* | mingw* | cegcc*)
12172    # On Win9x/ME, this test blows up -- it succeeds, but takes
12173    # about 5 minutes as the teststring grows exponentially.
12174    # Worse, since 9x/ME are not pre-emptively multitasking,
12175    # you end up with a "frozen" computer, even though with patience
12176    # the test eventually succeeds (with a max line length of 256k).
12177    # Instead, let's just punt: use the minimum linelength reported by
12178    # all of the supported platforms: 8192 (on NT/2K/XP).
12179    lt_cv_sys_max_cmd_len=8192;
12180    ;;
12181
12182  mint*)
12183    # On MiNT this can take a long time and run out of memory.
12184    lt_cv_sys_max_cmd_len=8192;
12185    ;;
12186
12187  amigaos*)
12188    # On AmigaOS with pdksh, this test takes hours, literally.
12189    # So we just punt and use a minimum line length of 8192.
12190    lt_cv_sys_max_cmd_len=8192;
12191    ;;
12192
12193  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
12194    # This has been around since 386BSD, at least.  Likely further.
12195    if test -x /sbin/sysctl; then
12196      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12197    elif test -x /usr/sbin/sysctl; then
12198      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12199    else
12200      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
12201    fi
12202    # And add a safety zone
12203    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12204    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12205    ;;
12206
12207  interix*)
12208    # We know the value 262144 and hardcode it with a safety zone (like BSD)
12209    lt_cv_sys_max_cmd_len=196608
12210    ;;
12211
12212  os2*)
12213    # The test takes a long time on OS/2.
12214    lt_cv_sys_max_cmd_len=8192
12215    ;;
12216
12217  osf*)
12218    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12219    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12220    # nice to cause kernel panics so lets avoid the loop below.
12221    # First set a reasonable default.
12222    lt_cv_sys_max_cmd_len=16384
12223    #
12224    if test -x /sbin/sysconfig; then
12225      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12226        *1*) lt_cv_sys_max_cmd_len=-1 ;;
12227      esac
12228    fi
12229    ;;
12230  sco3.2v5*)
12231    lt_cv_sys_max_cmd_len=102400
12232    ;;
12233  sysv5* | sco5v6* | sysv4.2uw2*)
12234    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12235    if test -n "$kargmax"; then
12236      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
12237    else
12238      lt_cv_sys_max_cmd_len=32768
12239    fi
12240    ;;
12241  *)
12242    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12243    if test -n "$lt_cv_sys_max_cmd_len" && \
12244       test undefined != "$lt_cv_sys_max_cmd_len"; then
12245      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12246      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12247    else
12248      # Make teststring a little bigger before we do anything with it.
12249      # a 1K string should be a reasonable start.
12250      for i in 1 2 3 4 5 6 7 8; do
12251        teststring=$teststring$teststring
12252      done
12253      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12254      # If test is not a shell built-in, we'll probably end up computing a
12255      # maximum length that is only half of the actual maximum length, but
12256      # we can't tell.
12257      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
12258	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12259	      test 17 != "$i" # 1/2 MB should be enough
12260      do
12261        i=`expr $i + 1`
12262        teststring=$teststring$teststring
12263      done
12264      # Only check the string length outside the loop.
12265      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12266      teststring=
12267      # Add a significant safety factor because C++ compilers can tack on
12268      # massive amounts of additional arguments before passing them to the
12269      # linker.  It appears as though 1/2 is a usable value.
12270      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12271    fi
12272    ;;
12273  esac
12274
12275fi
12276
12277if test -n "$lt_cv_sys_max_cmd_len"; then
12278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12279$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12280else
12281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12282$as_echo "none" >&6; }
12283fi
12284max_cmd_len=$lt_cv_sys_max_cmd_len
12285
12286
12287
12288
12289
12290
12291: ${CP="cp -f"}
12292: ${MV="mv -f"}
12293: ${RM="rm -f"}
12294
12295if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12296  lt_unset=unset
12297else
12298  lt_unset=false
12299fi
12300
12301
12302
12303
12304
12305# test EBCDIC or ASCII
12306case `echo X|tr X '\101'` in
12307 A) # ASCII based system
12308    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12309  lt_SP2NL='tr \040 \012'
12310  lt_NL2SP='tr \015\012 \040\040'
12311  ;;
12312 *) # EBCDIC based system
12313  lt_SP2NL='tr \100 \n'
12314  lt_NL2SP='tr \r\n \100\100'
12315  ;;
12316esac
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12327$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
12328if ${lt_cv_to_host_file_cmd+:} false; then :
12329  $as_echo_n "(cached) " >&6
12330else
12331  case $host in
12332  *-*-mingw* )
12333    case $build in
12334      *-*-mingw* ) # actually msys
12335        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12336        ;;
12337      *-*-cygwin* )
12338        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12339        ;;
12340      * ) # otherwise, assume *nix
12341        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12342        ;;
12343    esac
12344    ;;
12345  *-*-cygwin* )
12346    case $build in
12347      *-*-mingw* ) # actually msys
12348        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12349        ;;
12350      *-*-cygwin* )
12351        lt_cv_to_host_file_cmd=func_convert_file_noop
12352        ;;
12353      * ) # otherwise, assume *nix
12354        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12355        ;;
12356    esac
12357    ;;
12358  * ) # unhandled hosts (and "normal" native builds)
12359    lt_cv_to_host_file_cmd=func_convert_file_noop
12360    ;;
12361esac
12362
12363fi
12364
12365to_host_file_cmd=$lt_cv_to_host_file_cmd
12366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12367$as_echo "$lt_cv_to_host_file_cmd" >&6; }
12368
12369
12370
12371
12372
12373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12374$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
12375if ${lt_cv_to_tool_file_cmd+:} false; then :
12376  $as_echo_n "(cached) " >&6
12377else
12378  #assume ordinary cross tools, or native build.
12379lt_cv_to_tool_file_cmd=func_convert_file_noop
12380case $host in
12381  *-*-mingw* )
12382    case $build in
12383      *-*-mingw* ) # actually msys
12384        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12385        ;;
12386    esac
12387    ;;
12388esac
12389
12390fi
12391
12392to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12394$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
12395
12396
12397
12398
12399
12400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12401$as_echo_n "checking for $LD option to reload object files... " >&6; }
12402if ${lt_cv_ld_reload_flag+:} false; then :
12403  $as_echo_n "(cached) " >&6
12404else
12405  lt_cv_ld_reload_flag='-r'
12406fi
12407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12408$as_echo "$lt_cv_ld_reload_flag" >&6; }
12409reload_flag=$lt_cv_ld_reload_flag
12410case $reload_flag in
12411"" | " "*) ;;
12412*) reload_flag=" $reload_flag" ;;
12413esac
12414reload_cmds='$LD$reload_flag -o $output$reload_objs'
12415case $host_os in
12416  cygwin* | mingw* | pw32* | cegcc*)
12417    if test yes != "$GCC"; then
12418      reload_cmds=false
12419    fi
12420    ;;
12421  darwin*)
12422    if test yes = "$GCC"; then
12423      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12424    else
12425      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12426    fi
12427    ;;
12428esac
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438if test -n "$ac_tool_prefix"; then
12439  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12440set dummy ${ac_tool_prefix}objdump; ac_word=$2
12441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12442$as_echo_n "checking for $ac_word... " >&6; }
12443if ${ac_cv_prog_OBJDUMP+:} false; then :
12444  $as_echo_n "(cached) " >&6
12445else
12446  if test -n "$OBJDUMP"; then
12447  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12448else
12449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12450for as_dir in $PATH
12451do
12452  IFS=$as_save_IFS
12453  test -z "$as_dir" && as_dir=.
12454    for ac_exec_ext in '' $ac_executable_extensions; do
12455  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12456    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12457    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12458    break 2
12459  fi
12460done
12461  done
12462IFS=$as_save_IFS
12463
12464fi
12465fi
12466OBJDUMP=$ac_cv_prog_OBJDUMP
12467if test -n "$OBJDUMP"; then
12468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12469$as_echo "$OBJDUMP" >&6; }
12470else
12471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12472$as_echo "no" >&6; }
12473fi
12474
12475
12476fi
12477if test -z "$ac_cv_prog_OBJDUMP"; then
12478  ac_ct_OBJDUMP=$OBJDUMP
12479  # Extract the first word of "objdump", so it can be a program name with args.
12480set dummy objdump; ac_word=$2
12481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12482$as_echo_n "checking for $ac_word... " >&6; }
12483if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
12484  $as_echo_n "(cached) " >&6
12485else
12486  if test -n "$ac_ct_OBJDUMP"; then
12487  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12488else
12489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12490for as_dir in $PATH
12491do
12492  IFS=$as_save_IFS
12493  test -z "$as_dir" && as_dir=.
12494    for ac_exec_ext in '' $ac_executable_extensions; do
12495  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12496    ac_cv_prog_ac_ct_OBJDUMP="objdump"
12497    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12498    break 2
12499  fi
12500done
12501  done
12502IFS=$as_save_IFS
12503
12504fi
12505fi
12506ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12507if test -n "$ac_ct_OBJDUMP"; then
12508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12509$as_echo "$ac_ct_OBJDUMP" >&6; }
12510else
12511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12512$as_echo "no" >&6; }
12513fi
12514
12515  if test "x$ac_ct_OBJDUMP" = x; then
12516    OBJDUMP="false"
12517  else
12518    case $cross_compiling:$ac_tool_warned in
12519yes:)
12520{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12522ac_tool_warned=yes ;;
12523esac
12524    OBJDUMP=$ac_ct_OBJDUMP
12525  fi
12526else
12527  OBJDUMP="$ac_cv_prog_OBJDUMP"
12528fi
12529
12530test -z "$OBJDUMP" && OBJDUMP=objdump
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12541$as_echo_n "checking how to recognize dependent libraries... " >&6; }
12542if ${lt_cv_deplibs_check_method+:} false; then :
12543  $as_echo_n "(cached) " >&6
12544else
12545  lt_cv_file_magic_cmd='$MAGIC_CMD'
12546lt_cv_file_magic_test_file=
12547lt_cv_deplibs_check_method='unknown'
12548# Need to set the preceding variable on all platforms that support
12549# interlibrary dependencies.
12550# 'none' -- dependencies not supported.
12551# 'unknown' -- same as none, but documents that we really don't know.
12552# 'pass_all' -- all dependencies passed with no checks.
12553# 'test_compile' -- check by making test program.
12554# 'file_magic [[regex]]' -- check by looking for files in library path
12555# that responds to the $file_magic_cmd with a given extended regex.
12556# If you have 'file' or equivalent on your system and you're not sure
12557# whether 'pass_all' will *always* work, you probably want this one.
12558
12559case $host_os in
12560aix[4-9]*)
12561  lt_cv_deplibs_check_method=pass_all
12562  ;;
12563
12564beos*)
12565  lt_cv_deplibs_check_method=pass_all
12566  ;;
12567
12568bsdi[45]*)
12569  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12570  lt_cv_file_magic_cmd='/usr/bin/file -L'
12571  lt_cv_file_magic_test_file=/shlib/libc.so
12572  ;;
12573
12574cygwin*)
12575  # func_win32_libid is a shell function defined in ltmain.sh
12576  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12577  lt_cv_file_magic_cmd='func_win32_libid'
12578  ;;
12579
12580mingw* | pw32*)
12581  # Base MSYS/MinGW do not provide the 'file' command needed by
12582  # func_win32_libid shell function, so use a weaker test based on 'objdump',
12583  # unless we find 'file', for example because we are cross-compiling.
12584  if ( file / ) >/dev/null 2>&1; then
12585    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12586    lt_cv_file_magic_cmd='func_win32_libid'
12587  else
12588    # Keep this pattern in sync with the one in func_win32_libid.
12589    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12590    lt_cv_file_magic_cmd='$OBJDUMP -f'
12591  fi
12592  ;;
12593
12594cegcc*)
12595  # use the weaker test based on 'objdump'. See mingw*.
12596  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12597  lt_cv_file_magic_cmd='$OBJDUMP -f'
12598  ;;
12599
12600darwin* | rhapsody*)
12601  lt_cv_deplibs_check_method=pass_all
12602  ;;
12603
12604freebsd* | dragonfly*)
12605  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12606    case $host_cpu in
12607    i*86 )
12608      # Not sure whether the presence of OpenBSD here was a mistake.
12609      # Let's accept both of them until this is cleared up.
12610      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12611      lt_cv_file_magic_cmd=/usr/bin/file
12612      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12613      ;;
12614    esac
12615  else
12616    lt_cv_deplibs_check_method=pass_all
12617  fi
12618  ;;
12619
12620haiku*)
12621  lt_cv_deplibs_check_method=pass_all
12622  ;;
12623
12624hpux10.20* | hpux11*)
12625  lt_cv_file_magic_cmd=/usr/bin/file
12626  case $host_cpu in
12627  ia64*)
12628    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12629    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12630    ;;
12631  hppa*64*)
12632    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]'
12633    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12634    ;;
12635  *)
12636    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12637    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12638    ;;
12639  esac
12640  ;;
12641
12642interix[3-9]*)
12643  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12644  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12645  ;;
12646
12647irix5* | irix6* | nonstopux*)
12648  case $LD in
12649  *-32|*"-32 ") libmagic=32-bit;;
12650  *-n32|*"-n32 ") libmagic=N32;;
12651  *-64|*"-64 ") libmagic=64-bit;;
12652  *) libmagic=never-match;;
12653  esac
12654  lt_cv_deplibs_check_method=pass_all
12655  ;;
12656
12657# This must be glibc/ELF.
12658linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12659  lt_cv_deplibs_check_method=pass_all
12660  ;;
12661
12662netbsd*)
12663  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12664    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12665  else
12666    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12667  fi
12668  ;;
12669
12670newos6*)
12671  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12672  lt_cv_file_magic_cmd=/usr/bin/file
12673  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12674  ;;
12675
12676*nto* | *qnx*)
12677  lt_cv_deplibs_check_method=pass_all
12678  ;;
12679
12680openbsd* | bitrig*)
12681  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12682    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12683  else
12684    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12685  fi
12686  ;;
12687
12688osf3* | osf4* | osf5*)
12689  lt_cv_deplibs_check_method=pass_all
12690  ;;
12691
12692rdos*)
12693  lt_cv_deplibs_check_method=pass_all
12694  ;;
12695
12696solaris*)
12697  lt_cv_deplibs_check_method=pass_all
12698  ;;
12699
12700sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12701  lt_cv_deplibs_check_method=pass_all
12702  ;;
12703
12704sysv4 | sysv4.3*)
12705  case $host_vendor in
12706  motorola)
12707    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]'
12708    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12709    ;;
12710  ncr)
12711    lt_cv_deplibs_check_method=pass_all
12712    ;;
12713  sequent)
12714    lt_cv_file_magic_cmd='/bin/file'
12715    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12716    ;;
12717  sni)
12718    lt_cv_file_magic_cmd='/bin/file'
12719    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12720    lt_cv_file_magic_test_file=/lib/libc.so
12721    ;;
12722  siemens)
12723    lt_cv_deplibs_check_method=pass_all
12724    ;;
12725  pc)
12726    lt_cv_deplibs_check_method=pass_all
12727    ;;
12728  esac
12729  ;;
12730
12731tpf*)
12732  lt_cv_deplibs_check_method=pass_all
12733  ;;
12734os2*)
12735  lt_cv_deplibs_check_method=pass_all
12736  ;;
12737esac
12738
12739fi
12740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12741$as_echo "$lt_cv_deplibs_check_method" >&6; }
12742
12743file_magic_glob=
12744want_nocaseglob=no
12745if test "$build" = "$host"; then
12746  case $host_os in
12747  mingw* | pw32*)
12748    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12749      want_nocaseglob=yes
12750    else
12751      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12752    fi
12753    ;;
12754  esac
12755fi
12756
12757file_magic_cmd=$lt_cv_file_magic_cmd
12758deplibs_check_method=$lt_cv_deplibs_check_method
12759test -z "$deplibs_check_method" && deplibs_check_method=unknown
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782if test -n "$ac_tool_prefix"; then
12783  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12784set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12786$as_echo_n "checking for $ac_word... " >&6; }
12787if ${ac_cv_prog_DLLTOOL+:} false; then :
12788  $as_echo_n "(cached) " >&6
12789else
12790  if test -n "$DLLTOOL"; then
12791  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12792else
12793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12794for as_dir in $PATH
12795do
12796  IFS=$as_save_IFS
12797  test -z "$as_dir" && as_dir=.
12798    for ac_exec_ext in '' $ac_executable_extensions; do
12799  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12800    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12801    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12802    break 2
12803  fi
12804done
12805  done
12806IFS=$as_save_IFS
12807
12808fi
12809fi
12810DLLTOOL=$ac_cv_prog_DLLTOOL
12811if test -n "$DLLTOOL"; then
12812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12813$as_echo "$DLLTOOL" >&6; }
12814else
12815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12816$as_echo "no" >&6; }
12817fi
12818
12819
12820fi
12821if test -z "$ac_cv_prog_DLLTOOL"; then
12822  ac_ct_DLLTOOL=$DLLTOOL
12823  # Extract the first word of "dlltool", so it can be a program name with args.
12824set dummy dlltool; ac_word=$2
12825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12826$as_echo_n "checking for $ac_word... " >&6; }
12827if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12828  $as_echo_n "(cached) " >&6
12829else
12830  if test -n "$ac_ct_DLLTOOL"; then
12831  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12832else
12833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12834for as_dir in $PATH
12835do
12836  IFS=$as_save_IFS
12837  test -z "$as_dir" && as_dir=.
12838    for ac_exec_ext in '' $ac_executable_extensions; do
12839  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12840    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12841    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12842    break 2
12843  fi
12844done
12845  done
12846IFS=$as_save_IFS
12847
12848fi
12849fi
12850ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12851if test -n "$ac_ct_DLLTOOL"; then
12852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12853$as_echo "$ac_ct_DLLTOOL" >&6; }
12854else
12855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12856$as_echo "no" >&6; }
12857fi
12858
12859  if test "x$ac_ct_DLLTOOL" = x; then
12860    DLLTOOL="false"
12861  else
12862    case $cross_compiling:$ac_tool_warned in
12863yes:)
12864{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12865$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12866ac_tool_warned=yes ;;
12867esac
12868    DLLTOOL=$ac_ct_DLLTOOL
12869  fi
12870else
12871  DLLTOOL="$ac_cv_prog_DLLTOOL"
12872fi
12873
12874test -z "$DLLTOOL" && DLLTOOL=dlltool
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12886$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12887if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12888  $as_echo_n "(cached) " >&6
12889else
12890  lt_cv_sharedlib_from_linklib_cmd='unknown'
12891
12892case $host_os in
12893cygwin* | mingw* | pw32* | cegcc*)
12894  # two different shell functions defined in ltmain.sh;
12895  # decide which one to use based on capabilities of $DLLTOOL
12896  case `$DLLTOOL --help 2>&1` in
12897  *--identify-strict*)
12898    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12899    ;;
12900  *)
12901    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12902    ;;
12903  esac
12904  ;;
12905*)
12906  # fallback: assume linklib IS sharedlib
12907  lt_cv_sharedlib_from_linklib_cmd=$ECHO
12908  ;;
12909esac
12910
12911fi
12912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12913$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12914sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12915test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12916
12917
12918
12919
12920
12921
12922
12923if test -n "$ac_tool_prefix"; then
12924  for ac_prog in ar
12925  do
12926    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12927set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12929$as_echo_n "checking for $ac_word... " >&6; }
12930if ${ac_cv_prog_AR+:} false; then :
12931  $as_echo_n "(cached) " >&6
12932else
12933  if test -n "$AR"; then
12934  ac_cv_prog_AR="$AR" # Let the user override the test.
12935else
12936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12937for as_dir in $PATH
12938do
12939  IFS=$as_save_IFS
12940  test -z "$as_dir" && as_dir=.
12941    for ac_exec_ext in '' $ac_executable_extensions; do
12942  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12943    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12944    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12945    break 2
12946  fi
12947done
12948  done
12949IFS=$as_save_IFS
12950
12951fi
12952fi
12953AR=$ac_cv_prog_AR
12954if test -n "$AR"; then
12955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12956$as_echo "$AR" >&6; }
12957else
12958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12959$as_echo "no" >&6; }
12960fi
12961
12962
12963    test -n "$AR" && break
12964  done
12965fi
12966if test -z "$AR"; then
12967  ac_ct_AR=$AR
12968  for ac_prog in ar
12969do
12970  # Extract the first word of "$ac_prog", so it can be a program name with args.
12971set dummy $ac_prog; ac_word=$2
12972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12973$as_echo_n "checking for $ac_word... " >&6; }
12974if ${ac_cv_prog_ac_ct_AR+:} false; then :
12975  $as_echo_n "(cached) " >&6
12976else
12977  if test -n "$ac_ct_AR"; then
12978  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12979else
12980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12981for as_dir in $PATH
12982do
12983  IFS=$as_save_IFS
12984  test -z "$as_dir" && as_dir=.
12985    for ac_exec_ext in '' $ac_executable_extensions; do
12986  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12987    ac_cv_prog_ac_ct_AR="$ac_prog"
12988    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12989    break 2
12990  fi
12991done
12992  done
12993IFS=$as_save_IFS
12994
12995fi
12996fi
12997ac_ct_AR=$ac_cv_prog_ac_ct_AR
12998if test -n "$ac_ct_AR"; then
12999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13000$as_echo "$ac_ct_AR" >&6; }
13001else
13002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13003$as_echo "no" >&6; }
13004fi
13005
13006
13007  test -n "$ac_ct_AR" && break
13008done
13009
13010  if test "x$ac_ct_AR" = x; then
13011    AR="false"
13012  else
13013    case $cross_compiling:$ac_tool_warned in
13014yes:)
13015{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13016$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13017ac_tool_warned=yes ;;
13018esac
13019    AR=$ac_ct_AR
13020  fi
13021fi
13022
13023: ${AR=ar}
13024: ${AR_FLAGS=cru}
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13037$as_echo_n "checking for archiver @FILE support... " >&6; }
13038if ${lt_cv_ar_at_file+:} false; then :
13039  $as_echo_n "(cached) " >&6
13040else
13041  lt_cv_ar_at_file=no
13042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13043/* end confdefs.h.  */
13044
13045int
13046main ()
13047{
13048
13049  ;
13050  return 0;
13051}
13052_ACEOF
13053if ac_fn_c_try_compile "$LINENO"; then :
13054  echo conftest.$ac_objext > conftest.lst
13055      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13056      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13057  (eval $lt_ar_try) 2>&5
13058  ac_status=$?
13059  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13060  test $ac_status = 0; }
13061      if test 0 -eq "$ac_status"; then
13062	# Ensure the archiver fails upon bogus file names.
13063	rm -f conftest.$ac_objext libconftest.a
13064	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13065  (eval $lt_ar_try) 2>&5
13066  ac_status=$?
13067  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13068  test $ac_status = 0; }
13069	if test 0 -ne "$ac_status"; then
13070          lt_cv_ar_at_file=@
13071        fi
13072      fi
13073      rm -f conftest.* libconftest.a
13074
13075fi
13076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13077
13078fi
13079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13080$as_echo "$lt_cv_ar_at_file" >&6; }
13081
13082if test no = "$lt_cv_ar_at_file"; then
13083  archiver_list_spec=
13084else
13085  archiver_list_spec=$lt_cv_ar_at_file
13086fi
13087
13088
13089
13090
13091
13092
13093
13094if test -n "$ac_tool_prefix"; then
13095  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13096set dummy ${ac_tool_prefix}strip; ac_word=$2
13097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13098$as_echo_n "checking for $ac_word... " >&6; }
13099if ${ac_cv_prog_STRIP+:} false; then :
13100  $as_echo_n "(cached) " >&6
13101else
13102  if test -n "$STRIP"; then
13103  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13104else
13105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13106for as_dir in $PATH
13107do
13108  IFS=$as_save_IFS
13109  test -z "$as_dir" && as_dir=.
13110    for ac_exec_ext in '' $ac_executable_extensions; do
13111  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13112    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13113    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13114    break 2
13115  fi
13116done
13117  done
13118IFS=$as_save_IFS
13119
13120fi
13121fi
13122STRIP=$ac_cv_prog_STRIP
13123if test -n "$STRIP"; then
13124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13125$as_echo "$STRIP" >&6; }
13126else
13127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13128$as_echo "no" >&6; }
13129fi
13130
13131
13132fi
13133if test -z "$ac_cv_prog_STRIP"; then
13134  ac_ct_STRIP=$STRIP
13135  # Extract the first word of "strip", so it can be a program name with args.
13136set dummy strip; ac_word=$2
13137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13138$as_echo_n "checking for $ac_word... " >&6; }
13139if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13140  $as_echo_n "(cached) " >&6
13141else
13142  if test -n "$ac_ct_STRIP"; then
13143  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13144else
13145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13146for as_dir in $PATH
13147do
13148  IFS=$as_save_IFS
13149  test -z "$as_dir" && as_dir=.
13150    for ac_exec_ext in '' $ac_executable_extensions; do
13151  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13152    ac_cv_prog_ac_ct_STRIP="strip"
13153    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13154    break 2
13155  fi
13156done
13157  done
13158IFS=$as_save_IFS
13159
13160fi
13161fi
13162ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13163if test -n "$ac_ct_STRIP"; then
13164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13165$as_echo "$ac_ct_STRIP" >&6; }
13166else
13167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13168$as_echo "no" >&6; }
13169fi
13170
13171  if test "x$ac_ct_STRIP" = x; then
13172    STRIP=":"
13173  else
13174    case $cross_compiling:$ac_tool_warned in
13175yes:)
13176{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13177$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13178ac_tool_warned=yes ;;
13179esac
13180    STRIP=$ac_ct_STRIP
13181  fi
13182else
13183  STRIP="$ac_cv_prog_STRIP"
13184fi
13185
13186test -z "$STRIP" && STRIP=:
13187
13188
13189
13190
13191
13192
13193if test -n "$ac_tool_prefix"; then
13194  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13195set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13197$as_echo_n "checking for $ac_word... " >&6; }
13198if ${ac_cv_prog_RANLIB+:} false; then :
13199  $as_echo_n "(cached) " >&6
13200else
13201  if test -n "$RANLIB"; then
13202  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13203else
13204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13205for as_dir in $PATH
13206do
13207  IFS=$as_save_IFS
13208  test -z "$as_dir" && as_dir=.
13209    for ac_exec_ext in '' $ac_executable_extensions; do
13210  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13211    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13212    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13213    break 2
13214  fi
13215done
13216  done
13217IFS=$as_save_IFS
13218
13219fi
13220fi
13221RANLIB=$ac_cv_prog_RANLIB
13222if test -n "$RANLIB"; then
13223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13224$as_echo "$RANLIB" >&6; }
13225else
13226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13227$as_echo "no" >&6; }
13228fi
13229
13230
13231fi
13232if test -z "$ac_cv_prog_RANLIB"; then
13233  ac_ct_RANLIB=$RANLIB
13234  # Extract the first word of "ranlib", so it can be a program name with args.
13235set dummy ranlib; ac_word=$2
13236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13237$as_echo_n "checking for $ac_word... " >&6; }
13238if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13239  $as_echo_n "(cached) " >&6
13240else
13241  if test -n "$ac_ct_RANLIB"; then
13242  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13243else
13244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13245for as_dir in $PATH
13246do
13247  IFS=$as_save_IFS
13248  test -z "$as_dir" && as_dir=.
13249    for ac_exec_ext in '' $ac_executable_extensions; do
13250  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13251    ac_cv_prog_ac_ct_RANLIB="ranlib"
13252    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13253    break 2
13254  fi
13255done
13256  done
13257IFS=$as_save_IFS
13258
13259fi
13260fi
13261ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13262if test -n "$ac_ct_RANLIB"; then
13263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13264$as_echo "$ac_ct_RANLIB" >&6; }
13265else
13266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13267$as_echo "no" >&6; }
13268fi
13269
13270  if test "x$ac_ct_RANLIB" = x; then
13271    RANLIB=":"
13272  else
13273    case $cross_compiling:$ac_tool_warned in
13274yes:)
13275{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13276$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13277ac_tool_warned=yes ;;
13278esac
13279    RANLIB=$ac_ct_RANLIB
13280  fi
13281else
13282  RANLIB="$ac_cv_prog_RANLIB"
13283fi
13284
13285test -z "$RANLIB" && RANLIB=:
13286
13287
13288
13289
13290
13291
13292# Determine commands to create old-style static archives.
13293old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13294old_postinstall_cmds='chmod 644 $oldlib'
13295old_postuninstall_cmds=
13296
13297if test -n "$RANLIB"; then
13298  case $host_os in
13299  bitrig* | openbsd*)
13300    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13301    ;;
13302  *)
13303    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13304    ;;
13305  esac
13306  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13307fi
13308
13309case $host_os in
13310  darwin*)
13311    lock_old_archive_extraction=yes ;;
13312  *)
13313    lock_old_archive_extraction=no ;;
13314esac
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354# If no C compiler was specified, use CC.
13355LTCC=${LTCC-"$CC"}
13356
13357# If no C compiler flags were specified, use CFLAGS.
13358LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13359
13360# Allow CC to be a program name with arguments.
13361compiler=$CC
13362
13363
13364# Check for command to grab the raw symbol name followed by C symbol from nm.
13365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13366$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13367if ${lt_cv_sys_global_symbol_pipe+:} false; then :
13368  $as_echo_n "(cached) " >&6
13369else
13370
13371# These are sane defaults that work on at least a few old systems.
13372# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13373
13374# Character class describing NM global symbol codes.
13375symcode='[BCDEGRST]'
13376
13377# Regexp to match symbols that can be accessed directly from C.
13378sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13379
13380# Define system-specific variables.
13381case $host_os in
13382aix*)
13383  symcode='[BCDT]'
13384  ;;
13385cygwin* | mingw* | pw32* | cegcc*)
13386  symcode='[ABCDGISTW]'
13387  ;;
13388hpux*)
13389  if test ia64 = "$host_cpu"; then
13390    symcode='[ABCDEGRST]'
13391  fi
13392  ;;
13393irix* | nonstopux*)
13394  symcode='[BCDEGRST]'
13395  ;;
13396osf*)
13397  symcode='[BCDEGQRST]'
13398  ;;
13399solaris*)
13400  symcode='[BDRT]'
13401  ;;
13402sco3.2v5*)
13403  symcode='[DT]'
13404  ;;
13405sysv4.2uw2*)
13406  symcode='[DT]'
13407  ;;
13408sysv5* | sco5v6* | unixware* | OpenUNIX*)
13409  symcode='[ABDT]'
13410  ;;
13411sysv4)
13412  symcode='[DFNSTU]'
13413  ;;
13414esac
13415
13416# If we're using GNU nm, then use its standard symbol codes.
13417case `$NM -V 2>&1` in
13418*GNU* | *'with BFD'*)
13419  symcode='[ABCDGIRSTW]' ;;
13420esac
13421
13422if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13423  # Gets list of data symbols to import.
13424  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
13425  # Adjust the below global symbol transforms to fixup imported variables.
13426  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13427  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
13428  lt_c_name_lib_hook="\
13429  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
13430  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
13431else
13432  # Disable hooks by default.
13433  lt_cv_sys_global_symbol_to_import=
13434  lt_cdecl_hook=
13435  lt_c_name_hook=
13436  lt_c_name_lib_hook=
13437fi
13438
13439# Transform an extracted symbol line into a proper C declaration.
13440# Some systems (esp. on ia64) link data and code symbols differently,
13441# so use this general approach.
13442lt_cv_sys_global_symbol_to_cdecl="sed -n"\
13443$lt_cdecl_hook\
13444" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13445" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13446
13447# Transform an extracted symbol line into symbol name and symbol address
13448lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
13449$lt_c_name_hook\
13450" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13451" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
13452
13453# Transform an extracted symbol line into symbol name with lib prefix and
13454# symbol address.
13455lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
13456$lt_c_name_lib_hook\
13457" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13458" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
13459" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
13460
13461# Handle CRLF in mingw tool chain
13462opt_cr=
13463case $build_os in
13464mingw*)
13465  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13466  ;;
13467esac
13468
13469# Try without a prefix underscore, then with it.
13470for ac_symprfx in "" "_"; do
13471
13472  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13473  symxfrm="\\1 $ac_symprfx\\2 \\2"
13474
13475  # Write the raw and C identifiers.
13476  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13477    # Fake it for dumpbin and say T for any non-static function,
13478    # D for any global variable and I for any imported variable.
13479    # Also find C++ and __fastcall symbols from MSVC++,
13480    # which start with @ or ?.
13481    lt_cv_sys_global_symbol_pipe="$AWK '"\
13482"     {last_section=section; section=\$ 3};"\
13483"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13484"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13485"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13486"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13487"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13488"     \$ 0!~/External *\|/{next};"\
13489"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13490"     {if(hide[section]) next};"\
13491"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13492"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13493"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13494"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13495"     ' prfx=^$ac_symprfx"
13496  else
13497    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13498  fi
13499  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
13500
13501  # Check to see that the pipe works correctly.
13502  pipe_works=no
13503
13504  rm -f conftest*
13505  cat > conftest.$ac_ext <<_LT_EOF
13506#ifdef __cplusplus
13507extern "C" {
13508#endif
13509char nm_test_var;
13510void nm_test_func(void);
13511void nm_test_func(void){}
13512#ifdef __cplusplus
13513}
13514#endif
13515int main(){nm_test_var='a';nm_test_func();return(0);}
13516_LT_EOF
13517
13518  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13519  (eval $ac_compile) 2>&5
13520  ac_status=$?
13521  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13522  test $ac_status = 0; }; then
13523    # Now try to grab the symbols.
13524    nlist=conftest.nm
13525    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13526  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13527  ac_status=$?
13528  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13529  test $ac_status = 0; } && test -s "$nlist"; then
13530      # Try sorting and uniquifying the output.
13531      if sort "$nlist" | uniq > "$nlist"T; then
13532	mv -f "$nlist"T "$nlist"
13533      else
13534	rm -f "$nlist"T
13535      fi
13536
13537      # Make sure that we snagged all the symbols we need.
13538      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13539	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13540	  cat <<_LT_EOF > conftest.$ac_ext
13541/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
13542#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13543/* DATA imports from DLLs on WIN32 can't be const, because runtime
13544   relocations are performed -- see ld's documentation on pseudo-relocs.  */
13545# define LT_DLSYM_CONST
13546#elif defined __osf__
13547/* This system does not cope well with relocations in const data.  */
13548# define LT_DLSYM_CONST
13549#else
13550# define LT_DLSYM_CONST const
13551#endif
13552
13553#ifdef __cplusplus
13554extern "C" {
13555#endif
13556
13557_LT_EOF
13558	  # Now generate the symbol file.
13559	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13560
13561	  cat <<_LT_EOF >> conftest.$ac_ext
13562
13563/* The mapping between symbol names and symbols.  */
13564LT_DLSYM_CONST struct {
13565  const char *name;
13566  void       *address;
13567}
13568lt__PROGRAM__LTX_preloaded_symbols[] =
13569{
13570  { "@PROGRAM@", (void *) 0 },
13571_LT_EOF
13572	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13573	  cat <<\_LT_EOF >> conftest.$ac_ext
13574  {0, (void *) 0}
13575};
13576
13577/* This works around a problem in FreeBSD linker */
13578#ifdef FREEBSD_WORKAROUND
13579static const void *lt_preloaded_setup() {
13580  return lt__PROGRAM__LTX_preloaded_symbols;
13581}
13582#endif
13583
13584#ifdef __cplusplus
13585}
13586#endif
13587_LT_EOF
13588	  # Now try linking the two files.
13589	  mv conftest.$ac_objext conftstm.$ac_objext
13590	  lt_globsym_save_LIBS=$LIBS
13591	  lt_globsym_save_CFLAGS=$CFLAGS
13592	  LIBS=conftstm.$ac_objext
13593	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13594	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13595  (eval $ac_link) 2>&5
13596  ac_status=$?
13597  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13598  test $ac_status = 0; } && test -s conftest$ac_exeext; then
13599	    pipe_works=yes
13600	  fi
13601	  LIBS=$lt_globsym_save_LIBS
13602	  CFLAGS=$lt_globsym_save_CFLAGS
13603	else
13604	  echo "cannot find nm_test_func in $nlist" >&5
13605	fi
13606      else
13607	echo "cannot find nm_test_var in $nlist" >&5
13608      fi
13609    else
13610      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13611    fi
13612  else
13613    echo "$progname: failed program was:" >&5
13614    cat conftest.$ac_ext >&5
13615  fi
13616  rm -rf conftest* conftst*
13617
13618  # Do not use the global_symbol_pipe unless it works.
13619  if test yes = "$pipe_works"; then
13620    break
13621  else
13622    lt_cv_sys_global_symbol_pipe=
13623  fi
13624done
13625
13626fi
13627
13628if test -z "$lt_cv_sys_global_symbol_pipe"; then
13629  lt_cv_sys_global_symbol_to_cdecl=
13630fi
13631if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13633$as_echo "failed" >&6; }
13634else
13635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13636$as_echo "ok" >&6; }
13637fi
13638
13639# Response file support.
13640if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13641  nm_file_list_spec='@'
13642elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13643  nm_file_list_spec='@'
13644fi
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13683$as_echo_n "checking for sysroot... " >&6; }
13684
13685# Check whether --with-sysroot was given.
13686if test "${with_sysroot+set}" = set; then :
13687  withval=$with_sysroot;
13688else
13689  with_sysroot=no
13690fi
13691
13692
13693lt_sysroot=
13694case $with_sysroot in #(
13695 yes)
13696   if test yes = "$GCC"; then
13697     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13698   fi
13699   ;; #(
13700 /*)
13701   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13702   ;; #(
13703 no|'')
13704   ;; #(
13705 *)
13706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13707$as_echo "$with_sysroot" >&6; }
13708   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13709   ;;
13710esac
13711
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13713$as_echo "${lt_sysroot:-no}" >&6; }
13714
13715
13716
13717
13718
13719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13720$as_echo_n "checking for a working dd... " >&6; }
13721if ${ac_cv_path_lt_DD+:} false; then :
13722  $as_echo_n "(cached) " >&6
13723else
13724  printf 0123456789abcdef0123456789abcdef >conftest.i
13725cat conftest.i conftest.i >conftest2.i
13726: ${lt_DD:=$DD}
13727if test -z "$lt_DD"; then
13728  ac_path_lt_DD_found=false
13729  # Loop through the user's path and test for each of PROGNAME-LIST
13730  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13731for as_dir in $PATH
13732do
13733  IFS=$as_save_IFS
13734  test -z "$as_dir" && as_dir=.
13735    for ac_prog in dd; do
13736    for ac_exec_ext in '' $ac_executable_extensions; do
13737      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
13738      as_fn_executable_p "$ac_path_lt_DD" || continue
13739if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13740  cmp -s conftest.i conftest.out \
13741  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13742fi
13743      $ac_path_lt_DD_found && break 3
13744    done
13745  done
13746  done
13747IFS=$as_save_IFS
13748  if test -z "$ac_cv_path_lt_DD"; then
13749    :
13750  fi
13751else
13752  ac_cv_path_lt_DD=$lt_DD
13753fi
13754
13755rm -f conftest.i conftest2.i conftest.out
13756fi
13757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13758$as_echo "$ac_cv_path_lt_DD" >&6; }
13759
13760
13761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13762$as_echo_n "checking how to truncate binary pipes... " >&6; }
13763if ${lt_cv_truncate_bin+:} false; then :
13764  $as_echo_n "(cached) " >&6
13765else
13766  printf 0123456789abcdef0123456789abcdef >conftest.i
13767cat conftest.i conftest.i >conftest2.i
13768lt_cv_truncate_bin=
13769if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13770  cmp -s conftest.i conftest.out \
13771  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13772fi
13773rm -f conftest.i conftest2.i conftest.out
13774test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13775fi
13776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13777$as_echo "$lt_cv_truncate_bin" >&6; }
13778
13779
13780
13781
13782
13783
13784
13785# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
13786func_cc_basename ()
13787{
13788    for cc_temp in $*""; do
13789      case $cc_temp in
13790        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13791        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13792        \-*) ;;
13793        *) break;;
13794      esac
13795    done
13796    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13797}
13798
13799# Check whether --enable-libtool-lock was given.
13800if test "${enable_libtool_lock+set}" = set; then :
13801  enableval=$enable_libtool_lock;
13802fi
13803
13804test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13805
13806# Some flags need to be propagated to the compiler or linker for good
13807# libtool support.
13808case $host in
13809ia64-*-hpux*)
13810  # Find out what ABI is being produced by ac_compile, and set mode
13811  # options accordingly.
13812  echo 'int i;' > conftest.$ac_ext
13813  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13814  (eval $ac_compile) 2>&5
13815  ac_status=$?
13816  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13817  test $ac_status = 0; }; then
13818    case `/usr/bin/file conftest.$ac_objext` in
13819      *ELF-32*)
13820	HPUX_IA64_MODE=32
13821	;;
13822      *ELF-64*)
13823	HPUX_IA64_MODE=64
13824	;;
13825    esac
13826  fi
13827  rm -rf conftest*
13828  ;;
13829*-*-irix6*)
13830  # Find out what ABI is being produced by ac_compile, and set linker
13831  # options accordingly.
13832  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13833  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13834  (eval $ac_compile) 2>&5
13835  ac_status=$?
13836  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13837  test $ac_status = 0; }; then
13838    if test yes = "$lt_cv_prog_gnu_ld"; then
13839      case `/usr/bin/file conftest.$ac_objext` in
13840	*32-bit*)
13841	  LD="${LD-ld} -melf32bsmip"
13842	  ;;
13843	*N32*)
13844	  LD="${LD-ld} -melf32bmipn32"
13845	  ;;
13846	*64-bit*)
13847	  LD="${LD-ld} -melf64bmip"
13848	;;
13849      esac
13850    else
13851      case `/usr/bin/file conftest.$ac_objext` in
13852	*32-bit*)
13853	  LD="${LD-ld} -32"
13854	  ;;
13855	*N32*)
13856	  LD="${LD-ld} -n32"
13857	  ;;
13858	*64-bit*)
13859	  LD="${LD-ld} -64"
13860	  ;;
13861      esac
13862    fi
13863  fi
13864  rm -rf conftest*
13865  ;;
13866
13867mips64*-*linux*)
13868  # Find out what ABI is being produced by ac_compile, and set linker
13869  # options accordingly.
13870  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13871  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13872  (eval $ac_compile) 2>&5
13873  ac_status=$?
13874  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13875  test $ac_status = 0; }; then
13876    emul=elf
13877    case `/usr/bin/file conftest.$ac_objext` in
13878      *32-bit*)
13879	emul="${emul}32"
13880	;;
13881      *64-bit*)
13882	emul="${emul}64"
13883	;;
13884    esac
13885    case `/usr/bin/file conftest.$ac_objext` in
13886      *MSB*)
13887	emul="${emul}btsmip"
13888	;;
13889      *LSB*)
13890	emul="${emul}ltsmip"
13891	;;
13892    esac
13893    case `/usr/bin/file conftest.$ac_objext` in
13894      *N32*)
13895	emul="${emul}n32"
13896	;;
13897    esac
13898    LD="${LD-ld} -m $emul"
13899  fi
13900  rm -rf conftest*
13901  ;;
13902
13903x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13904s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13905  # Find out what ABI is being produced by ac_compile, and set linker
13906  # options accordingly.  Note that the listed cases only cover the
13907  # situations where additional linker options are needed (such as when
13908  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13909  # vice versa); the common cases where no linker options are needed do
13910  # not appear in the list.
13911  echo 'int i;' > conftest.$ac_ext
13912  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13913  (eval $ac_compile) 2>&5
13914  ac_status=$?
13915  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13916  test $ac_status = 0; }; then
13917    case `/usr/bin/file conftest.o` in
13918      *32-bit*)
13919	case $host in
13920	  x86_64-*kfreebsd*-gnu)
13921	    LD="${LD-ld} -m elf_i386_fbsd"
13922	    ;;
13923	  x86_64-*linux*)
13924	    case `/usr/bin/file conftest.o` in
13925	      *x86-64*)
13926		LD="${LD-ld} -m elf32_x86_64"
13927		;;
13928	      *)
13929		LD="${LD-ld} -m elf_i386"
13930		;;
13931	    esac
13932	    ;;
13933	  powerpc64le-*linux*)
13934	    LD="${LD-ld} -m elf32lppclinux"
13935	    ;;
13936	  powerpc64-*linux*)
13937	    LD="${LD-ld} -m elf32ppclinux"
13938	    ;;
13939	  s390x-*linux*)
13940	    LD="${LD-ld} -m elf_s390"
13941	    ;;
13942	  sparc64-*linux*)
13943	    LD="${LD-ld} -m elf32_sparc"
13944	    ;;
13945	esac
13946	;;
13947      *64-bit*)
13948	case $host in
13949	  x86_64-*kfreebsd*-gnu)
13950	    LD="${LD-ld} -m elf_x86_64_fbsd"
13951	    ;;
13952	  x86_64-*linux*)
13953	    LD="${LD-ld} -m elf_x86_64"
13954	    ;;
13955	  powerpcle-*linux*)
13956	    LD="${LD-ld} -m elf64lppc"
13957	    ;;
13958	  powerpc-*linux*)
13959	    LD="${LD-ld} -m elf64ppc"
13960	    ;;
13961	  s390*-*linux*|s390*-*tpf*)
13962	    LD="${LD-ld} -m elf64_s390"
13963	    ;;
13964	  sparc*-*linux*)
13965	    LD="${LD-ld} -m elf64_sparc"
13966	    ;;
13967	esac
13968	;;
13969    esac
13970  fi
13971  rm -rf conftest*
13972  ;;
13973
13974*-*-sco3.2v5*)
13975  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13976  SAVE_CFLAGS=$CFLAGS
13977  CFLAGS="$CFLAGS -belf"
13978  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13979$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13980if ${lt_cv_cc_needs_belf+:} false; then :
13981  $as_echo_n "(cached) " >&6
13982else
13983  ac_ext=c
13984ac_cpp='$CPP $CPPFLAGS'
13985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13987ac_compiler_gnu=$ac_cv_c_compiler_gnu
13988
13989     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13990/* end confdefs.h.  */
13991
13992int
13993main ()
13994{
13995
13996  ;
13997  return 0;
13998}
13999_ACEOF
14000if ac_fn_c_try_link "$LINENO"; then :
14001  lt_cv_cc_needs_belf=yes
14002else
14003  lt_cv_cc_needs_belf=no
14004fi
14005rm -f core conftest.err conftest.$ac_objext \
14006    conftest$ac_exeext conftest.$ac_ext
14007     ac_ext=c
14008ac_cpp='$CPP $CPPFLAGS'
14009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14011ac_compiler_gnu=$ac_cv_c_compiler_gnu
14012
14013fi
14014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14015$as_echo "$lt_cv_cc_needs_belf" >&6; }
14016  if test yes != "$lt_cv_cc_needs_belf"; then
14017    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14018    CFLAGS=$SAVE_CFLAGS
14019  fi
14020  ;;
14021*-*solaris*)
14022  # Find out what ABI is being produced by ac_compile, and set linker
14023  # options accordingly.
14024  echo 'int i;' > conftest.$ac_ext
14025  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14026  (eval $ac_compile) 2>&5
14027  ac_status=$?
14028  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14029  test $ac_status = 0; }; then
14030    case `/usr/bin/file conftest.o` in
14031    *64-bit*)
14032      case $lt_cv_prog_gnu_ld in
14033      yes*)
14034        case $host in
14035        i?86-*-solaris*|x86_64-*-solaris*)
14036          LD="${LD-ld} -m elf_x86_64"
14037          ;;
14038        sparc*-*-solaris*)
14039          LD="${LD-ld} -m elf64_sparc"
14040          ;;
14041        esac
14042        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
14043        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
14044          LD=${LD-ld}_sol2
14045        fi
14046        ;;
14047      *)
14048	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14049	  LD="${LD-ld} -64"
14050	fi
14051	;;
14052      esac
14053      ;;
14054    esac
14055  fi
14056  rm -rf conftest*
14057  ;;
14058esac
14059
14060need_locks=$enable_libtool_lock
14061
14062if test -n "$ac_tool_prefix"; then
14063  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14064set dummy ${ac_tool_prefix}mt; ac_word=$2
14065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14066$as_echo_n "checking for $ac_word... " >&6; }
14067if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
14068  $as_echo_n "(cached) " >&6
14069else
14070  if test -n "$MANIFEST_TOOL"; then
14071  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14072else
14073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14074for as_dir in $PATH
14075do
14076  IFS=$as_save_IFS
14077  test -z "$as_dir" && as_dir=.
14078    for ac_exec_ext in '' $ac_executable_extensions; do
14079  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14080    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14081    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14082    break 2
14083  fi
14084done
14085  done
14086IFS=$as_save_IFS
14087
14088fi
14089fi
14090MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14091if test -n "$MANIFEST_TOOL"; then
14092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14093$as_echo "$MANIFEST_TOOL" >&6; }
14094else
14095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14096$as_echo "no" >&6; }
14097fi
14098
14099
14100fi
14101if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14102  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14103  # Extract the first word of "mt", so it can be a program name with args.
14104set dummy mt; ac_word=$2
14105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14106$as_echo_n "checking for $ac_word... " >&6; }
14107if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
14108  $as_echo_n "(cached) " >&6
14109else
14110  if test -n "$ac_ct_MANIFEST_TOOL"; then
14111  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
14112else
14113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14114for as_dir in $PATH
14115do
14116  IFS=$as_save_IFS
14117  test -z "$as_dir" && as_dir=.
14118    for ac_exec_ext in '' $ac_executable_extensions; do
14119  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14120    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
14121    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14122    break 2
14123  fi
14124done
14125  done
14126IFS=$as_save_IFS
14127
14128fi
14129fi
14130ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14131if test -n "$ac_ct_MANIFEST_TOOL"; then
14132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14133$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
14134else
14135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14136$as_echo "no" >&6; }
14137fi
14138
14139  if test "x$ac_ct_MANIFEST_TOOL" = x; then
14140    MANIFEST_TOOL=":"
14141  else
14142    case $cross_compiling:$ac_tool_warned in
14143yes:)
14144{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14145$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14146ac_tool_warned=yes ;;
14147esac
14148    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14149  fi
14150else
14151  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14152fi
14153
14154test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14156$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14157if ${lt_cv_path_mainfest_tool+:} false; then :
14158  $as_echo_n "(cached) " >&6
14159else
14160  lt_cv_path_mainfest_tool=no
14161  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14162  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14163  cat conftest.err >&5
14164  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14165    lt_cv_path_mainfest_tool=yes
14166  fi
14167  rm -f conftest*
14168fi
14169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
14170$as_echo "$lt_cv_path_mainfest_tool" >&6; }
14171if test yes != "$lt_cv_path_mainfest_tool"; then
14172  MANIFEST_TOOL=:
14173fi
14174
14175
14176
14177
14178
14179
14180  case $host_os in
14181    rhapsody* | darwin*)
14182    if test -n "$ac_tool_prefix"; then
14183  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14184set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14186$as_echo_n "checking for $ac_word... " >&6; }
14187if ${ac_cv_prog_DSYMUTIL+:} false; then :
14188  $as_echo_n "(cached) " >&6
14189else
14190  if test -n "$DSYMUTIL"; then
14191  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14192else
14193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14194for as_dir in $PATH
14195do
14196  IFS=$as_save_IFS
14197  test -z "$as_dir" && as_dir=.
14198    for ac_exec_ext in '' $ac_executable_extensions; do
14199  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14200    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14201    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14202    break 2
14203  fi
14204done
14205  done
14206IFS=$as_save_IFS
14207
14208fi
14209fi
14210DSYMUTIL=$ac_cv_prog_DSYMUTIL
14211if test -n "$DSYMUTIL"; then
14212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14213$as_echo "$DSYMUTIL" >&6; }
14214else
14215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14216$as_echo "no" >&6; }
14217fi
14218
14219
14220fi
14221if test -z "$ac_cv_prog_DSYMUTIL"; then
14222  ac_ct_DSYMUTIL=$DSYMUTIL
14223  # Extract the first word of "dsymutil", so it can be a program name with args.
14224set dummy dsymutil; ac_word=$2
14225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14226$as_echo_n "checking for $ac_word... " >&6; }
14227if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14228  $as_echo_n "(cached) " >&6
14229else
14230  if test -n "$ac_ct_DSYMUTIL"; then
14231  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14232else
14233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14234for as_dir in $PATH
14235do
14236  IFS=$as_save_IFS
14237  test -z "$as_dir" && as_dir=.
14238    for ac_exec_ext in '' $ac_executable_extensions; do
14239  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14240    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14241    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14242    break 2
14243  fi
14244done
14245  done
14246IFS=$as_save_IFS
14247
14248fi
14249fi
14250ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14251if test -n "$ac_ct_DSYMUTIL"; then
14252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14253$as_echo "$ac_ct_DSYMUTIL" >&6; }
14254else
14255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14256$as_echo "no" >&6; }
14257fi
14258
14259  if test "x$ac_ct_DSYMUTIL" = x; then
14260    DSYMUTIL=":"
14261  else
14262    case $cross_compiling:$ac_tool_warned in
14263yes:)
14264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14266ac_tool_warned=yes ;;
14267esac
14268    DSYMUTIL=$ac_ct_DSYMUTIL
14269  fi
14270else
14271  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14272fi
14273
14274    if test -n "$ac_tool_prefix"; then
14275  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14276set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14278$as_echo_n "checking for $ac_word... " >&6; }
14279if ${ac_cv_prog_NMEDIT+:} false; then :
14280  $as_echo_n "(cached) " >&6
14281else
14282  if test -n "$NMEDIT"; then
14283  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14284else
14285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14286for as_dir in $PATH
14287do
14288  IFS=$as_save_IFS
14289  test -z "$as_dir" && as_dir=.
14290    for ac_exec_ext in '' $ac_executable_extensions; do
14291  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14292    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14293    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14294    break 2
14295  fi
14296done
14297  done
14298IFS=$as_save_IFS
14299
14300fi
14301fi
14302NMEDIT=$ac_cv_prog_NMEDIT
14303if test -n "$NMEDIT"; then
14304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14305$as_echo "$NMEDIT" >&6; }
14306else
14307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14308$as_echo "no" >&6; }
14309fi
14310
14311
14312fi
14313if test -z "$ac_cv_prog_NMEDIT"; then
14314  ac_ct_NMEDIT=$NMEDIT
14315  # Extract the first word of "nmedit", so it can be a program name with args.
14316set dummy nmedit; ac_word=$2
14317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14318$as_echo_n "checking for $ac_word... " >&6; }
14319if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
14320  $as_echo_n "(cached) " >&6
14321else
14322  if test -n "$ac_ct_NMEDIT"; then
14323  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14324else
14325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14326for as_dir in $PATH
14327do
14328  IFS=$as_save_IFS
14329  test -z "$as_dir" && as_dir=.
14330    for ac_exec_ext in '' $ac_executable_extensions; do
14331  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14332    ac_cv_prog_ac_ct_NMEDIT="nmedit"
14333    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14334    break 2
14335  fi
14336done
14337  done
14338IFS=$as_save_IFS
14339
14340fi
14341fi
14342ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14343if test -n "$ac_ct_NMEDIT"; then
14344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14345$as_echo "$ac_ct_NMEDIT" >&6; }
14346else
14347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14348$as_echo "no" >&6; }
14349fi
14350
14351  if test "x$ac_ct_NMEDIT" = x; then
14352    NMEDIT=":"
14353  else
14354    case $cross_compiling:$ac_tool_warned in
14355yes:)
14356{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14357$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14358ac_tool_warned=yes ;;
14359esac
14360    NMEDIT=$ac_ct_NMEDIT
14361  fi
14362else
14363  NMEDIT="$ac_cv_prog_NMEDIT"
14364fi
14365
14366    if test -n "$ac_tool_prefix"; then
14367  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14368set dummy ${ac_tool_prefix}lipo; ac_word=$2
14369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14370$as_echo_n "checking for $ac_word... " >&6; }
14371if ${ac_cv_prog_LIPO+:} false; then :
14372  $as_echo_n "(cached) " >&6
14373else
14374  if test -n "$LIPO"; then
14375  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14376else
14377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14378for as_dir in $PATH
14379do
14380  IFS=$as_save_IFS
14381  test -z "$as_dir" && as_dir=.
14382    for ac_exec_ext in '' $ac_executable_extensions; do
14383  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14384    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14385    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14386    break 2
14387  fi
14388done
14389  done
14390IFS=$as_save_IFS
14391
14392fi
14393fi
14394LIPO=$ac_cv_prog_LIPO
14395if test -n "$LIPO"; then
14396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14397$as_echo "$LIPO" >&6; }
14398else
14399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14400$as_echo "no" >&6; }
14401fi
14402
14403
14404fi
14405if test -z "$ac_cv_prog_LIPO"; then
14406  ac_ct_LIPO=$LIPO
14407  # Extract the first word of "lipo", so it can be a program name with args.
14408set dummy lipo; ac_word=$2
14409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14410$as_echo_n "checking for $ac_word... " >&6; }
14411if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
14412  $as_echo_n "(cached) " >&6
14413else
14414  if test -n "$ac_ct_LIPO"; then
14415  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14416else
14417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14418for as_dir in $PATH
14419do
14420  IFS=$as_save_IFS
14421  test -z "$as_dir" && as_dir=.
14422    for ac_exec_ext in '' $ac_executable_extensions; do
14423  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14424    ac_cv_prog_ac_ct_LIPO="lipo"
14425    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14426    break 2
14427  fi
14428done
14429  done
14430IFS=$as_save_IFS
14431
14432fi
14433fi
14434ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14435if test -n "$ac_ct_LIPO"; then
14436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14437$as_echo "$ac_ct_LIPO" >&6; }
14438else
14439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14440$as_echo "no" >&6; }
14441fi
14442
14443  if test "x$ac_ct_LIPO" = x; then
14444    LIPO=":"
14445  else
14446    case $cross_compiling:$ac_tool_warned in
14447yes:)
14448{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14449$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14450ac_tool_warned=yes ;;
14451esac
14452    LIPO=$ac_ct_LIPO
14453  fi
14454else
14455  LIPO="$ac_cv_prog_LIPO"
14456fi
14457
14458    if test -n "$ac_tool_prefix"; then
14459  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14460set dummy ${ac_tool_prefix}otool; ac_word=$2
14461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14462$as_echo_n "checking for $ac_word... " >&6; }
14463if ${ac_cv_prog_OTOOL+:} false; then :
14464  $as_echo_n "(cached) " >&6
14465else
14466  if test -n "$OTOOL"; then
14467  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14468else
14469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14470for as_dir in $PATH
14471do
14472  IFS=$as_save_IFS
14473  test -z "$as_dir" && as_dir=.
14474    for ac_exec_ext in '' $ac_executable_extensions; do
14475  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14476    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14477    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14478    break 2
14479  fi
14480done
14481  done
14482IFS=$as_save_IFS
14483
14484fi
14485fi
14486OTOOL=$ac_cv_prog_OTOOL
14487if test -n "$OTOOL"; then
14488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14489$as_echo "$OTOOL" >&6; }
14490else
14491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14492$as_echo "no" >&6; }
14493fi
14494
14495
14496fi
14497if test -z "$ac_cv_prog_OTOOL"; then
14498  ac_ct_OTOOL=$OTOOL
14499  # Extract the first word of "otool", so it can be a program name with args.
14500set dummy otool; ac_word=$2
14501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14502$as_echo_n "checking for $ac_word... " >&6; }
14503if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
14504  $as_echo_n "(cached) " >&6
14505else
14506  if test -n "$ac_ct_OTOOL"; then
14507  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14508else
14509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14510for as_dir in $PATH
14511do
14512  IFS=$as_save_IFS
14513  test -z "$as_dir" && as_dir=.
14514    for ac_exec_ext in '' $ac_executable_extensions; do
14515  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14516    ac_cv_prog_ac_ct_OTOOL="otool"
14517    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14518    break 2
14519  fi
14520done
14521  done
14522IFS=$as_save_IFS
14523
14524fi
14525fi
14526ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14527if test -n "$ac_ct_OTOOL"; then
14528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14529$as_echo "$ac_ct_OTOOL" >&6; }
14530else
14531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14532$as_echo "no" >&6; }
14533fi
14534
14535  if test "x$ac_ct_OTOOL" = x; then
14536    OTOOL=":"
14537  else
14538    case $cross_compiling:$ac_tool_warned in
14539yes:)
14540{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14541$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14542ac_tool_warned=yes ;;
14543esac
14544    OTOOL=$ac_ct_OTOOL
14545  fi
14546else
14547  OTOOL="$ac_cv_prog_OTOOL"
14548fi
14549
14550    if test -n "$ac_tool_prefix"; then
14551  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14552set dummy ${ac_tool_prefix}otool64; ac_word=$2
14553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14554$as_echo_n "checking for $ac_word... " >&6; }
14555if ${ac_cv_prog_OTOOL64+:} false; then :
14556  $as_echo_n "(cached) " >&6
14557else
14558  if test -n "$OTOOL64"; then
14559  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14560else
14561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14562for as_dir in $PATH
14563do
14564  IFS=$as_save_IFS
14565  test -z "$as_dir" && as_dir=.
14566    for ac_exec_ext in '' $ac_executable_extensions; do
14567  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14568    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14569    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14570    break 2
14571  fi
14572done
14573  done
14574IFS=$as_save_IFS
14575
14576fi
14577fi
14578OTOOL64=$ac_cv_prog_OTOOL64
14579if test -n "$OTOOL64"; then
14580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14581$as_echo "$OTOOL64" >&6; }
14582else
14583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14584$as_echo "no" >&6; }
14585fi
14586
14587
14588fi
14589if test -z "$ac_cv_prog_OTOOL64"; then
14590  ac_ct_OTOOL64=$OTOOL64
14591  # Extract the first word of "otool64", so it can be a program name with args.
14592set dummy otool64; ac_word=$2
14593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14594$as_echo_n "checking for $ac_word... " >&6; }
14595if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
14596  $as_echo_n "(cached) " >&6
14597else
14598  if test -n "$ac_ct_OTOOL64"; then
14599  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14600else
14601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14602for as_dir in $PATH
14603do
14604  IFS=$as_save_IFS
14605  test -z "$as_dir" && as_dir=.
14606    for ac_exec_ext in '' $ac_executable_extensions; do
14607  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14608    ac_cv_prog_ac_ct_OTOOL64="otool64"
14609    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14610    break 2
14611  fi
14612done
14613  done
14614IFS=$as_save_IFS
14615
14616fi
14617fi
14618ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14619if test -n "$ac_ct_OTOOL64"; then
14620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14621$as_echo "$ac_ct_OTOOL64" >&6; }
14622else
14623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14624$as_echo "no" >&6; }
14625fi
14626
14627  if test "x$ac_ct_OTOOL64" = x; then
14628    OTOOL64=":"
14629  else
14630    case $cross_compiling:$ac_tool_warned in
14631yes:)
14632{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14633$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14634ac_tool_warned=yes ;;
14635esac
14636    OTOOL64=$ac_ct_OTOOL64
14637  fi
14638else
14639  OTOOL64="$ac_cv_prog_OTOOL64"
14640fi
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14669$as_echo_n "checking for -single_module linker flag... " >&6; }
14670if ${lt_cv_apple_cc_single_mod+:} false; then :
14671  $as_echo_n "(cached) " >&6
14672else
14673  lt_cv_apple_cc_single_mod=no
14674      if test -z "$LT_MULTI_MODULE"; then
14675	# By default we will add the -single_module flag. You can override
14676	# by either setting the environment variable LT_MULTI_MODULE
14677	# non-empty at configure time, or by adding -multi_module to the
14678	# link flags.
14679	rm -rf libconftest.dylib*
14680	echo "int foo(void){return 1;}" > conftest.c
14681	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14682-dynamiclib -Wl,-single_module conftest.c" >&5
14683	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14684	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14685        _lt_result=$?
14686	# If there is a non-empty error log, and "single_module"
14687	# appears in it, assume the flag caused a linker warning
14688        if test -s conftest.err && $GREP single_module conftest.err; then
14689	  cat conftest.err >&5
14690	# Otherwise, if the output was created with a 0 exit code from
14691	# the compiler, it worked.
14692	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14693	  lt_cv_apple_cc_single_mod=yes
14694	else
14695	  cat conftest.err >&5
14696	fi
14697	rm -rf libconftest.dylib*
14698	rm -f conftest.*
14699      fi
14700fi
14701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14702$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14703
14704    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14705$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14706if ${lt_cv_ld_exported_symbols_list+:} false; then :
14707  $as_echo_n "(cached) " >&6
14708else
14709  lt_cv_ld_exported_symbols_list=no
14710      save_LDFLAGS=$LDFLAGS
14711      echo "_main" > conftest.sym
14712      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14713      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14714/* end confdefs.h.  */
14715
14716int
14717main ()
14718{
14719
14720  ;
14721  return 0;
14722}
14723_ACEOF
14724if ac_fn_c_try_link "$LINENO"; then :
14725  lt_cv_ld_exported_symbols_list=yes
14726else
14727  lt_cv_ld_exported_symbols_list=no
14728fi
14729rm -f core conftest.err conftest.$ac_objext \
14730    conftest$ac_exeext conftest.$ac_ext
14731	LDFLAGS=$save_LDFLAGS
14732
14733fi
14734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14735$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14736
14737    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14738$as_echo_n "checking for -force_load linker flag... " >&6; }
14739if ${lt_cv_ld_force_load+:} false; then :
14740  $as_echo_n "(cached) " >&6
14741else
14742  lt_cv_ld_force_load=no
14743      cat > conftest.c << _LT_EOF
14744int forced_loaded() { return 2;}
14745_LT_EOF
14746      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14747      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14748      echo "$AR cru libconftest.a conftest.o" >&5
14749      $AR cru libconftest.a conftest.o 2>&5
14750      echo "$RANLIB libconftest.a" >&5
14751      $RANLIB libconftest.a 2>&5
14752      cat > conftest.c << _LT_EOF
14753int main() { return 0;}
14754_LT_EOF
14755      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14756      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14757      _lt_result=$?
14758      if test -s conftest.err && $GREP force_load conftest.err; then
14759	cat conftest.err >&5
14760      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14761	lt_cv_ld_force_load=yes
14762      else
14763	cat conftest.err >&5
14764      fi
14765        rm -f conftest.err libconftest.a conftest conftest.c
14766        rm -rf conftest.dSYM
14767
14768fi
14769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14770$as_echo "$lt_cv_ld_force_load" >&6; }
14771    case $host_os in
14772    rhapsody* | darwin1.[012])
14773      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14774    darwin1.*)
14775      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14776    darwin*) # darwin 5.x on
14777      # if running on 10.5 or later, the deployment target defaults
14778      # to the OS version, if on x86, and 10.4, the deployment
14779      # target defaults to 10.4. Don't you love it?
14780      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14781	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14782	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14783	10.[012][,.]*)
14784	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14785	10.*)
14786	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14787      esac
14788    ;;
14789  esac
14790    if test yes = "$lt_cv_apple_cc_single_mod"; then
14791      _lt_dar_single_mod='$single_module'
14792    fi
14793    if test yes = "$lt_cv_ld_exported_symbols_list"; then
14794      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14795    else
14796      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14797    fi
14798    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14799      _lt_dsymutil='~$DSYMUTIL $lib || :'
14800    else
14801      _lt_dsymutil=
14802    fi
14803    ;;
14804  esac
14805
14806# func_munge_path_list VARIABLE PATH
14807# -----------------------------------
14808# VARIABLE is name of variable containing _space_ separated list of
14809# directories to be munged by the contents of PATH, which is string
14810# having a format:
14811# "DIR[:DIR]:"
14812#       string "DIR[ DIR]" will be prepended to VARIABLE
14813# ":DIR[:DIR]"
14814#       string "DIR[ DIR]" will be appended to VARIABLE
14815# "DIRP[:DIRP]::[DIRA:]DIRA"
14816#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14817#       "DIRA[ DIRA]" will be appended to VARIABLE
14818# "DIR[:DIR]"
14819#       VARIABLE will be replaced by "DIR[ DIR]"
14820func_munge_path_list ()
14821{
14822    case x$2 in
14823    x)
14824        ;;
14825    *:)
14826        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14827        ;;
14828    x:*)
14829        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14830        ;;
14831    *::*)
14832        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14833        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14834        ;;
14835    *)
14836        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14837        ;;
14838    esac
14839}
14840
14841for ac_header in dlfcn.h
14842do :
14843  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14844"
14845if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14846  cat >>confdefs.h <<_ACEOF
14847#define HAVE_DLFCN_H 1
14848_ACEOF
14849
14850fi
14851
14852done
14853
14854
14855
14856
14857
14858# Set options
14859
14860
14861
14862        enable_dlopen=no
14863
14864
14865  enable_win32_dll=no
14866
14867
14868            # Check whether --enable-shared was given.
14869if test "${enable_shared+set}" = set; then :
14870  enableval=$enable_shared; p=${PACKAGE-default}
14871    case $enableval in
14872    yes) enable_shared=yes ;;
14873    no) enable_shared=no ;;
14874    *)
14875      enable_shared=no
14876      # Look at the argument we got.  We use all the common list separators.
14877      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14878      for pkg in $enableval; do
14879	IFS=$lt_save_ifs
14880	if test "X$pkg" = "X$p"; then
14881	  enable_shared=yes
14882	fi
14883      done
14884      IFS=$lt_save_ifs
14885      ;;
14886    esac
14887else
14888  enable_shared=yes
14889fi
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901# Check whether --with-pic was given.
14902if test "${with_pic+set}" = set; then :
14903  withval=$with_pic; lt_p=${PACKAGE-default}
14904    case $withval in
14905    yes|no) pic_mode=$withval ;;
14906    *)
14907      pic_mode=default
14908      # Look at the argument we got.  We use all the common list separators.
14909      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14910      for lt_pkg in $withval; do
14911	IFS=$lt_save_ifs
14912	if test "X$lt_pkg" = "X$lt_p"; then
14913	  pic_mode=yes
14914	fi
14915      done
14916      IFS=$lt_save_ifs
14917      ;;
14918    esac
14919else
14920  pic_mode=default
14921fi
14922
14923
14924
14925
14926
14927
14928
14929
14930  # Check whether --enable-fast-install was given.
14931if test "${enable_fast_install+set}" = set; then :
14932  enableval=$enable_fast_install; p=${PACKAGE-default}
14933    case $enableval in
14934    yes) enable_fast_install=yes ;;
14935    no) enable_fast_install=no ;;
14936    *)
14937      enable_fast_install=no
14938      # Look at the argument we got.  We use all the common list separators.
14939      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14940      for pkg in $enableval; do
14941	IFS=$lt_save_ifs
14942	if test "X$pkg" = "X$p"; then
14943	  enable_fast_install=yes
14944	fi
14945      done
14946      IFS=$lt_save_ifs
14947      ;;
14948    esac
14949else
14950  enable_fast_install=yes
14951fi
14952
14953
14954
14955
14956
14957
14958
14959
14960  shared_archive_member_spec=
14961case $host,$enable_shared in
14962power*-*-aix[5-9]*,yes)
14963  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14964$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14965
14966# Check whether --with-aix-soname was given.
14967if test "${with_aix_soname+set}" = set; then :
14968  withval=$with_aix_soname; case $withval in
14969    aix|svr4|both)
14970      ;;
14971    *)
14972      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14973      ;;
14974    esac
14975    lt_cv_with_aix_soname=$with_aix_soname
14976else
14977  if ${lt_cv_with_aix_soname+:} false; then :
14978  $as_echo_n "(cached) " >&6
14979else
14980  lt_cv_with_aix_soname=aix
14981fi
14982
14983    with_aix_soname=$lt_cv_with_aix_soname
14984fi
14985
14986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14987$as_echo "$with_aix_soname" >&6; }
14988  if test aix != "$with_aix_soname"; then
14989    # For the AIX way of multilib, we name the shared archive member
14990    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14991    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14992    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14993    # the AIX toolchain works better with OBJECT_MODE set (default 32).
14994    if test 64 = "${OBJECT_MODE-32}"; then
14995      shared_archive_member_spec=shr_64
14996    else
14997      shared_archive_member_spec=shr
14998    fi
14999  fi
15000  ;;
15001*)
15002  with_aix_soname=aix
15003  ;;
15004esac
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015# This can be used to rebuild libtool when needed
15016LIBTOOL_DEPS=$ltmain
15017
15018# Always use our own libtool.
15019LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050test -z "$LN_S" && LN_S="ln -s"
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065if test -n "${ZSH_VERSION+set}"; then
15066   setopt NO_GLOB_SUBST
15067fi
15068
15069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15070$as_echo_n "checking for objdir... " >&6; }
15071if ${lt_cv_objdir+:} false; then :
15072  $as_echo_n "(cached) " >&6
15073else
15074  rm -f .libs 2>/dev/null
15075mkdir .libs 2>/dev/null
15076if test -d .libs; then
15077  lt_cv_objdir=.libs
15078else
15079  # MS-DOS does not allow filenames that begin with a dot.
15080  lt_cv_objdir=_libs
15081fi
15082rmdir .libs 2>/dev/null
15083fi
15084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15085$as_echo "$lt_cv_objdir" >&6; }
15086objdir=$lt_cv_objdir
15087
15088
15089
15090
15091
15092cat >>confdefs.h <<_ACEOF
15093#define LT_OBJDIR "$lt_cv_objdir/"
15094_ACEOF
15095
15096
15097
15098
15099case $host_os in
15100aix3*)
15101  # AIX sometimes has problems with the GCC collect2 program.  For some
15102  # reason, if we set the COLLECT_NAMES environment variable, the problems
15103  # vanish in a puff of smoke.
15104  if test set != "${COLLECT_NAMES+set}"; then
15105    COLLECT_NAMES=
15106    export COLLECT_NAMES
15107  fi
15108  ;;
15109esac
15110
15111# Global variables:
15112ofile=libtool
15113can_build_shared=yes
15114
15115# All known linkers require a '.a' archive for static linking (except MSVC,
15116# which needs '.lib').
15117libext=a
15118
15119with_gnu_ld=$lt_cv_prog_gnu_ld
15120
15121old_CC=$CC
15122old_CFLAGS=$CFLAGS
15123
15124# Set sane defaults for various variables
15125test -z "$CC" && CC=cc
15126test -z "$LTCC" && LTCC=$CC
15127test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15128test -z "$LD" && LD=ld
15129test -z "$ac_objext" && ac_objext=o
15130
15131func_cc_basename $compiler
15132cc_basename=$func_cc_basename_result
15133
15134
15135# Only perform the check for file, if the check method requires it
15136test -z "$MAGIC_CMD" && MAGIC_CMD=file
15137case $deplibs_check_method in
15138file_magic*)
15139  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15140    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15141$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15142if ${lt_cv_path_MAGIC_CMD+:} false; then :
15143  $as_echo_n "(cached) " >&6
15144else
15145  case $MAGIC_CMD in
15146[\\/*] |  ?:[\\/]*)
15147  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15148  ;;
15149*)
15150  lt_save_MAGIC_CMD=$MAGIC_CMD
15151  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15152  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15153  for ac_dir in $ac_dummy; do
15154    IFS=$lt_save_ifs
15155    test -z "$ac_dir" && ac_dir=.
15156    if test -f "$ac_dir/${ac_tool_prefix}file"; then
15157      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
15158      if test -n "$file_magic_test_file"; then
15159	case $deplibs_check_method in
15160	"file_magic "*)
15161	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15162	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15163	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15164	    $EGREP "$file_magic_regex" > /dev/null; then
15165	    :
15166	  else
15167	    cat <<_LT_EOF 1>&2
15168
15169*** Warning: the command libtool uses to detect shared libraries,
15170*** $file_magic_cmd, produces output that libtool cannot recognize.
15171*** The result is that libtool may fail to recognize shared libraries
15172*** as such.  This will affect the creation of libtool libraries that
15173*** depend on shared libraries, but programs linked with such libtool
15174*** libraries will work regardless of this problem.  Nevertheless, you
15175*** may want to report the problem to your system manager and/or to
15176*** bug-libtool@gnu.org
15177
15178_LT_EOF
15179	  fi ;;
15180	esac
15181      fi
15182      break
15183    fi
15184  done
15185  IFS=$lt_save_ifs
15186  MAGIC_CMD=$lt_save_MAGIC_CMD
15187  ;;
15188esac
15189fi
15190
15191MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15192if test -n "$MAGIC_CMD"; then
15193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15194$as_echo "$MAGIC_CMD" >&6; }
15195else
15196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15197$as_echo "no" >&6; }
15198fi
15199
15200
15201
15202
15203
15204if test -z "$lt_cv_path_MAGIC_CMD"; then
15205  if test -n "$ac_tool_prefix"; then
15206    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15207$as_echo_n "checking for file... " >&6; }
15208if ${lt_cv_path_MAGIC_CMD+:} false; then :
15209  $as_echo_n "(cached) " >&6
15210else
15211  case $MAGIC_CMD in
15212[\\/*] |  ?:[\\/]*)
15213  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15214  ;;
15215*)
15216  lt_save_MAGIC_CMD=$MAGIC_CMD
15217  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15218  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15219  for ac_dir in $ac_dummy; do
15220    IFS=$lt_save_ifs
15221    test -z "$ac_dir" && ac_dir=.
15222    if test -f "$ac_dir/file"; then
15223      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
15224      if test -n "$file_magic_test_file"; then
15225	case $deplibs_check_method in
15226	"file_magic "*)
15227	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15228	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15229	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15230	    $EGREP "$file_magic_regex" > /dev/null; then
15231	    :
15232	  else
15233	    cat <<_LT_EOF 1>&2
15234
15235*** Warning: the command libtool uses to detect shared libraries,
15236*** $file_magic_cmd, produces output that libtool cannot recognize.
15237*** The result is that libtool may fail to recognize shared libraries
15238*** as such.  This will affect the creation of libtool libraries that
15239*** depend on shared libraries, but programs linked with such libtool
15240*** libraries will work regardless of this problem.  Nevertheless, you
15241*** may want to report the problem to your system manager and/or to
15242*** bug-libtool@gnu.org
15243
15244_LT_EOF
15245	  fi ;;
15246	esac
15247      fi
15248      break
15249    fi
15250  done
15251  IFS=$lt_save_ifs
15252  MAGIC_CMD=$lt_save_MAGIC_CMD
15253  ;;
15254esac
15255fi
15256
15257MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15258if test -n "$MAGIC_CMD"; then
15259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15260$as_echo "$MAGIC_CMD" >&6; }
15261else
15262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15263$as_echo "no" >&6; }
15264fi
15265
15266
15267  else
15268    MAGIC_CMD=:
15269  fi
15270fi
15271
15272  fi
15273  ;;
15274esac
15275
15276# Use C for the default configuration in the libtool script
15277
15278lt_save_CC=$CC
15279ac_ext=c
15280ac_cpp='$CPP $CPPFLAGS'
15281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15283ac_compiler_gnu=$ac_cv_c_compiler_gnu
15284
15285
15286# Source file extension for C test sources.
15287ac_ext=c
15288
15289# Object file extension for compiled C test sources.
15290objext=o
15291objext=$objext
15292
15293# Code to be used in simple compile tests
15294lt_simple_compile_test_code="int some_variable = 0;"
15295
15296# Code to be used in simple link tests
15297lt_simple_link_test_code='int main(){return(0);}'
15298
15299
15300
15301
15302
15303
15304
15305# If no C compiler was specified, use CC.
15306LTCC=${LTCC-"$CC"}
15307
15308# If no C compiler flags were specified, use CFLAGS.
15309LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15310
15311# Allow CC to be a program name with arguments.
15312compiler=$CC
15313
15314# Save the default compiler, since it gets overwritten when the other
15315# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15316compiler_DEFAULT=$CC
15317
15318# save warnings/boilerplate of simple test code
15319ac_outfile=conftest.$ac_objext
15320echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15321eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15322_lt_compiler_boilerplate=`cat conftest.err`
15323$RM conftest*
15324
15325ac_outfile=conftest.$ac_objext
15326echo "$lt_simple_link_test_code" >conftest.$ac_ext
15327eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15328_lt_linker_boilerplate=`cat conftest.err`
15329$RM -r conftest*
15330
15331
15332## CAVEAT EMPTOR:
15333## There is no encapsulation within the following macros, do not change
15334## the running order or otherwise move them around unless you know exactly
15335## what you are doing...
15336if test -n "$compiler"; then
15337
15338lt_prog_compiler_no_builtin_flag=
15339
15340if test yes = "$GCC"; then
15341  case $cc_basename in
15342  nvcc*)
15343    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15344  *)
15345    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15346  esac
15347
15348  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15349$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15350if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15351  $as_echo_n "(cached) " >&6
15352else
15353  lt_cv_prog_compiler_rtti_exceptions=no
15354   ac_outfile=conftest.$ac_objext
15355   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15356   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
15357   # Insert the option either (1) after the last *FLAGS variable, or
15358   # (2) before a word containing "conftest.", or (3) at the end.
15359   # Note that $ac_compile itself does not contain backslashes and begins
15360   # with a dollar sign (not a hyphen), so the echo should work correctly.
15361   # The option is referenced via a variable to avoid confusing sed.
15362   lt_compile=`echo "$ac_compile" | $SED \
15363   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15364   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15365   -e 's:$: $lt_compiler_flag:'`
15366   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15367   (eval "$lt_compile" 2>conftest.err)
15368   ac_status=$?
15369   cat conftest.err >&5
15370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371   if (exit $ac_status) && test -s "$ac_outfile"; then
15372     # The compiler can only warn and ignore the option if not recognized
15373     # So say no if there are warnings other than the usual output.
15374     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15375     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15376     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15377       lt_cv_prog_compiler_rtti_exceptions=yes
15378     fi
15379   fi
15380   $RM conftest*
15381
15382fi
15383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15384$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15385
15386if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
15387    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15388else
15389    :
15390fi
15391
15392fi
15393
15394
15395
15396
15397
15398
15399  lt_prog_compiler_wl=
15400lt_prog_compiler_pic=
15401lt_prog_compiler_static=
15402
15403
15404  if test yes = "$GCC"; then
15405    lt_prog_compiler_wl='-Wl,'
15406    lt_prog_compiler_static='-static'
15407
15408    case $host_os in
15409      aix*)
15410      # All AIX code is PIC.
15411      if test ia64 = "$host_cpu"; then
15412	# AIX 5 now supports IA64 processor
15413	lt_prog_compiler_static='-Bstatic'
15414      fi
15415      lt_prog_compiler_pic='-fPIC'
15416      ;;
15417
15418    amigaos*)
15419      case $host_cpu in
15420      powerpc)
15421            # see comment about AmigaOS4 .so support
15422            lt_prog_compiler_pic='-fPIC'
15423        ;;
15424      m68k)
15425            # FIXME: we need at least 68020 code to build shared libraries, but
15426            # adding the '-m68020' flag to GCC prevents building anything better,
15427            # like '-m68040'.
15428            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15429        ;;
15430      esac
15431      ;;
15432
15433    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15434      # PIC is the default for these OSes.
15435      ;;
15436
15437    mingw* | cygwin* | pw32* | os2* | cegcc*)
15438      # This hack is so that the source file can tell whether it is being
15439      # built for inclusion in a dll (and should export symbols for example).
15440      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15441      # (--disable-auto-import) libraries
15442      lt_prog_compiler_pic='-DDLL_EXPORT'
15443      case $host_os in
15444      os2*)
15445	lt_prog_compiler_static='$wl-static'
15446	;;
15447      esac
15448      ;;
15449
15450    darwin* | rhapsody*)
15451      # PIC is the default on this platform
15452      # Common symbols not allowed in MH_DYLIB files
15453      lt_prog_compiler_pic='-fno-common'
15454      ;;
15455
15456    haiku*)
15457      # PIC is the default for Haiku.
15458      # The "-static" flag exists, but is broken.
15459      lt_prog_compiler_static=
15460      ;;
15461
15462    hpux*)
15463      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15464      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15465      # sets the default TLS model and affects inlining.
15466      case $host_cpu in
15467      hppa*64*)
15468	# +Z the default
15469	;;
15470      *)
15471	lt_prog_compiler_pic='-fPIC'
15472	;;
15473      esac
15474      ;;
15475
15476    interix[3-9]*)
15477      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15478      # Instead, we relocate shared libraries at runtime.
15479      ;;
15480
15481    msdosdjgpp*)
15482      # Just because we use GCC doesn't mean we suddenly get shared libraries
15483      # on systems that don't support them.
15484      lt_prog_compiler_can_build_shared=no
15485      enable_shared=no
15486      ;;
15487
15488    *nto* | *qnx*)
15489      # QNX uses GNU C++, but need to define -shared option too, otherwise
15490      # it will coredump.
15491      lt_prog_compiler_pic='-fPIC -shared'
15492      ;;
15493
15494    sysv4*MP*)
15495      if test -d /usr/nec; then
15496	lt_prog_compiler_pic=-Kconform_pic
15497      fi
15498      ;;
15499
15500    *)
15501      lt_prog_compiler_pic='-fPIC'
15502      ;;
15503    esac
15504
15505    case $cc_basename in
15506    nvcc*) # Cuda Compiler Driver 2.2
15507      lt_prog_compiler_wl='-Xlinker '
15508      if test -n "$lt_prog_compiler_pic"; then
15509        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15510      fi
15511      ;;
15512    esac
15513  else
15514    # PORTME Check for flag to pass linker flags through the system compiler.
15515    case $host_os in
15516    aix*)
15517      lt_prog_compiler_wl='-Wl,'
15518      if test ia64 = "$host_cpu"; then
15519	# AIX 5 now supports IA64 processor
15520	lt_prog_compiler_static='-Bstatic'
15521      else
15522	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15523      fi
15524      ;;
15525
15526    darwin* | rhapsody*)
15527      # PIC is the default on this platform
15528      # Common symbols not allowed in MH_DYLIB files
15529      lt_prog_compiler_pic='-fno-common'
15530      case $cc_basename in
15531      nagfor*)
15532        # NAG Fortran compiler
15533        lt_prog_compiler_wl='-Wl,-Wl,,'
15534        lt_prog_compiler_pic='-PIC'
15535        lt_prog_compiler_static='-Bstatic'
15536        ;;
15537      esac
15538      ;;
15539
15540    mingw* | cygwin* | pw32* | os2* | cegcc*)
15541      # This hack is so that the source file can tell whether it is being
15542      # built for inclusion in a dll (and should export symbols for example).
15543      lt_prog_compiler_pic='-DDLL_EXPORT'
15544      case $host_os in
15545      os2*)
15546	lt_prog_compiler_static='$wl-static'
15547	;;
15548      esac
15549      ;;
15550
15551    hpux9* | hpux10* | hpux11*)
15552      lt_prog_compiler_wl='-Wl,'
15553      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15554      # not for PA HP-UX.
15555      case $host_cpu in
15556      hppa*64*|ia64*)
15557	# +Z the default
15558	;;
15559      *)
15560	lt_prog_compiler_pic='+Z'
15561	;;
15562      esac
15563      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15564      lt_prog_compiler_static='$wl-a ${wl}archive'
15565      ;;
15566
15567    irix5* | irix6* | nonstopux*)
15568      lt_prog_compiler_wl='-Wl,'
15569      # PIC (with -KPIC) is the default.
15570      lt_prog_compiler_static='-non_shared'
15571      ;;
15572
15573    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15574      case $cc_basename in
15575      # old Intel for x86_64, which still supported -KPIC.
15576      ecc*)
15577	lt_prog_compiler_wl='-Wl,'
15578	lt_prog_compiler_pic='-KPIC'
15579	lt_prog_compiler_static='-static'
15580        ;;
15581      # icc used to be incompatible with GCC.
15582      # ICC 10 doesn't accept -KPIC any more.
15583      icc* | ifort*)
15584	lt_prog_compiler_wl='-Wl,'
15585	lt_prog_compiler_pic='-fPIC'
15586	lt_prog_compiler_static='-static'
15587        ;;
15588      # Lahey Fortran 8.1.
15589      lf95*)
15590	lt_prog_compiler_wl='-Wl,'
15591	lt_prog_compiler_pic='--shared'
15592	lt_prog_compiler_static='--static'
15593	;;
15594      nagfor*)
15595	# NAG Fortran compiler
15596	lt_prog_compiler_wl='-Wl,-Wl,,'
15597	lt_prog_compiler_pic='-PIC'
15598	lt_prog_compiler_static='-Bstatic'
15599	;;
15600      tcc*)
15601	# Fabrice Bellard et al's Tiny C Compiler
15602	lt_prog_compiler_wl='-Wl,'
15603	lt_prog_compiler_pic='-fPIC'
15604	lt_prog_compiler_static='-static'
15605	;;
15606      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15607        # Portland Group compilers (*not* the Pentium gcc compiler,
15608	# which looks to be a dead project)
15609	lt_prog_compiler_wl='-Wl,'
15610	lt_prog_compiler_pic='-fpic'
15611	lt_prog_compiler_static='-Bstatic'
15612        ;;
15613      ccc*)
15614        lt_prog_compiler_wl='-Wl,'
15615        # All Alpha code is PIC.
15616        lt_prog_compiler_static='-non_shared'
15617        ;;
15618      xl* | bgxl* | bgf* | mpixl*)
15619	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15620	lt_prog_compiler_wl='-Wl,'
15621	lt_prog_compiler_pic='-qpic'
15622	lt_prog_compiler_static='-qstaticlink'
15623	;;
15624      *)
15625	case `$CC -V 2>&1 | sed 5q` in
15626	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15627	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
15628	  lt_prog_compiler_pic='-KPIC'
15629	  lt_prog_compiler_static='-Bstatic'
15630	  lt_prog_compiler_wl=''
15631	  ;;
15632	*Sun\ F* | *Sun*Fortran*)
15633	  lt_prog_compiler_pic='-KPIC'
15634	  lt_prog_compiler_static='-Bstatic'
15635	  lt_prog_compiler_wl='-Qoption ld '
15636	  ;;
15637	*Sun\ C*)
15638	  # Sun C 5.9
15639	  lt_prog_compiler_pic='-KPIC'
15640	  lt_prog_compiler_static='-Bstatic'
15641	  lt_prog_compiler_wl='-Wl,'
15642	  ;;
15643        *Intel*\ [CF]*Compiler*)
15644	  lt_prog_compiler_wl='-Wl,'
15645	  lt_prog_compiler_pic='-fPIC'
15646	  lt_prog_compiler_static='-static'
15647	  ;;
15648	*Portland\ Group*)
15649	  lt_prog_compiler_wl='-Wl,'
15650	  lt_prog_compiler_pic='-fpic'
15651	  lt_prog_compiler_static='-Bstatic'
15652	  ;;
15653	esac
15654	;;
15655      esac
15656      ;;
15657
15658    newsos6)
15659      lt_prog_compiler_pic='-KPIC'
15660      lt_prog_compiler_static='-Bstatic'
15661      ;;
15662
15663    *nto* | *qnx*)
15664      # QNX uses GNU C++, but need to define -shared option too, otherwise
15665      # it will coredump.
15666      lt_prog_compiler_pic='-fPIC -shared'
15667      ;;
15668
15669    osf3* | osf4* | osf5*)
15670      lt_prog_compiler_wl='-Wl,'
15671      # All OSF/1 code is PIC.
15672      lt_prog_compiler_static='-non_shared'
15673      ;;
15674
15675    rdos*)
15676      lt_prog_compiler_static='-non_shared'
15677      ;;
15678
15679    solaris*)
15680      lt_prog_compiler_pic='-KPIC'
15681      lt_prog_compiler_static='-Bstatic'
15682      case $cc_basename in
15683      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15684	lt_prog_compiler_wl='-Qoption ld ';;
15685      *)
15686	lt_prog_compiler_wl='-Wl,';;
15687      esac
15688      ;;
15689
15690    sunos4*)
15691      lt_prog_compiler_wl='-Qoption ld '
15692      lt_prog_compiler_pic='-PIC'
15693      lt_prog_compiler_static='-Bstatic'
15694      ;;
15695
15696    sysv4 | sysv4.2uw2* | sysv4.3*)
15697      lt_prog_compiler_wl='-Wl,'
15698      lt_prog_compiler_pic='-KPIC'
15699      lt_prog_compiler_static='-Bstatic'
15700      ;;
15701
15702    sysv4*MP*)
15703      if test -d /usr/nec; then
15704	lt_prog_compiler_pic='-Kconform_pic'
15705	lt_prog_compiler_static='-Bstatic'
15706      fi
15707      ;;
15708
15709    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15710      lt_prog_compiler_wl='-Wl,'
15711      lt_prog_compiler_pic='-KPIC'
15712      lt_prog_compiler_static='-Bstatic'
15713      ;;
15714
15715    unicos*)
15716      lt_prog_compiler_wl='-Wl,'
15717      lt_prog_compiler_can_build_shared=no
15718      ;;
15719
15720    uts4*)
15721      lt_prog_compiler_pic='-pic'
15722      lt_prog_compiler_static='-Bstatic'
15723      ;;
15724
15725    *)
15726      lt_prog_compiler_can_build_shared=no
15727      ;;
15728    esac
15729  fi
15730
15731case $host_os in
15732  # For platforms that do not support PIC, -DPIC is meaningless:
15733  *djgpp*)
15734    lt_prog_compiler_pic=
15735    ;;
15736  *)
15737    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15738    ;;
15739esac
15740
15741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15742$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15743if ${lt_cv_prog_compiler_pic+:} false; then :
15744  $as_echo_n "(cached) " >&6
15745else
15746  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15747fi
15748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15749$as_echo "$lt_cv_prog_compiler_pic" >&6; }
15750lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15751
15752#
15753# Check to make sure the PIC flag actually works.
15754#
15755if test -n "$lt_prog_compiler_pic"; then
15756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15757$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15758if ${lt_cv_prog_compiler_pic_works+:} false; then :
15759  $as_echo_n "(cached) " >&6
15760else
15761  lt_cv_prog_compiler_pic_works=no
15762   ac_outfile=conftest.$ac_objext
15763   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15764   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15765   # Insert the option either (1) after the last *FLAGS variable, or
15766   # (2) before a word containing "conftest.", or (3) at the end.
15767   # Note that $ac_compile itself does not contain backslashes and begins
15768   # with a dollar sign (not a hyphen), so the echo should work correctly.
15769   # The option is referenced via a variable to avoid confusing sed.
15770   lt_compile=`echo "$ac_compile" | $SED \
15771   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15772   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15773   -e 's:$: $lt_compiler_flag:'`
15774   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15775   (eval "$lt_compile" 2>conftest.err)
15776   ac_status=$?
15777   cat conftest.err >&5
15778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779   if (exit $ac_status) && test -s "$ac_outfile"; then
15780     # The compiler can only warn and ignore the option if not recognized
15781     # So say no if there are warnings other than the usual output.
15782     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15783     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15784     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15785       lt_cv_prog_compiler_pic_works=yes
15786     fi
15787   fi
15788   $RM conftest*
15789
15790fi
15791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15792$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15793
15794if test yes = "$lt_cv_prog_compiler_pic_works"; then
15795    case $lt_prog_compiler_pic in
15796     "" | " "*) ;;
15797     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15798     esac
15799else
15800    lt_prog_compiler_pic=
15801     lt_prog_compiler_can_build_shared=no
15802fi
15803
15804fi
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816#
15817# Check to make sure the static flag actually works.
15818#
15819wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15821$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15822if ${lt_cv_prog_compiler_static_works+:} false; then :
15823  $as_echo_n "(cached) " >&6
15824else
15825  lt_cv_prog_compiler_static_works=no
15826   save_LDFLAGS=$LDFLAGS
15827   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15828   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15829   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15830     # The linker can only warn and ignore the option if not recognized
15831     # So say no if there are warnings
15832     if test -s conftest.err; then
15833       # Append any errors to the config.log.
15834       cat conftest.err 1>&5
15835       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15836       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15837       if diff conftest.exp conftest.er2 >/dev/null; then
15838         lt_cv_prog_compiler_static_works=yes
15839       fi
15840     else
15841       lt_cv_prog_compiler_static_works=yes
15842     fi
15843   fi
15844   $RM -r conftest*
15845   LDFLAGS=$save_LDFLAGS
15846
15847fi
15848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15849$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15850
15851if test yes = "$lt_cv_prog_compiler_static_works"; then
15852    :
15853else
15854    lt_prog_compiler_static=
15855fi
15856
15857
15858
15859
15860
15861
15862
15863  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15864$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15865if ${lt_cv_prog_compiler_c_o+:} false; then :
15866  $as_echo_n "(cached) " >&6
15867else
15868  lt_cv_prog_compiler_c_o=no
15869   $RM -r conftest 2>/dev/null
15870   mkdir conftest
15871   cd conftest
15872   mkdir out
15873   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15874
15875   lt_compiler_flag="-o out/conftest2.$ac_objext"
15876   # Insert the option either (1) after the last *FLAGS variable, or
15877   # (2) before a word containing "conftest.", or (3) at the end.
15878   # Note that $ac_compile itself does not contain backslashes and begins
15879   # with a dollar sign (not a hyphen), so the echo should work correctly.
15880   lt_compile=`echo "$ac_compile" | $SED \
15881   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15882   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15883   -e 's:$: $lt_compiler_flag:'`
15884   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15885   (eval "$lt_compile" 2>out/conftest.err)
15886   ac_status=$?
15887   cat out/conftest.err >&5
15888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15890   then
15891     # The compiler can only warn and ignore the option if not recognized
15892     # So say no if there are warnings
15893     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15894     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15895     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15896       lt_cv_prog_compiler_c_o=yes
15897     fi
15898   fi
15899   chmod u+w . 2>&5
15900   $RM conftest*
15901   # SGI C++ compiler will create directory out/ii_files/ for
15902   # template instantiation
15903   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15904   $RM out/* && rmdir out
15905   cd ..
15906   $RM -r conftest
15907   $RM conftest*
15908
15909fi
15910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15911$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15912
15913
15914
15915
15916
15917
15918  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15919$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15920if ${lt_cv_prog_compiler_c_o+:} false; then :
15921  $as_echo_n "(cached) " >&6
15922else
15923  lt_cv_prog_compiler_c_o=no
15924   $RM -r conftest 2>/dev/null
15925   mkdir conftest
15926   cd conftest
15927   mkdir out
15928   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15929
15930   lt_compiler_flag="-o out/conftest2.$ac_objext"
15931   # Insert the option either (1) after the last *FLAGS variable, or
15932   # (2) before a word containing "conftest.", or (3) at the end.
15933   # Note that $ac_compile itself does not contain backslashes and begins
15934   # with a dollar sign (not a hyphen), so the echo should work correctly.
15935   lt_compile=`echo "$ac_compile" | $SED \
15936   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15937   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15938   -e 's:$: $lt_compiler_flag:'`
15939   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15940   (eval "$lt_compile" 2>out/conftest.err)
15941   ac_status=$?
15942   cat out/conftest.err >&5
15943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15945   then
15946     # The compiler can only warn and ignore the option if not recognized
15947     # So say no if there are warnings
15948     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15949     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15950     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15951       lt_cv_prog_compiler_c_o=yes
15952     fi
15953   fi
15954   chmod u+w . 2>&5
15955   $RM conftest*
15956   # SGI C++ compiler will create directory out/ii_files/ for
15957   # template instantiation
15958   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15959   $RM out/* && rmdir out
15960   cd ..
15961   $RM -r conftest
15962   $RM conftest*
15963
15964fi
15965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15966$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15967
15968
15969
15970
15971hard_links=nottested
15972if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15973  # do not overwrite the value of need_locks provided by the user
15974  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15975$as_echo_n "checking if we can lock with hard links... " >&6; }
15976  hard_links=yes
15977  $RM conftest*
15978  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15979  touch conftest.a
15980  ln conftest.a conftest.b 2>&5 || hard_links=no
15981  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15983$as_echo "$hard_links" >&6; }
15984  if test no = "$hard_links"; then
15985    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15986$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15987    need_locks=warn
15988  fi
15989else
15990  need_locks=no
15991fi
15992
15993
15994
15995
15996
15997
15998  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15999$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16000
16001  runpath_var=
16002  allow_undefined_flag=
16003  always_export_symbols=no
16004  archive_cmds=
16005  archive_expsym_cmds=
16006  compiler_needs_object=no
16007  enable_shared_with_static_runtimes=no
16008  export_dynamic_flag_spec=
16009  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16010  hardcode_automatic=no
16011  hardcode_direct=no
16012  hardcode_direct_absolute=no
16013  hardcode_libdir_flag_spec=
16014  hardcode_libdir_separator=
16015  hardcode_minus_L=no
16016  hardcode_shlibpath_var=unsupported
16017  inherit_rpath=no
16018  link_all_deplibs=unknown
16019  module_cmds=
16020  module_expsym_cmds=
16021  old_archive_from_new_cmds=
16022  old_archive_from_expsyms_cmds=
16023  thread_safe_flag_spec=
16024  whole_archive_flag_spec=
16025  # include_expsyms should be a list of space-separated symbols to be *always*
16026  # included in the symbol list
16027  include_expsyms=
16028  # exclude_expsyms can be an extended regexp of symbols to exclude
16029  # it will be wrapped by ' (' and ')$', so one must not match beginning or
16030  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
16031  # as well as any symbol that contains 'd'.
16032  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16033  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16034  # platforms (ab)use it in PIC code, but their linkers get confused if
16035  # the symbol is explicitly referenced.  Since portable code cannot
16036  # rely on this symbol name, it's probably fine to never include it in
16037  # preloaded symbol tables.
16038  # Exclude shared library initialization/finalization symbols.
16039  extract_expsyms_cmds=
16040
16041  case $host_os in
16042  cygwin* | mingw* | pw32* | cegcc*)
16043    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16044    # When not using gcc, we currently assume that we are using
16045    # Microsoft Visual C++.
16046    if test yes != "$GCC"; then
16047      with_gnu_ld=no
16048    fi
16049    ;;
16050  interix*)
16051    # we just hope/assume this is gcc and not c89 (= MSVC++)
16052    with_gnu_ld=yes
16053    ;;
16054  openbsd* | bitrig*)
16055    with_gnu_ld=no
16056    ;;
16057  esac
16058
16059  ld_shlibs=yes
16060
16061  # On some targets, GNU ld is compatible enough with the native linker
16062  # that we're better off using the native interface for both.
16063  lt_use_gnu_ld_interface=no
16064  if test yes = "$with_gnu_ld"; then
16065    case $host_os in
16066      aix*)
16067	# The AIX port of GNU ld has always aspired to compatibility
16068	# with the native linker.  However, as the warning in the GNU ld
16069	# block says, versions before 2.19.5* couldn't really create working
16070	# shared libraries, regardless of the interface used.
16071	case `$LD -v 2>&1` in
16072	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16073	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16074	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16075	  *)
16076	    lt_use_gnu_ld_interface=yes
16077	    ;;
16078	esac
16079	;;
16080      *)
16081	lt_use_gnu_ld_interface=yes
16082	;;
16083    esac
16084  fi
16085
16086  if test yes = "$lt_use_gnu_ld_interface"; then
16087    # If archive_cmds runs LD, not CC, wlarc should be empty
16088    wlarc='$wl'
16089
16090    # Set some defaults for GNU ld with shared library support. These
16091    # are reset later if shared libraries are not supported. Putting them
16092    # here allows them to be overridden if necessary.
16093    runpath_var=LD_RUN_PATH
16094    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16095    export_dynamic_flag_spec='$wl--export-dynamic'
16096    # ancient GNU ld didn't support --whole-archive et. al.
16097    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16098      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16099    else
16100      whole_archive_flag_spec=
16101    fi
16102    supports_anon_versioning=no
16103    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
16104      *GNU\ gold*) supports_anon_versioning=yes ;;
16105      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16106      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16107      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16108      *\ 2.11.*) ;; # other 2.11 versions
16109      *) supports_anon_versioning=yes ;;
16110    esac
16111
16112    # See if GNU ld supports shared libraries.
16113    case $host_os in
16114    aix[3-9]*)
16115      # On AIX/PPC, the GNU linker is very broken
16116      if test ia64 != "$host_cpu"; then
16117	ld_shlibs=no
16118	cat <<_LT_EOF 1>&2
16119
16120*** Warning: the GNU linker, at least up to release 2.19, is reported
16121*** to be unable to reliably create shared libraries on AIX.
16122*** Therefore, libtool is disabling shared libraries support.  If you
16123*** really care for shared libraries, you may want to install binutils
16124*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16125*** You will then need to restart the configuration process.
16126
16127_LT_EOF
16128      fi
16129      ;;
16130
16131    amigaos*)
16132      case $host_cpu in
16133      powerpc)
16134            # see comment about AmigaOS4 .so support
16135            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16136            archive_expsym_cmds=''
16137        ;;
16138      m68k)
16139            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)'
16140            hardcode_libdir_flag_spec='-L$libdir'
16141            hardcode_minus_L=yes
16142        ;;
16143      esac
16144      ;;
16145
16146    beos*)
16147      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16148	allow_undefined_flag=unsupported
16149	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16150	# support --undefined.  This deserves some investigation.  FIXME
16151	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16152      else
16153	ld_shlibs=no
16154      fi
16155      ;;
16156
16157    cygwin* | mingw* | pw32* | cegcc*)
16158      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16159      # as there is no search path for DLLs.
16160      hardcode_libdir_flag_spec='-L$libdir'
16161      export_dynamic_flag_spec='$wl--export-all-symbols'
16162      allow_undefined_flag=unsupported
16163      always_export_symbols=no
16164      enable_shared_with_static_runtimes=yes
16165      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'
16166      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16167
16168      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16169        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16170	# If the export-symbols file already is a .def file, use it as
16171	# is; otherwise, prepend EXPORTS...
16172	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16173          cp $export_symbols $output_objdir/$soname.def;
16174        else
16175          echo EXPORTS > $output_objdir/$soname.def;
16176          cat $export_symbols >> $output_objdir/$soname.def;
16177        fi~
16178        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16179      else
16180	ld_shlibs=no
16181      fi
16182      ;;
16183
16184    haiku*)
16185      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16186      link_all_deplibs=yes
16187      ;;
16188
16189    os2*)
16190      hardcode_libdir_flag_spec='-L$libdir'
16191      hardcode_minus_L=yes
16192      allow_undefined_flag=unsupported
16193      shrext_cmds=.dll
16194      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16195	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16196	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16197	$ECHO EXPORTS >> $output_objdir/$libname.def~
16198	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16199	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16200	emximp -o $lib $output_objdir/$libname.def'
16201      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16202	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16203	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16204	$ECHO EXPORTS >> $output_objdir/$libname.def~
16205	prefix_cmds="$SED"~
16206	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16207	  prefix_cmds="$prefix_cmds -e 1d";
16208	fi~
16209	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16210	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16211	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16212	emximp -o $lib $output_objdir/$libname.def'
16213      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16214      enable_shared_with_static_runtimes=yes
16215      ;;
16216
16217    interix[3-9]*)
16218      hardcode_direct=no
16219      hardcode_shlibpath_var=no
16220      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16221      export_dynamic_flag_spec='$wl-E'
16222      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16223      # Instead, shared libraries are loaded at an image base (0x10000000 by
16224      # default) and relocated if they conflict, which is a slow very memory
16225      # consuming and fragmenting process.  To avoid this, we pick a random,
16226      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16227      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16228      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16229      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'
16230      ;;
16231
16232    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16233      tmp_diet=no
16234      if test linux-dietlibc = "$host_os"; then
16235	case $cc_basename in
16236	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
16237	esac
16238      fi
16239      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16240	 && test no = "$tmp_diet"
16241      then
16242	tmp_addflag=' $pic_flag'
16243	tmp_sharedflag='-shared'
16244	case $cc_basename,$host_cpu in
16245        pgcc*)				# Portland Group C compiler
16246	  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'
16247	  tmp_addflag=' $pic_flag'
16248	  ;;
16249	pgf77* | pgf90* | pgf95* | pgfortran*)
16250					# Portland Group f77 and f90 compilers
16251	  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'
16252	  tmp_addflag=' $pic_flag -Mnomain' ;;
16253	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
16254	  tmp_addflag=' -i_dynamic' ;;
16255	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16256	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16257	ifc* | ifort*)			# Intel Fortran compiler
16258	  tmp_addflag=' -nofor_main' ;;
16259	lf95*)				# Lahey Fortran 8.1
16260	  whole_archive_flag_spec=
16261	  tmp_sharedflag='--shared' ;;
16262        nagfor*)                        # NAGFOR 5.3
16263          tmp_sharedflag='-Wl,-shared' ;;
16264	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16265	  tmp_sharedflag='-qmkshrobj'
16266	  tmp_addflag= ;;
16267	nvcc*)	# Cuda Compiler Driver 2.2
16268	  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'
16269	  compiler_needs_object=yes
16270	  ;;
16271	esac
16272	case `$CC -V 2>&1 | sed 5q` in
16273	*Sun\ C*)			# Sun C 5.9
16274	  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'
16275	  compiler_needs_object=yes
16276	  tmp_sharedflag='-G' ;;
16277	*Sun\ F*)			# Sun Fortran 8.3
16278	  tmp_sharedflag='-G' ;;
16279	esac
16280	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16281
16282        if test yes = "$supports_anon_versioning"; then
16283          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16284            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16285            echo "local: *; };" >> $output_objdir/$libname.ver~
16286            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16287        fi
16288
16289	case $cc_basename in
16290	tcc*)
16291	  export_dynamic_flag_spec='-rdynamic'
16292	  ;;
16293	xlf* | bgf* | bgxlf* | mpixlf*)
16294	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16295	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16296	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16297	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16298	  if test yes = "$supports_anon_versioning"; then
16299	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16300              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16301              echo "local: *; };" >> $output_objdir/$libname.ver~
16302              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16303	  fi
16304	  ;;
16305	esac
16306      else
16307        ld_shlibs=no
16308      fi
16309      ;;
16310
16311    netbsd*)
16312      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16313	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16314	wlarc=
16315      else
16316	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16317	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16318      fi
16319      ;;
16320
16321    solaris*)
16322      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16323	ld_shlibs=no
16324	cat <<_LT_EOF 1>&2
16325
16326*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16327*** create shared libraries on Solaris systems.  Therefore, libtool
16328*** is disabling shared libraries support.  We urge you to upgrade GNU
16329*** binutils to release 2.9.1 or newer.  Another option is to modify
16330*** your PATH or compiler configuration so that the native linker is
16331*** used, and then restart.
16332
16333_LT_EOF
16334      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16335	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16336	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16337      else
16338	ld_shlibs=no
16339      fi
16340      ;;
16341
16342    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16343      case `$LD -v 2>&1` in
16344        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16345	ld_shlibs=no
16346	cat <<_LT_EOF 1>&2
16347
16348*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
16349*** reliably create shared libraries on SCO systems.  Therefore, libtool
16350*** is disabling shared libraries support.  We urge you to upgrade GNU
16351*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16352*** your PATH or compiler configuration so that the native linker is
16353*** used, and then restart.
16354
16355_LT_EOF
16356	;;
16357	*)
16358	  # For security reasons, it is highly recommended that you always
16359	  # use absolute paths for naming shared libraries, and exclude the
16360	  # DT_RUNPATH tag from executables and libraries.  But doing so
16361	  # requires that you compile everything twice, which is a pain.
16362	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16363	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16364	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16365	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16366	  else
16367	    ld_shlibs=no
16368	  fi
16369	;;
16370      esac
16371      ;;
16372
16373    sunos4*)
16374      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16375      wlarc=
16376      hardcode_direct=yes
16377      hardcode_shlibpath_var=no
16378      ;;
16379
16380    *)
16381      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16382	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16383	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16384      else
16385	ld_shlibs=no
16386      fi
16387      ;;
16388    esac
16389
16390    if test no = "$ld_shlibs"; then
16391      runpath_var=
16392      hardcode_libdir_flag_spec=
16393      export_dynamic_flag_spec=
16394      whole_archive_flag_spec=
16395    fi
16396  else
16397    # PORTME fill in a description of your system's linker (not GNU ld)
16398    case $host_os in
16399    aix3*)
16400      allow_undefined_flag=unsupported
16401      always_export_symbols=yes
16402      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'
16403      # Note: this linker hardcodes the directories in LIBPATH if there
16404      # are no directories specified by -L.
16405      hardcode_minus_L=yes
16406      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
16407	# Neither direct hardcoding nor static linking is supported with a
16408	# broken collect2.
16409	hardcode_direct=unsupported
16410      fi
16411      ;;
16412
16413    aix[4-9]*)
16414      if test ia64 = "$host_cpu"; then
16415	# On IA64, the linker does run time linking by default, so we don't
16416	# have to do anything special.
16417	aix_use_runtimelinking=no
16418	exp_sym_flag='-Bexport'
16419	no_entry_flag=
16420      else
16421	# If we're using GNU nm, then we don't want the "-C" option.
16422	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
16423	# Without the "-l" option, or with the "-B" option, AIX nm treats
16424	# weak defined symbols like other global defined symbols, whereas
16425	# GNU nm marks them as "W".
16426	# While the 'weak' keyword is ignored in the Export File, we need
16427	# it in the Import File for the 'aix-soname' feature, so we have
16428	# to replace the "-B" option with "-P" for AIX nm.
16429	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16430	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
16431	else
16432	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
16433	fi
16434	aix_use_runtimelinking=no
16435
16436	# Test if we are trying to use run time linking or normal
16437	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16438	# have runtime linking enabled, and use it for executables.
16439	# For shared libraries, we enable/disable runtime linking
16440	# depending on the kind of the shared library created -
16441	# when "with_aix_soname,aix_use_runtimelinking" is:
16442	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
16443	# "aix,yes"  lib.so          shared, rtl:yes, for executables
16444	#            lib.a           static archive
16445	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
16446	#            lib.a(lib.so.V) shared, rtl:no,  for executables
16447	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16448	#            lib.a(lib.so.V) shared, rtl:no
16449	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
16450	#            lib.a           static archive
16451	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16452	  for ld_flag in $LDFLAGS; do
16453	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
16454	    aix_use_runtimelinking=yes
16455	    break
16456	  fi
16457	  done
16458	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16459	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
16460	    # so we don't have lib.a shared libs to link our executables.
16461	    # We have to force runtime linking in this case.
16462	    aix_use_runtimelinking=yes
16463	    LDFLAGS="$LDFLAGS -Wl,-brtl"
16464	  fi
16465	  ;;
16466	esac
16467
16468	exp_sym_flag='-bexport'
16469	no_entry_flag='-bnoentry'
16470      fi
16471
16472      # When large executables or shared objects are built, AIX ld can
16473      # have problems creating the table of contents.  If linking a library
16474      # or program results in "error TOC overflow" add -mminimal-toc to
16475      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16476      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16477
16478      archive_cmds=''
16479      hardcode_direct=yes
16480      hardcode_direct_absolute=yes
16481      hardcode_libdir_separator=':'
16482      link_all_deplibs=yes
16483      file_list_spec='$wl-f,'
16484      case $with_aix_soname,$aix_use_runtimelinking in
16485      aix,*) ;; # traditional, no import file
16486      svr4,* | *,yes) # use import file
16487	# The Import File defines what to hardcode.
16488	hardcode_direct=no
16489	hardcode_direct_absolute=no
16490	;;
16491      esac
16492
16493      if test yes = "$GCC"; then
16494	case $host_os in aix4.[012]|aix4.[012].*)
16495	# We only want to do this on AIX 4.2 and lower, the check
16496	# below for broken collect2 doesn't work under 4.3+
16497	  collect2name=`$CC -print-prog-name=collect2`
16498	  if test -f "$collect2name" &&
16499	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16500	  then
16501	  # We have reworked collect2
16502	  :
16503	  else
16504	  # We have old collect2
16505	  hardcode_direct=unsupported
16506	  # It fails to find uninstalled libraries when the uninstalled
16507	  # path is not listed in the libpath.  Setting hardcode_minus_L
16508	  # to unsupported forces relinking
16509	  hardcode_minus_L=yes
16510	  hardcode_libdir_flag_spec='-L$libdir'
16511	  hardcode_libdir_separator=
16512	  fi
16513	  ;;
16514	esac
16515	shared_flag='-shared'
16516	if test yes = "$aix_use_runtimelinking"; then
16517	  shared_flag="$shared_flag "'$wl-G'
16518	fi
16519	# Need to ensure runtime linking is disabled for the traditional
16520	# shared library, or the linker may eventually find shared libraries
16521	# /with/ Import File - we do not want to mix them.
16522	shared_flag_aix='-shared'
16523	shared_flag_svr4='-shared $wl-G'
16524      else
16525	# not using gcc
16526	if test ia64 = "$host_cpu"; then
16527	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16528	# chokes on -Wl,-G. The following line is correct:
16529	  shared_flag='-G'
16530	else
16531	  if test yes = "$aix_use_runtimelinking"; then
16532	    shared_flag='$wl-G'
16533	  else
16534	    shared_flag='$wl-bM:SRE'
16535	  fi
16536	  shared_flag_aix='$wl-bM:SRE'
16537	  shared_flag_svr4='$wl-G'
16538	fi
16539      fi
16540
16541      export_dynamic_flag_spec='$wl-bexpall'
16542      # It seems that -bexpall does not export symbols beginning with
16543      # underscore (_), so it is better to generate a list of symbols to export.
16544      always_export_symbols=yes
16545      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16546	# Warning - without using the other runtime loading flags (-brtl),
16547	# -berok will link without error, but may produce a broken library.
16548	allow_undefined_flag='-berok'
16549        # Determine the default libpath from the value encoded in an
16550        # empty executable.
16551        if test set = "${lt_cv_aix_libpath+set}"; then
16552  aix_libpath=$lt_cv_aix_libpath
16553else
16554  if ${lt_cv_aix_libpath_+:} false; then :
16555  $as_echo_n "(cached) " >&6
16556else
16557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16558/* end confdefs.h.  */
16559
16560int
16561main ()
16562{
16563
16564  ;
16565  return 0;
16566}
16567_ACEOF
16568if ac_fn_c_try_link "$LINENO"; then :
16569
16570  lt_aix_libpath_sed='
16571      /Import File Strings/,/^$/ {
16572	  /^0/ {
16573	      s/^0  *\([^ ]*\) *$/\1/
16574	      p
16575	  }
16576      }'
16577  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16578  # Check for a 64-bit object if we didn't find anything.
16579  if test -z "$lt_cv_aix_libpath_"; then
16580    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16581  fi
16582fi
16583rm -f core conftest.err conftest.$ac_objext \
16584    conftest$ac_exeext conftest.$ac_ext
16585  if test -z "$lt_cv_aix_libpath_"; then
16586    lt_cv_aix_libpath_=/usr/lib:/lib
16587  fi
16588
16589fi
16590
16591  aix_libpath=$lt_cv_aix_libpath_
16592fi
16593
16594        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16595        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
16596      else
16597	if test ia64 = "$host_cpu"; then
16598	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
16599	  allow_undefined_flag="-z nodefs"
16600	  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"
16601	else
16602	 # Determine the default libpath from the value encoded in an
16603	 # empty executable.
16604	 if test set = "${lt_cv_aix_libpath+set}"; then
16605  aix_libpath=$lt_cv_aix_libpath
16606else
16607  if ${lt_cv_aix_libpath_+:} false; then :
16608  $as_echo_n "(cached) " >&6
16609else
16610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16611/* end confdefs.h.  */
16612
16613int
16614main ()
16615{
16616
16617  ;
16618  return 0;
16619}
16620_ACEOF
16621if ac_fn_c_try_link "$LINENO"; then :
16622
16623  lt_aix_libpath_sed='
16624      /Import File Strings/,/^$/ {
16625	  /^0/ {
16626	      s/^0  *\([^ ]*\) *$/\1/
16627	      p
16628	  }
16629      }'
16630  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16631  # Check for a 64-bit object if we didn't find anything.
16632  if test -z "$lt_cv_aix_libpath_"; then
16633    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16634  fi
16635fi
16636rm -f core conftest.err conftest.$ac_objext \
16637    conftest$ac_exeext conftest.$ac_ext
16638  if test -z "$lt_cv_aix_libpath_"; then
16639    lt_cv_aix_libpath_=/usr/lib:/lib
16640  fi
16641
16642fi
16643
16644  aix_libpath=$lt_cv_aix_libpath_
16645fi
16646
16647	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16648	  # Warning - without using the other run time loading flags,
16649	  # -berok will link without error, but may produce a broken library.
16650	  no_undefined_flag=' $wl-bernotok'
16651	  allow_undefined_flag=' $wl-berok'
16652	  if test yes = "$with_gnu_ld"; then
16653	    # We only use this code for GNU lds that support --whole-archive.
16654	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
16655	  else
16656	    # Exported symbols can be pulled into shared objects from archives
16657	    whole_archive_flag_spec='$convenience'
16658	  fi
16659	  archive_cmds_need_lc=yes
16660	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16661	  # -brtl affects multiple linker settings, -berok does not and is overridden later
16662	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16663	  if test svr4 != "$with_aix_soname"; then
16664	    # This is similar to how AIX traditionally builds its shared libraries.
16665	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
16666	  fi
16667	  if test aix != "$with_aix_soname"; then
16668	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
16669	  else
16670	    # used by -dlpreopen to get the symbols
16671	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
16672	  fi
16673	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16674	fi
16675      fi
16676      ;;
16677
16678    amigaos*)
16679      case $host_cpu in
16680      powerpc)
16681            # see comment about AmigaOS4 .so support
16682            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16683            archive_expsym_cmds=''
16684        ;;
16685      m68k)
16686            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)'
16687            hardcode_libdir_flag_spec='-L$libdir'
16688            hardcode_minus_L=yes
16689        ;;
16690      esac
16691      ;;
16692
16693    bsdi[45]*)
16694      export_dynamic_flag_spec=-rdynamic
16695      ;;
16696
16697    cygwin* | mingw* | pw32* | cegcc*)
16698      # When not using gcc, we currently assume that we are using
16699      # Microsoft Visual C++.
16700      # hardcode_libdir_flag_spec is actually meaningless, as there is
16701      # no search path for DLLs.
16702      case $cc_basename in
16703      cl*)
16704	# Native MSVC
16705	hardcode_libdir_flag_spec=' '
16706	allow_undefined_flag=unsupported
16707	always_export_symbols=yes
16708	file_list_spec='@'
16709	# Tell ltmain to make .lib files, not .a files.
16710	libext=lib
16711	# Tell ltmain to make .dll files, not .so files.
16712	shrext_cmds=.dll
16713	# FIXME: Setting linknames here is a bad hack.
16714	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16715	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16716            cp "$export_symbols" "$output_objdir/$soname.def";
16717            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16718          else
16719            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16720          fi~
16721          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16722          linknames='
16723	# The linker will not automatically build a static lib if we build a DLL.
16724	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16725	enable_shared_with_static_runtimes=yes
16726	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16727	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16728	# Don't use ranlib
16729	old_postinstall_cmds='chmod 644 $oldlib'
16730	postlink_cmds='lt_outputfile="@OUTPUT@"~
16731          lt_tool_outputfile="@TOOL_OUTPUT@"~
16732          case $lt_outputfile in
16733            *.exe|*.EXE) ;;
16734            *)
16735              lt_outputfile=$lt_outputfile.exe
16736              lt_tool_outputfile=$lt_tool_outputfile.exe
16737              ;;
16738          esac~
16739          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16740            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16741            $RM "$lt_outputfile.manifest";
16742          fi'
16743	;;
16744      *)
16745	# Assume MSVC wrapper
16746	hardcode_libdir_flag_spec=' '
16747	allow_undefined_flag=unsupported
16748	# Tell ltmain to make .lib files, not .a files.
16749	libext=lib
16750	# Tell ltmain to make .dll files, not .so files.
16751	shrext_cmds=.dll
16752	# FIXME: Setting linknames here is a bad hack.
16753	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16754	# The linker will automatically build a .lib file if we build a DLL.
16755	old_archive_from_new_cmds='true'
16756	# FIXME: Should let the user specify the lib program.
16757	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16758	enable_shared_with_static_runtimes=yes
16759	;;
16760      esac
16761      ;;
16762
16763    darwin* | rhapsody*)
16764
16765
16766  archive_cmds_need_lc=no
16767  hardcode_direct=no
16768  hardcode_automatic=yes
16769  hardcode_shlibpath_var=unsupported
16770  if test yes = "$lt_cv_ld_force_load"; then
16771    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\"`'
16772
16773  else
16774    whole_archive_flag_spec=''
16775  fi
16776  link_all_deplibs=yes
16777  allow_undefined_flag=$_lt_dar_allow_undefined
16778  case $cc_basename in
16779     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16780     *) _lt_dar_can_shared=$GCC ;;
16781  esac
16782  if test yes = "$_lt_dar_can_shared"; then
16783    output_verbose_link_cmd=func_echo_all
16784    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16785    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16786    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"
16787    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"
16788
16789  else
16790  ld_shlibs=no
16791  fi
16792
16793      ;;
16794
16795    dgux*)
16796      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16797      hardcode_libdir_flag_spec='-L$libdir'
16798      hardcode_shlibpath_var=no
16799      ;;
16800
16801    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16802    # support.  Future versions do this automatically, but an explicit c++rt0.o
16803    # does not break anything, and helps significantly (at the cost of a little
16804    # extra space).
16805    freebsd2.2*)
16806      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16807      hardcode_libdir_flag_spec='-R$libdir'
16808      hardcode_direct=yes
16809      hardcode_shlibpath_var=no
16810      ;;
16811
16812    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16813    freebsd2.*)
16814      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16815      hardcode_direct=yes
16816      hardcode_minus_L=yes
16817      hardcode_shlibpath_var=no
16818      ;;
16819
16820    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16821    freebsd* | dragonfly*)
16822      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16823      hardcode_libdir_flag_spec='-R$libdir'
16824      hardcode_direct=yes
16825      hardcode_shlibpath_var=no
16826      ;;
16827
16828    hpux9*)
16829      if test yes = "$GCC"; then
16830	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16831      else
16832	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16833      fi
16834      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16835      hardcode_libdir_separator=:
16836      hardcode_direct=yes
16837
16838      # hardcode_minus_L: Not really in the search PATH,
16839      # but as the default location of the library.
16840      hardcode_minus_L=yes
16841      export_dynamic_flag_spec='$wl-E'
16842      ;;
16843
16844    hpux10*)
16845      if test yes,no = "$GCC,$with_gnu_ld"; then
16846	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16847      else
16848	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16849      fi
16850      if test no = "$with_gnu_ld"; then
16851	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16852	hardcode_libdir_separator=:
16853	hardcode_direct=yes
16854	hardcode_direct_absolute=yes
16855	export_dynamic_flag_spec='$wl-E'
16856	# hardcode_minus_L: Not really in the search PATH,
16857	# but as the default location of the library.
16858	hardcode_minus_L=yes
16859      fi
16860      ;;
16861
16862    hpux11*)
16863      if test yes,no = "$GCC,$with_gnu_ld"; then
16864	case $host_cpu in
16865	hppa*64*)
16866	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16867	  ;;
16868	ia64*)
16869	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16870	  ;;
16871	*)
16872	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16873	  ;;
16874	esac
16875      else
16876	case $host_cpu in
16877	hppa*64*)
16878	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16879	  ;;
16880	ia64*)
16881	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16882	  ;;
16883	*)
16884
16885	  # Older versions of the 11.00 compiler do not understand -b yet
16886	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16887	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16888$as_echo_n "checking if $CC understands -b... " >&6; }
16889if ${lt_cv_prog_compiler__b+:} false; then :
16890  $as_echo_n "(cached) " >&6
16891else
16892  lt_cv_prog_compiler__b=no
16893   save_LDFLAGS=$LDFLAGS
16894   LDFLAGS="$LDFLAGS -b"
16895   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16896   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16897     # The linker can only warn and ignore the option if not recognized
16898     # So say no if there are warnings
16899     if test -s conftest.err; then
16900       # Append any errors to the config.log.
16901       cat conftest.err 1>&5
16902       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16903       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16904       if diff conftest.exp conftest.er2 >/dev/null; then
16905         lt_cv_prog_compiler__b=yes
16906       fi
16907     else
16908       lt_cv_prog_compiler__b=yes
16909     fi
16910   fi
16911   $RM -r conftest*
16912   LDFLAGS=$save_LDFLAGS
16913
16914fi
16915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16916$as_echo "$lt_cv_prog_compiler__b" >&6; }
16917
16918if test yes = "$lt_cv_prog_compiler__b"; then
16919    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16920else
16921    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16922fi
16923
16924	  ;;
16925	esac
16926      fi
16927      if test no = "$with_gnu_ld"; then
16928	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16929	hardcode_libdir_separator=:
16930
16931	case $host_cpu in
16932	hppa*64*|ia64*)
16933	  hardcode_direct=no
16934	  hardcode_shlibpath_var=no
16935	  ;;
16936	*)
16937	  hardcode_direct=yes
16938	  hardcode_direct_absolute=yes
16939	  export_dynamic_flag_spec='$wl-E'
16940
16941	  # hardcode_minus_L: Not really in the search PATH,
16942	  # but as the default location of the library.
16943	  hardcode_minus_L=yes
16944	  ;;
16945	esac
16946      fi
16947      ;;
16948
16949    irix5* | irix6* | nonstopux*)
16950      if test yes = "$GCC"; then
16951	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'
16952	# Try to use the -exported_symbol ld option, if it does not
16953	# work, assume that -exports_file does not work either and
16954	# implicitly export all symbols.
16955	# This should be the same for all languages, so no per-tag cache variable.
16956	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16957$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16958if ${lt_cv_irix_exported_symbol+:} false; then :
16959  $as_echo_n "(cached) " >&6
16960else
16961  save_LDFLAGS=$LDFLAGS
16962	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16963	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16964/* end confdefs.h.  */
16965int foo (void) { return 0; }
16966_ACEOF
16967if ac_fn_c_try_link "$LINENO"; then :
16968  lt_cv_irix_exported_symbol=yes
16969else
16970  lt_cv_irix_exported_symbol=no
16971fi
16972rm -f core conftest.err conftest.$ac_objext \
16973    conftest$ac_exeext conftest.$ac_ext
16974           LDFLAGS=$save_LDFLAGS
16975fi
16976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16977$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16978	if test yes = "$lt_cv_irix_exported_symbol"; then
16979          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'
16980	fi
16981      else
16982	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'
16983	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'
16984      fi
16985      archive_cmds_need_lc='no'
16986      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16987      hardcode_libdir_separator=:
16988      inherit_rpath=yes
16989      link_all_deplibs=yes
16990      ;;
16991
16992    linux*)
16993      case $cc_basename in
16994      tcc*)
16995	# Fabrice Bellard et al's Tiny C Compiler
16996	ld_shlibs=yes
16997	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16998	;;
16999      esac
17000      ;;
17001
17002    netbsd*)
17003      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17004	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17005      else
17006	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17007      fi
17008      hardcode_libdir_flag_spec='-R$libdir'
17009      hardcode_direct=yes
17010      hardcode_shlibpath_var=no
17011      ;;
17012
17013    newsos6)
17014      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17015      hardcode_direct=yes
17016      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17017      hardcode_libdir_separator=:
17018      hardcode_shlibpath_var=no
17019      ;;
17020
17021    *nto* | *qnx*)
17022      ;;
17023
17024    openbsd* | bitrig*)
17025      if test -f /usr/libexec/ld.so; then
17026	hardcode_direct=yes
17027	hardcode_shlibpath_var=no
17028	hardcode_direct_absolute=yes
17029	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17030	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17031	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
17032	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17033	  export_dynamic_flag_spec='$wl-E'
17034	else
17035	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17036	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17037	fi
17038      else
17039	ld_shlibs=no
17040      fi
17041      ;;
17042
17043    os2*)
17044      hardcode_libdir_flag_spec='-L$libdir'
17045      hardcode_minus_L=yes
17046      allow_undefined_flag=unsupported
17047      shrext_cmds=.dll
17048      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17049	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17050	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17051	$ECHO EXPORTS >> $output_objdir/$libname.def~
17052	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17053	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17054	emximp -o $lib $output_objdir/$libname.def'
17055      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17056	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17057	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17058	$ECHO EXPORTS >> $output_objdir/$libname.def~
17059	prefix_cmds="$SED"~
17060	if test EXPORTS = "`$SED 1q $export_symbols`"; then
17061	  prefix_cmds="$prefix_cmds -e 1d";
17062	fi~
17063	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17064	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17065	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17066	emximp -o $lib $output_objdir/$libname.def'
17067      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17068      enable_shared_with_static_runtimes=yes
17069      ;;
17070
17071    osf3*)
17072      if test yes = "$GCC"; then
17073	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17074	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'
17075      else
17076	allow_undefined_flag=' -expect_unresolved \*'
17077	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'
17078      fi
17079      archive_cmds_need_lc='no'
17080      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17081      hardcode_libdir_separator=:
17082      ;;
17083
17084    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17085      if test yes = "$GCC"; then
17086	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17087	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'
17088	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17089      else
17090	allow_undefined_flag=' -expect_unresolved \*'
17091	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'
17092	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~
17093          $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'
17094
17095	# Both c and cxx compiler support -rpath directly
17096	hardcode_libdir_flag_spec='-rpath $libdir'
17097      fi
17098      archive_cmds_need_lc='no'
17099      hardcode_libdir_separator=:
17100      ;;
17101
17102    solaris*)
17103      no_undefined_flag=' -z defs'
17104      if test yes = "$GCC"; then
17105	wlarc='$wl'
17106	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17107	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17108          $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'
17109      else
17110	case `$CC -V 2>&1` in
17111	*"Compilers 5.0"*)
17112	  wlarc=''
17113	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
17114	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17115            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17116	  ;;
17117	*)
17118	  wlarc='$wl'
17119	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17120	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17121            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17122	  ;;
17123	esac
17124      fi
17125      hardcode_libdir_flag_spec='-R$libdir'
17126      hardcode_shlibpath_var=no
17127      case $host_os in
17128      solaris2.[0-5] | solaris2.[0-5].*) ;;
17129      *)
17130	# The compiler driver will combine and reorder linker options,
17131	# but understands '-z linker_flag'.  GCC discards it without '$wl',
17132	# but is careful enough not to reorder.
17133	# Supported since Solaris 2.6 (maybe 2.5.1?)
17134	if test yes = "$GCC"; then
17135	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17136	else
17137	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17138	fi
17139	;;
17140      esac
17141      link_all_deplibs=yes
17142      ;;
17143
17144    sunos4*)
17145      if test sequent = "$host_vendor"; then
17146	# Use $CC to link under sequent, because it throws in some extra .o
17147	# files that make .init and .fini sections work.
17148	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17149      else
17150	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17151      fi
17152      hardcode_libdir_flag_spec='-L$libdir'
17153      hardcode_direct=yes
17154      hardcode_minus_L=yes
17155      hardcode_shlibpath_var=no
17156      ;;
17157
17158    sysv4)
17159      case $host_vendor in
17160	sni)
17161	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17162	  hardcode_direct=yes # is this really true???
17163	;;
17164	siemens)
17165	  ## LD is ld it makes a PLAMLIB
17166	  ## CC just makes a GrossModule.
17167	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17168	  reload_cmds='$CC -r -o $output$reload_objs'
17169	  hardcode_direct=no
17170        ;;
17171	motorola)
17172	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17173	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17174	;;
17175      esac
17176      runpath_var='LD_RUN_PATH'
17177      hardcode_shlibpath_var=no
17178      ;;
17179
17180    sysv4.3*)
17181      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17182      hardcode_shlibpath_var=no
17183      export_dynamic_flag_spec='-Bexport'
17184      ;;
17185
17186    sysv4*MP*)
17187      if test -d /usr/nec; then
17188	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17189	hardcode_shlibpath_var=no
17190	runpath_var=LD_RUN_PATH
17191	hardcode_runpath_var=yes
17192	ld_shlibs=yes
17193      fi
17194      ;;
17195
17196    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17197      no_undefined_flag='$wl-z,text'
17198      archive_cmds_need_lc=no
17199      hardcode_shlibpath_var=no
17200      runpath_var='LD_RUN_PATH'
17201
17202      if test yes = "$GCC"; then
17203	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17204	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17205      else
17206	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17207	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17208      fi
17209      ;;
17210
17211    sysv5* | sco3.2v5* | sco5v6*)
17212      # Note: We CANNOT use -z defs as we might desire, because we do not
17213      # link with -lc, and that would cause any symbols used from libc to
17214      # always be unresolved, which means just about no library would
17215      # ever link correctly.  If we're not using GNU ld we use -z text
17216      # though, which does catch some bad symbols but isn't as heavy-handed
17217      # as -z defs.
17218      no_undefined_flag='$wl-z,text'
17219      allow_undefined_flag='$wl-z,nodefs'
17220      archive_cmds_need_lc=no
17221      hardcode_shlibpath_var=no
17222      hardcode_libdir_flag_spec='$wl-R,$libdir'
17223      hardcode_libdir_separator=':'
17224      link_all_deplibs=yes
17225      export_dynamic_flag_spec='$wl-Bexport'
17226      runpath_var='LD_RUN_PATH'
17227
17228      if test yes = "$GCC"; then
17229	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17230	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17231      else
17232	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17233	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17234      fi
17235      ;;
17236
17237    uts4*)
17238      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17239      hardcode_libdir_flag_spec='-L$libdir'
17240      hardcode_shlibpath_var=no
17241      ;;
17242
17243    *)
17244      ld_shlibs=no
17245      ;;
17246    esac
17247
17248    if test sni = "$host_vendor"; then
17249      case $host in
17250      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17251	export_dynamic_flag_spec='$wl-Blargedynsym'
17252	;;
17253      esac
17254    fi
17255  fi
17256
17257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17258$as_echo "$ld_shlibs" >&6; }
17259test no = "$ld_shlibs" && can_build_shared=no
17260
17261with_gnu_ld=$with_gnu_ld
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277#
17278# Do we need to explicitly link libc?
17279#
17280case "x$archive_cmds_need_lc" in
17281x|xyes)
17282  # Assume -lc should be added
17283  archive_cmds_need_lc=yes
17284
17285  if test yes,yes = "$GCC,$enable_shared"; then
17286    case $archive_cmds in
17287    *'~'*)
17288      # FIXME: we may have to deal with multi-command sequences.
17289      ;;
17290    '$CC '*)
17291      # Test whether the compiler implicitly links with -lc since on some
17292      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17293      # to ld, don't add -lc before -lgcc.
17294      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17295$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17296if ${lt_cv_archive_cmds_need_lc+:} false; then :
17297  $as_echo_n "(cached) " >&6
17298else
17299  $RM conftest*
17300	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17301
17302	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17303  (eval $ac_compile) 2>&5
17304  ac_status=$?
17305  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17306  test $ac_status = 0; } 2>conftest.err; then
17307	  soname=conftest
17308	  lib=conftest
17309	  libobjs=conftest.$ac_objext
17310	  deplibs=
17311	  wl=$lt_prog_compiler_wl
17312	  pic_flag=$lt_prog_compiler_pic
17313	  compiler_flags=-v
17314	  linker_flags=-v
17315	  verstring=
17316	  output_objdir=.
17317	  libname=conftest
17318	  lt_save_allow_undefined_flag=$allow_undefined_flag
17319	  allow_undefined_flag=
17320	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17321  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17322  ac_status=$?
17323  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17324  test $ac_status = 0; }
17325	  then
17326	    lt_cv_archive_cmds_need_lc=no
17327	  else
17328	    lt_cv_archive_cmds_need_lc=yes
17329	  fi
17330	  allow_undefined_flag=$lt_save_allow_undefined_flag
17331	else
17332	  cat conftest.err 1>&5
17333	fi
17334	$RM conftest*
17335
17336fi
17337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17338$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17339      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17340      ;;
17341    esac
17342  fi
17343  ;;
17344esac
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17498$as_echo_n "checking dynamic linker characteristics... " >&6; }
17499
17500if test yes = "$GCC"; then
17501  case $host_os in
17502    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
17503    *) lt_awk_arg='/^libraries:/' ;;
17504  esac
17505  case $host_os in
17506    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
17507    *) lt_sed_strip_eq='s|=/|/|g' ;;
17508  esac
17509  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17510  case $lt_search_path_spec in
17511  *\;*)
17512    # if the path contains ";" then we assume it to be the separator
17513    # otherwise default to the standard path separator (i.e. ":") - it is
17514    # assumed that no part of a normal pathname contains ";" but that should
17515    # okay in the real world where ";" in dirpaths is itself problematic.
17516    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17517    ;;
17518  *)
17519    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17520    ;;
17521  esac
17522  # Ok, now we have the path, separated by spaces, we can step through it
17523  # and add multilib dir if necessary...
17524  lt_tmp_lt_search_path_spec=
17525  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17526  # ...but if some path component already ends with the multilib dir we assume
17527  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
17528  case "$lt_multi_os_dir; $lt_search_path_spec " in
17529  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
17530    lt_multi_os_dir=
17531    ;;
17532  esac
17533  for lt_sys_path in $lt_search_path_spec; do
17534    if test -d "$lt_sys_path$lt_multi_os_dir"; then
17535      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
17536    elif test -n "$lt_multi_os_dir"; then
17537      test -d "$lt_sys_path" && \
17538	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17539    fi
17540  done
17541  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17542BEGIN {RS = " "; FS = "/|\n";} {
17543  lt_foo = "";
17544  lt_count = 0;
17545  for (lt_i = NF; lt_i > 0; lt_i--) {
17546    if ($lt_i != "" && $lt_i != ".") {
17547      if ($lt_i == "..") {
17548        lt_count++;
17549      } else {
17550        if (lt_count == 0) {
17551          lt_foo = "/" $lt_i lt_foo;
17552        } else {
17553          lt_count--;
17554        }
17555      }
17556    }
17557  }
17558  if (lt_foo != "") { lt_freq[lt_foo]++; }
17559  if (lt_freq[lt_foo] == 1) { print lt_foo; }
17560}'`
17561  # AWK program above erroneously prepends '/' to C:/dos/paths
17562  # for these hosts.
17563  case $host_os in
17564    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17565      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
17566  esac
17567  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17568else
17569  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17570fi
17571library_names_spec=
17572libname_spec='lib$name'
17573soname_spec=
17574shrext_cmds=.so
17575postinstall_cmds=
17576postuninstall_cmds=
17577finish_cmds=
17578finish_eval=
17579shlibpath_var=
17580shlibpath_overrides_runpath=unknown
17581version_type=none
17582dynamic_linker="$host_os ld.so"
17583sys_lib_dlsearch_path_spec="/lib /usr/lib"
17584need_lib_prefix=unknown
17585hardcode_into_libs=no
17586
17587# when you set need_version to no, make sure it does not cause -set_version
17588# flags to be left without arguments
17589need_version=unknown
17590
17591
17592
17593case $host_os in
17594aix3*)
17595  version_type=linux # correct to gnu/linux during the next big refactor
17596  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17597  shlibpath_var=LIBPATH
17598
17599  # AIX 3 has no versioning support, so we append a major version to the name.
17600  soname_spec='$libname$release$shared_ext$major'
17601  ;;
17602
17603aix[4-9]*)
17604  version_type=linux # correct to gnu/linux during the next big refactor
17605  need_lib_prefix=no
17606  need_version=no
17607  hardcode_into_libs=yes
17608  if test ia64 = "$host_cpu"; then
17609    # AIX 5 supports IA64
17610    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17611    shlibpath_var=LD_LIBRARY_PATH
17612  else
17613    # With GCC up to 2.95.x, collect2 would create an import file
17614    # for dependence libraries.  The import file would start with
17615    # the line '#! .'.  This would cause the generated library to
17616    # depend on '.', always an invalid library.  This was fixed in
17617    # development snapshots of GCC prior to 3.0.
17618    case $host_os in
17619      aix4 | aix4.[01] | aix4.[01].*)
17620      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17621	   echo ' yes '
17622	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17623	:
17624      else
17625	can_build_shared=no
17626      fi
17627      ;;
17628    esac
17629    # Using Import Files as archive members, it is possible to support
17630    # filename-based versioning of shared library archives on AIX. While
17631    # this would work for both with and without runtime linking, it will
17632    # prevent static linking of such archives. So we do filename-based
17633    # shared library versioning with .so extension only, which is used
17634    # when both runtime linking and shared linking is enabled.
17635    # Unfortunately, runtime linking may impact performance, so we do
17636    # not want this to be the default eventually. Also, we use the
17637    # versioned .so libs for executables only if there is the -brtl
17638    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17639    # To allow for filename-based versioning support, we need to create
17640    # libNAME.so.V as an archive file, containing:
17641    # *) an Import File, referring to the versioned filename of the
17642    #    archive as well as the shared archive member, telling the
17643    #    bitwidth (32 or 64) of that shared object, and providing the
17644    #    list of exported symbols of that shared object, eventually
17645    #    decorated with the 'weak' keyword
17646    # *) the shared object with the F_LOADONLY flag set, to really avoid
17647    #    it being seen by the linker.
17648    # At run time we better use the real file rather than another symlink,
17649    # but for link time we create the symlink libNAME.so -> libNAME.so.V
17650
17651    case $with_aix_soname,$aix_use_runtimelinking in
17652    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17653    # soname into executable. Probably we can add versioning support to
17654    # collect2, so additional links can be useful in future.
17655    aix,yes) # traditional libtool
17656      dynamic_linker='AIX unversionable lib.so'
17657      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17658      # instead of lib<name>.a to let people know that these are not
17659      # typical AIX shared libraries.
17660      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17661      ;;
17662    aix,no) # traditional AIX only
17663      dynamic_linker='AIX lib.a(lib.so.V)'
17664      # We preserve .a as extension for shared libraries through AIX4.2
17665      # and later when we are not doing run time linking.
17666      library_names_spec='$libname$release.a $libname.a'
17667      soname_spec='$libname$release$shared_ext$major'
17668      ;;
17669    svr4,*) # full svr4 only
17670      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17671      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17672      # We do not specify a path in Import Files, so LIBPATH fires.
17673      shlibpath_overrides_runpath=yes
17674      ;;
17675    *,yes) # both, prefer svr4
17676      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17677      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17678      # unpreferred sharedlib libNAME.a needs extra handling
17679      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
17680      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
17681      # We do not specify a path in Import Files, so LIBPATH fires.
17682      shlibpath_overrides_runpath=yes
17683      ;;
17684    *,no) # both, prefer aix
17685      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17686      library_names_spec='$libname$release.a $libname.a'
17687      soname_spec='$libname$release$shared_ext$major'
17688      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17689      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
17690      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
17691      ;;
17692    esac
17693    shlibpath_var=LIBPATH
17694  fi
17695  ;;
17696
17697amigaos*)
17698  case $host_cpu in
17699  powerpc)
17700    # Since July 2007 AmigaOS4 officially supports .so libraries.
17701    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17702    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17703    ;;
17704  m68k)
17705    library_names_spec='$libname.ixlibrary $libname.a'
17706    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17707    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17708    ;;
17709  esac
17710  ;;
17711
17712beos*)
17713  library_names_spec='$libname$shared_ext'
17714  dynamic_linker="$host_os ld.so"
17715  shlibpath_var=LIBRARY_PATH
17716  ;;
17717
17718bsdi[45]*)
17719  version_type=linux # correct to gnu/linux during the next big refactor
17720  need_version=no
17721  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17722  soname_spec='$libname$release$shared_ext$major'
17723  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17724  shlibpath_var=LD_LIBRARY_PATH
17725  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17726  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17727  # the default ld.so.conf also contains /usr/contrib/lib and
17728  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17729  # libtool to hard-code these into programs
17730  ;;
17731
17732cygwin* | mingw* | pw32* | cegcc*)
17733  version_type=windows
17734  shrext_cmds=.dll
17735  need_version=no
17736  need_lib_prefix=no
17737
17738  case $GCC,$cc_basename in
17739  yes,*)
17740    # gcc
17741    library_names_spec='$libname.dll.a'
17742    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17743    postinstall_cmds='base_file=`basename \$file`~
17744      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17745      dldir=$destdir/`dirname \$dlpath`~
17746      test -d \$dldir || mkdir -p \$dldir~
17747      $install_prog $dir/$dlname \$dldir/$dlname~
17748      chmod a+x \$dldir/$dlname~
17749      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17750        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17751      fi'
17752    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17753      dlpath=$dir/\$dldll~
17754       $RM \$dlpath'
17755    shlibpath_overrides_runpath=yes
17756
17757    case $host_os in
17758    cygwin*)
17759      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17760      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17761
17762      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17763      ;;
17764    mingw* | cegcc*)
17765      # MinGW DLLs use traditional 'lib' prefix
17766      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17767      ;;
17768    pw32*)
17769      # pw32 DLLs use 'pw' prefix rather than 'lib'
17770      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17771      ;;
17772    esac
17773    dynamic_linker='Win32 ld.exe'
17774    ;;
17775
17776  *,cl*)
17777    # Native MSVC
17778    libname_spec='$name'
17779    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17780    library_names_spec='$libname.dll.lib'
17781
17782    case $build_os in
17783    mingw*)
17784      sys_lib_search_path_spec=
17785      lt_save_ifs=$IFS
17786      IFS=';'
17787      for lt_path in $LIB
17788      do
17789        IFS=$lt_save_ifs
17790        # Let DOS variable expansion print the short 8.3 style file name.
17791        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17792        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17793      done
17794      IFS=$lt_save_ifs
17795      # Convert to MSYS style.
17796      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17797      ;;
17798    cygwin*)
17799      # Convert to unix form, then to dos form, then back to unix form
17800      # but this time dos style (no spaces!) so that the unix form looks
17801      # like /cygdrive/c/PROGRA~1:/cygdr...
17802      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17803      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17804      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17805      ;;
17806    *)
17807      sys_lib_search_path_spec=$LIB
17808      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17809        # It is most probably a Windows format PATH.
17810        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17811      else
17812        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17813      fi
17814      # FIXME: find the short name or the path components, as spaces are
17815      # common. (e.g. "Program Files" -> "PROGRA~1")
17816      ;;
17817    esac
17818
17819    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17820    postinstall_cmds='base_file=`basename \$file`~
17821      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17822      dldir=$destdir/`dirname \$dlpath`~
17823      test -d \$dldir || mkdir -p \$dldir~
17824      $install_prog $dir/$dlname \$dldir/$dlname'
17825    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17826      dlpath=$dir/\$dldll~
17827       $RM \$dlpath'
17828    shlibpath_overrides_runpath=yes
17829    dynamic_linker='Win32 link.exe'
17830    ;;
17831
17832  *)
17833    # Assume MSVC wrapper
17834    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17835    dynamic_linker='Win32 ld.exe'
17836    ;;
17837  esac
17838  # FIXME: first we should search . and the directory the executable is in
17839  shlibpath_var=PATH
17840  ;;
17841
17842darwin* | rhapsody*)
17843  dynamic_linker="$host_os dyld"
17844  version_type=darwin
17845  need_lib_prefix=no
17846  need_version=no
17847  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17848  soname_spec='$libname$release$major$shared_ext'
17849  shlibpath_overrides_runpath=yes
17850  shlibpath_var=DYLD_LIBRARY_PATH
17851  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17852
17853  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17854  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17855  ;;
17856
17857dgux*)
17858  version_type=linux # correct to gnu/linux during the next big refactor
17859  need_lib_prefix=no
17860  need_version=no
17861  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17862  soname_spec='$libname$release$shared_ext$major'
17863  shlibpath_var=LD_LIBRARY_PATH
17864  ;;
17865
17866freebsd* | dragonfly*)
17867  # DragonFly does not have aout.  When/if they implement a new
17868  # versioning mechanism, adjust this.
17869  if test -x /usr/bin/objformat; then
17870    objformat=`/usr/bin/objformat`
17871  else
17872    case $host_os in
17873    freebsd[23].*) objformat=aout ;;
17874    *) objformat=elf ;;
17875    esac
17876  fi
17877  version_type=freebsd-$objformat
17878  case $version_type in
17879    freebsd-elf*)
17880      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17881      soname_spec='$libname$release$shared_ext$major'
17882      need_version=no
17883      need_lib_prefix=no
17884      ;;
17885    freebsd-*)
17886      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17887      need_version=yes
17888      ;;
17889  esac
17890  shlibpath_var=LD_LIBRARY_PATH
17891  case $host_os in
17892  freebsd2.*)
17893    shlibpath_overrides_runpath=yes
17894    ;;
17895  freebsd3.[01]* | freebsdelf3.[01]*)
17896    shlibpath_overrides_runpath=yes
17897    hardcode_into_libs=yes
17898    ;;
17899  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17900  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17901    shlibpath_overrides_runpath=no
17902    hardcode_into_libs=yes
17903    ;;
17904  *) # from 4.6 on, and DragonFly
17905    shlibpath_overrides_runpath=yes
17906    hardcode_into_libs=yes
17907    ;;
17908  esac
17909  ;;
17910
17911haiku*)
17912  version_type=linux # correct to gnu/linux during the next big refactor
17913  need_lib_prefix=no
17914  need_version=no
17915  dynamic_linker="$host_os runtime_loader"
17916  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17917  soname_spec='$libname$release$shared_ext$major'
17918  shlibpath_var=LIBRARY_PATH
17919  shlibpath_overrides_runpath=no
17920  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17921  hardcode_into_libs=yes
17922  ;;
17923
17924hpux9* | hpux10* | hpux11*)
17925  # Give a soname corresponding to the major version so that dld.sl refuses to
17926  # link against other versions.
17927  version_type=sunos
17928  need_lib_prefix=no
17929  need_version=no
17930  case $host_cpu in
17931  ia64*)
17932    shrext_cmds='.so'
17933    hardcode_into_libs=yes
17934    dynamic_linker="$host_os dld.so"
17935    shlibpath_var=LD_LIBRARY_PATH
17936    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17937    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17938    soname_spec='$libname$release$shared_ext$major'
17939    if test 32 = "$HPUX_IA64_MODE"; then
17940      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17941      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17942    else
17943      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17944      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17945    fi
17946    ;;
17947  hppa*64*)
17948    shrext_cmds='.sl'
17949    hardcode_into_libs=yes
17950    dynamic_linker="$host_os dld.sl"
17951    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17952    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17953    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17954    soname_spec='$libname$release$shared_ext$major'
17955    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17956    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17957    ;;
17958  *)
17959    shrext_cmds='.sl'
17960    dynamic_linker="$host_os dld.sl"
17961    shlibpath_var=SHLIB_PATH
17962    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17963    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17964    soname_spec='$libname$release$shared_ext$major'
17965    ;;
17966  esac
17967  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17968  postinstall_cmds='chmod 555 $lib'
17969  # or fails outright, so override atomically:
17970  install_override_mode=555
17971  ;;
17972
17973interix[3-9]*)
17974  version_type=linux # correct to gnu/linux during the next big refactor
17975  need_lib_prefix=no
17976  need_version=no
17977  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17978  soname_spec='$libname$release$shared_ext$major'
17979  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17980  shlibpath_var=LD_LIBRARY_PATH
17981  shlibpath_overrides_runpath=no
17982  hardcode_into_libs=yes
17983  ;;
17984
17985irix5* | irix6* | nonstopux*)
17986  case $host_os in
17987    nonstopux*) version_type=nonstopux ;;
17988    *)
17989	if test yes = "$lt_cv_prog_gnu_ld"; then
17990		version_type=linux # correct to gnu/linux during the next big refactor
17991	else
17992		version_type=irix
17993	fi ;;
17994  esac
17995  need_lib_prefix=no
17996  need_version=no
17997  soname_spec='$libname$release$shared_ext$major'
17998  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17999  case $host_os in
18000  irix5* | nonstopux*)
18001    libsuff= shlibsuff=
18002    ;;
18003  *)
18004    case $LD in # libtool.m4 will add one of these switches to LD
18005    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18006      libsuff= shlibsuff= libmagic=32-bit;;
18007    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18008      libsuff=32 shlibsuff=N32 libmagic=N32;;
18009    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18010      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18011    *) libsuff= shlibsuff= libmagic=never-match;;
18012    esac
18013    ;;
18014  esac
18015  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18016  shlibpath_overrides_runpath=no
18017  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18018  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18019  hardcode_into_libs=yes
18020  ;;
18021
18022# No shared lib support for Linux oldld, aout, or coff.
18023linux*oldld* | linux*aout* | linux*coff*)
18024  dynamic_linker=no
18025  ;;
18026
18027linux*android*)
18028  version_type=none # Android doesn't support versioned libraries.
18029  need_lib_prefix=no
18030  need_version=no
18031  library_names_spec='$libname$release$shared_ext'
18032  soname_spec='$libname$release$shared_ext'
18033  finish_cmds=
18034  shlibpath_var=LD_LIBRARY_PATH
18035  shlibpath_overrides_runpath=yes
18036
18037  # This implies no fast_install, which is unacceptable.
18038  # Some rework will be needed to allow for fast_install
18039  # before this can be enabled.
18040  hardcode_into_libs=yes
18041
18042  dynamic_linker='Android linker'
18043  # Don't embed -rpath directories since the linker doesn't support them.
18044  hardcode_libdir_flag_spec='-L$libdir'
18045  ;;
18046
18047# This must be glibc/ELF.
18048linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18049  version_type=linux # correct to gnu/linux during the next big refactor
18050  need_lib_prefix=no
18051  need_version=no
18052  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18053  soname_spec='$libname$release$shared_ext$major'
18054  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18055  shlibpath_var=LD_LIBRARY_PATH
18056  shlibpath_overrides_runpath=no
18057
18058  # Some binutils ld are patched to set DT_RUNPATH
18059  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18060  $as_echo_n "(cached) " >&6
18061else
18062  lt_cv_shlibpath_overrides_runpath=no
18063    save_LDFLAGS=$LDFLAGS
18064    save_libdir=$libdir
18065    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18066	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18067    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18068/* end confdefs.h.  */
18069
18070int
18071main ()
18072{
18073
18074  ;
18075  return 0;
18076}
18077_ACEOF
18078if ac_fn_c_try_link "$LINENO"; then :
18079  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18080  lt_cv_shlibpath_overrides_runpath=yes
18081fi
18082fi
18083rm -f core conftest.err conftest.$ac_objext \
18084    conftest$ac_exeext conftest.$ac_ext
18085    LDFLAGS=$save_LDFLAGS
18086    libdir=$save_libdir
18087
18088fi
18089
18090  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18091
18092  # This implies no fast_install, which is unacceptable.
18093  # Some rework will be needed to allow for fast_install
18094  # before this can be enabled.
18095  hardcode_into_libs=yes
18096
18097  # Ideally, we could use ldconfig to report *all* directores which are
18098  # searched for libraries, however this is still not possible.  Aside from not
18099  # being certain /sbin/ldconfig is available, command
18100  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18101  # even though it is searched at run-time.  Try to do the best guess by
18102  # appending ld.so.conf contents (and includes) to the search path.
18103  if test -f /etc/ld.so.conf; then
18104    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' ' '`
18105    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18106  fi
18107
18108  # We used to test for /lib/ld.so.1 and disable shared libraries on
18109  # powerpc, because MkLinux only supported shared libraries with the
18110  # GNU dynamic linker.  Since this was broken with cross compilers,
18111  # most powerpc-linux boxes support dynamic linking these days and
18112  # people can always --disable-shared, the test was removed, and we
18113  # assume the GNU/Linux dynamic linker is in use.
18114  dynamic_linker='GNU/Linux ld.so'
18115  ;;
18116
18117netbsd*)
18118  version_type=sunos
18119  need_lib_prefix=no
18120  need_version=no
18121  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18122    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18123    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18124    dynamic_linker='NetBSD (a.out) ld.so'
18125  else
18126    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18127    soname_spec='$libname$release$shared_ext$major'
18128    dynamic_linker='NetBSD ld.elf_so'
18129  fi
18130  shlibpath_var=LD_LIBRARY_PATH
18131  shlibpath_overrides_runpath=yes
18132  hardcode_into_libs=yes
18133  ;;
18134
18135newsos6)
18136  version_type=linux # correct to gnu/linux during the next big refactor
18137  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18138  shlibpath_var=LD_LIBRARY_PATH
18139  shlibpath_overrides_runpath=yes
18140  ;;
18141
18142*nto* | *qnx*)
18143  version_type=qnx
18144  need_lib_prefix=no
18145  need_version=no
18146  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18147  soname_spec='$libname$release$shared_ext$major'
18148  shlibpath_var=LD_LIBRARY_PATH
18149  shlibpath_overrides_runpath=no
18150  hardcode_into_libs=yes
18151  dynamic_linker='ldqnx.so'
18152  ;;
18153
18154openbsd* | bitrig*)
18155  version_type=sunos
18156  sys_lib_dlsearch_path_spec=/usr/lib
18157  need_lib_prefix=no
18158  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18159    need_version=no
18160  else
18161    need_version=yes
18162  fi
18163  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18164  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18165  shlibpath_var=LD_LIBRARY_PATH
18166  shlibpath_overrides_runpath=yes
18167  ;;
18168
18169os2*)
18170  libname_spec='$name'
18171  version_type=windows
18172  shrext_cmds=.dll
18173  need_version=no
18174  need_lib_prefix=no
18175  # OS/2 can only load a DLL with a base name of 8 characters or less.
18176  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18177    v=$($ECHO $release$versuffix | tr -d .-);
18178    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18179    $ECHO $n$v`$shared_ext'
18180  library_names_spec='${libname}_dll.$libext'
18181  dynamic_linker='OS/2 ld.exe'
18182  shlibpath_var=BEGINLIBPATH
18183  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18184  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18185  postinstall_cmds='base_file=`basename \$file`~
18186    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18187    dldir=$destdir/`dirname \$dlpath`~
18188    test -d \$dldir || mkdir -p \$dldir~
18189    $install_prog $dir/$dlname \$dldir/$dlname~
18190    chmod a+x \$dldir/$dlname~
18191    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18192      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18193    fi'
18194  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18195    dlpath=$dir/\$dldll~
18196    $RM \$dlpath'
18197  ;;
18198
18199osf3* | osf4* | osf5*)
18200  version_type=osf
18201  need_lib_prefix=no
18202  need_version=no
18203  soname_spec='$libname$release$shared_ext$major'
18204  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18205  shlibpath_var=LD_LIBRARY_PATH
18206  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18207  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18208  ;;
18209
18210rdos*)
18211  dynamic_linker=no
18212  ;;
18213
18214solaris*)
18215  version_type=linux # correct to gnu/linux during the next big refactor
18216  need_lib_prefix=no
18217  need_version=no
18218  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18219  soname_spec='$libname$release$shared_ext$major'
18220  shlibpath_var=LD_LIBRARY_PATH
18221  shlibpath_overrides_runpath=yes
18222  hardcode_into_libs=yes
18223  # ldd complains unless libraries are executable
18224  postinstall_cmds='chmod +x $lib'
18225  ;;
18226
18227sunos4*)
18228  version_type=sunos
18229  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18230  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18231  shlibpath_var=LD_LIBRARY_PATH
18232  shlibpath_overrides_runpath=yes
18233  if test yes = "$with_gnu_ld"; then
18234    need_lib_prefix=no
18235  fi
18236  need_version=yes
18237  ;;
18238
18239sysv4 | sysv4.3*)
18240  version_type=linux # correct to gnu/linux during the next big refactor
18241  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18242  soname_spec='$libname$release$shared_ext$major'
18243  shlibpath_var=LD_LIBRARY_PATH
18244  case $host_vendor in
18245    sni)
18246      shlibpath_overrides_runpath=no
18247      need_lib_prefix=no
18248      runpath_var=LD_RUN_PATH
18249      ;;
18250    siemens)
18251      need_lib_prefix=no
18252      ;;
18253    motorola)
18254      need_lib_prefix=no
18255      need_version=no
18256      shlibpath_overrides_runpath=no
18257      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18258      ;;
18259  esac
18260  ;;
18261
18262sysv4*MP*)
18263  if test -d /usr/nec; then
18264    version_type=linux # correct to gnu/linux during the next big refactor
18265    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18266    soname_spec='$libname$shared_ext.$major'
18267    shlibpath_var=LD_LIBRARY_PATH
18268  fi
18269  ;;
18270
18271sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18272  version_type=sco
18273  need_lib_prefix=no
18274  need_version=no
18275  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18276  soname_spec='$libname$release$shared_ext$major'
18277  shlibpath_var=LD_LIBRARY_PATH
18278  shlibpath_overrides_runpath=yes
18279  hardcode_into_libs=yes
18280  if test yes = "$with_gnu_ld"; then
18281    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18282  else
18283    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18284    case $host_os in
18285      sco3.2v5*)
18286        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18287	;;
18288    esac
18289  fi
18290  sys_lib_dlsearch_path_spec='/usr/lib'
18291  ;;
18292
18293tpf*)
18294  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18295  version_type=linux # correct to gnu/linux during the next big refactor
18296  need_lib_prefix=no
18297  need_version=no
18298  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18299  shlibpath_var=LD_LIBRARY_PATH
18300  shlibpath_overrides_runpath=no
18301  hardcode_into_libs=yes
18302  ;;
18303
18304uts4*)
18305  version_type=linux # correct to gnu/linux during the next big refactor
18306  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18307  soname_spec='$libname$release$shared_ext$major'
18308  shlibpath_var=LD_LIBRARY_PATH
18309  ;;
18310
18311*)
18312  dynamic_linker=no
18313  ;;
18314esac
18315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18316$as_echo "$dynamic_linker" >&6; }
18317test no = "$dynamic_linker" && can_build_shared=no
18318
18319variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18320if test yes = "$GCC"; then
18321  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18322fi
18323
18324if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18325  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18326fi
18327
18328if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18329  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18330fi
18331
18332# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18333configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18334
18335# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18336func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18337
18338# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18339configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18438$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18439hardcode_action=
18440if test -n "$hardcode_libdir_flag_spec" ||
18441   test -n "$runpath_var" ||
18442   test yes = "$hardcode_automatic"; then
18443
18444  # We can hardcode non-existent directories.
18445  if test no != "$hardcode_direct" &&
18446     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18447     # have to relink, otherwise we might link with an installed library
18448     # when we should be linking with a yet-to-be-installed one
18449     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
18450     test no != "$hardcode_minus_L"; then
18451    # Linking always hardcodes the temporary library directory.
18452    hardcode_action=relink
18453  else
18454    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18455    hardcode_action=immediate
18456  fi
18457else
18458  # We cannot hardcode anything, or else we can only hardcode existing
18459  # directories.
18460  hardcode_action=unsupported
18461fi
18462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18463$as_echo "$hardcode_action" >&6; }
18464
18465if test relink = "$hardcode_action" ||
18466   test yes = "$inherit_rpath"; then
18467  # Fast installation is not supported
18468  enable_fast_install=no
18469elif test yes = "$shlibpath_overrides_runpath" ||
18470     test no = "$enable_shared"; then
18471  # Fast installation is not necessary
18472  enable_fast_install=needless
18473fi
18474
18475
18476
18477
18478
18479
18480  if test yes != "$enable_dlopen"; then
18481  enable_dlopen=unknown
18482  enable_dlopen_self=unknown
18483  enable_dlopen_self_static=unknown
18484else
18485  lt_cv_dlopen=no
18486  lt_cv_dlopen_libs=
18487
18488  case $host_os in
18489  beos*)
18490    lt_cv_dlopen=load_add_on
18491    lt_cv_dlopen_libs=
18492    lt_cv_dlopen_self=yes
18493    ;;
18494
18495  mingw* | pw32* | cegcc*)
18496    lt_cv_dlopen=LoadLibrary
18497    lt_cv_dlopen_libs=
18498    ;;
18499
18500  cygwin*)
18501    lt_cv_dlopen=dlopen
18502    lt_cv_dlopen_libs=
18503    ;;
18504
18505  darwin*)
18506    # if libdl is installed we need to link against it
18507    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18508$as_echo_n "checking for dlopen in -ldl... " >&6; }
18509if ${ac_cv_lib_dl_dlopen+:} false; then :
18510  $as_echo_n "(cached) " >&6
18511else
18512  ac_check_lib_save_LIBS=$LIBS
18513LIBS="-ldl  $LIBS"
18514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18515/* end confdefs.h.  */
18516
18517/* Override any GCC internal prototype to avoid an error.
18518   Use char because int might match the return type of a GCC
18519   builtin and then its argument prototype would still apply.  */
18520#ifdef __cplusplus
18521extern "C"
18522#endif
18523char dlopen ();
18524int
18525main ()
18526{
18527return dlopen ();
18528  ;
18529  return 0;
18530}
18531_ACEOF
18532if ac_fn_c_try_link "$LINENO"; then :
18533  ac_cv_lib_dl_dlopen=yes
18534else
18535  ac_cv_lib_dl_dlopen=no
18536fi
18537rm -f core conftest.err conftest.$ac_objext \
18538    conftest$ac_exeext conftest.$ac_ext
18539LIBS=$ac_check_lib_save_LIBS
18540fi
18541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18542$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18543if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18544  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18545else
18546
18547    lt_cv_dlopen=dyld
18548    lt_cv_dlopen_libs=
18549    lt_cv_dlopen_self=yes
18550
18551fi
18552
18553    ;;
18554
18555  tpf*)
18556    # Don't try to run any link tests for TPF.  We know it's impossible
18557    # because TPF is a cross-compiler, and we know how we open DSOs.
18558    lt_cv_dlopen=dlopen
18559    lt_cv_dlopen_libs=
18560    lt_cv_dlopen_self=no
18561    ;;
18562
18563  *)
18564    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18565if test "x$ac_cv_func_shl_load" = xyes; then :
18566  lt_cv_dlopen=shl_load
18567else
18568  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18569$as_echo_n "checking for shl_load in -ldld... " >&6; }
18570if ${ac_cv_lib_dld_shl_load+:} false; then :
18571  $as_echo_n "(cached) " >&6
18572else
18573  ac_check_lib_save_LIBS=$LIBS
18574LIBS="-ldld  $LIBS"
18575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18576/* end confdefs.h.  */
18577
18578/* Override any GCC internal prototype to avoid an error.
18579   Use char because int might match the return type of a GCC
18580   builtin and then its argument prototype would still apply.  */
18581#ifdef __cplusplus
18582extern "C"
18583#endif
18584char shl_load ();
18585int
18586main ()
18587{
18588return shl_load ();
18589  ;
18590  return 0;
18591}
18592_ACEOF
18593if ac_fn_c_try_link "$LINENO"; then :
18594  ac_cv_lib_dld_shl_load=yes
18595else
18596  ac_cv_lib_dld_shl_load=no
18597fi
18598rm -f core conftest.err conftest.$ac_objext \
18599    conftest$ac_exeext conftest.$ac_ext
18600LIBS=$ac_check_lib_save_LIBS
18601fi
18602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18603$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18604if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18605  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
18606else
18607  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18608if test "x$ac_cv_func_dlopen" = xyes; then :
18609  lt_cv_dlopen=dlopen
18610else
18611  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18612$as_echo_n "checking for dlopen in -ldl... " >&6; }
18613if ${ac_cv_lib_dl_dlopen+:} false; then :
18614  $as_echo_n "(cached) " >&6
18615else
18616  ac_check_lib_save_LIBS=$LIBS
18617LIBS="-ldl  $LIBS"
18618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18619/* end confdefs.h.  */
18620
18621/* Override any GCC internal prototype to avoid an error.
18622   Use char because int might match the return type of a GCC
18623   builtin and then its argument prototype would still apply.  */
18624#ifdef __cplusplus
18625extern "C"
18626#endif
18627char dlopen ();
18628int
18629main ()
18630{
18631return dlopen ();
18632  ;
18633  return 0;
18634}
18635_ACEOF
18636if ac_fn_c_try_link "$LINENO"; then :
18637  ac_cv_lib_dl_dlopen=yes
18638else
18639  ac_cv_lib_dl_dlopen=no
18640fi
18641rm -f core conftest.err conftest.$ac_objext \
18642    conftest$ac_exeext conftest.$ac_ext
18643LIBS=$ac_check_lib_save_LIBS
18644fi
18645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18646$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18647if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18648  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18649else
18650  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18651$as_echo_n "checking for dlopen in -lsvld... " >&6; }
18652if ${ac_cv_lib_svld_dlopen+:} false; then :
18653  $as_echo_n "(cached) " >&6
18654else
18655  ac_check_lib_save_LIBS=$LIBS
18656LIBS="-lsvld  $LIBS"
18657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18658/* end confdefs.h.  */
18659
18660/* Override any GCC internal prototype to avoid an error.
18661   Use char because int might match the return type of a GCC
18662   builtin and then its argument prototype would still apply.  */
18663#ifdef __cplusplus
18664extern "C"
18665#endif
18666char dlopen ();
18667int
18668main ()
18669{
18670return dlopen ();
18671  ;
18672  return 0;
18673}
18674_ACEOF
18675if ac_fn_c_try_link "$LINENO"; then :
18676  ac_cv_lib_svld_dlopen=yes
18677else
18678  ac_cv_lib_svld_dlopen=no
18679fi
18680rm -f core conftest.err conftest.$ac_objext \
18681    conftest$ac_exeext conftest.$ac_ext
18682LIBS=$ac_check_lib_save_LIBS
18683fi
18684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18685$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18686if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18687  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18688else
18689  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18690$as_echo_n "checking for dld_link in -ldld... " >&6; }
18691if ${ac_cv_lib_dld_dld_link+:} false; then :
18692  $as_echo_n "(cached) " >&6
18693else
18694  ac_check_lib_save_LIBS=$LIBS
18695LIBS="-ldld  $LIBS"
18696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18697/* end confdefs.h.  */
18698
18699/* Override any GCC internal prototype to avoid an error.
18700   Use char because int might match the return type of a GCC
18701   builtin and then its argument prototype would still apply.  */
18702#ifdef __cplusplus
18703extern "C"
18704#endif
18705char dld_link ();
18706int
18707main ()
18708{
18709return dld_link ();
18710  ;
18711  return 0;
18712}
18713_ACEOF
18714if ac_fn_c_try_link "$LINENO"; then :
18715  ac_cv_lib_dld_dld_link=yes
18716else
18717  ac_cv_lib_dld_dld_link=no
18718fi
18719rm -f core conftest.err conftest.$ac_objext \
18720    conftest$ac_exeext conftest.$ac_ext
18721LIBS=$ac_check_lib_save_LIBS
18722fi
18723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18724$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18725if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18726  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18727fi
18728
18729
18730fi
18731
18732
18733fi
18734
18735
18736fi
18737
18738
18739fi
18740
18741
18742fi
18743
18744    ;;
18745  esac
18746
18747  if test no = "$lt_cv_dlopen"; then
18748    enable_dlopen=no
18749  else
18750    enable_dlopen=yes
18751  fi
18752
18753  case $lt_cv_dlopen in
18754  dlopen)
18755    save_CPPFLAGS=$CPPFLAGS
18756    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18757
18758    save_LDFLAGS=$LDFLAGS
18759    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18760
18761    save_LIBS=$LIBS
18762    LIBS="$lt_cv_dlopen_libs $LIBS"
18763
18764    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18765$as_echo_n "checking whether a program can dlopen itself... " >&6; }
18766if ${lt_cv_dlopen_self+:} false; then :
18767  $as_echo_n "(cached) " >&6
18768else
18769  	  if test yes = "$cross_compiling"; then :
18770  lt_cv_dlopen_self=cross
18771else
18772  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18773  lt_status=$lt_dlunknown
18774  cat > conftest.$ac_ext <<_LT_EOF
18775#line $LINENO "configure"
18776#include "confdefs.h"
18777
18778#if HAVE_DLFCN_H
18779#include <dlfcn.h>
18780#endif
18781
18782#include <stdio.h>
18783
18784#ifdef RTLD_GLOBAL
18785#  define LT_DLGLOBAL		RTLD_GLOBAL
18786#else
18787#  ifdef DL_GLOBAL
18788#    define LT_DLGLOBAL		DL_GLOBAL
18789#  else
18790#    define LT_DLGLOBAL		0
18791#  endif
18792#endif
18793
18794/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18795   find out it does not work in some platform. */
18796#ifndef LT_DLLAZY_OR_NOW
18797#  ifdef RTLD_LAZY
18798#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18799#  else
18800#    ifdef DL_LAZY
18801#      define LT_DLLAZY_OR_NOW		DL_LAZY
18802#    else
18803#      ifdef RTLD_NOW
18804#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18805#      else
18806#        ifdef DL_NOW
18807#          define LT_DLLAZY_OR_NOW	DL_NOW
18808#        else
18809#          define LT_DLLAZY_OR_NOW	0
18810#        endif
18811#      endif
18812#    endif
18813#  endif
18814#endif
18815
18816/* When -fvisibility=hidden is used, assume the code has been annotated
18817   correspondingly for the symbols needed.  */
18818#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18819int fnord () __attribute__((visibility("default")));
18820#endif
18821
18822int fnord () { return 42; }
18823int main ()
18824{
18825  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18826  int status = $lt_dlunknown;
18827
18828  if (self)
18829    {
18830      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18831      else
18832        {
18833	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18834          else puts (dlerror ());
18835	}
18836      /* dlclose (self); */
18837    }
18838  else
18839    puts (dlerror ());
18840
18841  return status;
18842}
18843_LT_EOF
18844  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18845  (eval $ac_link) 2>&5
18846  ac_status=$?
18847  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18848  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18849    (./conftest; exit; ) >&5 2>/dev/null
18850    lt_status=$?
18851    case x$lt_status in
18852      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18853      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18854      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18855    esac
18856  else :
18857    # compilation failed
18858    lt_cv_dlopen_self=no
18859  fi
18860fi
18861rm -fr conftest*
18862
18863
18864fi
18865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18866$as_echo "$lt_cv_dlopen_self" >&6; }
18867
18868    if test yes = "$lt_cv_dlopen_self"; then
18869      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18870      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18871$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18872if ${lt_cv_dlopen_self_static+:} false; then :
18873  $as_echo_n "(cached) " >&6
18874else
18875  	  if test yes = "$cross_compiling"; then :
18876  lt_cv_dlopen_self_static=cross
18877else
18878  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18879  lt_status=$lt_dlunknown
18880  cat > conftest.$ac_ext <<_LT_EOF
18881#line $LINENO "configure"
18882#include "confdefs.h"
18883
18884#if HAVE_DLFCN_H
18885#include <dlfcn.h>
18886#endif
18887
18888#include <stdio.h>
18889
18890#ifdef RTLD_GLOBAL
18891#  define LT_DLGLOBAL		RTLD_GLOBAL
18892#else
18893#  ifdef DL_GLOBAL
18894#    define LT_DLGLOBAL		DL_GLOBAL
18895#  else
18896#    define LT_DLGLOBAL		0
18897#  endif
18898#endif
18899
18900/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18901   find out it does not work in some platform. */
18902#ifndef LT_DLLAZY_OR_NOW
18903#  ifdef RTLD_LAZY
18904#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18905#  else
18906#    ifdef DL_LAZY
18907#      define LT_DLLAZY_OR_NOW		DL_LAZY
18908#    else
18909#      ifdef RTLD_NOW
18910#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18911#      else
18912#        ifdef DL_NOW
18913#          define LT_DLLAZY_OR_NOW	DL_NOW
18914#        else
18915#          define LT_DLLAZY_OR_NOW	0
18916#        endif
18917#      endif
18918#    endif
18919#  endif
18920#endif
18921
18922/* When -fvisibility=hidden is used, assume the code has been annotated
18923   correspondingly for the symbols needed.  */
18924#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18925int fnord () __attribute__((visibility("default")));
18926#endif
18927
18928int fnord () { return 42; }
18929int main ()
18930{
18931  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18932  int status = $lt_dlunknown;
18933
18934  if (self)
18935    {
18936      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18937      else
18938        {
18939	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18940          else puts (dlerror ());
18941	}
18942      /* dlclose (self); */
18943    }
18944  else
18945    puts (dlerror ());
18946
18947  return status;
18948}
18949_LT_EOF
18950  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18951  (eval $ac_link) 2>&5
18952  ac_status=$?
18953  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18954  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18955    (./conftest; exit; ) >&5 2>/dev/null
18956    lt_status=$?
18957    case x$lt_status in
18958      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18959      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18960      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18961    esac
18962  else :
18963    # compilation failed
18964    lt_cv_dlopen_self_static=no
18965  fi
18966fi
18967rm -fr conftest*
18968
18969
18970fi
18971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18972$as_echo "$lt_cv_dlopen_self_static" >&6; }
18973    fi
18974
18975    CPPFLAGS=$save_CPPFLAGS
18976    LDFLAGS=$save_LDFLAGS
18977    LIBS=$save_LIBS
18978    ;;
18979  esac
18980
18981  case $lt_cv_dlopen_self in
18982  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18983  *) enable_dlopen_self=unknown ;;
18984  esac
18985
18986  case $lt_cv_dlopen_self_static in
18987  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18988  *) enable_dlopen_self_static=unknown ;;
18989  esac
18990fi
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008striplib=
19009old_striplib=
19010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19011$as_echo_n "checking whether stripping libraries is possible... " >&6; }
19012if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19013  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19014  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19016$as_echo "yes" >&6; }
19017else
19018# FIXME - insert some real tests, host_os isn't really good enough
19019  case $host_os in
19020  darwin*)
19021    if test -n "$STRIP"; then
19022      striplib="$STRIP -x"
19023      old_striplib="$STRIP -S"
19024      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19025$as_echo "yes" >&6; }
19026    else
19027      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19028$as_echo "no" >&6; }
19029    fi
19030    ;;
19031  *)
19032    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19033$as_echo "no" >&6; }
19034    ;;
19035  esac
19036fi
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049  # Report what library types will actually be built
19050  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19051$as_echo_n "checking if libtool supports shared libraries... " >&6; }
19052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19053$as_echo "$can_build_shared" >&6; }
19054
19055  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19056$as_echo_n "checking whether to build shared libraries... " >&6; }
19057  test no = "$can_build_shared" && enable_shared=no
19058
19059  # On AIX, shared libraries and static libraries use the same namespace, and
19060  # are all built from PIC.
19061  case $host_os in
19062  aix3*)
19063    test yes = "$enable_shared" && enable_static=no
19064    if test -n "$RANLIB"; then
19065      archive_cmds="$archive_cmds~\$RANLIB \$lib"
19066      postinstall_cmds='$RANLIB $lib'
19067    fi
19068    ;;
19069
19070  aix[4-9]*)
19071    if test ia64 != "$host_cpu"; then
19072      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
19073      yes,aix,yes) ;;			# shared object as lib.so file only
19074      yes,svr4,*) ;;			# shared object as lib.so archive member only
19075      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
19076      esac
19077    fi
19078    ;;
19079  esac
19080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19081$as_echo "$enable_shared" >&6; }
19082
19083  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19084$as_echo_n "checking whether to build static libraries... " >&6; }
19085  # Make sure either enable_shared or enable_static is yes.
19086  test yes = "$enable_shared" || enable_static=yes
19087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19088$as_echo "$enable_static" >&6; }
19089
19090
19091
19092
19093fi
19094ac_ext=c
19095ac_cpp='$CPP $CPPFLAGS'
19096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19098ac_compiler_gnu=$ac_cv_c_compiler_gnu
19099
19100CC=$lt_save_CC
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116        ac_config_commands="$ac_config_commands libtool"
19117
19118
19119
19120
19121# Only expand once:
19122
19123
19124# Check whether --enable-largefile was given.
19125if test "${enable_largefile+set}" = set; then :
19126  enableval=$enable_largefile;
19127fi
19128
19129if test "$enable_largefile" != no; then
19130
19131  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
19132$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
19133if ${ac_cv_sys_largefile_CC+:} false; then :
19134  $as_echo_n "(cached) " >&6
19135else
19136  ac_cv_sys_largefile_CC=no
19137     if test "$GCC" != yes; then
19138       ac_save_CC=$CC
19139       while :; do
19140	 # IRIX 6.2 and later do not support large files by default,
19141	 # so use the C compiler's -n32 option if that helps.
19142	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19143/* end confdefs.h.  */
19144#include <sys/types.h>
19145 /* Check that off_t can represent 2**63 - 1 correctly.
19146    We can't simply define LARGE_OFF_T to be 9223372036854775807,
19147    since some C++ compilers masquerading as C compilers
19148    incorrectly reject 9223372036854775807.  */
19149#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19150  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19151		       && LARGE_OFF_T % 2147483647 == 1)
19152		      ? 1 : -1];
19153int
19154main ()
19155{
19156
19157  ;
19158  return 0;
19159}
19160_ACEOF
19161	 if ac_fn_c_try_compile "$LINENO"; then :
19162  break
19163fi
19164rm -f core conftest.err conftest.$ac_objext
19165	 CC="$CC -n32"
19166	 if ac_fn_c_try_compile "$LINENO"; then :
19167  ac_cv_sys_largefile_CC=' -n32'; break
19168fi
19169rm -f core conftest.err conftest.$ac_objext
19170	 break
19171       done
19172       CC=$ac_save_CC
19173       rm -f conftest.$ac_ext
19174    fi
19175fi
19176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
19177$as_echo "$ac_cv_sys_largefile_CC" >&6; }
19178  if test "$ac_cv_sys_largefile_CC" != no; then
19179    CC=$CC$ac_cv_sys_largefile_CC
19180  fi
19181
19182  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19183$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
19184if ${ac_cv_sys_file_offset_bits+:} false; then :
19185  $as_echo_n "(cached) " >&6
19186else
19187  while :; do
19188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19189/* end confdefs.h.  */
19190#include <sys/types.h>
19191 /* Check that off_t can represent 2**63 - 1 correctly.
19192    We can't simply define LARGE_OFF_T to be 9223372036854775807,
19193    since some C++ compilers masquerading as C compilers
19194    incorrectly reject 9223372036854775807.  */
19195#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19196  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19197		       && LARGE_OFF_T % 2147483647 == 1)
19198		      ? 1 : -1];
19199int
19200main ()
19201{
19202
19203  ;
19204  return 0;
19205}
19206_ACEOF
19207if ac_fn_c_try_compile "$LINENO"; then :
19208  ac_cv_sys_file_offset_bits=no; break
19209fi
19210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19212/* end confdefs.h.  */
19213#define _FILE_OFFSET_BITS 64
19214#include <sys/types.h>
19215 /* Check that off_t can represent 2**63 - 1 correctly.
19216    We can't simply define LARGE_OFF_T to be 9223372036854775807,
19217    since some C++ compilers masquerading as C compilers
19218    incorrectly reject 9223372036854775807.  */
19219#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19220  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19221		       && LARGE_OFF_T % 2147483647 == 1)
19222		      ? 1 : -1];
19223int
19224main ()
19225{
19226
19227  ;
19228  return 0;
19229}
19230_ACEOF
19231if ac_fn_c_try_compile "$LINENO"; then :
19232  ac_cv_sys_file_offset_bits=64; break
19233fi
19234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19235  ac_cv_sys_file_offset_bits=unknown
19236  break
19237done
19238fi
19239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
19240$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
19241case $ac_cv_sys_file_offset_bits in #(
19242  no | unknown) ;;
19243  *)
19244cat >>confdefs.h <<_ACEOF
19245#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19246_ACEOF
19247;;
19248esac
19249rm -rf conftest*
19250  if test $ac_cv_sys_file_offset_bits = unknown; then
19251    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
19252$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
19253if ${ac_cv_sys_large_files+:} false; then :
19254  $as_echo_n "(cached) " >&6
19255else
19256  while :; do
19257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19258/* end confdefs.h.  */
19259#include <sys/types.h>
19260 /* Check that off_t can represent 2**63 - 1 correctly.
19261    We can't simply define LARGE_OFF_T to be 9223372036854775807,
19262    since some C++ compilers masquerading as C compilers
19263    incorrectly reject 9223372036854775807.  */
19264#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19265  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19266		       && LARGE_OFF_T % 2147483647 == 1)
19267		      ? 1 : -1];
19268int
19269main ()
19270{
19271
19272  ;
19273  return 0;
19274}
19275_ACEOF
19276if ac_fn_c_try_compile "$LINENO"; then :
19277  ac_cv_sys_large_files=no; break
19278fi
19279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19281/* end confdefs.h.  */
19282#define _LARGE_FILES 1
19283#include <sys/types.h>
19284 /* Check that off_t can represent 2**63 - 1 correctly.
19285    We can't simply define LARGE_OFF_T to be 9223372036854775807,
19286    since some C++ compilers masquerading as C compilers
19287    incorrectly reject 9223372036854775807.  */
19288#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19289  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19290		       && LARGE_OFF_T % 2147483647 == 1)
19291		      ? 1 : -1];
19292int
19293main ()
19294{
19295
19296  ;
19297  return 0;
19298}
19299_ACEOF
19300if ac_fn_c_try_compile "$LINENO"; then :
19301  ac_cv_sys_large_files=1; break
19302fi
19303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19304  ac_cv_sys_large_files=unknown
19305  break
19306done
19307fi
19308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
19309$as_echo "$ac_cv_sys_large_files" >&6; }
19310case $ac_cv_sys_large_files in #(
19311  no | unknown) ;;
19312  *)
19313cat >>confdefs.h <<_ACEOF
19314#define _LARGE_FILES $ac_cv_sys_large_files
19315_ACEOF
19316;;
19317esac
19318rm -rf conftest*
19319  fi
19320
19321
19322fi
19323
19324
19325# Check for common libc routines redefined by os.h
19326for ac_func in strlcpy strlcat strndup
19327do :
19328  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19329ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19330if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19331  cat >>confdefs.h <<_ACEOF
19332#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19333_ACEOF
19334
19335fi
19336done
19337
19338
19339# Platform specific settings
19340case $host_os in
19341  *linux*)
19342    backlight_helper=yes
19343    ;;
19344esac
19345
19346# Check whether --enable-backlight was given.
19347if test "${enable_backlight+set}" = set; then :
19348  enableval=$enable_backlight; backlight="$enableval"
19349else
19350  backlight="yes"
19351fi
19352
19353if test "x$backlight" = "xyes"; then
19354
19355$as_echo "#define USE_BACKLIGHT 1" >>confdefs.h
19356
19357fi
19358
19359# Check whether --enable-backlight-helper was given.
19360if test "${enable_backlight_helper+set}" = set; then :
19361  enableval=$enable_backlight_helper; backlight_helper="$enableval"
19362fi
19363
19364 if test "x$backlight" = "xyes" -a "x$backlight_helper" = "xyes"; then
19365  BUILD_BACKLIGHT_HELPER_TRUE=
19366  BUILD_BACKLIGHT_HELPER_FALSE='#'
19367else
19368  BUILD_BACKLIGHT_HELPER_TRUE='#'
19369  BUILD_BACKLIGHT_HELPER_FALSE=
19370fi
19371
19372if test "x$backlight_helper" = "xyes"; then
19373	tools_msg="$tools_msg xf86-video-intel-backlight-helper"
19374
19375$as_echo "#define USE_BACKLIGHT_HELPER 1" >>confdefs.h
19376
19377fi
19378
19379# Are we in a git checkout?
19380dot_git=no
19381if test -e .git; then
19382
19383$as_echo "#define HAVE_DOT_GIT 1" >>confdefs.h
19384
19385	dot_git=yes
19386fi
19387 if test "x$dot_git" = "xyes"; then
19388  HAVE_DOT_GIT_TRUE=
19389  HAVE_DOT_GIT_FALSE='#'
19390else
19391  HAVE_DOT_GIT_TRUE='#'
19392  HAVE_DOT_GIT_FALSE=
19393fi
19394
19395
19396# If so, we include the git description in our logs for sanity checking.
19397#
19398# However, for people not running their own drivers this is just noise.
19399# So we copy the xserver's builderstring idiom to allow for this to be
19400# overridden and perhaps replaced with something more useful.
19401
19402# Check whether --with-builderstring was given.
19403if test "${with_builderstring+set}" = set; then :
19404  withval=$with_builderstring; BUILDERSTRING="$withval"
19405else
19406  BUILDERSTRING="x-magic-git-describe"
19407fi
19408
19409
19410if test "x$BUILDERSTRING" = "xx-magic-git-describe" -a "x$dot_git" = "xyes"; then
19411
19412$as_echo "#define USE_GIT_DESCRIBE 1" >>confdefs.h
19413
19414else
19415  if test "x$BUILDERSTRING" != x -a "x$BUILDERSTRING" != "xno" -a "x$BUILDERSTRING" != xx-magic-git-describe; then
19416
19417cat >>confdefs.h <<_ACEOF
19418#define BUILDER_DESCRIPTION "$BUILDERSTRING"
19419_ACEOF
19420
19421  fi
19422fi
19423
19424# Check whether --enable-gen4asm was given.
19425if test "${enable_gen4asm+set}" = set; then :
19426  enableval=$enable_gen4asm; ASM="$enableval"
19427else
19428  ASM="no"
19429fi
19430
19431
19432gen4asm=no
19433if test "x$ASM" != "xno"; then
19434
19435# Check whether --with-gen4asm was given.
19436if test "${with_gen4asm+set}" = set; then :
19437  withval=$with_gen4asm; path="$withval"
19438else
19439  path=""
19440fi
19441
19442	if test -n "$path" ; then
19443		gen4asm=yes
19444	else
19445
19446pkg_failed=no
19447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GEN4ASM" >&5
19448$as_echo_n "checking for GEN4ASM... " >&6; }
19449
19450if test -n "$GEN4ASM_CFLAGS"; then
19451    pkg_cv_GEN4ASM_CFLAGS="$GEN4ASM_CFLAGS"
19452 elif test -n "$PKG_CONFIG"; then
19453    if test -n "$PKG_CONFIG" && \
19454    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"intel-gen4asm >= 1.2\""; } >&5
19455  ($PKG_CONFIG --exists --print-errors "intel-gen4asm >= 1.2") 2>&5
19456  ac_status=$?
19457  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19458  test $ac_status = 0; }; then
19459  pkg_cv_GEN4ASM_CFLAGS=`$PKG_CONFIG --cflags "intel-gen4asm >= 1.2" 2>/dev/null`
19460		      test "x$?" != "x0" && pkg_failed=yes
19461else
19462  pkg_failed=yes
19463fi
19464 else
19465    pkg_failed=untried
19466fi
19467if test -n "$GEN4ASM_LIBS"; then
19468    pkg_cv_GEN4ASM_LIBS="$GEN4ASM_LIBS"
19469 elif test -n "$PKG_CONFIG"; then
19470    if test -n "$PKG_CONFIG" && \
19471    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"intel-gen4asm >= 1.2\""; } >&5
19472  ($PKG_CONFIG --exists --print-errors "intel-gen4asm >= 1.2") 2>&5
19473  ac_status=$?
19474  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19475  test $ac_status = 0; }; then
19476  pkg_cv_GEN4ASM_LIBS=`$PKG_CONFIG --libs "intel-gen4asm >= 1.2" 2>/dev/null`
19477		      test "x$?" != "x0" && pkg_failed=yes
19478else
19479  pkg_failed=yes
19480fi
19481 else
19482    pkg_failed=untried
19483fi
19484
19485
19486
19487if test $pkg_failed = yes; then
19488   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19489$as_echo "no" >&6; }
19490
19491if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19492        _pkg_short_errors_supported=yes
19493else
19494        _pkg_short_errors_supported=no
19495fi
19496        if test $_pkg_short_errors_supported = yes; then
19497	        GEN4ASM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "intel-gen4asm >= 1.2" 2>&1`
19498        else
19499	        GEN4ASM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "intel-gen4asm >= 1.2" 2>&1`
19500        fi
19501	# Put the nasty error message in config.log where it belongs
19502	echo "$GEN4ASM_PKG_ERRORS" >&5
19503
19504	gen4asm=no
19505elif test $pkg_failed = untried; then
19506     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19507$as_echo "no" >&6; }
19508	gen4asm=no
19509else
19510	GEN4ASM_CFLAGS=$pkg_cv_GEN4ASM_CFLAGS
19511	GEN4ASM_LIBS=$pkg_cv_GEN4ASM_LIBS
19512        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19513$as_echo "yes" >&6; }
19514	gen4asm=yes
19515fi
19516		if test "x$ASM" = "xyes" -a "x$gen4asm" != "xyes"; then
19517			as_fn_error $? "intel-gen4asm support requested but not found" "$LINENO" 5
19518		fi
19519	fi
19520	if test "x$gen4asm" = "xyes"; then
19521		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking path to use for intel-gen4asm" >&5
19522$as_echo_n "checking path to use for intel-gen4asm... " >&6; }
19523		if test -n "$path" ; then
19524			INTEL_GEN4ASM="$path"
19525		else
19526			INTEL_GEN4ASM="`pkg-config intel-gen4asm --variable=exec_prefix`/bin/intel-gen4asm"
19527		fi
19528		if ! test -e "$INTEL_GEN4ASM"; then
19529			as_fn_error $? "intel-gen4asm enabled, but not found. Tried '$INTEL_GEN4ASM'." "$LINENO" 5
19530		fi
19531		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTEL_GEN4ASM" >&5
19532$as_echo "$INTEL_GEN4ASM" >&6; }
19533
19534	fi
19535fi
19536 if test "x$gen4asm" = "xyes"; then
19537  HAVE_GEN4ASM_TRUE=
19538  HAVE_GEN4ASM_FALSE='#'
19539else
19540  HAVE_GEN4ASM_TRUE='#'
19541  HAVE_GEN4ASM_FALSE=
19542fi
19543
19544
19545# Check for atomic intrinsics
19546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for native atomic primitives" >&5
19547$as_echo_n "checking for native atomic primitives... " >&6; }
19548if ${intel_cv_atomic_primitives+:} false; then :
19549  $as_echo_n "(cached) " >&6
19550else
19551
19552    intel_cv_atomic_primitives="none"
19553
19554    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19555/* end confdefs.h.  */
19556
19557int atomic_add(int i) { return __sync_fetch_and_add (&i, 1); }
19558int atomic_cmpxchg(int i, int j, int k) { return __sync_val_compare_and_swap (&i, j, k); }
19559
19560int
19561main ()
19562{
19563
19564  ;
19565  return 0;
19566}
19567_ACEOF
19568if ac_fn_c_try_link "$LINENO"; then :
19569  intel_cv_atomic_primitives="Intel"
19570fi
19571rm -f core conftest.err conftest.$ac_objext \
19572    conftest$ac_exeext conftest.$ac_ext
19573
19574    if test "x$intel_cv_atomic_primitives" = "xnone"; then
19575	    ac_fn_c_check_header_mongrel "$LINENO" "atomic_ops.h" "ac_cv_header_atomic_ops_h" "$ac_includes_default"
19576if test "x$ac_cv_header_atomic_ops_h" = xyes; then :
19577  intel_cv_atomic_primitives="libatomic-ops"
19578fi
19579
19580
19581    fi
19582
19583    # atomic functions defined in <atomic.h> & libc on Solaris
19584    if test "x$intel_cv_atomic_primitives" = "xnone"; then
19585	    ac_fn_c_check_func "$LINENO" "atomic_cas_uint" "ac_cv_func_atomic_cas_uint"
19586if test "x$ac_cv_func_atomic_cas_uint" = xyes; then :
19587  intel_cv_atomic_primitives="Solaris"
19588fi
19589
19590    fi
19591
19592
19593fi
19594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $intel_cv_atomic_primitives" >&5
19595$as_echo "$intel_cv_atomic_primitives" >&6; }
19596if test "x$intel_cv_atomic_primitives" = "xIntel"; then
19597
19598$as_echo "#define HAVE_ATOMIC_PRIMITIVES 1" >>confdefs.h
19599
19600fi
19601if test "x$intel_cv_atomic_primitives" = "xlibatomic-ops"; then
19602
19603$as_echo "#define HAVE_LIB_ATOMIC_OPS 1" >>confdefs.h
19604
19605fi
19606
19607if test "x$intel_cv_atomic_primitives" = "xnone"; then
19608		as_fn_error $? "xf86-video-intel depends upon atomic operations, which were not found for your compiler/cpu. Try compiling with -march=native, or install the libatomics-op-dev package." "$LINENO" 5
19609fi
19610
19611# Check whether --enable-udev was given.
19612if test "${enable_udev+set}" = set; then :
19613  enableval=$enable_udev; UDEV="$enableval"
19614else
19615  UDEV=auto
19616fi
19617
19618
19619udev_msg=" disabled"
19620if test "x$UDEV" != "xno"; then
19621
19622pkg_failed=no
19623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
19624$as_echo_n "checking for UDEV... " >&6; }
19625
19626if test -n "$UDEV_CFLAGS"; then
19627    pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
19628 elif test -n "$PKG_CONFIG"; then
19629    if test -n "$PKG_CONFIG" && \
19630    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
19631  ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
19632  ac_status=$?
19633  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19634  test $ac_status = 0; }; then
19635  pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
19636		      test "x$?" != "x0" && pkg_failed=yes
19637else
19638  pkg_failed=yes
19639fi
19640 else
19641    pkg_failed=untried
19642fi
19643if test -n "$UDEV_LIBS"; then
19644    pkg_cv_UDEV_LIBS="$UDEV_LIBS"
19645 elif test -n "$PKG_CONFIG"; then
19646    if test -n "$PKG_CONFIG" && \
19647    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
19648  ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
19649  ac_status=$?
19650  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19651  test $ac_status = 0; }; then
19652  pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
19653		      test "x$?" != "x0" && pkg_failed=yes
19654else
19655  pkg_failed=yes
19656fi
19657 else
19658    pkg_failed=untried
19659fi
19660
19661
19662
19663if test $pkg_failed = yes; then
19664   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19665$as_echo "no" >&6; }
19666
19667if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19668        _pkg_short_errors_supported=yes
19669else
19670        _pkg_short_errors_supported=no
19671fi
19672        if test $_pkg_short_errors_supported = yes; then
19673	        UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
19674        else
19675	        UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
19676        fi
19677	# Put the nasty error message in config.log where it belongs
19678	echo "$UDEV_PKG_ERRORS" >&5
19679
19680	udev="no"
19681elif test $pkg_failed = untried; then
19682     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19683$as_echo "no" >&6; }
19684	udev="no"
19685else
19686	UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
19687	UDEV_LIBS=$pkg_cv_UDEV_LIBS
19688        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19689$as_echo "yes" >&6; }
19690	udev="yes"
19691fi
19692	for ac_header in sys/stat.h
19693do :
19694  ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
19695if test "x$ac_cv_header_sys_stat_h" = xyes; then :
19696  cat >>confdefs.h <<_ACEOF
19697#define HAVE_SYS_STAT_H 1
19698_ACEOF
19699
19700else
19701  udev="no"
19702fi
19703
19704done
19705
19706	if test "x$UDEV" = "xyes" -a "x$udev" != "xyes"; then
19707		as_fn_error $? "udev support requested but not found (libudev)" "$LINENO" 5
19708	fi
19709	if test "x$udev" = "xyes"; then
19710
19711$as_echo "#define HAVE_UDEV 1" >>confdefs.h
19712
19713		udev_msg=" yes"
19714	else
19715		udev_msg=" no"
19716	fi
19717fi
19718
19719
19720pkg_failed=no
19721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
19722$as_echo_n "checking for X11... " >&6; }
19723
19724if test -n "$X11_CFLAGS"; then
19725    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
19726 elif test -n "$PKG_CONFIG"; then
19727    if test -n "$PKG_CONFIG" && \
19728    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 x11-xcb xcb-dri2 xcomposite xdamage xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng\""; } >&5
19729  ($PKG_CONFIG --exists --print-errors "x11 x11-xcb xcb-dri2 xcomposite xdamage xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng") 2>&5
19730  ac_status=$?
19731  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19732  test $ac_status = 0; }; then
19733  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11 x11-xcb xcb-dri2 xcomposite xdamage xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng" 2>/dev/null`
19734		      test "x$?" != "x0" && pkg_failed=yes
19735else
19736  pkg_failed=yes
19737fi
19738 else
19739    pkg_failed=untried
19740fi
19741if test -n "$X11_LIBS"; then
19742    pkg_cv_X11_LIBS="$X11_LIBS"
19743 elif test -n "$PKG_CONFIG"; then
19744    if test -n "$PKG_CONFIG" && \
19745    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 x11-xcb xcb-dri2 xcomposite xdamage xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng\""; } >&5
19746  ($PKG_CONFIG --exists --print-errors "x11 x11-xcb xcb-dri2 xcomposite xdamage xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng") 2>&5
19747  ac_status=$?
19748  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19749  test $ac_status = 0; }; then
19750  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11 x11-xcb xcb-dri2 xcomposite xdamage xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng" 2>/dev/null`
19751		      test "x$?" != "x0" && pkg_failed=yes
19752else
19753  pkg_failed=yes
19754fi
19755 else
19756    pkg_failed=untried
19757fi
19758
19759
19760
19761if test $pkg_failed = yes; then
19762   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19763$as_echo "no" >&6; }
19764
19765if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19766        _pkg_short_errors_supported=yes
19767else
19768        _pkg_short_errors_supported=no
19769fi
19770        if test $_pkg_short_errors_supported = yes; then
19771	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 x11-xcb xcb-dri2 xcomposite xdamage xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng" 2>&1`
19772        else
19773	        X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 x11-xcb xcb-dri2 xcomposite xdamage xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng" 2>&1`
19774        fi
19775	# Put the nasty error message in config.log where it belongs
19776	echo "$X11_PKG_ERRORS" >&5
19777
19778	x11="no"
19779elif test $pkg_failed = untried; then
19780     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19781$as_echo "no" >&6; }
19782	x11="no"
19783else
19784	X11_CFLAGS=$pkg_cv_X11_CFLAGS
19785	X11_LIBS=$pkg_cv_X11_LIBS
19786        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19787$as_echo "yes" >&6; }
19788	x11="yes"
19789fi
19790 if test "x$x11" = "xyes"; then
19791  HAVE_X11_TRUE=
19792  HAVE_X11_FALSE='#'
19793else
19794  HAVE_X11_TRUE='#'
19795  HAVE_X11_FALSE=
19796fi
19797
19798echo X11_CLFAGS="$X11_CLFAGS" X11_LIBS="$X11_LIBS"
19799
19800cpuid="yes"
19801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19802/* end confdefs.h.  */
19803
19804	#include <cpuid.h>
19805	#include <stddef.h>
19806
19807int
19808main ()
19809{
19810
19811	int eax, ebx, ecx, edx;
19812	if (__get_cpuid_max(0, NULL) < 4)
19813		return 0;
19814	__cpuid_count(4, 0, eax, ebx, ecx, edx);
19815
19816  ;
19817  return 0;
19818}
19819_ACEOF
19820if ac_fn_c_try_link "$LINENO"; then :
19821  cpuid="yes"
19822else
19823  cpuid="no"
19824
19825fi
19826rm -f core conftest.err conftest.$ac_objext \
19827    conftest$ac_exeext conftest.$ac_ext
19828if test "x$cpuid" = "xyes"; then
19829
19830$as_echo "#define HAVE_CPUID_H 1" >>confdefs.h
19831
19832fi
19833
19834shm=yes
19835for ac_header in sys/ipc.h sys/ipc.h
19836do :
19837  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19838ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19839if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19840  cat >>confdefs.h <<_ACEOF
19841#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19842_ACEOF
19843
19844else
19845  shm="no"
19846fi
19847
19848done
19849
19850for ac_header in X11/extensions/XShm.h
19851do :
19852  ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XShm.h" "ac_cv_header_X11_extensions_XShm_h" "
19853#include <X11/Xlibint.h>
19854#include <X11/Xproto.h>
19855
19856"
19857if test "x$ac_cv_header_X11_extensions_XShm_h" = xyes; then :
19858  cat >>confdefs.h <<_ACEOF
19859#define HAVE_X11_EXTENSIONS_XSHM_H 1
19860_ACEOF
19861
19862else
19863  shm="no"
19864fi
19865
19866done
19867
19868for ac_header in X11/extensions/shmproto.h X11/extensions/shmstr.h
19869do :
19870  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19871ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
19872#include <X11/Xlibint.h>
19873#include <X11/Xproto.h>
19874
19875"
19876if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19877  cat >>confdefs.h <<_ACEOF
19878#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19879_ACEOF
19880
19881fi
19882
19883done
19884
19885if test "x$ac_cv_header_X11_extensions_shmproto_h" != "xyes" -a "x$ac_cv_header_X11_extensions_shmstr_h" != "xyes"; then
19886	shm="no"
19887fi
19888
19889if test "x$shm" = "xyes"; then
19890
19891$as_echo "#define HAVE_MIT_SHM 1" >>confdefs.h
19892
19893fi
19894
19895
19896pkg_failed=no
19897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11_DRI3" >&5
19898$as_echo_n "checking for X11_DRI3... " >&6; }
19899
19900if test -n "$X11_DRI3_CFLAGS"; then
19901    pkg_cv_X11_DRI3_CFLAGS="$X11_DRI3_CFLAGS"
19902 elif test -n "$PKG_CONFIG"; then
19903    if test -n "$PKG_CONFIG" && \
19904    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-dri3 xcb-sync xcb-xfixes xcb-present x11-xcb xshmfence x11 xcomposite xdamage xrender xrandr xxf86vm xext libdrm\""; } >&5
19905  ($PKG_CONFIG --exists --print-errors "xcb-dri3 xcb-sync xcb-xfixes xcb-present x11-xcb xshmfence x11 xcomposite xdamage xrender xrandr xxf86vm xext libdrm") 2>&5
19906  ac_status=$?
19907  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19908  test $ac_status = 0; }; then
19909  pkg_cv_X11_DRI3_CFLAGS=`$PKG_CONFIG --cflags "xcb-dri3 xcb-sync xcb-xfixes xcb-present x11-xcb xshmfence x11 xcomposite xdamage xrender xrandr xxf86vm xext libdrm" 2>/dev/null`
19910		      test "x$?" != "x0" && pkg_failed=yes
19911else
19912  pkg_failed=yes
19913fi
19914 else
19915    pkg_failed=untried
19916fi
19917if test -n "$X11_DRI3_LIBS"; then
19918    pkg_cv_X11_DRI3_LIBS="$X11_DRI3_LIBS"
19919 elif test -n "$PKG_CONFIG"; then
19920    if test -n "$PKG_CONFIG" && \
19921    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-dri3 xcb-sync xcb-xfixes xcb-present x11-xcb xshmfence x11 xcomposite xdamage xrender xrandr xxf86vm xext libdrm\""; } >&5
19922  ($PKG_CONFIG --exists --print-errors "xcb-dri3 xcb-sync xcb-xfixes xcb-present x11-xcb xshmfence x11 xcomposite xdamage xrender xrandr xxf86vm xext libdrm") 2>&5
19923  ac_status=$?
19924  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19925  test $ac_status = 0; }; then
19926  pkg_cv_X11_DRI3_LIBS=`$PKG_CONFIG --libs "xcb-dri3 xcb-sync xcb-xfixes xcb-present x11-xcb xshmfence x11 xcomposite xdamage xrender xrandr xxf86vm xext libdrm" 2>/dev/null`
19927		      test "x$?" != "x0" && pkg_failed=yes
19928else
19929  pkg_failed=yes
19930fi
19931 else
19932    pkg_failed=untried
19933fi
19934
19935
19936
19937if test $pkg_failed = yes; then
19938   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19939$as_echo "no" >&6; }
19940
19941if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19942        _pkg_short_errors_supported=yes
19943else
19944        _pkg_short_errors_supported=no
19945fi
19946        if test $_pkg_short_errors_supported = yes; then
19947	        X11_DRI3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-dri3 xcb-sync xcb-xfixes xcb-present x11-xcb xshmfence x11 xcomposite xdamage xrender xrandr xxf86vm xext libdrm" 2>&1`
19948        else
19949	        X11_DRI3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-dri3 xcb-sync xcb-xfixes xcb-present x11-xcb xshmfence x11 xcomposite xdamage xrender xrandr xxf86vm xext libdrm" 2>&1`
19950        fi
19951	# Put the nasty error message in config.log where it belongs
19952	echo "$X11_DRI3_PKG_ERRORS" >&5
19953
19954	x11_dri3="no"
19955elif test $pkg_failed = untried; then
19956     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19957$as_echo "no" >&6; }
19958	x11_dri3="no"
19959else
19960	X11_DRI3_CFLAGS=$pkg_cv_X11_DRI3_CFLAGS
19961	X11_DRI3_LIBS=$pkg_cv_X11_DRI3_LIBS
19962        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19963$as_echo "yes" >&6; }
19964	x11_dri3="yes"
19965fi
19966 if test "x$x11_dri3" = "xyes" -a "x$shm" = "xyes"; then
19967  X11_DRI3_TRUE=
19968  X11_DRI3_FALSE='#'
19969else
19970  X11_DRI3_TRUE='#'
19971  X11_DRI3_FALSE=
19972fi
19973
19974 if test "x$shm" = "xyes"; then
19975  X11_SHM_TRUE=
19976  X11_SHM_FALSE='#'
19977else
19978  X11_SHM_TRUE='#'
19979  X11_SHM_FALSE=
19980fi
19981
19982
19983
19984pkg_failed=no
19985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11_VM" >&5
19986$as_echo_n "checking for X11_VM... " >&6; }
19987
19988if test -n "$X11_VM_CFLAGS"; then
19989    pkg_cv_X11_VM_CFLAGS="$X11_VM_CFLAGS"
19990 elif test -n "$PKG_CONFIG"; then
19991    if test -n "$PKG_CONFIG" && \
19992    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86vm\""; } >&5
19993  ($PKG_CONFIG --exists --print-errors "xxf86vm") 2>&5
19994  ac_status=$?
19995  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19996  test $ac_status = 0; }; then
19997  pkg_cv_X11_VM_CFLAGS=`$PKG_CONFIG --cflags "xxf86vm" 2>/dev/null`
19998		      test "x$?" != "x0" && pkg_failed=yes
19999else
20000  pkg_failed=yes
20001fi
20002 else
20003    pkg_failed=untried
20004fi
20005if test -n "$X11_VM_LIBS"; then
20006    pkg_cv_X11_VM_LIBS="$X11_VM_LIBS"
20007 elif test -n "$PKG_CONFIG"; then
20008    if test -n "$PKG_CONFIG" && \
20009    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86vm\""; } >&5
20010  ($PKG_CONFIG --exists --print-errors "xxf86vm") 2>&5
20011  ac_status=$?
20012  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20013  test $ac_status = 0; }; then
20014  pkg_cv_X11_VM_LIBS=`$PKG_CONFIG --libs "xxf86vm" 2>/dev/null`
20015		      test "x$?" != "x0" && pkg_failed=yes
20016else
20017  pkg_failed=yes
20018fi
20019 else
20020    pkg_failed=untried
20021fi
20022
20023
20024
20025if test $pkg_failed = yes; then
20026   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20027$as_echo "no" >&6; }
20028
20029if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20030        _pkg_short_errors_supported=yes
20031else
20032        _pkg_short_errors_supported=no
20033fi
20034        if test $_pkg_short_errors_supported = yes; then
20035	        X11_VM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xxf86vm" 2>&1`
20036        else
20037	        X11_VM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xxf86vm" 2>&1`
20038        fi
20039	# Put the nasty error message in config.log where it belongs
20040	echo "$X11_VM_PKG_ERRORS" >&5
20041
20042	x11_vm="no"
20043elif test $pkg_failed = untried; then
20044     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20045$as_echo "no" >&6; }
20046	x11_vm="no"
20047else
20048	X11_VM_CFLAGS=$pkg_cv_X11_VM_CFLAGS
20049	X11_VM_LIBS=$pkg_cv_X11_VM_LIBS
20050        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20051$as_echo "yes" >&6; }
20052	x11_vm="yes"
20053fi
20054 if test "x$x11_vm" = "xyes"; then
20055  X11_VM_TRUE=
20056  X11_VM_FALSE='#'
20057else
20058  X11_VM_TRUE='#'
20059  X11_VM_FALSE=
20060fi
20061
20062
20063# Check whether --enable-tools was given.
20064if test "${enable_tools+set}" = set; then :
20065  enableval=$enable_tools; tools="$enableval"
20066else
20067  tools="auto"
20068fi
20069
20070if test "x$shm" != "xyes"; then
20071	if test "x$tools" = "xyes"; then
20072		as_fn_error $? "Incomplete requirements for extra tools, X11 MIT-SHM extension required" "$LINENO" 5
20073	fi
20074	tools="no"
20075fi
20076if test "x$tools" != "xno"; then
20077	ivo_requires="xrandr xdamage xfixes xcursor xtst xrender xscrnsaver xext x11 pixman-1"
20078	extra_cflags=""
20079
20080	ignore="xinerama"
20081
20082pkg_failed=no
20083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IVO_EXTRA" >&5
20084$as_echo_n "checking for IVO_EXTRA... " >&6; }
20085
20086if test -n "$IVO_EXTRA_CFLAGS"; then
20087    pkg_cv_IVO_EXTRA_CFLAGS="$IVO_EXTRA_CFLAGS"
20088 elif test -n "$PKG_CONFIG"; then
20089    if test -n "$PKG_CONFIG" && \
20090    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$ignore\""; } >&5
20091  ($PKG_CONFIG --exists --print-errors "$ignore") 2>&5
20092  ac_status=$?
20093  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20094  test $ac_status = 0; }; then
20095  pkg_cv_IVO_EXTRA_CFLAGS=`$PKG_CONFIG --cflags "$ignore" 2>/dev/null`
20096		      test "x$?" != "x0" && pkg_failed=yes
20097else
20098  pkg_failed=yes
20099fi
20100 else
20101    pkg_failed=untried
20102fi
20103if test -n "$IVO_EXTRA_LIBS"; then
20104    pkg_cv_IVO_EXTRA_LIBS="$IVO_EXTRA_LIBS"
20105 elif test -n "$PKG_CONFIG"; then
20106    if test -n "$PKG_CONFIG" && \
20107    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$ignore\""; } >&5
20108  ($PKG_CONFIG --exists --print-errors "$ignore") 2>&5
20109  ac_status=$?
20110  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20111  test $ac_status = 0; }; then
20112  pkg_cv_IVO_EXTRA_LIBS=`$PKG_CONFIG --libs "$ignore" 2>/dev/null`
20113		      test "x$?" != "x0" && pkg_failed=yes
20114else
20115  pkg_failed=yes
20116fi
20117 else
20118    pkg_failed=untried
20119fi
20120
20121
20122
20123if test $pkg_failed = yes; then
20124   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20125$as_echo "no" >&6; }
20126
20127if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20128        _pkg_short_errors_supported=yes
20129else
20130        _pkg_short_errors_supported=no
20131fi
20132        if test $_pkg_short_errors_supported = yes; then
20133	        IVO_EXTRA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$ignore" 2>&1`
20134        else
20135	        IVO_EXTRA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$ignore" 2>&1`
20136        fi
20137	# Put the nasty error message in config.log where it belongs
20138	echo "$IVO_EXTRA_PKG_ERRORS" >&5
20139
20140	ignore=""
20141elif test $pkg_failed = untried; then
20142     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20143$as_echo "no" >&6; }
20144	ignore=""
20145else
20146	IVO_EXTRA_CFLAGS=$pkg_cv_IVO_EXTRA_CFLAGS
20147	IVO_EXTRA_LIBS=$pkg_cv_IVO_EXTRA_LIBS
20148        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20149$as_echo "yes" >&6; }
20150	for ac_header in X11/extensions/Xinerama.h
20151do :
20152  ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlibint.h>
20153					     #include <X11/Xproto.h>
20154
20155"
20156if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
20157  cat >>confdefs.h <<_ACEOF
20158#define HAVE_X11_EXTENSIONS_XINERAMA_H 1
20159_ACEOF
20160 ivo_requires="$ignore $ivo_requires"
20161fi
20162
20163done
20164
20165fi
20166
20167	ignore="xcb-dri3 xcb-sync x11-xcb xshmfence x11"
20168
20169pkg_failed=no
20170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IVO_EXTRA" >&5
20171$as_echo_n "checking for IVO_EXTRA... " >&6; }
20172
20173if test -n "$IVO_EXTRA_CFLAGS"; then
20174    pkg_cv_IVO_EXTRA_CFLAGS="$IVO_EXTRA_CFLAGS"
20175 elif test -n "$PKG_CONFIG"; then
20176    if test -n "$PKG_CONFIG" && \
20177    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$ignore\""; } >&5
20178  ($PKG_CONFIG --exists --print-errors "$ignore") 2>&5
20179  ac_status=$?
20180  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20181  test $ac_status = 0; }; then
20182  pkg_cv_IVO_EXTRA_CFLAGS=`$PKG_CONFIG --cflags "$ignore" 2>/dev/null`
20183		      test "x$?" != "x0" && pkg_failed=yes
20184else
20185  pkg_failed=yes
20186fi
20187 else
20188    pkg_failed=untried
20189fi
20190if test -n "$IVO_EXTRA_LIBS"; then
20191    pkg_cv_IVO_EXTRA_LIBS="$IVO_EXTRA_LIBS"
20192 elif test -n "$PKG_CONFIG"; then
20193    if test -n "$PKG_CONFIG" && \
20194    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$ignore\""; } >&5
20195  ($PKG_CONFIG --exists --print-errors "$ignore") 2>&5
20196  ac_status=$?
20197  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20198  test $ac_status = 0; }; then
20199  pkg_cv_IVO_EXTRA_LIBS=`$PKG_CONFIG --libs "$ignore" 2>/dev/null`
20200		      test "x$?" != "x0" && pkg_failed=yes
20201else
20202  pkg_failed=yes
20203fi
20204 else
20205    pkg_failed=untried
20206fi
20207
20208
20209
20210if test $pkg_failed = yes; then
20211   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20212$as_echo "no" >&6; }
20213
20214if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20215        _pkg_short_errors_supported=yes
20216else
20217        _pkg_short_errors_supported=no
20218fi
20219        if test $_pkg_short_errors_supported = yes; then
20220	        IVO_EXTRA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$ignore" 2>&1`
20221        else
20222	        IVO_EXTRA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$ignore" 2>&1`
20223        fi
20224	# Put the nasty error message in config.log where it belongs
20225	echo "$IVO_EXTRA_PKG_ERRORS" >&5
20226
20227	ignore=""
20228elif test $pkg_failed = untried; then
20229     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20230$as_echo "no" >&6; }
20231	ignore=""
20232else
20233	IVO_EXTRA_CFLAGS=$pkg_cv_IVO_EXTRA_CFLAGS
20234	IVO_EXTRA_LIBS=$pkg_cv_IVO_EXTRA_LIBS
20235        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20236$as_echo "yes" >&6; }
20237	ivo_requires="$ivo_requires $ignore"; extra_cflags="-DDRI3"
20238fi
20239
20240
20241pkg_failed=no
20242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IVO" >&5
20243$as_echo_n "checking for IVO... " >&6; }
20244
20245if test -n "$IVO_CFLAGS"; then
20246    pkg_cv_IVO_CFLAGS="$IVO_CFLAGS"
20247 elif test -n "$PKG_CONFIG"; then
20248    if test -n "$PKG_CONFIG" && \
20249    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$ivo_requires\""; } >&5
20250  ($PKG_CONFIG --exists --print-errors "$ivo_requires") 2>&5
20251  ac_status=$?
20252  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20253  test $ac_status = 0; }; then
20254  pkg_cv_IVO_CFLAGS=`$PKG_CONFIG --cflags "$ivo_requires" 2>/dev/null`
20255		      test "x$?" != "x0" && pkg_failed=yes
20256else
20257  pkg_failed=yes
20258fi
20259 else
20260    pkg_failed=untried
20261fi
20262if test -n "$IVO_LIBS"; then
20263    pkg_cv_IVO_LIBS="$IVO_LIBS"
20264 elif test -n "$PKG_CONFIG"; then
20265    if test -n "$PKG_CONFIG" && \
20266    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$ivo_requires\""; } >&5
20267  ($PKG_CONFIG --exists --print-errors "$ivo_requires") 2>&5
20268  ac_status=$?
20269  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20270  test $ac_status = 0; }; then
20271  pkg_cv_IVO_LIBS=`$PKG_CONFIG --libs "$ivo_requires" 2>/dev/null`
20272		      test "x$?" != "x0" && pkg_failed=yes
20273else
20274  pkg_failed=yes
20275fi
20276 else
20277    pkg_failed=untried
20278fi
20279
20280
20281
20282if test $pkg_failed = yes; then
20283   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20284$as_echo "no" >&6; }
20285
20286if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20287        _pkg_short_errors_supported=yes
20288else
20289        _pkg_short_errors_supported=no
20290fi
20291        if test $_pkg_short_errors_supported = yes; then
20292	        IVO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$ivo_requires" 2>&1`
20293        else
20294	        IVO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$ivo_requires" 2>&1`
20295        fi
20296	# Put the nasty error message in config.log where it belongs
20297	echo "$IVO_PKG_ERRORS" >&5
20298
20299	ivo="no"
20300elif test $pkg_failed = untried; then
20301     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20302$as_echo "no" >&6; }
20303	ivo="no"
20304else
20305	IVO_CFLAGS=$pkg_cv_IVO_CFLAGS
20306	IVO_LIBS=$pkg_cv_IVO_LIBS
20307        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20308$as_echo "yes" >&6; }
20309	ivo="yes"
20310fi
20311	ac_fn_c_check_header_mongrel "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default"
20312if test "x$ac_cv_header_sys_timerfd_h" = xyes; then :
20313
20314else
20315  ivo="no"
20316fi
20317
20318
20319	if test "x$ivo" = "xno"; then
20320		if test "x$tools" = "xyes"; then
20321			as_fn_error $? "Incomplete requirements for intel-virtual-output, requires $ivo_requires" "$LINENO" 5
20322		fi
20323		tools="no"
20324	fi
20325
20326
20327pkg_failed=no
20328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOOL_CURSOR" >&5
20329$as_echo_n "checking for TOOL_CURSOR... " >&6; }
20330
20331if test -n "$TOOL_CURSOR_CFLAGS"; then
20332    pkg_cv_TOOL_CURSOR_CFLAGS="$TOOL_CURSOR_CFLAGS"
20333 elif test -n "$PKG_CONFIG"; then
20334    if test -n "$PKG_CONFIG" && \
20335    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes x11 libpng\""; } >&5
20336  ($PKG_CONFIG --exists --print-errors "xfixes x11 libpng") 2>&5
20337  ac_status=$?
20338  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20339  test $ac_status = 0; }; then
20340  pkg_cv_TOOL_CURSOR_CFLAGS=`$PKG_CONFIG --cflags "xfixes x11 libpng" 2>/dev/null`
20341		      test "x$?" != "x0" && pkg_failed=yes
20342else
20343  pkg_failed=yes
20344fi
20345 else
20346    pkg_failed=untried
20347fi
20348if test -n "$TOOL_CURSOR_LIBS"; then
20349    pkg_cv_TOOL_CURSOR_LIBS="$TOOL_CURSOR_LIBS"
20350 elif test -n "$PKG_CONFIG"; then
20351    if test -n "$PKG_CONFIG" && \
20352    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes x11 libpng\""; } >&5
20353  ($PKG_CONFIG --exists --print-errors "xfixes x11 libpng") 2>&5
20354  ac_status=$?
20355  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20356  test $ac_status = 0; }; then
20357  pkg_cv_TOOL_CURSOR_LIBS=`$PKG_CONFIG --libs "xfixes x11 libpng" 2>/dev/null`
20358		      test "x$?" != "x0" && pkg_failed=yes
20359else
20360  pkg_failed=yes
20361fi
20362 else
20363    pkg_failed=untried
20364fi
20365
20366
20367
20368if test $pkg_failed = yes; then
20369   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20370$as_echo "no" >&6; }
20371
20372if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20373        _pkg_short_errors_supported=yes
20374else
20375        _pkg_short_errors_supported=no
20376fi
20377        if test $_pkg_short_errors_supported = yes; then
20378	        TOOL_CURSOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xfixes x11 libpng" 2>&1`
20379        else
20380	        TOOL_CURSOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xfixes x11 libpng" 2>&1`
20381        fi
20382	# Put the nasty error message in config.log where it belongs
20383	echo "$TOOL_CURSOR_PKG_ERRORS" >&5
20384
20385	ivo="no"
20386elif test $pkg_failed = untried; then
20387     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20388$as_echo "no" >&6; }
20389	ivo="no"
20390else
20391	TOOL_CURSOR_CFLAGS=$pkg_cv_TOOL_CURSOR_CFLAGS
20392	TOOL_CURSOR_LIBS=$pkg_cv_TOOL_CURSOR_LIBS
20393        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20394$as_echo "yes" >&6; }
20395	cursor="yes"
20396fi
20397
20398	IVO_CFLAGS="$IVO_CFLAGS $extra_cflags"
20399fi
20400if test "x$tools" != "xno"; then
20401      tools_msg="$tools_msg intel-virtual-output"
20402fi
20403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build additional tools" >&5
20404$as_echo_n "checking whether to build additional tools... " >&6; }
20405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tools" >&5
20406$as_echo "$tools" >&6; }
20407 if test "x$tools" != "xno"; then
20408  BUILD_TOOLS_TRUE=
20409  BUILD_TOOLS_FALSE='#'
20410else
20411  BUILD_TOOLS_TRUE='#'
20412  BUILD_TOOLS_FALSE=
20413fi
20414
20415 if test "x$cursor" = "xyes"; then
20416  BUILD_TOOL_CURSOR_TRUE=
20417  BUILD_TOOL_CURSOR_FALSE='#'
20418else
20419  BUILD_TOOL_CURSOR_TRUE='#'
20420  BUILD_TOOL_CURSOR_FALSE=
20421fi
20422
20423
20424# Define a configure option for an alternate module directory
20425
20426# Check whether --with-xorg-module-dir was given.
20427if test "${with_xorg_module_dir+set}" = set; then :
20428  withval=$with_xorg_module_dir; moduledir="$withval"
20429else
20430  moduledir="$libdir/xorg/modules"
20431fi
20432
20433
20434# Check whether --enable-dri was given.
20435if test "${enable_dri+set}" = set; then :
20436  enableval=$enable_dri; DRI=$enableval
20437else
20438  DRI=auto
20439fi
20440
20441# Check whether --enable-dri1 was given.
20442if test "${enable_dri1+set}" = set; then :
20443  enableval=$enable_dri1; DRI1=$enableval
20444else
20445  DRI1=auto
20446fi
20447
20448# Check whether --enable-dri2 was given.
20449if test "${enable_dri2+set}" = set; then :
20450  enableval=$enable_dri2; DRI2=$enableval
20451else
20452  DRI2=yes
20453fi
20454
20455# Check whether --enable-dri3 was given.
20456if test "${enable_dri3+set}" = set; then :
20457  enableval=$enable_dri3; DRI3=$enableval
20458else
20459  DRI3=yes
20460fi
20461
20462
20463# Check whether --with-default-dri was given.
20464if test "${with_default_dri+set}" = set; then :
20465  withval=$with_default_dri; DRI_DEFAULT=$withval
20466else
20467  DRI_DEFAULT=2
20468fi
20469
20470if test "x$DRI_DEFAULT" = "x0"; then
20471
20472$as_echo "#define DEFAULT_DRI_LEVEL 0" >>confdefs.h
20473
20474else
20475
20476$as_echo "#define DEFAULT_DRI_LEVEL ~0" >>confdefs.h
20477
20478fi
20479
20480# Check whether --enable-xvmc was given.
20481if test "${enable_xvmc+set}" = set; then :
20482  enableval=$enable_xvmc; XVMC="$enableval"
20483else
20484  XVMC="yes"
20485fi
20486
20487
20488# Check whether --enable-kms was given.
20489if test "${enable_kms+set}" = set; then :
20490  enableval=$enable_kms; KMS="$enableval"
20491else
20492  KMS="yes"
20493fi
20494
20495# Check whether --enable-ums was given.
20496if test "${enable_ums+set}" = set; then :
20497  enableval=$enable_ums; UMS="$enableval"
20498else
20499  UMS="auto"
20500fi
20501
20502
20503# Check whether --enable-kms-only was given.
20504if test "${enable_kms_only+set}" = set; then :
20505  enableval=$enable_kms_only; ONLY_KMS="$enableval"
20506else
20507  ONLY_KMS="no"
20508fi
20509
20510
20511# Check whether --enable-ums-only was given.
20512if test "${enable_ums_only+set}" = set; then :
20513  enableval=$enable_ums_only; ONLY_UMS="$enableval"
20514else
20515  ONLY_UMS="no"
20516fi
20517
20518
20519required_xorg_server_version=1.6
20520required_pixman_version=0.16
20521
20522if test -n "$PKG_CONFIG" && \
20523    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pixman-1 >= 0.24.0\""; } >&5
20524  ($PKG_CONFIG --exists --print-errors "pixman-1 >= 0.24.0") 2>&5
20525  ac_status=$?
20526  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20527  test $ac_status = 0; }; then
20528
20529$as_echo "#define HAS_PIXMAN_TRIANGLES 1" >>confdefs.h
20530
20531
20532fi
20533if test -n "$PKG_CONFIG" && \
20534    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pixman-1 >= 0.27.1\""; } >&5
20535  ($PKG_CONFIG --exists --print-errors "pixman-1 >= 0.27.1") 2>&5
20536  ac_status=$?
20537  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20538  test $ac_status = 0; }; then
20539
20540$as_echo "#define HAS_PIXMAN_GLYPHS 1" >>confdefs.h
20541
20542fi
20543# Store the list of server defined optional extensions in REQUIRED_MODULES
20544
20545
20546	SAVE_CFLAGS="$CFLAGS"
20547	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
20548	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20549/* end confdefs.h.  */
20550
20551#include "xorg-server.h"
20552#if !defined RANDR
20553#error RANDR not defined
20554#endif
20555
20556int
20557main ()
20558{
20559
20560  ;
20561  return 0;
20562}
20563_ACEOF
20564if ac_fn_c_try_compile "$LINENO"; then :
20565  _EXT_CHECK=yes
20566else
20567  _EXT_CHECK=no
20568fi
20569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20570	CFLAGS="$SAVE_CFLAGS"
20571	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
20572$as_echo_n "checking if RANDR is defined... " >&6; }
20573	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
20574$as_echo "$_EXT_CHECK" >&6; }
20575	if test "$_EXT_CHECK" != no; then
20576		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
20577	fi
20578
20579
20580
20581	SAVE_CFLAGS="$CFLAGS"
20582	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
20583	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20584/* end confdefs.h.  */
20585
20586#include "xorg-server.h"
20587#if !defined RENDER
20588#error RENDER not defined
20589#endif
20590
20591int
20592main ()
20593{
20594
20595  ;
20596  return 0;
20597}
20598_ACEOF
20599if ac_fn_c_try_compile "$LINENO"; then :
20600  _EXT_CHECK=yes
20601else
20602  _EXT_CHECK=no
20603fi
20604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20605	CFLAGS="$SAVE_CFLAGS"
20606	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
20607$as_echo_n "checking if RENDER is defined... " >&6; }
20608	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
20609$as_echo "$_EXT_CHECK" >&6; }
20610	if test "$_EXT_CHECK" != no; then
20611		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
20612	fi
20613
20614
20615
20616	SAVE_CFLAGS="$CFLAGS"
20617	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
20618	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20619/* end confdefs.h.  */
20620
20621#include "xorg-server.h"
20622#if !defined DPMSExtension
20623#error DPMSExtension not defined
20624#endif
20625
20626int
20627main ()
20628{
20629
20630  ;
20631  return 0;
20632}
20633_ACEOF
20634if ac_fn_c_try_compile "$LINENO"; then :
20635  _EXT_CHECK=yes
20636else
20637  _EXT_CHECK=no
20638fi
20639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20640	CFLAGS="$SAVE_CFLAGS"
20641	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
20642$as_echo_n "checking if DPMSExtension is defined... " >&6; }
20643	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
20644$as_echo "$_EXT_CHECK" >&6; }
20645	if test "$_EXT_CHECK" != no; then
20646		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
20647	fi
20648
20649
20650# Obtain compiler/linker options for the driver dependencies
20651
20652pkg_failed=no
20653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRM" >&5
20654$as_echo_n "checking for DRM... " >&6; }
20655
20656if test -n "$DRM_CFLAGS"; then
20657    pkg_cv_DRM_CFLAGS="$DRM_CFLAGS"
20658 elif test -n "$PKG_CONFIG"; then
20659    if test -n "$PKG_CONFIG" && \
20660    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.20\""; } >&5
20661  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.20") 2>&5
20662  ac_status=$?
20663  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20664  test $ac_status = 0; }; then
20665  pkg_cv_DRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.20" 2>/dev/null`
20666		      test "x$?" != "x0" && pkg_failed=yes
20667else
20668  pkg_failed=yes
20669fi
20670 else
20671    pkg_failed=untried
20672fi
20673if test -n "$DRM_LIBS"; then
20674    pkg_cv_DRM_LIBS="$DRM_LIBS"
20675 elif test -n "$PKG_CONFIG"; then
20676    if test -n "$PKG_CONFIG" && \
20677    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.20\""; } >&5
20678  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.20") 2>&5
20679  ac_status=$?
20680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20681  test $ac_status = 0; }; then
20682  pkg_cv_DRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.20" 2>/dev/null`
20683		      test "x$?" != "x0" && pkg_failed=yes
20684else
20685  pkg_failed=yes
20686fi
20687 else
20688    pkg_failed=untried
20689fi
20690
20691
20692
20693if test $pkg_failed = yes; then
20694   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20695$as_echo "no" >&6; }
20696
20697if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20698        _pkg_short_errors_supported=yes
20699else
20700        _pkg_short_errors_supported=no
20701fi
20702        if test $_pkg_short_errors_supported = yes; then
20703	        DRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.20" 2>&1`
20704        else
20705	        DRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.20" 2>&1`
20706        fi
20707	# Put the nasty error message in config.log where it belongs
20708	echo "$DRM_PKG_ERRORS" >&5
20709
20710	as_fn_error $? "Package requirements (libdrm >= 2.4.20) were not met:
20711
20712$DRM_PKG_ERRORS
20713
20714Consider adjusting the PKG_CONFIG_PATH environment variable if you
20715installed software in a non-standard prefix.
20716
20717Alternatively, you may set the environment variables DRM_CFLAGS
20718and DRM_LIBS to avoid the need to call pkg-config.
20719See the pkg-config man page for more details." "$LINENO" 5
20720elif test $pkg_failed = untried; then
20721     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20722$as_echo "no" >&6; }
20723	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20724$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20725as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20726is in your PATH or set the PKG_CONFIG environment variable to the full
20727path to pkg-config.
20728
20729Alternatively, you may set the environment variables DRM_CFLAGS
20730and DRM_LIBS to avoid the need to call pkg-config.
20731See the pkg-config man page for more details.
20732
20733To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20734See \`config.log' for more details" "$LINENO" 5; }
20735else
20736	DRM_CFLAGS=$pkg_cv_DRM_CFLAGS
20737	DRM_LIBS=$pkg_cv_DRM_LIBS
20738        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20739$as_echo "yes" >&6; }
20740
20741fi # libdrm_intel is checked separately
20742
20743pkg_failed=no
20744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
20745$as_echo_n "checking for PCIACCESS... " >&6; }
20746
20747if test -n "$PCIACCESS_CFLAGS"; then
20748    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
20749 elif test -n "$PKG_CONFIG"; then
20750    if test -n "$PKG_CONFIG" && \
20751    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
20752  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
20753  ac_status=$?
20754  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20755  test $ac_status = 0; }; then
20756  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null`
20757		      test "x$?" != "x0" && pkg_failed=yes
20758else
20759  pkg_failed=yes
20760fi
20761 else
20762    pkg_failed=untried
20763fi
20764if test -n "$PCIACCESS_LIBS"; then
20765    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
20766 elif test -n "$PKG_CONFIG"; then
20767    if test -n "$PKG_CONFIG" && \
20768    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
20769  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
20770  ac_status=$?
20771  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20772  test $ac_status = 0; }; then
20773  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null`
20774		      test "x$?" != "x0" && pkg_failed=yes
20775else
20776  pkg_failed=yes
20777fi
20778 else
20779    pkg_failed=untried
20780fi
20781
20782
20783
20784if test $pkg_failed = yes; then
20785   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20786$as_echo "no" >&6; }
20787
20788if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20789        _pkg_short_errors_supported=yes
20790else
20791        _pkg_short_errors_supported=no
20792fi
20793        if test $_pkg_short_errors_supported = yes; then
20794	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1`
20795        else
20796	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1`
20797        fi
20798	# Put the nasty error message in config.log where it belongs
20799	echo "$PCIACCESS_PKG_ERRORS" >&5
20800
20801	as_fn_error $? "Package requirements (pciaccess >= 0.10) were not met:
20802
20803$PCIACCESS_PKG_ERRORS
20804
20805Consider adjusting the PKG_CONFIG_PATH environment variable if you
20806installed software in a non-standard prefix.
20807
20808Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20809and PCIACCESS_LIBS to avoid the need to call pkg-config.
20810See the pkg-config man page for more details." "$LINENO" 5
20811elif test $pkg_failed = untried; then
20812     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20813$as_echo "no" >&6; }
20814	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20815$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20816as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20817is in your PATH or set the PKG_CONFIG environment variable to the full
20818path to pkg-config.
20819
20820Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20821and PCIACCESS_LIBS to avoid the need to call pkg-config.
20822See the pkg-config man page for more details.
20823
20824To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20825See \`config.log' for more details" "$LINENO" 5; }
20826else
20827	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
20828	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
20829        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20830$as_echo "yes" >&6; }
20831
20832fi
20833
20834# Check whether --enable-sna was given.
20835if test "${enable_sna+set}" = set; then :
20836  enableval=$enable_sna; SNA="$enableval"
20837else
20838  SNA=auto
20839fi
20840
20841
20842for ac_header in dev/wscons/wsconsio.h
20843do :
20844  ac_fn_c_check_header_mongrel "$LINENO" "dev/wscons/wsconsio.h" "ac_cv_header_dev_wscons_wsconsio_h" "$ac_includes_default"
20845if test "x$ac_cv_header_dev_wscons_wsconsio_h" = xyes; then :
20846  cat >>confdefs.h <<_ACEOF
20847#define HAVE_DEV_WSCONS_WSCONSIO_H 1
20848_ACEOF
20849
20850fi
20851
20852done
20853
20854ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20855if test "x$ac_cv_type_size_t" = xyes; then :
20856
20857else
20858
20859cat >>confdefs.h <<_ACEOF
20860#define size_t unsigned int
20861_ACEOF
20862
20863fi
20864
20865# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20866# for constant arguments.  Useless!
20867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
20868$as_echo_n "checking for working alloca.h... " >&6; }
20869if ${ac_cv_working_alloca_h+:} false; then :
20870  $as_echo_n "(cached) " >&6
20871else
20872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20873/* end confdefs.h.  */
20874#include <alloca.h>
20875int
20876main ()
20877{
20878char *p = (char *) alloca (2 * sizeof (int));
20879			  if (p) return 0;
20880  ;
20881  return 0;
20882}
20883_ACEOF
20884if ac_fn_c_try_link "$LINENO"; then :
20885  ac_cv_working_alloca_h=yes
20886else
20887  ac_cv_working_alloca_h=no
20888fi
20889rm -f core conftest.err conftest.$ac_objext \
20890    conftest$ac_exeext conftest.$ac_ext
20891fi
20892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
20893$as_echo "$ac_cv_working_alloca_h" >&6; }
20894if test $ac_cv_working_alloca_h = yes; then
20895
20896$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
20897
20898fi
20899
20900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
20901$as_echo_n "checking for alloca... " >&6; }
20902if ${ac_cv_func_alloca_works+:} false; then :
20903  $as_echo_n "(cached) " >&6
20904else
20905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20906/* end confdefs.h.  */
20907#ifdef __GNUC__
20908# define alloca __builtin_alloca
20909#else
20910# ifdef _MSC_VER
20911#  include <malloc.h>
20912#  define alloca _alloca
20913# elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
20914#   include <stdlib.h>
20915# else
20916#  ifdef HAVE_ALLOCA_H
20917#   include <alloca.h>
20918#  else
20919#   ifdef _AIX
20920 #pragma alloca
20921#   else
20922#    ifndef alloca /* predefined by HP cc +Olibcalls */
20923void *alloca (size_t);
20924#    endif
20925#   endif
20926#  endif
20927# endif
20928#endif
20929
20930int
20931main ()
20932{
20933char *p = (char *) alloca (1);
20934				    if (p) return 0;
20935  ;
20936  return 0;
20937}
20938_ACEOF
20939if ac_fn_c_try_link "$LINENO"; then :
20940  ac_cv_func_alloca_works=yes
20941else
20942  ac_cv_func_alloca_works=no
20943fi
20944rm -f core conftest.err conftest.$ac_objext \
20945    conftest$ac_exeext conftest.$ac_ext
20946fi
20947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
20948$as_echo "$ac_cv_func_alloca_works" >&6; }
20949
20950if test $ac_cv_func_alloca_works = yes; then
20951
20952$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20953
20954else
20955  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20956# that cause trouble.  Some versions do not even contain alloca or
20957# contain a buggy version.  If you still want to use their alloca,
20958# use ar to extract alloca.o from them instead of compiling alloca.c.
20959
20960ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
20961
20962$as_echo "#define C_ALLOCA 1" >>confdefs.h
20963
20964
20965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
20966$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
20967if ${ac_cv_os_cray+:} false; then :
20968  $as_echo_n "(cached) " >&6
20969else
20970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20971/* end confdefs.h.  */
20972#if defined CRAY && ! defined CRAY2
20973webecray
20974#else
20975wenotbecray
20976#endif
20977
20978_ACEOF
20979if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20980  $EGREP "webecray" >/dev/null 2>&1; then :
20981  ac_cv_os_cray=yes
20982else
20983  ac_cv_os_cray=no
20984fi
20985rm -f conftest*
20986
20987fi
20988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
20989$as_echo "$ac_cv_os_cray" >&6; }
20990if test $ac_cv_os_cray = yes; then
20991  for ac_func in _getb67 GETB67 getb67; do
20992    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20993ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20994if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20995
20996cat >>confdefs.h <<_ACEOF
20997#define CRAY_STACKSEG_END $ac_func
20998_ACEOF
20999
21000    break
21001fi
21002
21003  done
21004fi
21005
21006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
21007$as_echo_n "checking stack direction for C alloca... " >&6; }
21008if ${ac_cv_c_stack_direction+:} false; then :
21009  $as_echo_n "(cached) " >&6
21010else
21011  if test "$cross_compiling" = yes; then :
21012  ac_cv_c_stack_direction=0
21013else
21014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21015/* end confdefs.h.  */
21016$ac_includes_default
21017int
21018find_stack_direction (int *addr, int depth)
21019{
21020  int dir, dummy = 0;
21021  if (! addr)
21022    addr = &dummy;
21023  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
21024  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
21025  return dir + dummy;
21026}
21027
21028int
21029main (int argc, char **argv)
21030{
21031  return find_stack_direction (0, argc + !argv + 20) < 0;
21032}
21033_ACEOF
21034if ac_fn_c_try_run "$LINENO"; then :
21035  ac_cv_c_stack_direction=1
21036else
21037  ac_cv_c_stack_direction=-1
21038fi
21039rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21040  conftest.$ac_objext conftest.beam conftest.$ac_ext
21041fi
21042
21043fi
21044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
21045$as_echo "$ac_cv_c_stack_direction" >&6; }
21046cat >>confdefs.h <<_ACEOF
21047#define STACK_DIRECTION $ac_cv_c_stack_direction
21048_ACEOF
21049
21050
21051fi
21052
21053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
21054$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
21055if ${ac_cv_header_sys_types_h_makedev+:} false; then :
21056  $as_echo_n "(cached) " >&6
21057else
21058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21059/* end confdefs.h.  */
21060#include <sys/types.h>
21061int
21062main ()
21063{
21064return makedev(0, 0);
21065  ;
21066  return 0;
21067}
21068_ACEOF
21069if ac_fn_c_try_link "$LINENO"; then :
21070  ac_cv_header_sys_types_h_makedev=yes
21071else
21072  ac_cv_header_sys_types_h_makedev=no
21073fi
21074rm -f core conftest.err conftest.$ac_objext \
21075    conftest$ac_exeext conftest.$ac_ext
21076
21077fi
21078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
21079$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
21080
21081if test $ac_cv_header_sys_types_h_makedev = no; then
21082ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
21083if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
21084
21085$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
21086
21087fi
21088
21089
21090
21091  if test $ac_cv_header_sys_mkdev_h = no; then
21092    ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
21093if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
21094
21095$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
21096
21097fi
21098
21099
21100  fi
21101fi
21102
21103
21104if test "x$SNA" != "xno"; then
21105
21106$as_echo "#define USE_SNA 1" >>confdefs.h
21107
21108	for ac_header in sys/sysinfo.h
21109do :
21110  ac_fn_c_check_header_mongrel "$LINENO" "sys/sysinfo.h" "ac_cv_header_sys_sysinfo_h" "$ac_includes_default"
21111if test "x$ac_cv_header_sys_sysinfo_h" = xyes; then :
21112  cat >>confdefs.h <<_ACEOF
21113#define HAVE_SYS_SYSINFO_H 1
21114_ACEOF
21115
21116# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
21117# ----------------------------------------------------
21118# Tries to find if the field MEMBER exists in type AGGR, after including
21119# INCLUDES, setting cache variable VAR accordingly.
21120ac_fn_c_check_member ()
21121{
21122  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21123  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
21124$as_echo_n "checking for $2.$3... " >&6; }
21125if eval \${$4+:} false; then :
21126  $as_echo_n "(cached) " >&6
21127else
21128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21129/* end confdefs.h.  */
21130$5
21131int
21132main ()
21133{
21134static $2 ac_aggr;
21135if (ac_aggr.$3)
21136return 0;
21137  ;
21138  return 0;
21139}
21140_ACEOF
21141if ac_fn_c_try_compile "$LINENO"; then :
21142  eval "$4=yes"
21143else
21144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21145/* end confdefs.h.  */
21146$5
21147int
21148main ()
21149{
21150static $2 ac_aggr;
21151if (sizeof ac_aggr.$3)
21152return 0;
21153  ;
21154  return 0;
21155}
21156_ACEOF
21157if ac_fn_c_try_compile "$LINENO"; then :
21158  eval "$4=yes"
21159else
21160  eval "$4=no"
21161fi
21162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21163fi
21164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21165fi
21166eval ac_res=\$$4
21167	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21168$as_echo "$ac_res" >&6; }
21169  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
21170
21171} # ac_fn_c_check_member
21172ac_fn_c_check_member "$LINENO" "struct sysinfo" "totalram" "ac_cv_member_struct_sysinfo_totalram" "#include <sys/sysinfo.h>
21173"
21174if test "x$ac_cv_member_struct_sysinfo_totalram" = xyes; then :
21175
21176cat >>confdefs.h <<_ACEOF
21177#define HAVE_STRUCT_SYSINFO_TOTALRAM 1
21178_ACEOF
21179
21180
21181fi
21182
21183fi
21184
21185done
21186
21187fi
21188
21189uxa_requires_libdrm=2.4.52
21190uxa_requires_pixman=0.24.0
21191
21192# Check whether --enable-uxa was given.
21193if test "${enable_uxa+set}" = set; then :
21194  enableval=$enable_uxa; UXA="$enableval"
21195else
21196  UXA=auto
21197fi
21198
21199if test "x$UXA" = "xauto"; then
21200	if test -n "$PKG_CONFIG" && \
21201    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_intel >= \$uxa_requires_libdrm pixman-1 >= \$uxa_requires_pixman\""; } >&5
21202  ($PKG_CONFIG --exists --print-errors "libdrm_intel >= $uxa_requires_libdrm pixman-1 >= $uxa_requires_pixman") 2>&5
21203  ac_status=$?
21204  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21205  test $ac_status = 0; }; then
21206  :
21207else
21208  UXA=no
21209fi
21210fi
21211if test "x$UXA" != "xno"; then
21212
21213$as_echo "#define USE_UXA 1" >>confdefs.h
21214
21215
21216pkg_failed=no
21217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRMINTEL" >&5
21218$as_echo_n "checking for DRMINTEL... " >&6; }
21219
21220if test -n "$DRMINTEL_CFLAGS"; then
21221    pkg_cv_DRMINTEL_CFLAGS="$DRMINTEL_CFLAGS"
21222 elif test -n "$PKG_CONFIG"; then
21223    if test -n "$PKG_CONFIG" && \
21224    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_intel >= \$uxa_requires_libdrm\""; } >&5
21225  ($PKG_CONFIG --exists --print-errors "libdrm_intel >= $uxa_requires_libdrm") 2>&5
21226  ac_status=$?
21227  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21228  test $ac_status = 0; }; then
21229  pkg_cv_DRMINTEL_CFLAGS=`$PKG_CONFIG --cflags "libdrm_intel >= $uxa_requires_libdrm" 2>/dev/null`
21230		      test "x$?" != "x0" && pkg_failed=yes
21231else
21232  pkg_failed=yes
21233fi
21234 else
21235    pkg_failed=untried
21236fi
21237if test -n "$DRMINTEL_LIBS"; then
21238    pkg_cv_DRMINTEL_LIBS="$DRMINTEL_LIBS"
21239 elif test -n "$PKG_CONFIG"; then
21240    if test -n "$PKG_CONFIG" && \
21241    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_intel >= \$uxa_requires_libdrm\""; } >&5
21242  ($PKG_CONFIG --exists --print-errors "libdrm_intel >= $uxa_requires_libdrm") 2>&5
21243  ac_status=$?
21244  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21245  test $ac_status = 0; }; then
21246  pkg_cv_DRMINTEL_LIBS=`$PKG_CONFIG --libs "libdrm_intel >= $uxa_requires_libdrm" 2>/dev/null`
21247		      test "x$?" != "x0" && pkg_failed=yes
21248else
21249  pkg_failed=yes
21250fi
21251 else
21252    pkg_failed=untried
21253fi
21254
21255
21256
21257if test $pkg_failed = yes; then
21258   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21259$as_echo "no" >&6; }
21260
21261if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21262        _pkg_short_errors_supported=yes
21263else
21264        _pkg_short_errors_supported=no
21265fi
21266        if test $_pkg_short_errors_supported = yes; then
21267	        DRMINTEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_intel >= $uxa_requires_libdrm" 2>&1`
21268        else
21269	        DRMINTEL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_intel >= $uxa_requires_libdrm" 2>&1`
21270        fi
21271	# Put the nasty error message in config.log where it belongs
21272	echo "$DRMINTEL_PKG_ERRORS" >&5
21273
21274	as_fn_error $? "Package requirements (libdrm_intel >= $uxa_requires_libdrm) were not met:
21275
21276$DRMINTEL_PKG_ERRORS
21277
21278Consider adjusting the PKG_CONFIG_PATH environment variable if you
21279installed software in a non-standard prefix.
21280
21281Alternatively, you may set the environment variables DRMINTEL_CFLAGS
21282and DRMINTEL_LIBS to avoid the need to call pkg-config.
21283See the pkg-config man page for more details." "$LINENO" 5
21284elif test $pkg_failed = untried; then
21285     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21286$as_echo "no" >&6; }
21287	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21288$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21289as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21290is in your PATH or set the PKG_CONFIG environment variable to the full
21291path to pkg-config.
21292
21293Alternatively, you may set the environment variables DRMINTEL_CFLAGS
21294and DRMINTEL_LIBS to avoid the need to call pkg-config.
21295See the pkg-config man page for more details.
21296
21297To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21298See \`config.log' for more details" "$LINENO" 5; }
21299else
21300	DRMINTEL_CFLAGS=$pkg_cv_DRMINTEL_CFLAGS
21301	DRMINTEL_LIBS=$pkg_cv_DRMINTEL_LIBS
21302        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21303$as_echo "yes" >&6; }
21304
21305fi
21306	required_pixman_version=0.24
21307	UXA=yes
21308fi
21309
21310
21311pkg_failed=no
21312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
21313$as_echo_n "checking for XORG... " >&6; }
21314
21315if test -n "$XORG_CFLAGS"; then
21316    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
21317 elif test -n "$PKG_CONFIG"; then
21318    if test -n "$PKG_CONFIG" && \
21319    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= \$required_xorg_server_version xproto fontsproto damageproto pixman-1 >= \$required_pixman_version \$REQUIRED_MODULES\""; } >&5
21320  ($PKG_CONFIG --exists --print-errors "xorg-server >= $required_xorg_server_version xproto fontsproto damageproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES") 2>&5
21321  ac_status=$?
21322  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21323  test $ac_status = 0; }; then
21324  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= $required_xorg_server_version xproto fontsproto damageproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES" 2>/dev/null`
21325		      test "x$?" != "x0" && pkg_failed=yes
21326else
21327  pkg_failed=yes
21328fi
21329 else
21330    pkg_failed=untried
21331fi
21332if test -n "$XORG_LIBS"; then
21333    pkg_cv_XORG_LIBS="$XORG_LIBS"
21334 elif test -n "$PKG_CONFIG"; then
21335    if test -n "$PKG_CONFIG" && \
21336    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= \$required_xorg_server_version xproto fontsproto damageproto pixman-1 >= \$required_pixman_version \$REQUIRED_MODULES\""; } >&5
21337  ($PKG_CONFIG --exists --print-errors "xorg-server >= $required_xorg_server_version xproto fontsproto damageproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES") 2>&5
21338  ac_status=$?
21339  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21340  test $ac_status = 0; }; then
21341  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= $required_xorg_server_version xproto fontsproto damageproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES" 2>/dev/null`
21342		      test "x$?" != "x0" && pkg_failed=yes
21343else
21344  pkg_failed=yes
21345fi
21346 else
21347    pkg_failed=untried
21348fi
21349
21350
21351
21352if test $pkg_failed = yes; then
21353   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21354$as_echo "no" >&6; }
21355
21356if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21357        _pkg_short_errors_supported=yes
21358else
21359        _pkg_short_errors_supported=no
21360fi
21361        if test $_pkg_short_errors_supported = yes; then
21362	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= $required_xorg_server_version xproto fontsproto damageproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES" 2>&1`
21363        else
21364	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= $required_xorg_server_version xproto fontsproto damageproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES" 2>&1`
21365        fi
21366	# Put the nasty error message in config.log where it belongs
21367	echo "$XORG_PKG_ERRORS" >&5
21368
21369	as_fn_error $? "Package requirements (xorg-server >= $required_xorg_server_version xproto fontsproto damageproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES) were not met:
21370
21371$XORG_PKG_ERRORS
21372
21373Consider adjusting the PKG_CONFIG_PATH environment variable if you
21374installed software in a non-standard prefix.
21375
21376Alternatively, you may set the environment variables XORG_CFLAGS
21377and XORG_LIBS to avoid the need to call pkg-config.
21378See the pkg-config man page for more details." "$LINENO" 5
21379elif test $pkg_failed = untried; then
21380     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21381$as_echo "no" >&6; }
21382	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21384as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21385is in your PATH or set the PKG_CONFIG environment variable to the full
21386path to pkg-config.
21387
21388Alternatively, you may set the environment variables XORG_CFLAGS
21389and XORG_LIBS to avoid the need to call pkg-config.
21390See the pkg-config man page for more details.
21391
21392To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21393See \`config.log' for more details" "$LINENO" 5; }
21394else
21395	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
21396	XORG_LIBS=$pkg_cv_XORG_LIBS
21397        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21398$as_echo "yes" >&6; }
21399
21400fi
21401ABI_VERSION=`$PKG_CONFIG --variable=abi_videodrv xorg-server`
21402XSERVER_VERSION=`$PKG_CONFIG --modversion xorg-server`
21403PIXMAN_VERSION=`$PKG_CONFIG --modversion pixman-1`
21404
21405if test "x$ONLY_UMS" = "xyes"; then
21406	UMS="yes"
21407	KMS="no"
21408fi
21409
21410if test "x$ONLY_KMS" = "xyes"; then
21411	UMS="no"
21412	KMS="yes"
21413fi
21414
21415save_CPPFLAGS=$CPPFLAGS
21416CPPFLAGS=$XORG_CFLAGS
21417for ac_header in vgaHW.h
21418do :
21419  ac_fn_c_check_header_mongrel "$LINENO" "vgaHW.h" "ac_cv_header_vgaHW_h" "$ac_includes_default"
21420if test "x$ac_cv_header_vgaHW_h" = xyes; then :
21421  cat >>confdefs.h <<_ACEOF
21422#define HAVE_VGAHW_H 1
21423_ACEOF
21424 legacy="yes"
21425else
21426  legacy="no"
21427fi
21428
21429done
21430
21431CPPFLAGS=$save_CPPFLAGS
21432if test "x$UMS" = "xauto"; then
21433	UMS="$legacy"
21434fi
21435if test "x$UMS" = "xyes" -a "x$legacy" = "xno"; then
21436	as_fn_error $? "vgaHW support required for UMS (i810) driver" "$LINENO" 5
21437fi
21438
21439if test "x$UMS" = "xyes"; then
21440	# Check whether --enable-xaa was given.
21441if test "${enable_xaa+set}" = set; then :
21442  enableval=$enable_xaa; XAA="$enableval"
21443else
21444  XAA="auto"
21445fi
21446
21447	if test "x$XAA" != "xno"; then
21448		save_CPPFLAGS=$CPPFLAGS
21449		CPPFLAGS=$XORG_CFLAGS
21450		for ac_header in xaa.h
21451do :
21452  ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
21453if test "x$ac_cv_header_xaa_h" = xyes; then :
21454  cat >>confdefs.h <<_ACEOF
21455#define HAVE_XAA_H 1
21456_ACEOF
21457 XAA="yes"
21458else
21459  XAA="no"
21460fi
21461
21462done
21463
21464		CPPFLAGS=$save_CPPFLAGS
21465	fi
21466	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
21467$as_echo_n "checking whether to include XAA support... " >&6; }
21468	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
21469$as_echo "$XAA" >&6; }
21470
21471	# Check whether --enable-dga was given.
21472if test "${enable_dga+set}" = set; then :
21473  enableval=$enable_dga; DGA="$enableval"
21474else
21475  DGA="auto"
21476fi
21477
21478	if test "x$DGA" != "xno"; then
21479		save_CFLAGS=$CFLAGS
21480		CFLAGS=$XORG_CFLAGS
21481		for ac_header in dgaproc.h
21482do :
21483  ac_fn_c_check_header_compile "$LINENO" "dgaproc.h" "ac_cv_header_dgaproc_h" "#include <dixstruct.h>
21484"
21485if test "x$ac_cv_header_dgaproc_h" = xyes; then :
21486  cat >>confdefs.h <<_ACEOF
21487#define HAVE_DGAPROC_H 1
21488_ACEOF
21489 DGA="yes"
21490else
21491  DGA="no"
21492fi
21493
21494done
21495
21496		CFLAGS=$save_CFLAGS
21497	fi
21498	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DGA support" >&5
21499$as_echo_n "checking whether to include DGA support... " >&6; }
21500	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DGA" >&5
21501$as_echo "$DGA" >&6; }
21502fi
21503 if test "x$DGA" = "xyes"; then
21504  DGA_TRUE=
21505  DGA_FALSE='#'
21506else
21507  DGA_TRUE='#'
21508  DGA_FALSE=
21509fi
21510
21511 if test "x$XAA" = "xyes"; then
21512  XAA_TRUE=
21513  XAA_FALSE='#'
21514else
21515  XAA_TRUE='#'
21516  XAA_FALSE=
21517fi
21518
21519
21520 if test "x$KMS" = "xyes"; then
21521  KMS_TRUE=
21522  KMS_FALSE='#'
21523else
21524  KMS_TRUE='#'
21525  KMS_FALSE=
21526fi
21527
21528if test "x$KMS" = "xyes"; then
21529
21530$as_echo "#define KMS 1" >>confdefs.h
21531
21532fi
21533 if test "x$UMS" = "xyes"; then
21534  UMS_TRUE=
21535  UMS_FALSE='#'
21536else
21537  UMS_TRUE='#'
21538  UMS_FALSE=
21539fi
21540
21541if test "x$UMS" = "xyes"; then
21542
21543$as_echo "#define UMS 1" >>confdefs.h
21544
21545fi
21546
21547have_dri1=no
21548
21549
21550	SAVE_CFLAGS="$CFLAGS"
21551	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
21552	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21553/* end confdefs.h.  */
21554
21555#include "xorg-server.h"
21556#if !defined XF86DRI
21557#error XF86DRI not defined
21558#endif
21559
21560int
21561main ()
21562{
21563
21564  ;
21565  return 0;
21566}
21567_ACEOF
21568if ac_fn_c_try_compile "$LINENO"; then :
21569  _EXT_CHECK=yes
21570else
21571  _EXT_CHECK=no
21572fi
21573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21574	CFLAGS="$SAVE_CFLAGS"
21575	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XF86DRI is defined" >&5
21576$as_echo_n "checking if XF86DRI is defined... " >&6; }
21577	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
21578$as_echo "$_EXT_CHECK" >&6; }
21579	if test "$_EXT_CHECK" != no; then
21580		REQUIRED_MODULES="$REQUIRED_MODULES xf86driproto"
21581	fi
21582
21583if test "x$_EXT_CHECK" != "xno" -a "x$DRI" != "xno" -a "x$DRI1" != "xno" -a "x$UMS" = "xyes"; then
21584
21585pkg_failed=no
21586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI1" >&5
21587$as_echo_n "checking for DRI1... " >&6; }
21588
21589if test -n "$DRI1_CFLAGS"; then
21590    pkg_cv_DRI1_CFLAGS="$DRI1_CFLAGS"
21591 elif test -n "$PKG_CONFIG"; then
21592    if test -n "$PKG_CONFIG" && \
21593    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86driproto\""; } >&5
21594  ($PKG_CONFIG --exists --print-errors "xf86driproto") 2>&5
21595  ac_status=$?
21596  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21597  test $ac_status = 0; }; then
21598  pkg_cv_DRI1_CFLAGS=`$PKG_CONFIG --cflags "xf86driproto" 2>/dev/null`
21599		      test "x$?" != "x0" && pkg_failed=yes
21600else
21601  pkg_failed=yes
21602fi
21603 else
21604    pkg_failed=untried
21605fi
21606if test -n "$DRI1_LIBS"; then
21607    pkg_cv_DRI1_LIBS="$DRI1_LIBS"
21608 elif test -n "$PKG_CONFIG"; then
21609    if test -n "$PKG_CONFIG" && \
21610    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86driproto\""; } >&5
21611  ($PKG_CONFIG --exists --print-errors "xf86driproto") 2>&5
21612  ac_status=$?
21613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21614  test $ac_status = 0; }; then
21615  pkg_cv_DRI1_LIBS=`$PKG_CONFIG --libs "xf86driproto" 2>/dev/null`
21616		      test "x$?" != "x0" && pkg_failed=yes
21617else
21618  pkg_failed=yes
21619fi
21620 else
21621    pkg_failed=untried
21622fi
21623
21624
21625
21626if test $pkg_failed = yes; then
21627   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21628$as_echo "no" >&6; }
21629
21630if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21631        _pkg_short_errors_supported=yes
21632else
21633        _pkg_short_errors_supported=no
21634fi
21635        if test $_pkg_short_errors_supported = yes; then
21636	        DRI1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xf86driproto" 2>&1`
21637        else
21638	        DRI1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xf86driproto" 2>&1`
21639        fi
21640	# Put the nasty error message in config.log where it belongs
21641	echo "$DRI1_PKG_ERRORS" >&5
21642
21643	have_dri1=no
21644elif test $pkg_failed = untried; then
21645     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21646$as_echo "no" >&6; }
21647	have_dri1=no
21648else
21649	DRI1_CFLAGS=$pkg_cv_DRI1_CFLAGS
21650	DRI1_LIBS=$pkg_cv_DRI1_LIBS
21651        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21652$as_echo "yes" >&6; }
21653	have_dri1=$DRI
21654fi
21655        save_CFLAGS="$CFLAGS"
21656        save_CPPFLAGS="$CPPFLAGS"
21657        CFLAGS="$CFLAGS $XORG_CFLAGS $DRI1_CFLAGS $DRM_CFLAGS"
21658        CPPFLAGS="$CPPFLAGS $XORG_CFLAGS $DRI1_CFLAGS $DRM_CFLAGS"
21659        for ac_header in dri.h sarea.h dristruct.h
21660do :
21661  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21662ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "/* for dri.h */
21663                 #include <xf86str.h>
21664                 /* for dristruct.h */
21665                 #include <xorg-server.h>
21666                 #ifdef HAVE_DRI_H
21667                 # include <dri.h>
21668                 #endif
21669                 #ifdef HAVE_SAREA_H
21670                 # include <sarea.h>
21671                 #endif
21672
21673"
21674if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21675  cat >>confdefs.h <<_ACEOF
21676#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21677_ACEOF
21678
21679else
21680  have_dri1=no
21681fi
21682
21683done
21684
21685        CFLAGS="$save_CFLAGS"
21686        CPPFLAGS="$save_CPPFLAGS"
21687fi
21688
21689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI1 support" >&5
21690$as_echo_n "checking whether to include DRI1 support... " >&6; }
21691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dri1" >&5
21692$as_echo "$have_dri1" >&6; }
21693
21694 if test "x$have_dri1" != "xno"; then
21695  DRI1_TRUE=
21696  DRI1_FALSE='#'
21697else
21698  DRI1_TRUE='#'
21699  DRI1_FALSE=
21700fi
21701
21702if test "x$have_dri1" != "xno"; then
21703
21704$as_echo "#define HAVE_DRI1 1" >>confdefs.h
21705
21706	str="DRI1"
21707	if test "x$DRI_DEFAULT" = "x1"; then
21708
21709$as_echo "#define DEFAULT_DRI_LEVEL 1" >>confdefs.h
21710
21711		str="*$str"
21712	fi
21713	dri_msg="$dri_msg $str"
21714else
21715        DRI1_CFLAGS=""
21716        DRI1_LIBS=""
21717
21718        if test "x$DRI" = "xyes" -a "x$UMS" = "xyes" -a "x$DRI1" != "xno"; then
21719                as_fn_error $? "DRI1 requested but prerequisites not found" "$LINENO" 5
21720        fi
21721fi
21722
21723have_dri2=no
21724have_dri3=no
21725if test "x$DRI" != "xno"; then
21726	if test "x$DRI2" != "xno"; then
21727
21728pkg_failed=no
21729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI2" >&5
21730$as_echo_n "checking for DRI2... " >&6; }
21731
21732if test -n "$DRI2_CFLAGS"; then
21733    pkg_cv_DRI2_CFLAGS="$DRI2_CFLAGS"
21734 elif test -n "$PKG_CONFIG"; then
21735    if test -n "$PKG_CONFIG" && \
21736    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri2proto >= 2.6\""; } >&5
21737  ($PKG_CONFIG --exists --print-errors "dri2proto >= 2.6") 2>&5
21738  ac_status=$?
21739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21740  test $ac_status = 0; }; then
21741  pkg_cv_DRI2_CFLAGS=`$PKG_CONFIG --cflags "dri2proto >= 2.6" 2>/dev/null`
21742		      test "x$?" != "x0" && pkg_failed=yes
21743else
21744  pkg_failed=yes
21745fi
21746 else
21747    pkg_failed=untried
21748fi
21749if test -n "$DRI2_LIBS"; then
21750    pkg_cv_DRI2_LIBS="$DRI2_LIBS"
21751 elif test -n "$PKG_CONFIG"; then
21752    if test -n "$PKG_CONFIG" && \
21753    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri2proto >= 2.6\""; } >&5
21754  ($PKG_CONFIG --exists --print-errors "dri2proto >= 2.6") 2>&5
21755  ac_status=$?
21756  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21757  test $ac_status = 0; }; then
21758  pkg_cv_DRI2_LIBS=`$PKG_CONFIG --libs "dri2proto >= 2.6" 2>/dev/null`
21759		      test "x$?" != "x0" && pkg_failed=yes
21760else
21761  pkg_failed=yes
21762fi
21763 else
21764    pkg_failed=untried
21765fi
21766
21767
21768
21769if test $pkg_failed = yes; then
21770   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21771$as_echo "no" >&6; }
21772
21773if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21774        _pkg_short_errors_supported=yes
21775else
21776        _pkg_short_errors_supported=no
21777fi
21778        if test $_pkg_short_errors_supported = yes; then
21779	        DRI2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dri2proto >= 2.6" 2>&1`
21780        else
21781	        DRI2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dri2proto >= 2.6" 2>&1`
21782        fi
21783	# Put the nasty error message in config.log where it belongs
21784	echo "$DRI2_PKG_ERRORS" >&5
21785
21786	have_dri2=no
21787elif test $pkg_failed = untried; then
21788     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21789$as_echo "no" >&6; }
21790	have_dri2=no
21791else
21792	DRI2_CFLAGS=$pkg_cv_DRI2_CFLAGS
21793	DRI2_LIBS=$pkg_cv_DRI2_LIBS
21794        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21795$as_echo "yes" >&6; }
21796	have_dri2=$DRI
21797fi
21798	fi
21799	if test "x$have_dri2" != "xno"; then
21800		save_CFLAGS=$CFLAGS
21801		CFLAGS="$XORG_CFLAGS $DRM_CFLAGS $DRI1_CFLAGS $DRI2_CFLAGS"
21802		for ac_header in dri2.h
21803do :
21804  ac_fn_c_check_header_compile "$LINENO" "dri2.h" "ac_cv_header_dri2_h" "
21805#include <dixstruct.h>
21806#include <drm.h>
21807
21808"
21809if test "x$ac_cv_header_dri2_h" = xyes; then :
21810  cat >>confdefs.h <<_ACEOF
21811#define HAVE_DRI2_H 1
21812_ACEOF
21813
21814else
21815  have_dri2=no
21816fi
21817
21818done
21819
21820		CFLAGS=$save_CFLAGS
21821	fi
21822	if test "x$have_dri2" != "xno"; then
21823		dridriverdir=`$PKG_CONFIG --variable=dridriverdir dri`
21824		if test "x$dridriverdir" = "x"; then
21825			dridriverdir="$libdir/dri"
21826		fi
21827
21828  prefix_NONE=
21829  exec_prefix_NONE=
21830  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21831  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21832  eval ac_define_dir="\"$dridriverdir\""
21833  eval ac_define_dir="\"$ac_define_dir\""
21834  DRI_DRIVER_PATH="$ac_define_dir"
21835
21836
21837cat >>confdefs.h <<_ACEOF
21838#define DRI_DRIVER_PATH "$ac_define_dir"
21839_ACEOF
21840
21841  test "$prefix_NONE" && prefix=NONE
21842  test "$exec_prefix_NONE" && exec_prefix=NONE
21843
21844	fi
21845
21846	if test "x$DRI3" != "xno"; then
21847
21848
21849	SAVE_CFLAGS="$CFLAGS"
21850	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
21851	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21852/* end confdefs.h.  */
21853
21854#include "xorg-server.h"
21855#if !defined DRI3
21856#error DRI3 not defined
21857#endif
21858
21859int
21860main ()
21861{
21862
21863  ;
21864  return 0;
21865}
21866_ACEOF
21867if ac_fn_c_try_compile "$LINENO"; then :
21868  _EXT_CHECK=yes
21869else
21870  _EXT_CHECK=no
21871fi
21872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21873	CFLAGS="$SAVE_CFLAGS"
21874	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DRI3 is defined" >&5
21875$as_echo_n "checking if DRI3 is defined... " >&6; }
21876	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
21877$as_echo "$_EXT_CHECK" >&6; }
21878	if test "$_EXT_CHECK" != no; then
21879		REQUIRED_MODULES="$REQUIRED_MODULES dri3proto"
21880	fi
21881
21882		if test "x$_EXT_CHECK" != "xno"; then
21883
21884pkg_failed=no
21885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI3" >&5
21886$as_echo_n "checking for DRI3... " >&6; }
21887
21888if test -n "$DRI3_CFLAGS"; then
21889    pkg_cv_DRI3_CFLAGS="$DRI3_CFLAGS"
21890 elif test -n "$PKG_CONFIG"; then
21891    if test -n "$PKG_CONFIG" && \
21892    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri3proto\""; } >&5
21893  ($PKG_CONFIG --exists --print-errors "dri3proto") 2>&5
21894  ac_status=$?
21895  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21896  test $ac_status = 0; }; then
21897  pkg_cv_DRI3_CFLAGS=`$PKG_CONFIG --cflags "dri3proto" 2>/dev/null`
21898		      test "x$?" != "x0" && pkg_failed=yes
21899else
21900  pkg_failed=yes
21901fi
21902 else
21903    pkg_failed=untried
21904fi
21905if test -n "$DRI3_LIBS"; then
21906    pkg_cv_DRI3_LIBS="$DRI3_LIBS"
21907 elif test -n "$PKG_CONFIG"; then
21908    if test -n "$PKG_CONFIG" && \
21909    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri3proto\""; } >&5
21910  ($PKG_CONFIG --exists --print-errors "dri3proto") 2>&5
21911  ac_status=$?
21912  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21913  test $ac_status = 0; }; then
21914  pkg_cv_DRI3_LIBS=`$PKG_CONFIG --libs "dri3proto" 2>/dev/null`
21915		      test "x$?" != "x0" && pkg_failed=yes
21916else
21917  pkg_failed=yes
21918fi
21919 else
21920    pkg_failed=untried
21921fi
21922
21923
21924
21925if test $pkg_failed = yes; then
21926   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21927$as_echo "no" >&6; }
21928
21929if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21930        _pkg_short_errors_supported=yes
21931else
21932        _pkg_short_errors_supported=no
21933fi
21934        if test $_pkg_short_errors_supported = yes; then
21935	        DRI3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dri3proto" 2>&1`
21936        else
21937	        DRI3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dri3proto" 2>&1`
21938        fi
21939	# Put the nasty error message in config.log where it belongs
21940	echo "$DRI3_PKG_ERRORS" >&5
21941
21942	as_fn_error $? "Package requirements (dri3proto) were not met:
21943
21944$DRI3_PKG_ERRORS
21945
21946Consider adjusting the PKG_CONFIG_PATH environment variable if you
21947installed software in a non-standard prefix.
21948
21949Alternatively, you may set the environment variables DRI3_CFLAGS
21950and DRI3_LIBS to avoid the need to call pkg-config.
21951See the pkg-config man page for more details." "$LINENO" 5
21952elif test $pkg_failed = untried; then
21953     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21954$as_echo "no" >&6; }
21955	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21956$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21957as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21958is in your PATH or set the PKG_CONFIG environment variable to the full
21959path to pkg-config.
21960
21961Alternatively, you may set the environment variables DRI3_CFLAGS
21962and DRI3_LIBS to avoid the need to call pkg-config.
21963See the pkg-config man page for more details.
21964
21965To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21966See \`config.log' for more details" "$LINENO" 5; }
21967else
21968	DRI3_CFLAGS=$pkg_cv_DRI3_CFLAGS
21969	DRI3_LIBS=$pkg_cv_DRI3_LIBS
21970        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21971$as_echo "yes" >&6; }
21972	have_dri3=$DRI
21973fi
21974		fi
21975	fi
21976	if test "x$have_dri3" != "xno"; then
21977		save_CFLAGS=$CFLAGS
21978		CFLAGS="$XORG_CFLAGS $DRI3_CFLAGS"
21979		ac_fn_c_check_decl "$LINENO" "DRI3" "ac_cv_have_decl_DRI3" "#include <xorg-server.h>
21980"
21981if test "x$ac_cv_have_decl_DRI3" = xyes; then :
21982
21983else
21984  have_dri3=no
21985fi
21986
21987		for ac_header in misyncstr.h misyncshm.h
21988do :
21989  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21990ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
21991#include <xorg-server.h>
21992#include <xf86str.h>
21993#include <misync.h>
21994
21995"
21996if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21997  cat >>confdefs.h <<_ACEOF
21998#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21999_ACEOF
22000
22001else
22002  have_dri3=no
22003fi
22004
22005done
22006
22007		CFLAGS=$save_CFLAGS
22008	fi
22009fi
22010
22011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI2 support" >&5
22012$as_echo_n "checking whether to include DRI2 support... " >&6; }
22013 if test "x$have_dri2" != "xno"; then
22014  DRI2_TRUE=
22015  DRI2_FALSE='#'
22016else
22017  DRI2_TRUE='#'
22018  DRI2_FALSE=
22019fi
22020
22021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dri2" >&5
22022$as_echo "$have_dri2" >&6; }
22023if test "x$have_dri2" != "xno"; then
22024
22025$as_echo "#define HAVE_DRI2 1" >>confdefs.h
22026
22027	str="DRI2"
22028	if test "x$DRI_DEFAULT" = "x2"; then
22029
22030$as_echo "#define DEFAULT_DRI_LEVEL 2" >>confdefs.h
22031
22032		str="*$str"
22033	fi
22034	dri_msg="$dri_msg $str"
22035else
22036	if test "x$DRI" = "xyes" -a "x$DRI2" != "xno" -a "x$KMS" = "xyes"; then
22037		as_fn_error $? "DRI2 requested but prerequisites not found" "$LINENO" 5
22038	fi
22039
22040	# UXA doesn't build without DRI2 headers, too late to fix
22041	UXA=no
22042fi
22043
22044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI3 support" >&5
22045$as_echo_n "checking whether to include DRI3 support... " >&6; }
22046 if test "x$have_dri3" != "xno"; then
22047  DRI3_TRUE=
22048  DRI3_FALSE='#'
22049else
22050  DRI3_TRUE='#'
22051  DRI3_FALSE=
22052fi
22053
22054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dri3" >&5
22055$as_echo "$have_dri3" >&6; }
22056if test "x$have_dri3" != "xno"; then
22057
22058$as_echo "#define HAVE_DRI3 1" >>confdefs.h
22059
22060	str="DRI3"
22061	if test "x$DRI_DEFAULT" = "x3"; then
22062
22063$as_echo "#define DEFAULT_DRI_LEVEL 3" >>confdefs.h
22064
22065		str="*$str"
22066	fi
22067	dri_msg="$dri_msg $str"
22068else
22069	if test "x$DRI" = "xyes" -a "x$DRI3" != "xno" -a "x$KMS" = "xyes"; then
22070		as_fn_error $? "DRI3 requested but prerequisites not found" "$LINENO" 5
22071	fi
22072fi
22073
22074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default DRI support" >&5
22075$as_echo_n "checking default DRI support... " >&6; }
22076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_DRI_DEFAULT" >&5
22077$as_echo "$DEFAULT_DRI_DEFAULT" >&6; }
22078
22079for ac_header in X11/extensions/dpmsconst.h
22080do :
22081  ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/dpmsconst.h" "ac_cv_header_X11_extensions_dpmsconst_h" "$ac_includes_default"
22082if test "x$ac_cv_header_X11_extensions_dpmsconst_h" = xyes; then :
22083  cat >>confdefs.h <<_ACEOF
22084#define HAVE_X11_EXTENSIONS_DPMSCONST_H 1
22085_ACEOF
22086
22087fi
22088
22089done
22090
22091
22092PRESENT="no"
22093
22094
22095	SAVE_CFLAGS="$CFLAGS"
22096	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
22097	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22098/* end confdefs.h.  */
22099
22100#include "xorg-server.h"
22101#if !defined PRESENT
22102#error PRESENT not defined
22103#endif
22104
22105int
22106main ()
22107{
22108
22109  ;
22110  return 0;
22111}
22112_ACEOF
22113if ac_fn_c_try_compile "$LINENO"; then :
22114  _EXT_CHECK=yes
22115else
22116  _EXT_CHECK=no
22117fi
22118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22119	CFLAGS="$SAVE_CFLAGS"
22120	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if PRESENT is defined" >&5
22121$as_echo_n "checking if PRESENT is defined... " >&6; }
22122	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
22123$as_echo "$_EXT_CHECK" >&6; }
22124	if test "$_EXT_CHECK" != no; then
22125		REQUIRED_MODULES="$REQUIRED_MODULES presentproto"
22126	fi
22127
22128if test "x$_EXT_CHECK" != "xno"; then
22129
22130pkg_failed=no
22131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRESENT" >&5
22132$as_echo_n "checking for PRESENT... " >&6; }
22133
22134if test -n "$PRESENT_CFLAGS"; then
22135    pkg_cv_PRESENT_CFLAGS="$PRESENT_CFLAGS"
22136 elif test -n "$PKG_CONFIG"; then
22137    if test -n "$PKG_CONFIG" && \
22138    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"presentproto\""; } >&5
22139  ($PKG_CONFIG --exists --print-errors "presentproto") 2>&5
22140  ac_status=$?
22141  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22142  test $ac_status = 0; }; then
22143  pkg_cv_PRESENT_CFLAGS=`$PKG_CONFIG --cflags "presentproto" 2>/dev/null`
22144		      test "x$?" != "x0" && pkg_failed=yes
22145else
22146  pkg_failed=yes
22147fi
22148 else
22149    pkg_failed=untried
22150fi
22151if test -n "$PRESENT_LIBS"; then
22152    pkg_cv_PRESENT_LIBS="$PRESENT_LIBS"
22153 elif test -n "$PKG_CONFIG"; then
22154    if test -n "$PKG_CONFIG" && \
22155    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"presentproto\""; } >&5
22156  ($PKG_CONFIG --exists --print-errors "presentproto") 2>&5
22157  ac_status=$?
22158  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22159  test $ac_status = 0; }; then
22160  pkg_cv_PRESENT_LIBS=`$PKG_CONFIG --libs "presentproto" 2>/dev/null`
22161		      test "x$?" != "x0" && pkg_failed=yes
22162else
22163  pkg_failed=yes
22164fi
22165 else
22166    pkg_failed=untried
22167fi
22168
22169
22170
22171if test $pkg_failed = yes; then
22172   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22173$as_echo "no" >&6; }
22174
22175if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22176        _pkg_short_errors_supported=yes
22177else
22178        _pkg_short_errors_supported=no
22179fi
22180        if test $_pkg_short_errors_supported = yes; then
22181	        PRESENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "presentproto" 2>&1`
22182        else
22183	        PRESENT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "presentproto" 2>&1`
22184        fi
22185	# Put the nasty error message in config.log where it belongs
22186	echo "$PRESENT_PKG_ERRORS" >&5
22187
22188	as_fn_error $? "Package requirements (presentproto) were not met:
22189
22190$PRESENT_PKG_ERRORS
22191
22192Consider adjusting the PKG_CONFIG_PATH environment variable if you
22193installed software in a non-standard prefix.
22194
22195Alternatively, you may set the environment variables PRESENT_CFLAGS
22196and PRESENT_LIBS to avoid the need to call pkg-config.
22197See the pkg-config man page for more details." "$LINENO" 5
22198elif test $pkg_failed = untried; then
22199     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22200$as_echo "no" >&6; }
22201	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22203as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22204is in your PATH or set the PKG_CONFIG environment variable to the full
22205path to pkg-config.
22206
22207Alternatively, you may set the environment variables PRESENT_CFLAGS
22208and PRESENT_LIBS to avoid the need to call pkg-config.
22209See the pkg-config man page for more details.
22210
22211To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22212See \`config.log' for more details" "$LINENO" 5; }
22213else
22214	PRESENT_CFLAGS=$pkg_cv_PRESENT_CFLAGS
22215	PRESENT_LIBS=$pkg_cv_PRESENT_LIBS
22216        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22217$as_echo "yes" >&6; }
22218	PRESENT="yes"
22219fi
22220fi
22221if test "x$PRESENT" != "xno"; then
22222	save_CFLAGS=$CFLAGS
22223	CFLAGS="$XORG_CFLAGS $PRESENT_CFLAGS"
22224	for ac_header in present.h
22225do :
22226  ac_fn_c_check_header_compile "$LINENO" "present.h" "ac_cv_header_present_h" "
22227#include <xorg-server.h>
22228#include <xf86str.h>
22229
22230"
22231if test "x$ac_cv_header_present_h" = xyes; then :
22232  cat >>confdefs.h <<_ACEOF
22233#define HAVE_PRESENT_H 1
22234_ACEOF
22235
22236else
22237  PRESENT="no"
22238fi
22239
22240done
22241
22242	CFLAGS=$save_CFLAGS
22243fi
22244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include PRESENT support" >&5
22245$as_echo_n "checking whether to include PRESENT support... " >&6; }
22246 if test "x$PRESENT" != "xno"; then
22247  PRESENT_TRUE=
22248  PRESENT_FALSE='#'
22249else
22250  PRESENT_TRUE='#'
22251  PRESENT_FALSE=
22252fi
22253
22254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRESENT" >&5
22255$as_echo "$PRESENT" >&6; }
22256if test "x$PRESENT" != "xno"; then
22257
22258$as_echo "#define HAVE_PRESENT 1" >>confdefs.h
22259
22260	dri_msg="$dri_msg Present"
22261fi
22262
22263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include UXA support" >&5
22264$as_echo_n "checking whether to include UXA support... " >&6; }
22265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UXA" >&5
22266$as_echo "$UXA" >&6; }
22267 if test "x$UXA" != "xno"; then
22268  UXA_TRUE=
22269  UXA_FALSE='#'
22270else
22271  UXA_TRUE='#'
22272  UXA_FALSE=
22273fi
22274
22275
22276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include SNA support" >&5
22277$as_echo_n "checking whether to include SNA support... " >&6; }
22278 if test "x$SNA" != "xno"; then
22279  SNA_TRUE=
22280  SNA_FALSE='#'
22281else
22282  SNA_TRUE='#'
22283  SNA_FALSE=
22284fi
22285
22286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNA" >&5
22287$as_echo "$SNA" >&6; }
22288
22289if test "$XVMC" = "yes"; then
22290
22291pkg_failed=no
22292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XVMCLIB" >&5
22293$as_echo_n "checking for XVMCLIB... " >&6; }
22294
22295if test -n "$XVMCLIB_CFLAGS"; then
22296    pkg_cv_XVMCLIB_CFLAGS="$XVMCLIB_CFLAGS"
22297 elif test -n "$PKG_CONFIG"; then
22298    if test -n "$PKG_CONFIG" && \
22299    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel\""; } >&5
22300  ($PKG_CONFIG --exists --print-errors "xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel") 2>&5
22301  ac_status=$?
22302  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22303  test $ac_status = 0; }; then
22304  pkg_cv_XVMCLIB_CFLAGS=`$PKG_CONFIG --cflags "xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel" 2>/dev/null`
22305		      test "x$?" != "x0" && pkg_failed=yes
22306else
22307  pkg_failed=yes
22308fi
22309 else
22310    pkg_failed=untried
22311fi
22312if test -n "$XVMCLIB_LIBS"; then
22313    pkg_cv_XVMCLIB_LIBS="$XVMCLIB_LIBS"
22314 elif test -n "$PKG_CONFIG"; then
22315    if test -n "$PKG_CONFIG" && \
22316    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel\""; } >&5
22317  ($PKG_CONFIG --exists --print-errors "xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel") 2>&5
22318  ac_status=$?
22319  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22320  test $ac_status = 0; }; then
22321  pkg_cv_XVMCLIB_LIBS=`$PKG_CONFIG --libs "xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel" 2>/dev/null`
22322		      test "x$?" != "x0" && pkg_failed=yes
22323else
22324  pkg_failed=yes
22325fi
22326 else
22327    pkg_failed=untried
22328fi
22329
22330
22331
22332if test $pkg_failed = yes; then
22333   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22334$as_echo "no" >&6; }
22335
22336if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22337        _pkg_short_errors_supported=yes
22338else
22339        _pkg_short_errors_supported=no
22340fi
22341        if test $_pkg_short_errors_supported = yes; then
22342	        XVMCLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel" 2>&1`
22343        else
22344	        XVMCLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel" 2>&1`
22345        fi
22346	# Put the nasty error message in config.log where it belongs
22347	echo "$XVMCLIB_PKG_ERRORS" >&5
22348
22349	XVMC="no"
22350elif test $pkg_failed = untried; then
22351     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22352$as_echo "no" >&6; }
22353	XVMC="no"
22354else
22355	XVMCLIB_CFLAGS=$pkg_cv_XVMCLIB_CFLAGS
22356	XVMCLIB_LIBS=$pkg_cv_XVMCLIB_LIBS
22357        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22358$as_echo "yes" >&6; }
22359
22360fi
22361fi
22362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XvMC support" >&5
22363$as_echo_n "checking whether to include XvMC support... " >&6; }
22364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XVMC" >&5
22365$as_echo "$XVMC" >&6; }
22366 if test "x$XVMC" = "xyes"; then
22367  XVMC_TRUE=
22368  XVMC_FALSE='#'
22369else
22370  XVMC_TRUE='#'
22371  XVMC_FALSE=
22372fi
22373
22374if test "x$XVMC" = "xyes"; then
22375
22376$as_echo "#define ENABLE_XVMC 1" >>confdefs.h
22377
22378	xvmc_msg=" yes"
22379else
22380	xvmc_msg=" no"
22381fi
22382
22383
22384
22385# Check whether --with-default-accel was given.
22386if test "${with_default_accel+set}" = set; then :
22387  withval=$with_default_accel; accel="$withval"
22388else
22389  accel="auto"
22390fi
22391
22392if test "x$accel" = "xyes"; then
22393	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No default acceleration specified, choosing automatic selection" >&5
22394$as_echo "$as_me: WARNING: No default acceleration specified, choosing automatic selection" >&2;}
22395	accel="auto"
22396fi
22397
22398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which acceleration method to use by default" >&5
22399$as_echo_n "checking which acceleration method to use by default... " >&6; }
22400if test "x$accel" = "xauto"; then
22401	if test "x$SNA" != "xno"; then
22402		accel="sna"
22403	else
22404		if test "x$UXA" != "xno"; then
22405			accel="uxa"
22406		fi
22407	fi
22408	if test "x$accel" = "xauto" -a "x$KMS" = "xyes"; then
22409		as_fn_error $? "No default acceleration option" "$LINENO" 5
22410	fi
22411fi
22412
22413have_accel="none"
22414if test "x$accel" = "xsna"; then
22415	if test "x$SNA" != "xno"; then
22416
22417$as_echo "#define DEFAULT_ACCEL_METHOD SNA" >>confdefs.h
22418
22419		have_accel="yes"
22420	else
22421		as_fn_error $? "SNA requested as default, but is not enabled" "$LINENO" 5
22422	fi
22423fi
22424
22425if test "x$accel" = "xuxa"; then
22426	if test "x$UXA" != "xno"; then
22427
22428$as_echo "#define DEFAULT_ACCEL_METHOD UXA" >>confdefs.h
22429
22430		have_accel="yes"
22431	else
22432		as_fn_error $? "UXA requested as default, but is not enabled" "$LINENO" 5
22433	fi
22434fi
22435
22436if test "x$have_accel" = "xnone"; then
22437	if test "x$KMS" = "xyes"; then
22438		if test "x$SNA" != "xno" -o "x$UXA" != "xno"; then
22439
22440$as_echo "#define DEFAULT_ACCEL_METHOD NOACCEL" >>confdefs.h
22441
22442		else
22443			as_fn_error $? "Invalid default acceleration option" "$LINENO" 5
22444		fi
22445	fi
22446	accel="none"
22447fi
22448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $accel" >&5
22449$as_echo "$accel" >&6; }
22450
22451xp_msg=""
22452
22453# Check whether --enable-tear-free was given.
22454if test "${enable_tear_free+set}" = set; then :
22455  enableval=$enable_tear_free; TEARFREE="$enableval"
22456else
22457  TEARFREE="no"
22458fi
22459
22460if test "x$TEARFREE" = "xyes"; then
22461
22462$as_echo "#define TEARFREE 1" >>confdefs.h
22463
22464	xp_msg="$xp_msg TearFree"
22465fi
22466
22467# Check whether --enable-create2 was given.
22468if test "${enable_create2+set}" = set; then :
22469  enableval=$enable_create2; CREATE2="$enableval"
22470else
22471  CREATE2="no"
22472fi
22473
22474 if test "x$CREATE2" = "xyes"; then
22475  USE_CREATE2_TRUE=
22476  USE_CREATE2_FALSE='#'
22477else
22478  USE_CREATE2_TRUE='#'
22479  USE_CREATE2_FALSE=
22480fi
22481
22482if test "x$CREATE2" = "xyes"; then
22483
22484$as_echo "#define USE_CREATE2 1" >>confdefs.h
22485
22486	xp_msg="$xp_msg create2"
22487fi
22488
22489# Check whether --enable-async-swap was given.
22490if test "${enable_async_swap+set}" = set; then :
22491  enableval=$enable_async_swap; ASYNC_SWAP="$enableval"
22492else
22493  ASYNC_SWAP="no"
22494fi
22495
22496 if test "x$ASYNC_SWAP" = "xyes"; then
22497  USE_ASYNC_SWAP_TRUE=
22498  USE_ASYNC_SWAP_FALSE='#'
22499else
22500  USE_ASYNC_SWAP_TRUE='#'
22501  USE_ASYNC_SWAP_FALSE=
22502fi
22503
22504if test "x$ASYNC_SWAP" = "xyes"; then
22505
22506$as_echo "#define USE_ASYNC_SWAP 1" >>confdefs.h
22507
22508	xp_msg="$xp_msg async-swap"
22509fi
22510
22511# Check whether --enable-debug was given.
22512if test "${enable_debug+set}" = set; then :
22513  enableval=$enable_debug; DEBUG="$enableval"
22514else
22515  DEBUG="no"
22516fi
22517
22518# Check whether --enable-valgrind was given.
22519if test "${enable_valgrind+set}" = set; then :
22520  enableval=$enable_valgrind; VG="$enableval"
22521else
22522  VG="no"
22523fi
22524
22525
22526LIBS=""
22527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
22528$as_echo_n "checking for library containing clock_gettime... " >&6; }
22529if ${ac_cv_search_clock_gettime+:} false; then :
22530  $as_echo_n "(cached) " >&6
22531else
22532  ac_func_search_save_LIBS=$LIBS
22533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22534/* end confdefs.h.  */
22535
22536/* Override any GCC internal prototype to avoid an error.
22537   Use char because int might match the return type of a GCC
22538   builtin and then its argument prototype would still apply.  */
22539#ifdef __cplusplus
22540extern "C"
22541#endif
22542char clock_gettime ();
22543int
22544main ()
22545{
22546return clock_gettime ();
22547  ;
22548  return 0;
22549}
22550_ACEOF
22551for ac_lib in '' rt; do
22552  if test -z "$ac_lib"; then
22553    ac_res="none required"
22554  else
22555    ac_res=-l$ac_lib
22556    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22557  fi
22558  if ac_fn_c_try_link "$LINENO"; then :
22559  ac_cv_search_clock_gettime=$ac_res
22560fi
22561rm -f core conftest.err conftest.$ac_objext \
22562    conftest$ac_exeext
22563  if ${ac_cv_search_clock_gettime+:} false; then :
22564  break
22565fi
22566done
22567if ${ac_cv_search_clock_gettime+:} false; then :
22568
22569else
22570  ac_cv_search_clock_gettime=no
22571fi
22572rm conftest.$ac_ext
22573LIBS=$ac_func_search_save_LIBS
22574fi
22575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
22576$as_echo "$ac_cv_search_clock_gettime" >&6; }
22577ac_res=$ac_cv_search_clock_gettime
22578if test "$ac_res" != no; then :
22579  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22580  CLOCK_GETTIME_LIBS=$LIBS
22581fi
22582
22583
22584
22585sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
22586
22587 if test "x$DEBUG" != "xno"; then
22588  DEBUG_TRUE=
22589  DEBUG_FALSE='#'
22590else
22591  DEBUG_TRUE='#'
22592  DEBUG_FALSE=
22593fi
22594
22595 if test "x$DEBUG" = "xfull"; then
22596  FULL_DEBUG_TRUE=
22597  FULL_DEBUG_FALSE='#'
22598else
22599  FULL_DEBUG_TRUE='#'
22600  FULL_DEBUG_FALSE=
22601fi
22602
22603if test "x$DEBUG" = "xno"; then
22604
22605$as_echo "#define NDEBUG 1" >>confdefs.h
22606
22607else
22608	if test "x$VG" != "xyes"; then
22609		VG=auto
22610	fi
22611fi
22612debug_msg=""
22613have_valgrind="no"
22614if test "x$VG" != "xno"; then
22615
22616pkg_failed=no
22617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5
22618$as_echo_n "checking for VALGRIND... " >&6; }
22619
22620if test -n "$VALGRIND_CFLAGS"; then
22621    pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
22622 elif test -n "$PKG_CONFIG"; then
22623    if test -n "$PKG_CONFIG" && \
22624    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
22625  ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
22626  ac_status=$?
22627  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22628  test $ac_status = 0; }; then
22629  pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null`
22630		      test "x$?" != "x0" && pkg_failed=yes
22631else
22632  pkg_failed=yes
22633fi
22634 else
22635    pkg_failed=untried
22636fi
22637if test -n "$VALGRIND_LIBS"; then
22638    pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
22639 elif test -n "$PKG_CONFIG"; then
22640    if test -n "$PKG_CONFIG" && \
22641    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
22642  ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
22643  ac_status=$?
22644  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22645  test $ac_status = 0; }; then
22646  pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null`
22647		      test "x$?" != "x0" && pkg_failed=yes
22648else
22649  pkg_failed=yes
22650fi
22651 else
22652    pkg_failed=untried
22653fi
22654
22655
22656
22657if test $pkg_failed = yes; then
22658   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22659$as_echo "no" >&6; }
22660
22661if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22662        _pkg_short_errors_supported=yes
22663else
22664        _pkg_short_errors_supported=no
22665fi
22666        if test $_pkg_short_errors_supported = yes; then
22667	        VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1`
22668        else
22669	        VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1`
22670        fi
22671	# Put the nasty error message in config.log where it belongs
22672	echo "$VALGRIND_PKG_ERRORS" >&5
22673
22674	have_valgrind="no"
22675elif test $pkg_failed = untried; then
22676     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22677$as_echo "no" >&6; }
22678	have_valgrind="no"
22679else
22680	VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
22681	VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
22682        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22683$as_echo "yes" >&6; }
22684	have_valgrind="yes"
22685fi
22686	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include valgrind support" >&5
22687$as_echo_n "checking whether to include valgrind support... " >&6; }
22688	if test "x$have_valgrind" = "xyes"; then
22689
22690$as_echo "#define HAVE_VALGRIND 1" >>confdefs.h
22691
22692	else
22693		if test "x$VG" = "xyes"; then
22694			as_fn_error $? "valgrind support requested, but valgrind-dev headers not found" "$LINENO" 5
22695		fi
22696	fi
22697	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_valgrind ($VG)" >&5
22698$as_echo "$have_valgrind ($VG)" >&6; }
22699fi
22700 if test "x$have_valgrind" = "xyes"; then
22701  VALGRIND_TRUE=
22702  VALGRIND_FALSE='#'
22703else
22704  VALGRIND_TRUE='#'
22705  VALGRIND_FALSE=
22706fi
22707
22708if test "x$have_valgrind" = "xyes"; then
22709	debug_msg="$debug_msg valgrind"
22710fi
22711if test "x$DEBUG" = "xsync"; then
22712
22713$as_echo "#define DEBUG_SYNC 1" >>confdefs.h
22714
22715	debug_msg="$debug_msg sync"
22716fi
22717if test "x$DEBUG" = "xmemory"; then
22718
22719$as_echo "#define DEBUG_MEMORY 1" >>confdefs.h
22720
22721	debug_msg="$debug_msg memory"
22722fi
22723if test "x$DEBUG" = "xpixmap"; then
22724
22725$as_echo "#define DEBUG_PIXMAP 1" >>confdefs.h
22726
22727	debug_msg="$debug_msg pixmaps"
22728fi
22729if test "x$DEBUG" = "xfull"; then
22730
22731$as_echo "#define DEBUG_MEMORY 1" >>confdefs.h
22732
22733
22734$as_echo "#define DEBUG_PIXMAP 1" >>confdefs.h
22735
22736
22737$as_echo "#define HAS_DEBUG_FULL 1" >>confdefs.h
22738
22739        CFLAGS="$CFLAGS -O0 -ggdb3"
22740	debug_msg=" full"
22741fi
22742if test "x$debug_msg" = "x"; then
22743	debug_msg=" none"
22744fi
22745
22746
22747ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
22748if test "x$ac_cv_func_getline" = xyes; then :
22749  $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
22750
22751else
22752  case " $LIBOBJS " in
22753  *" getline.$ac_objext "* ) ;;
22754  *) LIBOBJS="$LIBOBJS getline.$ac_objext"
22755 ;;
22756esac
22757
22758fi
22759
22760
22761
22762DRIVER_NAME="intel"
22763
22764
22765
22766  prefix_NONE=
22767  exec_prefix_NONE=
22768  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22769  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22770  eval ac_define_dir="\"$prefix\""
22771  eval ac_define_dir="\"$ac_define_dir\""
22772  PREFIX_PATH="$ac_define_dir"
22773
22774
22775cat >>confdefs.h <<_ACEOF
22776#define PREFIX_PATH "$ac_define_dir"
22777_ACEOF
22778
22779  test "$prefix_NONE" && prefix=NONE
22780  test "$exec_prefix_NONE" && exec_prefix=NONE
22781
22782
22783  prefix_NONE=
22784  exec_prefix_NONE=
22785  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22786  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22787  eval ac_define_dir="\"$libexecdir\""
22788  eval ac_define_dir="\"$ac_define_dir\""
22789  LIBEXEC_PATH="$ac_define_dir"
22790
22791
22792cat >>confdefs.h <<_ACEOF
22793#define LIBEXEC_PATH "$ac_define_dir"
22794_ACEOF
22795
22796  test "$prefix_NONE" && prefix=NONE
22797  test "$exec_prefix_NONE" && exec_prefix=NONE
22798
22799
22800ac_config_files="$ac_config_files Makefile man/Makefile libobj/Makefile src/Makefile src/legacy/Makefile src/legacy/i810/Makefile src/legacy/i810/xvmc/Makefile src/render_program/Makefile src/sna/Makefile src/sna/brw/Makefile src/sna/fb/Makefile src/uxa/Makefile xvmc/Makefile xvmc/shader/Makefile xvmc/shader/mc/Makefile xvmc/shader/vld/Makefile test/Makefile benchmarks/Makefile tools/Makefile tools/org.x.xf86-video-intel.backlight-helper.policy"
22801
22802cat >confcache <<\_ACEOF
22803# This file is a shell script that caches the results of configure
22804# tests run on this system so they can be shared between configure
22805# scripts and configure runs, see configure's option --config-cache.
22806# It is not useful on other systems.  If it contains results you don't
22807# want to keep, you may remove or edit it.
22808#
22809# config.status only pays attention to the cache file if you give it
22810# the --recheck option to rerun configure.
22811#
22812# `ac_cv_env_foo' variables (set or unset) will be overridden when
22813# loading this file, other *unset* `ac_cv_foo' will be assigned the
22814# following values.
22815
22816_ACEOF
22817
22818# The following way of writing the cache mishandles newlines in values,
22819# but we know of no workaround that is simple, portable, and efficient.
22820# So, we kill variables containing newlines.
22821# Ultrix sh set writes to stderr and can't be redirected directly,
22822# and sets the high bit in the cache file unless we assign to the vars.
22823(
22824  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22825    eval ac_val=\$$ac_var
22826    case $ac_val in #(
22827    *${as_nl}*)
22828      case $ac_var in #(
22829      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22830$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22831      esac
22832      case $ac_var in #(
22833      _ | IFS | as_nl) ;; #(
22834      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22835      *) { eval $ac_var=; unset $ac_var;} ;;
22836      esac ;;
22837    esac
22838  done
22839
22840  (set) 2>&1 |
22841    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22842    *${as_nl}ac_space=\ *)
22843      # `set' does not quote correctly, so add quotes: double-quote
22844      # substitution turns \\\\ into \\, and sed turns \\ into \.
22845      sed -n \
22846	"s/'/'\\\\''/g;
22847	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22848      ;; #(
22849    *)
22850      # `set' quotes correctly as required by POSIX, so do not add quotes.
22851      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22852      ;;
22853    esac |
22854    sort
22855) |
22856  sed '
22857     /^ac_cv_env_/b end
22858     t clear
22859     :clear
22860     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22861     t end
22862     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22863     :end' >>confcache
22864if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22865  if test -w "$cache_file"; then
22866    if test "x$cache_file" != "x/dev/null"; then
22867      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22868$as_echo "$as_me: updating cache $cache_file" >&6;}
22869      if test ! -f "$cache_file" || test -h "$cache_file"; then
22870	cat confcache >"$cache_file"
22871      else
22872        case $cache_file in #(
22873        */* | ?:*)
22874	  mv -f confcache "$cache_file"$$ &&
22875	  mv -f "$cache_file"$$ "$cache_file" ;; #(
22876        *)
22877	  mv -f confcache "$cache_file" ;;
22878	esac
22879      fi
22880    fi
22881  else
22882    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22883$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22884  fi
22885fi
22886rm -f confcache
22887
22888test "x$prefix" = xNONE && prefix=$ac_default_prefix
22889# Let make expand exec_prefix.
22890test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22891
22892DEFS=-DHAVE_CONFIG_H
22893
22894ac_libobjs=
22895ac_ltlibobjs=
22896U=
22897for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22898  # 1. Remove the extension, and $U if already installed.
22899  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22900  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22901  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22902  #    will be set to the directory where LIBOBJS objects are built.
22903  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22904  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22905done
22906LIBOBJS=$ac_libobjs
22907
22908LTLIBOBJS=$ac_ltlibobjs
22909
22910
22911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22912$as_echo_n "checking that generated files are newer than configure... " >&6; }
22913   if test -n "$am_sleep_pid"; then
22914     # Hide warnings about reused PIDs.
22915     wait $am_sleep_pid 2>/dev/null
22916   fi
22917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22918$as_echo "done" >&6; }
22919 if test -n "$EXEEXT"; then
22920  am__EXEEXT_TRUE=
22921  am__EXEEXT_FALSE='#'
22922else
22923  am__EXEEXT_TRUE='#'
22924  am__EXEEXT_FALSE=
22925fi
22926
22927if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22928  as_fn_error $? "conditional \"AMDEP\" was never defined.
22929Usually this means the macro was only invoked conditionally." "$LINENO" 5
22930fi
22931if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22932  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22933Usually this means the macro was only invoked conditionally." "$LINENO" 5
22934fi
22935if test -z "${BUILD_BACKLIGHT_HELPER_TRUE}" && test -z "${BUILD_BACKLIGHT_HELPER_FALSE}"; then
22936  as_fn_error $? "conditional \"BUILD_BACKLIGHT_HELPER\" was never defined.
22937Usually this means the macro was only invoked conditionally." "$LINENO" 5
22938fi
22939if test -z "${HAVE_DOT_GIT_TRUE}" && test -z "${HAVE_DOT_GIT_FALSE}"; then
22940  as_fn_error $? "conditional \"HAVE_DOT_GIT\" was never defined.
22941Usually this means the macro was only invoked conditionally." "$LINENO" 5
22942fi
22943if test -z "${HAVE_GEN4ASM_TRUE}" && test -z "${HAVE_GEN4ASM_FALSE}"; then
22944  as_fn_error $? "conditional \"HAVE_GEN4ASM\" was never defined.
22945Usually this means the macro was only invoked conditionally." "$LINENO" 5
22946fi
22947if test -z "${HAVE_X11_TRUE}" && test -z "${HAVE_X11_FALSE}"; then
22948  as_fn_error $? "conditional \"HAVE_X11\" was never defined.
22949Usually this means the macro was only invoked conditionally." "$LINENO" 5
22950fi
22951if test -z "${X11_DRI3_TRUE}" && test -z "${X11_DRI3_FALSE}"; then
22952  as_fn_error $? "conditional \"X11_DRI3\" was never defined.
22953Usually this means the macro was only invoked conditionally." "$LINENO" 5
22954fi
22955if test -z "${X11_SHM_TRUE}" && test -z "${X11_SHM_FALSE}"; then
22956  as_fn_error $? "conditional \"X11_SHM\" was never defined.
22957Usually this means the macro was only invoked conditionally." "$LINENO" 5
22958fi
22959if test -z "${X11_VM_TRUE}" && test -z "${X11_VM_FALSE}"; then
22960  as_fn_error $? "conditional \"X11_VM\" was never defined.
22961Usually this means the macro was only invoked conditionally." "$LINENO" 5
22962fi
22963if test -z "${BUILD_TOOLS_TRUE}" && test -z "${BUILD_TOOLS_FALSE}"; then
22964  as_fn_error $? "conditional \"BUILD_TOOLS\" was never defined.
22965Usually this means the macro was only invoked conditionally." "$LINENO" 5
22966fi
22967if test -z "${BUILD_TOOL_CURSOR_TRUE}" && test -z "${BUILD_TOOL_CURSOR_FALSE}"; then
22968  as_fn_error $? "conditional \"BUILD_TOOL_CURSOR\" was never defined.
22969Usually this means the macro was only invoked conditionally." "$LINENO" 5
22970fi
22971if test -z "${DGA_TRUE}" && test -z "${DGA_FALSE}"; then
22972  as_fn_error $? "conditional \"DGA\" was never defined.
22973Usually this means the macro was only invoked conditionally." "$LINENO" 5
22974fi
22975if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
22976  as_fn_error $? "conditional \"XAA\" was never defined.
22977Usually this means the macro was only invoked conditionally." "$LINENO" 5
22978fi
22979if test -z "${KMS_TRUE}" && test -z "${KMS_FALSE}"; then
22980  as_fn_error $? "conditional \"KMS\" was never defined.
22981Usually this means the macro was only invoked conditionally." "$LINENO" 5
22982fi
22983if test -z "${UMS_TRUE}" && test -z "${UMS_FALSE}"; then
22984  as_fn_error $? "conditional \"UMS\" was never defined.
22985Usually this means the macro was only invoked conditionally." "$LINENO" 5
22986fi
22987if test -z "${DRI1_TRUE}" && test -z "${DRI1_FALSE}"; then
22988  as_fn_error $? "conditional \"DRI1\" was never defined.
22989Usually this means the macro was only invoked conditionally." "$LINENO" 5
22990fi
22991if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then
22992  as_fn_error $? "conditional \"DRI2\" was never defined.
22993Usually this means the macro was only invoked conditionally." "$LINENO" 5
22994fi
22995if test -z "${DRI3_TRUE}" && test -z "${DRI3_FALSE}"; then
22996  as_fn_error $? "conditional \"DRI3\" was never defined.
22997Usually this means the macro was only invoked conditionally." "$LINENO" 5
22998fi
22999if test -z "${PRESENT_TRUE}" && test -z "${PRESENT_FALSE}"; then
23000  as_fn_error $? "conditional \"PRESENT\" was never defined.
23001Usually this means the macro was only invoked conditionally." "$LINENO" 5
23002fi
23003if test -z "${UXA_TRUE}" && test -z "${UXA_FALSE}"; then
23004  as_fn_error $? "conditional \"UXA\" was never defined.
23005Usually this means the macro was only invoked conditionally." "$LINENO" 5
23006fi
23007if test -z "${SNA_TRUE}" && test -z "${SNA_FALSE}"; then
23008  as_fn_error $? "conditional \"SNA\" was never defined.
23009Usually this means the macro was only invoked conditionally." "$LINENO" 5
23010fi
23011if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then
23012  as_fn_error $? "conditional \"XVMC\" was never defined.
23013Usually this means the macro was only invoked conditionally." "$LINENO" 5
23014fi
23015if test -z "${USE_CREATE2_TRUE}" && test -z "${USE_CREATE2_FALSE}"; then
23016  as_fn_error $? "conditional \"USE_CREATE2\" was never defined.
23017Usually this means the macro was only invoked conditionally." "$LINENO" 5
23018fi
23019if test -z "${USE_ASYNC_SWAP_TRUE}" && test -z "${USE_ASYNC_SWAP_FALSE}"; then
23020  as_fn_error $? "conditional \"USE_ASYNC_SWAP\" was never defined.
23021Usually this means the macro was only invoked conditionally." "$LINENO" 5
23022fi
23023if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
23024  as_fn_error $? "conditional \"DEBUG\" was never defined.
23025Usually this means the macro was only invoked conditionally." "$LINENO" 5
23026fi
23027if test -z "${FULL_DEBUG_TRUE}" && test -z "${FULL_DEBUG_FALSE}"; then
23028  as_fn_error $? "conditional \"FULL_DEBUG\" was never defined.
23029Usually this means the macro was only invoked conditionally." "$LINENO" 5
23030fi
23031if test -z "${VALGRIND_TRUE}" && test -z "${VALGRIND_FALSE}"; then
23032  as_fn_error $? "conditional \"VALGRIND\" was never defined.
23033Usually this means the macro was only invoked conditionally." "$LINENO" 5
23034fi
23035
23036: "${CONFIG_STATUS=./config.status}"
23037ac_write_fail=0
23038ac_clean_files_save=$ac_clean_files
23039ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23040{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23041$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23042as_write_fail=0
23043cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23044#! $SHELL
23045# Generated by $as_me.
23046# Run this file to recreate the current configuration.
23047# Compiler output produced by configure, useful for debugging
23048# configure, is in config.log if it exists.
23049
23050debug=false
23051ac_cs_recheck=false
23052ac_cs_silent=false
23053
23054SHELL=\${CONFIG_SHELL-$SHELL}
23055export SHELL
23056_ASEOF
23057cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23058## -------------------- ##
23059## M4sh Initialization. ##
23060## -------------------- ##
23061
23062# Be more Bourne compatible
23063DUALCASE=1; export DUALCASE # for MKS sh
23064if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23065  emulate sh
23066  NULLCMD=:
23067  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23068  # is contrary to our usage.  Disable this feature.
23069  alias -g '${1+"$@"}'='"$@"'
23070  setopt NO_GLOB_SUBST
23071else
23072  case `(set -o) 2>/dev/null` in #(
23073  *posix*) :
23074    set -o posix ;; #(
23075  *) :
23076     ;;
23077esac
23078fi
23079
23080
23081as_nl='
23082'
23083export as_nl
23084# Printing a long string crashes Solaris 7 /usr/bin/printf.
23085as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23086as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23087as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23088# Prefer a ksh shell builtin over an external printf program on Solaris,
23089# but without wasting forks for bash or zsh.
23090if test -z "$BASH_VERSION$ZSH_VERSION" \
23091    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23092  as_echo='print -r --'
23093  as_echo_n='print -rn --'
23094elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23095  as_echo='printf %s\n'
23096  as_echo_n='printf %s'
23097else
23098  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23099    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23100    as_echo_n='/usr/ucb/echo -n'
23101  else
23102    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23103    as_echo_n_body='eval
23104      arg=$1;
23105      case $arg in #(
23106      *"$as_nl"*)
23107	expr "X$arg" : "X\\(.*\\)$as_nl";
23108	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23109      esac;
23110      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23111    '
23112    export as_echo_n_body
23113    as_echo_n='sh -c $as_echo_n_body as_echo'
23114  fi
23115  export as_echo_body
23116  as_echo='sh -c $as_echo_body as_echo'
23117fi
23118
23119# The user is always right.
23120if test "${PATH_SEPARATOR+set}" != set; then
23121  PATH_SEPARATOR=:
23122  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23123    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23124      PATH_SEPARATOR=';'
23125  }
23126fi
23127
23128
23129# IFS
23130# We need space, tab and new line, in precisely that order.  Quoting is
23131# there to prevent editors from complaining about space-tab.
23132# (If _AS_PATH_WALK were called with IFS unset, it would disable word
23133# splitting by setting IFS to empty value.)
23134IFS=" ""	$as_nl"
23135
23136# Find who we are.  Look in the path if we contain no directory separator.
23137as_myself=
23138case $0 in #((
23139  *[\\/]* ) as_myself=$0 ;;
23140  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23141for as_dir in $PATH
23142do
23143  IFS=$as_save_IFS
23144  test -z "$as_dir" && as_dir=.
23145    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23146  done
23147IFS=$as_save_IFS
23148
23149     ;;
23150esac
23151# We did not find ourselves, most probably we were run as `sh COMMAND'
23152# in which case we are not to be found in the path.
23153if test "x$as_myself" = x; then
23154  as_myself=$0
23155fi
23156if test ! -f "$as_myself"; then
23157  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23158  exit 1
23159fi
23160
23161# Unset variables that we do not need and which cause bugs (e.g. in
23162# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
23163# suppresses any "Segmentation fault" message there.  '((' could
23164# trigger a bug in pdksh 5.2.14.
23165for as_var in BASH_ENV ENV MAIL MAILPATH
23166do eval test x\${$as_var+set} = xset \
23167  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23168done
23169PS1='$ '
23170PS2='> '
23171PS4='+ '
23172
23173# NLS nuisances.
23174LC_ALL=C
23175export LC_ALL
23176LANGUAGE=C
23177export LANGUAGE
23178
23179# CDPATH.
23180(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23181
23182
23183# as_fn_error STATUS ERROR [LINENO LOG_FD]
23184# ----------------------------------------
23185# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23186# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23187# script with STATUS, using 1 if that was 0.
23188as_fn_error ()
23189{
23190  as_status=$1; test $as_status -eq 0 && as_status=1
23191  if test "$4"; then
23192    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23193    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23194  fi
23195  $as_echo "$as_me: error: $2" >&2
23196  as_fn_exit $as_status
23197} # as_fn_error
23198
23199
23200# as_fn_set_status STATUS
23201# -----------------------
23202# Set $? to STATUS, without forking.
23203as_fn_set_status ()
23204{
23205  return $1
23206} # as_fn_set_status
23207
23208# as_fn_exit STATUS
23209# -----------------
23210# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23211as_fn_exit ()
23212{
23213  set +e
23214  as_fn_set_status $1
23215  exit $1
23216} # as_fn_exit
23217
23218# as_fn_unset VAR
23219# ---------------
23220# Portably unset VAR.
23221as_fn_unset ()
23222{
23223  { eval $1=; unset $1;}
23224}
23225as_unset=as_fn_unset
23226# as_fn_append VAR VALUE
23227# ----------------------
23228# Append the text in VALUE to the end of the definition contained in VAR. Take
23229# advantage of any shell optimizations that allow amortized linear growth over
23230# repeated appends, instead of the typical quadratic growth present in naive
23231# implementations.
23232if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23233  eval 'as_fn_append ()
23234  {
23235    eval $1+=\$2
23236  }'
23237else
23238  as_fn_append ()
23239  {
23240    eval $1=\$$1\$2
23241  }
23242fi # as_fn_append
23243
23244# as_fn_arith ARG...
23245# ------------------
23246# Perform arithmetic evaluation on the ARGs, and store the result in the
23247# global $as_val. Take advantage of shells that can avoid forks. The arguments
23248# must be portable across $(()) and expr.
23249if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23250  eval 'as_fn_arith ()
23251  {
23252    as_val=$(( $* ))
23253  }'
23254else
23255  as_fn_arith ()
23256  {
23257    as_val=`expr "$@" || test $? -eq 1`
23258  }
23259fi # as_fn_arith
23260
23261
23262if expr a : '\(a\)' >/dev/null 2>&1 &&
23263   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23264  as_expr=expr
23265else
23266  as_expr=false
23267fi
23268
23269if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23270  as_basename=basename
23271else
23272  as_basename=false
23273fi
23274
23275if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23276  as_dirname=dirname
23277else
23278  as_dirname=false
23279fi
23280
23281as_me=`$as_basename -- "$0" ||
23282$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23283	 X"$0" : 'X\(//\)$' \| \
23284	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23285$as_echo X/"$0" |
23286    sed '/^.*\/\([^/][^/]*\)\/*$/{
23287	    s//\1/
23288	    q
23289	  }
23290	  /^X\/\(\/\/\)$/{
23291	    s//\1/
23292	    q
23293	  }
23294	  /^X\/\(\/\).*/{
23295	    s//\1/
23296	    q
23297	  }
23298	  s/.*/./; q'`
23299
23300# Avoid depending upon Character Ranges.
23301as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23302as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23303as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23304as_cr_digits='0123456789'
23305as_cr_alnum=$as_cr_Letters$as_cr_digits
23306
23307ECHO_C= ECHO_N= ECHO_T=
23308case `echo -n x` in #(((((
23309-n*)
23310  case `echo 'xy\c'` in
23311  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
23312  xy)  ECHO_C='\c';;
23313  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
23314       ECHO_T='	';;
23315  esac;;
23316*)
23317  ECHO_N='-n';;
23318esac
23319
23320rm -f conf$$ conf$$.exe conf$$.file
23321if test -d conf$$.dir; then
23322  rm -f conf$$.dir/conf$$.file
23323else
23324  rm -f conf$$.dir
23325  mkdir conf$$.dir 2>/dev/null
23326fi
23327if (echo >conf$$.file) 2>/dev/null; then
23328  if ln -s conf$$.file conf$$ 2>/dev/null; then
23329    as_ln_s='ln -s'
23330    # ... but there are two gotchas:
23331    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23332    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23333    # In both cases, we have to default to `cp -pR'.
23334    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23335      as_ln_s='cp -pR'
23336  elif ln conf$$.file conf$$ 2>/dev/null; then
23337    as_ln_s=ln
23338  else
23339    as_ln_s='cp -pR'
23340  fi
23341else
23342  as_ln_s='cp -pR'
23343fi
23344rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23345rmdir conf$$.dir 2>/dev/null
23346
23347
23348# as_fn_mkdir_p
23349# -------------
23350# Create "$as_dir" as a directory, including parents if necessary.
23351as_fn_mkdir_p ()
23352{
23353
23354  case $as_dir in #(
23355  -*) as_dir=./$as_dir;;
23356  esac
23357  test -d "$as_dir" || eval $as_mkdir_p || {
23358    as_dirs=
23359    while :; do
23360      case $as_dir in #(
23361      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23362      *) as_qdir=$as_dir;;
23363      esac
23364      as_dirs="'$as_qdir' $as_dirs"
23365      as_dir=`$as_dirname -- "$as_dir" ||
23366$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23367	 X"$as_dir" : 'X\(//\)[^/]' \| \
23368	 X"$as_dir" : 'X\(//\)$' \| \
23369	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23370$as_echo X"$as_dir" |
23371    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23372	    s//\1/
23373	    q
23374	  }
23375	  /^X\(\/\/\)[^/].*/{
23376	    s//\1/
23377	    q
23378	  }
23379	  /^X\(\/\/\)$/{
23380	    s//\1/
23381	    q
23382	  }
23383	  /^X\(\/\).*/{
23384	    s//\1/
23385	    q
23386	  }
23387	  s/.*/./; q'`
23388      test -d "$as_dir" && break
23389    done
23390    test -z "$as_dirs" || eval "mkdir $as_dirs"
23391  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23392
23393
23394} # as_fn_mkdir_p
23395if mkdir -p . 2>/dev/null; then
23396  as_mkdir_p='mkdir -p "$as_dir"'
23397else
23398  test -d ./-p && rmdir ./-p
23399  as_mkdir_p=false
23400fi
23401
23402
23403# as_fn_executable_p FILE
23404# -----------------------
23405# Test if FILE is an executable regular file.
23406as_fn_executable_p ()
23407{
23408  test -f "$1" && test -x "$1"
23409} # as_fn_executable_p
23410as_test_x='test -x'
23411as_executable_p=as_fn_executable_p
23412
23413# Sed expression to map a string onto a valid CPP name.
23414as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23415
23416# Sed expression to map a string onto a valid variable name.
23417as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23418
23419
23420exec 6>&1
23421## ----------------------------------- ##
23422## Main body of $CONFIG_STATUS script. ##
23423## ----------------------------------- ##
23424_ASEOF
23425test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23426
23427cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23428# Save the log message, to keep $0 and so on meaningful, and to
23429# report actual input values of CONFIG_FILES etc. instead of their
23430# values after options handling.
23431ac_log="
23432This file was extended by xf86-video-intel $as_me 2.99.917, which was
23433generated by GNU Autoconf 2.69.  Invocation command line was
23434
23435  CONFIG_FILES    = $CONFIG_FILES
23436  CONFIG_HEADERS  = $CONFIG_HEADERS
23437  CONFIG_LINKS    = $CONFIG_LINKS
23438  CONFIG_COMMANDS = $CONFIG_COMMANDS
23439  $ $0 $@
23440
23441on `(hostname || uname -n) 2>/dev/null | sed 1q`
23442"
23443
23444_ACEOF
23445
23446case $ac_config_files in *"
23447"*) set x $ac_config_files; shift; ac_config_files=$*;;
23448esac
23449
23450case $ac_config_headers in *"
23451"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23452esac
23453
23454
23455cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23456# Files that config.status was made for.
23457config_files="$ac_config_files"
23458config_headers="$ac_config_headers"
23459config_commands="$ac_config_commands"
23460
23461_ACEOF
23462
23463cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23464ac_cs_usage="\
23465\`$as_me' instantiates files and other configuration actions
23466from templates according to the current configuration.  Unless the files
23467and actions are specified as TAGs, all are instantiated by default.
23468
23469Usage: $0 [OPTION]... [TAG]...
23470
23471  -h, --help       print this help, then exit
23472  -V, --version    print version number and configuration settings, then exit
23473      --config     print configuration, then exit
23474  -q, --quiet, --silent
23475                   do not print progress messages
23476  -d, --debug      don't remove temporary files
23477      --recheck    update $as_me by reconfiguring in the same conditions
23478      --file=FILE[:TEMPLATE]
23479                   instantiate the configuration file FILE
23480      --header=FILE[:TEMPLATE]
23481                   instantiate the configuration header FILE
23482
23483Configuration files:
23484$config_files
23485
23486Configuration headers:
23487$config_headers
23488
23489Configuration commands:
23490$config_commands
23491
23492Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
23493
23494_ACEOF
23495cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23496ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23497ac_cs_version="\\
23498xf86-video-intel config.status 2.99.917
23499configured by $0, generated by GNU Autoconf 2.69,
23500  with options \\"\$ac_cs_config\\"
23501
23502Copyright (C) 2012 Free Software Foundation, Inc.
23503This config.status script is free software; the Free Software Foundation
23504gives unlimited permission to copy, distribute and modify it."
23505
23506ac_pwd='$ac_pwd'
23507srcdir='$srcdir'
23508INSTALL='$INSTALL'
23509MKDIR_P='$MKDIR_P'
23510AWK='$AWK'
23511test -n "\$AWK" || AWK=awk
23512_ACEOF
23513
23514cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23515# The default lists apply if the user does not specify any file.
23516ac_need_defaults=:
23517while test $# != 0
23518do
23519  case $1 in
23520  --*=?*)
23521    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23522    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23523    ac_shift=:
23524    ;;
23525  --*=)
23526    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23527    ac_optarg=
23528    ac_shift=:
23529    ;;
23530  *)
23531    ac_option=$1
23532    ac_optarg=$2
23533    ac_shift=shift
23534    ;;
23535  esac
23536
23537  case $ac_option in
23538  # Handling of the options.
23539  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23540    ac_cs_recheck=: ;;
23541  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23542    $as_echo "$ac_cs_version"; exit ;;
23543  --config | --confi | --conf | --con | --co | --c )
23544    $as_echo "$ac_cs_config"; exit ;;
23545  --debug | --debu | --deb | --de | --d | -d )
23546    debug=: ;;
23547  --file | --fil | --fi | --f )
23548    $ac_shift
23549    case $ac_optarg in
23550    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23551    '') as_fn_error $? "missing file argument" ;;
23552    esac
23553    as_fn_append CONFIG_FILES " '$ac_optarg'"
23554    ac_need_defaults=false;;
23555  --header | --heade | --head | --hea )
23556    $ac_shift
23557    case $ac_optarg in
23558    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23559    esac
23560    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23561    ac_need_defaults=false;;
23562  --he | --h)
23563    # Conflict between --help and --header
23564    as_fn_error $? "ambiguous option: \`$1'
23565Try \`$0 --help' for more information.";;
23566  --help | --hel | -h )
23567    $as_echo "$ac_cs_usage"; exit ;;
23568  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23569  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23570    ac_cs_silent=: ;;
23571
23572  # This is an error.
23573  -*) as_fn_error $? "unrecognized option: \`$1'
23574Try \`$0 --help' for more information." ;;
23575
23576  *) as_fn_append ac_config_targets " $1"
23577     ac_need_defaults=false ;;
23578
23579  esac
23580  shift
23581done
23582
23583ac_configure_extra_args=
23584
23585if $ac_cs_silent; then
23586  exec 6>/dev/null
23587  ac_configure_extra_args="$ac_configure_extra_args --silent"
23588fi
23589
23590_ACEOF
23591cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23592if \$ac_cs_recheck; then
23593  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23594  shift
23595  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23596  CONFIG_SHELL='$SHELL'
23597  export CONFIG_SHELL
23598  exec "\$@"
23599fi
23600
23601_ACEOF
23602cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23603exec 5>>config.log
23604{
23605  echo
23606  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23607## Running $as_me. ##
23608_ASBOX
23609  $as_echo "$ac_log"
23610} >&5
23611
23612_ACEOF
23613cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23614#
23615# INIT-COMMANDS
23616#
23617AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
23618
23619
23620# The HP-UX ksh and POSIX shell print the target directory to stdout
23621# if CDPATH is set.
23622(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23623
23624sed_quote_subst='$sed_quote_subst'
23625double_quote_subst='$double_quote_subst'
23626delay_variable_subst='$delay_variable_subst'
23627enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23628macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23629macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23630enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23631pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23632enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23633shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
23634SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23635ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23636PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23637host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23638host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23639host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23640build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23641build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23642build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23643SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23644Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23645GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23646EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23647FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23648LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23649NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23650LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23651max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23652ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23653exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23654lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23655lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23656lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23657lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23658lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23659reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23660reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23661OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23662deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23663file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23664file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23665want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23666DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23667sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23668AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23669AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23670archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23671STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23672RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23673old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23674old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23675old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23676lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23677CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23678CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23679compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23680GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23681lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23682lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23683lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
23684lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23685lt_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"`'
23686lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
23687nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23688lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
23689lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
23690objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23691MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23692lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23693lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23694lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23695lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23696lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23697need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23698MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23699DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23700NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23701LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23702OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23703OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23704libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23705shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23706extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23707archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23708enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23709export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23710whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23711compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23712old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23713old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23714archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23715archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23716module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23717module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23718with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23719allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23720no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23721hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23722hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23723hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23724hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23725hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23726hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23727hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23728inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23729link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23730always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23731export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23732exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23733include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23734prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23735postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23736file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23737variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23738need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23739need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23740version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23741runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23742shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23743shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23744libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23745library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23746soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23747install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23748postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23749postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23750finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23751finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23752hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23753sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23754configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
23755configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
23756hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23757enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23758enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23759enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23760old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23761striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23762
23763LTCC='$LTCC'
23764LTCFLAGS='$LTCFLAGS'
23765compiler='$compiler_DEFAULT'
23766
23767# A function that is used when there is no print builtin or printf.
23768func_fallback_echo ()
23769{
23770  eval 'cat <<_LTECHO_EOF
23771\$1
23772_LTECHO_EOF'
23773}
23774
23775# Quote evaled strings.
23776for var in SHELL \
23777ECHO \
23778PATH_SEPARATOR \
23779SED \
23780GREP \
23781EGREP \
23782FGREP \
23783LD \
23784NM \
23785LN_S \
23786lt_SP2NL \
23787lt_NL2SP \
23788reload_flag \
23789OBJDUMP \
23790deplibs_check_method \
23791file_magic_cmd \
23792file_magic_glob \
23793want_nocaseglob \
23794DLLTOOL \
23795sharedlib_from_linklib_cmd \
23796AR \
23797AR_FLAGS \
23798archiver_list_spec \
23799STRIP \
23800RANLIB \
23801CC \
23802CFLAGS \
23803compiler \
23804lt_cv_sys_global_symbol_pipe \
23805lt_cv_sys_global_symbol_to_cdecl \
23806lt_cv_sys_global_symbol_to_import \
23807lt_cv_sys_global_symbol_to_c_name_address \
23808lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23809lt_cv_nm_interface \
23810nm_file_list_spec \
23811lt_cv_truncate_bin \
23812lt_prog_compiler_no_builtin_flag \
23813lt_prog_compiler_pic \
23814lt_prog_compiler_wl \
23815lt_prog_compiler_static \
23816lt_cv_prog_compiler_c_o \
23817need_locks \
23818MANIFEST_TOOL \
23819DSYMUTIL \
23820NMEDIT \
23821LIPO \
23822OTOOL \
23823OTOOL64 \
23824shrext_cmds \
23825export_dynamic_flag_spec \
23826whole_archive_flag_spec \
23827compiler_needs_object \
23828with_gnu_ld \
23829allow_undefined_flag \
23830no_undefined_flag \
23831hardcode_libdir_flag_spec \
23832hardcode_libdir_separator \
23833exclude_expsyms \
23834include_expsyms \
23835file_list_spec \
23836variables_saved_for_relink \
23837libname_spec \
23838library_names_spec \
23839soname_spec \
23840install_override_mode \
23841finish_eval \
23842old_striplib \
23843striplib; do
23844    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23845    *[\\\\\\\`\\"\\\$]*)
23846      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23847      ;;
23848    *)
23849      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23850      ;;
23851    esac
23852done
23853
23854# Double-quote double-evaled strings.
23855for var in reload_cmds \
23856old_postinstall_cmds \
23857old_postuninstall_cmds \
23858old_archive_cmds \
23859extract_expsyms_cmds \
23860old_archive_from_new_cmds \
23861old_archive_from_expsyms_cmds \
23862archive_cmds \
23863archive_expsym_cmds \
23864module_cmds \
23865module_expsym_cmds \
23866export_symbols_cmds \
23867prelink_cmds \
23868postlink_cmds \
23869postinstall_cmds \
23870postuninstall_cmds \
23871finish_cmds \
23872sys_lib_search_path_spec \
23873configure_time_dlsearch_path \
23874configure_time_lt_sys_library_path; do
23875    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23876    *[\\\\\\\`\\"\\\$]*)
23877      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23878      ;;
23879    *)
23880      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23881      ;;
23882    esac
23883done
23884
23885ac_aux_dir='$ac_aux_dir'
23886
23887# See if we are running on zsh, and set the options that allow our
23888# commands through without removal of \ escapes INIT.
23889if test -n "\${ZSH_VERSION+set}"; then
23890   setopt NO_GLOB_SUBST
23891fi
23892
23893
23894    PACKAGE='$PACKAGE'
23895    VERSION='$VERSION'
23896    RM='$RM'
23897    ofile='$ofile'
23898
23899
23900
23901
23902_ACEOF
23903
23904cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23905
23906# Handling of arguments.
23907for ac_config_target in $ac_config_targets
23908do
23909  case $ac_config_target in
23910    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23911    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23912    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23913    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23914    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23915    "libobj/Makefile") CONFIG_FILES="$CONFIG_FILES libobj/Makefile" ;;
23916    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23917    "src/legacy/Makefile") CONFIG_FILES="$CONFIG_FILES src/legacy/Makefile" ;;
23918    "src/legacy/i810/Makefile") CONFIG_FILES="$CONFIG_FILES src/legacy/i810/Makefile" ;;
23919    "src/legacy/i810/xvmc/Makefile") CONFIG_FILES="$CONFIG_FILES src/legacy/i810/xvmc/Makefile" ;;
23920    "src/render_program/Makefile") CONFIG_FILES="$CONFIG_FILES src/render_program/Makefile" ;;
23921    "src/sna/Makefile") CONFIG_FILES="$CONFIG_FILES src/sna/Makefile" ;;
23922    "src/sna/brw/Makefile") CONFIG_FILES="$CONFIG_FILES src/sna/brw/Makefile" ;;
23923    "src/sna/fb/Makefile") CONFIG_FILES="$CONFIG_FILES src/sna/fb/Makefile" ;;
23924    "src/uxa/Makefile") CONFIG_FILES="$CONFIG_FILES src/uxa/Makefile" ;;
23925    "xvmc/Makefile") CONFIG_FILES="$CONFIG_FILES xvmc/Makefile" ;;
23926    "xvmc/shader/Makefile") CONFIG_FILES="$CONFIG_FILES xvmc/shader/Makefile" ;;
23927    "xvmc/shader/mc/Makefile") CONFIG_FILES="$CONFIG_FILES xvmc/shader/mc/Makefile" ;;
23928    "xvmc/shader/vld/Makefile") CONFIG_FILES="$CONFIG_FILES xvmc/shader/vld/Makefile" ;;
23929    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
23930    "benchmarks/Makefile") CONFIG_FILES="$CONFIG_FILES benchmarks/Makefile" ;;
23931    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
23932    "tools/org.x.xf86-video-intel.backlight-helper.policy") CONFIG_FILES="$CONFIG_FILES tools/org.x.xf86-video-intel.backlight-helper.policy" ;;
23933
23934  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23935  esac
23936done
23937
23938
23939# If the user did not use the arguments to specify the items to instantiate,
23940# then the envvar interface is used.  Set only those that are not.
23941# We use the long form for the default assignment because of an extremely
23942# bizarre bug on SunOS 4.1.3.
23943if $ac_need_defaults; then
23944  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23945  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23946  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23947fi
23948
23949# Have a temporary directory for convenience.  Make it in the build tree
23950# simply because there is no reason against having it here, and in addition,
23951# creating and moving files from /tmp can sometimes cause problems.
23952# Hook for its removal unless debugging.
23953# Note that there is a small window in which the directory will not be cleaned:
23954# after its creation but before its name has been assigned to `$tmp'.
23955$debug ||
23956{
23957  tmp= ac_tmp=
23958  trap 'exit_status=$?
23959  : "${ac_tmp:=$tmp}"
23960  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23961' 0
23962  trap 'as_fn_exit 1' 1 2 13 15
23963}
23964# Create a (secure) tmp directory for tmp files.
23965
23966{
23967  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23968  test -d "$tmp"
23969}  ||
23970{
23971  tmp=./conf$$-$RANDOM
23972  (umask 077 && mkdir "$tmp")
23973} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23974ac_tmp=$tmp
23975
23976# Set up the scripts for CONFIG_FILES section.
23977# No need to generate them if there are no CONFIG_FILES.
23978# This happens for instance with `./config.status config.h'.
23979if test -n "$CONFIG_FILES"; then
23980
23981
23982ac_cr=`echo X | tr X '\015'`
23983# On cygwin, bash can eat \r inside `` if the user requested igncr.
23984# But we know of no other shell where ac_cr would be empty at this
23985# point, so we can use a bashism as a fallback.
23986if test "x$ac_cr" = x; then
23987  eval ac_cr=\$\'\\r\'
23988fi
23989ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23990if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23991  ac_cs_awk_cr='\\r'
23992else
23993  ac_cs_awk_cr=$ac_cr
23994fi
23995
23996echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23997_ACEOF
23998
23999
24000{
24001  echo "cat >conf$$subs.awk <<_ACEOF" &&
24002  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24003  echo "_ACEOF"
24004} >conf$$subs.sh ||
24005  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24006ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24007ac_delim='%!_!# '
24008for ac_last_try in false false false false false :; do
24009  . ./conf$$subs.sh ||
24010    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24011
24012  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24013  if test $ac_delim_n = $ac_delim_num; then
24014    break
24015  elif $ac_last_try; then
24016    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24017  else
24018    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24019  fi
24020done
24021rm -f conf$$subs.sh
24022
24023cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24024cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24025_ACEOF
24026sed -n '
24027h
24028s/^/S["/; s/!.*/"]=/
24029p
24030g
24031s/^[^!]*!//
24032:repl
24033t repl
24034s/'"$ac_delim"'$//
24035t delim
24036:nl
24037h
24038s/\(.\{148\}\)..*/\1/
24039t more1
24040s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24041p
24042n
24043b repl
24044:more1
24045s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24046p
24047g
24048s/.\{148\}//
24049t nl
24050:delim
24051h
24052s/\(.\{148\}\)..*/\1/
24053t more2
24054s/["\\]/\\&/g; s/^/"/; s/$/"/
24055p
24056b
24057:more2
24058s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24059p
24060g
24061s/.\{148\}//
24062t delim
24063' <conf$$subs.awk | sed '
24064/^[^""]/{
24065  N
24066  s/\n//
24067}
24068' >>$CONFIG_STATUS || ac_write_fail=1
24069rm -f conf$$subs.awk
24070cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24071_ACAWK
24072cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24073  for (key in S) S_is_set[key] = 1
24074  FS = ""
24075
24076}
24077{
24078  line = $ 0
24079  nfields = split(line, field, "@")
24080  substed = 0
24081  len = length(field[1])
24082  for (i = 2; i < nfields; i++) {
24083    key = field[i]
24084    keylen = length(key)
24085    if (S_is_set[key]) {
24086      value = S[key]
24087      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24088      len += length(value) + length(field[++i])
24089      substed = 1
24090    } else
24091      len += 1 + keylen
24092  }
24093
24094  print line
24095}
24096
24097_ACAWK
24098_ACEOF
24099cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24100if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24101  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24102else
24103  cat
24104fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24105  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24106_ACEOF
24107
24108# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24109# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24110# trailing colons and then remove the whole line if VPATH becomes empty
24111# (actually we leave an empty line to preserve line numbers).
24112if test "x$srcdir" = x.; then
24113  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
24114h
24115s///
24116s/^/:/
24117s/[	 ]*$/:/
24118s/:\$(srcdir):/:/g
24119s/:\${srcdir}:/:/g
24120s/:@srcdir@:/:/g
24121s/^:*//
24122s/:*$//
24123x
24124s/\(=[	 ]*\).*/\1/
24125G
24126s/\n//
24127s/^[^=]*=[	 ]*$//
24128}'
24129fi
24130
24131cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24132fi # test -n "$CONFIG_FILES"
24133
24134# Set up the scripts for CONFIG_HEADERS section.
24135# No need to generate them if there are no CONFIG_HEADERS.
24136# This happens for instance with `./config.status Makefile'.
24137if test -n "$CONFIG_HEADERS"; then
24138cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24139BEGIN {
24140_ACEOF
24141
24142# Transform confdefs.h into an awk script `defines.awk', embedded as
24143# here-document in config.status, that substitutes the proper values into
24144# config.h.in to produce config.h.
24145
24146# Create a delimiter string that does not exist in confdefs.h, to ease
24147# handling of long lines.
24148ac_delim='%!_!# '
24149for ac_last_try in false false :; do
24150  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24151  if test -z "$ac_tt"; then
24152    break
24153  elif $ac_last_try; then
24154    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24155  else
24156    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24157  fi
24158done
24159
24160# For the awk script, D is an array of macro values keyed by name,
24161# likewise P contains macro parameters if any.  Preserve backslash
24162# newline sequences.
24163
24164ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24165sed -n '
24166s/.\{148\}/&'"$ac_delim"'/g
24167t rset
24168:rset
24169s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
24170t def
24171d
24172:def
24173s/\\$//
24174t bsnl
24175s/["\\]/\\&/g
24176s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
24177D["\1"]=" \3"/p
24178s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
24179d
24180:bsnl
24181s/["\\]/\\&/g
24182s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
24183D["\1"]=" \3\\\\\\n"\\/p
24184t cont
24185s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24186t cont
24187d
24188:cont
24189n
24190s/.\{148\}/&'"$ac_delim"'/g
24191t clear
24192:clear
24193s/\\$//
24194t bsnlc
24195s/["\\]/\\&/g; s/^/"/; s/$/"/p
24196d
24197:bsnlc
24198s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24199b cont
24200' <confdefs.h | sed '
24201s/'"$ac_delim"'/"\\\
24202"/g' >>$CONFIG_STATUS || ac_write_fail=1
24203
24204cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24205  for (key in D) D_is_set[key] = 1
24206  FS = ""
24207}
24208/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24209  line = \$ 0
24210  split(line, arg, " ")
24211  if (arg[1] == "#") {
24212    defundef = arg[2]
24213    mac1 = arg[3]
24214  } else {
24215    defundef = substr(arg[1], 2)
24216    mac1 = arg[2]
24217  }
24218  split(mac1, mac2, "(") #)
24219  macro = mac2[1]
24220  prefix = substr(line, 1, index(line, defundef) - 1)
24221  if (D_is_set[macro]) {
24222    # Preserve the white space surrounding the "#".
24223    print prefix "define", macro P[macro] D[macro]
24224    next
24225  } else {
24226    # Replace #undef with comments.  This is necessary, for example,
24227    # in the case of _POSIX_SOURCE, which is predefined and required
24228    # on some systems where configure will not decide to define it.
24229    if (defundef == "undef") {
24230      print "/*", prefix defundef, macro, "*/"
24231      next
24232    }
24233  }
24234}
24235{ print }
24236_ACAWK
24237_ACEOF
24238cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24239  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24240fi # test -n "$CONFIG_HEADERS"
24241
24242
24243eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
24244shift
24245for ac_tag
24246do
24247  case $ac_tag in
24248  :[FHLC]) ac_mode=$ac_tag; continue;;
24249  esac
24250  case $ac_mode$ac_tag in
24251  :[FHL]*:*);;
24252  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
24253  :[FH]-) ac_tag=-:-;;
24254  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24255  esac
24256  ac_save_IFS=$IFS
24257  IFS=:
24258  set x $ac_tag
24259  IFS=$ac_save_IFS
24260  shift
24261  ac_file=$1
24262  shift
24263
24264  case $ac_mode in
24265  :L) ac_source=$1;;
24266  :[FH])
24267    ac_file_inputs=
24268    for ac_f
24269    do
24270      case $ac_f in
24271      -) ac_f="$ac_tmp/stdin";;
24272      *) # Look for the file first in the build tree, then in the source tree
24273	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
24274	 # because $ac_f cannot contain `:'.
24275	 test -f "$ac_f" ||
24276	   case $ac_f in
24277	   [\\/$]*) false;;
24278	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24279	   esac ||
24280	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24281      esac
24282      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24283      as_fn_append ac_file_inputs " '$ac_f'"
24284    done
24285
24286    # Let's still pretend it is `configure' which instantiates (i.e., don't
24287    # use $as_me), people would be surprised to read:
24288    #    /* config.h.  Generated by config.status.  */
24289    configure_input='Generated from '`
24290	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24291	`' by configure.'
24292    if test x"$ac_file" != x-; then
24293      configure_input="$ac_file.  $configure_input"
24294      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24295$as_echo "$as_me: creating $ac_file" >&6;}
24296    fi
24297    # Neutralize special characters interpreted by sed in replacement strings.
24298    case $configure_input in #(
24299    *\&* | *\|* | *\\* )
24300       ac_sed_conf_input=`$as_echo "$configure_input" |
24301       sed 's/[\\\\&|]/\\\\&/g'`;; #(
24302    *) ac_sed_conf_input=$configure_input;;
24303    esac
24304
24305    case $ac_tag in
24306    *:-:* | *:-) cat >"$ac_tmp/stdin" \
24307      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24308    esac
24309    ;;
24310  esac
24311
24312  ac_dir=`$as_dirname -- "$ac_file" ||
24313$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24314	 X"$ac_file" : 'X\(//\)[^/]' \| \
24315	 X"$ac_file" : 'X\(//\)$' \| \
24316	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24317$as_echo X"$ac_file" |
24318    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24319	    s//\1/
24320	    q
24321	  }
24322	  /^X\(\/\/\)[^/].*/{
24323	    s//\1/
24324	    q
24325	  }
24326	  /^X\(\/\/\)$/{
24327	    s//\1/
24328	    q
24329	  }
24330	  /^X\(\/\).*/{
24331	    s//\1/
24332	    q
24333	  }
24334	  s/.*/./; q'`
24335  as_dir="$ac_dir"; as_fn_mkdir_p
24336  ac_builddir=.
24337
24338case "$ac_dir" in
24339.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24340*)
24341  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24342  # A ".." for each directory in $ac_dir_suffix.
24343  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24344  case $ac_top_builddir_sub in
24345  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24346  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24347  esac ;;
24348esac
24349ac_abs_top_builddir=$ac_pwd
24350ac_abs_builddir=$ac_pwd$ac_dir_suffix
24351# for backward compatibility:
24352ac_top_builddir=$ac_top_build_prefix
24353
24354case $srcdir in
24355  .)  # We are building in place.
24356    ac_srcdir=.
24357    ac_top_srcdir=$ac_top_builddir_sub
24358    ac_abs_top_srcdir=$ac_pwd ;;
24359  [\\/]* | ?:[\\/]* )  # Absolute name.
24360    ac_srcdir=$srcdir$ac_dir_suffix;
24361    ac_top_srcdir=$srcdir
24362    ac_abs_top_srcdir=$srcdir ;;
24363  *) # Relative name.
24364    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24365    ac_top_srcdir=$ac_top_build_prefix$srcdir
24366    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24367esac
24368ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24369
24370
24371  case $ac_mode in
24372  :F)
24373  #
24374  # CONFIG_FILE
24375  #
24376
24377  case $INSTALL in
24378  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24379  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24380  esac
24381  ac_MKDIR_P=$MKDIR_P
24382  case $MKDIR_P in
24383  [\\/$]* | ?:[\\/]* ) ;;
24384  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24385  esac
24386_ACEOF
24387
24388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24389# If the template does not know about datarootdir, expand it.
24390# FIXME: This hack should be removed a few years after 2.60.
24391ac_datarootdir_hack=; ac_datarootdir_seen=
24392ac_sed_dataroot='
24393/datarootdir/ {
24394  p
24395  q
24396}
24397/@datadir@/p
24398/@docdir@/p
24399/@infodir@/p
24400/@localedir@/p
24401/@mandir@/p'
24402case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24403*datarootdir*) ac_datarootdir_seen=yes;;
24404*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24405  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24406$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24407_ACEOF
24408cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24409  ac_datarootdir_hack='
24410  s&@datadir@&$datadir&g
24411  s&@docdir@&$docdir&g
24412  s&@infodir@&$infodir&g
24413  s&@localedir@&$localedir&g
24414  s&@mandir@&$mandir&g
24415  s&\\\${datarootdir}&$datarootdir&g' ;;
24416esac
24417_ACEOF
24418
24419# Neutralize VPATH when `$srcdir' = `.'.
24420# Shell code in configure.ac might set extrasub.
24421# FIXME: do we really want to maintain this feature?
24422cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24423ac_sed_extra="$ac_vpsub
24424$extrasub
24425_ACEOF
24426cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24427:t
24428/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24429s|@configure_input@|$ac_sed_conf_input|;t t
24430s&@top_builddir@&$ac_top_builddir_sub&;t t
24431s&@top_build_prefix@&$ac_top_build_prefix&;t t
24432s&@srcdir@&$ac_srcdir&;t t
24433s&@abs_srcdir@&$ac_abs_srcdir&;t t
24434s&@top_srcdir@&$ac_top_srcdir&;t t
24435s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24436s&@builddir@&$ac_builddir&;t t
24437s&@abs_builddir@&$ac_abs_builddir&;t t
24438s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24439s&@INSTALL@&$ac_INSTALL&;t t
24440s&@MKDIR_P@&$ac_MKDIR_P&;t t
24441$ac_datarootdir_hack
24442"
24443eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24444  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24445
24446test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24447  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24448  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
24449      "$ac_tmp/out"`; test -z "$ac_out"; } &&
24450  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24451which seems to be undefined.  Please make sure it is defined" >&5
24452$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24453which seems to be undefined.  Please make sure it is defined" >&2;}
24454
24455  rm -f "$ac_tmp/stdin"
24456  case $ac_file in
24457  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24458  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24459  esac \
24460  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24461 ;;
24462  :H)
24463  #
24464  # CONFIG_HEADER
24465  #
24466  if test x"$ac_file" != x-; then
24467    {
24468      $as_echo "/* $configure_input  */" \
24469      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24470    } >"$ac_tmp/config.h" \
24471      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24472    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24473      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24474$as_echo "$as_me: $ac_file is unchanged" >&6;}
24475    else
24476      rm -f "$ac_file"
24477      mv "$ac_tmp/config.h" "$ac_file" \
24478	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
24479    fi
24480  else
24481    $as_echo "/* $configure_input  */" \
24482      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24483      || as_fn_error $? "could not create -" "$LINENO" 5
24484  fi
24485# Compute "$ac_file"'s index in $config_headers.
24486_am_arg="$ac_file"
24487_am_stamp_count=1
24488for _am_header in $config_headers :; do
24489  case $_am_header in
24490    $_am_arg | $_am_arg:* )
24491      break ;;
24492    * )
24493      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24494  esac
24495done
24496echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24497$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24498	 X"$_am_arg" : 'X\(//\)[^/]' \| \
24499	 X"$_am_arg" : 'X\(//\)$' \| \
24500	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24501$as_echo X"$_am_arg" |
24502    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24503	    s//\1/
24504	    q
24505	  }
24506	  /^X\(\/\/\)[^/].*/{
24507	    s//\1/
24508	    q
24509	  }
24510	  /^X\(\/\/\)$/{
24511	    s//\1/
24512	    q
24513	  }
24514	  /^X\(\/\).*/{
24515	    s//\1/
24516	    q
24517	  }
24518	  s/.*/./; q'`/stamp-h$_am_stamp_count
24519 ;;
24520
24521  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24522$as_echo "$as_me: executing $ac_file commands" >&6;}
24523 ;;
24524  esac
24525
24526
24527  case $ac_file$ac_mode in
24528    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24529  # Older Autoconf quotes --file arguments for eval, but not when files
24530  # are listed without --file.  Let's play safe and only enable the eval
24531  # if we detect the quoting.
24532  # TODO: see whether this extra hack can be removed once we start
24533  # requiring Autoconf 2.70 or later.
24534  case $CONFIG_FILES in #(
24535  *\'*) :
24536    eval set x "$CONFIG_FILES" ;; #(
24537  *) :
24538    set x $CONFIG_FILES ;; #(
24539  *) :
24540     ;;
24541esac
24542  shift
24543  # Used to flag and report bootstrapping failures.
24544  am_rc=0
24545  for am_mf
24546  do
24547    # Strip MF so we end up with the name of the file.
24548    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
24549    # Check whether this is an Automake generated Makefile which includes
24550    # dependency-tracking related rules and includes.
24551    # Grep'ing the whole file directly is not great: AIX grep has a line
24552    # limit of 2048, but all sed's we know have understand at least 4000.
24553    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
24554      || continue
24555    am_dirpart=`$as_dirname -- "$am_mf" ||
24556$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24557	 X"$am_mf" : 'X\(//\)[^/]' \| \
24558	 X"$am_mf" : 'X\(//\)$' \| \
24559	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24560$as_echo X"$am_mf" |
24561    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24562	    s//\1/
24563	    q
24564	  }
24565	  /^X\(\/\/\)[^/].*/{
24566	    s//\1/
24567	    q
24568	  }
24569	  /^X\(\/\/\)$/{
24570	    s//\1/
24571	    q
24572	  }
24573	  /^X\(\/\).*/{
24574	    s//\1/
24575	    q
24576	  }
24577	  s/.*/./; q'`
24578    am_filepart=`$as_basename -- "$am_mf" ||
24579$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
24580	 X"$am_mf" : 'X\(//\)$' \| \
24581	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24582$as_echo X/"$am_mf" |
24583    sed '/^.*\/\([^/][^/]*\)\/*$/{
24584	    s//\1/
24585	    q
24586	  }
24587	  /^X\/\(\/\/\)$/{
24588	    s//\1/
24589	    q
24590	  }
24591	  /^X\/\(\/\).*/{
24592	    s//\1/
24593	    q
24594	  }
24595	  s/.*/./; q'`
24596    { echo "$as_me:$LINENO: cd "$am_dirpart" \
24597      && sed -e '/# am--include-marker/d' "$am_filepart" \
24598        | $MAKE -f - am--depfiles" >&5
24599   (cd "$am_dirpart" \
24600      && sed -e '/# am--include-marker/d' "$am_filepart" \
24601        | $MAKE -f - am--depfiles) >&5 2>&5
24602   ac_status=$?
24603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604   (exit $ac_status); } || am_rc=$?
24605  done
24606  if test $am_rc -ne 0; then
24607    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24609as_fn_error $? "Something went wrong bootstrapping makefile fragments
24610    for automatic dependency tracking.  Try re-running configure with the
24611    '--disable-dependency-tracking' option to at least be able to build
24612    the package (albeit without support for automatic dependency tracking).
24613See \`config.log' for more details" "$LINENO" 5; }
24614  fi
24615  { am_dirpart=; unset am_dirpart;}
24616  { am_filepart=; unset am_filepart;}
24617  { am_mf=; unset am_mf;}
24618  { am_rc=; unset am_rc;}
24619  rm -f conftest-deps.mk
24620}
24621 ;;
24622    "libtool":C)
24623
24624    # See if we are running on zsh, and set the options that allow our
24625    # commands through without removal of \ escapes.
24626    if test -n "${ZSH_VERSION+set}"; then
24627      setopt NO_GLOB_SUBST
24628    fi
24629
24630    cfgfile=${ofile}T
24631    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24632    $RM "$cfgfile"
24633
24634    cat <<_LT_EOF >> "$cfgfile"
24635#! $SHELL
24636# Generated automatically by $as_me ($PACKAGE) $VERSION
24637# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24638# NOTE: Changes made to this file will be lost: look at ltmain.sh.
24639
24640# Provide generalized library-building support services.
24641# Written by Gordon Matzigkeit, 1996
24642
24643# Copyright (C) 2014 Free Software Foundation, Inc.
24644# This is free software; see the source for copying conditions.  There is NO
24645# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24646
24647# GNU Libtool is free software; you can redistribute it and/or modify
24648# it under the terms of the GNU General Public License as published by
24649# the Free Software Foundation; either version 2 of of the License, or
24650# (at your option) any later version.
24651#
24652# As a special exception to the GNU General Public License, if you
24653# distribute this file as part of a program or library that is built
24654# using GNU Libtool, you may include this file under the  same
24655# distribution terms that you use for the rest of that program.
24656#
24657# GNU Libtool is distributed in the hope that it will be useful, but
24658# WITHOUT ANY WARRANTY; without even the implied warranty of
24659# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24660# GNU General Public License for more details.
24661#
24662# You should have received a copy of the GNU General Public License
24663# along with this program.  If not, see <http://www.gnu.org/licenses/>.
24664
24665
24666# The names of the tagged configurations supported by this script.
24667available_tags=''
24668
24669# Configured defaults for sys_lib_dlsearch_path munging.
24670: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
24671
24672# ### BEGIN LIBTOOL CONFIG
24673
24674# Whether or not to build static libraries.
24675build_old_libs=$enable_static
24676
24677# Which release of libtool.m4 was used?
24678macro_version=$macro_version
24679macro_revision=$macro_revision
24680
24681# Whether or not to build shared libraries.
24682build_libtool_libs=$enable_shared
24683
24684# What type of objects to build.
24685pic_mode=$pic_mode
24686
24687# Whether or not to optimize for fast installation.
24688fast_install=$enable_fast_install
24689
24690# Shared archive member basename,for filename based shared library versioning on AIX.
24691shared_archive_member_spec=$shared_archive_member_spec
24692
24693# Shell to use when invoking shell scripts.
24694SHELL=$lt_SHELL
24695
24696# An echo program that protects backslashes.
24697ECHO=$lt_ECHO
24698
24699# The PATH separator for the build system.
24700PATH_SEPARATOR=$lt_PATH_SEPARATOR
24701
24702# The host system.
24703host_alias=$host_alias
24704host=$host
24705host_os=$host_os
24706
24707# The build system.
24708build_alias=$build_alias
24709build=$build
24710build_os=$build_os
24711
24712# A sed program that does not truncate output.
24713SED=$lt_SED
24714
24715# Sed that helps us avoid accidentally triggering echo(1) options like -n.
24716Xsed="\$SED -e 1s/^X//"
24717
24718# A grep program that handles long lines.
24719GREP=$lt_GREP
24720
24721# An ERE matcher.
24722EGREP=$lt_EGREP
24723
24724# A literal string matcher.
24725FGREP=$lt_FGREP
24726
24727# A BSD- or MS-compatible name lister.
24728NM=$lt_NM
24729
24730# Whether we need soft or hard links.
24731LN_S=$lt_LN_S
24732
24733# What is the maximum length of a command?
24734max_cmd_len=$max_cmd_len
24735
24736# Object file suffix (normally "o").
24737objext=$ac_objext
24738
24739# Executable file suffix (normally "").
24740exeext=$exeext
24741
24742# whether the shell understands "unset".
24743lt_unset=$lt_unset
24744
24745# turn spaces into newlines.
24746SP2NL=$lt_lt_SP2NL
24747
24748# turn newlines into spaces.
24749NL2SP=$lt_lt_NL2SP
24750
24751# convert \$build file names to \$host format.
24752to_host_file_cmd=$lt_cv_to_host_file_cmd
24753
24754# convert \$build files to toolchain format.
24755to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24756
24757# An object symbol dumper.
24758OBJDUMP=$lt_OBJDUMP
24759
24760# Method to check whether dependent libraries are shared objects.
24761deplibs_check_method=$lt_deplibs_check_method
24762
24763# Command to use when deplibs_check_method = "file_magic".
24764file_magic_cmd=$lt_file_magic_cmd
24765
24766# How to find potential files when deplibs_check_method = "file_magic".
24767file_magic_glob=$lt_file_magic_glob
24768
24769# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24770want_nocaseglob=$lt_want_nocaseglob
24771
24772# DLL creation program.
24773DLLTOOL=$lt_DLLTOOL
24774
24775# Command to associate shared and link libraries.
24776sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24777
24778# The archiver.
24779AR=$lt_AR
24780
24781# Flags to create an archive.
24782AR_FLAGS=$lt_AR_FLAGS
24783
24784# How to feed a file listing to the archiver.
24785archiver_list_spec=$lt_archiver_list_spec
24786
24787# A symbol stripping program.
24788STRIP=$lt_STRIP
24789
24790# Commands used to install an old-style archive.
24791RANLIB=$lt_RANLIB
24792old_postinstall_cmds=$lt_old_postinstall_cmds
24793old_postuninstall_cmds=$lt_old_postuninstall_cmds
24794
24795# Whether to use a lock for old archive extraction.
24796lock_old_archive_extraction=$lock_old_archive_extraction
24797
24798# A C compiler.
24799LTCC=$lt_CC
24800
24801# LTCC compiler flags.
24802LTCFLAGS=$lt_CFLAGS
24803
24804# Take the output of nm and produce a listing of raw symbols and C names.
24805global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24806
24807# Transform the output of nm in a proper C declaration.
24808global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24809
24810# Transform the output of nm into a list of symbols to manually relocate.
24811global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
24812
24813# Transform the output of nm in a C name address pair.
24814global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24815
24816# Transform the output of nm in a C name address pair when lib prefix is needed.
24817global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24818
24819# The name lister interface.
24820nm_interface=$lt_lt_cv_nm_interface
24821
24822# Specify filename containing input files for \$NM.
24823nm_file_list_spec=$lt_nm_file_list_spec
24824
24825# The root where to search for dependent libraries,and where our libraries should be installed.
24826lt_sysroot=$lt_sysroot
24827
24828# Command to truncate a binary pipe.
24829lt_truncate_bin=$lt_lt_cv_truncate_bin
24830
24831# The name of the directory that contains temporary libtool files.
24832objdir=$objdir
24833
24834# Used to examine libraries when file_magic_cmd begins with "file".
24835MAGIC_CMD=$MAGIC_CMD
24836
24837# Must we lock files when doing compilation?
24838need_locks=$lt_need_locks
24839
24840# Manifest tool.
24841MANIFEST_TOOL=$lt_MANIFEST_TOOL
24842
24843# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24844DSYMUTIL=$lt_DSYMUTIL
24845
24846# Tool to change global to local symbols on Mac OS X.
24847NMEDIT=$lt_NMEDIT
24848
24849# Tool to manipulate fat objects and archives on Mac OS X.
24850LIPO=$lt_LIPO
24851
24852# ldd/readelf like tool for Mach-O binaries on Mac OS X.
24853OTOOL=$lt_OTOOL
24854
24855# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24856OTOOL64=$lt_OTOOL64
24857
24858# Old archive suffix (normally "a").
24859libext=$libext
24860
24861# Shared library suffix (normally ".so").
24862shrext_cmds=$lt_shrext_cmds
24863
24864# The commands to extract the exported symbol list from a shared archive.
24865extract_expsyms_cmds=$lt_extract_expsyms_cmds
24866
24867# Variables whose values should be saved in libtool wrapper scripts and
24868# restored at link time.
24869variables_saved_for_relink=$lt_variables_saved_for_relink
24870
24871# Do we need the "lib" prefix for modules?
24872need_lib_prefix=$need_lib_prefix
24873
24874# Do we need a version for libraries?
24875need_version=$need_version
24876
24877# Library versioning type.
24878version_type=$version_type
24879
24880# Shared library runtime path variable.
24881runpath_var=$runpath_var
24882
24883# Shared library path variable.
24884shlibpath_var=$shlibpath_var
24885
24886# Is shlibpath searched before the hard-coded library search path?
24887shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24888
24889# Format of library name prefix.
24890libname_spec=$lt_libname_spec
24891
24892# List of archive names.  First name is the real one, the rest are links.
24893# The last name is the one that the linker finds with -lNAME
24894library_names_spec=$lt_library_names_spec
24895
24896# The coded name of the library, if different from the real name.
24897soname_spec=$lt_soname_spec
24898
24899# Permission mode override for installation of shared libraries.
24900install_override_mode=$lt_install_override_mode
24901
24902# Command to use after installation of a shared archive.
24903postinstall_cmds=$lt_postinstall_cmds
24904
24905# Command to use after uninstallation of a shared archive.
24906postuninstall_cmds=$lt_postuninstall_cmds
24907
24908# Commands used to finish a libtool library installation in a directory.
24909finish_cmds=$lt_finish_cmds
24910
24911# As "finish_cmds", except a single script fragment to be evaled but
24912# not shown.
24913finish_eval=$lt_finish_eval
24914
24915# Whether we should hardcode library paths into libraries.
24916hardcode_into_libs=$hardcode_into_libs
24917
24918# Compile-time system search path for libraries.
24919sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24920
24921# Detected run-time system search path for libraries.
24922sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
24923
24924# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
24925configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
24926
24927# Whether dlopen is supported.
24928dlopen_support=$enable_dlopen
24929
24930# Whether dlopen of programs is supported.
24931dlopen_self=$enable_dlopen_self
24932
24933# Whether dlopen of statically linked programs is supported.
24934dlopen_self_static=$enable_dlopen_self_static
24935
24936# Commands to strip libraries.
24937old_striplib=$lt_old_striplib
24938striplib=$lt_striplib
24939
24940
24941# The linker used to build libraries.
24942LD=$lt_LD
24943
24944# How to create reloadable object files.
24945reload_flag=$lt_reload_flag
24946reload_cmds=$lt_reload_cmds
24947
24948# Commands used to build an old-style archive.
24949old_archive_cmds=$lt_old_archive_cmds
24950
24951# A language specific compiler.
24952CC=$lt_compiler
24953
24954# Is the compiler the GNU compiler?
24955with_gcc=$GCC
24956
24957# Compiler flag to turn off builtin functions.
24958no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24959
24960# Additional compiler flags for building library objects.
24961pic_flag=$lt_lt_prog_compiler_pic
24962
24963# How to pass a linker flag through the compiler.
24964wl=$lt_lt_prog_compiler_wl
24965
24966# Compiler flag to prevent dynamic linking.
24967link_static_flag=$lt_lt_prog_compiler_static
24968
24969# Does compiler simultaneously support -c and -o options?
24970compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24971
24972# Whether or not to add -lc for building shared libraries.
24973build_libtool_need_lc=$archive_cmds_need_lc
24974
24975# Whether or not to disallow shared libs when runtime libs are static.
24976allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24977
24978# Compiler flag to allow reflexive dlopens.
24979export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24980
24981# Compiler flag to generate shared objects directly from archives.
24982whole_archive_flag_spec=$lt_whole_archive_flag_spec
24983
24984# Whether the compiler copes with passing no objects directly.
24985compiler_needs_object=$lt_compiler_needs_object
24986
24987# Create an old-style archive from a shared archive.
24988old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24989
24990# Create a temporary old-style archive to link instead of a shared archive.
24991old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24992
24993# Commands used to build a shared archive.
24994archive_cmds=$lt_archive_cmds
24995archive_expsym_cmds=$lt_archive_expsym_cmds
24996
24997# Commands used to build a loadable module if different from building
24998# a shared archive.
24999module_cmds=$lt_module_cmds
25000module_expsym_cmds=$lt_module_expsym_cmds
25001
25002# Whether we are building with GNU ld or not.
25003with_gnu_ld=$lt_with_gnu_ld
25004
25005# Flag that allows shared libraries with undefined symbols to be built.
25006allow_undefined_flag=$lt_allow_undefined_flag
25007
25008# Flag that enforces no undefined symbols.
25009no_undefined_flag=$lt_no_undefined_flag
25010
25011# Flag to hardcode \$libdir into a binary during linking.
25012# This must work even if \$libdir does not exist
25013hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25014
25015# Whether we need a single "-rpath" flag with a separated argument.
25016hardcode_libdir_separator=$lt_hardcode_libdir_separator
25017
25018# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25019# DIR into the resulting binary.
25020hardcode_direct=$hardcode_direct
25021
25022# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25023# DIR into the resulting binary and the resulting library dependency is
25024# "absolute",i.e impossible to change by setting \$shlibpath_var if the
25025# library is relocated.
25026hardcode_direct_absolute=$hardcode_direct_absolute
25027
25028# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25029# into the resulting binary.
25030hardcode_minus_L=$hardcode_minus_L
25031
25032# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25033# into the resulting binary.
25034hardcode_shlibpath_var=$hardcode_shlibpath_var
25035
25036# Set to "yes" if building a shared library automatically hardcodes DIR
25037# into the library and all subsequent libraries and executables linked
25038# against it.
25039hardcode_automatic=$hardcode_automatic
25040
25041# Set to yes if linker adds runtime paths of dependent libraries
25042# to runtime path list.
25043inherit_rpath=$inherit_rpath
25044
25045# Whether libtool must link a program against all its dependency libraries.
25046link_all_deplibs=$link_all_deplibs
25047
25048# Set to "yes" if exported symbols are required.
25049always_export_symbols=$always_export_symbols
25050
25051# The commands to list exported symbols.
25052export_symbols_cmds=$lt_export_symbols_cmds
25053
25054# Symbols that should not be listed in the preloaded symbols.
25055exclude_expsyms=$lt_exclude_expsyms
25056
25057# Symbols that must always be exported.
25058include_expsyms=$lt_include_expsyms
25059
25060# Commands necessary for linking programs (against libraries) with templates.
25061prelink_cmds=$lt_prelink_cmds
25062
25063# Commands necessary for finishing linking programs.
25064postlink_cmds=$lt_postlink_cmds
25065
25066# Specify filename containing input files.
25067file_list_spec=$lt_file_list_spec
25068
25069# How to hardcode a shared library path into an executable.
25070hardcode_action=$hardcode_action
25071
25072# ### END LIBTOOL CONFIG
25073
25074_LT_EOF
25075
25076    cat <<'_LT_EOF' >> "$cfgfile"
25077
25078# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
25079
25080# func_munge_path_list VARIABLE PATH
25081# -----------------------------------
25082# VARIABLE is name of variable containing _space_ separated list of
25083# directories to be munged by the contents of PATH, which is string
25084# having a format:
25085# "DIR[:DIR]:"
25086#       string "DIR[ DIR]" will be prepended to VARIABLE
25087# ":DIR[:DIR]"
25088#       string "DIR[ DIR]" will be appended to VARIABLE
25089# "DIRP[:DIRP]::[DIRA:]DIRA"
25090#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
25091#       "DIRA[ DIRA]" will be appended to VARIABLE
25092# "DIR[:DIR]"
25093#       VARIABLE will be replaced by "DIR[ DIR]"
25094func_munge_path_list ()
25095{
25096    case x$2 in
25097    x)
25098        ;;
25099    *:)
25100        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
25101        ;;
25102    x:*)
25103        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
25104        ;;
25105    *::*)
25106        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
25107        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
25108        ;;
25109    *)
25110        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
25111        ;;
25112    esac
25113}
25114
25115
25116# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
25117func_cc_basename ()
25118{
25119    for cc_temp in $*""; do
25120      case $cc_temp in
25121        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25122        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25123        \-*) ;;
25124        *) break;;
25125      esac
25126    done
25127    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
25128}
25129
25130
25131# ### END FUNCTIONS SHARED WITH CONFIGURE
25132
25133_LT_EOF
25134
25135  case $host_os in
25136  aix3*)
25137    cat <<\_LT_EOF >> "$cfgfile"
25138# AIX sometimes has problems with the GCC collect2 program.  For some
25139# reason, if we set the COLLECT_NAMES environment variable, the problems
25140# vanish in a puff of smoke.
25141if test set != "${COLLECT_NAMES+set}"; then
25142  COLLECT_NAMES=
25143  export COLLECT_NAMES
25144fi
25145_LT_EOF
25146    ;;
25147  esac
25148
25149
25150ltmain=$ac_aux_dir/ltmain.sh
25151
25152
25153  # We use sed instead of cat because bash on DJGPP gets confused if
25154  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
25155  # text mode, it properly converts lines to CR/LF.  This bash problem
25156  # is reportedly fixed, but why not run on old versions too?
25157  sed '$q' "$ltmain" >> "$cfgfile" \
25158     || (rm -f "$cfgfile"; exit 1)
25159
25160   mv -f "$cfgfile" "$ofile" ||
25161    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25162  chmod +x "$ofile"
25163
25164 ;;
25165
25166  esac
25167done # for ac_tag
25168
25169
25170as_fn_exit 0
25171_ACEOF
25172ac_clean_files=$ac_clean_files_save
25173
25174test $ac_write_fail = 0 ||
25175  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25176
25177
25178# configure is writing to config.log, and then calls config.status.
25179# config.status does its own redirection, appending to config.log.
25180# Unfortunately, on DOS this fails, as config.log is still kept open
25181# by configure, so config.status won't be able to write to it; its
25182# output is simply discarded.  So we exec the FD to /dev/null,
25183# effectively closing config.log, so it can be properly (re)opened and
25184# appended to by config.status.  When coming back to configure, we
25185# need to make the FD available again.
25186if test "$no_create" != yes; then
25187  ac_cs_success=:
25188  ac_config_status_args=
25189  test "$silent" = yes &&
25190    ac_config_status_args="$ac_config_status_args --quiet"
25191  exec 5>/dev/null
25192  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25193  exec 5>>config.log
25194  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25195  # would make configure fail if this is the last instruction.
25196  $ac_cs_success || as_fn_exit 1
25197fi
25198if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25199  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25200$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25201fi
25202
25203
25204echo ""
25205echo ""
25206cat $srcdir/README
25207
25208accel_msg=""
25209if test "x$SNA" != "xno"; then
25210	if test "$accel" = "none"; then
25211		accel_msg="$accel_msg *none"
25212	else
25213		accel_msg="$accel_msg none"
25214	fi
25215	if test "$accel" = "sna"; then
25216		accel_msg="$accel_msg *sna"
25217	else
25218		accel_msg="$accel_msg sna"
25219	fi
25220fi
25221if test "x$UXA" != "xno"; then
25222	if test "x$SNA" = "xno"; then
25223		if test "$accel" = "none"; then
25224			accel_msg="$accel_msg *none"
25225		else
25226			accel_msg="$accel_msg none"
25227		fi
25228	fi
25229	if test "$accel" = "uxa"; then
25230		accel_msg="$accel_msg *uxa"
25231	else
25232		accel_msg="$accel_msg uxa"
25233	fi
25234fi
25235
25236if test "x$dri_msg" = "x"; then
25237	dri_msg=" none"
25238fi
25239
25240if test "x$tools_msg" = "x"; then
25241	tools_msg=" none"
25242fi
25243
25244echo ""
25245echo "xf86-video-intel 2.99.917 will be compiled with:"
25246echo "  Xorg Video ABI version: $ABI_VERSION (xorg-server-$XSERVER_VERSION)"
25247echo "  pixman version: pixman-1-$PIXMAN_VERSION"
25248echo "  Acceleration backends:$accel_msg"
25249echo "  Additional debugging support?$debug_msg"
25250echo "  Support for Kernel Mode Setting? $KMS"
25251echo "  Support for legacy User Mode Setting (for i810)? $UMS"
25252echo "  Support for Direct Rendering Infrastructure:$dri_msg"
25253echo "  Support for Xv motion compensation (XvMC and libXvMC):$xvmc_msg"
25254echo "  Support for display hotplug notifications (udev):$udev_msg"
25255echo "  Build additional tools and utilities?$tools_msg"
25256if test -n "$xp_msg"; then
25257echo "  Experimental support:$xp_msg"
25258fi
25259echo ""
25260