configure revision 8bf5c682
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xf86-video-ati 18.0.0.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Radeon>.
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&component=Driver/Radeon
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-ati'
593PACKAGE_TARNAME='xf86-video-ati'
594PACKAGE_VERSION='18.0.0'
595PACKAGE_STRING='xf86-video-ati 18.0.0'
596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Radeon'
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_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640DRIVER_NAME
641moduledir
642PCIACCESS_LIBS
643PCIACCESS_CFLAGS
644GLAMOR_FALSE
645GLAMOR_TRUE
646LIBGLAMOR_EGL_LIBS
647LIBGLAMOR_EGL_CFLAGS
648LIBGLAMOR_LIBS
649LIBGLAMOR_CFLAGS
650LIBUDEV_FALSE
651LIBUDEV_TRUE
652LIBUDEV_LIBS
653LIBUDEV_CFLAGS
654configdir
655HAS_XORG_CONF_DIR_FALSE
656HAS_XORG_CONF_DIR_TRUE
657HAVE_XEXTPROTO_71_FALSE
658HAVE_XEXTPROTO_71_TRUE
659XEXT_LIBS
660XEXT_CFLAGS
661XORG_LIBS
662XORG_CFLAGS
663LIBDRM_RADEON_LIBS
664LIBDRM_RADEON_CFLAGS
665LIBDRM_LIBS
666LIBDRM_CFLAGS
667LT_SYS_LIBRARY_PATH
668OTOOL64
669OTOOL
670LIPO
671NMEDIT
672DSYMUTIL
673MANIFEST_TOOL
674RANLIB
675ac_ct_AR
676AR
677DLLTOOL
678OBJDUMP
679LN_S
680NM
681ac_ct_DUMPBIN
682DUMPBIN
683LD
684FGREP
685LIBTOOL
686MAN_SUBSTS
687XORG_MAN_PAGE
688ADMIN_MAN_DIR
689DRIVER_MAN_DIR
690MISC_MAN_DIR
691FILE_MAN_DIR
692LIB_MAN_DIR
693APP_MAN_DIR
694ADMIN_MAN_SUFFIX
695DRIVER_MAN_SUFFIX
696MISC_MAN_SUFFIX
697FILE_MAN_SUFFIX
698LIB_MAN_SUFFIX
699APP_MAN_SUFFIX
700SED
701host_os
702host_vendor
703host_cpu
704host
705build_os
706build_vendor
707build_cpu
708build
709INSTALL_CMD
710PKG_CONFIG_LIBDIR
711PKG_CONFIG_PATH
712PKG_CONFIG
713CHANGELOG_CMD
714STRICT_CFLAGS
715CWARNFLAGS
716BASE_CFLAGS
717EGREP
718GREP
719CPP
720am__fastdepCC_FALSE
721am__fastdepCC_TRUE
722CCDEPMODE
723am__nodep
724AMDEPBACKSLASH
725AMDEP_FALSE
726AMDEP_TRUE
727am__quote
728am__include
729DEPDIR
730OBJEXT
731EXEEXT
732ac_ct_CC
733CPPFLAGS
734LDFLAGS
735CFLAGS
736CC
737AM_BACKSLASH
738AM_DEFAULT_VERBOSITY
739AM_DEFAULT_V
740AM_V
741am__untar
742am__tar
743AMTAR
744am__leading_dot
745SET_MAKE
746AWK
747mkdir_p
748MKDIR_P
749INSTALL_STRIP_PROGRAM
750STRIP
751install_sh
752MAKEINFO
753AUTOHEADER
754AUTOMAKE
755AUTOCONF
756ACLOCAL
757VERSION
758PACKAGE
759CYGPATH_W
760am__isrc
761INSTALL_DATA
762INSTALL_SCRIPT
763INSTALL_PROGRAM
764target_alias
765host_alias
766build_alias
767LIBS
768ECHO_T
769ECHO_N
770ECHO_C
771DEFS
772mandir
773localedir
774libdir
775psdir
776pdfdir
777dvidir
778htmldir
779infodir
780docdir
781oldincludedir
782includedir
783runstatedir
784localstatedir
785sharedstatedir
786sysconfdir
787datadir
788datarootdir
789libexecdir
790sbindir
791bindir
792program_transform_name
793prefix
794exec_prefix
795PACKAGE_URL
796PACKAGE_BUGREPORT
797PACKAGE_STRING
798PACKAGE_VERSION
799PACKAGE_TARNAME
800PACKAGE_NAME
801PATH_SEPARATOR
802SHELL'
803ac_subst_files=''
804ac_user_opts='
805enable_option_checking
806enable_silent_rules
807enable_largefile
808enable_dependency_tracking
809enable_selective_werror
810enable_strict_compilation
811enable_static
812enable_shared
813with_pic
814enable_fast_install
815with_aix_soname
816with_gnu_ld
817with_sysroot
818enable_libtool_lock
819with_xorg_module_dir
820with_xorg_conf_dir
821enable_udev
822enable_glamor
823'
824      ac_precious_vars='build_alias
825host_alias
826target_alias
827CC
828CFLAGS
829LDFLAGS
830LIBS
831CPPFLAGS
832CPP
833PKG_CONFIG
834PKG_CONFIG_PATH
835PKG_CONFIG_LIBDIR
836LT_SYS_LIBRARY_PATH
837LIBDRM_CFLAGS
838LIBDRM_LIBS
839LIBDRM_RADEON_CFLAGS
840LIBDRM_RADEON_LIBS
841XORG_CFLAGS
842XORG_LIBS
843XEXT_CFLAGS
844XEXT_LIBS
845LIBUDEV_CFLAGS
846LIBUDEV_LIBS
847LIBGLAMOR_CFLAGS
848LIBGLAMOR_LIBS
849LIBGLAMOR_EGL_CFLAGS
850LIBGLAMOR_EGL_LIBS
851PCIACCESS_CFLAGS
852PCIACCESS_LIBS'
853
854
855# Initialize some variables set by options.
856ac_init_help=
857ac_init_version=false
858ac_unrecognized_opts=
859ac_unrecognized_sep=
860# The variables have the same names as the options, with
861# dashes changed to underlines.
862cache_file=/dev/null
863exec_prefix=NONE
864no_create=
865no_recursion=
866prefix=NONE
867program_prefix=NONE
868program_suffix=NONE
869program_transform_name=s,x,x,
870silent=
871site=
872srcdir=
873verbose=
874x_includes=NONE
875x_libraries=NONE
876
877# Installation directory options.
878# These are left unexpanded so users can "make install exec_prefix=/foo"
879# and all the variables that are supposed to be based on exec_prefix
880# by default will actually change.
881# Use braces instead of parens because sh, perl, etc. also accept them.
882# (The list follows the same order as the GNU Coding Standards.)
883bindir='${exec_prefix}/bin'
884sbindir='${exec_prefix}/sbin'
885libexecdir='${exec_prefix}/libexec'
886datarootdir='${prefix}/share'
887datadir='${datarootdir}'
888sysconfdir='${prefix}/etc'
889sharedstatedir='${prefix}/com'
890localstatedir='${prefix}/var'
891runstatedir='${localstatedir}/run'
892includedir='${prefix}/include'
893oldincludedir='/usr/include'
894docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
895infodir='${datarootdir}/info'
896htmldir='${docdir}'
897dvidir='${docdir}'
898pdfdir='${docdir}'
899psdir='${docdir}'
900libdir='${exec_prefix}/lib'
901localedir='${datarootdir}/locale'
902mandir='${datarootdir}/man'
903
904ac_prev=
905ac_dashdash=
906for ac_option
907do
908  # If the previous option needs an argument, assign it.
909  if test -n "$ac_prev"; then
910    eval $ac_prev=\$ac_option
911    ac_prev=
912    continue
913  fi
914
915  case $ac_option in
916  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
917  *=)   ac_optarg= ;;
918  *)    ac_optarg=yes ;;
919  esac
920
921  # Accept the important Cygnus configure options, so we can diagnose typos.
922
923  case $ac_dashdash$ac_option in
924  --)
925    ac_dashdash=yes ;;
926
927  -bindir | --bindir | --bindi | --bind | --bin | --bi)
928    ac_prev=bindir ;;
929  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
930    bindir=$ac_optarg ;;
931
932  -build | --build | --buil | --bui | --bu)
933    ac_prev=build_alias ;;
934  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
935    build_alias=$ac_optarg ;;
936
937  -cache-file | --cache-file | --cache-fil | --cache-fi \
938  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
939    ac_prev=cache_file ;;
940  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
941  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
942    cache_file=$ac_optarg ;;
943
944  --config-cache | -C)
945    cache_file=config.cache ;;
946
947  -datadir | --datadir | --datadi | --datad)
948    ac_prev=datadir ;;
949  -datadir=* | --datadir=* | --datadi=* | --datad=*)
950    datadir=$ac_optarg ;;
951
952  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
953  | --dataroo | --dataro | --datar)
954    ac_prev=datarootdir ;;
955  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
956  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
957    datarootdir=$ac_optarg ;;
958
959  -disable-* | --disable-*)
960    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
961    # Reject names that are not valid shell variable names.
962    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963      as_fn_error $? "invalid feature name: $ac_useropt"
964    ac_useropt_orig=$ac_useropt
965    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966    case $ac_user_opts in
967      *"
968"enable_$ac_useropt"
969"*) ;;
970      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
971	 ac_unrecognized_sep=', ';;
972    esac
973    eval enable_$ac_useropt=no ;;
974
975  -docdir | --docdir | --docdi | --doc | --do)
976    ac_prev=docdir ;;
977  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
978    docdir=$ac_optarg ;;
979
980  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
981    ac_prev=dvidir ;;
982  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
983    dvidir=$ac_optarg ;;
984
985  -enable-* | --enable-*)
986    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
987    # Reject names that are not valid shell variable names.
988    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989      as_fn_error $? "invalid feature name: $ac_useropt"
990    ac_useropt_orig=$ac_useropt
991    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992    case $ac_user_opts in
993      *"
994"enable_$ac_useropt"
995"*) ;;
996      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
997	 ac_unrecognized_sep=', ';;
998    esac
999    eval enable_$ac_useropt=\$ac_optarg ;;
1000
1001  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1002  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1003  | --exec | --exe | --ex)
1004    ac_prev=exec_prefix ;;
1005  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1006  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1007  | --exec=* | --exe=* | --ex=*)
1008    exec_prefix=$ac_optarg ;;
1009
1010  -gas | --gas | --ga | --g)
1011    # Obsolete; use --with-gas.
1012    with_gas=yes ;;
1013
1014  -help | --help | --hel | --he | -h)
1015    ac_init_help=long ;;
1016  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1017    ac_init_help=recursive ;;
1018  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1019    ac_init_help=short ;;
1020
1021  -host | --host | --hos | --ho)
1022    ac_prev=host_alias ;;
1023  -host=* | --host=* | --hos=* | --ho=*)
1024    host_alias=$ac_optarg ;;
1025
1026  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1027    ac_prev=htmldir ;;
1028  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1029  | --ht=*)
1030    htmldir=$ac_optarg ;;
1031
1032  -includedir | --includedir | --includedi | --included | --include \
1033  | --includ | --inclu | --incl | --inc)
1034    ac_prev=includedir ;;
1035  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1036  | --includ=* | --inclu=* | --incl=* | --inc=*)
1037    includedir=$ac_optarg ;;
1038
1039  -infodir | --infodir | --infodi | --infod | --info | --inf)
1040    ac_prev=infodir ;;
1041  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1042    infodir=$ac_optarg ;;
1043
1044  -libdir | --libdir | --libdi | --libd)
1045    ac_prev=libdir ;;
1046  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1047    libdir=$ac_optarg ;;
1048
1049  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1050  | --libexe | --libex | --libe)
1051    ac_prev=libexecdir ;;
1052  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1053  | --libexe=* | --libex=* | --libe=*)
1054    libexecdir=$ac_optarg ;;
1055
1056  -localedir | --localedir | --localedi | --localed | --locale)
1057    ac_prev=localedir ;;
1058  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1059    localedir=$ac_optarg ;;
1060
1061  -localstatedir | --localstatedir | --localstatedi | --localstated \
1062  | --localstate | --localstat | --localsta | --localst | --locals)
1063    ac_prev=localstatedir ;;
1064  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1065  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1066    localstatedir=$ac_optarg ;;
1067
1068  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1069    ac_prev=mandir ;;
1070  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1071    mandir=$ac_optarg ;;
1072
1073  -nfp | --nfp | --nf)
1074    # Obsolete; use --without-fp.
1075    with_fp=no ;;
1076
1077  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1078  | --no-cr | --no-c | -n)
1079    no_create=yes ;;
1080
1081  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1082  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1083    no_recursion=yes ;;
1084
1085  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1086  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1087  | --oldin | --oldi | --old | --ol | --o)
1088    ac_prev=oldincludedir ;;
1089  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1090  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1091  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1092    oldincludedir=$ac_optarg ;;
1093
1094  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1095    ac_prev=prefix ;;
1096  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1097    prefix=$ac_optarg ;;
1098
1099  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1100  | --program-pre | --program-pr | --program-p)
1101    ac_prev=program_prefix ;;
1102  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1103  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1104    program_prefix=$ac_optarg ;;
1105
1106  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1107  | --program-suf | --program-su | --program-s)
1108    ac_prev=program_suffix ;;
1109  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1110  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1111    program_suffix=$ac_optarg ;;
1112
1113  -program-transform-name | --program-transform-name \
1114  | --program-transform-nam | --program-transform-na \
1115  | --program-transform-n | --program-transform- \
1116  | --program-transform | --program-transfor \
1117  | --program-transfo | --program-transf \
1118  | --program-trans | --program-tran \
1119  | --progr-tra | --program-tr | --program-t)
1120    ac_prev=program_transform_name ;;
1121  -program-transform-name=* | --program-transform-name=* \
1122  | --program-transform-nam=* | --program-transform-na=* \
1123  | --program-transform-n=* | --program-transform-=* \
1124  | --program-transform=* | --program-transfor=* \
1125  | --program-transfo=* | --program-transf=* \
1126  | --program-trans=* | --program-tran=* \
1127  | --progr-tra=* | --program-tr=* | --program-t=*)
1128    program_transform_name=$ac_optarg ;;
1129
1130  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1131    ac_prev=pdfdir ;;
1132  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1133    pdfdir=$ac_optarg ;;
1134
1135  -psdir | --psdir | --psdi | --psd | --ps)
1136    ac_prev=psdir ;;
1137  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1138    psdir=$ac_optarg ;;
1139
1140  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1141  | -silent | --silent | --silen | --sile | --sil)
1142    silent=yes ;;
1143
1144  -runstatedir | --runstatedir | --runstatedi | --runstated \
1145  | --runstate | --runstat | --runsta | --runst | --runs \
1146  | --run | --ru | --r)
1147    ac_prev=runstatedir ;;
1148  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1149  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1150  | --run=* | --ru=* | --r=*)
1151    runstatedir=$ac_optarg ;;
1152
1153  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1154    ac_prev=sbindir ;;
1155  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1156  | --sbi=* | --sb=*)
1157    sbindir=$ac_optarg ;;
1158
1159  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1160  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1161  | --sharedst | --shareds | --shared | --share | --shar \
1162  | --sha | --sh)
1163    ac_prev=sharedstatedir ;;
1164  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1165  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1166  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1167  | --sha=* | --sh=*)
1168    sharedstatedir=$ac_optarg ;;
1169
1170  -site | --site | --sit)
1171    ac_prev=site ;;
1172  -site=* | --site=* | --sit=*)
1173    site=$ac_optarg ;;
1174
1175  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1176    ac_prev=srcdir ;;
1177  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1178    srcdir=$ac_optarg ;;
1179
1180  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1181  | --syscon | --sysco | --sysc | --sys | --sy)
1182    ac_prev=sysconfdir ;;
1183  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1184  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1185    sysconfdir=$ac_optarg ;;
1186
1187  -target | --target | --targe | --targ | --tar | --ta | --t)
1188    ac_prev=target_alias ;;
1189  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1190    target_alias=$ac_optarg ;;
1191
1192  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1193    verbose=yes ;;
1194
1195  -version | --version | --versio | --versi | --vers | -V)
1196    ac_init_version=: ;;
1197
1198  -with-* | --with-*)
1199    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1200    # Reject names that are not valid shell variable names.
1201    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202      as_fn_error $? "invalid package name: $ac_useropt"
1203    ac_useropt_orig=$ac_useropt
1204    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205    case $ac_user_opts in
1206      *"
1207"with_$ac_useropt"
1208"*) ;;
1209      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1210	 ac_unrecognized_sep=', ';;
1211    esac
1212    eval with_$ac_useropt=\$ac_optarg ;;
1213
1214  -without-* | --without-*)
1215    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1216    # Reject names that are not valid shell variable names.
1217    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218      as_fn_error $? "invalid package name: $ac_useropt"
1219    ac_useropt_orig=$ac_useropt
1220    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221    case $ac_user_opts in
1222      *"
1223"with_$ac_useropt"
1224"*) ;;
1225      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1226	 ac_unrecognized_sep=', ';;
1227    esac
1228    eval with_$ac_useropt=no ;;
1229
1230  --x)
1231    # Obsolete; use --with-x.
1232    with_x=yes ;;
1233
1234  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235  | --x-incl | --x-inc | --x-in | --x-i)
1236    ac_prev=x_includes ;;
1237  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1239    x_includes=$ac_optarg ;;
1240
1241  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1242  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243    ac_prev=x_libraries ;;
1244  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1246    x_libraries=$ac_optarg ;;
1247
1248  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1249Try \`$0 --help' for more information"
1250    ;;
1251
1252  *=*)
1253    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254    # Reject names that are not valid shell variable names.
1255    case $ac_envvar in #(
1256      '' | [0-9]* | *[!_$as_cr_alnum]* )
1257      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1258    esac
1259    eval $ac_envvar=\$ac_optarg
1260    export $ac_envvar ;;
1261
1262  *)
1263    # FIXME: should be removed in autoconf 3.0.
1264    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1265    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1267    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1268    ;;
1269
1270  esac
1271done
1272
1273if test -n "$ac_prev"; then
1274  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1275  as_fn_error $? "missing argument to $ac_option"
1276fi
1277
1278if test -n "$ac_unrecognized_opts"; then
1279  case $enable_option_checking in
1280    no) ;;
1281    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1282    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1283  esac
1284fi
1285
1286# Check all directory arguments for consistency.
1287for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1288		datadir sysconfdir sharedstatedir localstatedir includedir \
1289		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1290		libdir localedir mandir runstatedir
1291do
1292  eval ac_val=\$$ac_var
1293  # Remove trailing slashes.
1294  case $ac_val in
1295    */ )
1296      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1297      eval $ac_var=\$ac_val;;
1298  esac
1299  # Be sure to have absolute directory names.
1300  case $ac_val in
1301    [\\/$]* | ?:[\\/]* )  continue;;
1302    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1303  esac
1304  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1305done
1306
1307# There might be people who depend on the old broken behavior: `$host'
1308# used to hold the argument of --host etc.
1309# FIXME: To remove some day.
1310build=$build_alias
1311host=$host_alias
1312target=$target_alias
1313
1314# FIXME: To remove some day.
1315if test "x$host_alias" != x; then
1316  if test "x$build_alias" = x; then
1317    cross_compiling=maybe
1318  elif test "x$build_alias" != "x$host_alias"; then
1319    cross_compiling=yes
1320  fi
1321fi
1322
1323ac_tool_prefix=
1324test -n "$host_alias" && ac_tool_prefix=$host_alias-
1325
1326test "$silent" = yes && exec 6>/dev/null
1327
1328
1329ac_pwd=`pwd` && test -n "$ac_pwd" &&
1330ac_ls_di=`ls -di .` &&
1331ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1332  as_fn_error $? "working directory cannot be determined"
1333test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1334  as_fn_error $? "pwd does not report name of working directory"
1335
1336
1337# Find the source files, if location was not specified.
1338if test -z "$srcdir"; then
1339  ac_srcdir_defaulted=yes
1340  # Try the directory containing this script, then the parent directory.
1341  ac_confdir=`$as_dirname -- "$as_myself" ||
1342$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1343	 X"$as_myself" : 'X\(//\)[^/]' \| \
1344	 X"$as_myself" : 'X\(//\)$' \| \
1345	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1346$as_echo X"$as_myself" |
1347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1348	    s//\1/
1349	    q
1350	  }
1351	  /^X\(\/\/\)[^/].*/{
1352	    s//\1/
1353	    q
1354	  }
1355	  /^X\(\/\/\)$/{
1356	    s//\1/
1357	    q
1358	  }
1359	  /^X\(\/\).*/{
1360	    s//\1/
1361	    q
1362	  }
1363	  s/.*/./; q'`
1364  srcdir=$ac_confdir
1365  if test ! -r "$srcdir/$ac_unique_file"; then
1366    srcdir=..
1367  fi
1368else
1369  ac_srcdir_defaulted=no
1370fi
1371if test ! -r "$srcdir/$ac_unique_file"; then
1372  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1373  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1374fi
1375ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1376ac_abs_confdir=`(
1377	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1378	pwd)`
1379# When building in place, set srcdir=.
1380if test "$ac_abs_confdir" = "$ac_pwd"; then
1381  srcdir=.
1382fi
1383# Remove unnecessary trailing slashes from srcdir.
1384# Double slashes in file names in object file debugging info
1385# mess up M-x gdb in Emacs.
1386case $srcdir in
1387*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1388esac
1389for ac_var in $ac_precious_vars; do
1390  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1391  eval ac_env_${ac_var}_value=\$${ac_var}
1392  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1393  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1394done
1395
1396#
1397# Report the --help message.
1398#
1399if test "$ac_init_help" = "long"; then
1400  # Omit some internal or obsolete options to make the list less imposing.
1401  # This message is too long to be a string in the A/UX 3.1 sh.
1402  cat <<_ACEOF
1403\`configure' configures xf86-video-ati 18.0.0 to adapt to many kinds of systems.
1404
1405Usage: $0 [OPTION]... [VAR=VALUE]...
1406
1407To assign environment variables (e.g., CC, CFLAGS...), specify them as
1408VAR=VALUE.  See below for descriptions of some of the useful variables.
1409
1410Defaults for the options are specified in brackets.
1411
1412Configuration:
1413  -h, --help              display this help and exit
1414      --help=short        display options specific to this package
1415      --help=recursive    display the short help of all the included packages
1416  -V, --version           display version information and exit
1417  -q, --quiet, --silent   do not print \`checking ...' messages
1418      --cache-file=FILE   cache test results in FILE [disabled]
1419  -C, --config-cache      alias for \`--cache-file=config.cache'
1420  -n, --no-create         do not create output files
1421      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1422
1423Installation directories:
1424  --prefix=PREFIX         install architecture-independent files in PREFIX
1425                          [$ac_default_prefix]
1426  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1427                          [PREFIX]
1428
1429By default, \`make install' will install all the files in
1430\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1431an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1432for instance \`--prefix=\$HOME'.
1433
1434For better control, use the options below.
1435
1436Fine tuning of the installation directories:
1437  --bindir=DIR            user executables [EPREFIX/bin]
1438  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1439  --libexecdir=DIR        program executables [EPREFIX/libexec]
1440  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1441  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1442  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1443  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1444  --libdir=DIR            object code libraries [EPREFIX/lib]
1445  --includedir=DIR        C header files [PREFIX/include]
1446  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1447  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1448  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1449  --infodir=DIR           info documentation [DATAROOTDIR/info]
1450  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1451  --mandir=DIR            man documentation [DATAROOTDIR/man]
1452  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-ati]
1453  --htmldir=DIR           html documentation [DOCDIR]
1454  --dvidir=DIR            dvi documentation [DOCDIR]
1455  --pdfdir=DIR            pdf documentation [DOCDIR]
1456  --psdir=DIR             ps documentation [DOCDIR]
1457_ACEOF
1458
1459  cat <<\_ACEOF
1460
1461Program names:
1462  --program-prefix=PREFIX            prepend PREFIX to installed program names
1463  --program-suffix=SUFFIX            append SUFFIX to installed program names
1464  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1465
1466System types:
1467  --build=BUILD     configure for building on BUILD [guessed]
1468  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1469_ACEOF
1470fi
1471
1472if test -n "$ac_init_help"; then
1473  case $ac_init_help in
1474     short | recursive ) echo "Configuration of xf86-video-ati 18.0.0:";;
1475   esac
1476  cat <<\_ACEOF
1477
1478Optional Features:
1479  --disable-option-checking  ignore unrecognized --enable/--with options
1480  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1481  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1482  --enable-silent-rules   less verbose build output (undo: "make V=1")
1483  --disable-silent-rules  verbose build output (undo: "make V=0")
1484  --disable-largefile     omit support for large files
1485  --enable-dependency-tracking
1486                          do not reject slow dependency extractors
1487  --disable-dependency-tracking
1488                          speeds up one-time build
1489  --disable-selective-werror
1490                          Turn off selective compiler errors. (default:
1491                          enabled)
1492  --enable-strict-compilation
1493                          Enable all warnings from compiler and make them
1494                          errors (default: disabled)
1495  --enable-static[=PKGS]  build static libraries [default=no]
1496  --enable-shared[=PKGS]  build shared libraries [default=yes]
1497  --enable-fast-install[=PKGS]
1498                          optimize for fast installation [default=yes]
1499  --disable-libtool-lock  avoid locking (might break parallel builds)
1500  --disable-udev          Disable libudev support [default=auto]
1501  --disable-glamor        Disable glamor, a new GL-based acceleration
1502                          [default=enabled]
1503
1504Optional Packages:
1505  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1506  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1507  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1508                          both]
1509  --with-aix-soname=aix|svr4|both
1510                          shared library versioning (aka "SONAME") variant to
1511                          provide on AIX, [default=aix].
1512  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1513  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1514                          compiler's sysroot if not specified).
1515  --with-xorg-module-dir=DIR
1516                          Default xorg module directory
1517                          [[default=$libdir/xorg/modules]]
1518  --with-xorg-conf-dir=DIR
1519                          Default xorg.conf.d directory
1520                          [[default=${prefix}/share/X11/xorg.conf.d]]
1521
1522Some influential environment variables:
1523  CC          C compiler command
1524  CFLAGS      C compiler flags
1525  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1526              nonstandard directory <lib dir>
1527  LIBS        libraries to pass to the linker, e.g. -l<library>
1528  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1529              you have headers in a nonstandard directory <include dir>
1530  CPP         C preprocessor
1531  PKG_CONFIG  path to pkg-config utility
1532  PKG_CONFIG_PATH
1533              directories to add to pkg-config's search path
1534  PKG_CONFIG_LIBDIR
1535              path overriding pkg-config's built-in search path
1536  LT_SYS_LIBRARY_PATH
1537              User-defined run-time library search path.
1538  LIBDRM_CFLAGS
1539              C compiler flags for LIBDRM, overriding pkg-config
1540  LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
1541  LIBDRM_RADEON_CFLAGS
1542              C compiler flags for LIBDRM_RADEON, overriding pkg-config
1543  LIBDRM_RADEON_LIBS
1544              linker flags for LIBDRM_RADEON, overriding pkg-config
1545  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1546  XORG_LIBS   linker flags for XORG, overriding pkg-config
1547  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1548  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1549  LIBUDEV_CFLAGS
1550              C compiler flags for LIBUDEV, overriding pkg-config
1551  LIBUDEV_LIBS
1552              linker flags for LIBUDEV, overriding pkg-config
1553  LIBGLAMOR_CFLAGS
1554              C compiler flags for LIBGLAMOR, overriding pkg-config
1555  LIBGLAMOR_LIBS
1556              linker flags for LIBGLAMOR, overriding pkg-config
1557  LIBGLAMOR_EGL_CFLAGS
1558              C compiler flags for LIBGLAMOR_EGL, overriding pkg-config
1559  LIBGLAMOR_EGL_LIBS
1560              linker flags for LIBGLAMOR_EGL, overriding pkg-config
1561  PCIACCESS_CFLAGS
1562              C compiler flags for PCIACCESS, overriding pkg-config
1563  PCIACCESS_LIBS
1564              linker flags for PCIACCESS, overriding pkg-config
1565
1566Use these variables to override the choices made by `configure' or to help
1567it to find libraries and programs with nonstandard names/locations.
1568
1569Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Radeon>.
1570_ACEOF
1571ac_status=$?
1572fi
1573
1574if test "$ac_init_help" = "recursive"; then
1575  # If there are subdirs, report their specific --help.
1576  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1577    test -d "$ac_dir" ||
1578      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1579      continue
1580    ac_builddir=.
1581
1582case "$ac_dir" in
1583.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584*)
1585  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1586  # A ".." for each directory in $ac_dir_suffix.
1587  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1588  case $ac_top_builddir_sub in
1589  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591  esac ;;
1592esac
1593ac_abs_top_builddir=$ac_pwd
1594ac_abs_builddir=$ac_pwd$ac_dir_suffix
1595# for backward compatibility:
1596ac_top_builddir=$ac_top_build_prefix
1597
1598case $srcdir in
1599  .)  # We are building in place.
1600    ac_srcdir=.
1601    ac_top_srcdir=$ac_top_builddir_sub
1602    ac_abs_top_srcdir=$ac_pwd ;;
1603  [\\/]* | ?:[\\/]* )  # Absolute name.
1604    ac_srcdir=$srcdir$ac_dir_suffix;
1605    ac_top_srcdir=$srcdir
1606    ac_abs_top_srcdir=$srcdir ;;
1607  *) # Relative name.
1608    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609    ac_top_srcdir=$ac_top_build_prefix$srcdir
1610    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611esac
1612ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613
1614    cd "$ac_dir" || { ac_status=$?; continue; }
1615    # Check for guested configure.
1616    if test -f "$ac_srcdir/configure.gnu"; then
1617      echo &&
1618      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619    elif test -f "$ac_srcdir/configure"; then
1620      echo &&
1621      $SHELL "$ac_srcdir/configure" --help=recursive
1622    else
1623      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624    fi || ac_status=$?
1625    cd "$ac_pwd" || { ac_status=$?; break; }
1626  done
1627fi
1628
1629test -n "$ac_init_help" && exit $ac_status
1630if $ac_init_version; then
1631  cat <<\_ACEOF
1632xf86-video-ati configure 18.0.0
1633generated by GNU Autoconf 2.69
1634
1635Copyright (C) 2012 Free Software Foundation, Inc.
1636This configure script is free software; the Free Software Foundation
1637gives unlimited permission to copy, distribute and modify it.
1638_ACEOF
1639  exit
1640fi
1641
1642## ------------------------ ##
1643## Autoconf initialization. ##
1644## ------------------------ ##
1645
1646# ac_fn_c_try_compile LINENO
1647# --------------------------
1648# Try to compile conftest.$ac_ext, and return whether this succeeded.
1649ac_fn_c_try_compile ()
1650{
1651  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652  rm -f conftest.$ac_objext
1653  if { { ac_try="$ac_compile"
1654case "(($ac_try" in
1655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656  *) ac_try_echo=$ac_try;;
1657esac
1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659$as_echo "$ac_try_echo"; } >&5
1660  (eval "$ac_compile") 2>conftest.err
1661  ac_status=$?
1662  if test -s conftest.err; then
1663    grep -v '^ *+' conftest.err >conftest.er1
1664    cat conftest.er1 >&5
1665    mv -f conftest.er1 conftest.err
1666  fi
1667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668  test $ac_status = 0; } && {
1669	 test -z "$ac_c_werror_flag" ||
1670	 test ! -s conftest.err
1671       } && test -s conftest.$ac_objext; then :
1672  ac_retval=0
1673else
1674  $as_echo "$as_me: failed program was:" >&5
1675sed 's/^/| /' conftest.$ac_ext >&5
1676
1677	ac_retval=1
1678fi
1679  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680  as_fn_set_status $ac_retval
1681
1682} # ac_fn_c_try_compile
1683
1684# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1685# ---------------------------------------------
1686# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1687# accordingly.
1688ac_fn_c_check_decl ()
1689{
1690  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691  as_decl_name=`echo $2|sed 's/ *(.*//'`
1692  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1693  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1694$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1695if eval \${$3+:} false; then :
1696  $as_echo_n "(cached) " >&6
1697else
1698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1699/* end confdefs.h.  */
1700$4
1701int
1702main ()
1703{
1704#ifndef $as_decl_name
1705#ifdef __cplusplus
1706  (void) $as_decl_use;
1707#else
1708  (void) $as_decl_name;
1709#endif
1710#endif
1711
1712  ;
1713  return 0;
1714}
1715_ACEOF
1716if ac_fn_c_try_compile "$LINENO"; then :
1717  eval "$3=yes"
1718else
1719  eval "$3=no"
1720fi
1721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1722fi
1723eval ac_res=\$$3
1724	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1725$as_echo "$ac_res" >&6; }
1726  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727
1728} # ac_fn_c_check_decl
1729
1730# ac_fn_c_try_cpp LINENO
1731# ----------------------
1732# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1733ac_fn_c_try_cpp ()
1734{
1735  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736  if { { ac_try="$ac_cpp conftest.$ac_ext"
1737case "(($ac_try" in
1738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739  *) ac_try_echo=$ac_try;;
1740esac
1741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742$as_echo "$ac_try_echo"; } >&5
1743  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1744  ac_status=$?
1745  if test -s conftest.err; then
1746    grep -v '^ *+' conftest.err >conftest.er1
1747    cat conftest.er1 >&5
1748    mv -f conftest.er1 conftest.err
1749  fi
1750  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751  test $ac_status = 0; } > conftest.i && {
1752	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1753	 test ! -s conftest.err
1754       }; then :
1755  ac_retval=0
1756else
1757  $as_echo "$as_me: failed program was:" >&5
1758sed 's/^/| /' conftest.$ac_ext >&5
1759
1760    ac_retval=1
1761fi
1762  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763  as_fn_set_status $ac_retval
1764
1765} # ac_fn_c_try_cpp
1766
1767# ac_fn_c_try_run LINENO
1768# ----------------------
1769# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1770# that executables *can* be run.
1771ac_fn_c_try_run ()
1772{
1773  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774  if { { ac_try="$ac_link"
1775case "(($ac_try" in
1776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777  *) ac_try_echo=$ac_try;;
1778esac
1779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780$as_echo "$ac_try_echo"; } >&5
1781  (eval "$ac_link") 2>&5
1782  ac_status=$?
1783  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1785  { { case "(($ac_try" in
1786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787  *) ac_try_echo=$ac_try;;
1788esac
1789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790$as_echo "$ac_try_echo"; } >&5
1791  (eval "$ac_try") 2>&5
1792  ac_status=$?
1793  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794  test $ac_status = 0; }; }; then :
1795  ac_retval=0
1796else
1797  $as_echo "$as_me: program exited with status $ac_status" >&5
1798       $as_echo "$as_me: failed program was:" >&5
1799sed 's/^/| /' conftest.$ac_ext >&5
1800
1801       ac_retval=$ac_status
1802fi
1803  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805  as_fn_set_status $ac_retval
1806
1807} # ac_fn_c_try_run
1808
1809# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1810# -------------------------------------------------------
1811# Tests whether HEADER exists and can be compiled using the include files in
1812# INCLUDES, setting the cache variable VAR accordingly.
1813ac_fn_c_check_header_compile ()
1814{
1815  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817$as_echo_n "checking for $2... " >&6; }
1818if eval \${$3+:} false; then :
1819  $as_echo_n "(cached) " >&6
1820else
1821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822/* end confdefs.h.  */
1823$4
1824#include <$2>
1825_ACEOF
1826if ac_fn_c_try_compile "$LINENO"; then :
1827  eval "$3=yes"
1828else
1829  eval "$3=no"
1830fi
1831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832fi
1833eval ac_res=\$$3
1834	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835$as_echo "$ac_res" >&6; }
1836  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837
1838} # ac_fn_c_check_header_compile
1839
1840# ac_fn_c_try_link LINENO
1841# -----------------------
1842# Try to link conftest.$ac_ext, and return whether this succeeded.
1843ac_fn_c_try_link ()
1844{
1845  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846  rm -f conftest.$ac_objext conftest$ac_exeext
1847  if { { ac_try="$ac_link"
1848case "(($ac_try" in
1849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850  *) ac_try_echo=$ac_try;;
1851esac
1852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853$as_echo "$ac_try_echo"; } >&5
1854  (eval "$ac_link") 2>conftest.err
1855  ac_status=$?
1856  if test -s conftest.err; then
1857    grep -v '^ *+' conftest.err >conftest.er1
1858    cat conftest.er1 >&5
1859    mv -f conftest.er1 conftest.err
1860  fi
1861  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862  test $ac_status = 0; } && {
1863	 test -z "$ac_c_werror_flag" ||
1864	 test ! -s conftest.err
1865       } && test -s conftest$ac_exeext && {
1866	 test "$cross_compiling" = yes ||
1867	 test -x conftest$ac_exeext
1868       }; then :
1869  ac_retval=0
1870else
1871  $as_echo "$as_me: failed program was:" >&5
1872sed 's/^/| /' conftest.$ac_ext >&5
1873
1874	ac_retval=1
1875fi
1876  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1877  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1878  # interfere with the next link command; also delete a directory that is
1879  # left behind by Apple's compiler.  We do this before executing the actions.
1880  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1881  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882  as_fn_set_status $ac_retval
1883
1884} # ac_fn_c_try_link
1885
1886# ac_fn_c_check_func LINENO FUNC VAR
1887# ----------------------------------
1888# Tests whether FUNC exists, setting the cache variable VAR accordingly
1889ac_fn_c_check_func ()
1890{
1891  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893$as_echo_n "checking for $2... " >&6; }
1894if eval \${$3+:} false; then :
1895  $as_echo_n "(cached) " >&6
1896else
1897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898/* end confdefs.h.  */
1899/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1900   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1901#define $2 innocuous_$2
1902
1903/* System header to define __stub macros and hopefully few prototypes,
1904    which can conflict with char $2 (); below.
1905    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1906    <limits.h> exists even on freestanding compilers.  */
1907
1908#ifdef __STDC__
1909# include <limits.h>
1910#else
1911# include <assert.h>
1912#endif
1913
1914#undef $2
1915
1916/* Override any GCC internal prototype to avoid an error.
1917   Use char because int might match the return type of a GCC
1918   builtin and then its argument prototype would still apply.  */
1919#ifdef __cplusplus
1920extern "C"
1921#endif
1922char $2 ();
1923/* The GNU C library defines this for functions which it implements
1924    to always fail with ENOSYS.  Some functions are actually named
1925    something starting with __ and the normal name is an alias.  */
1926#if defined __stub_$2 || defined __stub___$2
1927choke me
1928#endif
1929
1930int
1931main ()
1932{
1933return $2 ();
1934  ;
1935  return 0;
1936}
1937_ACEOF
1938if ac_fn_c_try_link "$LINENO"; then :
1939  eval "$3=yes"
1940else
1941  eval "$3=no"
1942fi
1943rm -f core conftest.err conftest.$ac_objext \
1944    conftest$ac_exeext conftest.$ac_ext
1945fi
1946eval ac_res=\$$3
1947	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948$as_echo "$ac_res" >&6; }
1949  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950
1951} # ac_fn_c_check_func
1952
1953# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1954# -------------------------------------------------------
1955# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1956# the include files in INCLUDES and setting the cache variable VAR
1957# accordingly.
1958ac_fn_c_check_header_mongrel ()
1959{
1960  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961  if eval \${$3+:} false; then :
1962  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963$as_echo_n "checking for $2... " >&6; }
1964if eval \${$3+:} false; then :
1965  $as_echo_n "(cached) " >&6
1966fi
1967eval ac_res=\$$3
1968	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969$as_echo "$ac_res" >&6; }
1970else
1971  # Is the header compilable?
1972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1973$as_echo_n "checking $2 usability... " >&6; }
1974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975/* end confdefs.h.  */
1976$4
1977#include <$2>
1978_ACEOF
1979if ac_fn_c_try_compile "$LINENO"; then :
1980  ac_header_compiler=yes
1981else
1982  ac_header_compiler=no
1983fi
1984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1986$as_echo "$ac_header_compiler" >&6; }
1987
1988# Is the header present?
1989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1990$as_echo_n "checking $2 presence... " >&6; }
1991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992/* end confdefs.h.  */
1993#include <$2>
1994_ACEOF
1995if ac_fn_c_try_cpp "$LINENO"; then :
1996  ac_header_preproc=yes
1997else
1998  ac_header_preproc=no
1999fi
2000rm -f conftest.err conftest.i conftest.$ac_ext
2001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2002$as_echo "$ac_header_preproc" >&6; }
2003
2004# So?  What about this header?
2005case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2006  yes:no: )
2007    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2008$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2009    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2010$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2011    ;;
2012  no:yes:* )
2013    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2014$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2015    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2016$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2017    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2018$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2019    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2020$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2021    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2022$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2023( $as_echo "## ---------------------------------------------------------------------------------------------- ##
2024## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Radeon ##
2025## ---------------------------------------------------------------------------------------------- ##"
2026     ) | sed "s/^/$as_me: WARNING:     /" >&2
2027    ;;
2028esac
2029  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2030$as_echo_n "checking for $2... " >&6; }
2031if eval \${$3+:} false; then :
2032  $as_echo_n "(cached) " >&6
2033else
2034  eval "$3=\$ac_header_compiler"
2035fi
2036eval ac_res=\$$3
2037	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038$as_echo "$ac_res" >&6; }
2039fi
2040  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041
2042} # ac_fn_c_check_header_mongrel
2043cat >config.log <<_ACEOF
2044This file contains any messages produced by compilers while
2045running configure, to aid debugging if configure makes a mistake.
2046
2047It was created by xf86-video-ati $as_me 18.0.0, which was
2048generated by GNU Autoconf 2.69.  Invocation command line was
2049
2050  $ $0 $@
2051
2052_ACEOF
2053exec 5>>config.log
2054{
2055cat <<_ASUNAME
2056## --------- ##
2057## Platform. ##
2058## --------- ##
2059
2060hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2061uname -m = `(uname -m) 2>/dev/null || echo unknown`
2062uname -r = `(uname -r) 2>/dev/null || echo unknown`
2063uname -s = `(uname -s) 2>/dev/null || echo unknown`
2064uname -v = `(uname -v) 2>/dev/null || echo unknown`
2065
2066/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2067/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2068
2069/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2070/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2071/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2072/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2073/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2074/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2075/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2076
2077_ASUNAME
2078
2079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080for as_dir in $PATH
2081do
2082  IFS=$as_save_IFS
2083  test -z "$as_dir" && as_dir=.
2084    $as_echo "PATH: $as_dir"
2085  done
2086IFS=$as_save_IFS
2087
2088} >&5
2089
2090cat >&5 <<_ACEOF
2091
2092
2093## ----------- ##
2094## Core tests. ##
2095## ----------- ##
2096
2097_ACEOF
2098
2099
2100# Keep a trace of the command line.
2101# Strip out --no-create and --no-recursion so they do not pile up.
2102# Strip out --silent because we don't want to record it for future runs.
2103# Also quote any args containing shell meta-characters.
2104# Make two passes to allow for proper duplicate-argument suppression.
2105ac_configure_args=
2106ac_configure_args0=
2107ac_configure_args1=
2108ac_must_keep_next=false
2109for ac_pass in 1 2
2110do
2111  for ac_arg
2112  do
2113    case $ac_arg in
2114    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2115    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2116    | -silent | --silent | --silen | --sile | --sil)
2117      continue ;;
2118    *\'*)
2119      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2120    esac
2121    case $ac_pass in
2122    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2123    2)
2124      as_fn_append ac_configure_args1 " '$ac_arg'"
2125      if test $ac_must_keep_next = true; then
2126	ac_must_keep_next=false # Got value, back to normal.
2127      else
2128	case $ac_arg in
2129	  *=* | --config-cache | -C | -disable-* | --disable-* \
2130	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2131	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2132	  | -with-* | --with-* | -without-* | --without-* | --x)
2133	    case "$ac_configure_args0 " in
2134	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2135	    esac
2136	    ;;
2137	  -* ) ac_must_keep_next=true ;;
2138	esac
2139      fi
2140      as_fn_append ac_configure_args " '$ac_arg'"
2141      ;;
2142    esac
2143  done
2144done
2145{ ac_configure_args0=; unset ac_configure_args0;}
2146{ ac_configure_args1=; unset ac_configure_args1;}
2147
2148# When interrupted or exit'd, cleanup temporary files, and complete
2149# config.log.  We remove comments because anyway the quotes in there
2150# would cause problems or look ugly.
2151# WARNING: Use '\'' to represent an apostrophe within the trap.
2152# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2153trap 'exit_status=$?
2154  # Save into config.log some information that might help in debugging.
2155  {
2156    echo
2157
2158    $as_echo "## ---------------- ##
2159## Cache variables. ##
2160## ---------------- ##"
2161    echo
2162    # The following way of writing the cache mishandles newlines in values,
2163(
2164  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2165    eval ac_val=\$$ac_var
2166    case $ac_val in #(
2167    *${as_nl}*)
2168      case $ac_var in #(
2169      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2170$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2171      esac
2172      case $ac_var in #(
2173      _ | IFS | as_nl) ;; #(
2174      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2175      *) { eval $ac_var=; unset $ac_var;} ;;
2176      esac ;;
2177    esac
2178  done
2179  (set) 2>&1 |
2180    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2181    *${as_nl}ac_space=\ *)
2182      sed -n \
2183	"s/'\''/'\''\\\\'\'''\''/g;
2184	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2185      ;; #(
2186    *)
2187      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2188      ;;
2189    esac |
2190    sort
2191)
2192    echo
2193
2194    $as_echo "## ----------------- ##
2195## Output variables. ##
2196## ----------------- ##"
2197    echo
2198    for ac_var in $ac_subst_vars
2199    do
2200      eval ac_val=\$$ac_var
2201      case $ac_val in
2202      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2203      esac
2204      $as_echo "$ac_var='\''$ac_val'\''"
2205    done | sort
2206    echo
2207
2208    if test -n "$ac_subst_files"; then
2209      $as_echo "## ------------------- ##
2210## File substitutions. ##
2211## ------------------- ##"
2212      echo
2213      for ac_var in $ac_subst_files
2214      do
2215	eval ac_val=\$$ac_var
2216	case $ac_val in
2217	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2218	esac
2219	$as_echo "$ac_var='\''$ac_val'\''"
2220      done | sort
2221      echo
2222    fi
2223
2224    if test -s confdefs.h; then
2225      $as_echo "## ----------- ##
2226## confdefs.h. ##
2227## ----------- ##"
2228      echo
2229      cat confdefs.h
2230      echo
2231    fi
2232    test "$ac_signal" != 0 &&
2233      $as_echo "$as_me: caught signal $ac_signal"
2234    $as_echo "$as_me: exit $exit_status"
2235  } >&5
2236  rm -f core *.core core.conftest.* &&
2237    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2238    exit $exit_status
2239' 0
2240for ac_signal in 1 2 13 15; do
2241  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2242done
2243ac_signal=0
2244
2245# confdefs.h avoids OS command line length limits that DEFS can exceed.
2246rm -f -r conftest* confdefs.h
2247
2248$as_echo "/* confdefs.h */" > confdefs.h
2249
2250# Predefined preprocessor variables.
2251
2252cat >>confdefs.h <<_ACEOF
2253#define PACKAGE_NAME "$PACKAGE_NAME"
2254_ACEOF
2255
2256cat >>confdefs.h <<_ACEOF
2257#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2258_ACEOF
2259
2260cat >>confdefs.h <<_ACEOF
2261#define PACKAGE_VERSION "$PACKAGE_VERSION"
2262_ACEOF
2263
2264cat >>confdefs.h <<_ACEOF
2265#define PACKAGE_STRING "$PACKAGE_STRING"
2266_ACEOF
2267
2268cat >>confdefs.h <<_ACEOF
2269#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2270_ACEOF
2271
2272cat >>confdefs.h <<_ACEOF
2273#define PACKAGE_URL "$PACKAGE_URL"
2274_ACEOF
2275
2276
2277# Let the site file select an alternate cache file if it wants to.
2278# Prefer an explicitly selected file to automatically selected ones.
2279ac_site_file1=NONE
2280ac_site_file2=NONE
2281if test -n "$CONFIG_SITE"; then
2282  # We do not want a PATH search for config.site.
2283  case $CONFIG_SITE in #((
2284    -*)  ac_site_file1=./$CONFIG_SITE;;
2285    */*) ac_site_file1=$CONFIG_SITE;;
2286    *)   ac_site_file1=./$CONFIG_SITE;;
2287  esac
2288elif test "x$prefix" != xNONE; then
2289  ac_site_file1=$prefix/share/config.site
2290  ac_site_file2=$prefix/etc/config.site
2291else
2292  ac_site_file1=$ac_default_prefix/share/config.site
2293  ac_site_file2=$ac_default_prefix/etc/config.site
2294fi
2295for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2296do
2297  test "x$ac_site_file" = xNONE && continue
2298  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2299    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2300$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2301    sed 's/^/| /' "$ac_site_file" >&5
2302    . "$ac_site_file" \
2303      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2304$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2305as_fn_error $? "failed to load site script $ac_site_file
2306See \`config.log' for more details" "$LINENO" 5; }
2307  fi
2308done
2309
2310if test -r "$cache_file"; then
2311  # Some versions of bash will fail to source /dev/null (special files
2312  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2313  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2314    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2315$as_echo "$as_me: loading cache $cache_file" >&6;}
2316    case $cache_file in
2317      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2318      *)                      . "./$cache_file";;
2319    esac
2320  fi
2321else
2322  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2323$as_echo "$as_me: creating cache $cache_file" >&6;}
2324  >$cache_file
2325fi
2326
2327# Check that the precious variables saved in the cache have kept the same
2328# value.
2329ac_cache_corrupted=false
2330for ac_var in $ac_precious_vars; do
2331  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2332  eval ac_new_set=\$ac_env_${ac_var}_set
2333  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2334  eval ac_new_val=\$ac_env_${ac_var}_value
2335  case $ac_old_set,$ac_new_set in
2336    set,)
2337      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2338$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2339      ac_cache_corrupted=: ;;
2340    ,set)
2341      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2342$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2343      ac_cache_corrupted=: ;;
2344    ,);;
2345    *)
2346      if test "x$ac_old_val" != "x$ac_new_val"; then
2347	# differences in whitespace do not lead to failure.
2348	ac_old_val_w=`echo x $ac_old_val`
2349	ac_new_val_w=`echo x $ac_new_val`
2350	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2351	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2352$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2353	  ac_cache_corrupted=:
2354	else
2355	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2356$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2357	  eval $ac_var=\$ac_old_val
2358	fi
2359	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2360$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2361	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2362$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2363      fi;;
2364  esac
2365  # Pass precious variables to config.status.
2366  if test "$ac_new_set" = set; then
2367    case $ac_new_val in
2368    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2369    *) ac_arg=$ac_var=$ac_new_val ;;
2370    esac
2371    case " $ac_configure_args " in
2372      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2373      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2374    esac
2375  fi
2376done
2377if $ac_cache_corrupted; then
2378  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2379$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2380  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2381$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2382  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2383fi
2384## -------------------- ##
2385## Main body of script. ##
2386## -------------------- ##
2387
2388ac_ext=c
2389ac_cpp='$CPP $CPPFLAGS'
2390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2392ac_compiler_gnu=$ac_cv_c_compiler_gnu
2393
2394
2395
2396
2397ac_config_headers="$ac_config_headers config.h"
2398
2399
2400
2401ac_aux_dir=
2402for ac_dir in . "$srcdir"/.; do
2403  if test -f "$ac_dir/install-sh"; then
2404    ac_aux_dir=$ac_dir
2405    ac_install_sh="$ac_aux_dir/install-sh -c"
2406    break
2407  elif test -f "$ac_dir/install.sh"; then
2408    ac_aux_dir=$ac_dir
2409    ac_install_sh="$ac_aux_dir/install.sh -c"
2410    break
2411  elif test -f "$ac_dir/shtool"; then
2412    ac_aux_dir=$ac_dir
2413    ac_install_sh="$ac_aux_dir/shtool install -c"
2414    break
2415  fi
2416done
2417if test -z "$ac_aux_dir"; then
2418  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2419fi
2420
2421# These three variables are undocumented and unsupported,
2422# and are intended to be withdrawn in a future Autoconf release.
2423# They can cause serious problems if a builder's source tree is in a directory
2424# whose full name contains unusual characters.
2425ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2426ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2427ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2428
2429
2430
2431# Initialize Automake
2432am__api_version='1.15'
2433
2434# Find a good install program.  We prefer a C program (faster),
2435# so one script is as good as another.  But avoid the broken or
2436# incompatible versions:
2437# SysV /etc/install, /usr/sbin/install
2438# SunOS /usr/etc/install
2439# IRIX /sbin/install
2440# AIX /bin/install
2441# AmigaOS /C/install, which installs bootblocks on floppy discs
2442# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2443# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2444# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2445# OS/2's system install, which has a completely different semantic
2446# ./install, which can be erroneously created by make from ./install.sh.
2447# Reject install programs that cannot install multiple files.
2448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2449$as_echo_n "checking for a BSD-compatible install... " >&6; }
2450if test -z "$INSTALL"; then
2451if ${ac_cv_path_install+:} false; then :
2452  $as_echo_n "(cached) " >&6
2453else
2454  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455for as_dir in $PATH
2456do
2457  IFS=$as_save_IFS
2458  test -z "$as_dir" && as_dir=.
2459    # Account for people who put trailing slashes in PATH elements.
2460case $as_dir/ in #((
2461  ./ | .// | /[cC]/* | \
2462  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2463  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2464  /usr/ucb/* ) ;;
2465  *)
2466    # OSF1 and SCO ODT 3.0 have their own names for install.
2467    # Don't use installbsd from OSF since it installs stuff as root
2468    # by default.
2469    for ac_prog in ginstall scoinst install; do
2470      for ac_exec_ext in '' $ac_executable_extensions; do
2471	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2472	  if test $ac_prog = install &&
2473	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2474	    # AIX install.  It has an incompatible calling convention.
2475	    :
2476	  elif test $ac_prog = install &&
2477	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2478	    # program-specific install script used by HP pwplus--don't use.
2479	    :
2480	  else
2481	    rm -rf conftest.one conftest.two conftest.dir
2482	    echo one > conftest.one
2483	    echo two > conftest.two
2484	    mkdir conftest.dir
2485	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2486	      test -s conftest.one && test -s conftest.two &&
2487	      test -s conftest.dir/conftest.one &&
2488	      test -s conftest.dir/conftest.two
2489	    then
2490	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2491	      break 3
2492	    fi
2493	  fi
2494	fi
2495      done
2496    done
2497    ;;
2498esac
2499
2500  done
2501IFS=$as_save_IFS
2502
2503rm -rf conftest.one conftest.two conftest.dir
2504
2505fi
2506  if test "${ac_cv_path_install+set}" = set; then
2507    INSTALL=$ac_cv_path_install
2508  else
2509    # As a last resort, use the slow shell script.  Don't cache a
2510    # value for INSTALL within a source directory, because that will
2511    # break other packages using the cache if that directory is
2512    # removed, or if the value is a relative name.
2513    INSTALL=$ac_install_sh
2514  fi
2515fi
2516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2517$as_echo "$INSTALL" >&6; }
2518
2519# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2520# It thinks the first close brace ends the variable substitution.
2521test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2522
2523test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2524
2525test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2526
2527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2528$as_echo_n "checking whether build environment is sane... " >&6; }
2529# Reject unsafe characters in $srcdir or the absolute working directory
2530# name.  Accept space and tab only in the latter.
2531am_lf='
2532'
2533case `pwd` in
2534  *[\\\"\#\$\&\'\`$am_lf]*)
2535    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2536esac
2537case $srcdir in
2538  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2539    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2540esac
2541
2542# Do 'set' in a subshell so we don't clobber the current shell's
2543# arguments.  Must try -L first in case configure is actually a
2544# symlink; some systems play weird games with the mod time of symlinks
2545# (eg FreeBSD returns the mod time of the symlink's containing
2546# directory).
2547if (
2548   am_has_slept=no
2549   for am_try in 1 2; do
2550     echo "timestamp, slept: $am_has_slept" > conftest.file
2551     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2552     if test "$*" = "X"; then
2553	# -L didn't work.
2554	set X `ls -t "$srcdir/configure" conftest.file`
2555     fi
2556     if test "$*" != "X $srcdir/configure conftest.file" \
2557	&& test "$*" != "X conftest.file $srcdir/configure"; then
2558
2559	# If neither matched, then we have a broken ls.  This can happen
2560	# if, for instance, CONFIG_SHELL is bash and it inherits a
2561	# broken ls alias from the environment.  This has actually
2562	# happened.  Such a system could not be considered "sane".
2563	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2564  alias in your environment" "$LINENO" 5
2565     fi
2566     if test "$2" = conftest.file || test $am_try -eq 2; then
2567       break
2568     fi
2569     # Just in case.
2570     sleep 1
2571     am_has_slept=yes
2572   done
2573   test "$2" = conftest.file
2574   )
2575then
2576   # Ok.
2577   :
2578else
2579   as_fn_error $? "newly created file is older than distributed files!
2580Check your system clock" "$LINENO" 5
2581fi
2582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2583$as_echo "yes" >&6; }
2584# If we didn't sleep, we still need to ensure time stamps of config.status and
2585# generated files are strictly newer.
2586am_sleep_pid=
2587if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2588  ( sleep 1 ) &
2589  am_sleep_pid=$!
2590fi
2591
2592rm -f conftest.file
2593
2594test "$program_prefix" != NONE &&
2595  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2596# Use a double $ so make ignores it.
2597test "$program_suffix" != NONE &&
2598  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2599# Double any \ or $.
2600# By default was `s,x,x', remove it if useless.
2601ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2602program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2603
2604# Expand $ac_aux_dir to an absolute path.
2605am_aux_dir=`cd "$ac_aux_dir" && pwd`
2606
2607if test x"${MISSING+set}" != xset; then
2608  case $am_aux_dir in
2609  *\ * | *\	*)
2610    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2611  *)
2612    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2613  esac
2614fi
2615# Use eval to expand $SHELL
2616if eval "$MISSING --is-lightweight"; then
2617  am_missing_run="$MISSING "
2618else
2619  am_missing_run=
2620  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2621$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2622fi
2623
2624if test x"${install_sh+set}" != xset; then
2625  case $am_aux_dir in
2626  *\ * | *\	*)
2627    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2628  *)
2629    install_sh="\${SHELL} $am_aux_dir/install-sh"
2630  esac
2631fi
2632
2633# Installed binaries are usually stripped using 'strip' when the user
2634# run "make install-strip".  However 'strip' might not be the right
2635# tool to use in cross-compilation environments, therefore Automake
2636# will honor the 'STRIP' environment variable to overrule this program.
2637if test "$cross_compiling" != no; then
2638  if test -n "$ac_tool_prefix"; then
2639  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2640set dummy ${ac_tool_prefix}strip; ac_word=$2
2641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2642$as_echo_n "checking for $ac_word... " >&6; }
2643if ${ac_cv_prog_STRIP+:} false; then :
2644  $as_echo_n "(cached) " >&6
2645else
2646  if test -n "$STRIP"; then
2647  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2648else
2649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650for as_dir in $PATH
2651do
2652  IFS=$as_save_IFS
2653  test -z "$as_dir" && as_dir=.
2654    for ac_exec_ext in '' $ac_executable_extensions; do
2655  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2656    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2657    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2658    break 2
2659  fi
2660done
2661  done
2662IFS=$as_save_IFS
2663
2664fi
2665fi
2666STRIP=$ac_cv_prog_STRIP
2667if test -n "$STRIP"; then
2668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2669$as_echo "$STRIP" >&6; }
2670else
2671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2672$as_echo "no" >&6; }
2673fi
2674
2675
2676fi
2677if test -z "$ac_cv_prog_STRIP"; then
2678  ac_ct_STRIP=$STRIP
2679  # Extract the first word of "strip", so it can be a program name with args.
2680set dummy strip; ac_word=$2
2681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2682$as_echo_n "checking for $ac_word... " >&6; }
2683if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2684  $as_echo_n "(cached) " >&6
2685else
2686  if test -n "$ac_ct_STRIP"; then
2687  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2688else
2689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690for as_dir in $PATH
2691do
2692  IFS=$as_save_IFS
2693  test -z "$as_dir" && as_dir=.
2694    for ac_exec_ext in '' $ac_executable_extensions; do
2695  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2696    ac_cv_prog_ac_ct_STRIP="strip"
2697    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2698    break 2
2699  fi
2700done
2701  done
2702IFS=$as_save_IFS
2703
2704fi
2705fi
2706ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2707if test -n "$ac_ct_STRIP"; then
2708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2709$as_echo "$ac_ct_STRIP" >&6; }
2710else
2711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2712$as_echo "no" >&6; }
2713fi
2714
2715  if test "x$ac_ct_STRIP" = x; then
2716    STRIP=":"
2717  else
2718    case $cross_compiling:$ac_tool_warned in
2719yes:)
2720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2722ac_tool_warned=yes ;;
2723esac
2724    STRIP=$ac_ct_STRIP
2725  fi
2726else
2727  STRIP="$ac_cv_prog_STRIP"
2728fi
2729
2730fi
2731INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2732
2733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2734$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2735if test -z "$MKDIR_P"; then
2736  if ${ac_cv_path_mkdir+:} false; then :
2737  $as_echo_n "(cached) " >&6
2738else
2739  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2741do
2742  IFS=$as_save_IFS
2743  test -z "$as_dir" && as_dir=.
2744    for ac_prog in mkdir gmkdir; do
2745	 for ac_exec_ext in '' $ac_executable_extensions; do
2746	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2747	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2748	     'mkdir (GNU coreutils) '* | \
2749	     'mkdir (coreutils) '* | \
2750	     'mkdir (fileutils) '4.1*)
2751	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2752	       break 3;;
2753	   esac
2754	 done
2755       done
2756  done
2757IFS=$as_save_IFS
2758
2759fi
2760
2761  test -d ./--version && rmdir ./--version
2762  if test "${ac_cv_path_mkdir+set}" = set; then
2763    MKDIR_P="$ac_cv_path_mkdir -p"
2764  else
2765    # As a last resort, use the slow shell script.  Don't cache a
2766    # value for MKDIR_P within a source directory, because that will
2767    # break other packages using the cache if that directory is
2768    # removed, or if the value is a relative name.
2769    MKDIR_P="$ac_install_sh -d"
2770  fi
2771fi
2772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2773$as_echo "$MKDIR_P" >&6; }
2774
2775for ac_prog in gawk mawk nawk awk
2776do
2777  # Extract the first word of "$ac_prog", so it can be a program name with args.
2778set dummy $ac_prog; ac_word=$2
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780$as_echo_n "checking for $ac_word... " >&6; }
2781if ${ac_cv_prog_AWK+:} false; then :
2782  $as_echo_n "(cached) " >&6
2783else
2784  if test -n "$AWK"; then
2785  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2786else
2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788for as_dir in $PATH
2789do
2790  IFS=$as_save_IFS
2791  test -z "$as_dir" && as_dir=.
2792    for ac_exec_ext in '' $ac_executable_extensions; do
2793  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2794    ac_cv_prog_AWK="$ac_prog"
2795    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796    break 2
2797  fi
2798done
2799  done
2800IFS=$as_save_IFS
2801
2802fi
2803fi
2804AWK=$ac_cv_prog_AWK
2805if test -n "$AWK"; then
2806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2807$as_echo "$AWK" >&6; }
2808else
2809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810$as_echo "no" >&6; }
2811fi
2812
2813
2814  test -n "$AWK" && break
2815done
2816
2817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2818$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2819set x ${MAKE-make}
2820ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2821if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2822  $as_echo_n "(cached) " >&6
2823else
2824  cat >conftest.make <<\_ACEOF
2825SHELL = /bin/sh
2826all:
2827	@echo '@@@%%%=$(MAKE)=@@@%%%'
2828_ACEOF
2829# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2830case `${MAKE-make} -f conftest.make 2>/dev/null` in
2831  *@@@%%%=?*=@@@%%%*)
2832    eval ac_cv_prog_make_${ac_make}_set=yes;;
2833  *)
2834    eval ac_cv_prog_make_${ac_make}_set=no;;
2835esac
2836rm -f conftest.make
2837fi
2838if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2840$as_echo "yes" >&6; }
2841  SET_MAKE=
2842else
2843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844$as_echo "no" >&6; }
2845  SET_MAKE="MAKE=${MAKE-make}"
2846fi
2847
2848rm -rf .tst 2>/dev/null
2849mkdir .tst 2>/dev/null
2850if test -d .tst; then
2851  am__leading_dot=.
2852else
2853  am__leading_dot=_
2854fi
2855rmdir .tst 2>/dev/null
2856
2857# Check whether --enable-silent-rules was given.
2858if test "${enable_silent_rules+set}" = set; then :
2859  enableval=$enable_silent_rules;
2860fi
2861
2862case $enable_silent_rules in # (((
2863  yes) AM_DEFAULT_VERBOSITY=0;;
2864   no) AM_DEFAULT_VERBOSITY=1;;
2865    *) AM_DEFAULT_VERBOSITY=1;;
2866esac
2867am_make=${MAKE-make}
2868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2869$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2870if ${am_cv_make_support_nested_variables+:} false; then :
2871  $as_echo_n "(cached) " >&6
2872else
2873  if $as_echo 'TRUE=$(BAR$(V))
2874BAR0=false
2875BAR1=true
2876V=1
2877am__doit:
2878	@$(TRUE)
2879.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2880  am_cv_make_support_nested_variables=yes
2881else
2882  am_cv_make_support_nested_variables=no
2883fi
2884fi
2885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2886$as_echo "$am_cv_make_support_nested_variables" >&6; }
2887if test $am_cv_make_support_nested_variables = yes; then
2888    AM_V='$(V)'
2889  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2890else
2891  AM_V=$AM_DEFAULT_VERBOSITY
2892  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2893fi
2894AM_BACKSLASH='\'
2895
2896if test "`cd $srcdir && pwd`" != "`pwd`"; then
2897  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2898  # is not polluted with repeated "-I."
2899  am__isrc=' -I$(srcdir)'
2900  # test to see if srcdir already configured
2901  if test -f $srcdir/config.status; then
2902    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2903  fi
2904fi
2905
2906# test whether we have cygpath
2907if test -z "$CYGPATH_W"; then
2908  if (cygpath --version) >/dev/null 2>/dev/null; then
2909    CYGPATH_W='cygpath -w'
2910  else
2911    CYGPATH_W=echo
2912  fi
2913fi
2914
2915
2916# Define the identity of the package.
2917 PACKAGE='xf86-video-ati'
2918 VERSION='18.0.0'
2919
2920
2921cat >>confdefs.h <<_ACEOF
2922#define PACKAGE "$PACKAGE"
2923_ACEOF
2924
2925
2926cat >>confdefs.h <<_ACEOF
2927#define VERSION "$VERSION"
2928_ACEOF
2929
2930# Some tools Automake needs.
2931
2932ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2933
2934
2935AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2936
2937
2938AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2939
2940
2941AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2942
2943
2944MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2945
2946# For better backward compatibility.  To be removed once Automake 1.9.x
2947# dies out for good.  For more background, see:
2948# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2949# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2950mkdir_p='$(MKDIR_P)'
2951
2952# We need awk for the "check" target (and possibly the TAP driver).  The
2953# system "awk" is bad on some platforms.
2954# Always define AMTAR for backward compatibility.  Yes, it's still used
2955# in the wild :-(  We should find a proper way to deprecate it ...
2956AMTAR='$${TAR-tar}'
2957
2958
2959# We'll loop over all known methods to create a tar archive until one works.
2960_am_tools='gnutar  pax cpio none'
2961
2962am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2963
2964
2965
2966
2967
2968
2969# POSIX will say in a future version that running "rm -f" with no argument
2970# is OK; and we want to be able to make that assumption in our Makefile
2971# recipes.  So use an aggressive probe to check that the usage we want is
2972# actually supported "in the wild" to an acceptable degree.
2973# See automake bug#10828.
2974# To make any issue more visible, cause the running configure to be aborted
2975# by default if the 'rm' program in use doesn't match our expectations; the
2976# user can still override this though.
2977if rm -f && rm -fr && rm -rf; then : OK; else
2978  cat >&2 <<'END'
2979Oops!
2980
2981Your 'rm' program seems unable to run without file operands specified
2982on the command line, even when the '-f' option is present.  This is contrary
2983to the behaviour of most rm programs out there, and not conforming with
2984the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2985
2986Please tell bug-automake@gnu.org about your system, including the value
2987of your $PATH and any error possibly output before this message.  This
2988can help us improve future automake versions.
2989
2990END
2991  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2992    echo 'Configuration will proceed anyway, since you have set the' >&2
2993    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2994    echo >&2
2995  else
2996    cat >&2 <<'END'
2997Aborting the configuration process, to ensure you take notice of the issue.
2998
2999You can download and install GNU coreutils to get an 'rm' implementation
3000that behaves properly: <http://www.gnu.org/software/coreutils/>.
3001
3002If you want to complete the configuration process using your problematic
3003'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3004to "yes", and re-run configure.
3005
3006END
3007    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3008  fi
3009fi
3010
3011DEPDIR="${am__leading_dot}deps"
3012
3013ac_config_commands="$ac_config_commands depfiles"
3014
3015
3016am_make=${MAKE-make}
3017cat > confinc << 'END'
3018am__doit:
3019	@echo this is the am__doit target
3020.PHONY: am__doit
3021END
3022# If we don't find an include directive, just comment out the code.
3023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3024$as_echo_n "checking for style of include used by $am_make... " >&6; }
3025am__include="#"
3026am__quote=
3027_am_result=none
3028# First try GNU make style include.
3029echo "include confinc" > confmf
3030# Ignore all kinds of additional output from 'make'.
3031case `$am_make -s -f confmf 2> /dev/null` in #(
3032*the\ am__doit\ target*)
3033  am__include=include
3034  am__quote=
3035  _am_result=GNU
3036  ;;
3037esac
3038# Now try BSD make style include.
3039if test "$am__include" = "#"; then
3040   echo '.include "confinc"' > confmf
3041   case `$am_make -s -f confmf 2> /dev/null` in #(
3042   *the\ am__doit\ target*)
3043     am__include=.include
3044     am__quote="\""
3045     _am_result=BSD
3046     ;;
3047   esac
3048fi
3049
3050
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3052$as_echo "$_am_result" >&6; }
3053rm -f confinc confmf
3054
3055# Check whether --enable-dependency-tracking was given.
3056if test "${enable_dependency_tracking+set}" = set; then :
3057  enableval=$enable_dependency_tracking;
3058fi
3059
3060if test "x$enable_dependency_tracking" != xno; then
3061  am_depcomp="$ac_aux_dir/depcomp"
3062  AMDEPBACKSLASH='\'
3063  am__nodep='_no'
3064fi
3065 if test "x$enable_dependency_tracking" != xno; then
3066  AMDEP_TRUE=
3067  AMDEP_FALSE='#'
3068else
3069  AMDEP_TRUE='#'
3070  AMDEP_FALSE=
3071fi
3072
3073
3074ac_ext=c
3075ac_cpp='$CPP $CPPFLAGS'
3076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3078ac_compiler_gnu=$ac_cv_c_compiler_gnu
3079if test -n "$ac_tool_prefix"; then
3080  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3081set dummy ${ac_tool_prefix}gcc; ac_word=$2
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083$as_echo_n "checking for $ac_word... " >&6; }
3084if ${ac_cv_prog_CC+:} false; then :
3085  $as_echo_n "(cached) " >&6
3086else
3087  if test -n "$CC"; then
3088  ac_cv_prog_CC="$CC" # Let the user override the test.
3089else
3090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091for as_dir in $PATH
3092do
3093  IFS=$as_save_IFS
3094  test -z "$as_dir" && as_dir=.
3095    for ac_exec_ext in '' $ac_executable_extensions; do
3096  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3098    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099    break 2
3100  fi
3101done
3102  done
3103IFS=$as_save_IFS
3104
3105fi
3106fi
3107CC=$ac_cv_prog_CC
3108if test -n "$CC"; then
3109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3110$as_echo "$CC" >&6; }
3111else
3112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113$as_echo "no" >&6; }
3114fi
3115
3116
3117fi
3118if test -z "$ac_cv_prog_CC"; then
3119  ac_ct_CC=$CC
3120  # Extract the first word of "gcc", so it can be a program name with args.
3121set dummy gcc; ac_word=$2
3122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123$as_echo_n "checking for $ac_word... " >&6; }
3124if ${ac_cv_prog_ac_ct_CC+:} false; then :
3125  $as_echo_n "(cached) " >&6
3126else
3127  if test -n "$ac_ct_CC"; then
3128  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3129else
3130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131for as_dir in $PATH
3132do
3133  IFS=$as_save_IFS
3134  test -z "$as_dir" && as_dir=.
3135    for ac_exec_ext in '' $ac_executable_extensions; do
3136  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137    ac_cv_prog_ac_ct_CC="gcc"
3138    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3139    break 2
3140  fi
3141done
3142  done
3143IFS=$as_save_IFS
3144
3145fi
3146fi
3147ac_ct_CC=$ac_cv_prog_ac_ct_CC
3148if test -n "$ac_ct_CC"; then
3149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3150$as_echo "$ac_ct_CC" >&6; }
3151else
3152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153$as_echo "no" >&6; }
3154fi
3155
3156  if test "x$ac_ct_CC" = x; then
3157    CC=""
3158  else
3159    case $cross_compiling:$ac_tool_warned in
3160yes:)
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3163ac_tool_warned=yes ;;
3164esac
3165    CC=$ac_ct_CC
3166  fi
3167else
3168  CC="$ac_cv_prog_CC"
3169fi
3170
3171if test -z "$CC"; then
3172          if test -n "$ac_tool_prefix"; then
3173    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3174set dummy ${ac_tool_prefix}cc; ac_word=$2
3175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176$as_echo_n "checking for $ac_word... " >&6; }
3177if ${ac_cv_prog_CC+:} false; then :
3178  $as_echo_n "(cached) " >&6
3179else
3180  if test -n "$CC"; then
3181  ac_cv_prog_CC="$CC" # Let the user override the test.
3182else
3183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184for as_dir in $PATH
3185do
3186  IFS=$as_save_IFS
3187  test -z "$as_dir" && as_dir=.
3188    for ac_exec_ext in '' $ac_executable_extensions; do
3189  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190    ac_cv_prog_CC="${ac_tool_prefix}cc"
3191    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192    break 2
3193  fi
3194done
3195  done
3196IFS=$as_save_IFS
3197
3198fi
3199fi
3200CC=$ac_cv_prog_CC
3201if test -n "$CC"; then
3202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3203$as_echo "$CC" >&6; }
3204else
3205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206$as_echo "no" >&6; }
3207fi
3208
3209
3210  fi
3211fi
3212if test -z "$CC"; then
3213  # Extract the first word of "cc", so it can be a program name with args.
3214set dummy cc; ac_word=$2
3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216$as_echo_n "checking for $ac_word... " >&6; }
3217if ${ac_cv_prog_CC+:} false; then :
3218  $as_echo_n "(cached) " >&6
3219else
3220  if test -n "$CC"; then
3221  ac_cv_prog_CC="$CC" # Let the user override the test.
3222else
3223  ac_prog_rejected=no
3224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225for as_dir in $PATH
3226do
3227  IFS=$as_save_IFS
3228  test -z "$as_dir" && as_dir=.
3229    for ac_exec_ext in '' $ac_executable_extensions; do
3230  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3231    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3232       ac_prog_rejected=yes
3233       continue
3234     fi
3235    ac_cv_prog_CC="cc"
3236    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237    break 2
3238  fi
3239done
3240  done
3241IFS=$as_save_IFS
3242
3243if test $ac_prog_rejected = yes; then
3244  # We found a bogon in the path, so make sure we never use it.
3245  set dummy $ac_cv_prog_CC
3246  shift
3247  if test $# != 0; then
3248    # We chose a different compiler from the bogus one.
3249    # However, it has the same basename, so the bogon will be chosen
3250    # first if we set CC to just the basename; use the full file name.
3251    shift
3252    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3253  fi
3254fi
3255fi
3256fi
3257CC=$ac_cv_prog_CC
3258if test -n "$CC"; then
3259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3260$as_echo "$CC" >&6; }
3261else
3262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263$as_echo "no" >&6; }
3264fi
3265
3266
3267fi
3268if test -z "$CC"; then
3269  if test -n "$ac_tool_prefix"; then
3270  for ac_prog in cl.exe
3271  do
3272    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3273set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3275$as_echo_n "checking for $ac_word... " >&6; }
3276if ${ac_cv_prog_CC+:} false; then :
3277  $as_echo_n "(cached) " >&6
3278else
3279  if test -n "$CC"; then
3280  ac_cv_prog_CC="$CC" # Let the user override the test.
3281else
3282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283for as_dir in $PATH
3284do
3285  IFS=$as_save_IFS
3286  test -z "$as_dir" && as_dir=.
3287    for ac_exec_ext in '' $ac_executable_extensions; do
3288  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3289    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3290    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3291    break 2
3292  fi
3293done
3294  done
3295IFS=$as_save_IFS
3296
3297fi
3298fi
3299CC=$ac_cv_prog_CC
3300if test -n "$CC"; then
3301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3302$as_echo "$CC" >&6; }
3303else
3304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305$as_echo "no" >&6; }
3306fi
3307
3308
3309    test -n "$CC" && break
3310  done
3311fi
3312if test -z "$CC"; then
3313  ac_ct_CC=$CC
3314  for ac_prog in cl.exe
3315do
3316  # Extract the first word of "$ac_prog", so it can be a program name with args.
3317set dummy $ac_prog; ac_word=$2
3318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3319$as_echo_n "checking for $ac_word... " >&6; }
3320if ${ac_cv_prog_ac_ct_CC+:} false; then :
3321  $as_echo_n "(cached) " >&6
3322else
3323  if test -n "$ac_ct_CC"; then
3324  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3325else
3326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327for as_dir in $PATH
3328do
3329  IFS=$as_save_IFS
3330  test -z "$as_dir" && as_dir=.
3331    for ac_exec_ext in '' $ac_executable_extensions; do
3332  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3333    ac_cv_prog_ac_ct_CC="$ac_prog"
3334    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3335    break 2
3336  fi
3337done
3338  done
3339IFS=$as_save_IFS
3340
3341fi
3342fi
3343ac_ct_CC=$ac_cv_prog_ac_ct_CC
3344if test -n "$ac_ct_CC"; then
3345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3346$as_echo "$ac_ct_CC" >&6; }
3347else
3348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3349$as_echo "no" >&6; }
3350fi
3351
3352
3353  test -n "$ac_ct_CC" && break
3354done
3355
3356  if test "x$ac_ct_CC" = x; then
3357    CC=""
3358  else
3359    case $cross_compiling:$ac_tool_warned in
3360yes:)
3361{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3362$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3363ac_tool_warned=yes ;;
3364esac
3365    CC=$ac_ct_CC
3366  fi
3367fi
3368
3369fi
3370
3371
3372test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3374as_fn_error $? "no acceptable C compiler found in \$PATH
3375See \`config.log' for more details" "$LINENO" 5; }
3376
3377# Provide some information about the compiler.
3378$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3379set X $ac_compile
3380ac_compiler=$2
3381for ac_option in --version -v -V -qversion; do
3382  { { ac_try="$ac_compiler $ac_option >&5"
3383case "(($ac_try" in
3384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385  *) ac_try_echo=$ac_try;;
3386esac
3387eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388$as_echo "$ac_try_echo"; } >&5
3389  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3390  ac_status=$?
3391  if test -s conftest.err; then
3392    sed '10a\
3393... rest of stderr output deleted ...
3394         10q' conftest.err >conftest.er1
3395    cat conftest.er1 >&5
3396  fi
3397  rm -f conftest.er1 conftest.err
3398  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399  test $ac_status = 0; }
3400done
3401
3402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403/* end confdefs.h.  */
3404
3405int
3406main ()
3407{
3408
3409  ;
3410  return 0;
3411}
3412_ACEOF
3413ac_clean_files_save=$ac_clean_files
3414ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3415# Try to create an executable without -o first, disregard a.out.
3416# It will help us diagnose broken compilers, and finding out an intuition
3417# of exeext.
3418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3419$as_echo_n "checking whether the C compiler works... " >&6; }
3420ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3421
3422# The possible output files:
3423ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3424
3425ac_rmfiles=
3426for ac_file in $ac_files
3427do
3428  case $ac_file in
3429    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3430    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3431  esac
3432done
3433rm -f $ac_rmfiles
3434
3435if { { ac_try="$ac_link_default"
3436case "(($ac_try" in
3437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438  *) ac_try_echo=$ac_try;;
3439esac
3440eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3441$as_echo "$ac_try_echo"; } >&5
3442  (eval "$ac_link_default") 2>&5
3443  ac_status=$?
3444  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3445  test $ac_status = 0; }; then :
3446  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3447# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3448# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3449# so that the user can short-circuit this test for compilers unknown to
3450# Autoconf.
3451for ac_file in $ac_files ''
3452do
3453  test -f "$ac_file" || continue
3454  case $ac_file in
3455    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3456	;;
3457    [ab].out )
3458	# We found the default executable, but exeext='' is most
3459	# certainly right.
3460	break;;
3461    *.* )
3462	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3463	then :; else
3464	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3465	fi
3466	# We set ac_cv_exeext here because the later test for it is not
3467	# safe: cross compilers may not add the suffix if given an `-o'
3468	# argument, so we may need to know it at that point already.
3469	# Even if this section looks crufty: it has the advantage of
3470	# actually working.
3471	break;;
3472    * )
3473	break;;
3474  esac
3475done
3476test "$ac_cv_exeext" = no && ac_cv_exeext=
3477
3478else
3479  ac_file=''
3480fi
3481if test -z "$ac_file"; then :
3482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483$as_echo "no" >&6; }
3484$as_echo "$as_me: failed program was:" >&5
3485sed 's/^/| /' conftest.$ac_ext >&5
3486
3487{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3489as_fn_error 77 "C compiler cannot create executables
3490See \`config.log' for more details" "$LINENO" 5; }
3491else
3492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3493$as_echo "yes" >&6; }
3494fi
3495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3496$as_echo_n "checking for C compiler default output file name... " >&6; }
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3498$as_echo "$ac_file" >&6; }
3499ac_exeext=$ac_cv_exeext
3500
3501rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3502ac_clean_files=$ac_clean_files_save
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3504$as_echo_n "checking for suffix of executables... " >&6; }
3505if { { ac_try="$ac_link"
3506case "(($ac_try" in
3507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508  *) ac_try_echo=$ac_try;;
3509esac
3510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3511$as_echo "$ac_try_echo"; } >&5
3512  (eval "$ac_link") 2>&5
3513  ac_status=$?
3514  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515  test $ac_status = 0; }; then :
3516  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3517# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3518# work properly (i.e., refer to `conftest.exe'), while it won't with
3519# `rm'.
3520for ac_file in conftest.exe conftest conftest.*; do
3521  test -f "$ac_file" || continue
3522  case $ac_file in
3523    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3524    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3525	  break;;
3526    * ) break;;
3527  esac
3528done
3529else
3530  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3531$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3532as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3533See \`config.log' for more details" "$LINENO" 5; }
3534fi
3535rm -f conftest conftest$ac_cv_exeext
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3537$as_echo "$ac_cv_exeext" >&6; }
3538
3539rm -f conftest.$ac_ext
3540EXEEXT=$ac_cv_exeext
3541ac_exeext=$EXEEXT
3542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543/* end confdefs.h.  */
3544#include <stdio.h>
3545int
3546main ()
3547{
3548FILE *f = fopen ("conftest.out", "w");
3549 return ferror (f) || fclose (f) != 0;
3550
3551  ;
3552  return 0;
3553}
3554_ACEOF
3555ac_clean_files="$ac_clean_files conftest.out"
3556# Check that the compiler produces executables we can run.  If not, either
3557# the compiler is broken, or we cross compile.
3558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3559$as_echo_n "checking whether we are cross compiling... " >&6; }
3560if test "$cross_compiling" != yes; then
3561  { { ac_try="$ac_link"
3562case "(($ac_try" in
3563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564  *) ac_try_echo=$ac_try;;
3565esac
3566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3567$as_echo "$ac_try_echo"; } >&5
3568  (eval "$ac_link") 2>&5
3569  ac_status=$?
3570  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3571  test $ac_status = 0; }
3572  if { ac_try='./conftest$ac_cv_exeext'
3573  { { case "(($ac_try" in
3574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575  *) ac_try_echo=$ac_try;;
3576esac
3577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3578$as_echo "$ac_try_echo"; } >&5
3579  (eval "$ac_try") 2>&5
3580  ac_status=$?
3581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3582  test $ac_status = 0; }; }; then
3583    cross_compiling=no
3584  else
3585    if test "$cross_compiling" = maybe; then
3586	cross_compiling=yes
3587    else
3588	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590as_fn_error $? "cannot run C compiled programs.
3591If you meant to cross compile, use \`--host'.
3592See \`config.log' for more details" "$LINENO" 5; }
3593    fi
3594  fi
3595fi
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3597$as_echo "$cross_compiling" >&6; }
3598
3599rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3600ac_clean_files=$ac_clean_files_save
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3602$as_echo_n "checking for suffix of object files... " >&6; }
3603if ${ac_cv_objext+:} false; then :
3604  $as_echo_n "(cached) " >&6
3605else
3606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607/* end confdefs.h.  */
3608
3609int
3610main ()
3611{
3612
3613  ;
3614  return 0;
3615}
3616_ACEOF
3617rm -f conftest.o conftest.obj
3618if { { ac_try="$ac_compile"
3619case "(($ac_try" in
3620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621  *) ac_try_echo=$ac_try;;
3622esac
3623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3624$as_echo "$ac_try_echo"; } >&5
3625  (eval "$ac_compile") 2>&5
3626  ac_status=$?
3627  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3628  test $ac_status = 0; }; then :
3629  for ac_file in conftest.o conftest.obj conftest.*; do
3630  test -f "$ac_file" || continue;
3631  case $ac_file in
3632    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3633    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3634       break;;
3635  esac
3636done
3637else
3638  $as_echo "$as_me: failed program was:" >&5
3639sed 's/^/| /' conftest.$ac_ext >&5
3640
3641{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3642$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3643as_fn_error $? "cannot compute suffix of object files: cannot compile
3644See \`config.log' for more details" "$LINENO" 5; }
3645fi
3646rm -f conftest.$ac_cv_objext conftest.$ac_ext
3647fi
3648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3649$as_echo "$ac_cv_objext" >&6; }
3650OBJEXT=$ac_cv_objext
3651ac_objext=$OBJEXT
3652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3653$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3654if ${ac_cv_c_compiler_gnu+:} false; then :
3655  $as_echo_n "(cached) " >&6
3656else
3657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658/* end confdefs.h.  */
3659
3660int
3661main ()
3662{
3663#ifndef __GNUC__
3664       choke me
3665#endif
3666
3667  ;
3668  return 0;
3669}
3670_ACEOF
3671if ac_fn_c_try_compile "$LINENO"; then :
3672  ac_compiler_gnu=yes
3673else
3674  ac_compiler_gnu=no
3675fi
3676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677ac_cv_c_compiler_gnu=$ac_compiler_gnu
3678
3679fi
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3681$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3682if test $ac_compiler_gnu = yes; then
3683  GCC=yes
3684else
3685  GCC=
3686fi
3687ac_test_CFLAGS=${CFLAGS+set}
3688ac_save_CFLAGS=$CFLAGS
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3690$as_echo_n "checking whether $CC accepts -g... " >&6; }
3691if ${ac_cv_prog_cc_g+:} false; then :
3692  $as_echo_n "(cached) " >&6
3693else
3694  ac_save_c_werror_flag=$ac_c_werror_flag
3695   ac_c_werror_flag=yes
3696   ac_cv_prog_cc_g=no
3697   CFLAGS="-g"
3698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699/* end confdefs.h.  */
3700
3701int
3702main ()
3703{
3704
3705  ;
3706  return 0;
3707}
3708_ACEOF
3709if ac_fn_c_try_compile "$LINENO"; then :
3710  ac_cv_prog_cc_g=yes
3711else
3712  CFLAGS=""
3713      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714/* end confdefs.h.  */
3715
3716int
3717main ()
3718{
3719
3720  ;
3721  return 0;
3722}
3723_ACEOF
3724if ac_fn_c_try_compile "$LINENO"; then :
3725
3726else
3727  ac_c_werror_flag=$ac_save_c_werror_flag
3728	 CFLAGS="-g"
3729	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730/* end confdefs.h.  */
3731
3732int
3733main ()
3734{
3735
3736  ;
3737  return 0;
3738}
3739_ACEOF
3740if ac_fn_c_try_compile "$LINENO"; then :
3741  ac_cv_prog_cc_g=yes
3742fi
3743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744fi
3745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746fi
3747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3748   ac_c_werror_flag=$ac_save_c_werror_flag
3749fi
3750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3751$as_echo "$ac_cv_prog_cc_g" >&6; }
3752if test "$ac_test_CFLAGS" = set; then
3753  CFLAGS=$ac_save_CFLAGS
3754elif test $ac_cv_prog_cc_g = yes; then
3755  if test "$GCC" = yes; then
3756    CFLAGS="-g -O2"
3757  else
3758    CFLAGS="-g"
3759  fi
3760else
3761  if test "$GCC" = yes; then
3762    CFLAGS="-O2"
3763  else
3764    CFLAGS=
3765  fi
3766fi
3767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3768$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3769if ${ac_cv_prog_cc_c89+:} false; then :
3770  $as_echo_n "(cached) " >&6
3771else
3772  ac_cv_prog_cc_c89=no
3773ac_save_CC=$CC
3774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775/* end confdefs.h.  */
3776#include <stdarg.h>
3777#include <stdio.h>
3778struct stat;
3779/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3780struct buf { int x; };
3781FILE * (*rcsopen) (struct buf *, struct stat *, int);
3782static char *e (p, i)
3783     char **p;
3784     int i;
3785{
3786  return p[i];
3787}
3788static char *f (char * (*g) (char **, int), char **p, ...)
3789{
3790  char *s;
3791  va_list v;
3792  va_start (v,p);
3793  s = g (p, va_arg (v,int));
3794  va_end (v);
3795  return s;
3796}
3797
3798/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3799   function prototypes and stuff, but not '\xHH' hex character constants.
3800   These don't provoke an error unfortunately, instead are silently treated
3801   as 'x'.  The following induces an error, until -std is added to get
3802   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3803   array size at least.  It's necessary to write '\x00'==0 to get something
3804   that's true only with -std.  */
3805int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3806
3807/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3808   inside strings and character constants.  */
3809#define FOO(x) 'x'
3810int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3811
3812int test (int i, double x);
3813struct s1 {int (*f) (int a);};
3814struct s2 {int (*f) (double a);};
3815int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3816int argc;
3817char **argv;
3818int
3819main ()
3820{
3821return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3822  ;
3823  return 0;
3824}
3825_ACEOF
3826for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3827	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3828do
3829  CC="$ac_save_CC $ac_arg"
3830  if ac_fn_c_try_compile "$LINENO"; then :
3831  ac_cv_prog_cc_c89=$ac_arg
3832fi
3833rm -f core conftest.err conftest.$ac_objext
3834  test "x$ac_cv_prog_cc_c89" != "xno" && break
3835done
3836rm -f conftest.$ac_ext
3837CC=$ac_save_CC
3838
3839fi
3840# AC_CACHE_VAL
3841case "x$ac_cv_prog_cc_c89" in
3842  x)
3843    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3844$as_echo "none needed" >&6; } ;;
3845  xno)
3846    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3847$as_echo "unsupported" >&6; } ;;
3848  *)
3849    CC="$CC $ac_cv_prog_cc_c89"
3850    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3851$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3852esac
3853if test "x$ac_cv_prog_cc_c89" != xno; then :
3854
3855fi
3856
3857ac_ext=c
3858ac_cpp='$CPP $CPPFLAGS'
3859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3861ac_compiler_gnu=$ac_cv_c_compiler_gnu
3862
3863ac_ext=c
3864ac_cpp='$CPP $CPPFLAGS'
3865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3867ac_compiler_gnu=$ac_cv_c_compiler_gnu
3868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3869$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3870if ${am_cv_prog_cc_c_o+:} false; then :
3871  $as_echo_n "(cached) " >&6
3872else
3873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874/* end confdefs.h.  */
3875
3876int
3877main ()
3878{
3879
3880  ;
3881  return 0;
3882}
3883_ACEOF
3884  # Make sure it works both with $CC and with simple cc.
3885  # Following AC_PROG_CC_C_O, we do the test twice because some
3886  # compilers refuse to overwrite an existing .o file with -o,
3887  # though they will create one.
3888  am_cv_prog_cc_c_o=yes
3889  for am_i in 1 2; do
3890    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3891   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3892   ac_status=$?
3893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894   (exit $ac_status); } \
3895         && test -f conftest2.$ac_objext; then
3896      : OK
3897    else
3898      am_cv_prog_cc_c_o=no
3899      break
3900    fi
3901  done
3902  rm -f core conftest*
3903  unset am_i
3904fi
3905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3906$as_echo "$am_cv_prog_cc_c_o" >&6; }
3907if test "$am_cv_prog_cc_c_o" != yes; then
3908   # Losing compiler, so override with the script.
3909   # FIXME: It is wrong to rewrite CC.
3910   # But if we don't then we get into trouble of one sort or another.
3911   # A longer-term fix would be to have automake use am__CC in this case,
3912   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3913   CC="$am_aux_dir/compile $CC"
3914fi
3915ac_ext=c
3916ac_cpp='$CPP $CPPFLAGS'
3917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3919ac_compiler_gnu=$ac_cv_c_compiler_gnu
3920
3921
3922depcc="$CC"   am_compiler_list=
3923
3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3925$as_echo_n "checking dependency style of $depcc... " >&6; }
3926if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3927  $as_echo_n "(cached) " >&6
3928else
3929  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3930  # We make a subdir and do the tests there.  Otherwise we can end up
3931  # making bogus files that we don't know about and never remove.  For
3932  # instance it was reported that on HP-UX the gcc test will end up
3933  # making a dummy file named 'D' -- because '-MD' means "put the output
3934  # in D".
3935  rm -rf conftest.dir
3936  mkdir conftest.dir
3937  # Copy depcomp to subdir because otherwise we won't find it if we're
3938  # using a relative directory.
3939  cp "$am_depcomp" conftest.dir
3940  cd conftest.dir
3941  # We will build objects and dependencies in a subdirectory because
3942  # it helps to detect inapplicable dependency modes.  For instance
3943  # both Tru64's cc and ICC support -MD to output dependencies as a
3944  # side effect of compilation, but ICC will put the dependencies in
3945  # the current directory while Tru64 will put them in the object
3946  # directory.
3947  mkdir sub
3948
3949  am_cv_CC_dependencies_compiler_type=none
3950  if test "$am_compiler_list" = ""; then
3951     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3952  fi
3953  am__universal=false
3954  case " $depcc " in #(
3955     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3956     esac
3957
3958  for depmode in $am_compiler_list; do
3959    # Setup a source with many dependencies, because some compilers
3960    # like to wrap large dependency lists on column 80 (with \), and
3961    # we should not choose a depcomp mode which is confused by this.
3962    #
3963    # We need to recreate these files for each test, as the compiler may
3964    # overwrite some of them when testing with obscure command lines.
3965    # This happens at least with the AIX C compiler.
3966    : > sub/conftest.c
3967    for i in 1 2 3 4 5 6; do
3968      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3969      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3970      # Solaris 10 /bin/sh.
3971      echo '/* dummy */' > sub/conftst$i.h
3972    done
3973    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3974
3975    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3976    # mode.  It turns out that the SunPro C++ compiler does not properly
3977    # handle '-M -o', and we need to detect this.  Also, some Intel
3978    # versions had trouble with output in subdirs.
3979    am__obj=sub/conftest.${OBJEXT-o}
3980    am__minus_obj="-o $am__obj"
3981    case $depmode in
3982    gcc)
3983      # This depmode causes a compiler race in universal mode.
3984      test "$am__universal" = false || continue
3985      ;;
3986    nosideeffect)
3987      # After this tag, mechanisms are not by side-effect, so they'll
3988      # only be used when explicitly requested.
3989      if test "x$enable_dependency_tracking" = xyes; then
3990	continue
3991      else
3992	break
3993      fi
3994      ;;
3995    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3996      # This compiler won't grok '-c -o', but also, the minuso test has
3997      # not run yet.  These depmodes are late enough in the game, and
3998      # so weak that their functioning should not be impacted.
3999      am__obj=conftest.${OBJEXT-o}
4000      am__minus_obj=
4001      ;;
4002    none) break ;;
4003    esac
4004    if depmode=$depmode \
4005       source=sub/conftest.c object=$am__obj \
4006       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4007       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4008         >/dev/null 2>conftest.err &&
4009       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4010       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4011       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4012       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4013      # icc doesn't choke on unknown options, it will just issue warnings
4014      # or remarks (even with -Werror).  So we grep stderr for any message
4015      # that says an option was ignored or not supported.
4016      # When given -MP, icc 7.0 and 7.1 complain thusly:
4017      #   icc: Command line warning: ignoring option '-M'; no argument required
4018      # The diagnosis changed in icc 8.0:
4019      #   icc: Command line remark: option '-MP' not supported
4020      if (grep 'ignoring option' conftest.err ||
4021          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4022        am_cv_CC_dependencies_compiler_type=$depmode
4023        break
4024      fi
4025    fi
4026  done
4027
4028  cd ..
4029  rm -rf conftest.dir
4030else
4031  am_cv_CC_dependencies_compiler_type=none
4032fi
4033
4034fi
4035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4036$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4037CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4038
4039 if
4040  test "x$enable_dependency_tracking" != xno \
4041  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4042  am__fastdepCC_TRUE=
4043  am__fastdepCC_FALSE='#'
4044else
4045  am__fastdepCC_TRUE='#'
4046  am__fastdepCC_FALSE=
4047fi
4048
4049
4050
4051# Check whether --enable-largefile was given.
4052if test "${enable_largefile+set}" = set; then :
4053  enableval=$enable_largefile;
4054fi
4055
4056if test "$enable_largefile" != no; then
4057
4058  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4059$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4060if ${ac_cv_sys_largefile_CC+:} false; then :
4061  $as_echo_n "(cached) " >&6
4062else
4063  ac_cv_sys_largefile_CC=no
4064     if test "$GCC" != yes; then
4065       ac_save_CC=$CC
4066       while :; do
4067	 # IRIX 6.2 and later do not support large files by default,
4068	 # so use the C compiler's -n32 option if that helps.
4069	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070/* end confdefs.h.  */
4071#include <sys/types.h>
4072 /* Check that off_t can represent 2**63 - 1 correctly.
4073    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4074    since some C++ compilers masquerading as C compilers
4075    incorrectly reject 9223372036854775807.  */
4076#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4077  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4078		       && LARGE_OFF_T % 2147483647 == 1)
4079		      ? 1 : -1];
4080int
4081main ()
4082{
4083
4084  ;
4085  return 0;
4086}
4087_ACEOF
4088	 if ac_fn_c_try_compile "$LINENO"; then :
4089  break
4090fi
4091rm -f core conftest.err conftest.$ac_objext
4092	 CC="$CC -n32"
4093	 if ac_fn_c_try_compile "$LINENO"; then :
4094  ac_cv_sys_largefile_CC=' -n32'; break
4095fi
4096rm -f core conftest.err conftest.$ac_objext
4097	 break
4098       done
4099       CC=$ac_save_CC
4100       rm -f conftest.$ac_ext
4101    fi
4102fi
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4104$as_echo "$ac_cv_sys_largefile_CC" >&6; }
4105  if test "$ac_cv_sys_largefile_CC" != no; then
4106    CC=$CC$ac_cv_sys_largefile_CC
4107  fi
4108
4109  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4110$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4111if ${ac_cv_sys_file_offset_bits+:} false; then :
4112  $as_echo_n "(cached) " >&6
4113else
4114  while :; do
4115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116/* end confdefs.h.  */
4117#include <sys/types.h>
4118 /* Check that off_t can represent 2**63 - 1 correctly.
4119    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4120    since some C++ compilers masquerading as C compilers
4121    incorrectly reject 9223372036854775807.  */
4122#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4123  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4124		       && LARGE_OFF_T % 2147483647 == 1)
4125		      ? 1 : -1];
4126int
4127main ()
4128{
4129
4130  ;
4131  return 0;
4132}
4133_ACEOF
4134if ac_fn_c_try_compile "$LINENO"; then :
4135  ac_cv_sys_file_offset_bits=no; break
4136fi
4137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139/* end confdefs.h.  */
4140#define _FILE_OFFSET_BITS 64
4141#include <sys/types.h>
4142 /* Check that off_t can represent 2**63 - 1 correctly.
4143    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4144    since some C++ compilers masquerading as C compilers
4145    incorrectly reject 9223372036854775807.  */
4146#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4147  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4148		       && LARGE_OFF_T % 2147483647 == 1)
4149		      ? 1 : -1];
4150int
4151main ()
4152{
4153
4154  ;
4155  return 0;
4156}
4157_ACEOF
4158if ac_fn_c_try_compile "$LINENO"; then :
4159  ac_cv_sys_file_offset_bits=64; break
4160fi
4161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4162  ac_cv_sys_file_offset_bits=unknown
4163  break
4164done
4165fi
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4167$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4168case $ac_cv_sys_file_offset_bits in #(
4169  no | unknown) ;;
4170  *)
4171cat >>confdefs.h <<_ACEOF
4172#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4173_ACEOF
4174;;
4175esac
4176rm -rf conftest*
4177  if test $ac_cv_sys_file_offset_bits = unknown; then
4178    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4179$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4180if ${ac_cv_sys_large_files+:} false; then :
4181  $as_echo_n "(cached) " >&6
4182else
4183  while :; do
4184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185/* end confdefs.h.  */
4186#include <sys/types.h>
4187 /* Check that off_t can represent 2**63 - 1 correctly.
4188    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4189    since some C++ compilers masquerading as C compilers
4190    incorrectly reject 9223372036854775807.  */
4191#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4192  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4193		       && LARGE_OFF_T % 2147483647 == 1)
4194		      ? 1 : -1];
4195int
4196main ()
4197{
4198
4199  ;
4200  return 0;
4201}
4202_ACEOF
4203if ac_fn_c_try_compile "$LINENO"; then :
4204  ac_cv_sys_large_files=no; break
4205fi
4206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208/* end confdefs.h.  */
4209#define _LARGE_FILES 1
4210#include <sys/types.h>
4211 /* Check that off_t can represent 2**63 - 1 correctly.
4212    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4213    since some C++ compilers masquerading as C compilers
4214    incorrectly reject 9223372036854775807.  */
4215#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4216  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4217		       && LARGE_OFF_T % 2147483647 == 1)
4218		      ? 1 : -1];
4219int
4220main ()
4221{
4222
4223  ;
4224  return 0;
4225}
4226_ACEOF
4227if ac_fn_c_try_compile "$LINENO"; then :
4228  ac_cv_sys_large_files=1; break
4229fi
4230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4231  ac_cv_sys_large_files=unknown
4232  break
4233done
4234fi
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4236$as_echo "$ac_cv_sys_large_files" >&6; }
4237case $ac_cv_sys_large_files in #(
4238  no | unknown) ;;
4239  *)
4240cat >>confdefs.h <<_ACEOF
4241#define _LARGE_FILES $ac_cv_sys_large_files
4242_ACEOF
4243;;
4244esac
4245rm -rf conftest*
4246  fi
4247
4248
4249fi
4250
4251
4252# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4265$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4266if ${ac_cv_prog_cc_c99+:} false; then :
4267  $as_echo_n "(cached) " >&6
4268else
4269  ac_cv_prog_cc_c99=no
4270ac_save_CC=$CC
4271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272/* end confdefs.h.  */
4273#include <stdarg.h>
4274#include <stdbool.h>
4275#include <stdlib.h>
4276#include <wchar.h>
4277#include <stdio.h>
4278
4279// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4280#define debug(...) fprintf (stderr, __VA_ARGS__)
4281#define showlist(...) puts (#__VA_ARGS__)
4282#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4283static void
4284test_varargs_macros (void)
4285{
4286  int x = 1234;
4287  int y = 5678;
4288  debug ("Flag");
4289  debug ("X = %d\n", x);
4290  showlist (The first, second, and third items.);
4291  report (x>y, "x is %d but y is %d", x, y);
4292}
4293
4294// Check long long types.
4295#define BIG64 18446744073709551615ull
4296#define BIG32 4294967295ul
4297#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4298#if !BIG_OK
4299  your preprocessor is broken;
4300#endif
4301#if BIG_OK
4302#else
4303  your preprocessor is broken;
4304#endif
4305static long long int bignum = -9223372036854775807LL;
4306static unsigned long long int ubignum = BIG64;
4307
4308struct incomplete_array
4309{
4310  int datasize;
4311  double data[];
4312};
4313
4314struct named_init {
4315  int number;
4316  const wchar_t *name;
4317  double average;
4318};
4319
4320typedef const char *ccp;
4321
4322static inline int
4323test_restrict (ccp restrict text)
4324{
4325  // See if C++-style comments work.
4326  // Iterate through items via the restricted pointer.
4327  // Also check for declarations in for loops.
4328  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4329    continue;
4330  return 0;
4331}
4332
4333// Check varargs and va_copy.
4334static void
4335test_varargs (const char *format, ...)
4336{
4337  va_list args;
4338  va_start (args, format);
4339  va_list args_copy;
4340  va_copy (args_copy, args);
4341
4342  const char *str;
4343  int number;
4344  float fnumber;
4345
4346  while (*format)
4347    {
4348      switch (*format++)
4349	{
4350	case 's': // string
4351	  str = va_arg (args_copy, const char *);
4352	  break;
4353	case 'd': // int
4354	  number = va_arg (args_copy, int);
4355	  break;
4356	case 'f': // float
4357	  fnumber = va_arg (args_copy, double);
4358	  break;
4359	default:
4360	  break;
4361	}
4362    }
4363  va_end (args_copy);
4364  va_end (args);
4365}
4366
4367int
4368main ()
4369{
4370
4371  // Check bool.
4372  _Bool success = false;
4373
4374  // Check restrict.
4375  if (test_restrict ("String literal") == 0)
4376    success = true;
4377  char *restrict newvar = "Another string";
4378
4379  // Check varargs.
4380  test_varargs ("s, d' f .", "string", 65, 34.234);
4381  test_varargs_macros ();
4382
4383  // Check flexible array members.
4384  struct incomplete_array *ia =
4385    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4386  ia->datasize = 10;
4387  for (int i = 0; i < ia->datasize; ++i)
4388    ia->data[i] = i * 1.234;
4389
4390  // Check named initializers.
4391  struct named_init ni = {
4392    .number = 34,
4393    .name = L"Test wide string",
4394    .average = 543.34343,
4395  };
4396
4397  ni.number = 58;
4398
4399  int dynamic_array[ni.number];
4400  dynamic_array[ni.number - 1] = 543;
4401
4402  // work around unused variable warnings
4403  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4404	  || dynamic_array[ni.number - 1] != 543);
4405
4406  ;
4407  return 0;
4408}
4409_ACEOF
4410for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4411do
4412  CC="$ac_save_CC $ac_arg"
4413  if ac_fn_c_try_compile "$LINENO"; then :
4414  ac_cv_prog_cc_c99=$ac_arg
4415fi
4416rm -f core conftest.err conftest.$ac_objext
4417  test "x$ac_cv_prog_cc_c99" != "xno" && break
4418done
4419rm -f conftest.$ac_ext
4420CC=$ac_save_CC
4421
4422fi
4423# AC_CACHE_VAL
4424case "x$ac_cv_prog_cc_c99" in
4425  x)
4426    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4427$as_echo "none needed" >&6; } ;;
4428  xno)
4429    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4430$as_echo "unsupported" >&6; } ;;
4431  *)
4432    CC="$CC $ac_cv_prog_cc_c99"
4433    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4434$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4435esac
4436if test "x$ac_cv_prog_cc_c99" != xno; then :
4437
4438fi
4439
4440
4441ac_ext=c
4442ac_cpp='$CPP $CPPFLAGS'
4443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4445ac_compiler_gnu=$ac_cv_c_compiler_gnu
4446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4447$as_echo_n "checking how to run the C preprocessor... " >&6; }
4448# On Suns, sometimes $CPP names a directory.
4449if test -n "$CPP" && test -d "$CPP"; then
4450  CPP=
4451fi
4452if test -z "$CPP"; then
4453  if ${ac_cv_prog_CPP+:} false; then :
4454  $as_echo_n "(cached) " >&6
4455else
4456      # Double quotes because CPP needs to be expanded
4457    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4458    do
4459      ac_preproc_ok=false
4460for ac_c_preproc_warn_flag in '' yes
4461do
4462  # Use a header file that comes with gcc, so configuring glibc
4463  # with a fresh cross-compiler works.
4464  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4465  # <limits.h> exists even on freestanding compilers.
4466  # On the NeXT, cc -E runs the code through the compiler's parser,
4467  # not just through cpp. "Syntax error" is here to catch this case.
4468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469/* end confdefs.h.  */
4470#ifdef __STDC__
4471# include <limits.h>
4472#else
4473# include <assert.h>
4474#endif
4475		     Syntax error
4476_ACEOF
4477if ac_fn_c_try_cpp "$LINENO"; then :
4478
4479else
4480  # Broken: fails on valid input.
4481continue
4482fi
4483rm -f conftest.err conftest.i conftest.$ac_ext
4484
4485  # OK, works on sane cases.  Now check whether nonexistent headers
4486  # can be detected and how.
4487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488/* end confdefs.h.  */
4489#include <ac_nonexistent.h>
4490_ACEOF
4491if ac_fn_c_try_cpp "$LINENO"; then :
4492  # Broken: success on invalid input.
4493continue
4494else
4495  # Passes both tests.
4496ac_preproc_ok=:
4497break
4498fi
4499rm -f conftest.err conftest.i conftest.$ac_ext
4500
4501done
4502# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4503rm -f conftest.i conftest.err conftest.$ac_ext
4504if $ac_preproc_ok; then :
4505  break
4506fi
4507
4508    done
4509    ac_cv_prog_CPP=$CPP
4510
4511fi
4512  CPP=$ac_cv_prog_CPP
4513else
4514  ac_cv_prog_CPP=$CPP
4515fi
4516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4517$as_echo "$CPP" >&6; }
4518ac_preproc_ok=false
4519for ac_c_preproc_warn_flag in '' yes
4520do
4521  # Use a header file that comes with gcc, so configuring glibc
4522  # with a fresh cross-compiler works.
4523  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4524  # <limits.h> exists even on freestanding compilers.
4525  # On the NeXT, cc -E runs the code through the compiler's parser,
4526  # not just through cpp. "Syntax error" is here to catch this case.
4527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528/* end confdefs.h.  */
4529#ifdef __STDC__
4530# include <limits.h>
4531#else
4532# include <assert.h>
4533#endif
4534		     Syntax error
4535_ACEOF
4536if ac_fn_c_try_cpp "$LINENO"; then :
4537
4538else
4539  # Broken: fails on valid input.
4540continue
4541fi
4542rm -f conftest.err conftest.i conftest.$ac_ext
4543
4544  # OK, works on sane cases.  Now check whether nonexistent headers
4545  # can be detected and how.
4546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547/* end confdefs.h.  */
4548#include <ac_nonexistent.h>
4549_ACEOF
4550if ac_fn_c_try_cpp "$LINENO"; then :
4551  # Broken: success on invalid input.
4552continue
4553else
4554  # Passes both tests.
4555ac_preproc_ok=:
4556break
4557fi
4558rm -f conftest.err conftest.i conftest.$ac_ext
4559
4560done
4561# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4562rm -f conftest.i conftest.err conftest.$ac_ext
4563if $ac_preproc_ok; then :
4564
4565else
4566  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4567$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4568as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4569See \`config.log' for more details" "$LINENO" 5; }
4570fi
4571
4572ac_ext=c
4573ac_cpp='$CPP $CPPFLAGS'
4574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4576ac_compiler_gnu=$ac_cv_c_compiler_gnu
4577
4578
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4580$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4581if ${ac_cv_path_GREP+:} false; then :
4582  $as_echo_n "(cached) " >&6
4583else
4584  if test -z "$GREP"; then
4585  ac_path_GREP_found=false
4586  # Loop through the user's path and test for each of PROGNAME-LIST
4587  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4589do
4590  IFS=$as_save_IFS
4591  test -z "$as_dir" && as_dir=.
4592    for ac_prog in grep ggrep; do
4593    for ac_exec_ext in '' $ac_executable_extensions; do
4594      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4595      as_fn_executable_p "$ac_path_GREP" || continue
4596# Check for GNU ac_path_GREP and select it if it is found.
4597  # Check for GNU $ac_path_GREP
4598case `"$ac_path_GREP" --version 2>&1` in
4599*GNU*)
4600  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4601*)
4602  ac_count=0
4603  $as_echo_n 0123456789 >"conftest.in"
4604  while :
4605  do
4606    cat "conftest.in" "conftest.in" >"conftest.tmp"
4607    mv "conftest.tmp" "conftest.in"
4608    cp "conftest.in" "conftest.nl"
4609    $as_echo 'GREP' >> "conftest.nl"
4610    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4611    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4612    as_fn_arith $ac_count + 1 && ac_count=$as_val
4613    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4614      # Best one so far, save it but keep looking for a better one
4615      ac_cv_path_GREP="$ac_path_GREP"
4616      ac_path_GREP_max=$ac_count
4617    fi
4618    # 10*(2^10) chars as input seems more than enough
4619    test $ac_count -gt 10 && break
4620  done
4621  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4622esac
4623
4624      $ac_path_GREP_found && break 3
4625    done
4626  done
4627  done
4628IFS=$as_save_IFS
4629  if test -z "$ac_cv_path_GREP"; then
4630    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4631  fi
4632else
4633  ac_cv_path_GREP=$GREP
4634fi
4635
4636fi
4637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4638$as_echo "$ac_cv_path_GREP" >&6; }
4639 GREP="$ac_cv_path_GREP"
4640
4641
4642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4643$as_echo_n "checking for egrep... " >&6; }
4644if ${ac_cv_path_EGREP+:} false; then :
4645  $as_echo_n "(cached) " >&6
4646else
4647  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4648   then ac_cv_path_EGREP="$GREP -E"
4649   else
4650     if test -z "$EGREP"; then
4651  ac_path_EGREP_found=false
4652  # Loop through the user's path and test for each of PROGNAME-LIST
4653  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4655do
4656  IFS=$as_save_IFS
4657  test -z "$as_dir" && as_dir=.
4658    for ac_prog in egrep; do
4659    for ac_exec_ext in '' $ac_executable_extensions; do
4660      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4661      as_fn_executable_p "$ac_path_EGREP" || continue
4662# Check for GNU ac_path_EGREP and select it if it is found.
4663  # Check for GNU $ac_path_EGREP
4664case `"$ac_path_EGREP" --version 2>&1` in
4665*GNU*)
4666  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4667*)
4668  ac_count=0
4669  $as_echo_n 0123456789 >"conftest.in"
4670  while :
4671  do
4672    cat "conftest.in" "conftest.in" >"conftest.tmp"
4673    mv "conftest.tmp" "conftest.in"
4674    cp "conftest.in" "conftest.nl"
4675    $as_echo 'EGREP' >> "conftest.nl"
4676    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4677    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4678    as_fn_arith $ac_count + 1 && ac_count=$as_val
4679    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4680      # Best one so far, save it but keep looking for a better one
4681      ac_cv_path_EGREP="$ac_path_EGREP"
4682      ac_path_EGREP_max=$ac_count
4683    fi
4684    # 10*(2^10) chars as input seems more than enough
4685    test $ac_count -gt 10 && break
4686  done
4687  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4688esac
4689
4690      $ac_path_EGREP_found && break 3
4691    done
4692  done
4693  done
4694IFS=$as_save_IFS
4695  if test -z "$ac_cv_path_EGREP"; then
4696    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4697  fi
4698else
4699  ac_cv_path_EGREP=$EGREP
4700fi
4701
4702   fi
4703fi
4704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4705$as_echo "$ac_cv_path_EGREP" >&6; }
4706 EGREP="$ac_cv_path_EGREP"
4707
4708
4709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4710$as_echo_n "checking for ANSI C header files... " >&6; }
4711if ${ac_cv_header_stdc+:} false; then :
4712  $as_echo_n "(cached) " >&6
4713else
4714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715/* end confdefs.h.  */
4716#include <stdlib.h>
4717#include <stdarg.h>
4718#include <string.h>
4719#include <float.h>
4720
4721int
4722main ()
4723{
4724
4725  ;
4726  return 0;
4727}
4728_ACEOF
4729if ac_fn_c_try_compile "$LINENO"; then :
4730  ac_cv_header_stdc=yes
4731else
4732  ac_cv_header_stdc=no
4733fi
4734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4735
4736if test $ac_cv_header_stdc = yes; then
4737  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739/* end confdefs.h.  */
4740#include <string.h>
4741
4742_ACEOF
4743if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4744  $EGREP "memchr" >/dev/null 2>&1; then :
4745
4746else
4747  ac_cv_header_stdc=no
4748fi
4749rm -f conftest*
4750
4751fi
4752
4753if test $ac_cv_header_stdc = yes; then
4754  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756/* end confdefs.h.  */
4757#include <stdlib.h>
4758
4759_ACEOF
4760if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4761  $EGREP "free" >/dev/null 2>&1; then :
4762
4763else
4764  ac_cv_header_stdc=no
4765fi
4766rm -f conftest*
4767
4768fi
4769
4770if test $ac_cv_header_stdc = yes; then
4771  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4772  if test "$cross_compiling" = yes; then :
4773  :
4774else
4775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776/* end confdefs.h.  */
4777#include <ctype.h>
4778#include <stdlib.h>
4779#if ((' ' & 0x0FF) == 0x020)
4780# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4781# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4782#else
4783# define ISLOWER(c) \
4784		   (('a' <= (c) && (c) <= 'i') \
4785		     || ('j' <= (c) && (c) <= 'r') \
4786		     || ('s' <= (c) && (c) <= 'z'))
4787# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4788#endif
4789
4790#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4791int
4792main ()
4793{
4794  int i;
4795  for (i = 0; i < 256; i++)
4796    if (XOR (islower (i), ISLOWER (i))
4797	|| toupper (i) != TOUPPER (i))
4798      return 2;
4799  return 0;
4800}
4801_ACEOF
4802if ac_fn_c_try_run "$LINENO"; then :
4803
4804else
4805  ac_cv_header_stdc=no
4806fi
4807rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4808  conftest.$ac_objext conftest.beam conftest.$ac_ext
4809fi
4810
4811fi
4812fi
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4814$as_echo "$ac_cv_header_stdc" >&6; }
4815if test $ac_cv_header_stdc = yes; then
4816
4817$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4818
4819fi
4820
4821# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4822for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4823		  inttypes.h stdint.h unistd.h
4824do :
4825  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4826ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4827"
4828if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4829  cat >>confdefs.h <<_ACEOF
4830#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4831_ACEOF
4832
4833fi
4834
4835done
4836
4837
4838
4839
4840
4841
4842ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4843if test "x$ac_cv_have_decl___clang__" = xyes; then :
4844  CLANGCC="yes"
4845else
4846  CLANGCC="no"
4847fi
4848
4849ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4850if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4851  INTELCC="yes"
4852else
4853  INTELCC="no"
4854fi
4855
4856ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4857if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4858  SUNCC="yes"
4859else
4860  SUNCC="no"
4861fi
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4872	if test -n "$ac_tool_prefix"; then
4873  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4874set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4876$as_echo_n "checking for $ac_word... " >&6; }
4877if ${ac_cv_path_PKG_CONFIG+:} false; then :
4878  $as_echo_n "(cached) " >&6
4879else
4880  case $PKG_CONFIG in
4881  [\\/]* | ?:[\\/]*)
4882  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4883  ;;
4884  *)
4885  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886for as_dir in $PATH
4887do
4888  IFS=$as_save_IFS
4889  test -z "$as_dir" && as_dir=.
4890    for ac_exec_ext in '' $ac_executable_extensions; do
4891  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4892    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4893    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4894    break 2
4895  fi
4896done
4897  done
4898IFS=$as_save_IFS
4899
4900  ;;
4901esac
4902fi
4903PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4904if test -n "$PKG_CONFIG"; then
4905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4906$as_echo "$PKG_CONFIG" >&6; }
4907else
4908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909$as_echo "no" >&6; }
4910fi
4911
4912
4913fi
4914if test -z "$ac_cv_path_PKG_CONFIG"; then
4915  ac_pt_PKG_CONFIG=$PKG_CONFIG
4916  # Extract the first word of "pkg-config", so it can be a program name with args.
4917set dummy pkg-config; ac_word=$2
4918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4919$as_echo_n "checking for $ac_word... " >&6; }
4920if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4921  $as_echo_n "(cached) " >&6
4922else
4923  case $ac_pt_PKG_CONFIG in
4924  [\\/]* | ?:[\\/]*)
4925  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4926  ;;
4927  *)
4928  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929for as_dir in $PATH
4930do
4931  IFS=$as_save_IFS
4932  test -z "$as_dir" && as_dir=.
4933    for ac_exec_ext in '' $ac_executable_extensions; do
4934  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4935    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4936    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4937    break 2
4938  fi
4939done
4940  done
4941IFS=$as_save_IFS
4942
4943  ;;
4944esac
4945fi
4946ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4947if test -n "$ac_pt_PKG_CONFIG"; then
4948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4949$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4950else
4951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952$as_echo "no" >&6; }
4953fi
4954
4955  if test "x$ac_pt_PKG_CONFIG" = x; then
4956    PKG_CONFIG=""
4957  else
4958    case $cross_compiling:$ac_tool_warned in
4959yes:)
4960{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4962ac_tool_warned=yes ;;
4963esac
4964    PKG_CONFIG=$ac_pt_PKG_CONFIG
4965  fi
4966else
4967  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4968fi
4969
4970fi
4971if test -n "$PKG_CONFIG"; then
4972	_pkg_min_version=0.9.0
4973	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4974$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4975	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4976		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4977$as_echo "yes" >&6; }
4978	else
4979		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980$as_echo "no" >&6; }
4981		PKG_CONFIG=""
4982	fi
4983fi
4984# Make sure we can run config.sub.
4985$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4986  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4987
4988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4989$as_echo_n "checking build system type... " >&6; }
4990if ${ac_cv_build+:} false; then :
4991  $as_echo_n "(cached) " >&6
4992else
4993  ac_build_alias=$build_alias
4994test "x$ac_build_alias" = x &&
4995  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4996test "x$ac_build_alias" = x &&
4997  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4998ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4999  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5000
5001fi
5002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5003$as_echo "$ac_cv_build" >&6; }
5004case $ac_cv_build in
5005*-*-*) ;;
5006*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5007esac
5008build=$ac_cv_build
5009ac_save_IFS=$IFS; IFS='-'
5010set x $ac_cv_build
5011shift
5012build_cpu=$1
5013build_vendor=$2
5014shift; shift
5015# Remember, the first character of IFS is used to create $*,
5016# except with old shells:
5017build_os=$*
5018IFS=$ac_save_IFS
5019case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5020
5021
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5023$as_echo_n "checking host system type... " >&6; }
5024if ${ac_cv_host+:} false; then :
5025  $as_echo_n "(cached) " >&6
5026else
5027  if test "x$host_alias" = x; then
5028  ac_cv_host=$ac_cv_build
5029else
5030  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5031    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5032fi
5033
5034fi
5035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5036$as_echo "$ac_cv_host" >&6; }
5037case $ac_cv_host in
5038*-*-*) ;;
5039*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5040esac
5041host=$ac_cv_host
5042ac_save_IFS=$IFS; IFS='-'
5043set x $ac_cv_host
5044shift
5045host_cpu=$1
5046host_vendor=$2
5047shift; shift
5048# Remember, the first character of IFS is used to create $*,
5049# except with old shells:
5050host_os=$*
5051IFS=$ac_save_IFS
5052case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5053
5054
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5056$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5057if ${ac_cv_path_SED+:} false; then :
5058  $as_echo_n "(cached) " >&6
5059else
5060            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5061     for ac_i in 1 2 3 4 5 6 7; do
5062       ac_script="$ac_script$as_nl$ac_script"
5063     done
5064     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5065     { ac_script=; unset ac_script;}
5066     if test -z "$SED"; then
5067  ac_path_SED_found=false
5068  # Loop through the user's path and test for each of PROGNAME-LIST
5069  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070for as_dir in $PATH
5071do
5072  IFS=$as_save_IFS
5073  test -z "$as_dir" && as_dir=.
5074    for ac_prog in sed gsed; do
5075    for ac_exec_ext in '' $ac_executable_extensions; do
5076      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5077      as_fn_executable_p "$ac_path_SED" || continue
5078# Check for GNU ac_path_SED and select it if it is found.
5079  # Check for GNU $ac_path_SED
5080case `"$ac_path_SED" --version 2>&1` in
5081*GNU*)
5082  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5083*)
5084  ac_count=0
5085  $as_echo_n 0123456789 >"conftest.in"
5086  while :
5087  do
5088    cat "conftest.in" "conftest.in" >"conftest.tmp"
5089    mv "conftest.tmp" "conftest.in"
5090    cp "conftest.in" "conftest.nl"
5091    $as_echo '' >> "conftest.nl"
5092    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5093    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5094    as_fn_arith $ac_count + 1 && ac_count=$as_val
5095    if test $ac_count -gt ${ac_path_SED_max-0}; then
5096      # Best one so far, save it but keep looking for a better one
5097      ac_cv_path_SED="$ac_path_SED"
5098      ac_path_SED_max=$ac_count
5099    fi
5100    # 10*(2^10) chars as input seems more than enough
5101    test $ac_count -gt 10 && break
5102  done
5103  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5104esac
5105
5106      $ac_path_SED_found && break 3
5107    done
5108  done
5109  done
5110IFS=$as_save_IFS
5111  if test -z "$ac_cv_path_SED"; then
5112    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5113  fi
5114else
5115  ac_cv_path_SED=$SED
5116fi
5117
5118fi
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5120$as_echo "$ac_cv_path_SED" >&6; }
5121 SED="$ac_cv_path_SED"
5122  rm -f conftest.sed
5123
5124
5125
5126
5127
5128
5129# Check whether --enable-selective-werror was given.
5130if test "${enable_selective_werror+set}" = set; then :
5131  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5132else
5133  SELECTIVE_WERROR=yes
5134fi
5135
5136
5137
5138
5139
5140# -v is too short to test reliably with XORG_TESTSET_CFLAG
5141if test "x$SUNCC" = "xyes"; then
5142    BASE_CFLAGS="-v"
5143else
5144    BASE_CFLAGS=""
5145fi
5146
5147# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161xorg_testset_save_CFLAGS="$CFLAGS"
5162
5163if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5164	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5165	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5166$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5167if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5168  $as_echo_n "(cached) " >&6
5169else
5170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171/* end confdefs.h.  */
5172int i;
5173_ACEOF
5174if ac_fn_c_try_compile "$LINENO"; then :
5175  xorg_cv_cc_flag_unknown_warning_option=yes
5176else
5177  xorg_cv_cc_flag_unknown_warning_option=no
5178fi
5179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5180fi
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5182$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5183	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5184	CFLAGS="$xorg_testset_save_CFLAGS"
5185fi
5186
5187if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5188	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5189		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5190	fi
5191	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5192	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5193$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5194if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5195  $as_echo_n "(cached) " >&6
5196else
5197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198/* end confdefs.h.  */
5199int i;
5200_ACEOF
5201if ac_fn_c_try_compile "$LINENO"; then :
5202  xorg_cv_cc_flag_unused_command_line_argument=yes
5203else
5204  xorg_cv_cc_flag_unused_command_line_argument=no
5205fi
5206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5207fi
5208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5209$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5210	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5211	CFLAGS="$xorg_testset_save_CFLAGS"
5212fi
5213
5214found="no"
5215
5216	if test $found = "no" ; then
5217		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5218			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5219		fi
5220
5221		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5222			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5223		fi
5224
5225		CFLAGS="$CFLAGS -Wall"
5226
5227		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5228$as_echo_n "checking if $CC supports -Wall... " >&6; }
5229		cacheid=xorg_cv_cc_flag__Wall
5230		if eval \${$cacheid+:} false; then :
5231  $as_echo_n "(cached) " >&6
5232else
5233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234/* end confdefs.h.  */
5235int i;
5236int
5237main ()
5238{
5239
5240  ;
5241  return 0;
5242}
5243_ACEOF
5244if ac_fn_c_try_link "$LINENO"; then :
5245  eval $cacheid=yes
5246else
5247  eval $cacheid=no
5248fi
5249rm -f core conftest.err conftest.$ac_objext \
5250    conftest$ac_exeext conftest.$ac_ext
5251fi
5252
5253
5254		CFLAGS="$xorg_testset_save_CFLAGS"
5255
5256		eval supported=\$$cacheid
5257		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5258$as_echo "$supported" >&6; }
5259		if test "$supported" = "yes" ; then
5260			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5261			found="yes"
5262		fi
5263	fi
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279xorg_testset_save_CFLAGS="$CFLAGS"
5280
5281if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5282	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5283	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5284$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5285if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5286  $as_echo_n "(cached) " >&6
5287else
5288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289/* end confdefs.h.  */
5290int i;
5291_ACEOF
5292if ac_fn_c_try_compile "$LINENO"; then :
5293  xorg_cv_cc_flag_unknown_warning_option=yes
5294else
5295  xorg_cv_cc_flag_unknown_warning_option=no
5296fi
5297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5298fi
5299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5300$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5301	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5302	CFLAGS="$xorg_testset_save_CFLAGS"
5303fi
5304
5305if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5306	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5307		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5308	fi
5309	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5310	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5311$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5312if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5313  $as_echo_n "(cached) " >&6
5314else
5315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316/* end confdefs.h.  */
5317int i;
5318_ACEOF
5319if ac_fn_c_try_compile "$LINENO"; then :
5320  xorg_cv_cc_flag_unused_command_line_argument=yes
5321else
5322  xorg_cv_cc_flag_unused_command_line_argument=no
5323fi
5324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5325fi
5326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5327$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5328	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5329	CFLAGS="$xorg_testset_save_CFLAGS"
5330fi
5331
5332found="no"
5333
5334	if test $found = "no" ; then
5335		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5336			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5337		fi
5338
5339		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5340			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5341		fi
5342
5343		CFLAGS="$CFLAGS -Wpointer-arith"
5344
5345		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5346$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5347		cacheid=xorg_cv_cc_flag__Wpointer_arith
5348		if eval \${$cacheid+:} false; then :
5349  $as_echo_n "(cached) " >&6
5350else
5351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5352/* end confdefs.h.  */
5353int i;
5354int
5355main ()
5356{
5357
5358  ;
5359  return 0;
5360}
5361_ACEOF
5362if ac_fn_c_try_link "$LINENO"; then :
5363  eval $cacheid=yes
5364else
5365  eval $cacheid=no
5366fi
5367rm -f core conftest.err conftest.$ac_objext \
5368    conftest$ac_exeext conftest.$ac_ext
5369fi
5370
5371
5372		CFLAGS="$xorg_testset_save_CFLAGS"
5373
5374		eval supported=\$$cacheid
5375		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5376$as_echo "$supported" >&6; }
5377		if test "$supported" = "yes" ; then
5378			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5379			found="yes"
5380		fi
5381	fi
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397xorg_testset_save_CFLAGS="$CFLAGS"
5398
5399if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5400	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5401	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5402$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5403if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5404  $as_echo_n "(cached) " >&6
5405else
5406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407/* end confdefs.h.  */
5408int i;
5409_ACEOF
5410if ac_fn_c_try_compile "$LINENO"; then :
5411  xorg_cv_cc_flag_unknown_warning_option=yes
5412else
5413  xorg_cv_cc_flag_unknown_warning_option=no
5414fi
5415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5416fi
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5418$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5419	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5420	CFLAGS="$xorg_testset_save_CFLAGS"
5421fi
5422
5423if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5424	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5425		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5426	fi
5427	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5428	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5429$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5430if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5431  $as_echo_n "(cached) " >&6
5432else
5433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434/* end confdefs.h.  */
5435int i;
5436_ACEOF
5437if ac_fn_c_try_compile "$LINENO"; then :
5438  xorg_cv_cc_flag_unused_command_line_argument=yes
5439else
5440  xorg_cv_cc_flag_unused_command_line_argument=no
5441fi
5442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5443fi
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5445$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5446	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5447	CFLAGS="$xorg_testset_save_CFLAGS"
5448fi
5449
5450found="no"
5451
5452	if test $found = "no" ; then
5453		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5454			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5455		fi
5456
5457		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5458			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5459		fi
5460
5461		CFLAGS="$CFLAGS -Wmissing-declarations"
5462
5463		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5464$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5465		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5466		if eval \${$cacheid+:} false; then :
5467  $as_echo_n "(cached) " >&6
5468else
5469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470/* end confdefs.h.  */
5471int i;
5472int
5473main ()
5474{
5475
5476  ;
5477  return 0;
5478}
5479_ACEOF
5480if ac_fn_c_try_link "$LINENO"; then :
5481  eval $cacheid=yes
5482else
5483  eval $cacheid=no
5484fi
5485rm -f core conftest.err conftest.$ac_objext \
5486    conftest$ac_exeext conftest.$ac_ext
5487fi
5488
5489
5490		CFLAGS="$xorg_testset_save_CFLAGS"
5491
5492		eval supported=\$$cacheid
5493		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5494$as_echo "$supported" >&6; }
5495		if test "$supported" = "yes" ; then
5496			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5497			found="yes"
5498		fi
5499	fi
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515xorg_testset_save_CFLAGS="$CFLAGS"
5516
5517if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5518	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5519	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5520$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5521if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5522  $as_echo_n "(cached) " >&6
5523else
5524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525/* end confdefs.h.  */
5526int i;
5527_ACEOF
5528if ac_fn_c_try_compile "$LINENO"; then :
5529  xorg_cv_cc_flag_unknown_warning_option=yes
5530else
5531  xorg_cv_cc_flag_unknown_warning_option=no
5532fi
5533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534fi
5535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5536$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5537	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5538	CFLAGS="$xorg_testset_save_CFLAGS"
5539fi
5540
5541if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5542	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5543		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5544	fi
5545	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5546	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5547$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5548if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5549  $as_echo_n "(cached) " >&6
5550else
5551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552/* end confdefs.h.  */
5553int i;
5554_ACEOF
5555if ac_fn_c_try_compile "$LINENO"; then :
5556  xorg_cv_cc_flag_unused_command_line_argument=yes
5557else
5558  xorg_cv_cc_flag_unused_command_line_argument=no
5559fi
5560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5561fi
5562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5563$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5564	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5565	CFLAGS="$xorg_testset_save_CFLAGS"
5566fi
5567
5568found="no"
5569
5570	if test $found = "no" ; then
5571		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5572			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5573		fi
5574
5575		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5576			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5577		fi
5578
5579		CFLAGS="$CFLAGS -Wformat=2"
5580
5581		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5582$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5583		cacheid=xorg_cv_cc_flag__Wformat_2
5584		if eval \${$cacheid+:} false; then :
5585  $as_echo_n "(cached) " >&6
5586else
5587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588/* end confdefs.h.  */
5589int i;
5590int
5591main ()
5592{
5593
5594  ;
5595  return 0;
5596}
5597_ACEOF
5598if ac_fn_c_try_link "$LINENO"; then :
5599  eval $cacheid=yes
5600else
5601  eval $cacheid=no
5602fi
5603rm -f core conftest.err conftest.$ac_objext \
5604    conftest$ac_exeext conftest.$ac_ext
5605fi
5606
5607
5608		CFLAGS="$xorg_testset_save_CFLAGS"
5609
5610		eval supported=\$$cacheid
5611		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5612$as_echo "$supported" >&6; }
5613		if test "$supported" = "yes" ; then
5614			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5615			found="yes"
5616		fi
5617	fi
5618
5619	if test $found = "no" ; then
5620		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5621			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5622		fi
5623
5624		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5625			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5626		fi
5627
5628		CFLAGS="$CFLAGS -Wformat"
5629
5630		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5631$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5632		cacheid=xorg_cv_cc_flag__Wformat
5633		if eval \${$cacheid+:} false; then :
5634  $as_echo_n "(cached) " >&6
5635else
5636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637/* end confdefs.h.  */
5638int i;
5639int
5640main ()
5641{
5642
5643  ;
5644  return 0;
5645}
5646_ACEOF
5647if ac_fn_c_try_link "$LINENO"; then :
5648  eval $cacheid=yes
5649else
5650  eval $cacheid=no
5651fi
5652rm -f core conftest.err conftest.$ac_objext \
5653    conftest$ac_exeext conftest.$ac_ext
5654fi
5655
5656
5657		CFLAGS="$xorg_testset_save_CFLAGS"
5658
5659		eval supported=\$$cacheid
5660		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5661$as_echo "$supported" >&6; }
5662		if test "$supported" = "yes" ; then
5663			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5664			found="yes"
5665		fi
5666	fi
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684xorg_testset_save_CFLAGS="$CFLAGS"
5685
5686if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5687	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5688	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5689$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5690if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5691  $as_echo_n "(cached) " >&6
5692else
5693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694/* end confdefs.h.  */
5695int i;
5696_ACEOF
5697if ac_fn_c_try_compile "$LINENO"; then :
5698  xorg_cv_cc_flag_unknown_warning_option=yes
5699else
5700  xorg_cv_cc_flag_unknown_warning_option=no
5701fi
5702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5703fi
5704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5705$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5706	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5707	CFLAGS="$xorg_testset_save_CFLAGS"
5708fi
5709
5710if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5711	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5712		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5713	fi
5714	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5715	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5716$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5717if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5718  $as_echo_n "(cached) " >&6
5719else
5720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721/* end confdefs.h.  */
5722int i;
5723_ACEOF
5724if ac_fn_c_try_compile "$LINENO"; then :
5725  xorg_cv_cc_flag_unused_command_line_argument=yes
5726else
5727  xorg_cv_cc_flag_unused_command_line_argument=no
5728fi
5729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5730fi
5731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5732$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5733	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5734	CFLAGS="$xorg_testset_save_CFLAGS"
5735fi
5736
5737found="no"
5738
5739	if test $found = "no" ; then
5740		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5741			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5742		fi
5743
5744		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5745			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5746		fi
5747
5748		CFLAGS="$CFLAGS -Wstrict-prototypes"
5749
5750		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5751$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5752		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5753		if eval \${$cacheid+:} false; then :
5754  $as_echo_n "(cached) " >&6
5755else
5756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757/* end confdefs.h.  */
5758int i;
5759int
5760main ()
5761{
5762
5763  ;
5764  return 0;
5765}
5766_ACEOF
5767if ac_fn_c_try_link "$LINENO"; then :
5768  eval $cacheid=yes
5769else
5770  eval $cacheid=no
5771fi
5772rm -f core conftest.err conftest.$ac_objext \
5773    conftest$ac_exeext conftest.$ac_ext
5774fi
5775
5776
5777		CFLAGS="$xorg_testset_save_CFLAGS"
5778
5779		eval supported=\$$cacheid
5780		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5781$as_echo "$supported" >&6; }
5782		if test "$supported" = "yes" ; then
5783			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5784			found="yes"
5785		fi
5786	fi
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802xorg_testset_save_CFLAGS="$CFLAGS"
5803
5804if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5805	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5806	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5807$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5808if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5809  $as_echo_n "(cached) " >&6
5810else
5811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5812/* end confdefs.h.  */
5813int i;
5814_ACEOF
5815if ac_fn_c_try_compile "$LINENO"; then :
5816  xorg_cv_cc_flag_unknown_warning_option=yes
5817else
5818  xorg_cv_cc_flag_unknown_warning_option=no
5819fi
5820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5821fi
5822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5823$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5824	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5825	CFLAGS="$xorg_testset_save_CFLAGS"
5826fi
5827
5828if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5829	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5830		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5831	fi
5832	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5833	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5834$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5835if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5836  $as_echo_n "(cached) " >&6
5837else
5838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839/* end confdefs.h.  */
5840int i;
5841_ACEOF
5842if ac_fn_c_try_compile "$LINENO"; then :
5843  xorg_cv_cc_flag_unused_command_line_argument=yes
5844else
5845  xorg_cv_cc_flag_unused_command_line_argument=no
5846fi
5847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5848fi
5849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5850$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5851	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5852	CFLAGS="$xorg_testset_save_CFLAGS"
5853fi
5854
5855found="no"
5856
5857	if test $found = "no" ; then
5858		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5859			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5860		fi
5861
5862		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5863			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5864		fi
5865
5866		CFLAGS="$CFLAGS -Wmissing-prototypes"
5867
5868		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5869$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5870		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5871		if eval \${$cacheid+:} false; then :
5872  $as_echo_n "(cached) " >&6
5873else
5874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875/* end confdefs.h.  */
5876int i;
5877int
5878main ()
5879{
5880
5881  ;
5882  return 0;
5883}
5884_ACEOF
5885if ac_fn_c_try_link "$LINENO"; then :
5886  eval $cacheid=yes
5887else
5888  eval $cacheid=no
5889fi
5890rm -f core conftest.err conftest.$ac_objext \
5891    conftest$ac_exeext conftest.$ac_ext
5892fi
5893
5894
5895		CFLAGS="$xorg_testset_save_CFLAGS"
5896
5897		eval supported=\$$cacheid
5898		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5899$as_echo "$supported" >&6; }
5900		if test "$supported" = "yes" ; then
5901			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5902			found="yes"
5903		fi
5904	fi
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920xorg_testset_save_CFLAGS="$CFLAGS"
5921
5922if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5923	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5924	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5925$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5926if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5927  $as_echo_n "(cached) " >&6
5928else
5929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930/* end confdefs.h.  */
5931int i;
5932_ACEOF
5933if ac_fn_c_try_compile "$LINENO"; then :
5934  xorg_cv_cc_flag_unknown_warning_option=yes
5935else
5936  xorg_cv_cc_flag_unknown_warning_option=no
5937fi
5938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5939fi
5940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5941$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5942	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5943	CFLAGS="$xorg_testset_save_CFLAGS"
5944fi
5945
5946if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5947	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5948		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5949	fi
5950	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5951	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5952$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5953if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5954  $as_echo_n "(cached) " >&6
5955else
5956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5957/* end confdefs.h.  */
5958int i;
5959_ACEOF
5960if ac_fn_c_try_compile "$LINENO"; then :
5961  xorg_cv_cc_flag_unused_command_line_argument=yes
5962else
5963  xorg_cv_cc_flag_unused_command_line_argument=no
5964fi
5965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5966fi
5967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5968$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5969	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5970	CFLAGS="$xorg_testset_save_CFLAGS"
5971fi
5972
5973found="no"
5974
5975	if test $found = "no" ; then
5976		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5977			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5978		fi
5979
5980		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5981			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5982		fi
5983
5984		CFLAGS="$CFLAGS -Wnested-externs"
5985
5986		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5987$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5988		cacheid=xorg_cv_cc_flag__Wnested_externs
5989		if eval \${$cacheid+:} false; then :
5990  $as_echo_n "(cached) " >&6
5991else
5992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993/* end confdefs.h.  */
5994int i;
5995int
5996main ()
5997{
5998
5999  ;
6000  return 0;
6001}
6002_ACEOF
6003if ac_fn_c_try_link "$LINENO"; then :
6004  eval $cacheid=yes
6005else
6006  eval $cacheid=no
6007fi
6008rm -f core conftest.err conftest.$ac_objext \
6009    conftest$ac_exeext conftest.$ac_ext
6010fi
6011
6012
6013		CFLAGS="$xorg_testset_save_CFLAGS"
6014
6015		eval supported=\$$cacheid
6016		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6017$as_echo "$supported" >&6; }
6018		if test "$supported" = "yes" ; then
6019			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6020			found="yes"
6021		fi
6022	fi
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038xorg_testset_save_CFLAGS="$CFLAGS"
6039
6040if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6041	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6042	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6043$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6044if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6045  $as_echo_n "(cached) " >&6
6046else
6047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6048/* end confdefs.h.  */
6049int i;
6050_ACEOF
6051if ac_fn_c_try_compile "$LINENO"; then :
6052  xorg_cv_cc_flag_unknown_warning_option=yes
6053else
6054  xorg_cv_cc_flag_unknown_warning_option=no
6055fi
6056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057fi
6058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6059$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6060	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6061	CFLAGS="$xorg_testset_save_CFLAGS"
6062fi
6063
6064if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6065	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6066		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6067	fi
6068	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6069	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6070$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6071if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6072  $as_echo_n "(cached) " >&6
6073else
6074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075/* end confdefs.h.  */
6076int i;
6077_ACEOF
6078if ac_fn_c_try_compile "$LINENO"; then :
6079  xorg_cv_cc_flag_unused_command_line_argument=yes
6080else
6081  xorg_cv_cc_flag_unused_command_line_argument=no
6082fi
6083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6084fi
6085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6086$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6087	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6088	CFLAGS="$xorg_testset_save_CFLAGS"
6089fi
6090
6091found="no"
6092
6093	if test $found = "no" ; then
6094		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6095			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6096		fi
6097
6098		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6099			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6100		fi
6101
6102		CFLAGS="$CFLAGS -Wbad-function-cast"
6103
6104		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6105$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
6106		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6107		if eval \${$cacheid+:} false; then :
6108  $as_echo_n "(cached) " >&6
6109else
6110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6111/* end confdefs.h.  */
6112int i;
6113int
6114main ()
6115{
6116
6117  ;
6118  return 0;
6119}
6120_ACEOF
6121if ac_fn_c_try_link "$LINENO"; then :
6122  eval $cacheid=yes
6123else
6124  eval $cacheid=no
6125fi
6126rm -f core conftest.err conftest.$ac_objext \
6127    conftest$ac_exeext conftest.$ac_ext
6128fi
6129
6130
6131		CFLAGS="$xorg_testset_save_CFLAGS"
6132
6133		eval supported=\$$cacheid
6134		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6135$as_echo "$supported" >&6; }
6136		if test "$supported" = "yes" ; then
6137			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6138			found="yes"
6139		fi
6140	fi
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156xorg_testset_save_CFLAGS="$CFLAGS"
6157
6158if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6159	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6160	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6161$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6162if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6163  $as_echo_n "(cached) " >&6
6164else
6165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6166/* end confdefs.h.  */
6167int i;
6168_ACEOF
6169if ac_fn_c_try_compile "$LINENO"; then :
6170  xorg_cv_cc_flag_unknown_warning_option=yes
6171else
6172  xorg_cv_cc_flag_unknown_warning_option=no
6173fi
6174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6175fi
6176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6177$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6178	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6179	CFLAGS="$xorg_testset_save_CFLAGS"
6180fi
6181
6182if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6183	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6184		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6185	fi
6186	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6187	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6188$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6189if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6190  $as_echo_n "(cached) " >&6
6191else
6192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193/* end confdefs.h.  */
6194int i;
6195_ACEOF
6196if ac_fn_c_try_compile "$LINENO"; then :
6197  xorg_cv_cc_flag_unused_command_line_argument=yes
6198else
6199  xorg_cv_cc_flag_unused_command_line_argument=no
6200fi
6201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6202fi
6203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6204$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6205	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6206	CFLAGS="$xorg_testset_save_CFLAGS"
6207fi
6208
6209found="no"
6210
6211	if test $found = "no" ; then
6212		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6213			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6214		fi
6215
6216		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6217			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6218		fi
6219
6220		CFLAGS="$CFLAGS -Wold-style-definition"
6221
6222		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6223$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
6224		cacheid=xorg_cv_cc_flag__Wold_style_definition
6225		if eval \${$cacheid+:} false; then :
6226  $as_echo_n "(cached) " >&6
6227else
6228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229/* end confdefs.h.  */
6230int i;
6231int
6232main ()
6233{
6234
6235  ;
6236  return 0;
6237}
6238_ACEOF
6239if ac_fn_c_try_link "$LINENO"; then :
6240  eval $cacheid=yes
6241else
6242  eval $cacheid=no
6243fi
6244rm -f core conftest.err conftest.$ac_objext \
6245    conftest$ac_exeext conftest.$ac_ext
6246fi
6247
6248
6249		CFLAGS="$xorg_testset_save_CFLAGS"
6250
6251		eval supported=\$$cacheid
6252		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6253$as_echo "$supported" >&6; }
6254		if test "$supported" = "yes" ; then
6255			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6256			found="yes"
6257		fi
6258	fi
6259
6260	if test $found = "no" ; then
6261		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6262			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6263		fi
6264
6265		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6266			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6267		fi
6268
6269		CFLAGS="$CFLAGS -fd"
6270
6271		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6272$as_echo_n "checking if $CC supports -fd... " >&6; }
6273		cacheid=xorg_cv_cc_flag__fd
6274		if eval \${$cacheid+:} false; then :
6275  $as_echo_n "(cached) " >&6
6276else
6277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278/* end confdefs.h.  */
6279int i;
6280int
6281main ()
6282{
6283
6284  ;
6285  return 0;
6286}
6287_ACEOF
6288if ac_fn_c_try_link "$LINENO"; then :
6289  eval $cacheid=yes
6290else
6291  eval $cacheid=no
6292fi
6293rm -f core conftest.err conftest.$ac_objext \
6294    conftest$ac_exeext conftest.$ac_ext
6295fi
6296
6297
6298		CFLAGS="$xorg_testset_save_CFLAGS"
6299
6300		eval supported=\$$cacheid
6301		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6302$as_echo "$supported" >&6; }
6303		if test "$supported" = "yes" ; then
6304			BASE_CFLAGS="$BASE_CFLAGS -fd"
6305			found="yes"
6306		fi
6307	fi
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323xorg_testset_save_CFLAGS="$CFLAGS"
6324
6325if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6326	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6327	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6328$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6329if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6330  $as_echo_n "(cached) " >&6
6331else
6332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333/* end confdefs.h.  */
6334int i;
6335_ACEOF
6336if ac_fn_c_try_compile "$LINENO"; then :
6337  xorg_cv_cc_flag_unknown_warning_option=yes
6338else
6339  xorg_cv_cc_flag_unknown_warning_option=no
6340fi
6341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6342fi
6343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6344$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6345	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6346	CFLAGS="$xorg_testset_save_CFLAGS"
6347fi
6348
6349if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6350	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6351		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6352	fi
6353	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6354	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6355$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6356if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6357  $as_echo_n "(cached) " >&6
6358else
6359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6360/* end confdefs.h.  */
6361int i;
6362_ACEOF
6363if ac_fn_c_try_compile "$LINENO"; then :
6364  xorg_cv_cc_flag_unused_command_line_argument=yes
6365else
6366  xorg_cv_cc_flag_unused_command_line_argument=no
6367fi
6368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6369fi
6370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6371$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6372	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6373	CFLAGS="$xorg_testset_save_CFLAGS"
6374fi
6375
6376found="no"
6377
6378	if test $found = "no" ; then
6379		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6380			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6381		fi
6382
6383		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6384			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6385		fi
6386
6387		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6388
6389		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6390$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6391		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6392		if eval \${$cacheid+:} false; then :
6393  $as_echo_n "(cached) " >&6
6394else
6395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6396/* end confdefs.h.  */
6397int i;
6398int
6399main ()
6400{
6401
6402  ;
6403  return 0;
6404}
6405_ACEOF
6406if ac_fn_c_try_link "$LINENO"; then :
6407  eval $cacheid=yes
6408else
6409  eval $cacheid=no
6410fi
6411rm -f core conftest.err conftest.$ac_objext \
6412    conftest$ac_exeext conftest.$ac_ext
6413fi
6414
6415
6416		CFLAGS="$xorg_testset_save_CFLAGS"
6417
6418		eval supported=\$$cacheid
6419		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6420$as_echo "$supported" >&6; }
6421		if test "$supported" = "yes" ; then
6422			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6423			found="yes"
6424		fi
6425	fi
6426
6427
6428
6429
6430
6431# This chunk adds additional warnings that could catch undesired effects.
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445xorg_testset_save_CFLAGS="$CFLAGS"
6446
6447if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6448	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6449	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6450$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6451if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6452  $as_echo_n "(cached) " >&6
6453else
6454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455/* end confdefs.h.  */
6456int i;
6457_ACEOF
6458if ac_fn_c_try_compile "$LINENO"; then :
6459  xorg_cv_cc_flag_unknown_warning_option=yes
6460else
6461  xorg_cv_cc_flag_unknown_warning_option=no
6462fi
6463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6464fi
6465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6466$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6467	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6468	CFLAGS="$xorg_testset_save_CFLAGS"
6469fi
6470
6471if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6472	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6473		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6474	fi
6475	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6476	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6477$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6478if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6479  $as_echo_n "(cached) " >&6
6480else
6481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482/* end confdefs.h.  */
6483int i;
6484_ACEOF
6485if ac_fn_c_try_compile "$LINENO"; then :
6486  xorg_cv_cc_flag_unused_command_line_argument=yes
6487else
6488  xorg_cv_cc_flag_unused_command_line_argument=no
6489fi
6490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6491fi
6492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6493$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6494	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6495	CFLAGS="$xorg_testset_save_CFLAGS"
6496fi
6497
6498found="no"
6499
6500	if test $found = "no" ; then
6501		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6502			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6503		fi
6504
6505		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6506			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6507		fi
6508
6509		CFLAGS="$CFLAGS -Wunused"
6510
6511		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6512$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6513		cacheid=xorg_cv_cc_flag__Wunused
6514		if eval \${$cacheid+:} false; then :
6515  $as_echo_n "(cached) " >&6
6516else
6517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518/* end confdefs.h.  */
6519int i;
6520int
6521main ()
6522{
6523
6524  ;
6525  return 0;
6526}
6527_ACEOF
6528if ac_fn_c_try_link "$LINENO"; then :
6529  eval $cacheid=yes
6530else
6531  eval $cacheid=no
6532fi
6533rm -f core conftest.err conftest.$ac_objext \
6534    conftest$ac_exeext conftest.$ac_ext
6535fi
6536
6537
6538		CFLAGS="$xorg_testset_save_CFLAGS"
6539
6540		eval supported=\$$cacheid
6541		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6542$as_echo "$supported" >&6; }
6543		if test "$supported" = "yes" ; then
6544			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6545			found="yes"
6546		fi
6547	fi
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563xorg_testset_save_CFLAGS="$CFLAGS"
6564
6565if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6566	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6567	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6568$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6569if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6570  $as_echo_n "(cached) " >&6
6571else
6572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573/* end confdefs.h.  */
6574int i;
6575_ACEOF
6576if ac_fn_c_try_compile "$LINENO"; then :
6577  xorg_cv_cc_flag_unknown_warning_option=yes
6578else
6579  xorg_cv_cc_flag_unknown_warning_option=no
6580fi
6581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582fi
6583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6584$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6585	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6586	CFLAGS="$xorg_testset_save_CFLAGS"
6587fi
6588
6589if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6590	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6591		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6592	fi
6593	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6594	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6595$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6596if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6597  $as_echo_n "(cached) " >&6
6598else
6599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600/* end confdefs.h.  */
6601int i;
6602_ACEOF
6603if ac_fn_c_try_compile "$LINENO"; then :
6604  xorg_cv_cc_flag_unused_command_line_argument=yes
6605else
6606  xorg_cv_cc_flag_unused_command_line_argument=no
6607fi
6608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609fi
6610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6611$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6612	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6613	CFLAGS="$xorg_testset_save_CFLAGS"
6614fi
6615
6616found="no"
6617
6618	if test $found = "no" ; then
6619		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6620			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6621		fi
6622
6623		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6624			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6625		fi
6626
6627		CFLAGS="$CFLAGS -Wuninitialized"
6628
6629		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6630$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6631		cacheid=xorg_cv_cc_flag__Wuninitialized
6632		if eval \${$cacheid+:} false; then :
6633  $as_echo_n "(cached) " >&6
6634else
6635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636/* end confdefs.h.  */
6637int i;
6638int
6639main ()
6640{
6641
6642  ;
6643  return 0;
6644}
6645_ACEOF
6646if ac_fn_c_try_link "$LINENO"; then :
6647  eval $cacheid=yes
6648else
6649  eval $cacheid=no
6650fi
6651rm -f core conftest.err conftest.$ac_objext \
6652    conftest$ac_exeext conftest.$ac_ext
6653fi
6654
6655
6656		CFLAGS="$xorg_testset_save_CFLAGS"
6657
6658		eval supported=\$$cacheid
6659		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6660$as_echo "$supported" >&6; }
6661		if test "$supported" = "yes" ; then
6662			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6663			found="yes"
6664		fi
6665	fi
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681xorg_testset_save_CFLAGS="$CFLAGS"
6682
6683if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6684	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6685	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6686$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6687if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6688  $as_echo_n "(cached) " >&6
6689else
6690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691/* end confdefs.h.  */
6692int i;
6693_ACEOF
6694if ac_fn_c_try_compile "$LINENO"; then :
6695  xorg_cv_cc_flag_unknown_warning_option=yes
6696else
6697  xorg_cv_cc_flag_unknown_warning_option=no
6698fi
6699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6700fi
6701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6702$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6703	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6704	CFLAGS="$xorg_testset_save_CFLAGS"
6705fi
6706
6707if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6708	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6709		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6710	fi
6711	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6712	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6713$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6714if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6715  $as_echo_n "(cached) " >&6
6716else
6717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718/* end confdefs.h.  */
6719int i;
6720_ACEOF
6721if ac_fn_c_try_compile "$LINENO"; then :
6722  xorg_cv_cc_flag_unused_command_line_argument=yes
6723else
6724  xorg_cv_cc_flag_unused_command_line_argument=no
6725fi
6726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6727fi
6728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6729$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6730	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6731	CFLAGS="$xorg_testset_save_CFLAGS"
6732fi
6733
6734found="no"
6735
6736	if test $found = "no" ; then
6737		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6738			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6739		fi
6740
6741		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6742			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6743		fi
6744
6745		CFLAGS="$CFLAGS -Wshadow"
6746
6747		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6748$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6749		cacheid=xorg_cv_cc_flag__Wshadow
6750		if eval \${$cacheid+:} false; then :
6751  $as_echo_n "(cached) " >&6
6752else
6753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754/* end confdefs.h.  */
6755int i;
6756int
6757main ()
6758{
6759
6760  ;
6761  return 0;
6762}
6763_ACEOF
6764if ac_fn_c_try_link "$LINENO"; then :
6765  eval $cacheid=yes
6766else
6767  eval $cacheid=no
6768fi
6769rm -f core conftest.err conftest.$ac_objext \
6770    conftest$ac_exeext conftest.$ac_ext
6771fi
6772
6773
6774		CFLAGS="$xorg_testset_save_CFLAGS"
6775
6776		eval supported=\$$cacheid
6777		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6778$as_echo "$supported" >&6; }
6779		if test "$supported" = "yes" ; then
6780			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6781			found="yes"
6782		fi
6783	fi
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799xorg_testset_save_CFLAGS="$CFLAGS"
6800
6801if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6802	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6803	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6804$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6805if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6806  $as_echo_n "(cached) " >&6
6807else
6808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809/* end confdefs.h.  */
6810int i;
6811_ACEOF
6812if ac_fn_c_try_compile "$LINENO"; then :
6813  xorg_cv_cc_flag_unknown_warning_option=yes
6814else
6815  xorg_cv_cc_flag_unknown_warning_option=no
6816fi
6817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6818fi
6819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6820$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6821	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6822	CFLAGS="$xorg_testset_save_CFLAGS"
6823fi
6824
6825if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6826	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6827		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6828	fi
6829	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6830	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6831$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6832if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6833  $as_echo_n "(cached) " >&6
6834else
6835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836/* end confdefs.h.  */
6837int i;
6838_ACEOF
6839if ac_fn_c_try_compile "$LINENO"; then :
6840  xorg_cv_cc_flag_unused_command_line_argument=yes
6841else
6842  xorg_cv_cc_flag_unused_command_line_argument=no
6843fi
6844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6845fi
6846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6847$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6848	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6849	CFLAGS="$xorg_testset_save_CFLAGS"
6850fi
6851
6852found="no"
6853
6854	if test $found = "no" ; then
6855		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6856			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6857		fi
6858
6859		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6860			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6861		fi
6862
6863		CFLAGS="$CFLAGS -Wmissing-noreturn"
6864
6865		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6866$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6867		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6868		if eval \${$cacheid+:} false; then :
6869  $as_echo_n "(cached) " >&6
6870else
6871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872/* end confdefs.h.  */
6873int i;
6874int
6875main ()
6876{
6877
6878  ;
6879  return 0;
6880}
6881_ACEOF
6882if ac_fn_c_try_link "$LINENO"; then :
6883  eval $cacheid=yes
6884else
6885  eval $cacheid=no
6886fi
6887rm -f core conftest.err conftest.$ac_objext \
6888    conftest$ac_exeext conftest.$ac_ext
6889fi
6890
6891
6892		CFLAGS="$xorg_testset_save_CFLAGS"
6893
6894		eval supported=\$$cacheid
6895		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6896$as_echo "$supported" >&6; }
6897		if test "$supported" = "yes" ; then
6898			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6899			found="yes"
6900		fi
6901	fi
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917xorg_testset_save_CFLAGS="$CFLAGS"
6918
6919if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6920	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6921	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6922$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6923if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6924  $as_echo_n "(cached) " >&6
6925else
6926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927/* end confdefs.h.  */
6928int i;
6929_ACEOF
6930if ac_fn_c_try_compile "$LINENO"; then :
6931  xorg_cv_cc_flag_unknown_warning_option=yes
6932else
6933  xorg_cv_cc_flag_unknown_warning_option=no
6934fi
6935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6936fi
6937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6938$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6939	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6940	CFLAGS="$xorg_testset_save_CFLAGS"
6941fi
6942
6943if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6944	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6945		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6946	fi
6947	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6948	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6949$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6950if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6951  $as_echo_n "(cached) " >&6
6952else
6953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6954/* end confdefs.h.  */
6955int i;
6956_ACEOF
6957if ac_fn_c_try_compile "$LINENO"; then :
6958  xorg_cv_cc_flag_unused_command_line_argument=yes
6959else
6960  xorg_cv_cc_flag_unused_command_line_argument=no
6961fi
6962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6963fi
6964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6965$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6966	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6967	CFLAGS="$xorg_testset_save_CFLAGS"
6968fi
6969
6970found="no"
6971
6972	if test $found = "no" ; then
6973		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6974			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6975		fi
6976
6977		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6978			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6979		fi
6980
6981		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6982
6983		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6984$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6985		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6986		if eval \${$cacheid+:} false; then :
6987  $as_echo_n "(cached) " >&6
6988else
6989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990/* end confdefs.h.  */
6991int i;
6992int
6993main ()
6994{
6995
6996  ;
6997  return 0;
6998}
6999_ACEOF
7000if ac_fn_c_try_link "$LINENO"; then :
7001  eval $cacheid=yes
7002else
7003  eval $cacheid=no
7004fi
7005rm -f core conftest.err conftest.$ac_objext \
7006    conftest$ac_exeext conftest.$ac_ext
7007fi
7008
7009
7010		CFLAGS="$xorg_testset_save_CFLAGS"
7011
7012		eval supported=\$$cacheid
7013		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7014$as_echo "$supported" >&6; }
7015		if test "$supported" = "yes" ; then
7016			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7017			found="yes"
7018		fi
7019	fi
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035xorg_testset_save_CFLAGS="$CFLAGS"
7036
7037if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7038	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7039	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7040$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7041if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7042  $as_echo_n "(cached) " >&6
7043else
7044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045/* end confdefs.h.  */
7046int i;
7047_ACEOF
7048if ac_fn_c_try_compile "$LINENO"; then :
7049  xorg_cv_cc_flag_unknown_warning_option=yes
7050else
7051  xorg_cv_cc_flag_unknown_warning_option=no
7052fi
7053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7054fi
7055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7056$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7057	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7058	CFLAGS="$xorg_testset_save_CFLAGS"
7059fi
7060
7061if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7062	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7063		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7064	fi
7065	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7066	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7067$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7068if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7069  $as_echo_n "(cached) " >&6
7070else
7071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7072/* end confdefs.h.  */
7073int i;
7074_ACEOF
7075if ac_fn_c_try_compile "$LINENO"; then :
7076  xorg_cv_cc_flag_unused_command_line_argument=yes
7077else
7078  xorg_cv_cc_flag_unused_command_line_argument=no
7079fi
7080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7081fi
7082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7083$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7084	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7085	CFLAGS="$xorg_testset_save_CFLAGS"
7086fi
7087
7088found="no"
7089
7090	if test $found = "no" ; then
7091		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7092			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7093		fi
7094
7095		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7096			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7097		fi
7098
7099		CFLAGS="$CFLAGS -Wredundant-decls"
7100
7101		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7102$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
7103		cacheid=xorg_cv_cc_flag__Wredundant_decls
7104		if eval \${$cacheid+:} false; then :
7105  $as_echo_n "(cached) " >&6
7106else
7107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108/* end confdefs.h.  */
7109int i;
7110int
7111main ()
7112{
7113
7114  ;
7115  return 0;
7116}
7117_ACEOF
7118if ac_fn_c_try_link "$LINENO"; then :
7119  eval $cacheid=yes
7120else
7121  eval $cacheid=no
7122fi
7123rm -f core conftest.err conftest.$ac_objext \
7124    conftest$ac_exeext conftest.$ac_ext
7125fi
7126
7127
7128		CFLAGS="$xorg_testset_save_CFLAGS"
7129
7130		eval supported=\$$cacheid
7131		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7132$as_echo "$supported" >&6; }
7133		if test "$supported" = "yes" ; then
7134			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7135			found="yes"
7136		fi
7137	fi
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153xorg_testset_save_CFLAGS="$CFLAGS"
7154
7155if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7156	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7157	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7158$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7159if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7160  $as_echo_n "(cached) " >&6
7161else
7162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163/* end confdefs.h.  */
7164int i;
7165_ACEOF
7166if ac_fn_c_try_compile "$LINENO"; then :
7167  xorg_cv_cc_flag_unknown_warning_option=yes
7168else
7169  xorg_cv_cc_flag_unknown_warning_option=no
7170fi
7171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7172fi
7173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7174$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7175	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7176	CFLAGS="$xorg_testset_save_CFLAGS"
7177fi
7178
7179if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7180	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7181		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7182	fi
7183	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7184	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7185$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7186if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7187  $as_echo_n "(cached) " >&6
7188else
7189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190/* end confdefs.h.  */
7191int i;
7192_ACEOF
7193if ac_fn_c_try_compile "$LINENO"; then :
7194  xorg_cv_cc_flag_unused_command_line_argument=yes
7195else
7196  xorg_cv_cc_flag_unused_command_line_argument=no
7197fi
7198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7199fi
7200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7201$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7202	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7203	CFLAGS="$xorg_testset_save_CFLAGS"
7204fi
7205
7206found="no"
7207
7208	if test $found = "no" ; then
7209		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7210			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7211		fi
7212
7213		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7214			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7215		fi
7216
7217		CFLAGS="$CFLAGS -Wlogical-op"
7218
7219		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7220$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
7221		cacheid=xorg_cv_cc_flag__Wlogical_op
7222		if eval \${$cacheid+:} false; then :
7223  $as_echo_n "(cached) " >&6
7224else
7225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226/* end confdefs.h.  */
7227int i;
7228int
7229main ()
7230{
7231
7232  ;
7233  return 0;
7234}
7235_ACEOF
7236if ac_fn_c_try_link "$LINENO"; then :
7237  eval $cacheid=yes
7238else
7239  eval $cacheid=no
7240fi
7241rm -f core conftest.err conftest.$ac_objext \
7242    conftest$ac_exeext conftest.$ac_ext
7243fi
7244
7245
7246		CFLAGS="$xorg_testset_save_CFLAGS"
7247
7248		eval supported=\$$cacheid
7249		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7250$as_echo "$supported" >&6; }
7251		if test "$supported" = "yes" ; then
7252			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7253			found="yes"
7254		fi
7255	fi
7256
7257
7258
7259# These are currently disabled because they are noisy.  They will be enabled
7260# in the future once the codebase is sufficiently modernized to silence
7261# them.  For now, I don't want them to drown out the other warnings.
7262# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7263# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7264# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7265
7266# Turn some warnings into errors, so we don't accidently get successful builds
7267# when there are problems that should be fixed.
7268
7269if test "x$SELECTIVE_WERROR" = "xyes" ; then
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283xorg_testset_save_CFLAGS="$CFLAGS"
7284
7285if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7286	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7287	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7288$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7289if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7290  $as_echo_n "(cached) " >&6
7291else
7292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293/* end confdefs.h.  */
7294int i;
7295_ACEOF
7296if ac_fn_c_try_compile "$LINENO"; then :
7297  xorg_cv_cc_flag_unknown_warning_option=yes
7298else
7299  xorg_cv_cc_flag_unknown_warning_option=no
7300fi
7301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7302fi
7303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7304$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7305	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7306	CFLAGS="$xorg_testset_save_CFLAGS"
7307fi
7308
7309if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7310	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7311		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7312	fi
7313	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7314	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7315$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7316if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7317  $as_echo_n "(cached) " >&6
7318else
7319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320/* end confdefs.h.  */
7321int i;
7322_ACEOF
7323if ac_fn_c_try_compile "$LINENO"; then :
7324  xorg_cv_cc_flag_unused_command_line_argument=yes
7325else
7326  xorg_cv_cc_flag_unused_command_line_argument=no
7327fi
7328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7329fi
7330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7331$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7332	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7333	CFLAGS="$xorg_testset_save_CFLAGS"
7334fi
7335
7336found="no"
7337
7338	if test $found = "no" ; then
7339		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7340			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7341		fi
7342
7343		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7344			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7345		fi
7346
7347		CFLAGS="$CFLAGS -Werror=implicit"
7348
7349		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7350$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7351		cacheid=xorg_cv_cc_flag__Werror_implicit
7352		if eval \${$cacheid+:} false; then :
7353  $as_echo_n "(cached) " >&6
7354else
7355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356/* end confdefs.h.  */
7357int i;
7358int
7359main ()
7360{
7361
7362  ;
7363  return 0;
7364}
7365_ACEOF
7366if ac_fn_c_try_link "$LINENO"; then :
7367  eval $cacheid=yes
7368else
7369  eval $cacheid=no
7370fi
7371rm -f core conftest.err conftest.$ac_objext \
7372    conftest$ac_exeext conftest.$ac_ext
7373fi
7374
7375
7376		CFLAGS="$xorg_testset_save_CFLAGS"
7377
7378		eval supported=\$$cacheid
7379		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7380$as_echo "$supported" >&6; }
7381		if test "$supported" = "yes" ; then
7382			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7383			found="yes"
7384		fi
7385	fi
7386
7387	if test $found = "no" ; then
7388		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7389			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7390		fi
7391
7392		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7393			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7394		fi
7395
7396		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7397
7398		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7399$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7400		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7401		if eval \${$cacheid+:} false; then :
7402  $as_echo_n "(cached) " >&6
7403else
7404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405/* end confdefs.h.  */
7406int i;
7407int
7408main ()
7409{
7410
7411  ;
7412  return 0;
7413}
7414_ACEOF
7415if ac_fn_c_try_link "$LINENO"; then :
7416  eval $cacheid=yes
7417else
7418  eval $cacheid=no
7419fi
7420rm -f core conftest.err conftest.$ac_objext \
7421    conftest$ac_exeext conftest.$ac_ext
7422fi
7423
7424
7425		CFLAGS="$xorg_testset_save_CFLAGS"
7426
7427		eval supported=\$$cacheid
7428		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7429$as_echo "$supported" >&6; }
7430		if test "$supported" = "yes" ; then
7431			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7432			found="yes"
7433		fi
7434	fi
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450xorg_testset_save_CFLAGS="$CFLAGS"
7451
7452if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7453	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7454	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7455$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7456if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7457  $as_echo_n "(cached) " >&6
7458else
7459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460/* end confdefs.h.  */
7461int i;
7462_ACEOF
7463if ac_fn_c_try_compile "$LINENO"; then :
7464  xorg_cv_cc_flag_unknown_warning_option=yes
7465else
7466  xorg_cv_cc_flag_unknown_warning_option=no
7467fi
7468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7469fi
7470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7471$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7472	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7473	CFLAGS="$xorg_testset_save_CFLAGS"
7474fi
7475
7476if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7477	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7478		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7479	fi
7480	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7481	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7482$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7483if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7484  $as_echo_n "(cached) " >&6
7485else
7486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487/* end confdefs.h.  */
7488int i;
7489_ACEOF
7490if ac_fn_c_try_compile "$LINENO"; then :
7491  xorg_cv_cc_flag_unused_command_line_argument=yes
7492else
7493  xorg_cv_cc_flag_unused_command_line_argument=no
7494fi
7495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7496fi
7497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7498$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7499	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7500	CFLAGS="$xorg_testset_save_CFLAGS"
7501fi
7502
7503found="no"
7504
7505	if test $found = "no" ; then
7506		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7507			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7508		fi
7509
7510		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7511			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7512		fi
7513
7514		CFLAGS="$CFLAGS -Werror=nonnull"
7515
7516		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7517$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7518		cacheid=xorg_cv_cc_flag__Werror_nonnull
7519		if eval \${$cacheid+:} false; then :
7520  $as_echo_n "(cached) " >&6
7521else
7522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523/* end confdefs.h.  */
7524int i;
7525int
7526main ()
7527{
7528
7529  ;
7530  return 0;
7531}
7532_ACEOF
7533if ac_fn_c_try_link "$LINENO"; then :
7534  eval $cacheid=yes
7535else
7536  eval $cacheid=no
7537fi
7538rm -f core conftest.err conftest.$ac_objext \
7539    conftest$ac_exeext conftest.$ac_ext
7540fi
7541
7542
7543		CFLAGS="$xorg_testset_save_CFLAGS"
7544
7545		eval supported=\$$cacheid
7546		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7547$as_echo "$supported" >&6; }
7548		if test "$supported" = "yes" ; then
7549			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7550			found="yes"
7551		fi
7552	fi
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568xorg_testset_save_CFLAGS="$CFLAGS"
7569
7570if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7571	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7572	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7573$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7574if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7575  $as_echo_n "(cached) " >&6
7576else
7577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578/* end confdefs.h.  */
7579int i;
7580_ACEOF
7581if ac_fn_c_try_compile "$LINENO"; then :
7582  xorg_cv_cc_flag_unknown_warning_option=yes
7583else
7584  xorg_cv_cc_flag_unknown_warning_option=no
7585fi
7586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7587fi
7588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7589$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7590	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7591	CFLAGS="$xorg_testset_save_CFLAGS"
7592fi
7593
7594if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7595	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7596		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7597	fi
7598	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7599	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7600$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7601if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7602  $as_echo_n "(cached) " >&6
7603else
7604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605/* end confdefs.h.  */
7606int i;
7607_ACEOF
7608if ac_fn_c_try_compile "$LINENO"; then :
7609  xorg_cv_cc_flag_unused_command_line_argument=yes
7610else
7611  xorg_cv_cc_flag_unused_command_line_argument=no
7612fi
7613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7614fi
7615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7616$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7617	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7618	CFLAGS="$xorg_testset_save_CFLAGS"
7619fi
7620
7621found="no"
7622
7623	if test $found = "no" ; then
7624		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7625			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7626		fi
7627
7628		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7629			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7630		fi
7631
7632		CFLAGS="$CFLAGS -Werror=init-self"
7633
7634		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7635$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7636		cacheid=xorg_cv_cc_flag__Werror_init_self
7637		if eval \${$cacheid+:} false; then :
7638  $as_echo_n "(cached) " >&6
7639else
7640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641/* end confdefs.h.  */
7642int i;
7643int
7644main ()
7645{
7646
7647  ;
7648  return 0;
7649}
7650_ACEOF
7651if ac_fn_c_try_link "$LINENO"; then :
7652  eval $cacheid=yes
7653else
7654  eval $cacheid=no
7655fi
7656rm -f core conftest.err conftest.$ac_objext \
7657    conftest$ac_exeext conftest.$ac_ext
7658fi
7659
7660
7661		CFLAGS="$xorg_testset_save_CFLAGS"
7662
7663		eval supported=\$$cacheid
7664		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7665$as_echo "$supported" >&6; }
7666		if test "$supported" = "yes" ; then
7667			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7668			found="yes"
7669		fi
7670	fi
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686xorg_testset_save_CFLAGS="$CFLAGS"
7687
7688if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7689	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7690	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7691$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7692if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7693  $as_echo_n "(cached) " >&6
7694else
7695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696/* end confdefs.h.  */
7697int i;
7698_ACEOF
7699if ac_fn_c_try_compile "$LINENO"; then :
7700  xorg_cv_cc_flag_unknown_warning_option=yes
7701else
7702  xorg_cv_cc_flag_unknown_warning_option=no
7703fi
7704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7705fi
7706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7707$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7708	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7709	CFLAGS="$xorg_testset_save_CFLAGS"
7710fi
7711
7712if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7713	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7714		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7715	fi
7716	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7717	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7718$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7719if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7720  $as_echo_n "(cached) " >&6
7721else
7722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723/* end confdefs.h.  */
7724int i;
7725_ACEOF
7726if ac_fn_c_try_compile "$LINENO"; then :
7727  xorg_cv_cc_flag_unused_command_line_argument=yes
7728else
7729  xorg_cv_cc_flag_unused_command_line_argument=no
7730fi
7731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7732fi
7733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7734$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7735	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7736	CFLAGS="$xorg_testset_save_CFLAGS"
7737fi
7738
7739found="no"
7740
7741	if test $found = "no" ; then
7742		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7743			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7744		fi
7745
7746		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7747			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7748		fi
7749
7750		CFLAGS="$CFLAGS -Werror=main"
7751
7752		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7753$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7754		cacheid=xorg_cv_cc_flag__Werror_main
7755		if eval \${$cacheid+:} false; then :
7756  $as_echo_n "(cached) " >&6
7757else
7758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759/* end confdefs.h.  */
7760int i;
7761int
7762main ()
7763{
7764
7765  ;
7766  return 0;
7767}
7768_ACEOF
7769if ac_fn_c_try_link "$LINENO"; then :
7770  eval $cacheid=yes
7771else
7772  eval $cacheid=no
7773fi
7774rm -f core conftest.err conftest.$ac_objext \
7775    conftest$ac_exeext conftest.$ac_ext
7776fi
7777
7778
7779		CFLAGS="$xorg_testset_save_CFLAGS"
7780
7781		eval supported=\$$cacheid
7782		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7783$as_echo "$supported" >&6; }
7784		if test "$supported" = "yes" ; then
7785			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7786			found="yes"
7787		fi
7788	fi
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804xorg_testset_save_CFLAGS="$CFLAGS"
7805
7806if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7807	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7808	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7809$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7810if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7811  $as_echo_n "(cached) " >&6
7812else
7813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814/* end confdefs.h.  */
7815int i;
7816_ACEOF
7817if ac_fn_c_try_compile "$LINENO"; then :
7818  xorg_cv_cc_flag_unknown_warning_option=yes
7819else
7820  xorg_cv_cc_flag_unknown_warning_option=no
7821fi
7822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7823fi
7824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7825$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7826	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7827	CFLAGS="$xorg_testset_save_CFLAGS"
7828fi
7829
7830if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7831	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7832		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7833	fi
7834	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7835	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7836$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7837if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7838  $as_echo_n "(cached) " >&6
7839else
7840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7841/* end confdefs.h.  */
7842int i;
7843_ACEOF
7844if ac_fn_c_try_compile "$LINENO"; then :
7845  xorg_cv_cc_flag_unused_command_line_argument=yes
7846else
7847  xorg_cv_cc_flag_unused_command_line_argument=no
7848fi
7849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7850fi
7851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7852$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7853	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7854	CFLAGS="$xorg_testset_save_CFLAGS"
7855fi
7856
7857found="no"
7858
7859	if test $found = "no" ; then
7860		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7861			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7862		fi
7863
7864		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7865			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7866		fi
7867
7868		CFLAGS="$CFLAGS -Werror=missing-braces"
7869
7870		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7871$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7872		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7873		if eval \${$cacheid+:} false; then :
7874  $as_echo_n "(cached) " >&6
7875else
7876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877/* end confdefs.h.  */
7878int i;
7879int
7880main ()
7881{
7882
7883  ;
7884  return 0;
7885}
7886_ACEOF
7887if ac_fn_c_try_link "$LINENO"; then :
7888  eval $cacheid=yes
7889else
7890  eval $cacheid=no
7891fi
7892rm -f core conftest.err conftest.$ac_objext \
7893    conftest$ac_exeext conftest.$ac_ext
7894fi
7895
7896
7897		CFLAGS="$xorg_testset_save_CFLAGS"
7898
7899		eval supported=\$$cacheid
7900		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7901$as_echo "$supported" >&6; }
7902		if test "$supported" = "yes" ; then
7903			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7904			found="yes"
7905		fi
7906	fi
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922xorg_testset_save_CFLAGS="$CFLAGS"
7923
7924if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7925	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7926	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7927$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7928if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7929  $as_echo_n "(cached) " >&6
7930else
7931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932/* end confdefs.h.  */
7933int i;
7934_ACEOF
7935if ac_fn_c_try_compile "$LINENO"; then :
7936  xorg_cv_cc_flag_unknown_warning_option=yes
7937else
7938  xorg_cv_cc_flag_unknown_warning_option=no
7939fi
7940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7941fi
7942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7943$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7944	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7945	CFLAGS="$xorg_testset_save_CFLAGS"
7946fi
7947
7948if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7949	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7950		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7951	fi
7952	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7953	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7954$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7955if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7956  $as_echo_n "(cached) " >&6
7957else
7958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7959/* end confdefs.h.  */
7960int i;
7961_ACEOF
7962if ac_fn_c_try_compile "$LINENO"; then :
7963  xorg_cv_cc_flag_unused_command_line_argument=yes
7964else
7965  xorg_cv_cc_flag_unused_command_line_argument=no
7966fi
7967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7968fi
7969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7970$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7971	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7972	CFLAGS="$xorg_testset_save_CFLAGS"
7973fi
7974
7975found="no"
7976
7977	if test $found = "no" ; then
7978		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7979			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7980		fi
7981
7982		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7983			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7984		fi
7985
7986		CFLAGS="$CFLAGS -Werror=sequence-point"
7987
7988		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7989$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7990		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7991		if eval \${$cacheid+:} false; then :
7992  $as_echo_n "(cached) " >&6
7993else
7994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995/* end confdefs.h.  */
7996int i;
7997int
7998main ()
7999{
8000
8001  ;
8002  return 0;
8003}
8004_ACEOF
8005if ac_fn_c_try_link "$LINENO"; then :
8006  eval $cacheid=yes
8007else
8008  eval $cacheid=no
8009fi
8010rm -f core conftest.err conftest.$ac_objext \
8011    conftest$ac_exeext conftest.$ac_ext
8012fi
8013
8014
8015		CFLAGS="$xorg_testset_save_CFLAGS"
8016
8017		eval supported=\$$cacheid
8018		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8019$as_echo "$supported" >&6; }
8020		if test "$supported" = "yes" ; then
8021			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8022			found="yes"
8023		fi
8024	fi
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040xorg_testset_save_CFLAGS="$CFLAGS"
8041
8042if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8043	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8044	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8045$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8046if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8047  $as_echo_n "(cached) " >&6
8048else
8049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8050/* end confdefs.h.  */
8051int i;
8052_ACEOF
8053if ac_fn_c_try_compile "$LINENO"; then :
8054  xorg_cv_cc_flag_unknown_warning_option=yes
8055else
8056  xorg_cv_cc_flag_unknown_warning_option=no
8057fi
8058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8059fi
8060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8061$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8062	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8063	CFLAGS="$xorg_testset_save_CFLAGS"
8064fi
8065
8066if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8067	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8068		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8069	fi
8070	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8071	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8072$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8073if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8074  $as_echo_n "(cached) " >&6
8075else
8076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8077/* end confdefs.h.  */
8078int i;
8079_ACEOF
8080if ac_fn_c_try_compile "$LINENO"; then :
8081  xorg_cv_cc_flag_unused_command_line_argument=yes
8082else
8083  xorg_cv_cc_flag_unused_command_line_argument=no
8084fi
8085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8086fi
8087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8088$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8089	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8090	CFLAGS="$xorg_testset_save_CFLAGS"
8091fi
8092
8093found="no"
8094
8095	if test $found = "no" ; then
8096		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8097			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8098		fi
8099
8100		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8101			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8102		fi
8103
8104		CFLAGS="$CFLAGS -Werror=return-type"
8105
8106		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8107$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
8108		cacheid=xorg_cv_cc_flag__Werror_return_type
8109		if eval \${$cacheid+:} false; then :
8110  $as_echo_n "(cached) " >&6
8111else
8112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8113/* end confdefs.h.  */
8114int i;
8115int
8116main ()
8117{
8118
8119  ;
8120  return 0;
8121}
8122_ACEOF
8123if ac_fn_c_try_link "$LINENO"; then :
8124  eval $cacheid=yes
8125else
8126  eval $cacheid=no
8127fi
8128rm -f core conftest.err conftest.$ac_objext \
8129    conftest$ac_exeext conftest.$ac_ext
8130fi
8131
8132
8133		CFLAGS="$xorg_testset_save_CFLAGS"
8134
8135		eval supported=\$$cacheid
8136		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8137$as_echo "$supported" >&6; }
8138		if test "$supported" = "yes" ; then
8139			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8140			found="yes"
8141		fi
8142	fi
8143
8144	if test $found = "no" ; then
8145		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8146			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8147		fi
8148
8149		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8150			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8151		fi
8152
8153		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8154
8155		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8156$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8157		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8158		if eval \${$cacheid+:} false; then :
8159  $as_echo_n "(cached) " >&6
8160else
8161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162/* end confdefs.h.  */
8163int i;
8164int
8165main ()
8166{
8167
8168  ;
8169  return 0;
8170}
8171_ACEOF
8172if ac_fn_c_try_link "$LINENO"; then :
8173  eval $cacheid=yes
8174else
8175  eval $cacheid=no
8176fi
8177rm -f core conftest.err conftest.$ac_objext \
8178    conftest$ac_exeext conftest.$ac_ext
8179fi
8180
8181
8182		CFLAGS="$xorg_testset_save_CFLAGS"
8183
8184		eval supported=\$$cacheid
8185		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8186$as_echo "$supported" >&6; }
8187		if test "$supported" = "yes" ; then
8188			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8189			found="yes"
8190		fi
8191	fi
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207xorg_testset_save_CFLAGS="$CFLAGS"
8208
8209if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8210	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8211	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8212$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8213if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8214  $as_echo_n "(cached) " >&6
8215else
8216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217/* end confdefs.h.  */
8218int i;
8219_ACEOF
8220if ac_fn_c_try_compile "$LINENO"; then :
8221  xorg_cv_cc_flag_unknown_warning_option=yes
8222else
8223  xorg_cv_cc_flag_unknown_warning_option=no
8224fi
8225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8226fi
8227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8228$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8229	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8230	CFLAGS="$xorg_testset_save_CFLAGS"
8231fi
8232
8233if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8234	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8235		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8236	fi
8237	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8238	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8239$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8240if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8241  $as_echo_n "(cached) " >&6
8242else
8243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8244/* end confdefs.h.  */
8245int i;
8246_ACEOF
8247if ac_fn_c_try_compile "$LINENO"; then :
8248  xorg_cv_cc_flag_unused_command_line_argument=yes
8249else
8250  xorg_cv_cc_flag_unused_command_line_argument=no
8251fi
8252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8253fi
8254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8255$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8256	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8257	CFLAGS="$xorg_testset_save_CFLAGS"
8258fi
8259
8260found="no"
8261
8262	if test $found = "no" ; then
8263		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8264			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8265		fi
8266
8267		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8268			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8269		fi
8270
8271		CFLAGS="$CFLAGS -Werror=trigraphs"
8272
8273		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8274$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8275		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8276		if eval \${$cacheid+:} false; then :
8277  $as_echo_n "(cached) " >&6
8278else
8279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8280/* end confdefs.h.  */
8281int i;
8282int
8283main ()
8284{
8285
8286  ;
8287  return 0;
8288}
8289_ACEOF
8290if ac_fn_c_try_link "$LINENO"; then :
8291  eval $cacheid=yes
8292else
8293  eval $cacheid=no
8294fi
8295rm -f core conftest.err conftest.$ac_objext \
8296    conftest$ac_exeext conftest.$ac_ext
8297fi
8298
8299
8300		CFLAGS="$xorg_testset_save_CFLAGS"
8301
8302		eval supported=\$$cacheid
8303		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8304$as_echo "$supported" >&6; }
8305		if test "$supported" = "yes" ; then
8306			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8307			found="yes"
8308		fi
8309	fi
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325xorg_testset_save_CFLAGS="$CFLAGS"
8326
8327if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8328	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8329	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8330$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8331if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8332  $as_echo_n "(cached) " >&6
8333else
8334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335/* end confdefs.h.  */
8336int i;
8337_ACEOF
8338if ac_fn_c_try_compile "$LINENO"; then :
8339  xorg_cv_cc_flag_unknown_warning_option=yes
8340else
8341  xorg_cv_cc_flag_unknown_warning_option=no
8342fi
8343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8344fi
8345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8346$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8347	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8348	CFLAGS="$xorg_testset_save_CFLAGS"
8349fi
8350
8351if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8352	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8353		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8354	fi
8355	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8356	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8357$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8358if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8359  $as_echo_n "(cached) " >&6
8360else
8361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362/* end confdefs.h.  */
8363int i;
8364_ACEOF
8365if ac_fn_c_try_compile "$LINENO"; then :
8366  xorg_cv_cc_flag_unused_command_line_argument=yes
8367else
8368  xorg_cv_cc_flag_unused_command_line_argument=no
8369fi
8370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8371fi
8372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8373$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8374	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8375	CFLAGS="$xorg_testset_save_CFLAGS"
8376fi
8377
8378found="no"
8379
8380	if test $found = "no" ; then
8381		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8382			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8383		fi
8384
8385		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8386			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8387		fi
8388
8389		CFLAGS="$CFLAGS -Werror=array-bounds"
8390
8391		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8392$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8393		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8394		if eval \${$cacheid+:} false; then :
8395  $as_echo_n "(cached) " >&6
8396else
8397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398/* end confdefs.h.  */
8399int i;
8400int
8401main ()
8402{
8403
8404  ;
8405  return 0;
8406}
8407_ACEOF
8408if ac_fn_c_try_link "$LINENO"; then :
8409  eval $cacheid=yes
8410else
8411  eval $cacheid=no
8412fi
8413rm -f core conftest.err conftest.$ac_objext \
8414    conftest$ac_exeext conftest.$ac_ext
8415fi
8416
8417
8418		CFLAGS="$xorg_testset_save_CFLAGS"
8419
8420		eval supported=\$$cacheid
8421		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8422$as_echo "$supported" >&6; }
8423		if test "$supported" = "yes" ; then
8424			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8425			found="yes"
8426		fi
8427	fi
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443xorg_testset_save_CFLAGS="$CFLAGS"
8444
8445if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8446	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8447	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8448$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8449if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8450  $as_echo_n "(cached) " >&6
8451else
8452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453/* end confdefs.h.  */
8454int i;
8455_ACEOF
8456if ac_fn_c_try_compile "$LINENO"; then :
8457  xorg_cv_cc_flag_unknown_warning_option=yes
8458else
8459  xorg_cv_cc_flag_unknown_warning_option=no
8460fi
8461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8462fi
8463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8464$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8465	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8466	CFLAGS="$xorg_testset_save_CFLAGS"
8467fi
8468
8469if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8470	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8471		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8472	fi
8473	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8474	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8475$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8476if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8477  $as_echo_n "(cached) " >&6
8478else
8479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480/* end confdefs.h.  */
8481int i;
8482_ACEOF
8483if ac_fn_c_try_compile "$LINENO"; then :
8484  xorg_cv_cc_flag_unused_command_line_argument=yes
8485else
8486  xorg_cv_cc_flag_unused_command_line_argument=no
8487fi
8488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8489fi
8490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8491$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8492	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8493	CFLAGS="$xorg_testset_save_CFLAGS"
8494fi
8495
8496found="no"
8497
8498	if test $found = "no" ; then
8499		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8500			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8501		fi
8502
8503		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8504			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8505		fi
8506
8507		CFLAGS="$CFLAGS -Werror=write-strings"
8508
8509		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8510$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8511		cacheid=xorg_cv_cc_flag__Werror_write_strings
8512		if eval \${$cacheid+:} false; then :
8513  $as_echo_n "(cached) " >&6
8514else
8515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8516/* end confdefs.h.  */
8517int i;
8518int
8519main ()
8520{
8521
8522  ;
8523  return 0;
8524}
8525_ACEOF
8526if ac_fn_c_try_link "$LINENO"; then :
8527  eval $cacheid=yes
8528else
8529  eval $cacheid=no
8530fi
8531rm -f core conftest.err conftest.$ac_objext \
8532    conftest$ac_exeext conftest.$ac_ext
8533fi
8534
8535
8536		CFLAGS="$xorg_testset_save_CFLAGS"
8537
8538		eval supported=\$$cacheid
8539		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8540$as_echo "$supported" >&6; }
8541		if test "$supported" = "yes" ; then
8542			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8543			found="yes"
8544		fi
8545	fi
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561xorg_testset_save_CFLAGS="$CFLAGS"
8562
8563if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8564	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8565	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8566$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8567if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8568  $as_echo_n "(cached) " >&6
8569else
8570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8571/* end confdefs.h.  */
8572int i;
8573_ACEOF
8574if ac_fn_c_try_compile "$LINENO"; then :
8575  xorg_cv_cc_flag_unknown_warning_option=yes
8576else
8577  xorg_cv_cc_flag_unknown_warning_option=no
8578fi
8579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8580fi
8581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8582$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8583	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8584	CFLAGS="$xorg_testset_save_CFLAGS"
8585fi
8586
8587if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8588	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8589		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8590	fi
8591	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8592	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8593$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8594if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8595  $as_echo_n "(cached) " >&6
8596else
8597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8598/* end confdefs.h.  */
8599int i;
8600_ACEOF
8601if ac_fn_c_try_compile "$LINENO"; then :
8602  xorg_cv_cc_flag_unused_command_line_argument=yes
8603else
8604  xorg_cv_cc_flag_unused_command_line_argument=no
8605fi
8606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8607fi
8608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8609$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8610	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8611	CFLAGS="$xorg_testset_save_CFLAGS"
8612fi
8613
8614found="no"
8615
8616	if test $found = "no" ; then
8617		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8618			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8619		fi
8620
8621		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8622			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8623		fi
8624
8625		CFLAGS="$CFLAGS -Werror=address"
8626
8627		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8628$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8629		cacheid=xorg_cv_cc_flag__Werror_address
8630		if eval \${$cacheid+:} false; then :
8631  $as_echo_n "(cached) " >&6
8632else
8633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8634/* end confdefs.h.  */
8635int i;
8636int
8637main ()
8638{
8639
8640  ;
8641  return 0;
8642}
8643_ACEOF
8644if ac_fn_c_try_link "$LINENO"; then :
8645  eval $cacheid=yes
8646else
8647  eval $cacheid=no
8648fi
8649rm -f core conftest.err conftest.$ac_objext \
8650    conftest$ac_exeext conftest.$ac_ext
8651fi
8652
8653
8654		CFLAGS="$xorg_testset_save_CFLAGS"
8655
8656		eval supported=\$$cacheid
8657		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8658$as_echo "$supported" >&6; }
8659		if test "$supported" = "yes" ; then
8660			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8661			found="yes"
8662		fi
8663	fi
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679xorg_testset_save_CFLAGS="$CFLAGS"
8680
8681if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8682	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8683	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8684$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8685if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8686  $as_echo_n "(cached) " >&6
8687else
8688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689/* end confdefs.h.  */
8690int i;
8691_ACEOF
8692if ac_fn_c_try_compile "$LINENO"; then :
8693  xorg_cv_cc_flag_unknown_warning_option=yes
8694else
8695  xorg_cv_cc_flag_unknown_warning_option=no
8696fi
8697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8698fi
8699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8700$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8701	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8702	CFLAGS="$xorg_testset_save_CFLAGS"
8703fi
8704
8705if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8706	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8707		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8708	fi
8709	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8710	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8711$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8712if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8713  $as_echo_n "(cached) " >&6
8714else
8715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8716/* end confdefs.h.  */
8717int i;
8718_ACEOF
8719if ac_fn_c_try_compile "$LINENO"; then :
8720  xorg_cv_cc_flag_unused_command_line_argument=yes
8721else
8722  xorg_cv_cc_flag_unused_command_line_argument=no
8723fi
8724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8725fi
8726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8727$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8728	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8729	CFLAGS="$xorg_testset_save_CFLAGS"
8730fi
8731
8732found="no"
8733
8734	if test $found = "no" ; then
8735		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8736			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8737		fi
8738
8739		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8740			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8741		fi
8742
8743		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8744
8745		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8746$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8747		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8748		if eval \${$cacheid+:} false; then :
8749  $as_echo_n "(cached) " >&6
8750else
8751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8752/* end confdefs.h.  */
8753int i;
8754int
8755main ()
8756{
8757
8758  ;
8759  return 0;
8760}
8761_ACEOF
8762if ac_fn_c_try_link "$LINENO"; then :
8763  eval $cacheid=yes
8764else
8765  eval $cacheid=no
8766fi
8767rm -f core conftest.err conftest.$ac_objext \
8768    conftest$ac_exeext conftest.$ac_ext
8769fi
8770
8771
8772		CFLAGS="$xorg_testset_save_CFLAGS"
8773
8774		eval supported=\$$cacheid
8775		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8776$as_echo "$supported" >&6; }
8777		if test "$supported" = "yes" ; then
8778			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8779			found="yes"
8780		fi
8781	fi
8782
8783	if test $found = "no" ; then
8784		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8785			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8786		fi
8787
8788		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8789			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8790		fi
8791
8792		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8793
8794		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8795$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8796		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8797		if eval \${$cacheid+:} false; then :
8798  $as_echo_n "(cached) " >&6
8799else
8800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8801/* end confdefs.h.  */
8802int i;
8803int
8804main ()
8805{
8806
8807  ;
8808  return 0;
8809}
8810_ACEOF
8811if ac_fn_c_try_link "$LINENO"; then :
8812  eval $cacheid=yes
8813else
8814  eval $cacheid=no
8815fi
8816rm -f core conftest.err conftest.$ac_objext \
8817    conftest$ac_exeext conftest.$ac_ext
8818fi
8819
8820
8821		CFLAGS="$xorg_testset_save_CFLAGS"
8822
8823		eval supported=\$$cacheid
8824		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8825$as_echo "$supported" >&6; }
8826		if test "$supported" = "yes" ; then
8827			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8828			found="yes"
8829		fi
8830	fi
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846xorg_testset_save_CFLAGS="$CFLAGS"
8847
8848if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8849	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8850	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8851$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8852if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8853  $as_echo_n "(cached) " >&6
8854else
8855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8856/* end confdefs.h.  */
8857int i;
8858_ACEOF
8859if ac_fn_c_try_compile "$LINENO"; then :
8860  xorg_cv_cc_flag_unknown_warning_option=yes
8861else
8862  xorg_cv_cc_flag_unknown_warning_option=no
8863fi
8864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8865fi
8866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8867$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8868	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8869	CFLAGS="$xorg_testset_save_CFLAGS"
8870fi
8871
8872if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8873	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8874		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8875	fi
8876	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8877	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8878$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8879if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8880  $as_echo_n "(cached) " >&6
8881else
8882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8883/* end confdefs.h.  */
8884int i;
8885_ACEOF
8886if ac_fn_c_try_compile "$LINENO"; then :
8887  xorg_cv_cc_flag_unused_command_line_argument=yes
8888else
8889  xorg_cv_cc_flag_unused_command_line_argument=no
8890fi
8891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8892fi
8893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8894$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8895	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8896	CFLAGS="$xorg_testset_save_CFLAGS"
8897fi
8898
8899found="no"
8900
8901	if test $found = "no" ; then
8902		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8903			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8904		fi
8905
8906		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8907			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8908		fi
8909
8910		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8911
8912		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8913$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8914		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8915		if eval \${$cacheid+:} false; then :
8916  $as_echo_n "(cached) " >&6
8917else
8918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8919/* end confdefs.h.  */
8920int i;
8921int
8922main ()
8923{
8924
8925  ;
8926  return 0;
8927}
8928_ACEOF
8929if ac_fn_c_try_link "$LINENO"; then :
8930  eval $cacheid=yes
8931else
8932  eval $cacheid=no
8933fi
8934rm -f core conftest.err conftest.$ac_objext \
8935    conftest$ac_exeext conftest.$ac_ext
8936fi
8937
8938
8939		CFLAGS="$xorg_testset_save_CFLAGS"
8940
8941		eval supported=\$$cacheid
8942		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8943$as_echo "$supported" >&6; }
8944		if test "$supported" = "yes" ; then
8945			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8946			found="yes"
8947		fi
8948	fi
8949
8950 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8951else
8952{ $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
8953$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;}
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967xorg_testset_save_CFLAGS="$CFLAGS"
8968
8969if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8970	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8971	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8972$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8973if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8974  $as_echo_n "(cached) " >&6
8975else
8976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977/* end confdefs.h.  */
8978int i;
8979_ACEOF
8980if ac_fn_c_try_compile "$LINENO"; then :
8981  xorg_cv_cc_flag_unknown_warning_option=yes
8982else
8983  xorg_cv_cc_flag_unknown_warning_option=no
8984fi
8985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8986fi
8987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8988$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8989	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8990	CFLAGS="$xorg_testset_save_CFLAGS"
8991fi
8992
8993if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8994	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8995		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8996	fi
8997	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8998	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8999$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9000if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9001  $as_echo_n "(cached) " >&6
9002else
9003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004/* end confdefs.h.  */
9005int i;
9006_ACEOF
9007if ac_fn_c_try_compile "$LINENO"; then :
9008  xorg_cv_cc_flag_unused_command_line_argument=yes
9009else
9010  xorg_cv_cc_flag_unused_command_line_argument=no
9011fi
9012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9013fi
9014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9015$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9016	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9017	CFLAGS="$xorg_testset_save_CFLAGS"
9018fi
9019
9020found="no"
9021
9022	if test $found = "no" ; then
9023		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9024			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9025		fi
9026
9027		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9028			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9029		fi
9030
9031		CFLAGS="$CFLAGS -Wimplicit"
9032
9033		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9034$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
9035		cacheid=xorg_cv_cc_flag__Wimplicit
9036		if eval \${$cacheid+:} false; then :
9037  $as_echo_n "(cached) " >&6
9038else
9039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9040/* end confdefs.h.  */
9041int i;
9042int
9043main ()
9044{
9045
9046  ;
9047  return 0;
9048}
9049_ACEOF
9050if ac_fn_c_try_link "$LINENO"; then :
9051  eval $cacheid=yes
9052else
9053  eval $cacheid=no
9054fi
9055rm -f core conftest.err conftest.$ac_objext \
9056    conftest$ac_exeext conftest.$ac_ext
9057fi
9058
9059
9060		CFLAGS="$xorg_testset_save_CFLAGS"
9061
9062		eval supported=\$$cacheid
9063		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9064$as_echo "$supported" >&6; }
9065		if test "$supported" = "yes" ; then
9066			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9067			found="yes"
9068		fi
9069	fi
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085xorg_testset_save_CFLAGS="$CFLAGS"
9086
9087if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9088	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9089	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9090$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9091if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9092  $as_echo_n "(cached) " >&6
9093else
9094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9095/* end confdefs.h.  */
9096int i;
9097_ACEOF
9098if ac_fn_c_try_compile "$LINENO"; then :
9099  xorg_cv_cc_flag_unknown_warning_option=yes
9100else
9101  xorg_cv_cc_flag_unknown_warning_option=no
9102fi
9103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9104fi
9105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9106$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9107	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9108	CFLAGS="$xorg_testset_save_CFLAGS"
9109fi
9110
9111if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9112	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9113		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9114	fi
9115	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9116	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9117$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9118if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9119  $as_echo_n "(cached) " >&6
9120else
9121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9122/* end confdefs.h.  */
9123int i;
9124_ACEOF
9125if ac_fn_c_try_compile "$LINENO"; then :
9126  xorg_cv_cc_flag_unused_command_line_argument=yes
9127else
9128  xorg_cv_cc_flag_unused_command_line_argument=no
9129fi
9130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9131fi
9132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9133$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9134	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9135	CFLAGS="$xorg_testset_save_CFLAGS"
9136fi
9137
9138found="no"
9139
9140	if test $found = "no" ; then
9141		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9142			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9143		fi
9144
9145		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9146			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9147		fi
9148
9149		CFLAGS="$CFLAGS -Wnonnull"
9150
9151		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9152$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
9153		cacheid=xorg_cv_cc_flag__Wnonnull
9154		if eval \${$cacheid+:} false; then :
9155  $as_echo_n "(cached) " >&6
9156else
9157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9158/* end confdefs.h.  */
9159int i;
9160int
9161main ()
9162{
9163
9164  ;
9165  return 0;
9166}
9167_ACEOF
9168if ac_fn_c_try_link "$LINENO"; then :
9169  eval $cacheid=yes
9170else
9171  eval $cacheid=no
9172fi
9173rm -f core conftest.err conftest.$ac_objext \
9174    conftest$ac_exeext conftest.$ac_ext
9175fi
9176
9177
9178		CFLAGS="$xorg_testset_save_CFLAGS"
9179
9180		eval supported=\$$cacheid
9181		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9182$as_echo "$supported" >&6; }
9183		if test "$supported" = "yes" ; then
9184			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9185			found="yes"
9186		fi
9187	fi
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203xorg_testset_save_CFLAGS="$CFLAGS"
9204
9205if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9206	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9207	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9208$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9209if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9210  $as_echo_n "(cached) " >&6
9211else
9212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213/* end confdefs.h.  */
9214int i;
9215_ACEOF
9216if ac_fn_c_try_compile "$LINENO"; then :
9217  xorg_cv_cc_flag_unknown_warning_option=yes
9218else
9219  xorg_cv_cc_flag_unknown_warning_option=no
9220fi
9221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9222fi
9223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9224$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9225	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9226	CFLAGS="$xorg_testset_save_CFLAGS"
9227fi
9228
9229if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9230	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9231		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9232	fi
9233	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9234	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9235$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9236if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9237  $as_echo_n "(cached) " >&6
9238else
9239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9240/* end confdefs.h.  */
9241int i;
9242_ACEOF
9243if ac_fn_c_try_compile "$LINENO"; then :
9244  xorg_cv_cc_flag_unused_command_line_argument=yes
9245else
9246  xorg_cv_cc_flag_unused_command_line_argument=no
9247fi
9248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9249fi
9250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9251$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9252	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9253	CFLAGS="$xorg_testset_save_CFLAGS"
9254fi
9255
9256found="no"
9257
9258	if test $found = "no" ; then
9259		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9260			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9261		fi
9262
9263		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9264			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9265		fi
9266
9267		CFLAGS="$CFLAGS -Winit-self"
9268
9269		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9270$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9271		cacheid=xorg_cv_cc_flag__Winit_self
9272		if eval \${$cacheid+:} false; then :
9273  $as_echo_n "(cached) " >&6
9274else
9275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9276/* end confdefs.h.  */
9277int i;
9278int
9279main ()
9280{
9281
9282  ;
9283  return 0;
9284}
9285_ACEOF
9286if ac_fn_c_try_link "$LINENO"; then :
9287  eval $cacheid=yes
9288else
9289  eval $cacheid=no
9290fi
9291rm -f core conftest.err conftest.$ac_objext \
9292    conftest$ac_exeext conftest.$ac_ext
9293fi
9294
9295
9296		CFLAGS="$xorg_testset_save_CFLAGS"
9297
9298		eval supported=\$$cacheid
9299		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9300$as_echo "$supported" >&6; }
9301		if test "$supported" = "yes" ; then
9302			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9303			found="yes"
9304		fi
9305	fi
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321xorg_testset_save_CFLAGS="$CFLAGS"
9322
9323if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9324	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9325	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9326$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9327if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9328  $as_echo_n "(cached) " >&6
9329else
9330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331/* end confdefs.h.  */
9332int i;
9333_ACEOF
9334if ac_fn_c_try_compile "$LINENO"; then :
9335  xorg_cv_cc_flag_unknown_warning_option=yes
9336else
9337  xorg_cv_cc_flag_unknown_warning_option=no
9338fi
9339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9340fi
9341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9342$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9343	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9344	CFLAGS="$xorg_testset_save_CFLAGS"
9345fi
9346
9347if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9348	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9349		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9350	fi
9351	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9352	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9353$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9354if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9355  $as_echo_n "(cached) " >&6
9356else
9357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9358/* end confdefs.h.  */
9359int i;
9360_ACEOF
9361if ac_fn_c_try_compile "$LINENO"; then :
9362  xorg_cv_cc_flag_unused_command_line_argument=yes
9363else
9364  xorg_cv_cc_flag_unused_command_line_argument=no
9365fi
9366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9367fi
9368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9369$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9370	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9371	CFLAGS="$xorg_testset_save_CFLAGS"
9372fi
9373
9374found="no"
9375
9376	if test $found = "no" ; then
9377		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9378			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9379		fi
9380
9381		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9382			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9383		fi
9384
9385		CFLAGS="$CFLAGS -Wmain"
9386
9387		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9388$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9389		cacheid=xorg_cv_cc_flag__Wmain
9390		if eval \${$cacheid+:} false; then :
9391  $as_echo_n "(cached) " >&6
9392else
9393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394/* end confdefs.h.  */
9395int i;
9396int
9397main ()
9398{
9399
9400  ;
9401  return 0;
9402}
9403_ACEOF
9404if ac_fn_c_try_link "$LINENO"; then :
9405  eval $cacheid=yes
9406else
9407  eval $cacheid=no
9408fi
9409rm -f core conftest.err conftest.$ac_objext \
9410    conftest$ac_exeext conftest.$ac_ext
9411fi
9412
9413
9414		CFLAGS="$xorg_testset_save_CFLAGS"
9415
9416		eval supported=\$$cacheid
9417		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9418$as_echo "$supported" >&6; }
9419		if test "$supported" = "yes" ; then
9420			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9421			found="yes"
9422		fi
9423	fi
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439xorg_testset_save_CFLAGS="$CFLAGS"
9440
9441if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9442	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9443	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9444$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9445if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9446  $as_echo_n "(cached) " >&6
9447else
9448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449/* end confdefs.h.  */
9450int i;
9451_ACEOF
9452if ac_fn_c_try_compile "$LINENO"; then :
9453  xorg_cv_cc_flag_unknown_warning_option=yes
9454else
9455  xorg_cv_cc_flag_unknown_warning_option=no
9456fi
9457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9458fi
9459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9460$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9461	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9462	CFLAGS="$xorg_testset_save_CFLAGS"
9463fi
9464
9465if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9466	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9467		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9468	fi
9469	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9470	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9471$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9472if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9473  $as_echo_n "(cached) " >&6
9474else
9475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9476/* end confdefs.h.  */
9477int i;
9478_ACEOF
9479if ac_fn_c_try_compile "$LINENO"; then :
9480  xorg_cv_cc_flag_unused_command_line_argument=yes
9481else
9482  xorg_cv_cc_flag_unused_command_line_argument=no
9483fi
9484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9485fi
9486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9487$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9488	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9489	CFLAGS="$xorg_testset_save_CFLAGS"
9490fi
9491
9492found="no"
9493
9494	if test $found = "no" ; then
9495		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9496			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9497		fi
9498
9499		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9500			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9501		fi
9502
9503		CFLAGS="$CFLAGS -Wmissing-braces"
9504
9505		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9506$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9507		cacheid=xorg_cv_cc_flag__Wmissing_braces
9508		if eval \${$cacheid+:} false; then :
9509  $as_echo_n "(cached) " >&6
9510else
9511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9512/* end confdefs.h.  */
9513int i;
9514int
9515main ()
9516{
9517
9518  ;
9519  return 0;
9520}
9521_ACEOF
9522if ac_fn_c_try_link "$LINENO"; then :
9523  eval $cacheid=yes
9524else
9525  eval $cacheid=no
9526fi
9527rm -f core conftest.err conftest.$ac_objext \
9528    conftest$ac_exeext conftest.$ac_ext
9529fi
9530
9531
9532		CFLAGS="$xorg_testset_save_CFLAGS"
9533
9534		eval supported=\$$cacheid
9535		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9536$as_echo "$supported" >&6; }
9537		if test "$supported" = "yes" ; then
9538			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9539			found="yes"
9540		fi
9541	fi
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557xorg_testset_save_CFLAGS="$CFLAGS"
9558
9559if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9560	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9561	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9562$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9563if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9564  $as_echo_n "(cached) " >&6
9565else
9566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9567/* end confdefs.h.  */
9568int i;
9569_ACEOF
9570if ac_fn_c_try_compile "$LINENO"; then :
9571  xorg_cv_cc_flag_unknown_warning_option=yes
9572else
9573  xorg_cv_cc_flag_unknown_warning_option=no
9574fi
9575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9576fi
9577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9578$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9579	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9580	CFLAGS="$xorg_testset_save_CFLAGS"
9581fi
9582
9583if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9584	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9585		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9586	fi
9587	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9588	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9589$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9590if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9591  $as_echo_n "(cached) " >&6
9592else
9593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9594/* end confdefs.h.  */
9595int i;
9596_ACEOF
9597if ac_fn_c_try_compile "$LINENO"; then :
9598  xorg_cv_cc_flag_unused_command_line_argument=yes
9599else
9600  xorg_cv_cc_flag_unused_command_line_argument=no
9601fi
9602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9603fi
9604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9605$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9606	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9607	CFLAGS="$xorg_testset_save_CFLAGS"
9608fi
9609
9610found="no"
9611
9612	if test $found = "no" ; then
9613		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9614			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9615		fi
9616
9617		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9618			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9619		fi
9620
9621		CFLAGS="$CFLAGS -Wsequence-point"
9622
9623		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9624$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9625		cacheid=xorg_cv_cc_flag__Wsequence_point
9626		if eval \${$cacheid+:} false; then :
9627  $as_echo_n "(cached) " >&6
9628else
9629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9630/* end confdefs.h.  */
9631int i;
9632int
9633main ()
9634{
9635
9636  ;
9637  return 0;
9638}
9639_ACEOF
9640if ac_fn_c_try_link "$LINENO"; then :
9641  eval $cacheid=yes
9642else
9643  eval $cacheid=no
9644fi
9645rm -f core conftest.err conftest.$ac_objext \
9646    conftest$ac_exeext conftest.$ac_ext
9647fi
9648
9649
9650		CFLAGS="$xorg_testset_save_CFLAGS"
9651
9652		eval supported=\$$cacheid
9653		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9654$as_echo "$supported" >&6; }
9655		if test "$supported" = "yes" ; then
9656			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9657			found="yes"
9658		fi
9659	fi
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675xorg_testset_save_CFLAGS="$CFLAGS"
9676
9677if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9678	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9679	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9680$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9681if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9682  $as_echo_n "(cached) " >&6
9683else
9684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9685/* end confdefs.h.  */
9686int i;
9687_ACEOF
9688if ac_fn_c_try_compile "$LINENO"; then :
9689  xorg_cv_cc_flag_unknown_warning_option=yes
9690else
9691  xorg_cv_cc_flag_unknown_warning_option=no
9692fi
9693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9694fi
9695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9696$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9697	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9698	CFLAGS="$xorg_testset_save_CFLAGS"
9699fi
9700
9701if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9702	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9703		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9704	fi
9705	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9706	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9707$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9708if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9709  $as_echo_n "(cached) " >&6
9710else
9711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9712/* end confdefs.h.  */
9713int i;
9714_ACEOF
9715if ac_fn_c_try_compile "$LINENO"; then :
9716  xorg_cv_cc_flag_unused_command_line_argument=yes
9717else
9718  xorg_cv_cc_flag_unused_command_line_argument=no
9719fi
9720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9721fi
9722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9723$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9724	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9725	CFLAGS="$xorg_testset_save_CFLAGS"
9726fi
9727
9728found="no"
9729
9730	if test $found = "no" ; then
9731		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9732			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9733		fi
9734
9735		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9736			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9737		fi
9738
9739		CFLAGS="$CFLAGS -Wreturn-type"
9740
9741		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9742$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9743		cacheid=xorg_cv_cc_flag__Wreturn_type
9744		if eval \${$cacheid+:} false; then :
9745  $as_echo_n "(cached) " >&6
9746else
9747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748/* end confdefs.h.  */
9749int i;
9750int
9751main ()
9752{
9753
9754  ;
9755  return 0;
9756}
9757_ACEOF
9758if ac_fn_c_try_link "$LINENO"; then :
9759  eval $cacheid=yes
9760else
9761  eval $cacheid=no
9762fi
9763rm -f core conftest.err conftest.$ac_objext \
9764    conftest$ac_exeext conftest.$ac_ext
9765fi
9766
9767
9768		CFLAGS="$xorg_testset_save_CFLAGS"
9769
9770		eval supported=\$$cacheid
9771		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9772$as_echo "$supported" >&6; }
9773		if test "$supported" = "yes" ; then
9774			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9775			found="yes"
9776		fi
9777	fi
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793xorg_testset_save_CFLAGS="$CFLAGS"
9794
9795if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9796	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9797	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9798$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9799if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9800  $as_echo_n "(cached) " >&6
9801else
9802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803/* end confdefs.h.  */
9804int i;
9805_ACEOF
9806if ac_fn_c_try_compile "$LINENO"; then :
9807  xorg_cv_cc_flag_unknown_warning_option=yes
9808else
9809  xorg_cv_cc_flag_unknown_warning_option=no
9810fi
9811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9812fi
9813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9814$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9815	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9816	CFLAGS="$xorg_testset_save_CFLAGS"
9817fi
9818
9819if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9820	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9821		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9822	fi
9823	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9824	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9825$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9826if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9827  $as_echo_n "(cached) " >&6
9828else
9829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9830/* end confdefs.h.  */
9831int i;
9832_ACEOF
9833if ac_fn_c_try_compile "$LINENO"; then :
9834  xorg_cv_cc_flag_unused_command_line_argument=yes
9835else
9836  xorg_cv_cc_flag_unused_command_line_argument=no
9837fi
9838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9839fi
9840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9841$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9842	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9843	CFLAGS="$xorg_testset_save_CFLAGS"
9844fi
9845
9846found="no"
9847
9848	if test $found = "no" ; then
9849		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9850			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9851		fi
9852
9853		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9854			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9855		fi
9856
9857		CFLAGS="$CFLAGS -Wtrigraphs"
9858
9859		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9860$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9861		cacheid=xorg_cv_cc_flag__Wtrigraphs
9862		if eval \${$cacheid+:} false; then :
9863  $as_echo_n "(cached) " >&6
9864else
9865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9866/* end confdefs.h.  */
9867int i;
9868int
9869main ()
9870{
9871
9872  ;
9873  return 0;
9874}
9875_ACEOF
9876if ac_fn_c_try_link "$LINENO"; then :
9877  eval $cacheid=yes
9878else
9879  eval $cacheid=no
9880fi
9881rm -f core conftest.err conftest.$ac_objext \
9882    conftest$ac_exeext conftest.$ac_ext
9883fi
9884
9885
9886		CFLAGS="$xorg_testset_save_CFLAGS"
9887
9888		eval supported=\$$cacheid
9889		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9890$as_echo "$supported" >&6; }
9891		if test "$supported" = "yes" ; then
9892			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9893			found="yes"
9894		fi
9895	fi
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911xorg_testset_save_CFLAGS="$CFLAGS"
9912
9913if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9914	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9915	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9916$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9917if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9918  $as_echo_n "(cached) " >&6
9919else
9920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921/* end confdefs.h.  */
9922int i;
9923_ACEOF
9924if ac_fn_c_try_compile "$LINENO"; then :
9925  xorg_cv_cc_flag_unknown_warning_option=yes
9926else
9927  xorg_cv_cc_flag_unknown_warning_option=no
9928fi
9929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9930fi
9931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9932$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9933	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9934	CFLAGS="$xorg_testset_save_CFLAGS"
9935fi
9936
9937if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9938	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9939		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9940	fi
9941	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9942	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9943$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9944if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9945  $as_echo_n "(cached) " >&6
9946else
9947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9948/* end confdefs.h.  */
9949int i;
9950_ACEOF
9951if ac_fn_c_try_compile "$LINENO"; then :
9952  xorg_cv_cc_flag_unused_command_line_argument=yes
9953else
9954  xorg_cv_cc_flag_unused_command_line_argument=no
9955fi
9956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9957fi
9958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9959$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9960	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9961	CFLAGS="$xorg_testset_save_CFLAGS"
9962fi
9963
9964found="no"
9965
9966	if test $found = "no" ; then
9967		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9968			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9969		fi
9970
9971		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9972			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9973		fi
9974
9975		CFLAGS="$CFLAGS -Warray-bounds"
9976
9977		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9978$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9979		cacheid=xorg_cv_cc_flag__Warray_bounds
9980		if eval \${$cacheid+:} false; then :
9981  $as_echo_n "(cached) " >&6
9982else
9983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9984/* end confdefs.h.  */
9985int i;
9986int
9987main ()
9988{
9989
9990  ;
9991  return 0;
9992}
9993_ACEOF
9994if ac_fn_c_try_link "$LINENO"; then :
9995  eval $cacheid=yes
9996else
9997  eval $cacheid=no
9998fi
9999rm -f core conftest.err conftest.$ac_objext \
10000    conftest$ac_exeext conftest.$ac_ext
10001fi
10002
10003
10004		CFLAGS="$xorg_testset_save_CFLAGS"
10005
10006		eval supported=\$$cacheid
10007		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10008$as_echo "$supported" >&6; }
10009		if test "$supported" = "yes" ; then
10010			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10011			found="yes"
10012		fi
10013	fi
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029xorg_testset_save_CFLAGS="$CFLAGS"
10030
10031if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10032	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10033	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10034$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10035if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10036  $as_echo_n "(cached) " >&6
10037else
10038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039/* end confdefs.h.  */
10040int i;
10041_ACEOF
10042if ac_fn_c_try_compile "$LINENO"; then :
10043  xorg_cv_cc_flag_unknown_warning_option=yes
10044else
10045  xorg_cv_cc_flag_unknown_warning_option=no
10046fi
10047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10048fi
10049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10050$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10051	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10052	CFLAGS="$xorg_testset_save_CFLAGS"
10053fi
10054
10055if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10056	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10057		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10058	fi
10059	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10060	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10061$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10062if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10063  $as_echo_n "(cached) " >&6
10064else
10065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10066/* end confdefs.h.  */
10067int i;
10068_ACEOF
10069if ac_fn_c_try_compile "$LINENO"; then :
10070  xorg_cv_cc_flag_unused_command_line_argument=yes
10071else
10072  xorg_cv_cc_flag_unused_command_line_argument=no
10073fi
10074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10075fi
10076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10077$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10078	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10079	CFLAGS="$xorg_testset_save_CFLAGS"
10080fi
10081
10082found="no"
10083
10084	if test $found = "no" ; then
10085		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10086			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10087		fi
10088
10089		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10090			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10091		fi
10092
10093		CFLAGS="$CFLAGS -Wwrite-strings"
10094
10095		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10096$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
10097		cacheid=xorg_cv_cc_flag__Wwrite_strings
10098		if eval \${$cacheid+:} false; then :
10099  $as_echo_n "(cached) " >&6
10100else
10101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10102/* end confdefs.h.  */
10103int i;
10104int
10105main ()
10106{
10107
10108  ;
10109  return 0;
10110}
10111_ACEOF
10112if ac_fn_c_try_link "$LINENO"; then :
10113  eval $cacheid=yes
10114else
10115  eval $cacheid=no
10116fi
10117rm -f core conftest.err conftest.$ac_objext \
10118    conftest$ac_exeext conftest.$ac_ext
10119fi
10120
10121
10122		CFLAGS="$xorg_testset_save_CFLAGS"
10123
10124		eval supported=\$$cacheid
10125		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10126$as_echo "$supported" >&6; }
10127		if test "$supported" = "yes" ; then
10128			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10129			found="yes"
10130		fi
10131	fi
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147xorg_testset_save_CFLAGS="$CFLAGS"
10148
10149if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10150	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10151	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10152$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10153if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10154  $as_echo_n "(cached) " >&6
10155else
10156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10157/* end confdefs.h.  */
10158int i;
10159_ACEOF
10160if ac_fn_c_try_compile "$LINENO"; then :
10161  xorg_cv_cc_flag_unknown_warning_option=yes
10162else
10163  xorg_cv_cc_flag_unknown_warning_option=no
10164fi
10165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10166fi
10167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10168$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10169	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10170	CFLAGS="$xorg_testset_save_CFLAGS"
10171fi
10172
10173if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10174	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10175		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10176	fi
10177	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10178	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10179$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10180if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10181  $as_echo_n "(cached) " >&6
10182else
10183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184/* end confdefs.h.  */
10185int i;
10186_ACEOF
10187if ac_fn_c_try_compile "$LINENO"; then :
10188  xorg_cv_cc_flag_unused_command_line_argument=yes
10189else
10190  xorg_cv_cc_flag_unused_command_line_argument=no
10191fi
10192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10193fi
10194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10195$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10196	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10197	CFLAGS="$xorg_testset_save_CFLAGS"
10198fi
10199
10200found="no"
10201
10202	if test $found = "no" ; then
10203		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10204			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10205		fi
10206
10207		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10208			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10209		fi
10210
10211		CFLAGS="$CFLAGS -Waddress"
10212
10213		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10214$as_echo_n "checking if $CC supports -Waddress... " >&6; }
10215		cacheid=xorg_cv_cc_flag__Waddress
10216		if eval \${$cacheid+:} false; then :
10217  $as_echo_n "(cached) " >&6
10218else
10219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10220/* end confdefs.h.  */
10221int i;
10222int
10223main ()
10224{
10225
10226  ;
10227  return 0;
10228}
10229_ACEOF
10230if ac_fn_c_try_link "$LINENO"; then :
10231  eval $cacheid=yes
10232else
10233  eval $cacheid=no
10234fi
10235rm -f core conftest.err conftest.$ac_objext \
10236    conftest$ac_exeext conftest.$ac_ext
10237fi
10238
10239
10240		CFLAGS="$xorg_testset_save_CFLAGS"
10241
10242		eval supported=\$$cacheid
10243		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10244$as_echo "$supported" >&6; }
10245		if test "$supported" = "yes" ; then
10246			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10247			found="yes"
10248		fi
10249	fi
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265xorg_testset_save_CFLAGS="$CFLAGS"
10266
10267if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10268	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10269	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10270$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10271if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10272  $as_echo_n "(cached) " >&6
10273else
10274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10275/* end confdefs.h.  */
10276int i;
10277_ACEOF
10278if ac_fn_c_try_compile "$LINENO"; then :
10279  xorg_cv_cc_flag_unknown_warning_option=yes
10280else
10281  xorg_cv_cc_flag_unknown_warning_option=no
10282fi
10283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10284fi
10285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10286$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10287	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10288	CFLAGS="$xorg_testset_save_CFLAGS"
10289fi
10290
10291if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10292	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10293		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10294	fi
10295	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10296	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10297$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10298if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10299  $as_echo_n "(cached) " >&6
10300else
10301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10302/* end confdefs.h.  */
10303int i;
10304_ACEOF
10305if ac_fn_c_try_compile "$LINENO"; then :
10306  xorg_cv_cc_flag_unused_command_line_argument=yes
10307else
10308  xorg_cv_cc_flag_unused_command_line_argument=no
10309fi
10310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10311fi
10312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10313$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10314	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10315	CFLAGS="$xorg_testset_save_CFLAGS"
10316fi
10317
10318found="no"
10319
10320	if test $found = "no" ; then
10321		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10322			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10323		fi
10324
10325		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10326			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10327		fi
10328
10329		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10330
10331		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10332$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10333		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10334		if eval \${$cacheid+:} false; then :
10335  $as_echo_n "(cached) " >&6
10336else
10337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10338/* end confdefs.h.  */
10339int i;
10340int
10341main ()
10342{
10343
10344  ;
10345  return 0;
10346}
10347_ACEOF
10348if ac_fn_c_try_link "$LINENO"; then :
10349  eval $cacheid=yes
10350else
10351  eval $cacheid=no
10352fi
10353rm -f core conftest.err conftest.$ac_objext \
10354    conftest$ac_exeext conftest.$ac_ext
10355fi
10356
10357
10358		CFLAGS="$xorg_testset_save_CFLAGS"
10359
10360		eval supported=\$$cacheid
10361		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10362$as_echo "$supported" >&6; }
10363		if test "$supported" = "yes" ; then
10364			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10365			found="yes"
10366		fi
10367	fi
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383xorg_testset_save_CFLAGS="$CFLAGS"
10384
10385if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10386	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10387	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10388$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10389if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10390  $as_echo_n "(cached) " >&6
10391else
10392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10393/* end confdefs.h.  */
10394int i;
10395_ACEOF
10396if ac_fn_c_try_compile "$LINENO"; then :
10397  xorg_cv_cc_flag_unknown_warning_option=yes
10398else
10399  xorg_cv_cc_flag_unknown_warning_option=no
10400fi
10401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10402fi
10403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10404$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10405	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10406	CFLAGS="$xorg_testset_save_CFLAGS"
10407fi
10408
10409if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10410	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10411		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10412	fi
10413	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10414	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10415$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10416if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10417  $as_echo_n "(cached) " >&6
10418else
10419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10420/* end confdefs.h.  */
10421int i;
10422_ACEOF
10423if ac_fn_c_try_compile "$LINENO"; then :
10424  xorg_cv_cc_flag_unused_command_line_argument=yes
10425else
10426  xorg_cv_cc_flag_unused_command_line_argument=no
10427fi
10428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10429fi
10430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10431$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10432	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10433	CFLAGS="$xorg_testset_save_CFLAGS"
10434fi
10435
10436found="no"
10437
10438	if test $found = "no" ; then
10439		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10440			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10441		fi
10442
10443		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10444			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10445		fi
10446
10447		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10448
10449		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10450$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10451		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10452		if eval \${$cacheid+:} false; then :
10453  $as_echo_n "(cached) " >&6
10454else
10455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10456/* end confdefs.h.  */
10457int i;
10458int
10459main ()
10460{
10461
10462  ;
10463  return 0;
10464}
10465_ACEOF
10466if ac_fn_c_try_link "$LINENO"; then :
10467  eval $cacheid=yes
10468else
10469  eval $cacheid=no
10470fi
10471rm -f core conftest.err conftest.$ac_objext \
10472    conftest$ac_exeext conftest.$ac_ext
10473fi
10474
10475
10476		CFLAGS="$xorg_testset_save_CFLAGS"
10477
10478		eval supported=\$$cacheid
10479		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10480$as_echo "$supported" >&6; }
10481		if test "$supported" = "yes" ; then
10482			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10483			found="yes"
10484		fi
10485	fi
10486
10487
10488fi
10489
10490
10491
10492
10493
10494
10495
10496		CWARNFLAGS="$BASE_CFLAGS"
10497		if  test "x$GCC" = xyes ; then
10498		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10499		fi
10500
10501
10502
10503
10504
10505
10506
10507
10508# Check whether --enable-strict-compilation was given.
10509if test "${enable_strict_compilation+set}" = set; then :
10510  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10511else
10512  STRICT_COMPILE=no
10513fi
10514
10515
10516
10517
10518
10519
10520STRICT_CFLAGS=""
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534xorg_testset_save_CFLAGS="$CFLAGS"
10535
10536if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10537	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10538	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10539$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10540if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10541  $as_echo_n "(cached) " >&6
10542else
10543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10544/* end confdefs.h.  */
10545int i;
10546_ACEOF
10547if ac_fn_c_try_compile "$LINENO"; then :
10548  xorg_cv_cc_flag_unknown_warning_option=yes
10549else
10550  xorg_cv_cc_flag_unknown_warning_option=no
10551fi
10552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10553fi
10554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10555$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10556	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10557	CFLAGS="$xorg_testset_save_CFLAGS"
10558fi
10559
10560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10561	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10562		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10563	fi
10564	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10565	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10566$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10567if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10568  $as_echo_n "(cached) " >&6
10569else
10570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10571/* end confdefs.h.  */
10572int i;
10573_ACEOF
10574if ac_fn_c_try_compile "$LINENO"; then :
10575  xorg_cv_cc_flag_unused_command_line_argument=yes
10576else
10577  xorg_cv_cc_flag_unused_command_line_argument=no
10578fi
10579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10580fi
10581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10582$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10583	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10584	CFLAGS="$xorg_testset_save_CFLAGS"
10585fi
10586
10587found="no"
10588
10589	if test $found = "no" ; then
10590		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10591			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10592		fi
10593
10594		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10595			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10596		fi
10597
10598		CFLAGS="$CFLAGS -pedantic"
10599
10600		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10601$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10602		cacheid=xorg_cv_cc_flag__pedantic
10603		if eval \${$cacheid+:} false; then :
10604  $as_echo_n "(cached) " >&6
10605else
10606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607/* end confdefs.h.  */
10608int i;
10609int
10610main ()
10611{
10612
10613  ;
10614  return 0;
10615}
10616_ACEOF
10617if ac_fn_c_try_link "$LINENO"; then :
10618  eval $cacheid=yes
10619else
10620  eval $cacheid=no
10621fi
10622rm -f core conftest.err conftest.$ac_objext \
10623    conftest$ac_exeext conftest.$ac_ext
10624fi
10625
10626
10627		CFLAGS="$xorg_testset_save_CFLAGS"
10628
10629		eval supported=\$$cacheid
10630		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10631$as_echo "$supported" >&6; }
10632		if test "$supported" = "yes" ; then
10633			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10634			found="yes"
10635		fi
10636	fi
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652xorg_testset_save_CFLAGS="$CFLAGS"
10653
10654if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10655	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10656	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10657$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10658if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10659  $as_echo_n "(cached) " >&6
10660else
10661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10662/* end confdefs.h.  */
10663int i;
10664_ACEOF
10665if ac_fn_c_try_compile "$LINENO"; then :
10666  xorg_cv_cc_flag_unknown_warning_option=yes
10667else
10668  xorg_cv_cc_flag_unknown_warning_option=no
10669fi
10670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10671fi
10672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10673$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10674	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10675	CFLAGS="$xorg_testset_save_CFLAGS"
10676fi
10677
10678if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10679	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10680		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10681	fi
10682	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10683	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10684$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10685if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10686  $as_echo_n "(cached) " >&6
10687else
10688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10689/* end confdefs.h.  */
10690int i;
10691_ACEOF
10692if ac_fn_c_try_compile "$LINENO"; then :
10693  xorg_cv_cc_flag_unused_command_line_argument=yes
10694else
10695  xorg_cv_cc_flag_unused_command_line_argument=no
10696fi
10697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10698fi
10699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10700$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10701	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10702	CFLAGS="$xorg_testset_save_CFLAGS"
10703fi
10704
10705found="no"
10706
10707	if test $found = "no" ; then
10708		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10709			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10710		fi
10711
10712		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10713			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10714		fi
10715
10716		CFLAGS="$CFLAGS -Werror"
10717
10718		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10719$as_echo_n "checking if $CC supports -Werror... " >&6; }
10720		cacheid=xorg_cv_cc_flag__Werror
10721		if eval \${$cacheid+:} false; then :
10722  $as_echo_n "(cached) " >&6
10723else
10724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10725/* end confdefs.h.  */
10726int i;
10727int
10728main ()
10729{
10730
10731  ;
10732  return 0;
10733}
10734_ACEOF
10735if ac_fn_c_try_link "$LINENO"; then :
10736  eval $cacheid=yes
10737else
10738  eval $cacheid=no
10739fi
10740rm -f core conftest.err conftest.$ac_objext \
10741    conftest$ac_exeext conftest.$ac_ext
10742fi
10743
10744
10745		CFLAGS="$xorg_testset_save_CFLAGS"
10746
10747		eval supported=\$$cacheid
10748		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10749$as_echo "$supported" >&6; }
10750		if test "$supported" = "yes" ; then
10751			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10752			found="yes"
10753		fi
10754	fi
10755
10756	if test $found = "no" ; then
10757		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10758			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10759		fi
10760
10761		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10762			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10763		fi
10764
10765		CFLAGS="$CFLAGS -errwarn"
10766
10767		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10768$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10769		cacheid=xorg_cv_cc_flag__errwarn
10770		if eval \${$cacheid+:} false; then :
10771  $as_echo_n "(cached) " >&6
10772else
10773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10774/* end confdefs.h.  */
10775int i;
10776int
10777main ()
10778{
10779
10780  ;
10781  return 0;
10782}
10783_ACEOF
10784if ac_fn_c_try_link "$LINENO"; then :
10785  eval $cacheid=yes
10786else
10787  eval $cacheid=no
10788fi
10789rm -f core conftest.err conftest.$ac_objext \
10790    conftest$ac_exeext conftest.$ac_ext
10791fi
10792
10793
10794		CFLAGS="$xorg_testset_save_CFLAGS"
10795
10796		eval supported=\$$cacheid
10797		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10798$as_echo "$supported" >&6; }
10799		if test "$supported" = "yes" ; then
10800			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10801			found="yes"
10802		fi
10803	fi
10804
10805
10806
10807# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10808# activate it with -Werror, so we add it here explicitly.
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822xorg_testset_save_CFLAGS="$CFLAGS"
10823
10824if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10825	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10826	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10827$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10828if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10829  $as_echo_n "(cached) " >&6
10830else
10831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10832/* end confdefs.h.  */
10833int i;
10834_ACEOF
10835if ac_fn_c_try_compile "$LINENO"; then :
10836  xorg_cv_cc_flag_unknown_warning_option=yes
10837else
10838  xorg_cv_cc_flag_unknown_warning_option=no
10839fi
10840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10841fi
10842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10843$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10844	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10845	CFLAGS="$xorg_testset_save_CFLAGS"
10846fi
10847
10848if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10849	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10850		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10851	fi
10852	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10853	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10854$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10855if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10856  $as_echo_n "(cached) " >&6
10857else
10858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10859/* end confdefs.h.  */
10860int i;
10861_ACEOF
10862if ac_fn_c_try_compile "$LINENO"; then :
10863  xorg_cv_cc_flag_unused_command_line_argument=yes
10864else
10865  xorg_cv_cc_flag_unused_command_line_argument=no
10866fi
10867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10868fi
10869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10870$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10871	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10872	CFLAGS="$xorg_testset_save_CFLAGS"
10873fi
10874
10875found="no"
10876
10877	if test $found = "no" ; then
10878		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10879			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10880		fi
10881
10882		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10883			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10884		fi
10885
10886		CFLAGS="$CFLAGS -Werror=attributes"
10887
10888		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10889$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10890		cacheid=xorg_cv_cc_flag__Werror_attributes
10891		if eval \${$cacheid+:} false; then :
10892  $as_echo_n "(cached) " >&6
10893else
10894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895/* end confdefs.h.  */
10896int i;
10897int
10898main ()
10899{
10900
10901  ;
10902  return 0;
10903}
10904_ACEOF
10905if ac_fn_c_try_link "$LINENO"; then :
10906  eval $cacheid=yes
10907else
10908  eval $cacheid=no
10909fi
10910rm -f core conftest.err conftest.$ac_objext \
10911    conftest$ac_exeext conftest.$ac_ext
10912fi
10913
10914
10915		CFLAGS="$xorg_testset_save_CFLAGS"
10916
10917		eval supported=\$$cacheid
10918		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10919$as_echo "$supported" >&6; }
10920		if test "$supported" = "yes" ; then
10921			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10922			found="yes"
10923		fi
10924	fi
10925
10926
10927
10928if test "x$STRICT_COMPILE" = "xyes"; then
10929    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10930    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10931fi
10932
10933
10934
10935
10936
10937
10938cat >>confdefs.h <<_ACEOF
10939#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10940_ACEOF
10941
10942	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10943	if test "x$PVM" = "x"; then
10944		PVM="0"
10945	fi
10946
10947cat >>confdefs.h <<_ACEOF
10948#define PACKAGE_VERSION_MINOR $PVM
10949_ACEOF
10950
10951	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10952	if test "x$PVP" = "x"; then
10953		PVP="0"
10954	fi
10955
10956cat >>confdefs.h <<_ACEOF
10957#define PACKAGE_VERSION_PATCHLEVEL $PVP
10958_ACEOF
10959
10960
10961
10962CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10963mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10964|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10965echo 'git directory not found: installing possibly empty changelog.' >&2)"
10966
10967
10968
10969
10970macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10971INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10972mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10973|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10974echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10975
10976
10977
10978
10979
10980
10981if test x$APP_MAN_SUFFIX = x    ; then
10982    APP_MAN_SUFFIX=1
10983fi
10984if test x$APP_MAN_DIR = x    ; then
10985    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10986fi
10987
10988if test x$LIB_MAN_SUFFIX = x    ; then
10989    LIB_MAN_SUFFIX=3
10990fi
10991if test x$LIB_MAN_DIR = x    ; then
10992    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10993fi
10994
10995if test x$FILE_MAN_SUFFIX = x    ; then
10996    case $host_os in
10997	solaris*)	FILE_MAN_SUFFIX=4  ;;
10998	*)		FILE_MAN_SUFFIX=5  ;;
10999    esac
11000fi
11001if test x$FILE_MAN_DIR = x    ; then
11002    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11003fi
11004
11005if test x$MISC_MAN_SUFFIX = x    ; then
11006    case $host_os in
11007	solaris*)	MISC_MAN_SUFFIX=5  ;;
11008	*)		MISC_MAN_SUFFIX=7  ;;
11009    esac
11010fi
11011if test x$MISC_MAN_DIR = x    ; then
11012    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11013fi
11014
11015if test x$DRIVER_MAN_SUFFIX = x    ; then
11016    case $host_os in
11017	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
11018	*)		DRIVER_MAN_SUFFIX=4  ;;
11019    esac
11020fi
11021if test x$DRIVER_MAN_DIR = x    ; then
11022    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11023fi
11024
11025if test x$ADMIN_MAN_SUFFIX = x    ; then
11026    case $host_os in
11027	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
11028	*)		ADMIN_MAN_SUFFIX=8  ;;
11029    esac
11030fi
11031if test x$ADMIN_MAN_DIR = x    ; then
11032    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11033fi
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049XORG_MAN_PAGE="X Version 11"
11050
11051MAN_SUBSTS="\
11052	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11053	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11054	-e 's|__xservername__|Xorg|g' \
11055	-e 's|__xconfigfile__|xorg.conf|g' \
11056	-e 's|__projectroot__|\$(prefix)|g' \
11057	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11058	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11059	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11060	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11061	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11062	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11063	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11064
11065
11066
11067# Check whether --enable-silent-rules was given.
11068if test "${enable_silent_rules+set}" = set; then :
11069  enableval=$enable_silent_rules;
11070fi
11071
11072case $enable_silent_rules in # (((
11073  yes) AM_DEFAULT_VERBOSITY=0;;
11074   no) AM_DEFAULT_VERBOSITY=1;;
11075    *) AM_DEFAULT_VERBOSITY=0;;
11076esac
11077am_make=${MAKE-make}
11078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11079$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
11080if ${am_cv_make_support_nested_variables+:} false; then :
11081  $as_echo_n "(cached) " >&6
11082else
11083  if $as_echo 'TRUE=$(BAR$(V))
11084BAR0=false
11085BAR1=true
11086V=1
11087am__doit:
11088	@$(TRUE)
11089.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11090  am_cv_make_support_nested_variables=yes
11091else
11092  am_cv_make_support_nested_variables=no
11093fi
11094fi
11095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11096$as_echo "$am_cv_make_support_nested_variables" >&6; }
11097if test $am_cv_make_support_nested_variables = yes; then
11098    AM_V='$(V)'
11099  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11100else
11101  AM_V=$AM_DEFAULT_VERBOSITY
11102  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11103fi
11104AM_BACKSLASH='\'
11105
11106
11107
11108# Initialize libtool
11109# Check whether --enable-static was given.
11110if test "${enable_static+set}" = set; then :
11111  enableval=$enable_static; p=${PACKAGE-default}
11112    case $enableval in
11113    yes) enable_static=yes ;;
11114    no) enable_static=no ;;
11115    *)
11116     enable_static=no
11117      # Look at the argument we got.  We use all the common list separators.
11118      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11119      for pkg in $enableval; do
11120	IFS=$lt_save_ifs
11121	if test "X$pkg" = "X$p"; then
11122	  enable_static=yes
11123	fi
11124      done
11125      IFS=$lt_save_ifs
11126      ;;
11127    esac
11128else
11129  enable_static=no
11130fi
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140case `pwd` in
11141  *\ * | *\	*)
11142    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11143$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11144esac
11145
11146
11147
11148macro_version='2.4.6.40-6ca5'
11149macro_revision='2.4.6.40'
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163ltmain=$ac_aux_dir/ltmain.sh
11164
11165# Backslashify metacharacters that are still active within
11166# double-quoted strings.
11167sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11168
11169# Same as above, but do not quote variable references.
11170double_quote_subst='s/\(["`\\]\)/\\\1/g'
11171
11172# Sed substitution to delay expansion of an escaped shell variable in a
11173# double_quote_subst'ed string.
11174delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11175
11176# Sed substitution to delay expansion of an escaped single quote.
11177delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11178
11179# Sed substitution to avoid accidental globbing in evaled expressions
11180no_glob_subst='s/\*/\\\*/g'
11181
11182ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11183ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11184ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11185
11186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11187$as_echo_n "checking how to print strings... " >&6; }
11188# Test print first, because it will be a builtin if present.
11189if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11190   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11191  ECHO='print -r --'
11192elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11193  ECHO='printf %s\n'
11194else
11195  # Use this function as a fallback that always works.
11196  func_fallback_echo ()
11197  {
11198    eval 'cat <<_LTECHO_EOF
11199$1
11200_LTECHO_EOF'
11201  }
11202  ECHO='func_fallback_echo'
11203fi
11204
11205# func_echo_all arg...
11206# Invoke $ECHO with all args, space-separated.
11207func_echo_all ()
11208{
11209    $ECHO ""
11210}
11211
11212case $ECHO in
11213  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11214$as_echo "printf" >&6; } ;;
11215  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11216$as_echo "print -r" >&6; } ;;
11217  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11218$as_echo "cat" >&6; } ;;
11219esac
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11235$as_echo_n "checking for a sed that does not truncate output... " >&6; }
11236if ${ac_cv_path_SED+:} false; then :
11237  $as_echo_n "(cached) " >&6
11238else
11239            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11240     for ac_i in 1 2 3 4 5 6 7; do
11241       ac_script="$ac_script$as_nl$ac_script"
11242     done
11243     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11244     { ac_script=; unset ac_script;}
11245     if test -z "$SED"; then
11246  ac_path_SED_found=false
11247  # Loop through the user's path and test for each of PROGNAME-LIST
11248  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11249for as_dir in $PATH
11250do
11251  IFS=$as_save_IFS
11252  test -z "$as_dir" && as_dir=.
11253    for ac_prog in sed gsed; do
11254    for ac_exec_ext in '' $ac_executable_extensions; do
11255      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11256      as_fn_executable_p "$ac_path_SED" || continue
11257# Check for GNU ac_path_SED and select it if it is found.
11258  # Check for GNU $ac_path_SED
11259case `"$ac_path_SED" --version 2>&1` in
11260*GNU*)
11261  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11262*)
11263  ac_count=0
11264  $as_echo_n 0123456789 >"conftest.in"
11265  while :
11266  do
11267    cat "conftest.in" "conftest.in" >"conftest.tmp"
11268    mv "conftest.tmp" "conftest.in"
11269    cp "conftest.in" "conftest.nl"
11270    $as_echo '' >> "conftest.nl"
11271    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11272    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11273    as_fn_arith $ac_count + 1 && ac_count=$as_val
11274    if test $ac_count -gt ${ac_path_SED_max-0}; then
11275      # Best one so far, save it but keep looking for a better one
11276      ac_cv_path_SED="$ac_path_SED"
11277      ac_path_SED_max=$ac_count
11278    fi
11279    # 10*(2^10) chars as input seems more than enough
11280    test $ac_count -gt 10 && break
11281  done
11282  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11283esac
11284
11285      $ac_path_SED_found && break 3
11286    done
11287  done
11288  done
11289IFS=$as_save_IFS
11290  if test -z "$ac_cv_path_SED"; then
11291    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11292  fi
11293else
11294  ac_cv_path_SED=$SED
11295fi
11296
11297fi
11298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11299$as_echo "$ac_cv_path_SED" >&6; }
11300 SED="$ac_cv_path_SED"
11301  rm -f conftest.sed
11302
11303test -z "$SED" && SED=sed
11304Xsed="$SED -e 1s/^X//"
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11317$as_echo_n "checking for fgrep... " >&6; }
11318if ${ac_cv_path_FGREP+:} false; then :
11319  $as_echo_n "(cached) " >&6
11320else
11321  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11322   then ac_cv_path_FGREP="$GREP -F"
11323   else
11324     if test -z "$FGREP"; then
11325  ac_path_FGREP_found=false
11326  # Loop through the user's path and test for each of PROGNAME-LIST
11327  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11328for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11329do
11330  IFS=$as_save_IFS
11331  test -z "$as_dir" && as_dir=.
11332    for ac_prog in fgrep; do
11333    for ac_exec_ext in '' $ac_executable_extensions; do
11334      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11335      as_fn_executable_p "$ac_path_FGREP" || continue
11336# Check for GNU ac_path_FGREP and select it if it is found.
11337  # Check for GNU $ac_path_FGREP
11338case `"$ac_path_FGREP" --version 2>&1` in
11339*GNU*)
11340  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11341*)
11342  ac_count=0
11343  $as_echo_n 0123456789 >"conftest.in"
11344  while :
11345  do
11346    cat "conftest.in" "conftest.in" >"conftest.tmp"
11347    mv "conftest.tmp" "conftest.in"
11348    cp "conftest.in" "conftest.nl"
11349    $as_echo 'FGREP' >> "conftest.nl"
11350    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11351    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11352    as_fn_arith $ac_count + 1 && ac_count=$as_val
11353    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11354      # Best one so far, save it but keep looking for a better one
11355      ac_cv_path_FGREP="$ac_path_FGREP"
11356      ac_path_FGREP_max=$ac_count
11357    fi
11358    # 10*(2^10) chars as input seems more than enough
11359    test $ac_count -gt 10 && break
11360  done
11361  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11362esac
11363
11364      $ac_path_FGREP_found && break 3
11365    done
11366  done
11367  done
11368IFS=$as_save_IFS
11369  if test -z "$ac_cv_path_FGREP"; then
11370    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11371  fi
11372else
11373  ac_cv_path_FGREP=$FGREP
11374fi
11375
11376   fi
11377fi
11378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11379$as_echo "$ac_cv_path_FGREP" >&6; }
11380 FGREP="$ac_cv_path_FGREP"
11381
11382
11383test -z "$GREP" && GREP=grep
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403# Check whether --with-gnu-ld was given.
11404if test "${with_gnu_ld+set}" = set; then :
11405  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11406else
11407  with_gnu_ld=no
11408fi
11409
11410ac_prog=ld
11411if test yes = "$GCC"; then
11412  # Check if gcc -print-prog-name=ld gives a path.
11413  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11414$as_echo_n "checking for ld used by $CC... " >&6; }
11415  case $host in
11416  *-*-mingw*)
11417    # gcc leaves a trailing carriage return, which upsets mingw
11418    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11419  *)
11420    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11421  esac
11422  case $ac_prog in
11423    # Accept absolute paths.
11424    [\\/]* | ?:[\\/]*)
11425      re_direlt='/[^/][^/]*/\.\./'
11426      # Canonicalize the pathname of ld
11427      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11428      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11429	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11430      done
11431      test -z "$LD" && LD=$ac_prog
11432      ;;
11433  "")
11434    # If it fails, then pretend we aren't using GCC.
11435    ac_prog=ld
11436    ;;
11437  *)
11438    # If it is relative, then search for the first ld in PATH.
11439    with_gnu_ld=unknown
11440    ;;
11441  esac
11442elif test yes = "$with_gnu_ld"; then
11443  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11444$as_echo_n "checking for GNU ld... " >&6; }
11445else
11446  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11447$as_echo_n "checking for non-GNU ld... " >&6; }
11448fi
11449if ${lt_cv_path_LD+:} false; then :
11450  $as_echo_n "(cached) " >&6
11451else
11452  if test -z "$LD"; then
11453  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11454  for ac_dir in $PATH; do
11455    IFS=$lt_save_ifs
11456    test -z "$ac_dir" && ac_dir=.
11457    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11458      lt_cv_path_LD=$ac_dir/$ac_prog
11459      # Check to see if the program is GNU ld.  I'd rather use --version,
11460      # but apparently some variants of GNU ld only accept -v.
11461      # Break only if it was the GNU/non-GNU ld that we prefer.
11462      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11463      *GNU* | *'with BFD'*)
11464	test no != "$with_gnu_ld" && break
11465	;;
11466      *)
11467	test yes != "$with_gnu_ld" && break
11468	;;
11469      esac
11470    fi
11471  done
11472  IFS=$lt_save_ifs
11473else
11474  lt_cv_path_LD=$LD # Let the user override the test with a path.
11475fi
11476fi
11477
11478LD=$lt_cv_path_LD
11479if test -n "$LD"; then
11480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11481$as_echo "$LD" >&6; }
11482else
11483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11484$as_echo "no" >&6; }
11485fi
11486test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11488$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11489if ${lt_cv_prog_gnu_ld+:} false; then :
11490  $as_echo_n "(cached) " >&6
11491else
11492  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11493case `$LD -v 2>&1 </dev/null` in
11494*GNU* | *'with BFD'*)
11495  lt_cv_prog_gnu_ld=yes
11496  ;;
11497*)
11498  lt_cv_prog_gnu_ld=no
11499  ;;
11500esac
11501fi
11502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11503$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11504with_gnu_ld=$lt_cv_prog_gnu_ld
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11515$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11516if ${lt_cv_path_NM+:} false; then :
11517  $as_echo_n "(cached) " >&6
11518else
11519  if test -n "$NM"; then
11520  # Let the user override the test.
11521  lt_cv_path_NM=$NM
11522else
11523  lt_nm_to_check=${ac_tool_prefix}nm
11524  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11525    lt_nm_to_check="$lt_nm_to_check nm"
11526  fi
11527  for lt_tmp_nm in $lt_nm_to_check; do
11528    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11529    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11530      IFS=$lt_save_ifs
11531      test -z "$ac_dir" && ac_dir=.
11532      tmp_nm=$ac_dir/$lt_tmp_nm
11533      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11534	# Check to see if the nm accepts a BSD-compat flag.
11535	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11536	#   nm: unknown option "B" ignored
11537	# Tru64's nm complains that /dev/null is an invalid object file
11538	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11539	case $build_os in
11540	mingw*) lt_bad_file=conftest.nm/nofile ;;
11541	*) lt_bad_file=/dev/null ;;
11542	esac
11543	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11544	*$lt_bad_file* | *'Invalid file or object type'*)
11545	  lt_cv_path_NM="$tmp_nm -B"
11546	  break 2
11547	  ;;
11548	*)
11549	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11550	  */dev/null*)
11551	    lt_cv_path_NM="$tmp_nm -p"
11552	    break 2
11553	    ;;
11554	  *)
11555	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11556	    continue # so that we can try to find one that supports BSD flags
11557	    ;;
11558	  esac
11559	  ;;
11560	esac
11561      fi
11562    done
11563    IFS=$lt_save_ifs
11564  done
11565  : ${lt_cv_path_NM=no}
11566fi
11567fi
11568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11569$as_echo "$lt_cv_path_NM" >&6; }
11570if test no != "$lt_cv_path_NM"; then
11571  NM=$lt_cv_path_NM
11572else
11573  # Didn't find any BSD compatible name lister, look for dumpbin.
11574  if test -n "$DUMPBIN"; then :
11575    # Let the user override the test.
11576  else
11577    if test -n "$ac_tool_prefix"; then
11578  for ac_prog in dumpbin "link -dump"
11579  do
11580    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11581set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11583$as_echo_n "checking for $ac_word... " >&6; }
11584if ${ac_cv_prog_DUMPBIN+:} false; then :
11585  $as_echo_n "(cached) " >&6
11586else
11587  if test -n "$DUMPBIN"; then
11588  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11589else
11590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11591for as_dir in $PATH
11592do
11593  IFS=$as_save_IFS
11594  test -z "$as_dir" && as_dir=.
11595    for ac_exec_ext in '' $ac_executable_extensions; do
11596  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11597    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11598    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11599    break 2
11600  fi
11601done
11602  done
11603IFS=$as_save_IFS
11604
11605fi
11606fi
11607DUMPBIN=$ac_cv_prog_DUMPBIN
11608if test -n "$DUMPBIN"; then
11609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11610$as_echo "$DUMPBIN" >&6; }
11611else
11612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11613$as_echo "no" >&6; }
11614fi
11615
11616
11617    test -n "$DUMPBIN" && break
11618  done
11619fi
11620if test -z "$DUMPBIN"; then
11621  ac_ct_DUMPBIN=$DUMPBIN
11622  for ac_prog in dumpbin "link -dump"
11623do
11624  # Extract the first word of "$ac_prog", so it can be a program name with args.
11625set dummy $ac_prog; ac_word=$2
11626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11627$as_echo_n "checking for $ac_word... " >&6; }
11628if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11629  $as_echo_n "(cached) " >&6
11630else
11631  if test -n "$ac_ct_DUMPBIN"; then
11632  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11633else
11634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11635for as_dir in $PATH
11636do
11637  IFS=$as_save_IFS
11638  test -z "$as_dir" && as_dir=.
11639    for ac_exec_ext in '' $ac_executable_extensions; do
11640  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11641    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11642    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11643    break 2
11644  fi
11645done
11646  done
11647IFS=$as_save_IFS
11648
11649fi
11650fi
11651ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11652if test -n "$ac_ct_DUMPBIN"; then
11653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11654$as_echo "$ac_ct_DUMPBIN" >&6; }
11655else
11656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11657$as_echo "no" >&6; }
11658fi
11659
11660
11661  test -n "$ac_ct_DUMPBIN" && break
11662done
11663
11664  if test "x$ac_ct_DUMPBIN" = x; then
11665    DUMPBIN=":"
11666  else
11667    case $cross_compiling:$ac_tool_warned in
11668yes:)
11669{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11670$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11671ac_tool_warned=yes ;;
11672esac
11673    DUMPBIN=$ac_ct_DUMPBIN
11674  fi
11675fi
11676
11677    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11678    *COFF*)
11679      DUMPBIN="$DUMPBIN -symbols -headers"
11680      ;;
11681    *)
11682      DUMPBIN=:
11683      ;;
11684    esac
11685  fi
11686
11687  if test : != "$DUMPBIN"; then
11688    NM=$DUMPBIN
11689  fi
11690fi
11691test -z "$NM" && NM=nm
11692
11693
11694
11695
11696
11697
11698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11699$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11700if ${lt_cv_nm_interface+:} false; then :
11701  $as_echo_n "(cached) " >&6
11702else
11703  lt_cv_nm_interface="BSD nm"
11704  echo "int some_variable = 0;" > conftest.$ac_ext
11705  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11706  (eval "$ac_compile" 2>conftest.err)
11707  cat conftest.err >&5
11708  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11709  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11710  cat conftest.err >&5
11711  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11712  cat conftest.out >&5
11713  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11714    lt_cv_nm_interface="MS dumpbin"
11715  fi
11716  rm -f conftest*
11717fi
11718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11719$as_echo "$lt_cv_nm_interface" >&6; }
11720
11721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11722$as_echo_n "checking whether ln -s works... " >&6; }
11723LN_S=$as_ln_s
11724if test "$LN_S" = "ln -s"; then
11725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11726$as_echo "yes" >&6; }
11727else
11728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11729$as_echo "no, using $LN_S" >&6; }
11730fi
11731
11732# find the maximum length of command line arguments
11733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11734$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11735if ${lt_cv_sys_max_cmd_len+:} false; then :
11736  $as_echo_n "(cached) " >&6
11737else
11738    i=0
11739  teststring=ABCD
11740
11741  case $build_os in
11742  msdosdjgpp*)
11743    # On DJGPP, this test can blow up pretty badly due to problems in libc
11744    # (any single argument exceeding 2000 bytes causes a buffer overrun
11745    # during glob expansion).  Even if it were fixed, the result of this
11746    # check would be larger than it should be.
11747    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11748    ;;
11749
11750  gnu*)
11751    # Under GNU Hurd, this test is not required because there is
11752    # no limit to the length of command line arguments.
11753    # Libtool will interpret -1 as no limit whatsoever
11754    lt_cv_sys_max_cmd_len=-1;
11755    ;;
11756
11757  cygwin* | mingw* | cegcc*)
11758    # On Win9x/ME, this test blows up -- it succeeds, but takes
11759    # about 5 minutes as the teststring grows exponentially.
11760    # Worse, since 9x/ME are not pre-emptively multitasking,
11761    # you end up with a "frozen" computer, even though with patience
11762    # the test eventually succeeds (with a max line length of 256k).
11763    # Instead, let's just punt: use the minimum linelength reported by
11764    # all of the supported platforms: 8192 (on NT/2K/XP).
11765    lt_cv_sys_max_cmd_len=8192;
11766    ;;
11767
11768  mint*)
11769    # On MiNT this can take a long time and run out of memory.
11770    lt_cv_sys_max_cmd_len=8192;
11771    ;;
11772
11773  amigaos*)
11774    # On AmigaOS with pdksh, this test takes hours, literally.
11775    # So we just punt and use a minimum line length of 8192.
11776    lt_cv_sys_max_cmd_len=8192;
11777    ;;
11778
11779  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
11780    # This has been around since 386BSD, at least.  Likely further.
11781    if test -x /sbin/sysctl; then
11782      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11783    elif test -x /usr/sbin/sysctl; then
11784      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11785    else
11786      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11787    fi
11788    # And add a safety zone
11789    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11790    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11791    ;;
11792
11793  interix*)
11794    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11795    lt_cv_sys_max_cmd_len=196608
11796    ;;
11797
11798  os2*)
11799    # The test takes a long time on OS/2.
11800    lt_cv_sys_max_cmd_len=8192
11801    ;;
11802
11803  osf*)
11804    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11805    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11806    # nice to cause kernel panics so lets avoid the loop below.
11807    # First set a reasonable default.
11808    lt_cv_sys_max_cmd_len=16384
11809    #
11810    if test -x /sbin/sysconfig; then
11811      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11812        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11813      esac
11814    fi
11815    ;;
11816  sco3.2v5*)
11817    lt_cv_sys_max_cmd_len=102400
11818    ;;
11819  sysv5* | sco5v6* | sysv4.2uw2*)
11820    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11821    if test -n "$kargmax"; then
11822      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11823    else
11824      lt_cv_sys_max_cmd_len=32768
11825    fi
11826    ;;
11827  *)
11828    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11829    if test -n "$lt_cv_sys_max_cmd_len" && \
11830       test undefined != "$lt_cv_sys_max_cmd_len"; then
11831      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11832      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11833    else
11834      # Make teststring a little bigger before we do anything with it.
11835      # a 1K string should be a reasonable start.
11836      for i in 1 2 3 4 5 6 7 8; do
11837        teststring=$teststring$teststring
11838      done
11839      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11840      # If test is not a shell built-in, we'll probably end up computing a
11841      # maximum length that is only half of the actual maximum length, but
11842      # we can't tell.
11843      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11844	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11845	      test 17 != "$i" # 1/2 MB should be enough
11846      do
11847        i=`expr $i + 1`
11848        teststring=$teststring$teststring
11849      done
11850      # Only check the string length outside the loop.
11851      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11852      teststring=
11853      # Add a significant safety factor because C++ compilers can tack on
11854      # massive amounts of additional arguments before passing them to the
11855      # linker.  It appears as though 1/2 is a usable value.
11856      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11857    fi
11858    ;;
11859  esac
11860
11861fi
11862
11863if test -n "$lt_cv_sys_max_cmd_len"; then
11864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11865$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11866else
11867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11868$as_echo "none" >&6; }
11869fi
11870max_cmd_len=$lt_cv_sys_max_cmd_len
11871
11872
11873
11874
11875
11876
11877: ${CP="cp -f"}
11878: ${MV="mv -f"}
11879: ${RM="rm -f"}
11880
11881if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11882  lt_unset=unset
11883else
11884  lt_unset=false
11885fi
11886
11887
11888
11889
11890
11891# test EBCDIC or ASCII
11892case `echo X|tr X '\101'` in
11893 A) # ASCII based system
11894    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11895  lt_SP2NL='tr \040 \012'
11896  lt_NL2SP='tr \015\012 \040\040'
11897  ;;
11898 *) # EBCDIC based system
11899  lt_SP2NL='tr \100 \n'
11900  lt_NL2SP='tr \r\n \100\100'
11901  ;;
11902esac
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11913$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11914if ${lt_cv_to_host_file_cmd+:} false; then :
11915  $as_echo_n "(cached) " >&6
11916else
11917  case $host in
11918  *-*-mingw* )
11919    case $build in
11920      *-*-mingw* ) # actually msys
11921        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11922        ;;
11923      *-*-cygwin* )
11924        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11925        ;;
11926      * ) # otherwise, assume *nix
11927        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11928        ;;
11929    esac
11930    ;;
11931  *-*-cygwin* )
11932    case $build in
11933      *-*-mingw* ) # actually msys
11934        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11935        ;;
11936      *-*-cygwin* )
11937        lt_cv_to_host_file_cmd=func_convert_file_noop
11938        ;;
11939      * ) # otherwise, assume *nix
11940        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11941        ;;
11942    esac
11943    ;;
11944  * ) # unhandled hosts (and "normal" native builds)
11945    lt_cv_to_host_file_cmd=func_convert_file_noop
11946    ;;
11947esac
11948
11949fi
11950
11951to_host_file_cmd=$lt_cv_to_host_file_cmd
11952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11953$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11954
11955
11956
11957
11958
11959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11960$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11961if ${lt_cv_to_tool_file_cmd+:} false; then :
11962  $as_echo_n "(cached) " >&6
11963else
11964  #assume ordinary cross tools, or native build.
11965lt_cv_to_tool_file_cmd=func_convert_file_noop
11966case $host in
11967  *-*-mingw* )
11968    case $build in
11969      *-*-mingw* ) # actually msys
11970        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11971        ;;
11972    esac
11973    ;;
11974esac
11975
11976fi
11977
11978to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11980$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11981
11982
11983
11984
11985
11986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11987$as_echo_n "checking for $LD option to reload object files... " >&6; }
11988if ${lt_cv_ld_reload_flag+:} false; then :
11989  $as_echo_n "(cached) " >&6
11990else
11991  lt_cv_ld_reload_flag='-r'
11992fi
11993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11994$as_echo "$lt_cv_ld_reload_flag" >&6; }
11995reload_flag=$lt_cv_ld_reload_flag
11996case $reload_flag in
11997"" | " "*) ;;
11998*) reload_flag=" $reload_flag" ;;
11999esac
12000reload_cmds='$LD$reload_flag -o $output$reload_objs'
12001case $host_os in
12002  cygwin* | mingw* | pw32* | cegcc*)
12003    if test yes != "$GCC"; then
12004      reload_cmds=false
12005    fi
12006    ;;
12007  darwin*)
12008    if test yes = "$GCC"; then
12009      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12010    else
12011      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12012    fi
12013    ;;
12014esac
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024if test -n "$ac_tool_prefix"; then
12025  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12026set dummy ${ac_tool_prefix}objdump; ac_word=$2
12027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12028$as_echo_n "checking for $ac_word... " >&6; }
12029if ${ac_cv_prog_OBJDUMP+:} false; then :
12030  $as_echo_n "(cached) " >&6
12031else
12032  if test -n "$OBJDUMP"; then
12033  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12034else
12035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12036for as_dir in $PATH
12037do
12038  IFS=$as_save_IFS
12039  test -z "$as_dir" && as_dir=.
12040    for ac_exec_ext in '' $ac_executable_extensions; do
12041  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12042    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12043    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12044    break 2
12045  fi
12046done
12047  done
12048IFS=$as_save_IFS
12049
12050fi
12051fi
12052OBJDUMP=$ac_cv_prog_OBJDUMP
12053if test -n "$OBJDUMP"; then
12054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12055$as_echo "$OBJDUMP" >&6; }
12056else
12057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12058$as_echo "no" >&6; }
12059fi
12060
12061
12062fi
12063if test -z "$ac_cv_prog_OBJDUMP"; then
12064  ac_ct_OBJDUMP=$OBJDUMP
12065  # Extract the first word of "objdump", so it can be a program name with args.
12066set dummy objdump; ac_word=$2
12067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12068$as_echo_n "checking for $ac_word... " >&6; }
12069if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
12070  $as_echo_n "(cached) " >&6
12071else
12072  if test -n "$ac_ct_OBJDUMP"; then
12073  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12074else
12075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12076for as_dir in $PATH
12077do
12078  IFS=$as_save_IFS
12079  test -z "$as_dir" && as_dir=.
12080    for ac_exec_ext in '' $ac_executable_extensions; do
12081  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12082    ac_cv_prog_ac_ct_OBJDUMP="objdump"
12083    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12084    break 2
12085  fi
12086done
12087  done
12088IFS=$as_save_IFS
12089
12090fi
12091fi
12092ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12093if test -n "$ac_ct_OBJDUMP"; then
12094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12095$as_echo "$ac_ct_OBJDUMP" >&6; }
12096else
12097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12098$as_echo "no" >&6; }
12099fi
12100
12101  if test "x$ac_ct_OBJDUMP" = x; then
12102    OBJDUMP="false"
12103  else
12104    case $cross_compiling:$ac_tool_warned in
12105yes:)
12106{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12107$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12108ac_tool_warned=yes ;;
12109esac
12110    OBJDUMP=$ac_ct_OBJDUMP
12111  fi
12112else
12113  OBJDUMP="$ac_cv_prog_OBJDUMP"
12114fi
12115
12116test -z "$OBJDUMP" && OBJDUMP=objdump
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12127$as_echo_n "checking how to recognize dependent libraries... " >&6; }
12128if ${lt_cv_deplibs_check_method+:} false; then :
12129  $as_echo_n "(cached) " >&6
12130else
12131  lt_cv_file_magic_cmd='$MAGIC_CMD'
12132lt_cv_file_magic_test_file=
12133lt_cv_deplibs_check_method='unknown'
12134# Need to set the preceding variable on all platforms that support
12135# interlibrary dependencies.
12136# 'none' -- dependencies not supported.
12137# 'unknown' -- same as none, but documents that we really don't know.
12138# 'pass_all' -- all dependencies passed with no checks.
12139# 'test_compile' -- check by making test program.
12140# 'file_magic [[regex]]' -- check by looking for files in library path
12141# that responds to the $file_magic_cmd with a given extended regex.
12142# If you have 'file' or equivalent on your system and you're not sure
12143# whether 'pass_all' will *always* work, you probably want this one.
12144
12145case $host_os in
12146aix[4-9]*)
12147  lt_cv_deplibs_check_method=pass_all
12148  ;;
12149
12150beos*)
12151  lt_cv_deplibs_check_method=pass_all
12152  ;;
12153
12154bsdi[45]*)
12155  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12156  lt_cv_file_magic_cmd='/usr/bin/file -L'
12157  lt_cv_file_magic_test_file=/shlib/libc.so
12158  ;;
12159
12160cygwin*)
12161  # func_win32_libid is a shell function defined in ltmain.sh
12162  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12163  lt_cv_file_magic_cmd='func_win32_libid'
12164  ;;
12165
12166mingw* | pw32*)
12167  # Base MSYS/MinGW do not provide the 'file' command needed by
12168  # func_win32_libid shell function, so use a weaker test based on 'objdump',
12169  # unless we find 'file', for example because we are cross-compiling.
12170  if ( file / ) >/dev/null 2>&1; then
12171    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12172    lt_cv_file_magic_cmd='func_win32_libid'
12173  else
12174    # Keep this pattern in sync with the one in func_win32_libid.
12175    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12176    lt_cv_file_magic_cmd='$OBJDUMP -f'
12177  fi
12178  ;;
12179
12180cegcc*)
12181  # use the weaker test based on 'objdump'. See mingw*.
12182  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12183  lt_cv_file_magic_cmd='$OBJDUMP -f'
12184  ;;
12185
12186darwin* | rhapsody*)
12187  lt_cv_deplibs_check_method=pass_all
12188  ;;
12189
12190freebsd* | dragonfly*)
12191  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12192    case $host_cpu in
12193    i*86 )
12194      # Not sure whether the presence of OpenBSD here was a mistake.
12195      # Let's accept both of them until this is cleared up.
12196      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12197      lt_cv_file_magic_cmd=/usr/bin/file
12198      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12199      ;;
12200    esac
12201  else
12202    lt_cv_deplibs_check_method=pass_all
12203  fi
12204  ;;
12205
12206haiku*)
12207  lt_cv_deplibs_check_method=pass_all
12208  ;;
12209
12210hpux10.20* | hpux11*)
12211  lt_cv_file_magic_cmd=/usr/bin/file
12212  case $host_cpu in
12213  ia64*)
12214    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12215    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12216    ;;
12217  hppa*64*)
12218    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]'
12219    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12220    ;;
12221  *)
12222    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12223    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12224    ;;
12225  esac
12226  ;;
12227
12228interix[3-9]*)
12229  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12230  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12231  ;;
12232
12233irix5* | irix6* | nonstopux*)
12234  case $LD in
12235  *-32|*"-32 ") libmagic=32-bit;;
12236  *-n32|*"-n32 ") libmagic=N32;;
12237  *-64|*"-64 ") libmagic=64-bit;;
12238  *) libmagic=never-match;;
12239  esac
12240  lt_cv_deplibs_check_method=pass_all
12241  ;;
12242
12243# This must be glibc/ELF.
12244linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12245  lt_cv_deplibs_check_method=pass_all
12246  ;;
12247
12248netbsd*)
12249  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12250    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12251  else
12252    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12253  fi
12254  ;;
12255
12256newos6*)
12257  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12258  lt_cv_file_magic_cmd=/usr/bin/file
12259  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12260  ;;
12261
12262*nto* | *qnx*)
12263  lt_cv_deplibs_check_method=pass_all
12264  ;;
12265
12266openbsd* | bitrig*)
12267  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12268    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12269  else
12270    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12271  fi
12272  ;;
12273
12274osf3* | osf4* | osf5*)
12275  lt_cv_deplibs_check_method=pass_all
12276  ;;
12277
12278rdos*)
12279  lt_cv_deplibs_check_method=pass_all
12280  ;;
12281
12282solaris*)
12283  lt_cv_deplibs_check_method=pass_all
12284  ;;
12285
12286sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12287  lt_cv_deplibs_check_method=pass_all
12288  ;;
12289
12290sysv4 | sysv4.3*)
12291  case $host_vendor in
12292  motorola)
12293    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]'
12294    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12295    ;;
12296  ncr)
12297    lt_cv_deplibs_check_method=pass_all
12298    ;;
12299  sequent)
12300    lt_cv_file_magic_cmd='/bin/file'
12301    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12302    ;;
12303  sni)
12304    lt_cv_file_magic_cmd='/bin/file'
12305    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12306    lt_cv_file_magic_test_file=/lib/libc.so
12307    ;;
12308  siemens)
12309    lt_cv_deplibs_check_method=pass_all
12310    ;;
12311  pc)
12312    lt_cv_deplibs_check_method=pass_all
12313    ;;
12314  esac
12315  ;;
12316
12317tpf*)
12318  lt_cv_deplibs_check_method=pass_all
12319  ;;
12320os2*)
12321  lt_cv_deplibs_check_method=pass_all
12322  ;;
12323esac
12324
12325fi
12326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12327$as_echo "$lt_cv_deplibs_check_method" >&6; }
12328
12329file_magic_glob=
12330want_nocaseglob=no
12331if test "$build" = "$host"; then
12332  case $host_os in
12333  mingw* | pw32*)
12334    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12335      want_nocaseglob=yes
12336    else
12337      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12338    fi
12339    ;;
12340  esac
12341fi
12342
12343file_magic_cmd=$lt_cv_file_magic_cmd
12344deplibs_check_method=$lt_cv_deplibs_check_method
12345test -z "$deplibs_check_method" && deplibs_check_method=unknown
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368if test -n "$ac_tool_prefix"; then
12369  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12370set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12372$as_echo_n "checking for $ac_word... " >&6; }
12373if ${ac_cv_prog_DLLTOOL+:} false; then :
12374  $as_echo_n "(cached) " >&6
12375else
12376  if test -n "$DLLTOOL"; then
12377  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12378else
12379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12380for as_dir in $PATH
12381do
12382  IFS=$as_save_IFS
12383  test -z "$as_dir" && as_dir=.
12384    for ac_exec_ext in '' $ac_executable_extensions; do
12385  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12386    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12387    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12388    break 2
12389  fi
12390done
12391  done
12392IFS=$as_save_IFS
12393
12394fi
12395fi
12396DLLTOOL=$ac_cv_prog_DLLTOOL
12397if test -n "$DLLTOOL"; then
12398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12399$as_echo "$DLLTOOL" >&6; }
12400else
12401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12402$as_echo "no" >&6; }
12403fi
12404
12405
12406fi
12407if test -z "$ac_cv_prog_DLLTOOL"; then
12408  ac_ct_DLLTOOL=$DLLTOOL
12409  # Extract the first word of "dlltool", so it can be a program name with args.
12410set dummy dlltool; ac_word=$2
12411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12412$as_echo_n "checking for $ac_word... " >&6; }
12413if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12414  $as_echo_n "(cached) " >&6
12415else
12416  if test -n "$ac_ct_DLLTOOL"; then
12417  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12418else
12419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12420for as_dir in $PATH
12421do
12422  IFS=$as_save_IFS
12423  test -z "$as_dir" && as_dir=.
12424    for ac_exec_ext in '' $ac_executable_extensions; do
12425  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12426    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12427    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12428    break 2
12429  fi
12430done
12431  done
12432IFS=$as_save_IFS
12433
12434fi
12435fi
12436ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12437if test -n "$ac_ct_DLLTOOL"; then
12438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12439$as_echo "$ac_ct_DLLTOOL" >&6; }
12440else
12441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12442$as_echo "no" >&6; }
12443fi
12444
12445  if test "x$ac_ct_DLLTOOL" = x; then
12446    DLLTOOL="false"
12447  else
12448    case $cross_compiling:$ac_tool_warned in
12449yes:)
12450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12452ac_tool_warned=yes ;;
12453esac
12454    DLLTOOL=$ac_ct_DLLTOOL
12455  fi
12456else
12457  DLLTOOL="$ac_cv_prog_DLLTOOL"
12458fi
12459
12460test -z "$DLLTOOL" && DLLTOOL=dlltool
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12472$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12473if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12474  $as_echo_n "(cached) " >&6
12475else
12476  lt_cv_sharedlib_from_linklib_cmd='unknown'
12477
12478case $host_os in
12479cygwin* | mingw* | pw32* | cegcc*)
12480  # two different shell functions defined in ltmain.sh;
12481  # decide which one to use based on capabilities of $DLLTOOL
12482  case `$DLLTOOL --help 2>&1` in
12483  *--identify-strict*)
12484    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12485    ;;
12486  *)
12487    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12488    ;;
12489  esac
12490  ;;
12491*)
12492  # fallback: assume linklib IS sharedlib
12493  lt_cv_sharedlib_from_linklib_cmd=$ECHO
12494  ;;
12495esac
12496
12497fi
12498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12499$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12500sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12501test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12502
12503
12504
12505
12506
12507
12508
12509if test -n "$ac_tool_prefix"; then
12510  for ac_prog in ar
12511  do
12512    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12513set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12515$as_echo_n "checking for $ac_word... " >&6; }
12516if ${ac_cv_prog_AR+:} false; then :
12517  $as_echo_n "(cached) " >&6
12518else
12519  if test -n "$AR"; then
12520  ac_cv_prog_AR="$AR" # Let the user override the test.
12521else
12522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12523for as_dir in $PATH
12524do
12525  IFS=$as_save_IFS
12526  test -z "$as_dir" && as_dir=.
12527    for ac_exec_ext in '' $ac_executable_extensions; do
12528  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12529    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12530    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12531    break 2
12532  fi
12533done
12534  done
12535IFS=$as_save_IFS
12536
12537fi
12538fi
12539AR=$ac_cv_prog_AR
12540if test -n "$AR"; then
12541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12542$as_echo "$AR" >&6; }
12543else
12544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12545$as_echo "no" >&6; }
12546fi
12547
12548
12549    test -n "$AR" && break
12550  done
12551fi
12552if test -z "$AR"; then
12553  ac_ct_AR=$AR
12554  for ac_prog in ar
12555do
12556  # Extract the first word of "$ac_prog", so it can be a program name with args.
12557set dummy $ac_prog; ac_word=$2
12558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12559$as_echo_n "checking for $ac_word... " >&6; }
12560if ${ac_cv_prog_ac_ct_AR+:} false; then :
12561  $as_echo_n "(cached) " >&6
12562else
12563  if test -n "$ac_ct_AR"; then
12564  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12565else
12566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12567for as_dir in $PATH
12568do
12569  IFS=$as_save_IFS
12570  test -z "$as_dir" && as_dir=.
12571    for ac_exec_ext in '' $ac_executable_extensions; do
12572  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12573    ac_cv_prog_ac_ct_AR="$ac_prog"
12574    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12575    break 2
12576  fi
12577done
12578  done
12579IFS=$as_save_IFS
12580
12581fi
12582fi
12583ac_ct_AR=$ac_cv_prog_ac_ct_AR
12584if test -n "$ac_ct_AR"; then
12585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12586$as_echo "$ac_ct_AR" >&6; }
12587else
12588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12589$as_echo "no" >&6; }
12590fi
12591
12592
12593  test -n "$ac_ct_AR" && break
12594done
12595
12596  if test "x$ac_ct_AR" = x; then
12597    AR="false"
12598  else
12599    case $cross_compiling:$ac_tool_warned in
12600yes:)
12601{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12602$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12603ac_tool_warned=yes ;;
12604esac
12605    AR=$ac_ct_AR
12606  fi
12607fi
12608
12609: ${AR=ar}
12610
12611
12612
12613
12614
12615
12616# Use ARFLAGS variable as AR's operation code to sync the variable naming with
12617# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
12618# higher priority because thats what people were doing historically (setting
12619# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
12620# variable obsoleted/removed.
12621
12622test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
12623lt_ar_flags=$AR_FLAGS
12624
12625
12626
12627
12628
12629
12630# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
12631# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
12632
12633
12634
12635
12636
12637
12638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12639$as_echo_n "checking for archiver @FILE support... " >&6; }
12640if ${lt_cv_ar_at_file+:} false; then :
12641  $as_echo_n "(cached) " >&6
12642else
12643  lt_cv_ar_at_file=no
12644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12645/* end confdefs.h.  */
12646
12647int
12648main ()
12649{
12650
12651  ;
12652  return 0;
12653}
12654_ACEOF
12655if ac_fn_c_try_compile "$LINENO"; then :
12656  echo conftest.$ac_objext > conftest.lst
12657      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12658      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12659  (eval $lt_ar_try) 2>&5
12660  ac_status=$?
12661  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12662  test $ac_status = 0; }
12663      if test 0 -eq "$ac_status"; then
12664	# Ensure the archiver fails upon bogus file names.
12665	rm -f conftest.$ac_objext libconftest.a
12666	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12667  (eval $lt_ar_try) 2>&5
12668  ac_status=$?
12669  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12670  test $ac_status = 0; }
12671	if test 0 -ne "$ac_status"; then
12672          lt_cv_ar_at_file=@
12673        fi
12674      fi
12675      rm -f conftest.* libconftest.a
12676
12677fi
12678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12679
12680fi
12681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12682$as_echo "$lt_cv_ar_at_file" >&6; }
12683
12684if test no = "$lt_cv_ar_at_file"; then
12685  archiver_list_spec=
12686else
12687  archiver_list_spec=$lt_cv_ar_at_file
12688fi
12689
12690
12691
12692
12693
12694
12695
12696if test -n "$ac_tool_prefix"; then
12697  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12698set dummy ${ac_tool_prefix}strip; ac_word=$2
12699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12700$as_echo_n "checking for $ac_word... " >&6; }
12701if ${ac_cv_prog_STRIP+:} false; then :
12702  $as_echo_n "(cached) " >&6
12703else
12704  if test -n "$STRIP"; then
12705  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12706else
12707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12708for as_dir in $PATH
12709do
12710  IFS=$as_save_IFS
12711  test -z "$as_dir" && as_dir=.
12712    for ac_exec_ext in '' $ac_executable_extensions; do
12713  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12714    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12715    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12716    break 2
12717  fi
12718done
12719  done
12720IFS=$as_save_IFS
12721
12722fi
12723fi
12724STRIP=$ac_cv_prog_STRIP
12725if test -n "$STRIP"; then
12726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12727$as_echo "$STRIP" >&6; }
12728else
12729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12730$as_echo "no" >&6; }
12731fi
12732
12733
12734fi
12735if test -z "$ac_cv_prog_STRIP"; then
12736  ac_ct_STRIP=$STRIP
12737  # Extract the first word of "strip", so it can be a program name with args.
12738set dummy strip; ac_word=$2
12739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12740$as_echo_n "checking for $ac_word... " >&6; }
12741if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12742  $as_echo_n "(cached) " >&6
12743else
12744  if test -n "$ac_ct_STRIP"; then
12745  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12746else
12747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12748for as_dir in $PATH
12749do
12750  IFS=$as_save_IFS
12751  test -z "$as_dir" && as_dir=.
12752    for ac_exec_ext in '' $ac_executable_extensions; do
12753  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12754    ac_cv_prog_ac_ct_STRIP="strip"
12755    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12756    break 2
12757  fi
12758done
12759  done
12760IFS=$as_save_IFS
12761
12762fi
12763fi
12764ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12765if test -n "$ac_ct_STRIP"; then
12766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12767$as_echo "$ac_ct_STRIP" >&6; }
12768else
12769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12770$as_echo "no" >&6; }
12771fi
12772
12773  if test "x$ac_ct_STRIP" = x; then
12774    STRIP=":"
12775  else
12776    case $cross_compiling:$ac_tool_warned in
12777yes:)
12778{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12779$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12780ac_tool_warned=yes ;;
12781esac
12782    STRIP=$ac_ct_STRIP
12783  fi
12784else
12785  STRIP="$ac_cv_prog_STRIP"
12786fi
12787
12788test -z "$STRIP" && STRIP=:
12789
12790
12791
12792
12793
12794
12795if test -n "$ac_tool_prefix"; then
12796  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12797set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12799$as_echo_n "checking for $ac_word... " >&6; }
12800if ${ac_cv_prog_RANLIB+:} false; then :
12801  $as_echo_n "(cached) " >&6
12802else
12803  if test -n "$RANLIB"; then
12804  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12805else
12806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12807for as_dir in $PATH
12808do
12809  IFS=$as_save_IFS
12810  test -z "$as_dir" && as_dir=.
12811    for ac_exec_ext in '' $ac_executable_extensions; do
12812  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12813    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12814    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12815    break 2
12816  fi
12817done
12818  done
12819IFS=$as_save_IFS
12820
12821fi
12822fi
12823RANLIB=$ac_cv_prog_RANLIB
12824if test -n "$RANLIB"; then
12825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12826$as_echo "$RANLIB" >&6; }
12827else
12828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12829$as_echo "no" >&6; }
12830fi
12831
12832
12833fi
12834if test -z "$ac_cv_prog_RANLIB"; then
12835  ac_ct_RANLIB=$RANLIB
12836  # Extract the first word of "ranlib", so it can be a program name with args.
12837set dummy ranlib; ac_word=$2
12838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12839$as_echo_n "checking for $ac_word... " >&6; }
12840if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12841  $as_echo_n "(cached) " >&6
12842else
12843  if test -n "$ac_ct_RANLIB"; then
12844  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12845else
12846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12847for as_dir in $PATH
12848do
12849  IFS=$as_save_IFS
12850  test -z "$as_dir" && as_dir=.
12851    for ac_exec_ext in '' $ac_executable_extensions; do
12852  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12853    ac_cv_prog_ac_ct_RANLIB="ranlib"
12854    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12855    break 2
12856  fi
12857done
12858  done
12859IFS=$as_save_IFS
12860
12861fi
12862fi
12863ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12864if test -n "$ac_ct_RANLIB"; then
12865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12866$as_echo "$ac_ct_RANLIB" >&6; }
12867else
12868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12869$as_echo "no" >&6; }
12870fi
12871
12872  if test "x$ac_ct_RANLIB" = x; then
12873    RANLIB=":"
12874  else
12875    case $cross_compiling:$ac_tool_warned in
12876yes:)
12877{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12878$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12879ac_tool_warned=yes ;;
12880esac
12881    RANLIB=$ac_ct_RANLIB
12882  fi
12883else
12884  RANLIB="$ac_cv_prog_RANLIB"
12885fi
12886
12887test -z "$RANLIB" && RANLIB=:
12888
12889
12890
12891
12892
12893
12894# Determine commands to create old-style static archives.
12895old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12896old_postinstall_cmds='chmod 644 $oldlib'
12897old_postuninstall_cmds=
12898
12899if test -n "$RANLIB"; then
12900  case $host_os in
12901  bitrig* | openbsd*)
12902    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12903    ;;
12904  *)
12905    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12906    ;;
12907  esac
12908  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12909fi
12910
12911case $host_os in
12912  darwin*)
12913    lock_old_archive_extraction=yes ;;
12914  *)
12915    lock_old_archive_extraction=no ;;
12916esac
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956# If no C compiler was specified, use CC.
12957LTCC=${LTCC-"$CC"}
12958
12959# If no C compiler flags were specified, use CFLAGS.
12960LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12961
12962# Allow CC to be a program name with arguments.
12963compiler=$CC
12964
12965
12966# Check for command to grab the raw symbol name followed by C symbol from nm.
12967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12968$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12969if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12970  $as_echo_n "(cached) " >&6
12971else
12972
12973# These are sane defaults that work on at least a few old systems.
12974# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12975
12976# Character class describing NM global symbol codes.
12977symcode='[BCDEGRST]'
12978
12979# Regexp to match symbols that can be accessed directly from C.
12980sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12981
12982# Define system-specific variables.
12983case $host_os in
12984aix*)
12985  symcode='[BCDT]'
12986  ;;
12987cygwin* | mingw* | pw32* | cegcc*)
12988  symcode='[ABCDGISTW]'
12989  ;;
12990hpux*)
12991  if test ia64 = "$host_cpu"; then
12992    symcode='[ABCDEGRST]'
12993  fi
12994  ;;
12995irix* | nonstopux*)
12996  symcode='[BCDEGRST]'
12997  ;;
12998osf*)
12999  symcode='[BCDEGQRST]'
13000  ;;
13001solaris*)
13002  symcode='[BDRT]'
13003  ;;
13004sco3.2v5*)
13005  symcode='[DT]'
13006  ;;
13007sysv4.2uw2*)
13008  symcode='[DT]'
13009  ;;
13010sysv5* | sco5v6* | unixware* | OpenUNIX*)
13011  symcode='[ABDT]'
13012  ;;
13013sysv4)
13014  symcode='[DFNSTU]'
13015  ;;
13016esac
13017
13018# If we're using GNU nm, then use its standard symbol codes.
13019case `$NM -V 2>&1` in
13020*GNU* | *'with BFD'*)
13021  symcode='[ABCDGIRSTW]' ;;
13022esac
13023
13024if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13025  # Gets list of data symbols to import.
13026  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
13027  # Adjust the below global symbol transforms to fixup imported variables.
13028  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13029  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
13030  lt_c_name_lib_hook="\
13031  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
13032  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
13033else
13034  # Disable hooks by default.
13035  lt_cv_sys_global_symbol_to_import=
13036  lt_cdecl_hook=
13037  lt_c_name_hook=
13038  lt_c_name_lib_hook=
13039fi
13040
13041# Transform an extracted symbol line into a proper C declaration.
13042# Some systems (esp. on ia64) link data and code symbols differently,
13043# so use this general approach.
13044lt_cv_sys_global_symbol_to_cdecl="sed -n"\
13045$lt_cdecl_hook\
13046" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13047" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13048
13049# Transform an extracted symbol line into symbol name and symbol address
13050lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
13051$lt_c_name_hook\
13052" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13053" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
13054
13055# Transform an extracted symbol line into symbol name with lib prefix and
13056# symbol address.
13057lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
13058$lt_c_name_lib_hook\
13059" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13060" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
13061" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
13062
13063# Handle CRLF in mingw tool chain
13064opt_cr=
13065case $build_os in
13066mingw*)
13067  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13068  ;;
13069esac
13070
13071# Try without a prefix underscore, then with it.
13072for ac_symprfx in "" "_"; do
13073
13074  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13075  symxfrm="\\1 $ac_symprfx\\2 \\2"
13076
13077  # Write the raw and C identifiers.
13078  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13079    # Fake it for dumpbin and say T for any non-static function,
13080    # D for any global variable and I for any imported variable.
13081    # Also find C++ and __fastcall symbols from MSVC++,
13082    # which start with @ or ?.
13083    lt_cv_sys_global_symbol_pipe="$AWK '"\
13084"     {last_section=section; section=\$ 3};"\
13085"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13086"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13087"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13088"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13089"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13090"     \$ 0!~/External *\|/{next};"\
13091"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13092"     {if(hide[section]) next};"\
13093"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13094"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13095"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13096"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13097"     ' prfx=^$ac_symprfx"
13098  else
13099    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13100  fi
13101  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
13102
13103  # Check to see that the pipe works correctly.
13104  pipe_works=no
13105
13106  rm -f conftest*
13107  cat > conftest.$ac_ext <<_LT_EOF
13108#ifdef __cplusplus
13109extern "C" {
13110#endif
13111char nm_test_var;
13112void nm_test_func(void);
13113void nm_test_func(void){}
13114#ifdef __cplusplus
13115}
13116#endif
13117int main(){nm_test_var='a';nm_test_func();return(0);}
13118_LT_EOF
13119
13120  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13121  (eval $ac_compile) 2>&5
13122  ac_status=$?
13123  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13124  test $ac_status = 0; }; then
13125    # Now try to grab the symbols.
13126    nlist=conftest.nm
13127    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13128  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13129  ac_status=$?
13130  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13131  test $ac_status = 0; } && test -s "$nlist"; then
13132      # Try sorting and uniquifying the output.
13133      if sort "$nlist" | uniq > "$nlist"T; then
13134	mv -f "$nlist"T "$nlist"
13135      else
13136	rm -f "$nlist"T
13137      fi
13138
13139      # Make sure that we snagged all the symbols we need.
13140      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13141	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13142	  cat <<_LT_EOF > conftest.$ac_ext
13143/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
13144#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13145/* DATA imports from DLLs on WIN32 can't be const, because runtime
13146   relocations are performed -- see ld's documentation on pseudo-relocs.  */
13147# define LT_DLSYM_CONST
13148#elif defined __osf__
13149/* This system does not cope well with relocations in const data.  */
13150# define LT_DLSYM_CONST
13151#else
13152# define LT_DLSYM_CONST const
13153#endif
13154
13155#ifdef __cplusplus
13156extern "C" {
13157#endif
13158
13159_LT_EOF
13160	  # Now generate the symbol file.
13161	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13162
13163	  cat <<_LT_EOF >> conftest.$ac_ext
13164
13165/* The mapping between symbol names and symbols.  */
13166LT_DLSYM_CONST struct {
13167  const char *name;
13168  void       *address;
13169}
13170lt__PROGRAM__LTX_preloaded_symbols[] =
13171{
13172  { "@PROGRAM@", (void *) 0 },
13173_LT_EOF
13174	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13175	  cat <<\_LT_EOF >> conftest.$ac_ext
13176  {0, (void *) 0}
13177};
13178
13179/* This works around a problem in FreeBSD linker */
13180#ifdef FREEBSD_WORKAROUND
13181static const void *lt_preloaded_setup() {
13182  return lt__PROGRAM__LTX_preloaded_symbols;
13183}
13184#endif
13185
13186#ifdef __cplusplus
13187}
13188#endif
13189_LT_EOF
13190	  # Now try linking the two files.
13191	  mv conftest.$ac_objext conftstm.$ac_objext
13192	  lt_globsym_save_LIBS=$LIBS
13193	  lt_globsym_save_CFLAGS=$CFLAGS
13194	  LIBS=conftstm.$ac_objext
13195	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13196	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13197  (eval $ac_link) 2>&5
13198  ac_status=$?
13199  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13200  test $ac_status = 0; } && test -s conftest$ac_exeext; then
13201	    pipe_works=yes
13202	  fi
13203	  LIBS=$lt_globsym_save_LIBS
13204	  CFLAGS=$lt_globsym_save_CFLAGS
13205	else
13206	  echo "cannot find nm_test_func in $nlist" >&5
13207	fi
13208      else
13209	echo "cannot find nm_test_var in $nlist" >&5
13210      fi
13211    else
13212      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13213    fi
13214  else
13215    echo "$progname: failed program was:" >&5
13216    cat conftest.$ac_ext >&5
13217  fi
13218  rm -rf conftest* conftst*
13219
13220  # Do not use the global_symbol_pipe unless it works.
13221  if test yes = "$pipe_works"; then
13222    break
13223  else
13224    lt_cv_sys_global_symbol_pipe=
13225  fi
13226done
13227
13228fi
13229
13230if test -z "$lt_cv_sys_global_symbol_pipe"; then
13231  lt_cv_sys_global_symbol_to_cdecl=
13232fi
13233if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13235$as_echo "failed" >&6; }
13236else
13237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13238$as_echo "ok" >&6; }
13239fi
13240
13241# Response file support.
13242if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13243  nm_file_list_spec='@'
13244elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13245  nm_file_list_spec='@'
13246fi
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13285$as_echo_n "checking for sysroot... " >&6; }
13286
13287# Check whether --with-sysroot was given.
13288if test "${with_sysroot+set}" = set; then :
13289  withval=$with_sysroot;
13290else
13291  with_sysroot=no
13292fi
13293
13294
13295lt_sysroot=
13296case $with_sysroot in #(
13297 yes)
13298   if test yes = "$GCC"; then
13299     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13300   fi
13301   ;; #(
13302 /*)
13303   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13304   ;; #(
13305 no|'')
13306   ;; #(
13307 *)
13308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13309$as_echo "$with_sysroot" >&6; }
13310   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13311   ;;
13312esac
13313
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13315$as_echo "${lt_sysroot:-no}" >&6; }
13316
13317
13318
13319
13320
13321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13322$as_echo_n "checking for a working dd... " >&6; }
13323if ${ac_cv_path_lt_DD+:} false; then :
13324  $as_echo_n "(cached) " >&6
13325else
13326  printf 0123456789abcdef0123456789abcdef >conftest.i
13327cat conftest.i conftest.i >conftest2.i
13328: ${lt_DD:=$DD}
13329if test -z "$lt_DD"; then
13330  ac_path_lt_DD_found=false
13331  # Loop through the user's path and test for each of PROGNAME-LIST
13332  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13333for as_dir in $PATH
13334do
13335  IFS=$as_save_IFS
13336  test -z "$as_dir" && as_dir=.
13337    for ac_prog in dd; do
13338    for ac_exec_ext in '' $ac_executable_extensions; do
13339      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
13340      as_fn_executable_p "$ac_path_lt_DD" || continue
13341if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13342  cmp -s conftest.i conftest.out \
13343  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13344fi
13345      $ac_path_lt_DD_found && break 3
13346    done
13347  done
13348  done
13349IFS=$as_save_IFS
13350  if test -z "$ac_cv_path_lt_DD"; then
13351    :
13352  fi
13353else
13354  ac_cv_path_lt_DD=$lt_DD
13355fi
13356
13357rm -f conftest.i conftest2.i conftest.out
13358fi
13359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13360$as_echo "$ac_cv_path_lt_DD" >&6; }
13361
13362
13363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13364$as_echo_n "checking how to truncate binary pipes... " >&6; }
13365if ${lt_cv_truncate_bin+:} false; then :
13366  $as_echo_n "(cached) " >&6
13367else
13368  printf 0123456789abcdef0123456789abcdef >conftest.i
13369cat conftest.i conftest.i >conftest2.i
13370lt_cv_truncate_bin=
13371if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13372  cmp -s conftest.i conftest.out \
13373  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13374fi
13375rm -f conftest.i conftest2.i conftest.out
13376test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13377fi
13378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13379$as_echo "$lt_cv_truncate_bin" >&6; }
13380
13381
13382
13383
13384
13385
13386
13387# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
13388func_cc_basename ()
13389{
13390    for cc_temp in $*""; do
13391      case $cc_temp in
13392        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13393        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13394        \-*) ;;
13395        *) break;;
13396      esac
13397    done
13398    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13399}
13400
13401# Check whether --enable-libtool-lock was given.
13402if test "${enable_libtool_lock+set}" = set; then :
13403  enableval=$enable_libtool_lock;
13404fi
13405
13406test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13407
13408# Some flags need to be propagated to the compiler or linker for good
13409# libtool support.
13410case $host in
13411ia64-*-hpux*)
13412  # Find out what ABI is being produced by ac_compile, and set mode
13413  # options accordingly.
13414  echo 'int i;' > conftest.$ac_ext
13415  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13416  (eval $ac_compile) 2>&5
13417  ac_status=$?
13418  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13419  test $ac_status = 0; }; then
13420    case `/usr/bin/file conftest.$ac_objext` in
13421      *ELF-32*)
13422	HPUX_IA64_MODE=32
13423	;;
13424      *ELF-64*)
13425	HPUX_IA64_MODE=64
13426	;;
13427    esac
13428  fi
13429  rm -rf conftest*
13430  ;;
13431*-*-irix6*)
13432  # Find out what ABI is being produced by ac_compile, and set linker
13433  # options accordingly.
13434  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13435  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13436  (eval $ac_compile) 2>&5
13437  ac_status=$?
13438  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13439  test $ac_status = 0; }; then
13440    if test yes = "$lt_cv_prog_gnu_ld"; then
13441      case `/usr/bin/file conftest.$ac_objext` in
13442	*32-bit*)
13443	  LD="${LD-ld} -melf32bsmip"
13444	  ;;
13445	*N32*)
13446	  LD="${LD-ld} -melf32bmipn32"
13447	  ;;
13448	*64-bit*)
13449	  LD="${LD-ld} -melf64bmip"
13450	;;
13451      esac
13452    else
13453      case `/usr/bin/file conftest.$ac_objext` in
13454	*32-bit*)
13455	  LD="${LD-ld} -32"
13456	  ;;
13457	*N32*)
13458	  LD="${LD-ld} -n32"
13459	  ;;
13460	*64-bit*)
13461	  LD="${LD-ld} -64"
13462	  ;;
13463      esac
13464    fi
13465  fi
13466  rm -rf conftest*
13467  ;;
13468
13469mips64*-*linux*)
13470  # Find out what ABI is being produced by ac_compile, and set linker
13471  # options accordingly.
13472  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13473  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13474  (eval $ac_compile) 2>&5
13475  ac_status=$?
13476  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13477  test $ac_status = 0; }; then
13478    emul=elf
13479    case `/usr/bin/file conftest.$ac_objext` in
13480      *32-bit*)
13481	emul="${emul}32"
13482	;;
13483      *64-bit*)
13484	emul="${emul}64"
13485	;;
13486    esac
13487    case `/usr/bin/file conftest.$ac_objext` in
13488      *MSB*)
13489	emul="${emul}btsmip"
13490	;;
13491      *LSB*)
13492	emul="${emul}ltsmip"
13493	;;
13494    esac
13495    case `/usr/bin/file conftest.$ac_objext` in
13496      *N32*)
13497	emul="${emul}n32"
13498	;;
13499    esac
13500    LD="${LD-ld} -m $emul"
13501  fi
13502  rm -rf conftest*
13503  ;;
13504
13505x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13506s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13507  # Find out what ABI is being produced by ac_compile, and set linker
13508  # options accordingly.  Note that the listed cases only cover the
13509  # situations where additional linker options are needed (such as when
13510  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13511  # vice versa); the common cases where no linker options are needed do
13512  # not appear in the list.
13513  echo 'int i;' > conftest.$ac_ext
13514  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13515  (eval $ac_compile) 2>&5
13516  ac_status=$?
13517  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13518  test $ac_status = 0; }; then
13519    case `/usr/bin/file conftest.o` in
13520      *32-bit*)
13521	case $host in
13522	  x86_64-*kfreebsd*-gnu)
13523	    LD="${LD-ld} -m elf_i386_fbsd"
13524	    ;;
13525	  x86_64-*linux*)
13526	    case `/usr/bin/file conftest.o` in
13527	      *x86-64*)
13528		LD="${LD-ld} -m elf32_x86_64"
13529		;;
13530	      *)
13531		LD="${LD-ld} -m elf_i386"
13532		;;
13533	    esac
13534	    ;;
13535	  powerpc64le-*linux*)
13536	    LD="${LD-ld} -m elf32lppclinux"
13537	    ;;
13538	  powerpc64-*linux*)
13539	    LD="${LD-ld} -m elf32ppclinux"
13540	    ;;
13541	  s390x-*linux*)
13542	    LD="${LD-ld} -m elf_s390"
13543	    ;;
13544	  sparc64-*linux*)
13545	    LD="${LD-ld} -m elf32_sparc"
13546	    ;;
13547	esac
13548	;;
13549      *64-bit*)
13550	case $host in
13551	  x86_64-*kfreebsd*-gnu)
13552	    LD="${LD-ld} -m elf_x86_64_fbsd"
13553	    ;;
13554	  x86_64-*linux*)
13555	    LD="${LD-ld} -m elf_x86_64"
13556	    ;;
13557	  powerpcle-*linux*)
13558	    LD="${LD-ld} -m elf64lppc"
13559	    ;;
13560	  powerpc-*linux*)
13561	    LD="${LD-ld} -m elf64ppc"
13562	    ;;
13563	  s390*-*linux*|s390*-*tpf*)
13564	    LD="${LD-ld} -m elf64_s390"
13565	    ;;
13566	  sparc*-*linux*)
13567	    LD="${LD-ld} -m elf64_sparc"
13568	    ;;
13569	esac
13570	;;
13571    esac
13572  fi
13573  rm -rf conftest*
13574  ;;
13575
13576*-*-sco3.2v5*)
13577  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13578  SAVE_CFLAGS=$CFLAGS
13579  CFLAGS="$CFLAGS -belf"
13580  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13581$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13582if ${lt_cv_cc_needs_belf+:} false; then :
13583  $as_echo_n "(cached) " >&6
13584else
13585  ac_ext=c
13586ac_cpp='$CPP $CPPFLAGS'
13587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13589ac_compiler_gnu=$ac_cv_c_compiler_gnu
13590
13591     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13592/* end confdefs.h.  */
13593
13594int
13595main ()
13596{
13597
13598  ;
13599  return 0;
13600}
13601_ACEOF
13602if ac_fn_c_try_link "$LINENO"; then :
13603  lt_cv_cc_needs_belf=yes
13604else
13605  lt_cv_cc_needs_belf=no
13606fi
13607rm -f core conftest.err conftest.$ac_objext \
13608    conftest$ac_exeext conftest.$ac_ext
13609     ac_ext=c
13610ac_cpp='$CPP $CPPFLAGS'
13611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13613ac_compiler_gnu=$ac_cv_c_compiler_gnu
13614
13615fi
13616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13617$as_echo "$lt_cv_cc_needs_belf" >&6; }
13618  if test yes != "$lt_cv_cc_needs_belf"; then
13619    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13620    CFLAGS=$SAVE_CFLAGS
13621  fi
13622  ;;
13623*-*solaris*)
13624  # Find out what ABI is being produced by ac_compile, and set linker
13625  # options accordingly.
13626  echo 'int i;' > conftest.$ac_ext
13627  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13628  (eval $ac_compile) 2>&5
13629  ac_status=$?
13630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13631  test $ac_status = 0; }; then
13632    case `/usr/bin/file conftest.o` in
13633    *64-bit*)
13634      case $lt_cv_prog_gnu_ld in
13635      yes*)
13636        case $host in
13637        i?86-*-solaris*|x86_64-*-solaris*)
13638          LD="${LD-ld} -m elf_x86_64"
13639          ;;
13640        sparc*-*-solaris*)
13641          LD="${LD-ld} -m elf64_sparc"
13642          ;;
13643        esac
13644        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
13645        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13646          LD=${LD-ld}_sol2
13647        fi
13648        ;;
13649      *)
13650	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13651	  LD="${LD-ld} -64"
13652	fi
13653	;;
13654      esac
13655      ;;
13656    esac
13657  fi
13658  rm -rf conftest*
13659  ;;
13660esac
13661
13662need_locks=$enable_libtool_lock
13663
13664if test -n "$ac_tool_prefix"; then
13665  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13666set dummy ${ac_tool_prefix}mt; ac_word=$2
13667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13668$as_echo_n "checking for $ac_word... " >&6; }
13669if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13670  $as_echo_n "(cached) " >&6
13671else
13672  if test -n "$MANIFEST_TOOL"; then
13673  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13674else
13675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13676for as_dir in $PATH
13677do
13678  IFS=$as_save_IFS
13679  test -z "$as_dir" && as_dir=.
13680    for ac_exec_ext in '' $ac_executable_extensions; do
13681  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13682    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13683    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13684    break 2
13685  fi
13686done
13687  done
13688IFS=$as_save_IFS
13689
13690fi
13691fi
13692MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13693if test -n "$MANIFEST_TOOL"; then
13694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13695$as_echo "$MANIFEST_TOOL" >&6; }
13696else
13697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13698$as_echo "no" >&6; }
13699fi
13700
13701
13702fi
13703if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13704  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13705  # Extract the first word of "mt", so it can be a program name with args.
13706set dummy mt; ac_word=$2
13707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13708$as_echo_n "checking for $ac_word... " >&6; }
13709if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13710  $as_echo_n "(cached) " >&6
13711else
13712  if test -n "$ac_ct_MANIFEST_TOOL"; then
13713  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13714else
13715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13716for as_dir in $PATH
13717do
13718  IFS=$as_save_IFS
13719  test -z "$as_dir" && as_dir=.
13720    for ac_exec_ext in '' $ac_executable_extensions; do
13721  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13722    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13723    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13724    break 2
13725  fi
13726done
13727  done
13728IFS=$as_save_IFS
13729
13730fi
13731fi
13732ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13733if test -n "$ac_ct_MANIFEST_TOOL"; then
13734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13735$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13736else
13737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13738$as_echo "no" >&6; }
13739fi
13740
13741  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13742    MANIFEST_TOOL=":"
13743  else
13744    case $cross_compiling:$ac_tool_warned in
13745yes:)
13746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13747$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13748ac_tool_warned=yes ;;
13749esac
13750    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13751  fi
13752else
13753  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13754fi
13755
13756test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13758$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13759if ${lt_cv_path_mainfest_tool+:} false; then :
13760  $as_echo_n "(cached) " >&6
13761else
13762  lt_cv_path_mainfest_tool=no
13763  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13764  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13765  cat conftest.err >&5
13766  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13767    lt_cv_path_mainfest_tool=yes
13768  fi
13769  rm -f conftest*
13770fi
13771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13772$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13773if test yes != "$lt_cv_path_mainfest_tool"; then
13774  MANIFEST_TOOL=:
13775fi
13776
13777
13778
13779
13780
13781
13782  case $host_os in
13783    rhapsody* | darwin*)
13784    if test -n "$ac_tool_prefix"; then
13785  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13786set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13788$as_echo_n "checking for $ac_word... " >&6; }
13789if ${ac_cv_prog_DSYMUTIL+:} false; then :
13790  $as_echo_n "(cached) " >&6
13791else
13792  if test -n "$DSYMUTIL"; then
13793  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13794else
13795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13796for as_dir in $PATH
13797do
13798  IFS=$as_save_IFS
13799  test -z "$as_dir" && as_dir=.
13800    for ac_exec_ext in '' $ac_executable_extensions; do
13801  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13802    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13803    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13804    break 2
13805  fi
13806done
13807  done
13808IFS=$as_save_IFS
13809
13810fi
13811fi
13812DSYMUTIL=$ac_cv_prog_DSYMUTIL
13813if test -n "$DSYMUTIL"; then
13814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13815$as_echo "$DSYMUTIL" >&6; }
13816else
13817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13818$as_echo "no" >&6; }
13819fi
13820
13821
13822fi
13823if test -z "$ac_cv_prog_DSYMUTIL"; then
13824  ac_ct_DSYMUTIL=$DSYMUTIL
13825  # Extract the first word of "dsymutil", so it can be a program name with args.
13826set dummy dsymutil; ac_word=$2
13827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13828$as_echo_n "checking for $ac_word... " >&6; }
13829if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13830  $as_echo_n "(cached) " >&6
13831else
13832  if test -n "$ac_ct_DSYMUTIL"; then
13833  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13834else
13835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13836for as_dir in $PATH
13837do
13838  IFS=$as_save_IFS
13839  test -z "$as_dir" && as_dir=.
13840    for ac_exec_ext in '' $ac_executable_extensions; do
13841  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13842    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13843    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13844    break 2
13845  fi
13846done
13847  done
13848IFS=$as_save_IFS
13849
13850fi
13851fi
13852ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13853if test -n "$ac_ct_DSYMUTIL"; then
13854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13855$as_echo "$ac_ct_DSYMUTIL" >&6; }
13856else
13857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13858$as_echo "no" >&6; }
13859fi
13860
13861  if test "x$ac_ct_DSYMUTIL" = x; then
13862    DSYMUTIL=":"
13863  else
13864    case $cross_compiling:$ac_tool_warned in
13865yes:)
13866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13868ac_tool_warned=yes ;;
13869esac
13870    DSYMUTIL=$ac_ct_DSYMUTIL
13871  fi
13872else
13873  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13874fi
13875
13876    if test -n "$ac_tool_prefix"; then
13877  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13878set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13880$as_echo_n "checking for $ac_word... " >&6; }
13881if ${ac_cv_prog_NMEDIT+:} false; then :
13882  $as_echo_n "(cached) " >&6
13883else
13884  if test -n "$NMEDIT"; then
13885  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13886else
13887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13888for as_dir in $PATH
13889do
13890  IFS=$as_save_IFS
13891  test -z "$as_dir" && as_dir=.
13892    for ac_exec_ext in '' $ac_executable_extensions; do
13893  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13894    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13895    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13896    break 2
13897  fi
13898done
13899  done
13900IFS=$as_save_IFS
13901
13902fi
13903fi
13904NMEDIT=$ac_cv_prog_NMEDIT
13905if test -n "$NMEDIT"; then
13906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13907$as_echo "$NMEDIT" >&6; }
13908else
13909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13910$as_echo "no" >&6; }
13911fi
13912
13913
13914fi
13915if test -z "$ac_cv_prog_NMEDIT"; then
13916  ac_ct_NMEDIT=$NMEDIT
13917  # Extract the first word of "nmedit", so it can be a program name with args.
13918set dummy nmedit; ac_word=$2
13919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13920$as_echo_n "checking for $ac_word... " >&6; }
13921if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13922  $as_echo_n "(cached) " >&6
13923else
13924  if test -n "$ac_ct_NMEDIT"; then
13925  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13926else
13927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13928for as_dir in $PATH
13929do
13930  IFS=$as_save_IFS
13931  test -z "$as_dir" && as_dir=.
13932    for ac_exec_ext in '' $ac_executable_extensions; do
13933  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13934    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13935    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13936    break 2
13937  fi
13938done
13939  done
13940IFS=$as_save_IFS
13941
13942fi
13943fi
13944ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13945if test -n "$ac_ct_NMEDIT"; then
13946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13947$as_echo "$ac_ct_NMEDIT" >&6; }
13948else
13949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13950$as_echo "no" >&6; }
13951fi
13952
13953  if test "x$ac_ct_NMEDIT" = x; then
13954    NMEDIT=":"
13955  else
13956    case $cross_compiling:$ac_tool_warned in
13957yes:)
13958{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13959$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13960ac_tool_warned=yes ;;
13961esac
13962    NMEDIT=$ac_ct_NMEDIT
13963  fi
13964else
13965  NMEDIT="$ac_cv_prog_NMEDIT"
13966fi
13967
13968    if test -n "$ac_tool_prefix"; then
13969  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13970set dummy ${ac_tool_prefix}lipo; ac_word=$2
13971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13972$as_echo_n "checking for $ac_word... " >&6; }
13973if ${ac_cv_prog_LIPO+:} false; then :
13974  $as_echo_n "(cached) " >&6
13975else
13976  if test -n "$LIPO"; then
13977  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13978else
13979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13980for as_dir in $PATH
13981do
13982  IFS=$as_save_IFS
13983  test -z "$as_dir" && as_dir=.
13984    for ac_exec_ext in '' $ac_executable_extensions; do
13985  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13986    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13987    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13988    break 2
13989  fi
13990done
13991  done
13992IFS=$as_save_IFS
13993
13994fi
13995fi
13996LIPO=$ac_cv_prog_LIPO
13997if test -n "$LIPO"; then
13998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13999$as_echo "$LIPO" >&6; }
14000else
14001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14002$as_echo "no" >&6; }
14003fi
14004
14005
14006fi
14007if test -z "$ac_cv_prog_LIPO"; then
14008  ac_ct_LIPO=$LIPO
14009  # Extract the first word of "lipo", so it can be a program name with args.
14010set dummy lipo; ac_word=$2
14011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14012$as_echo_n "checking for $ac_word... " >&6; }
14013if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
14014  $as_echo_n "(cached) " >&6
14015else
14016  if test -n "$ac_ct_LIPO"; then
14017  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14018else
14019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14020for as_dir in $PATH
14021do
14022  IFS=$as_save_IFS
14023  test -z "$as_dir" && as_dir=.
14024    for ac_exec_ext in '' $ac_executable_extensions; do
14025  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14026    ac_cv_prog_ac_ct_LIPO="lipo"
14027    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14028    break 2
14029  fi
14030done
14031  done
14032IFS=$as_save_IFS
14033
14034fi
14035fi
14036ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14037if test -n "$ac_ct_LIPO"; then
14038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14039$as_echo "$ac_ct_LIPO" >&6; }
14040else
14041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14042$as_echo "no" >&6; }
14043fi
14044
14045  if test "x$ac_ct_LIPO" = x; then
14046    LIPO=":"
14047  else
14048    case $cross_compiling:$ac_tool_warned in
14049yes:)
14050{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14051$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14052ac_tool_warned=yes ;;
14053esac
14054    LIPO=$ac_ct_LIPO
14055  fi
14056else
14057  LIPO="$ac_cv_prog_LIPO"
14058fi
14059
14060    if test -n "$ac_tool_prefix"; then
14061  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14062set dummy ${ac_tool_prefix}otool; ac_word=$2
14063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14064$as_echo_n "checking for $ac_word... " >&6; }
14065if ${ac_cv_prog_OTOOL+:} false; then :
14066  $as_echo_n "(cached) " >&6
14067else
14068  if test -n "$OTOOL"; then
14069  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14070else
14071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14072for as_dir in $PATH
14073do
14074  IFS=$as_save_IFS
14075  test -z "$as_dir" && as_dir=.
14076    for ac_exec_ext in '' $ac_executable_extensions; do
14077  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14078    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14079    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14080    break 2
14081  fi
14082done
14083  done
14084IFS=$as_save_IFS
14085
14086fi
14087fi
14088OTOOL=$ac_cv_prog_OTOOL
14089if test -n "$OTOOL"; then
14090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14091$as_echo "$OTOOL" >&6; }
14092else
14093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14094$as_echo "no" >&6; }
14095fi
14096
14097
14098fi
14099if test -z "$ac_cv_prog_OTOOL"; then
14100  ac_ct_OTOOL=$OTOOL
14101  # Extract the first word of "otool", so it can be a program name with args.
14102set dummy otool; ac_word=$2
14103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14104$as_echo_n "checking for $ac_word... " >&6; }
14105if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
14106  $as_echo_n "(cached) " >&6
14107else
14108  if test -n "$ac_ct_OTOOL"; then
14109  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14110else
14111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14112for as_dir in $PATH
14113do
14114  IFS=$as_save_IFS
14115  test -z "$as_dir" && as_dir=.
14116    for ac_exec_ext in '' $ac_executable_extensions; do
14117  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14118    ac_cv_prog_ac_ct_OTOOL="otool"
14119    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14120    break 2
14121  fi
14122done
14123  done
14124IFS=$as_save_IFS
14125
14126fi
14127fi
14128ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14129if test -n "$ac_ct_OTOOL"; then
14130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14131$as_echo "$ac_ct_OTOOL" >&6; }
14132else
14133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14134$as_echo "no" >&6; }
14135fi
14136
14137  if test "x$ac_ct_OTOOL" = x; then
14138    OTOOL=":"
14139  else
14140    case $cross_compiling:$ac_tool_warned in
14141yes:)
14142{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14143$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14144ac_tool_warned=yes ;;
14145esac
14146    OTOOL=$ac_ct_OTOOL
14147  fi
14148else
14149  OTOOL="$ac_cv_prog_OTOOL"
14150fi
14151
14152    if test -n "$ac_tool_prefix"; then
14153  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14154set dummy ${ac_tool_prefix}otool64; ac_word=$2
14155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14156$as_echo_n "checking for $ac_word... " >&6; }
14157if ${ac_cv_prog_OTOOL64+:} false; then :
14158  $as_echo_n "(cached) " >&6
14159else
14160  if test -n "$OTOOL64"; then
14161  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14162else
14163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14164for as_dir in $PATH
14165do
14166  IFS=$as_save_IFS
14167  test -z "$as_dir" && as_dir=.
14168    for ac_exec_ext in '' $ac_executable_extensions; do
14169  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14170    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14171    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14172    break 2
14173  fi
14174done
14175  done
14176IFS=$as_save_IFS
14177
14178fi
14179fi
14180OTOOL64=$ac_cv_prog_OTOOL64
14181if test -n "$OTOOL64"; then
14182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14183$as_echo "$OTOOL64" >&6; }
14184else
14185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14186$as_echo "no" >&6; }
14187fi
14188
14189
14190fi
14191if test -z "$ac_cv_prog_OTOOL64"; then
14192  ac_ct_OTOOL64=$OTOOL64
14193  # Extract the first word of "otool64", so it can be a program name with args.
14194set dummy otool64; ac_word=$2
14195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14196$as_echo_n "checking for $ac_word... " >&6; }
14197if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
14198  $as_echo_n "(cached) " >&6
14199else
14200  if test -n "$ac_ct_OTOOL64"; then
14201  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14202else
14203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14204for as_dir in $PATH
14205do
14206  IFS=$as_save_IFS
14207  test -z "$as_dir" && as_dir=.
14208    for ac_exec_ext in '' $ac_executable_extensions; do
14209  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14210    ac_cv_prog_ac_ct_OTOOL64="otool64"
14211    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14212    break 2
14213  fi
14214done
14215  done
14216IFS=$as_save_IFS
14217
14218fi
14219fi
14220ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14221if test -n "$ac_ct_OTOOL64"; then
14222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14223$as_echo "$ac_ct_OTOOL64" >&6; }
14224else
14225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14226$as_echo "no" >&6; }
14227fi
14228
14229  if test "x$ac_ct_OTOOL64" = x; then
14230    OTOOL64=":"
14231  else
14232    case $cross_compiling:$ac_tool_warned in
14233yes:)
14234{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14235$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14236ac_tool_warned=yes ;;
14237esac
14238    OTOOL64=$ac_ct_OTOOL64
14239  fi
14240else
14241  OTOOL64="$ac_cv_prog_OTOOL64"
14242fi
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14271$as_echo_n "checking for -single_module linker flag... " >&6; }
14272if ${lt_cv_apple_cc_single_mod+:} false; then :
14273  $as_echo_n "(cached) " >&6
14274else
14275  lt_cv_apple_cc_single_mod=no
14276      if test -z "$LT_MULTI_MODULE"; then
14277	# By default we will add the -single_module flag. You can override
14278	# by either setting the environment variable LT_MULTI_MODULE
14279	# non-empty at configure time, or by adding -multi_module to the
14280	# link flags.
14281	rm -rf libconftest.dylib*
14282	echo "int foo(void){return 1;}" > conftest.c
14283	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14284-dynamiclib -Wl,-single_module conftest.c" >&5
14285	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14286	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14287        _lt_result=$?
14288	# If there is a non-empty error log, and "single_module"
14289	# appears in it, assume the flag caused a linker warning
14290        if test -s conftest.err && $GREP single_module conftest.err; then
14291	  cat conftest.err >&5
14292	# Otherwise, if the output was created with a 0 exit code from
14293	# the compiler, it worked.
14294	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14295	  lt_cv_apple_cc_single_mod=yes
14296	else
14297	  cat conftest.err >&5
14298	fi
14299	rm -rf libconftest.dylib*
14300	rm -f conftest.*
14301      fi
14302fi
14303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14304$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14305
14306    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14307$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14308if ${lt_cv_ld_exported_symbols_list+:} false; then :
14309  $as_echo_n "(cached) " >&6
14310else
14311  lt_cv_ld_exported_symbols_list=no
14312      save_LDFLAGS=$LDFLAGS
14313      echo "_main" > conftest.sym
14314      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14315      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14316/* end confdefs.h.  */
14317
14318int
14319main ()
14320{
14321
14322  ;
14323  return 0;
14324}
14325_ACEOF
14326if ac_fn_c_try_link "$LINENO"; then :
14327  lt_cv_ld_exported_symbols_list=yes
14328else
14329  lt_cv_ld_exported_symbols_list=no
14330fi
14331rm -f core conftest.err conftest.$ac_objext \
14332    conftest$ac_exeext conftest.$ac_ext
14333	LDFLAGS=$save_LDFLAGS
14334
14335fi
14336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14337$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14338
14339    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14340$as_echo_n "checking for -force_load linker flag... " >&6; }
14341if ${lt_cv_ld_force_load+:} false; then :
14342  $as_echo_n "(cached) " >&6
14343else
14344  lt_cv_ld_force_load=no
14345      cat > conftest.c << _LT_EOF
14346int forced_loaded() { return 2;}
14347_LT_EOF
14348      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14349      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14350      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
14351      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
14352      echo "$RANLIB libconftest.a" >&5
14353      $RANLIB libconftest.a 2>&5
14354      cat > conftest.c << _LT_EOF
14355int main() { return 0;}
14356_LT_EOF
14357      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14358      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14359      _lt_result=$?
14360      if test -s conftest.err && $GREP force_load conftest.err; then
14361	cat conftest.err >&5
14362      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14363	lt_cv_ld_force_load=yes
14364      else
14365	cat conftest.err >&5
14366      fi
14367        rm -f conftest.err libconftest.a conftest conftest.c
14368        rm -rf conftest.dSYM
14369
14370fi
14371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14372$as_echo "$lt_cv_ld_force_load" >&6; }
14373    case $host_os in
14374    rhapsody* | darwin1.[012])
14375      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14376    darwin1.*)
14377      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14378    darwin*) # darwin 5.x on
14379      # if running on 10.5 or later, the deployment target defaults
14380      # to the OS version, if on x86, and 10.4, the deployment
14381      # target defaults to 10.4. Don't you love it?
14382      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14383	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14384	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14385	10.[012][,.]*)
14386	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14387	10.*)
14388	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14389      esac
14390    ;;
14391  esac
14392    if test yes = "$lt_cv_apple_cc_single_mod"; then
14393      _lt_dar_single_mod='$single_module'
14394    fi
14395    if test yes = "$lt_cv_ld_exported_symbols_list"; then
14396      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14397    else
14398      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14399    fi
14400    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14401      _lt_dsymutil='~$DSYMUTIL $lib || :'
14402    else
14403      _lt_dsymutil=
14404    fi
14405    ;;
14406  esac
14407
14408# func_munge_path_list VARIABLE PATH
14409# -----------------------------------
14410# VARIABLE is name of variable containing _space_ separated list of
14411# directories to be munged by the contents of PATH, which is string
14412# having a format:
14413# "DIR[:DIR]:"
14414#       string "DIR[ DIR]" will be prepended to VARIABLE
14415# ":DIR[:DIR]"
14416#       string "DIR[ DIR]" will be appended to VARIABLE
14417# "DIRP[:DIRP]::[DIRA:]DIRA"
14418#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14419#       "DIRA[ DIRA]" will be appended to VARIABLE
14420# "DIR[:DIR]"
14421#       VARIABLE will be replaced by "DIR[ DIR]"
14422func_munge_path_list ()
14423{
14424    case x$2 in
14425    x)
14426        ;;
14427    *:)
14428        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14429        ;;
14430    x:*)
14431        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14432        ;;
14433    *::*)
14434        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14435        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14436        ;;
14437    *)
14438        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14439        ;;
14440    esac
14441}
14442
14443for ac_header in dlfcn.h
14444do :
14445  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14446"
14447if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14448  cat >>confdefs.h <<_ACEOF
14449#define HAVE_DLFCN_H 1
14450_ACEOF
14451
14452fi
14453
14454done
14455
14456
14457
14458
14459
14460# Set options
14461
14462
14463
14464        enable_dlopen=no
14465
14466
14467  enable_win32_dll=no
14468
14469
14470            # Check whether --enable-shared was given.
14471if test "${enable_shared+set}" = set; then :
14472  enableval=$enable_shared; p=${PACKAGE-default}
14473    case $enableval in
14474    yes) enable_shared=yes ;;
14475    no) enable_shared=no ;;
14476    *)
14477      enable_shared=no
14478      # Look at the argument we got.  We use all the common list separators.
14479      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14480      for pkg in $enableval; do
14481	IFS=$lt_save_ifs
14482	if test "X$pkg" = "X$p"; then
14483	  enable_shared=yes
14484	fi
14485      done
14486      IFS=$lt_save_ifs
14487      ;;
14488    esac
14489else
14490  enable_shared=yes
14491fi
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503# Check whether --with-pic was given.
14504if test "${with_pic+set}" = set; then :
14505  withval=$with_pic; lt_p=${PACKAGE-default}
14506    case $withval in
14507    yes|no) pic_mode=$withval ;;
14508    *)
14509      pic_mode=default
14510      # Look at the argument we got.  We use all the common list separators.
14511      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14512      for lt_pkg in $withval; do
14513	IFS=$lt_save_ifs
14514	if test "X$lt_pkg" = "X$lt_p"; then
14515	  pic_mode=yes
14516	fi
14517      done
14518      IFS=$lt_save_ifs
14519      ;;
14520    esac
14521else
14522  pic_mode=default
14523fi
14524
14525
14526
14527
14528
14529
14530
14531
14532  # Check whether --enable-fast-install was given.
14533if test "${enable_fast_install+set}" = set; then :
14534  enableval=$enable_fast_install; p=${PACKAGE-default}
14535    case $enableval in
14536    yes) enable_fast_install=yes ;;
14537    no) enable_fast_install=no ;;
14538    *)
14539      enable_fast_install=no
14540      # Look at the argument we got.  We use all the common list separators.
14541      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14542      for pkg in $enableval; do
14543	IFS=$lt_save_ifs
14544	if test "X$pkg" = "X$p"; then
14545	  enable_fast_install=yes
14546	fi
14547      done
14548      IFS=$lt_save_ifs
14549      ;;
14550    esac
14551else
14552  enable_fast_install=yes
14553fi
14554
14555
14556
14557
14558
14559
14560
14561
14562  shared_archive_member_spec=
14563case $host,$enable_shared in
14564power*-*-aix[5-9]*,yes)
14565  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14566$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14567
14568# Check whether --with-aix-soname was given.
14569if test "${with_aix_soname+set}" = set; then :
14570  withval=$with_aix_soname; case $withval in
14571    aix|svr4|both)
14572      ;;
14573    *)
14574      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14575      ;;
14576    esac
14577    lt_cv_with_aix_soname=$with_aix_soname
14578else
14579  if ${lt_cv_with_aix_soname+:} false; then :
14580  $as_echo_n "(cached) " >&6
14581else
14582  lt_cv_with_aix_soname=aix
14583fi
14584
14585    with_aix_soname=$lt_cv_with_aix_soname
14586fi
14587
14588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14589$as_echo "$with_aix_soname" >&6; }
14590  if test aix != "$with_aix_soname"; then
14591    # For the AIX way of multilib, we name the shared archive member
14592    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14593    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14594    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14595    # the AIX toolchain works better with OBJECT_MODE set (default 32).
14596    if test 64 = "${OBJECT_MODE-32}"; then
14597      shared_archive_member_spec=shr_64
14598    else
14599      shared_archive_member_spec=shr
14600    fi
14601  fi
14602  ;;
14603*)
14604  with_aix_soname=aix
14605  ;;
14606esac
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617# This can be used to rebuild libtool when needed
14618LIBTOOL_DEPS=$ltmain
14619
14620# Always use our own libtool.
14621LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652test -z "$LN_S" && LN_S="ln -s"
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667if test -n "${ZSH_VERSION+set}"; then
14668   setopt NO_GLOB_SUBST
14669fi
14670
14671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14672$as_echo_n "checking for objdir... " >&6; }
14673if ${lt_cv_objdir+:} false; then :
14674  $as_echo_n "(cached) " >&6
14675else
14676  rm -f .libs 2>/dev/null
14677mkdir .libs 2>/dev/null
14678if test -d .libs; then
14679  lt_cv_objdir=.libs
14680else
14681  # MS-DOS does not allow filenames that begin with a dot.
14682  lt_cv_objdir=_libs
14683fi
14684rmdir .libs 2>/dev/null
14685fi
14686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14687$as_echo "$lt_cv_objdir" >&6; }
14688objdir=$lt_cv_objdir
14689
14690
14691
14692
14693
14694cat >>confdefs.h <<_ACEOF
14695#define LT_OBJDIR "$lt_cv_objdir/"
14696_ACEOF
14697
14698
14699
14700
14701case $host_os in
14702aix3*)
14703  # AIX sometimes has problems with the GCC collect2 program.  For some
14704  # reason, if we set the COLLECT_NAMES environment variable, the problems
14705  # vanish in a puff of smoke.
14706  if test set != "${COLLECT_NAMES+set}"; then
14707    COLLECT_NAMES=
14708    export COLLECT_NAMES
14709  fi
14710  ;;
14711esac
14712
14713# Global variables:
14714ofile=libtool
14715can_build_shared=yes
14716
14717# All known linkers require a '.a' archive for static linking (except MSVC,
14718# which needs '.lib').
14719libext=a
14720
14721with_gnu_ld=$lt_cv_prog_gnu_ld
14722
14723old_CC=$CC
14724old_CFLAGS=$CFLAGS
14725
14726# Set sane defaults for various variables
14727test -z "$CC" && CC=cc
14728test -z "$LTCC" && LTCC=$CC
14729test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14730test -z "$LD" && LD=ld
14731test -z "$ac_objext" && ac_objext=o
14732
14733func_cc_basename $compiler
14734cc_basename=$func_cc_basename_result
14735
14736
14737# Only perform the check for file, if the check method requires it
14738test -z "$MAGIC_CMD" && MAGIC_CMD=file
14739case $deplibs_check_method in
14740file_magic*)
14741  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14742    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14743$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14744if ${lt_cv_path_MAGIC_CMD+:} false; then :
14745  $as_echo_n "(cached) " >&6
14746else
14747  case $MAGIC_CMD in
14748[\\/*] |  ?:[\\/]*)
14749  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14750  ;;
14751*)
14752  lt_save_MAGIC_CMD=$MAGIC_CMD
14753  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14754  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14755  for ac_dir in $ac_dummy; do
14756    IFS=$lt_save_ifs
14757    test -z "$ac_dir" && ac_dir=.
14758    if test -f "$ac_dir/${ac_tool_prefix}file"; then
14759      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14760      if test -n "$file_magic_test_file"; then
14761	case $deplibs_check_method in
14762	"file_magic "*)
14763	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14764	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14765	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14766	    $EGREP "$file_magic_regex" > /dev/null; then
14767	    :
14768	  else
14769	    cat <<_LT_EOF 1>&2
14770
14771*** Warning: the command libtool uses to detect shared libraries,
14772*** $file_magic_cmd, produces output that libtool cannot recognize.
14773*** The result is that libtool may fail to recognize shared libraries
14774*** as such.  This will affect the creation of libtool libraries that
14775*** depend on shared libraries, but programs linked with such libtool
14776*** libraries will work regardless of this problem.  Nevertheless, you
14777*** may want to report the problem to your system manager and/or to
14778*** bug-libtool@gnu.org
14779
14780_LT_EOF
14781	  fi ;;
14782	esac
14783      fi
14784      break
14785    fi
14786  done
14787  IFS=$lt_save_ifs
14788  MAGIC_CMD=$lt_save_MAGIC_CMD
14789  ;;
14790esac
14791fi
14792
14793MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14794if test -n "$MAGIC_CMD"; then
14795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14796$as_echo "$MAGIC_CMD" >&6; }
14797else
14798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14799$as_echo "no" >&6; }
14800fi
14801
14802
14803
14804
14805
14806if test -z "$lt_cv_path_MAGIC_CMD"; then
14807  if test -n "$ac_tool_prefix"; then
14808    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14809$as_echo_n "checking for file... " >&6; }
14810if ${lt_cv_path_MAGIC_CMD+:} false; then :
14811  $as_echo_n "(cached) " >&6
14812else
14813  case $MAGIC_CMD in
14814[\\/*] |  ?:[\\/]*)
14815  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14816  ;;
14817*)
14818  lt_save_MAGIC_CMD=$MAGIC_CMD
14819  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14820  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14821  for ac_dir in $ac_dummy; do
14822    IFS=$lt_save_ifs
14823    test -z "$ac_dir" && ac_dir=.
14824    if test -f "$ac_dir/file"; then
14825      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14826      if test -n "$file_magic_test_file"; then
14827	case $deplibs_check_method in
14828	"file_magic "*)
14829	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14830	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14831	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14832	    $EGREP "$file_magic_regex" > /dev/null; then
14833	    :
14834	  else
14835	    cat <<_LT_EOF 1>&2
14836
14837*** Warning: the command libtool uses to detect shared libraries,
14838*** $file_magic_cmd, produces output that libtool cannot recognize.
14839*** The result is that libtool may fail to recognize shared libraries
14840*** as such.  This will affect the creation of libtool libraries that
14841*** depend on shared libraries, but programs linked with such libtool
14842*** libraries will work regardless of this problem.  Nevertheless, you
14843*** may want to report the problem to your system manager and/or to
14844*** bug-libtool@gnu.org
14845
14846_LT_EOF
14847	  fi ;;
14848	esac
14849      fi
14850      break
14851    fi
14852  done
14853  IFS=$lt_save_ifs
14854  MAGIC_CMD=$lt_save_MAGIC_CMD
14855  ;;
14856esac
14857fi
14858
14859MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14860if test -n "$MAGIC_CMD"; then
14861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14862$as_echo "$MAGIC_CMD" >&6; }
14863else
14864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14865$as_echo "no" >&6; }
14866fi
14867
14868
14869  else
14870    MAGIC_CMD=:
14871  fi
14872fi
14873
14874  fi
14875  ;;
14876esac
14877
14878# Use C for the default configuration in the libtool script
14879
14880lt_save_CC=$CC
14881ac_ext=c
14882ac_cpp='$CPP $CPPFLAGS'
14883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14885ac_compiler_gnu=$ac_cv_c_compiler_gnu
14886
14887
14888# Source file extension for C test sources.
14889ac_ext=c
14890
14891# Object file extension for compiled C test sources.
14892objext=o
14893objext=$objext
14894
14895# Code to be used in simple compile tests
14896lt_simple_compile_test_code="int some_variable = 0;"
14897
14898# Code to be used in simple link tests
14899lt_simple_link_test_code='int main(){return(0);}'
14900
14901
14902
14903
14904
14905
14906
14907# If no C compiler was specified, use CC.
14908LTCC=${LTCC-"$CC"}
14909
14910# If no C compiler flags were specified, use CFLAGS.
14911LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14912
14913# Allow CC to be a program name with arguments.
14914compiler=$CC
14915
14916# Save the default compiler, since it gets overwritten when the other
14917# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14918compiler_DEFAULT=$CC
14919
14920# save warnings/boilerplate of simple test code
14921ac_outfile=conftest.$ac_objext
14922echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14923eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14924_lt_compiler_boilerplate=`cat conftest.err`
14925$RM conftest*
14926
14927ac_outfile=conftest.$ac_objext
14928echo "$lt_simple_link_test_code" >conftest.$ac_ext
14929eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14930_lt_linker_boilerplate=`cat conftest.err`
14931$RM -r conftest*
14932
14933
14934## CAVEAT EMPTOR:
14935## There is no encapsulation within the following macros, do not change
14936## the running order or otherwise move them around unless you know exactly
14937## what you are doing...
14938if test -n "$compiler"; then
14939
14940lt_prog_compiler_no_builtin_flag=
14941
14942if test yes = "$GCC"; then
14943  case $cc_basename in
14944  nvcc*)
14945    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14946  *)
14947    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14948  esac
14949
14950  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14951$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14952if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14953  $as_echo_n "(cached) " >&6
14954else
14955  lt_cv_prog_compiler_rtti_exceptions=no
14956   ac_outfile=conftest.$ac_objext
14957   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14958   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
14959   # Insert the option either (1) after the last *FLAGS variable, or
14960   # (2) before a word containing "conftest.", or (3) at the end.
14961   # Note that $ac_compile itself does not contain backslashes and begins
14962   # with a dollar sign (not a hyphen), so the echo should work correctly.
14963   # The option is referenced via a variable to avoid confusing sed.
14964   lt_compile=`echo "$ac_compile" | $SED \
14965   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14966   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14967   -e 's:$: $lt_compiler_flag:'`
14968   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14969   (eval "$lt_compile" 2>conftest.err)
14970   ac_status=$?
14971   cat conftest.err >&5
14972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973   if (exit $ac_status) && test -s "$ac_outfile"; then
14974     # The compiler can only warn and ignore the option if not recognized
14975     # So say no if there are warnings other than the usual output.
14976     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14977     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14978     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14979       lt_cv_prog_compiler_rtti_exceptions=yes
14980     fi
14981   fi
14982   $RM conftest*
14983
14984fi
14985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14986$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14987
14988if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14989    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14990else
14991    :
14992fi
14993
14994fi
14995
14996
14997
14998
14999
15000
15001  lt_prog_compiler_wl=
15002lt_prog_compiler_pic=
15003lt_prog_compiler_static=
15004
15005
15006  if test yes = "$GCC"; then
15007    lt_prog_compiler_wl='-Wl,'
15008    lt_prog_compiler_static='-static'
15009
15010    case $host_os in
15011      aix*)
15012      # All AIX code is PIC.
15013      if test ia64 = "$host_cpu"; then
15014	# AIX 5 now supports IA64 processor
15015	lt_prog_compiler_static='-Bstatic'
15016      fi
15017      lt_prog_compiler_pic='-fPIC'
15018      ;;
15019
15020    amigaos*)
15021      case $host_cpu in
15022      powerpc)
15023            # see comment about AmigaOS4 .so support
15024            lt_prog_compiler_pic='-fPIC'
15025        ;;
15026      m68k)
15027            # FIXME: we need at least 68020 code to build shared libraries, but
15028            # adding the '-m68020' flag to GCC prevents building anything better,
15029            # like '-m68040'.
15030            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15031        ;;
15032      esac
15033      ;;
15034
15035    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15036      # PIC is the default for these OSes.
15037      ;;
15038
15039    mingw* | cygwin* | pw32* | os2* | cegcc*)
15040      # This hack is so that the source file can tell whether it is being
15041      # built for inclusion in a dll (and should export symbols for example).
15042      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15043      # (--disable-auto-import) libraries
15044      lt_prog_compiler_pic='-DDLL_EXPORT'
15045      case $host_os in
15046      os2*)
15047	lt_prog_compiler_static='$wl-static'
15048	;;
15049      esac
15050      ;;
15051
15052    darwin* | rhapsody*)
15053      # PIC is the default on this platform
15054      # Common symbols not allowed in MH_DYLIB files
15055      lt_prog_compiler_pic='-fno-common'
15056      ;;
15057
15058    haiku*)
15059      # PIC is the default for Haiku.
15060      # The "-static" flag exists, but is broken.
15061      lt_prog_compiler_static=
15062      ;;
15063
15064    hpux*)
15065      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15066      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15067      # sets the default TLS model and affects inlining.
15068      case $host_cpu in
15069      hppa*64*)
15070	# +Z the default
15071	;;
15072      *)
15073	lt_prog_compiler_pic='-fPIC'
15074	;;
15075      esac
15076      ;;
15077
15078    interix[3-9]*)
15079      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15080      # Instead, we relocate shared libraries at runtime.
15081      ;;
15082
15083    msdosdjgpp*)
15084      # Just because we use GCC doesn't mean we suddenly get shared libraries
15085      # on systems that don't support them.
15086      lt_prog_compiler_can_build_shared=no
15087      enable_shared=no
15088      ;;
15089
15090    *nto* | *qnx*)
15091      # QNX uses GNU C++, but need to define -shared option too, otherwise
15092      # it will coredump.
15093      lt_prog_compiler_pic='-fPIC -shared'
15094      ;;
15095
15096    sysv4*MP*)
15097      if test -d /usr/nec; then
15098	lt_prog_compiler_pic=-Kconform_pic
15099      fi
15100      ;;
15101
15102    *)
15103      lt_prog_compiler_pic='-fPIC'
15104      ;;
15105    esac
15106
15107    case $cc_basename in
15108    nvcc*) # Cuda Compiler Driver 2.2
15109      lt_prog_compiler_wl='-Xlinker '
15110      if test -n "$lt_prog_compiler_pic"; then
15111        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15112      fi
15113      ;;
15114    esac
15115  else
15116    # PORTME Check for flag to pass linker flags through the system compiler.
15117    case $host_os in
15118    aix*)
15119      lt_prog_compiler_wl='-Wl,'
15120      if test ia64 = "$host_cpu"; then
15121	# AIX 5 now supports IA64 processor
15122	lt_prog_compiler_static='-Bstatic'
15123      else
15124	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15125      fi
15126      ;;
15127
15128    darwin* | rhapsody*)
15129      # PIC is the default on this platform
15130      # Common symbols not allowed in MH_DYLIB files
15131      lt_prog_compiler_pic='-fno-common'
15132      case $cc_basename in
15133      nagfor*)
15134        # NAG Fortran compiler
15135        lt_prog_compiler_wl='-Wl,-Wl,,'
15136        lt_prog_compiler_pic='-PIC'
15137        lt_prog_compiler_static='-Bstatic'
15138        ;;
15139      esac
15140      ;;
15141
15142    mingw* | cygwin* | pw32* | os2* | cegcc*)
15143      # This hack is so that the source file can tell whether it is being
15144      # built for inclusion in a dll (and should export symbols for example).
15145      lt_prog_compiler_pic='-DDLL_EXPORT'
15146      case $host_os in
15147      os2*)
15148	lt_prog_compiler_static='$wl-static'
15149	;;
15150      esac
15151      ;;
15152
15153    hpux9* | hpux10* | hpux11*)
15154      lt_prog_compiler_wl='-Wl,'
15155      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15156      # not for PA HP-UX.
15157      case $host_cpu in
15158      hppa*64*|ia64*)
15159	# +Z the default
15160	;;
15161      *)
15162	lt_prog_compiler_pic='+Z'
15163	;;
15164      esac
15165      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15166      lt_prog_compiler_static='$wl-a ${wl}archive'
15167      ;;
15168
15169    irix5* | irix6* | nonstopux*)
15170      lt_prog_compiler_wl='-Wl,'
15171      # PIC (with -KPIC) is the default.
15172      lt_prog_compiler_static='-non_shared'
15173      ;;
15174
15175    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15176      case $cc_basename in
15177      # old Intel for x86_64, which still supported -KPIC.
15178      ecc*)
15179	lt_prog_compiler_wl='-Wl,'
15180	lt_prog_compiler_pic='-KPIC'
15181	lt_prog_compiler_static='-static'
15182        ;;
15183      # icc used to be incompatible with GCC.
15184      # ICC 10 doesn't accept -KPIC any more.
15185      icc* | ifort*)
15186	lt_prog_compiler_wl='-Wl,'
15187	lt_prog_compiler_pic='-fPIC'
15188	lt_prog_compiler_static='-static'
15189        ;;
15190      # Lahey Fortran 8.1.
15191      lf95*)
15192	lt_prog_compiler_wl='-Wl,'
15193	lt_prog_compiler_pic='--shared'
15194	lt_prog_compiler_static='--static'
15195	;;
15196      nagfor*)
15197	# NAG Fortran compiler
15198	lt_prog_compiler_wl='-Wl,-Wl,,'
15199	lt_prog_compiler_pic='-PIC'
15200	lt_prog_compiler_static='-Bstatic'
15201	;;
15202      tcc*)
15203	# Fabrice Bellard et al's Tiny C Compiler
15204	lt_prog_compiler_wl='-Wl,'
15205	lt_prog_compiler_pic='-fPIC'
15206	lt_prog_compiler_static='-static'
15207	;;
15208      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15209        # Portland Group compilers (*not* the Pentium gcc compiler,
15210	# which looks to be a dead project)
15211	lt_prog_compiler_wl='-Wl,'
15212	lt_prog_compiler_pic='-fpic'
15213	lt_prog_compiler_static='-Bstatic'
15214        ;;
15215      ccc*)
15216        lt_prog_compiler_wl='-Wl,'
15217        # All Alpha code is PIC.
15218        lt_prog_compiler_static='-non_shared'
15219        ;;
15220      xl* | bgxl* | bgf* | mpixl*)
15221	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15222	lt_prog_compiler_wl='-Wl,'
15223	lt_prog_compiler_pic='-qpic'
15224	lt_prog_compiler_static='-qstaticlink'
15225	;;
15226      *)
15227	case `$CC -V 2>&1 | sed 5q` in
15228	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15229	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
15230	  lt_prog_compiler_pic='-KPIC'
15231	  lt_prog_compiler_static='-Bstatic'
15232	  lt_prog_compiler_wl=''
15233	  ;;
15234	*Sun\ F* | *Sun*Fortran*)
15235	  lt_prog_compiler_pic='-KPIC'
15236	  lt_prog_compiler_static='-Bstatic'
15237	  lt_prog_compiler_wl='-Qoption ld '
15238	  ;;
15239	*Sun\ C*)
15240	  # Sun C 5.9
15241	  lt_prog_compiler_pic='-KPIC'
15242	  lt_prog_compiler_static='-Bstatic'
15243	  lt_prog_compiler_wl='-Wl,'
15244	  ;;
15245        *Intel*\ [CF]*Compiler*)
15246	  lt_prog_compiler_wl='-Wl,'
15247	  lt_prog_compiler_pic='-fPIC'
15248	  lt_prog_compiler_static='-static'
15249	  ;;
15250	*Portland\ Group*)
15251	  lt_prog_compiler_wl='-Wl,'
15252	  lt_prog_compiler_pic='-fpic'
15253	  lt_prog_compiler_static='-Bstatic'
15254	  ;;
15255	esac
15256	;;
15257      esac
15258      ;;
15259
15260    newsos6)
15261      lt_prog_compiler_pic='-KPIC'
15262      lt_prog_compiler_static='-Bstatic'
15263      ;;
15264
15265    *nto* | *qnx*)
15266      # QNX uses GNU C++, but need to define -shared option too, otherwise
15267      # it will coredump.
15268      lt_prog_compiler_pic='-fPIC -shared'
15269      ;;
15270
15271    osf3* | osf4* | osf5*)
15272      lt_prog_compiler_wl='-Wl,'
15273      # All OSF/1 code is PIC.
15274      lt_prog_compiler_static='-non_shared'
15275      ;;
15276
15277    rdos*)
15278      lt_prog_compiler_static='-non_shared'
15279      ;;
15280
15281    solaris*)
15282      lt_prog_compiler_pic='-KPIC'
15283      lt_prog_compiler_static='-Bstatic'
15284      case $cc_basename in
15285      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15286	lt_prog_compiler_wl='-Qoption ld ';;
15287      *)
15288	lt_prog_compiler_wl='-Wl,';;
15289      esac
15290      ;;
15291
15292    sunos4*)
15293      lt_prog_compiler_wl='-Qoption ld '
15294      lt_prog_compiler_pic='-PIC'
15295      lt_prog_compiler_static='-Bstatic'
15296      ;;
15297
15298    sysv4 | sysv4.2uw2* | sysv4.3*)
15299      lt_prog_compiler_wl='-Wl,'
15300      lt_prog_compiler_pic='-KPIC'
15301      lt_prog_compiler_static='-Bstatic'
15302      ;;
15303
15304    sysv4*MP*)
15305      if test -d /usr/nec; then
15306	lt_prog_compiler_pic='-Kconform_pic'
15307	lt_prog_compiler_static='-Bstatic'
15308      fi
15309      ;;
15310
15311    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15312      lt_prog_compiler_wl='-Wl,'
15313      lt_prog_compiler_pic='-KPIC'
15314      lt_prog_compiler_static='-Bstatic'
15315      ;;
15316
15317    unicos*)
15318      lt_prog_compiler_wl='-Wl,'
15319      lt_prog_compiler_can_build_shared=no
15320      ;;
15321
15322    uts4*)
15323      lt_prog_compiler_pic='-pic'
15324      lt_prog_compiler_static='-Bstatic'
15325      ;;
15326
15327    *)
15328      lt_prog_compiler_can_build_shared=no
15329      ;;
15330    esac
15331  fi
15332
15333case $host_os in
15334  # For platforms that do not support PIC, -DPIC is meaningless:
15335  *djgpp*)
15336    lt_prog_compiler_pic=
15337    ;;
15338  *)
15339    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15340    ;;
15341esac
15342
15343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15344$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15345if ${lt_cv_prog_compiler_pic+:} false; then :
15346  $as_echo_n "(cached) " >&6
15347else
15348  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15349fi
15350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15351$as_echo "$lt_cv_prog_compiler_pic" >&6; }
15352lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15353
15354#
15355# Check to make sure the PIC flag actually works.
15356#
15357if test -n "$lt_prog_compiler_pic"; then
15358  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15359$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15360if ${lt_cv_prog_compiler_pic_works+:} false; then :
15361  $as_echo_n "(cached) " >&6
15362else
15363  lt_cv_prog_compiler_pic_works=no
15364   ac_outfile=conftest.$ac_objext
15365   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15366   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15367   # Insert the option either (1) after the last *FLAGS variable, or
15368   # (2) before a word containing "conftest.", or (3) at the end.
15369   # Note that $ac_compile itself does not contain backslashes and begins
15370   # with a dollar sign (not a hyphen), so the echo should work correctly.
15371   # The option is referenced via a variable to avoid confusing sed.
15372   lt_compile=`echo "$ac_compile" | $SED \
15373   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15374   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15375   -e 's:$: $lt_compiler_flag:'`
15376   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15377   (eval "$lt_compile" 2>conftest.err)
15378   ac_status=$?
15379   cat conftest.err >&5
15380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381   if (exit $ac_status) && test -s "$ac_outfile"; then
15382     # The compiler can only warn and ignore the option if not recognized
15383     # So say no if there are warnings other than the usual output.
15384     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15385     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15386     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15387       lt_cv_prog_compiler_pic_works=yes
15388     fi
15389   fi
15390   $RM conftest*
15391
15392fi
15393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15394$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15395
15396if test yes = "$lt_cv_prog_compiler_pic_works"; then
15397    case $lt_prog_compiler_pic in
15398     "" | " "*) ;;
15399     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15400     esac
15401else
15402    lt_prog_compiler_pic=
15403     lt_prog_compiler_can_build_shared=no
15404fi
15405
15406fi
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418#
15419# Check to make sure the static flag actually works.
15420#
15421wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15423$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15424if ${lt_cv_prog_compiler_static_works+:} false; then :
15425  $as_echo_n "(cached) " >&6
15426else
15427  lt_cv_prog_compiler_static_works=no
15428   save_LDFLAGS=$LDFLAGS
15429   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15430   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15431   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15432     # The linker can only warn and ignore the option if not recognized
15433     # So say no if there are warnings
15434     if test -s conftest.err; then
15435       # Append any errors to the config.log.
15436       cat conftest.err 1>&5
15437       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15438       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15439       if diff conftest.exp conftest.er2 >/dev/null; then
15440         lt_cv_prog_compiler_static_works=yes
15441       fi
15442     else
15443       lt_cv_prog_compiler_static_works=yes
15444     fi
15445   fi
15446   $RM -r conftest*
15447   LDFLAGS=$save_LDFLAGS
15448
15449fi
15450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15451$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15452
15453if test yes = "$lt_cv_prog_compiler_static_works"; then
15454    :
15455else
15456    lt_prog_compiler_static=
15457fi
15458
15459
15460
15461
15462
15463
15464
15465  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15466$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15467if ${lt_cv_prog_compiler_c_o+:} false; then :
15468  $as_echo_n "(cached) " >&6
15469else
15470  lt_cv_prog_compiler_c_o=no
15471   $RM -r conftest 2>/dev/null
15472   mkdir conftest
15473   cd conftest
15474   mkdir out
15475   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15476
15477   lt_compiler_flag="-o out/conftest2.$ac_objext"
15478   # Insert the option either (1) after the last *FLAGS variable, or
15479   # (2) before a word containing "conftest.", or (3) at the end.
15480   # Note that $ac_compile itself does not contain backslashes and begins
15481   # with a dollar sign (not a hyphen), so the echo should work correctly.
15482   lt_compile=`echo "$ac_compile" | $SED \
15483   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15484   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15485   -e 's:$: $lt_compiler_flag:'`
15486   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15487   (eval "$lt_compile" 2>out/conftest.err)
15488   ac_status=$?
15489   cat out/conftest.err >&5
15490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15492   then
15493     # The compiler can only warn and ignore the option if not recognized
15494     # So say no if there are warnings
15495     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15496     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15497     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15498       lt_cv_prog_compiler_c_o=yes
15499     fi
15500   fi
15501   chmod u+w . 2>&5
15502   $RM conftest*
15503   # SGI C++ compiler will create directory out/ii_files/ for
15504   # template instantiation
15505   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15506   $RM out/* && rmdir out
15507   cd ..
15508   $RM -r conftest
15509   $RM conftest*
15510
15511fi
15512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15513$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15514
15515
15516
15517
15518
15519
15520  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15521$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15522if ${lt_cv_prog_compiler_c_o+:} false; then :
15523  $as_echo_n "(cached) " >&6
15524else
15525  lt_cv_prog_compiler_c_o=no
15526   $RM -r conftest 2>/dev/null
15527   mkdir conftest
15528   cd conftest
15529   mkdir out
15530   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15531
15532   lt_compiler_flag="-o out/conftest2.$ac_objext"
15533   # Insert the option either (1) after the last *FLAGS variable, or
15534   # (2) before a word containing "conftest.", or (3) at the end.
15535   # Note that $ac_compile itself does not contain backslashes and begins
15536   # with a dollar sign (not a hyphen), so the echo should work correctly.
15537   lt_compile=`echo "$ac_compile" | $SED \
15538   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15539   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15540   -e 's:$: $lt_compiler_flag:'`
15541   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15542   (eval "$lt_compile" 2>out/conftest.err)
15543   ac_status=$?
15544   cat out/conftest.err >&5
15545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15547   then
15548     # The compiler can only warn and ignore the option if not recognized
15549     # So say no if there are warnings
15550     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15551     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15552     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15553       lt_cv_prog_compiler_c_o=yes
15554     fi
15555   fi
15556   chmod u+w . 2>&5
15557   $RM conftest*
15558   # SGI C++ compiler will create directory out/ii_files/ for
15559   # template instantiation
15560   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15561   $RM out/* && rmdir out
15562   cd ..
15563   $RM -r conftest
15564   $RM conftest*
15565
15566fi
15567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15568$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15569
15570
15571
15572
15573hard_links=nottested
15574if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15575  # do not overwrite the value of need_locks provided by the user
15576  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15577$as_echo_n "checking if we can lock with hard links... " >&6; }
15578  hard_links=yes
15579  $RM conftest*
15580  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15581  touch conftest.a
15582  ln conftest.a conftest.b 2>&5 || hard_links=no
15583  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15585$as_echo "$hard_links" >&6; }
15586  if test no = "$hard_links"; then
15587    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15588$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15589    need_locks=warn
15590  fi
15591else
15592  need_locks=no
15593fi
15594
15595
15596
15597
15598
15599
15600  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15601$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15602
15603  runpath_var=
15604  allow_undefined_flag=
15605  always_export_symbols=no
15606  archive_cmds=
15607  archive_expsym_cmds=
15608  compiler_needs_object=no
15609  enable_shared_with_static_runtimes=no
15610  export_dynamic_flag_spec=
15611  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15612  hardcode_automatic=no
15613  hardcode_direct=no
15614  hardcode_direct_absolute=no
15615  hardcode_libdir_flag_spec=
15616  hardcode_libdir_separator=
15617  hardcode_minus_L=no
15618  hardcode_shlibpath_var=unsupported
15619  inherit_rpath=no
15620  link_all_deplibs=unknown
15621  module_cmds=
15622  module_expsym_cmds=
15623  old_archive_from_new_cmds=
15624  old_archive_from_expsyms_cmds=
15625  thread_safe_flag_spec=
15626  whole_archive_flag_spec=
15627  # include_expsyms should be a list of space-separated symbols to be *always*
15628  # included in the symbol list
15629  include_expsyms=
15630  # exclude_expsyms can be an extended regexp of symbols to exclude
15631  # it will be wrapped by ' (' and ')$', so one must not match beginning or
15632  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15633  # as well as any symbol that contains 'd'.
15634  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15635  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15636  # platforms (ab)use it in PIC code, but their linkers get confused if
15637  # the symbol is explicitly referenced.  Since portable code cannot
15638  # rely on this symbol name, it's probably fine to never include it in
15639  # preloaded symbol tables.
15640  # Exclude shared library initialization/finalization symbols.
15641  extract_expsyms_cmds=
15642
15643  case $host_os in
15644  cygwin* | mingw* | pw32* | cegcc*)
15645    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15646    # When not using gcc, we currently assume that we are using
15647    # Microsoft Visual C++.
15648    if test yes != "$GCC"; then
15649      with_gnu_ld=no
15650    fi
15651    ;;
15652  interix*)
15653    # we just hope/assume this is gcc and not c89 (= MSVC++)
15654    with_gnu_ld=yes
15655    ;;
15656  openbsd* | bitrig*)
15657    with_gnu_ld=no
15658    ;;
15659  esac
15660
15661  ld_shlibs=yes
15662
15663  # On some targets, GNU ld is compatible enough with the native linker
15664  # that we're better off using the native interface for both.
15665  lt_use_gnu_ld_interface=no
15666  if test yes = "$with_gnu_ld"; then
15667    case $host_os in
15668      aix*)
15669	# The AIX port of GNU ld has always aspired to compatibility
15670	# with the native linker.  However, as the warning in the GNU ld
15671	# block says, versions before 2.19.5* couldn't really create working
15672	# shared libraries, regardless of the interface used.
15673	case `$LD -v 2>&1` in
15674	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15675	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15676	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15677	  *)
15678	    lt_use_gnu_ld_interface=yes
15679	    ;;
15680	esac
15681	;;
15682      *)
15683	lt_use_gnu_ld_interface=yes
15684	;;
15685    esac
15686  fi
15687
15688  if test yes = "$lt_use_gnu_ld_interface"; then
15689    # If archive_cmds runs LD, not CC, wlarc should be empty
15690    wlarc='$wl'
15691
15692    # Set some defaults for GNU ld with shared library support. These
15693    # are reset later if shared libraries are not supported. Putting them
15694    # here allows them to be overridden if necessary.
15695    runpath_var=LD_RUN_PATH
15696    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15697    export_dynamic_flag_spec='$wl--export-dynamic'
15698    # ancient GNU ld didn't support --whole-archive et. al.
15699    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15700      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15701    else
15702      whole_archive_flag_spec=
15703    fi
15704    supports_anon_versioning=no
15705    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15706      *GNU\ gold*) supports_anon_versioning=yes ;;
15707      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15708      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15709      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15710      *\ 2.11.*) ;; # other 2.11 versions
15711      *) supports_anon_versioning=yes ;;
15712    esac
15713
15714    # See if GNU ld supports shared libraries.
15715    case $host_os in
15716    aix[3-9]*)
15717      # On AIX/PPC, the GNU linker is very broken
15718      if test ia64 != "$host_cpu"; then
15719	ld_shlibs=no
15720	cat <<_LT_EOF 1>&2
15721
15722*** Warning: the GNU linker, at least up to release 2.19, is reported
15723*** to be unable to reliably create shared libraries on AIX.
15724*** Therefore, libtool is disabling shared libraries support.  If you
15725*** really care for shared libraries, you may want to install binutils
15726*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15727*** You will then need to restart the configuration process.
15728
15729_LT_EOF
15730      fi
15731      ;;
15732
15733    amigaos*)
15734      case $host_cpu in
15735      powerpc)
15736            # see comment about AmigaOS4 .so support
15737            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15738            archive_expsym_cmds=''
15739        ;;
15740      m68k)
15741            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)'
15742            hardcode_libdir_flag_spec='-L$libdir'
15743            hardcode_minus_L=yes
15744        ;;
15745      esac
15746      ;;
15747
15748    beos*)
15749      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15750	allow_undefined_flag=unsupported
15751	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15752	# support --undefined.  This deserves some investigation.  FIXME
15753	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15754      else
15755	ld_shlibs=no
15756      fi
15757      ;;
15758
15759    cygwin* | mingw* | pw32* | cegcc*)
15760      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15761      # as there is no search path for DLLs.
15762      hardcode_libdir_flag_spec='-L$libdir'
15763      export_dynamic_flag_spec='$wl--export-all-symbols'
15764      allow_undefined_flag=unsupported
15765      always_export_symbols=no
15766      enable_shared_with_static_runtimes=yes
15767      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'
15768      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15769
15770      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15771        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15772	# If the export-symbols file already is a .def file, use it as
15773	# is; otherwise, prepend EXPORTS...
15774	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15775          cp $export_symbols $output_objdir/$soname.def;
15776        else
15777          echo EXPORTS > $output_objdir/$soname.def;
15778          cat $export_symbols >> $output_objdir/$soname.def;
15779        fi~
15780        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15781      else
15782	ld_shlibs=no
15783      fi
15784      ;;
15785
15786    haiku*)
15787      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15788      link_all_deplibs=yes
15789      ;;
15790
15791    os2*)
15792      hardcode_libdir_flag_spec='-L$libdir'
15793      hardcode_minus_L=yes
15794      allow_undefined_flag=unsupported
15795      shrext_cmds=.dll
15796      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15797	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15798	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15799	$ECHO EXPORTS >> $output_objdir/$libname.def~
15800	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15801	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15802	emximp -o $lib $output_objdir/$libname.def'
15803      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15804	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15805	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15806	$ECHO EXPORTS >> $output_objdir/$libname.def~
15807	prefix_cmds="$SED"~
15808	if test EXPORTS = "`$SED 1q $export_symbols`"; then
15809	  prefix_cmds="$prefix_cmds -e 1d";
15810	fi~
15811	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15812	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15813	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15814	emximp -o $lib $output_objdir/$libname.def'
15815      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15816      enable_shared_with_static_runtimes=yes
15817      file_list_spec='@'
15818      ;;
15819
15820    interix[3-9]*)
15821      hardcode_direct=no
15822      hardcode_shlibpath_var=no
15823      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15824      export_dynamic_flag_spec='$wl-E'
15825      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15826      # Instead, shared libraries are loaded at an image base (0x10000000 by
15827      # default) and relocated if they conflict, which is a slow very memory
15828      # consuming and fragmenting process.  To avoid this, we pick a random,
15829      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15830      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15831      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15832      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'
15833      ;;
15834
15835    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15836      tmp_diet=no
15837      if test linux-dietlibc = "$host_os"; then
15838	case $cc_basename in
15839	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15840	esac
15841      fi
15842      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15843	 && test no = "$tmp_diet"
15844      then
15845	tmp_addflag=' $pic_flag'
15846	tmp_sharedflag='-shared'
15847	case $cc_basename,$host_cpu in
15848        pgcc*)				# Portland Group C compiler
15849	  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'
15850	  tmp_addflag=' $pic_flag'
15851	  ;;
15852	pgf77* | pgf90* | pgf95* | pgfortran*)
15853					# Portland Group f77 and f90 compilers
15854	  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'
15855	  tmp_addflag=' $pic_flag -Mnomain' ;;
15856	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15857	  tmp_addflag=' -i_dynamic' ;;
15858	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15859	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15860	ifc* | ifort*)			# Intel Fortran compiler
15861	  tmp_addflag=' -nofor_main' ;;
15862	lf95*)				# Lahey Fortran 8.1
15863	  whole_archive_flag_spec=
15864	  tmp_sharedflag='--shared' ;;
15865        nagfor*)                        # NAGFOR 5.3
15866          tmp_sharedflag='-Wl,-shared' ;;
15867	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15868	  tmp_sharedflag='-qmkshrobj'
15869	  tmp_addflag= ;;
15870	nvcc*)	# Cuda Compiler Driver 2.2
15871	  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'
15872	  compiler_needs_object=yes
15873	  ;;
15874	esac
15875	case `$CC -V 2>&1 | sed 5q` in
15876	*Sun\ C*)			# Sun C 5.9
15877	  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'
15878	  compiler_needs_object=yes
15879	  tmp_sharedflag='-G' ;;
15880	*Sun\ F*)			# Sun Fortran 8.3
15881	  tmp_sharedflag='-G' ;;
15882	esac
15883	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15884
15885        if test yes = "$supports_anon_versioning"; then
15886          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15887            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15888            echo "local: *; };" >> $output_objdir/$libname.ver~
15889            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15890        fi
15891
15892	case $cc_basename in
15893	tcc*)
15894	  export_dynamic_flag_spec='-rdynamic'
15895	  ;;
15896	xlf* | bgf* | bgxlf* | mpixlf*)
15897	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15898	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15899	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15900	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15901	  if test yes = "$supports_anon_versioning"; then
15902	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15903              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15904              echo "local: *; };" >> $output_objdir/$libname.ver~
15905              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15906	  fi
15907	  ;;
15908	esac
15909      else
15910        ld_shlibs=no
15911      fi
15912      ;;
15913
15914    netbsd*)
15915      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15916	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15917	wlarc=
15918      else
15919	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15920	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15921      fi
15922      ;;
15923
15924    solaris*)
15925      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15926	ld_shlibs=no
15927	cat <<_LT_EOF 1>&2
15928
15929*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15930*** create shared libraries on Solaris systems.  Therefore, libtool
15931*** is disabling shared libraries support.  We urge you to upgrade GNU
15932*** binutils to release 2.9.1 or newer.  Another option is to modify
15933*** your PATH or compiler configuration so that the native linker is
15934*** used, and then restart.
15935
15936_LT_EOF
15937      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15938	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15939	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15940      else
15941	ld_shlibs=no
15942      fi
15943      ;;
15944
15945    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15946      case `$LD -v 2>&1` in
15947        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15948	ld_shlibs=no
15949	cat <<_LT_EOF 1>&2
15950
15951*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15952*** reliably create shared libraries on SCO systems.  Therefore, libtool
15953*** is disabling shared libraries support.  We urge you to upgrade GNU
15954*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15955*** your PATH or compiler configuration so that the native linker is
15956*** used, and then restart.
15957
15958_LT_EOF
15959	;;
15960	*)
15961	  # For security reasons, it is highly recommended that you always
15962	  # use absolute paths for naming shared libraries, and exclude the
15963	  # DT_RUNPATH tag from executables and libraries.  But doing so
15964	  # requires that you compile everything twice, which is a pain.
15965	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15966	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15967	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15968	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15969	  else
15970	    ld_shlibs=no
15971	  fi
15972	;;
15973      esac
15974      ;;
15975
15976    sunos4*)
15977      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15978      wlarc=
15979      hardcode_direct=yes
15980      hardcode_shlibpath_var=no
15981      ;;
15982
15983    *)
15984      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15985	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15986	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15987      else
15988	ld_shlibs=no
15989      fi
15990      ;;
15991    esac
15992
15993    if test no = "$ld_shlibs"; then
15994      runpath_var=
15995      hardcode_libdir_flag_spec=
15996      export_dynamic_flag_spec=
15997      whole_archive_flag_spec=
15998    fi
15999  else
16000    # PORTME fill in a description of your system's linker (not GNU ld)
16001    case $host_os in
16002    aix3*)
16003      allow_undefined_flag=unsupported
16004      always_export_symbols=yes
16005      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'
16006      # Note: this linker hardcodes the directories in LIBPATH if there
16007      # are no directories specified by -L.
16008      hardcode_minus_L=yes
16009      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
16010	# Neither direct hardcoding nor static linking is supported with a
16011	# broken collect2.
16012	hardcode_direct=unsupported
16013      fi
16014      ;;
16015
16016    aix[4-9]*)
16017      if test ia64 = "$host_cpu"; then
16018	# On IA64, the linker does run time linking by default, so we don't
16019	# have to do anything special.
16020	aix_use_runtimelinking=no
16021	exp_sym_flag='-Bexport'
16022	no_entry_flag=
16023      else
16024	# If we're using GNU nm, then we don't want the "-C" option.
16025	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
16026	# Without the "-l" option, or with the "-B" option, AIX nm treats
16027	# weak defined symbols like other global defined symbols, whereas
16028	# GNU nm marks them as "W".
16029	# While the 'weak' keyword is ignored in the Export File, we need
16030	# it in the Import File for the 'aix-soname' feature, so we have
16031	# to replace the "-B" option with "-P" for AIX nm.
16032	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16033	  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'
16034	else
16035	  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 == "L") || (\$ 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'
16036	fi
16037	aix_use_runtimelinking=no
16038
16039	# Test if we are trying to use run time linking or normal
16040	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16041	# have runtime linking enabled, and use it for executables.
16042	# For shared libraries, we enable/disable runtime linking
16043	# depending on the kind of the shared library created -
16044	# when "with_aix_soname,aix_use_runtimelinking" is:
16045	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
16046	# "aix,yes"  lib.so          shared, rtl:yes, for executables
16047	#            lib.a           static archive
16048	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
16049	#            lib.a(lib.so.V) shared, rtl:no,  for executables
16050	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16051	#            lib.a(lib.so.V) shared, rtl:no
16052	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
16053	#            lib.a           static archive
16054	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16055	  for ld_flag in $LDFLAGS; do
16056	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
16057	    aix_use_runtimelinking=yes
16058	    break
16059	  fi
16060	  done
16061	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16062	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
16063	    # so we don't have lib.a shared libs to link our executables.
16064	    # We have to force runtime linking in this case.
16065	    aix_use_runtimelinking=yes
16066	    LDFLAGS="$LDFLAGS -Wl,-brtl"
16067	  fi
16068	  ;;
16069	esac
16070
16071	exp_sym_flag='-bexport'
16072	no_entry_flag='-bnoentry'
16073      fi
16074
16075      # When large executables or shared objects are built, AIX ld can
16076      # have problems creating the table of contents.  If linking a library
16077      # or program results in "error TOC overflow" add -mminimal-toc to
16078      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16079      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16080
16081      archive_cmds=''
16082      hardcode_direct=yes
16083      hardcode_direct_absolute=yes
16084      hardcode_libdir_separator=':'
16085      link_all_deplibs=yes
16086      file_list_spec='$wl-f,'
16087      case $with_aix_soname,$aix_use_runtimelinking in
16088      aix,*) ;; # traditional, no import file
16089      svr4,* | *,yes) # use import file
16090	# The Import File defines what to hardcode.
16091	hardcode_direct=no
16092	hardcode_direct_absolute=no
16093	;;
16094      esac
16095
16096      if test yes = "$GCC"; then
16097	case $host_os in aix4.[012]|aix4.[012].*)
16098	# We only want to do this on AIX 4.2 and lower, the check
16099	# below for broken collect2 doesn't work under 4.3+
16100	  collect2name=`$CC -print-prog-name=collect2`
16101	  if test -f "$collect2name" &&
16102	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16103	  then
16104	  # We have reworked collect2
16105	  :
16106	  else
16107	  # We have old collect2
16108	  hardcode_direct=unsupported
16109	  # It fails to find uninstalled libraries when the uninstalled
16110	  # path is not listed in the libpath.  Setting hardcode_minus_L
16111	  # to unsupported forces relinking
16112	  hardcode_minus_L=yes
16113	  hardcode_libdir_flag_spec='-L$libdir'
16114	  hardcode_libdir_separator=
16115	  fi
16116	  ;;
16117	esac
16118	shared_flag='-shared'
16119	if test yes = "$aix_use_runtimelinking"; then
16120	  shared_flag="$shared_flag "'$wl-G'
16121	fi
16122	# Need to ensure runtime linking is disabled for the traditional
16123	# shared library, or the linker may eventually find shared libraries
16124	# /with/ Import File - we do not want to mix them.
16125	shared_flag_aix='-shared'
16126	shared_flag_svr4='-shared $wl-G'
16127      else
16128	# not using gcc
16129	if test ia64 = "$host_cpu"; then
16130	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16131	# chokes on -Wl,-G. The following line is correct:
16132	  shared_flag='-G'
16133	else
16134	  if test yes = "$aix_use_runtimelinking"; then
16135	    shared_flag='$wl-G'
16136	  else
16137	    shared_flag='$wl-bM:SRE'
16138	  fi
16139	  shared_flag_aix='$wl-bM:SRE'
16140	  shared_flag_svr4='$wl-G'
16141	fi
16142      fi
16143
16144      export_dynamic_flag_spec='$wl-bexpall'
16145      # It seems that -bexpall does not export symbols beginning with
16146      # underscore (_), so it is better to generate a list of symbols to export.
16147      always_export_symbols=yes
16148      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16149	# Warning - without using the other runtime loading flags (-brtl),
16150	# -berok will link without error, but may produce a broken library.
16151	allow_undefined_flag='-berok'
16152        # Determine the default libpath from the value encoded in an
16153        # empty executable.
16154        if test set = "${lt_cv_aix_libpath+set}"; then
16155  aix_libpath=$lt_cv_aix_libpath
16156else
16157  if ${lt_cv_aix_libpath_+:} false; then :
16158  $as_echo_n "(cached) " >&6
16159else
16160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16161/* end confdefs.h.  */
16162
16163int
16164main ()
16165{
16166
16167  ;
16168  return 0;
16169}
16170_ACEOF
16171if ac_fn_c_try_link "$LINENO"; then :
16172
16173  lt_aix_libpath_sed='
16174      /Import File Strings/,/^$/ {
16175	  /^0/ {
16176	      s/^0  *\([^ ]*\) *$/\1/
16177	      p
16178	  }
16179      }'
16180  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16181  # Check for a 64-bit object if we didn't find anything.
16182  if test -z "$lt_cv_aix_libpath_"; then
16183    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16184  fi
16185fi
16186rm -f core conftest.err conftest.$ac_objext \
16187    conftest$ac_exeext conftest.$ac_ext
16188  if test -z "$lt_cv_aix_libpath_"; then
16189    lt_cv_aix_libpath_=/usr/lib:/lib
16190  fi
16191
16192fi
16193
16194  aix_libpath=$lt_cv_aix_libpath_
16195fi
16196
16197        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16198        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
16199      else
16200	if test ia64 = "$host_cpu"; then
16201	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
16202	  allow_undefined_flag="-z nodefs"
16203	  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"
16204	else
16205	 # Determine the default libpath from the value encoded in an
16206	 # empty executable.
16207	 if test set = "${lt_cv_aix_libpath+set}"; then
16208  aix_libpath=$lt_cv_aix_libpath
16209else
16210  if ${lt_cv_aix_libpath_+:} false; then :
16211  $as_echo_n "(cached) " >&6
16212else
16213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16214/* end confdefs.h.  */
16215
16216int
16217main ()
16218{
16219
16220  ;
16221  return 0;
16222}
16223_ACEOF
16224if ac_fn_c_try_link "$LINENO"; then :
16225
16226  lt_aix_libpath_sed='
16227      /Import File Strings/,/^$/ {
16228	  /^0/ {
16229	      s/^0  *\([^ ]*\) *$/\1/
16230	      p
16231	  }
16232      }'
16233  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16234  # Check for a 64-bit object if we didn't find anything.
16235  if test -z "$lt_cv_aix_libpath_"; then
16236    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16237  fi
16238fi
16239rm -f core conftest.err conftest.$ac_objext \
16240    conftest$ac_exeext conftest.$ac_ext
16241  if test -z "$lt_cv_aix_libpath_"; then
16242    lt_cv_aix_libpath_=/usr/lib:/lib
16243  fi
16244
16245fi
16246
16247  aix_libpath=$lt_cv_aix_libpath_
16248fi
16249
16250	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16251	  # Warning - without using the other run time loading flags,
16252	  # -berok will link without error, but may produce a broken library.
16253	  no_undefined_flag=' $wl-bernotok'
16254	  allow_undefined_flag=' $wl-berok'
16255	  if test yes = "$with_gnu_ld"; then
16256	    # We only use this code for GNU lds that support --whole-archive.
16257	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
16258	  else
16259	    # Exported symbols can be pulled into shared objects from archives
16260	    whole_archive_flag_spec='$convenience'
16261	  fi
16262	  archive_cmds_need_lc=yes
16263	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16264	  # -brtl affects multiple linker settings, -berok does not and is overridden later
16265	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16266	  if test svr4 != "$with_aix_soname"; then
16267	    # This is similar to how AIX traditionally builds its shared libraries.
16268	    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'
16269	  fi
16270	  if test aix != "$with_aix_soname"; then
16271	    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'
16272	  else
16273	    # used by -dlpreopen to get the symbols
16274	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
16275	  fi
16276	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16277	fi
16278      fi
16279      ;;
16280
16281    amigaos*)
16282      case $host_cpu in
16283      powerpc)
16284            # see comment about AmigaOS4 .so support
16285            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16286            archive_expsym_cmds=''
16287        ;;
16288      m68k)
16289            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)'
16290            hardcode_libdir_flag_spec='-L$libdir'
16291            hardcode_minus_L=yes
16292        ;;
16293      esac
16294      ;;
16295
16296    bsdi[45]*)
16297      export_dynamic_flag_spec=-rdynamic
16298      ;;
16299
16300    cygwin* | mingw* | pw32* | cegcc*)
16301      # When not using gcc, we currently assume that we are using
16302      # Microsoft Visual C++.
16303      # hardcode_libdir_flag_spec is actually meaningless, as there is
16304      # no search path for DLLs.
16305      case $cc_basename in
16306      cl*)
16307	# Native MSVC
16308	hardcode_libdir_flag_spec=' '
16309	allow_undefined_flag=unsupported
16310	always_export_symbols=yes
16311	file_list_spec='@'
16312	# Tell ltmain to make .lib files, not .a files.
16313	libext=lib
16314	# Tell ltmain to make .dll files, not .so files.
16315	shrext_cmds=.dll
16316	# FIXME: Setting linknames here is a bad hack.
16317	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16318	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16319            cp "$export_symbols" "$output_objdir/$soname.def";
16320            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16321          else
16322            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16323          fi~
16324          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16325          linknames='
16326	# The linker will not automatically build a static lib if we build a DLL.
16327	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16328	enable_shared_with_static_runtimes=yes
16329	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16330	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16331	# Don't use ranlib
16332	old_postinstall_cmds='chmod 644 $oldlib'
16333	postlink_cmds='lt_outputfile="@OUTPUT@"~
16334          lt_tool_outputfile="@TOOL_OUTPUT@"~
16335          case $lt_outputfile in
16336            *.exe|*.EXE) ;;
16337            *)
16338              lt_outputfile=$lt_outputfile.exe
16339              lt_tool_outputfile=$lt_tool_outputfile.exe
16340              ;;
16341          esac~
16342          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16343            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16344            $RM "$lt_outputfile.manifest";
16345          fi'
16346	;;
16347      *)
16348	# Assume MSVC wrapper
16349	hardcode_libdir_flag_spec=' '
16350	allow_undefined_flag=unsupported
16351	# Tell ltmain to make .lib files, not .a files.
16352	libext=lib
16353	# Tell ltmain to make .dll files, not .so files.
16354	shrext_cmds=.dll
16355	# FIXME: Setting linknames here is a bad hack.
16356	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16357	# The linker will automatically build a .lib file if we build a DLL.
16358	old_archive_from_new_cmds='true'
16359	# FIXME: Should let the user specify the lib program.
16360	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16361	enable_shared_with_static_runtimes=yes
16362	;;
16363      esac
16364      ;;
16365
16366    darwin* | rhapsody*)
16367
16368
16369  archive_cmds_need_lc=no
16370  hardcode_direct=no
16371  hardcode_automatic=yes
16372  hardcode_shlibpath_var=unsupported
16373  if test yes = "$lt_cv_ld_force_load"; then
16374    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\"`'
16375
16376  else
16377    whole_archive_flag_spec=''
16378  fi
16379  link_all_deplibs=yes
16380  allow_undefined_flag=$_lt_dar_allow_undefined
16381  case $cc_basename in
16382     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16383     *) _lt_dar_can_shared=$GCC ;;
16384  esac
16385  if test yes = "$_lt_dar_can_shared"; then
16386    output_verbose_link_cmd=func_echo_all
16387    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16388    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16389    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"
16390    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"
16391
16392  else
16393  ld_shlibs=no
16394  fi
16395
16396      ;;
16397
16398    dgux*)
16399      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16400      hardcode_libdir_flag_spec='-L$libdir'
16401      hardcode_shlibpath_var=no
16402      ;;
16403
16404    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16405    # support.  Future versions do this automatically, but an explicit c++rt0.o
16406    # does not break anything, and helps significantly (at the cost of a little
16407    # extra space).
16408    freebsd2.2*)
16409      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16410      hardcode_libdir_flag_spec='-R$libdir'
16411      hardcode_direct=yes
16412      hardcode_shlibpath_var=no
16413      ;;
16414
16415    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16416    freebsd2.*)
16417      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16418      hardcode_direct=yes
16419      hardcode_minus_L=yes
16420      hardcode_shlibpath_var=no
16421      ;;
16422
16423    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16424    freebsd* | dragonfly*)
16425      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16426      hardcode_libdir_flag_spec='-R$libdir'
16427      hardcode_direct=yes
16428      hardcode_shlibpath_var=no
16429      ;;
16430
16431    hpux9*)
16432      if test yes = "$GCC"; then
16433	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'
16434      else
16435	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'
16436      fi
16437      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16438      hardcode_libdir_separator=:
16439      hardcode_direct=yes
16440
16441      # hardcode_minus_L: Not really in the search PATH,
16442      # but as the default location of the library.
16443      hardcode_minus_L=yes
16444      export_dynamic_flag_spec='$wl-E'
16445      ;;
16446
16447    hpux10*)
16448      if test yes,no = "$GCC,$with_gnu_ld"; then
16449	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16450      else
16451	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16452      fi
16453      if test no = "$with_gnu_ld"; then
16454	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16455	hardcode_libdir_separator=:
16456	hardcode_direct=yes
16457	hardcode_direct_absolute=yes
16458	export_dynamic_flag_spec='$wl-E'
16459	# hardcode_minus_L: Not really in the search PATH,
16460	# but as the default location of the library.
16461	hardcode_minus_L=yes
16462      fi
16463      ;;
16464
16465    hpux11*)
16466      if test yes,no = "$GCC,$with_gnu_ld"; then
16467	case $host_cpu in
16468	hppa*64*)
16469	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16470	  ;;
16471	ia64*)
16472	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16473	  ;;
16474	*)
16475	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16476	  ;;
16477	esac
16478      else
16479	case $host_cpu in
16480	hppa*64*)
16481	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16482	  ;;
16483	ia64*)
16484	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16485	  ;;
16486	*)
16487
16488	  # Older versions of the 11.00 compiler do not understand -b yet
16489	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16490	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16491$as_echo_n "checking if $CC understands -b... " >&6; }
16492if ${lt_cv_prog_compiler__b+:} false; then :
16493  $as_echo_n "(cached) " >&6
16494else
16495  lt_cv_prog_compiler__b=no
16496   save_LDFLAGS=$LDFLAGS
16497   LDFLAGS="$LDFLAGS -b"
16498   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16499   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16500     # The linker can only warn and ignore the option if not recognized
16501     # So say no if there are warnings
16502     if test -s conftest.err; then
16503       # Append any errors to the config.log.
16504       cat conftest.err 1>&5
16505       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16506       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16507       if diff conftest.exp conftest.er2 >/dev/null; then
16508         lt_cv_prog_compiler__b=yes
16509       fi
16510     else
16511       lt_cv_prog_compiler__b=yes
16512     fi
16513   fi
16514   $RM -r conftest*
16515   LDFLAGS=$save_LDFLAGS
16516
16517fi
16518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16519$as_echo "$lt_cv_prog_compiler__b" >&6; }
16520
16521if test yes = "$lt_cv_prog_compiler__b"; then
16522    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16523else
16524    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16525fi
16526
16527	  ;;
16528	esac
16529      fi
16530      if test no = "$with_gnu_ld"; then
16531	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16532	hardcode_libdir_separator=:
16533
16534	case $host_cpu in
16535	hppa*64*|ia64*)
16536	  hardcode_direct=no
16537	  hardcode_shlibpath_var=no
16538	  ;;
16539	*)
16540	  hardcode_direct=yes
16541	  hardcode_direct_absolute=yes
16542	  export_dynamic_flag_spec='$wl-E'
16543
16544	  # hardcode_minus_L: Not really in the search PATH,
16545	  # but as the default location of the library.
16546	  hardcode_minus_L=yes
16547	  ;;
16548	esac
16549      fi
16550      ;;
16551
16552    irix5* | irix6* | nonstopux*)
16553      if test yes = "$GCC"; then
16554	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'
16555	# Try to use the -exported_symbol ld option, if it does not
16556	# work, assume that -exports_file does not work either and
16557	# implicitly export all symbols.
16558	# This should be the same for all languages, so no per-tag cache variable.
16559	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16560$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16561if ${lt_cv_irix_exported_symbol+:} false; then :
16562  $as_echo_n "(cached) " >&6
16563else
16564  save_LDFLAGS=$LDFLAGS
16565	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16566	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16567/* end confdefs.h.  */
16568int foo (void) { return 0; }
16569_ACEOF
16570if ac_fn_c_try_link "$LINENO"; then :
16571  lt_cv_irix_exported_symbol=yes
16572else
16573  lt_cv_irix_exported_symbol=no
16574fi
16575rm -f core conftest.err conftest.$ac_objext \
16576    conftest$ac_exeext conftest.$ac_ext
16577           LDFLAGS=$save_LDFLAGS
16578fi
16579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16580$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16581	if test yes = "$lt_cv_irix_exported_symbol"; then
16582          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'
16583	fi
16584      else
16585	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'
16586	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'
16587      fi
16588      archive_cmds_need_lc='no'
16589      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16590      hardcode_libdir_separator=:
16591      inherit_rpath=yes
16592      link_all_deplibs=yes
16593      ;;
16594
16595    linux*)
16596      case $cc_basename in
16597      tcc*)
16598	# Fabrice Bellard et al's Tiny C Compiler
16599	ld_shlibs=yes
16600	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16601	;;
16602      esac
16603      ;;
16604
16605    netbsd*)
16606      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16607	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16608      else
16609	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16610      fi
16611      hardcode_libdir_flag_spec='-R$libdir'
16612      hardcode_direct=yes
16613      hardcode_shlibpath_var=no
16614      ;;
16615
16616    newsos6)
16617      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16618      hardcode_direct=yes
16619      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16620      hardcode_libdir_separator=:
16621      hardcode_shlibpath_var=no
16622      ;;
16623
16624    *nto* | *qnx*)
16625      ;;
16626
16627    openbsd* | bitrig*)
16628      if test -f /usr/libexec/ld.so; then
16629	hardcode_direct=yes
16630	hardcode_shlibpath_var=no
16631	hardcode_direct_absolute=yes
16632	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16633	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16634	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16635	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16636	  export_dynamic_flag_spec='$wl-E'
16637	else
16638	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16639	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16640	fi
16641      else
16642	ld_shlibs=no
16643      fi
16644      ;;
16645
16646    os2*)
16647      hardcode_libdir_flag_spec='-L$libdir'
16648      hardcode_minus_L=yes
16649      allow_undefined_flag=unsupported
16650      shrext_cmds=.dll
16651      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16652	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16653	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16654	$ECHO EXPORTS >> $output_objdir/$libname.def~
16655	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16656	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16657	emximp -o $lib $output_objdir/$libname.def'
16658      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16659	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16660	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16661	$ECHO EXPORTS >> $output_objdir/$libname.def~
16662	prefix_cmds="$SED"~
16663	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16664	  prefix_cmds="$prefix_cmds -e 1d";
16665	fi~
16666	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16667	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16668	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16669	emximp -o $lib $output_objdir/$libname.def'
16670      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16671      enable_shared_with_static_runtimes=yes
16672      file_list_spec='@'
16673      ;;
16674
16675    osf3*)
16676      if test yes = "$GCC"; then
16677	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16678	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'
16679      else
16680	allow_undefined_flag=' -expect_unresolved \*'
16681	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'
16682      fi
16683      archive_cmds_need_lc='no'
16684      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16685      hardcode_libdir_separator=:
16686      ;;
16687
16688    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16689      if test yes = "$GCC"; then
16690	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16691	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'
16692	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16693      else
16694	allow_undefined_flag=' -expect_unresolved \*'
16695	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'
16696	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~
16697          $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'
16698
16699	# Both c and cxx compiler support -rpath directly
16700	hardcode_libdir_flag_spec='-rpath $libdir'
16701      fi
16702      archive_cmds_need_lc='no'
16703      hardcode_libdir_separator=:
16704      ;;
16705
16706    solaris*)
16707      no_undefined_flag=' -z defs'
16708      if test yes = "$GCC"; then
16709	wlarc='$wl'
16710	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16711	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16712          $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'
16713      else
16714	case `$CC -V 2>&1` in
16715	*"Compilers 5.0"*)
16716	  wlarc=''
16717	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16718	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16719            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16720	  ;;
16721	*)
16722	  wlarc='$wl'
16723	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16724	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16725            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16726	  ;;
16727	esac
16728      fi
16729      hardcode_libdir_flag_spec='-R$libdir'
16730      hardcode_shlibpath_var=no
16731      case $host_os in
16732      solaris2.[0-5] | solaris2.[0-5].*) ;;
16733      *)
16734	# The compiler driver will combine and reorder linker options,
16735	# but understands '-z linker_flag'.  GCC discards it without '$wl',
16736	# but is careful enough not to reorder.
16737	# Supported since Solaris 2.6 (maybe 2.5.1?)
16738	if test yes = "$GCC"; then
16739	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16740	else
16741	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16742	fi
16743	;;
16744      esac
16745      link_all_deplibs=yes
16746      ;;
16747
16748    sunos4*)
16749      if test sequent = "$host_vendor"; then
16750	# Use $CC to link under sequent, because it throws in some extra .o
16751	# files that make .init and .fini sections work.
16752	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16753      else
16754	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16755      fi
16756      hardcode_libdir_flag_spec='-L$libdir'
16757      hardcode_direct=yes
16758      hardcode_minus_L=yes
16759      hardcode_shlibpath_var=no
16760      ;;
16761
16762    sysv4)
16763      case $host_vendor in
16764	sni)
16765	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16766	  hardcode_direct=yes # is this really true???
16767	;;
16768	siemens)
16769	  ## LD is ld it makes a PLAMLIB
16770	  ## CC just makes a GrossModule.
16771	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16772	  reload_cmds='$CC -r -o $output$reload_objs'
16773	  hardcode_direct=no
16774        ;;
16775	motorola)
16776	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16777	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16778	;;
16779      esac
16780      runpath_var='LD_RUN_PATH'
16781      hardcode_shlibpath_var=no
16782      ;;
16783
16784    sysv4.3*)
16785      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16786      hardcode_shlibpath_var=no
16787      export_dynamic_flag_spec='-Bexport'
16788      ;;
16789
16790    sysv4*MP*)
16791      if test -d /usr/nec; then
16792	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16793	hardcode_shlibpath_var=no
16794	runpath_var=LD_RUN_PATH
16795	hardcode_runpath_var=yes
16796	ld_shlibs=yes
16797      fi
16798      ;;
16799
16800    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16801      no_undefined_flag='$wl-z,text'
16802      archive_cmds_need_lc=no
16803      hardcode_shlibpath_var=no
16804      runpath_var='LD_RUN_PATH'
16805
16806      if test yes = "$GCC"; then
16807	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16808	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16809      else
16810	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16811	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16812      fi
16813      ;;
16814
16815    sysv5* | sco3.2v5* | sco5v6*)
16816      # Note: We CANNOT use -z defs as we might desire, because we do not
16817      # link with -lc, and that would cause any symbols used from libc to
16818      # always be unresolved, which means just about no library would
16819      # ever link correctly.  If we're not using GNU ld we use -z text
16820      # though, which does catch some bad symbols but isn't as heavy-handed
16821      # as -z defs.
16822      no_undefined_flag='$wl-z,text'
16823      allow_undefined_flag='$wl-z,nodefs'
16824      archive_cmds_need_lc=no
16825      hardcode_shlibpath_var=no
16826      hardcode_libdir_flag_spec='$wl-R,$libdir'
16827      hardcode_libdir_separator=':'
16828      link_all_deplibs=yes
16829      export_dynamic_flag_spec='$wl-Bexport'
16830      runpath_var='LD_RUN_PATH'
16831
16832      if test yes = "$GCC"; then
16833	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16834	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16835      else
16836	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16837	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16838      fi
16839      ;;
16840
16841    uts4*)
16842      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16843      hardcode_libdir_flag_spec='-L$libdir'
16844      hardcode_shlibpath_var=no
16845      ;;
16846
16847    *)
16848      ld_shlibs=no
16849      ;;
16850    esac
16851
16852    if test sni = "$host_vendor"; then
16853      case $host in
16854      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16855	export_dynamic_flag_spec='$wl-Blargedynsym'
16856	;;
16857      esac
16858    fi
16859  fi
16860
16861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16862$as_echo "$ld_shlibs" >&6; }
16863test no = "$ld_shlibs" && can_build_shared=no
16864
16865with_gnu_ld=$with_gnu_ld
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881#
16882# Do we need to explicitly link libc?
16883#
16884case "x$archive_cmds_need_lc" in
16885x|xyes)
16886  # Assume -lc should be added
16887  archive_cmds_need_lc=yes
16888
16889  if test yes,yes = "$GCC,$enable_shared"; then
16890    case $archive_cmds in
16891    *'~'*)
16892      # FIXME: we may have to deal with multi-command sequences.
16893      ;;
16894    '$CC '*)
16895      # Test whether the compiler implicitly links with -lc since on some
16896      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16897      # to ld, don't add -lc before -lgcc.
16898      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16899$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16900if ${lt_cv_archive_cmds_need_lc+:} false; then :
16901  $as_echo_n "(cached) " >&6
16902else
16903  $RM conftest*
16904	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16905
16906	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16907  (eval $ac_compile) 2>&5
16908  ac_status=$?
16909  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16910  test $ac_status = 0; } 2>conftest.err; then
16911	  soname=conftest
16912	  lib=conftest
16913	  libobjs=conftest.$ac_objext
16914	  deplibs=
16915	  wl=$lt_prog_compiler_wl
16916	  pic_flag=$lt_prog_compiler_pic
16917	  compiler_flags=-v
16918	  linker_flags=-v
16919	  verstring=
16920	  output_objdir=.
16921	  libname=conftest
16922	  lt_save_allow_undefined_flag=$allow_undefined_flag
16923	  allow_undefined_flag=
16924	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16925  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16926  ac_status=$?
16927  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16928  test $ac_status = 0; }
16929	  then
16930	    lt_cv_archive_cmds_need_lc=no
16931	  else
16932	    lt_cv_archive_cmds_need_lc=yes
16933	  fi
16934	  allow_undefined_flag=$lt_save_allow_undefined_flag
16935	else
16936	  cat conftest.err 1>&5
16937	fi
16938	$RM conftest*
16939
16940fi
16941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16942$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16943      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16944      ;;
16945    esac
16946  fi
16947  ;;
16948esac
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17102$as_echo_n "checking dynamic linker characteristics... " >&6; }
17103
17104if test yes = "$GCC"; then
17105  case $host_os in
17106    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
17107    *) lt_awk_arg='/^libraries:/' ;;
17108  esac
17109  case $host_os in
17110    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
17111    *) lt_sed_strip_eq='s|=/|/|g' ;;
17112  esac
17113  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17114  case $lt_search_path_spec in
17115  *\;*)
17116    # if the path contains ";" then we assume it to be the separator
17117    # otherwise default to the standard path separator (i.e. ":") - it is
17118    # assumed that no part of a normal pathname contains ";" but that should
17119    # okay in the real world where ";" in dirpaths is itself problematic.
17120    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17121    ;;
17122  *)
17123    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17124    ;;
17125  esac
17126  # Ok, now we have the path, separated by spaces, we can step through it
17127  # and add multilib dir if necessary...
17128  lt_tmp_lt_search_path_spec=
17129  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17130  # ...but if some path component already ends with the multilib dir we assume
17131  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
17132  case "$lt_multi_os_dir; $lt_search_path_spec " in
17133  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
17134    lt_multi_os_dir=
17135    ;;
17136  esac
17137  for lt_sys_path in $lt_search_path_spec; do
17138    if test -d "$lt_sys_path$lt_multi_os_dir"; then
17139      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
17140    elif test -n "$lt_multi_os_dir"; then
17141      test -d "$lt_sys_path" && \
17142	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17143    fi
17144  done
17145  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17146BEGIN {RS = " "; FS = "/|\n";} {
17147  lt_foo = "";
17148  lt_count = 0;
17149  for (lt_i = NF; lt_i > 0; lt_i--) {
17150    if ($lt_i != "" && $lt_i != ".") {
17151      if ($lt_i == "..") {
17152        lt_count++;
17153      } else {
17154        if (lt_count == 0) {
17155          lt_foo = "/" $lt_i lt_foo;
17156        } else {
17157          lt_count--;
17158        }
17159      }
17160    }
17161  }
17162  if (lt_foo != "") { lt_freq[lt_foo]++; }
17163  if (lt_freq[lt_foo] == 1) { print lt_foo; }
17164}'`
17165  # AWK program above erroneously prepends '/' to C:/dos/paths
17166  # for these hosts.
17167  case $host_os in
17168    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17169      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
17170  esac
17171  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17172else
17173  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17174fi
17175library_names_spec=
17176libname_spec='lib$name'
17177soname_spec=
17178shrext_cmds=.so
17179postinstall_cmds=
17180postuninstall_cmds=
17181finish_cmds=
17182finish_eval=
17183shlibpath_var=
17184shlibpath_overrides_runpath=unknown
17185version_type=none
17186dynamic_linker="$host_os ld.so"
17187sys_lib_dlsearch_path_spec="/lib /usr/lib"
17188need_lib_prefix=unknown
17189hardcode_into_libs=no
17190
17191# when you set need_version to no, make sure it does not cause -set_version
17192# flags to be left without arguments
17193need_version=unknown
17194
17195
17196
17197case $host_os in
17198aix3*)
17199  version_type=linux # correct to gnu/linux during the next big refactor
17200  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17201  shlibpath_var=LIBPATH
17202
17203  # AIX 3 has no versioning support, so we append a major version to the name.
17204  soname_spec='$libname$release$shared_ext$major'
17205  ;;
17206
17207aix[4-9]*)
17208  version_type=linux # correct to gnu/linux during the next big refactor
17209  need_lib_prefix=no
17210  need_version=no
17211  hardcode_into_libs=yes
17212  if test ia64 = "$host_cpu"; then
17213    # AIX 5 supports IA64
17214    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17215    shlibpath_var=LD_LIBRARY_PATH
17216  else
17217    # With GCC up to 2.95.x, collect2 would create an import file
17218    # for dependence libraries.  The import file would start with
17219    # the line '#! .'.  This would cause the generated library to
17220    # depend on '.', always an invalid library.  This was fixed in
17221    # development snapshots of GCC prior to 3.0.
17222    case $host_os in
17223      aix4 | aix4.[01] | aix4.[01].*)
17224      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17225	   echo ' yes '
17226	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17227	:
17228      else
17229	can_build_shared=no
17230      fi
17231      ;;
17232    esac
17233    # Using Import Files as archive members, it is possible to support
17234    # filename-based versioning of shared library archives on AIX. While
17235    # this would work for both with and without runtime linking, it will
17236    # prevent static linking of such archives. So we do filename-based
17237    # shared library versioning with .so extension only, which is used
17238    # when both runtime linking and shared linking is enabled.
17239    # Unfortunately, runtime linking may impact performance, so we do
17240    # not want this to be the default eventually. Also, we use the
17241    # versioned .so libs for executables only if there is the -brtl
17242    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17243    # To allow for filename-based versioning support, we need to create
17244    # libNAME.so.V as an archive file, containing:
17245    # *) an Import File, referring to the versioned filename of the
17246    #    archive as well as the shared archive member, telling the
17247    #    bitwidth (32 or 64) of that shared object, and providing the
17248    #    list of exported symbols of that shared object, eventually
17249    #    decorated with the 'weak' keyword
17250    # *) the shared object with the F_LOADONLY flag set, to really avoid
17251    #    it being seen by the linker.
17252    # At run time we better use the real file rather than another symlink,
17253    # but for link time we create the symlink libNAME.so -> libNAME.so.V
17254
17255    case $with_aix_soname,$aix_use_runtimelinking in
17256    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17257    # soname into executable. Probably we can add versioning support to
17258    # collect2, so additional links can be useful in future.
17259    aix,yes) # traditional libtool
17260      dynamic_linker='AIX unversionable lib.so'
17261      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17262      # instead of lib<name>.a to let people know that these are not
17263      # typical AIX shared libraries.
17264      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17265      ;;
17266    aix,no) # traditional AIX only
17267      dynamic_linker='AIX lib.a(lib.so.V)'
17268      # We preserve .a as extension for shared libraries through AIX4.2
17269      # and later when we are not doing run time linking.
17270      library_names_spec='$libname$release.a $libname.a'
17271      soname_spec='$libname$release$shared_ext$major'
17272      ;;
17273    svr4,*) # full svr4 only
17274      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17275      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17276      # We do not specify a path in Import Files, so LIBPATH fires.
17277      shlibpath_overrides_runpath=yes
17278      ;;
17279    *,yes) # both, prefer svr4
17280      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17281      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17282      # unpreferred sharedlib libNAME.a needs extra handling
17283      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"'
17284      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"'
17285      # We do not specify a path in Import Files, so LIBPATH fires.
17286      shlibpath_overrides_runpath=yes
17287      ;;
17288    *,no) # both, prefer aix
17289      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17290      library_names_spec='$libname$release.a $libname.a'
17291      soname_spec='$libname$release$shared_ext$major'
17292      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17293      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)'
17294      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"'
17295      ;;
17296    esac
17297    shlibpath_var=LIBPATH
17298  fi
17299  ;;
17300
17301amigaos*)
17302  case $host_cpu in
17303  powerpc)
17304    # Since July 2007 AmigaOS4 officially supports .so libraries.
17305    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17306    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17307    ;;
17308  m68k)
17309    library_names_spec='$libname.ixlibrary $libname.a'
17310    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17311    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'
17312    ;;
17313  esac
17314  ;;
17315
17316beos*)
17317  library_names_spec='$libname$shared_ext'
17318  dynamic_linker="$host_os ld.so"
17319  shlibpath_var=LIBRARY_PATH
17320  ;;
17321
17322bsdi[45]*)
17323  version_type=linux # correct to gnu/linux during the next big refactor
17324  need_version=no
17325  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17326  soname_spec='$libname$release$shared_ext$major'
17327  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17328  shlibpath_var=LD_LIBRARY_PATH
17329  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17330  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17331  # the default ld.so.conf also contains /usr/contrib/lib and
17332  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17333  # libtool to hard-code these into programs
17334  ;;
17335
17336cygwin* | mingw* | pw32* | cegcc*)
17337  version_type=windows
17338  shrext_cmds=.dll
17339  need_version=no
17340  need_lib_prefix=no
17341
17342  case $GCC,$cc_basename in
17343  yes,*)
17344    # gcc
17345    library_names_spec='$libname.dll.a'
17346    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17347    postinstall_cmds='base_file=`basename \$file`~
17348      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17349      dldir=$destdir/`dirname \$dlpath`~
17350      test -d \$dldir || mkdir -p \$dldir~
17351      $install_prog $dir/$dlname \$dldir/$dlname~
17352      chmod a+x \$dldir/$dlname~
17353      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17354        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17355      fi'
17356    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17357      dlpath=$dir/\$dldll~
17358       $RM \$dlpath'
17359    shlibpath_overrides_runpath=yes
17360
17361    case $host_os in
17362    cygwin*)
17363      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17364      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17365
17366      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17367      ;;
17368    mingw* | cegcc*)
17369      # MinGW DLLs use traditional 'lib' prefix
17370      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17371      ;;
17372    pw32*)
17373      # pw32 DLLs use 'pw' prefix rather than 'lib'
17374      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17375      ;;
17376    esac
17377    dynamic_linker='Win32 ld.exe'
17378    ;;
17379
17380  *,cl*)
17381    # Native MSVC
17382    libname_spec='$name'
17383    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17384    library_names_spec='$libname.dll.lib'
17385
17386    case $build_os in
17387    mingw*)
17388      sys_lib_search_path_spec=
17389      lt_save_ifs=$IFS
17390      IFS=';'
17391      for lt_path in $LIB
17392      do
17393        IFS=$lt_save_ifs
17394        # Let DOS variable expansion print the short 8.3 style file name.
17395        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17396        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17397      done
17398      IFS=$lt_save_ifs
17399      # Convert to MSYS style.
17400      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17401      ;;
17402    cygwin*)
17403      # Convert to unix form, then to dos form, then back to unix form
17404      # but this time dos style (no spaces!) so that the unix form looks
17405      # like /cygdrive/c/PROGRA~1:/cygdr...
17406      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17407      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17408      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17409      ;;
17410    *)
17411      sys_lib_search_path_spec=$LIB
17412      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17413        # It is most probably a Windows format PATH.
17414        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17415      else
17416        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17417      fi
17418      # FIXME: find the short name or the path components, as spaces are
17419      # common. (e.g. "Program Files" -> "PROGRA~1")
17420      ;;
17421    esac
17422
17423    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17424    postinstall_cmds='base_file=`basename \$file`~
17425      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17426      dldir=$destdir/`dirname \$dlpath`~
17427      test -d \$dldir || mkdir -p \$dldir~
17428      $install_prog $dir/$dlname \$dldir/$dlname'
17429    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17430      dlpath=$dir/\$dldll~
17431       $RM \$dlpath'
17432    shlibpath_overrides_runpath=yes
17433    dynamic_linker='Win32 link.exe'
17434    ;;
17435
17436  *)
17437    # Assume MSVC wrapper
17438    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17439    dynamic_linker='Win32 ld.exe'
17440    ;;
17441  esac
17442  # FIXME: first we should search . and the directory the executable is in
17443  shlibpath_var=PATH
17444  ;;
17445
17446darwin* | rhapsody*)
17447  dynamic_linker="$host_os dyld"
17448  version_type=darwin
17449  need_lib_prefix=no
17450  need_version=no
17451  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17452  soname_spec='$libname$release$major$shared_ext'
17453  shlibpath_overrides_runpath=yes
17454  shlibpath_var=DYLD_LIBRARY_PATH
17455  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17456
17457  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17458  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17459  ;;
17460
17461dgux*)
17462  version_type=linux # correct to gnu/linux during the next big refactor
17463  need_lib_prefix=no
17464  need_version=no
17465  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17466  soname_spec='$libname$release$shared_ext$major'
17467  shlibpath_var=LD_LIBRARY_PATH
17468  ;;
17469
17470freebsd* | dragonfly*)
17471  # DragonFly does not have aout.  When/if they implement a new
17472  # versioning mechanism, adjust this.
17473  if test -x /usr/bin/objformat; then
17474    objformat=`/usr/bin/objformat`
17475  else
17476    case $host_os in
17477    freebsd[23].*) objformat=aout ;;
17478    *) objformat=elf ;;
17479    esac
17480  fi
17481  version_type=freebsd-$objformat
17482  case $version_type in
17483    freebsd-elf*)
17484      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17485      soname_spec='$libname$release$shared_ext$major'
17486      need_version=no
17487      need_lib_prefix=no
17488      ;;
17489    freebsd-*)
17490      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17491      need_version=yes
17492      ;;
17493  esac
17494  shlibpath_var=LD_LIBRARY_PATH
17495  case $host_os in
17496  freebsd2.*)
17497    shlibpath_overrides_runpath=yes
17498    ;;
17499  freebsd3.[01]* | freebsdelf3.[01]*)
17500    shlibpath_overrides_runpath=yes
17501    hardcode_into_libs=yes
17502    ;;
17503  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17504  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17505    shlibpath_overrides_runpath=no
17506    hardcode_into_libs=yes
17507    ;;
17508  *) # from 4.6 on, and DragonFly
17509    shlibpath_overrides_runpath=yes
17510    hardcode_into_libs=yes
17511    ;;
17512  esac
17513  ;;
17514
17515haiku*)
17516  version_type=linux # correct to gnu/linux during the next big refactor
17517  need_lib_prefix=no
17518  need_version=no
17519  dynamic_linker="$host_os runtime_loader"
17520  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17521  soname_spec='$libname$release$shared_ext$major'
17522  shlibpath_var=LIBRARY_PATH
17523  shlibpath_overrides_runpath=no
17524  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17525  hardcode_into_libs=yes
17526  ;;
17527
17528hpux9* | hpux10* | hpux11*)
17529  # Give a soname corresponding to the major version so that dld.sl refuses to
17530  # link against other versions.
17531  version_type=sunos
17532  need_lib_prefix=no
17533  need_version=no
17534  case $host_cpu in
17535  ia64*)
17536    shrext_cmds='.so'
17537    hardcode_into_libs=yes
17538    dynamic_linker="$host_os dld.so"
17539    shlibpath_var=LD_LIBRARY_PATH
17540    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17541    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17542    soname_spec='$libname$release$shared_ext$major'
17543    if test 32 = "$HPUX_IA64_MODE"; then
17544      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17545      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17546    else
17547      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17548      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17549    fi
17550    ;;
17551  hppa*64*)
17552    shrext_cmds='.sl'
17553    hardcode_into_libs=yes
17554    dynamic_linker="$host_os dld.sl"
17555    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17556    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17557    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17558    soname_spec='$libname$release$shared_ext$major'
17559    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17560    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17561    ;;
17562  *)
17563    shrext_cmds='.sl'
17564    dynamic_linker="$host_os dld.sl"
17565    shlibpath_var=SHLIB_PATH
17566    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17567    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17568    soname_spec='$libname$release$shared_ext$major'
17569    ;;
17570  esac
17571  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17572  postinstall_cmds='chmod 555 $lib'
17573  # or fails outright, so override atomically:
17574  install_override_mode=555
17575  ;;
17576
17577interix[3-9]*)
17578  version_type=linux # correct to gnu/linux during the next big refactor
17579  need_lib_prefix=no
17580  need_version=no
17581  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17582  soname_spec='$libname$release$shared_ext$major'
17583  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17584  shlibpath_var=LD_LIBRARY_PATH
17585  shlibpath_overrides_runpath=no
17586  hardcode_into_libs=yes
17587  ;;
17588
17589irix5* | irix6* | nonstopux*)
17590  case $host_os in
17591    nonstopux*) version_type=nonstopux ;;
17592    *)
17593	if test yes = "$lt_cv_prog_gnu_ld"; then
17594		version_type=linux # correct to gnu/linux during the next big refactor
17595	else
17596		version_type=irix
17597	fi ;;
17598  esac
17599  need_lib_prefix=no
17600  need_version=no
17601  soname_spec='$libname$release$shared_ext$major'
17602  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17603  case $host_os in
17604  irix5* | nonstopux*)
17605    libsuff= shlibsuff=
17606    ;;
17607  *)
17608    case $LD in # libtool.m4 will add one of these switches to LD
17609    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17610      libsuff= shlibsuff= libmagic=32-bit;;
17611    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17612      libsuff=32 shlibsuff=N32 libmagic=N32;;
17613    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17614      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17615    *) libsuff= shlibsuff= libmagic=never-match;;
17616    esac
17617    ;;
17618  esac
17619  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17620  shlibpath_overrides_runpath=no
17621  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17622  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17623  hardcode_into_libs=yes
17624  ;;
17625
17626# No shared lib support for Linux oldld, aout, or coff.
17627linux*oldld* | linux*aout* | linux*coff*)
17628  dynamic_linker=no
17629  ;;
17630
17631linux*android*)
17632  version_type=none # Android doesn't support versioned libraries.
17633  need_lib_prefix=no
17634  need_version=no
17635  library_names_spec='$libname$release$shared_ext'
17636  soname_spec='$libname$release$shared_ext'
17637  finish_cmds=
17638  shlibpath_var=LD_LIBRARY_PATH
17639  shlibpath_overrides_runpath=yes
17640
17641  # This implies no fast_install, which is unacceptable.
17642  # Some rework will be needed to allow for fast_install
17643  # before this can be enabled.
17644  hardcode_into_libs=yes
17645
17646  dynamic_linker='Android linker'
17647  # Don't embed -rpath directories since the linker doesn't support them.
17648  hardcode_libdir_flag_spec='-L$libdir'
17649  ;;
17650
17651# This must be glibc/ELF.
17652linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17653  version_type=linux # correct to gnu/linux during the next big refactor
17654  need_lib_prefix=no
17655  need_version=no
17656  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17657  soname_spec='$libname$release$shared_ext$major'
17658  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17659  shlibpath_var=LD_LIBRARY_PATH
17660  shlibpath_overrides_runpath=no
17661
17662  # Some binutils ld are patched to set DT_RUNPATH
17663  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17664  $as_echo_n "(cached) " >&6
17665else
17666  lt_cv_shlibpath_overrides_runpath=no
17667    save_LDFLAGS=$LDFLAGS
17668    save_libdir=$libdir
17669    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17670	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17671    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17672/* end confdefs.h.  */
17673
17674int
17675main ()
17676{
17677
17678  ;
17679  return 0;
17680}
17681_ACEOF
17682if ac_fn_c_try_link "$LINENO"; then :
17683  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17684  lt_cv_shlibpath_overrides_runpath=yes
17685fi
17686fi
17687rm -f core conftest.err conftest.$ac_objext \
17688    conftest$ac_exeext conftest.$ac_ext
17689    LDFLAGS=$save_LDFLAGS
17690    libdir=$save_libdir
17691
17692fi
17693
17694  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17695
17696  # This implies no fast_install, which is unacceptable.
17697  # Some rework will be needed to allow for fast_install
17698  # before this can be enabled.
17699  hardcode_into_libs=yes
17700
17701  # Ideally, we could use ldconfig to report *all* directores which are
17702  # searched for libraries, however this is still not possible.  Aside from not
17703  # being certain /sbin/ldconfig is available, command
17704  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17705  # even though it is searched at run-time.  Try to do the best guess by
17706  # appending ld.so.conf contents (and includes) to the search path.
17707  if test -f /etc/ld.so.conf; then
17708    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' ' '`
17709    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17710  fi
17711
17712  # We used to test for /lib/ld.so.1 and disable shared libraries on
17713  # powerpc, because MkLinux only supported shared libraries with the
17714  # GNU dynamic linker.  Since this was broken with cross compilers,
17715  # most powerpc-linux boxes support dynamic linking these days and
17716  # people can always --disable-shared, the test was removed, and we
17717  # assume the GNU/Linux dynamic linker is in use.
17718  dynamic_linker='GNU/Linux ld.so'
17719  ;;
17720
17721netbsd*)
17722  version_type=sunos
17723  need_lib_prefix=no
17724  need_version=no
17725  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17726    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17727    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17728    dynamic_linker='NetBSD (a.out) ld.so'
17729  else
17730    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17731    soname_spec='$libname$release$shared_ext$major'
17732    dynamic_linker='NetBSD ld.elf_so'
17733  fi
17734  shlibpath_var=LD_LIBRARY_PATH
17735  shlibpath_overrides_runpath=yes
17736  hardcode_into_libs=yes
17737  ;;
17738
17739newsos6)
17740  version_type=linux # correct to gnu/linux during the next big refactor
17741  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17742  shlibpath_var=LD_LIBRARY_PATH
17743  shlibpath_overrides_runpath=yes
17744  ;;
17745
17746*nto* | *qnx*)
17747  version_type=qnx
17748  need_lib_prefix=no
17749  need_version=no
17750  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17751  soname_spec='$libname$release$shared_ext$major'
17752  shlibpath_var=LD_LIBRARY_PATH
17753  shlibpath_overrides_runpath=no
17754  hardcode_into_libs=yes
17755  dynamic_linker='ldqnx.so'
17756  ;;
17757
17758openbsd* | bitrig*)
17759  version_type=sunos
17760  sys_lib_dlsearch_path_spec=/usr/lib
17761  need_lib_prefix=no
17762  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17763    need_version=no
17764  else
17765    need_version=yes
17766  fi
17767  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17768  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17769  shlibpath_var=LD_LIBRARY_PATH
17770  shlibpath_overrides_runpath=yes
17771  ;;
17772
17773os2*)
17774  libname_spec='$name'
17775  version_type=windows
17776  shrext_cmds=.dll
17777  need_version=no
17778  need_lib_prefix=no
17779  # OS/2 can only load a DLL with a base name of 8 characters or less.
17780  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17781    v=$($ECHO $release$versuffix | tr -d .-);
17782    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17783    $ECHO $n$v`$shared_ext'
17784  library_names_spec='${libname}_dll.$libext'
17785  dynamic_linker='OS/2 ld.exe'
17786  shlibpath_var=BEGINLIBPATH
17787  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17788  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17789  postinstall_cmds='base_file=`basename \$file`~
17790    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17791    dldir=$destdir/`dirname \$dlpath`~
17792    test -d \$dldir || mkdir -p \$dldir~
17793    $install_prog $dir/$dlname \$dldir/$dlname~
17794    chmod a+x \$dldir/$dlname~
17795    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17796      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17797    fi'
17798  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17799    dlpath=$dir/\$dldll~
17800    $RM \$dlpath'
17801  ;;
17802
17803osf3* | osf4* | osf5*)
17804  version_type=osf
17805  need_lib_prefix=no
17806  need_version=no
17807  soname_spec='$libname$release$shared_ext$major'
17808  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17809  shlibpath_var=LD_LIBRARY_PATH
17810  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17811  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17812  ;;
17813
17814rdos*)
17815  dynamic_linker=no
17816  ;;
17817
17818solaris*)
17819  version_type=linux # correct to gnu/linux during the next big refactor
17820  need_lib_prefix=no
17821  need_version=no
17822  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17823  soname_spec='$libname$release$shared_ext$major'
17824  shlibpath_var=LD_LIBRARY_PATH
17825  shlibpath_overrides_runpath=yes
17826  hardcode_into_libs=yes
17827  # ldd complains unless libraries are executable
17828  postinstall_cmds='chmod +x $lib'
17829  ;;
17830
17831sunos4*)
17832  version_type=sunos
17833  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17834  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17835  shlibpath_var=LD_LIBRARY_PATH
17836  shlibpath_overrides_runpath=yes
17837  if test yes = "$with_gnu_ld"; then
17838    need_lib_prefix=no
17839  fi
17840  need_version=yes
17841  ;;
17842
17843sysv4 | sysv4.3*)
17844  version_type=linux # correct to gnu/linux during the next big refactor
17845  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17846  soname_spec='$libname$release$shared_ext$major'
17847  shlibpath_var=LD_LIBRARY_PATH
17848  case $host_vendor in
17849    sni)
17850      shlibpath_overrides_runpath=no
17851      need_lib_prefix=no
17852      runpath_var=LD_RUN_PATH
17853      ;;
17854    siemens)
17855      need_lib_prefix=no
17856      ;;
17857    motorola)
17858      need_lib_prefix=no
17859      need_version=no
17860      shlibpath_overrides_runpath=no
17861      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17862      ;;
17863  esac
17864  ;;
17865
17866sysv4*MP*)
17867  if test -d /usr/nec; then
17868    version_type=linux # correct to gnu/linux during the next big refactor
17869    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17870    soname_spec='$libname$shared_ext.$major'
17871    shlibpath_var=LD_LIBRARY_PATH
17872  fi
17873  ;;
17874
17875sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17876  version_type=sco
17877  need_lib_prefix=no
17878  need_version=no
17879  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17880  soname_spec='$libname$release$shared_ext$major'
17881  shlibpath_var=LD_LIBRARY_PATH
17882  shlibpath_overrides_runpath=yes
17883  hardcode_into_libs=yes
17884  if test yes = "$with_gnu_ld"; then
17885    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17886  else
17887    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17888    case $host_os in
17889      sco3.2v5*)
17890        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17891	;;
17892    esac
17893  fi
17894  sys_lib_dlsearch_path_spec='/usr/lib'
17895  ;;
17896
17897tpf*)
17898  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17899  version_type=linux # correct to gnu/linux during the next big refactor
17900  need_lib_prefix=no
17901  need_version=no
17902  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17903  shlibpath_var=LD_LIBRARY_PATH
17904  shlibpath_overrides_runpath=no
17905  hardcode_into_libs=yes
17906  ;;
17907
17908uts4*)
17909  version_type=linux # correct to gnu/linux during the next big refactor
17910  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17911  soname_spec='$libname$release$shared_ext$major'
17912  shlibpath_var=LD_LIBRARY_PATH
17913  ;;
17914
17915*)
17916  dynamic_linker=no
17917  ;;
17918esac
17919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17920$as_echo "$dynamic_linker" >&6; }
17921test no = "$dynamic_linker" && can_build_shared=no
17922
17923variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17924if test yes = "$GCC"; then
17925  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17926fi
17927
17928if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17929  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17930fi
17931
17932if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17933  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17934fi
17935
17936# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17937configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17938
17939# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17940func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17941
17942# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17943configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18042$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18043hardcode_action=
18044if test -n "$hardcode_libdir_flag_spec" ||
18045   test -n "$runpath_var" ||
18046   test yes = "$hardcode_automatic"; then
18047
18048  # We can hardcode non-existent directories.
18049  if test no != "$hardcode_direct" &&
18050     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18051     # have to relink, otherwise we might link with an installed library
18052     # when we should be linking with a yet-to-be-installed one
18053     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
18054     test no != "$hardcode_minus_L"; then
18055    # Linking always hardcodes the temporary library directory.
18056    hardcode_action=relink
18057  else
18058    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18059    hardcode_action=immediate
18060  fi
18061else
18062  # We cannot hardcode anything, or else we can only hardcode existing
18063  # directories.
18064  hardcode_action=unsupported
18065fi
18066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18067$as_echo "$hardcode_action" >&6; }
18068
18069if test relink = "$hardcode_action" ||
18070   test yes = "$inherit_rpath"; then
18071  # Fast installation is not supported
18072  enable_fast_install=no
18073elif test yes = "$shlibpath_overrides_runpath" ||
18074     test no = "$enable_shared"; then
18075  # Fast installation is not necessary
18076  enable_fast_install=needless
18077fi
18078
18079
18080
18081
18082
18083
18084  if test yes != "$enable_dlopen"; then
18085  enable_dlopen=unknown
18086  enable_dlopen_self=unknown
18087  enable_dlopen_self_static=unknown
18088else
18089  lt_cv_dlopen=no
18090  lt_cv_dlopen_libs=
18091
18092  case $host_os in
18093  beos*)
18094    lt_cv_dlopen=load_add_on
18095    lt_cv_dlopen_libs=
18096    lt_cv_dlopen_self=yes
18097    ;;
18098
18099  mingw* | pw32* | cegcc*)
18100    lt_cv_dlopen=LoadLibrary
18101    lt_cv_dlopen_libs=
18102    ;;
18103
18104  cygwin*)
18105    lt_cv_dlopen=dlopen
18106    lt_cv_dlopen_libs=
18107    ;;
18108
18109  darwin*)
18110    # if libdl is installed we need to link against it
18111    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18112$as_echo_n "checking for dlopen in -ldl... " >&6; }
18113if ${ac_cv_lib_dl_dlopen+:} false; then :
18114  $as_echo_n "(cached) " >&6
18115else
18116  ac_check_lib_save_LIBS=$LIBS
18117LIBS="-ldl  $LIBS"
18118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18119/* end confdefs.h.  */
18120
18121/* Override any GCC internal prototype to avoid an error.
18122   Use char because int might match the return type of a GCC
18123   builtin and then its argument prototype would still apply.  */
18124#ifdef __cplusplus
18125extern "C"
18126#endif
18127char dlopen ();
18128int
18129main ()
18130{
18131return dlopen ();
18132  ;
18133  return 0;
18134}
18135_ACEOF
18136if ac_fn_c_try_link "$LINENO"; then :
18137  ac_cv_lib_dl_dlopen=yes
18138else
18139  ac_cv_lib_dl_dlopen=no
18140fi
18141rm -f core conftest.err conftest.$ac_objext \
18142    conftest$ac_exeext conftest.$ac_ext
18143LIBS=$ac_check_lib_save_LIBS
18144fi
18145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18146$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18147if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18148  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18149else
18150
18151    lt_cv_dlopen=dyld
18152    lt_cv_dlopen_libs=
18153    lt_cv_dlopen_self=yes
18154
18155fi
18156
18157    ;;
18158
18159  tpf*)
18160    # Don't try to run any link tests for TPF.  We know it's impossible
18161    # because TPF is a cross-compiler, and we know how we open DSOs.
18162    lt_cv_dlopen=dlopen
18163    lt_cv_dlopen_libs=
18164    lt_cv_dlopen_self=no
18165    ;;
18166
18167  *)
18168    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18169if test "x$ac_cv_func_shl_load" = xyes; then :
18170  lt_cv_dlopen=shl_load
18171else
18172  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18173$as_echo_n "checking for shl_load in -ldld... " >&6; }
18174if ${ac_cv_lib_dld_shl_load+:} false; then :
18175  $as_echo_n "(cached) " >&6
18176else
18177  ac_check_lib_save_LIBS=$LIBS
18178LIBS="-ldld  $LIBS"
18179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18180/* end confdefs.h.  */
18181
18182/* Override any GCC internal prototype to avoid an error.
18183   Use char because int might match the return type of a GCC
18184   builtin and then its argument prototype would still apply.  */
18185#ifdef __cplusplus
18186extern "C"
18187#endif
18188char shl_load ();
18189int
18190main ()
18191{
18192return shl_load ();
18193  ;
18194  return 0;
18195}
18196_ACEOF
18197if ac_fn_c_try_link "$LINENO"; then :
18198  ac_cv_lib_dld_shl_load=yes
18199else
18200  ac_cv_lib_dld_shl_load=no
18201fi
18202rm -f core conftest.err conftest.$ac_objext \
18203    conftest$ac_exeext conftest.$ac_ext
18204LIBS=$ac_check_lib_save_LIBS
18205fi
18206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18207$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18208if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18209  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
18210else
18211  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18212if test "x$ac_cv_func_dlopen" = xyes; then :
18213  lt_cv_dlopen=dlopen
18214else
18215  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18216$as_echo_n "checking for dlopen in -ldl... " >&6; }
18217if ${ac_cv_lib_dl_dlopen+:} false; then :
18218  $as_echo_n "(cached) " >&6
18219else
18220  ac_check_lib_save_LIBS=$LIBS
18221LIBS="-ldl  $LIBS"
18222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18223/* end confdefs.h.  */
18224
18225/* Override any GCC internal prototype to avoid an error.
18226   Use char because int might match the return type of a GCC
18227   builtin and then its argument prototype would still apply.  */
18228#ifdef __cplusplus
18229extern "C"
18230#endif
18231char dlopen ();
18232int
18233main ()
18234{
18235return dlopen ();
18236  ;
18237  return 0;
18238}
18239_ACEOF
18240if ac_fn_c_try_link "$LINENO"; then :
18241  ac_cv_lib_dl_dlopen=yes
18242else
18243  ac_cv_lib_dl_dlopen=no
18244fi
18245rm -f core conftest.err conftest.$ac_objext \
18246    conftest$ac_exeext conftest.$ac_ext
18247LIBS=$ac_check_lib_save_LIBS
18248fi
18249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18250$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18251if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18252  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18253else
18254  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18255$as_echo_n "checking for dlopen in -lsvld... " >&6; }
18256if ${ac_cv_lib_svld_dlopen+:} false; then :
18257  $as_echo_n "(cached) " >&6
18258else
18259  ac_check_lib_save_LIBS=$LIBS
18260LIBS="-lsvld  $LIBS"
18261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18262/* end confdefs.h.  */
18263
18264/* Override any GCC internal prototype to avoid an error.
18265   Use char because int might match the return type of a GCC
18266   builtin and then its argument prototype would still apply.  */
18267#ifdef __cplusplus
18268extern "C"
18269#endif
18270char dlopen ();
18271int
18272main ()
18273{
18274return dlopen ();
18275  ;
18276  return 0;
18277}
18278_ACEOF
18279if ac_fn_c_try_link "$LINENO"; then :
18280  ac_cv_lib_svld_dlopen=yes
18281else
18282  ac_cv_lib_svld_dlopen=no
18283fi
18284rm -f core conftest.err conftest.$ac_objext \
18285    conftest$ac_exeext conftest.$ac_ext
18286LIBS=$ac_check_lib_save_LIBS
18287fi
18288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18289$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18290if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18291  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18292else
18293  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18294$as_echo_n "checking for dld_link in -ldld... " >&6; }
18295if ${ac_cv_lib_dld_dld_link+:} false; then :
18296  $as_echo_n "(cached) " >&6
18297else
18298  ac_check_lib_save_LIBS=$LIBS
18299LIBS="-ldld  $LIBS"
18300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18301/* end confdefs.h.  */
18302
18303/* Override any GCC internal prototype to avoid an error.
18304   Use char because int might match the return type of a GCC
18305   builtin and then its argument prototype would still apply.  */
18306#ifdef __cplusplus
18307extern "C"
18308#endif
18309char dld_link ();
18310int
18311main ()
18312{
18313return dld_link ();
18314  ;
18315  return 0;
18316}
18317_ACEOF
18318if ac_fn_c_try_link "$LINENO"; then :
18319  ac_cv_lib_dld_dld_link=yes
18320else
18321  ac_cv_lib_dld_dld_link=no
18322fi
18323rm -f core conftest.err conftest.$ac_objext \
18324    conftest$ac_exeext conftest.$ac_ext
18325LIBS=$ac_check_lib_save_LIBS
18326fi
18327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18328$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18329if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18330  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18331fi
18332
18333
18334fi
18335
18336
18337fi
18338
18339
18340fi
18341
18342
18343fi
18344
18345
18346fi
18347
18348    ;;
18349  esac
18350
18351  if test no = "$lt_cv_dlopen"; then
18352    enable_dlopen=no
18353  else
18354    enable_dlopen=yes
18355  fi
18356
18357  case $lt_cv_dlopen in
18358  dlopen)
18359    save_CPPFLAGS=$CPPFLAGS
18360    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18361
18362    save_LDFLAGS=$LDFLAGS
18363    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18364
18365    save_LIBS=$LIBS
18366    LIBS="$lt_cv_dlopen_libs $LIBS"
18367
18368    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18369$as_echo_n "checking whether a program can dlopen itself... " >&6; }
18370if ${lt_cv_dlopen_self+:} false; then :
18371  $as_echo_n "(cached) " >&6
18372else
18373  	  if test yes = "$cross_compiling"; then :
18374  lt_cv_dlopen_self=cross
18375else
18376  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18377  lt_status=$lt_dlunknown
18378  cat > conftest.$ac_ext <<_LT_EOF
18379#line $LINENO "configure"
18380#include "confdefs.h"
18381
18382#if HAVE_DLFCN_H
18383#include <dlfcn.h>
18384#endif
18385
18386#include <stdio.h>
18387
18388#ifdef RTLD_GLOBAL
18389#  define LT_DLGLOBAL		RTLD_GLOBAL
18390#else
18391#  ifdef DL_GLOBAL
18392#    define LT_DLGLOBAL		DL_GLOBAL
18393#  else
18394#    define LT_DLGLOBAL		0
18395#  endif
18396#endif
18397
18398/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18399   find out it does not work in some platform. */
18400#ifndef LT_DLLAZY_OR_NOW
18401#  ifdef RTLD_LAZY
18402#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18403#  else
18404#    ifdef DL_LAZY
18405#      define LT_DLLAZY_OR_NOW		DL_LAZY
18406#    else
18407#      ifdef RTLD_NOW
18408#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18409#      else
18410#        ifdef DL_NOW
18411#          define LT_DLLAZY_OR_NOW	DL_NOW
18412#        else
18413#          define LT_DLLAZY_OR_NOW	0
18414#        endif
18415#      endif
18416#    endif
18417#  endif
18418#endif
18419
18420/* When -fvisibility=hidden is used, assume the code has been annotated
18421   correspondingly for the symbols needed.  */
18422#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18423int fnord () __attribute__((visibility("default")));
18424#endif
18425
18426int fnord () { return 42; }
18427int main ()
18428{
18429  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18430  int status = $lt_dlunknown;
18431
18432  if (self)
18433    {
18434      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18435      else
18436        {
18437	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18438          else puts (dlerror ());
18439	}
18440      /* dlclose (self); */
18441    }
18442  else
18443    puts (dlerror ());
18444
18445  return status;
18446}
18447_LT_EOF
18448  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18449  (eval $ac_link) 2>&5
18450  ac_status=$?
18451  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18452  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18453    (./conftest; exit; ) >&5 2>/dev/null
18454    lt_status=$?
18455    case x$lt_status in
18456      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18457      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18458      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18459    esac
18460  else :
18461    # compilation failed
18462    lt_cv_dlopen_self=no
18463  fi
18464fi
18465rm -fr conftest*
18466
18467
18468fi
18469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18470$as_echo "$lt_cv_dlopen_self" >&6; }
18471
18472    if test yes = "$lt_cv_dlopen_self"; then
18473      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18474      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18475$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18476if ${lt_cv_dlopen_self_static+:} false; then :
18477  $as_echo_n "(cached) " >&6
18478else
18479  	  if test yes = "$cross_compiling"; then :
18480  lt_cv_dlopen_self_static=cross
18481else
18482  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18483  lt_status=$lt_dlunknown
18484  cat > conftest.$ac_ext <<_LT_EOF
18485#line $LINENO "configure"
18486#include "confdefs.h"
18487
18488#if HAVE_DLFCN_H
18489#include <dlfcn.h>
18490#endif
18491
18492#include <stdio.h>
18493
18494#ifdef RTLD_GLOBAL
18495#  define LT_DLGLOBAL		RTLD_GLOBAL
18496#else
18497#  ifdef DL_GLOBAL
18498#    define LT_DLGLOBAL		DL_GLOBAL
18499#  else
18500#    define LT_DLGLOBAL		0
18501#  endif
18502#endif
18503
18504/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18505   find out it does not work in some platform. */
18506#ifndef LT_DLLAZY_OR_NOW
18507#  ifdef RTLD_LAZY
18508#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18509#  else
18510#    ifdef DL_LAZY
18511#      define LT_DLLAZY_OR_NOW		DL_LAZY
18512#    else
18513#      ifdef RTLD_NOW
18514#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18515#      else
18516#        ifdef DL_NOW
18517#          define LT_DLLAZY_OR_NOW	DL_NOW
18518#        else
18519#          define LT_DLLAZY_OR_NOW	0
18520#        endif
18521#      endif
18522#    endif
18523#  endif
18524#endif
18525
18526/* When -fvisibility=hidden is used, assume the code has been annotated
18527   correspondingly for the symbols needed.  */
18528#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18529int fnord () __attribute__((visibility("default")));
18530#endif
18531
18532int fnord () { return 42; }
18533int main ()
18534{
18535  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18536  int status = $lt_dlunknown;
18537
18538  if (self)
18539    {
18540      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18541      else
18542        {
18543	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18544          else puts (dlerror ());
18545	}
18546      /* dlclose (self); */
18547    }
18548  else
18549    puts (dlerror ());
18550
18551  return status;
18552}
18553_LT_EOF
18554  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18555  (eval $ac_link) 2>&5
18556  ac_status=$?
18557  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18558  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18559    (./conftest; exit; ) >&5 2>/dev/null
18560    lt_status=$?
18561    case x$lt_status in
18562      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18563      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18564      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18565    esac
18566  else :
18567    # compilation failed
18568    lt_cv_dlopen_self_static=no
18569  fi
18570fi
18571rm -fr conftest*
18572
18573
18574fi
18575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18576$as_echo "$lt_cv_dlopen_self_static" >&6; }
18577    fi
18578
18579    CPPFLAGS=$save_CPPFLAGS
18580    LDFLAGS=$save_LDFLAGS
18581    LIBS=$save_LIBS
18582    ;;
18583  esac
18584
18585  case $lt_cv_dlopen_self in
18586  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18587  *) enable_dlopen_self=unknown ;;
18588  esac
18589
18590  case $lt_cv_dlopen_self_static in
18591  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18592  *) enable_dlopen_self_static=unknown ;;
18593  esac
18594fi
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612striplib=
18613old_striplib=
18614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18615$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18616if test -z "$STRIP"; then
18617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18618$as_echo "no" >&6; }
18619else
18620  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18621    old_striplib="$STRIP --strip-debug"
18622    striplib="$STRIP --strip-unneeded"
18623    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18624$as_echo "yes" >&6; }
18625  else
18626    case $host_os in
18627    darwin*)
18628      # FIXME - insert some real tests, host_os isn't really good enough
18629      striplib="$STRIP -x"
18630      old_striplib="$STRIP -S"
18631      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18632$as_echo "yes" >&6; }
18633      ;;
18634    freebsd*)
18635      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
18636        old_striplib="$STRIP --strip-debug"
18637        striplib="$STRIP --strip-unneeded"
18638        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18639$as_echo "yes" >&6; }
18640      else
18641        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18642$as_echo "no" >&6; }
18643      fi
18644      ;;
18645    *)
18646      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18647$as_echo "no" >&6; }
18648      ;;
18649    esac
18650  fi
18651fi
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664  # Report what library types will actually be built
18665  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18666$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18668$as_echo "$can_build_shared" >&6; }
18669
18670  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18671$as_echo_n "checking whether to build shared libraries... " >&6; }
18672  test no = "$can_build_shared" && enable_shared=no
18673
18674  # On AIX, shared libraries and static libraries use the same namespace, and
18675  # are all built from PIC.
18676  case $host_os in
18677  aix3*)
18678    test yes = "$enable_shared" && enable_static=no
18679    if test -n "$RANLIB"; then
18680      archive_cmds="$archive_cmds~\$RANLIB \$lib"
18681      postinstall_cmds='$RANLIB $lib'
18682    fi
18683    ;;
18684
18685  aix[4-9]*)
18686    if test ia64 != "$host_cpu"; then
18687      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18688      yes,aix,yes) ;;			# shared object as lib.so file only
18689      yes,svr4,*) ;;			# shared object as lib.so archive member only
18690      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
18691      esac
18692    fi
18693    ;;
18694  esac
18695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18696$as_echo "$enable_shared" >&6; }
18697
18698  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18699$as_echo_n "checking whether to build static libraries... " >&6; }
18700  # Make sure either enable_shared or enable_static is yes.
18701  test yes = "$enable_shared" || enable_static=yes
18702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18703$as_echo "$enable_static" >&6; }
18704
18705
18706
18707
18708fi
18709ac_ext=c
18710ac_cpp='$CPP $CPPFLAGS'
18711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18713ac_compiler_gnu=$ac_cv_c_compiler_gnu
18714
18715CC=$lt_save_CC
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731        ac_config_commands="$ac_config_commands libtool"
18732
18733
18734
18735
18736# Only expand once:
18737
18738
18739
18740# Checks for programs.
18741
18742
18743if test "x$GCC" = "xyes"; then
18744	CPPFLAGS="$CPPFLAGS -Wall"
18745fi
18746
18747
18748
18749# Define a configure option for an alternate module directory
18750
18751# Check whether --with-xorg-module-dir was given.
18752if test "${with_xorg_module_dir+set}" = set; then :
18753  withval=$with_xorg_module_dir; moduledir="$withval"
18754else
18755  moduledir="$libdir/xorg/modules"
18756fi
18757
18758
18759# Store the list of server defined optional extensions in REQUIRED_MODULES
18760
18761
18762	SAVE_CFLAGS="$CFLAGS"
18763	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18764	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18765/* end confdefs.h.  */
18766
18767#include "xorg-server.h"
18768#if !defined RANDR
18769#error RANDR not defined
18770#endif
18771
18772int
18773main ()
18774{
18775
18776  ;
18777  return 0;
18778}
18779_ACEOF
18780if ac_fn_c_try_compile "$LINENO"; then :
18781  _EXT_CHECK=yes
18782else
18783  _EXT_CHECK=no
18784fi
18785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18786	CFLAGS="$SAVE_CFLAGS"
18787	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18788$as_echo_n "checking if RANDR is defined... " >&6; }
18789	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18790$as_echo "$_EXT_CHECK" >&6; }
18791	if test "$_EXT_CHECK" != no; then
18792		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18793	fi
18794
18795
18796
18797	SAVE_CFLAGS="$CFLAGS"
18798	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18799	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18800/* end confdefs.h.  */
18801
18802#include "xorg-server.h"
18803#if !defined RENDER
18804#error RENDER not defined
18805#endif
18806
18807int
18808main ()
18809{
18810
18811  ;
18812  return 0;
18813}
18814_ACEOF
18815if ac_fn_c_try_compile "$LINENO"; then :
18816  _EXT_CHECK=yes
18817else
18818  _EXT_CHECK=no
18819fi
18820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18821	CFLAGS="$SAVE_CFLAGS"
18822	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18823$as_echo_n "checking if RENDER is defined... " >&6; }
18824	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18825$as_echo "$_EXT_CHECK" >&6; }
18826	if test "$_EXT_CHECK" != no; then
18827		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18828	fi
18829
18830
18831
18832	SAVE_CFLAGS="$CFLAGS"
18833	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18834	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18835/* end confdefs.h.  */
18836
18837#include "xorg-server.h"
18838#if !defined XV
18839#error XV not defined
18840#endif
18841
18842int
18843main ()
18844{
18845
18846  ;
18847  return 0;
18848}
18849_ACEOF
18850if ac_fn_c_try_compile "$LINENO"; then :
18851  _EXT_CHECK=yes
18852else
18853  _EXT_CHECK=no
18854fi
18855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18856	CFLAGS="$SAVE_CFLAGS"
18857	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18858$as_echo_n "checking if XV is defined... " >&6; }
18859	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18860$as_echo "$_EXT_CHECK" >&6; }
18861	if test "$_EXT_CHECK" != no; then
18862		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18863	fi
18864
18865
18866
18867	SAVE_CFLAGS="$CFLAGS"
18868	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18869	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18870/* end confdefs.h.  */
18871
18872#include "xorg-server.h"
18873#if !defined DPMSExtension
18874#error DPMSExtension not defined
18875#endif
18876
18877int
18878main ()
18879{
18880
18881  ;
18882  return 0;
18883}
18884_ACEOF
18885if ac_fn_c_try_compile "$LINENO"; then :
18886  _EXT_CHECK=yes
18887else
18888  _EXT_CHECK=no
18889fi
18890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18891	CFLAGS="$SAVE_CFLAGS"
18892	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18893$as_echo_n "checking if DPMSExtension is defined... " >&6; }
18894	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18895$as_echo "$_EXT_CHECK" >&6; }
18896	if test "$_EXT_CHECK" != no; then
18897		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18898	fi
18899
18900
18901# Checks for libraries.
18902
18903pkg_failed=no
18904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
18905$as_echo_n "checking for LIBDRM... " >&6; }
18906
18907if test -n "$LIBDRM_CFLAGS"; then
18908    pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
18909 elif test -n "$PKG_CONFIG"; then
18910    if test -n "$PKG_CONFIG" && \
18911    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.78\""; } >&5
18912  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.78") 2>&5
18913  ac_status=$?
18914  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18915  test $ac_status = 0; }; then
18916  pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.78" 2>/dev/null`
18917		      test "x$?" != "x0" && pkg_failed=yes
18918else
18919  pkg_failed=yes
18920fi
18921 else
18922    pkg_failed=untried
18923fi
18924if test -n "$LIBDRM_LIBS"; then
18925    pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
18926 elif test -n "$PKG_CONFIG"; then
18927    if test -n "$PKG_CONFIG" && \
18928    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.78\""; } >&5
18929  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.78") 2>&5
18930  ac_status=$?
18931  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18932  test $ac_status = 0; }; then
18933  pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.78" 2>/dev/null`
18934		      test "x$?" != "x0" && pkg_failed=yes
18935else
18936  pkg_failed=yes
18937fi
18938 else
18939    pkg_failed=untried
18940fi
18941
18942
18943
18944if test $pkg_failed = yes; then
18945   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18946$as_echo "no" >&6; }
18947
18948if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18949        _pkg_short_errors_supported=yes
18950else
18951        _pkg_short_errors_supported=no
18952fi
18953        if test $_pkg_short_errors_supported = yes; then
18954	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.78" 2>&1`
18955        else
18956	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.78" 2>&1`
18957        fi
18958	# Put the nasty error message in config.log where it belongs
18959	echo "$LIBDRM_PKG_ERRORS" >&5
18960
18961	as_fn_error $? "Package requirements (libdrm >= 2.4.78) were not met:
18962
18963$LIBDRM_PKG_ERRORS
18964
18965Consider adjusting the PKG_CONFIG_PATH environment variable if you
18966installed software in a non-standard prefix.
18967
18968Alternatively, you may set the environment variables LIBDRM_CFLAGS
18969and LIBDRM_LIBS to avoid the need to call pkg-config.
18970See the pkg-config man page for more details." "$LINENO" 5
18971elif test $pkg_failed = untried; then
18972     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18973$as_echo "no" >&6; }
18974	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18975$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18976as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18977is in your PATH or set the PKG_CONFIG environment variable to the full
18978path to pkg-config.
18979
18980Alternatively, you may set the environment variables LIBDRM_CFLAGS
18981and LIBDRM_LIBS to avoid the need to call pkg-config.
18982See the pkg-config man page for more details.
18983
18984To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18985See \`config.log' for more details" "$LINENO" 5; }
18986else
18987	LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
18988	LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
18989        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18990$as_echo "yes" >&6; }
18991
18992fi
18993
18994pkg_failed=no
18995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM_RADEON" >&5
18996$as_echo_n "checking for LIBDRM_RADEON... " >&6; }
18997
18998if test -n "$LIBDRM_RADEON_CFLAGS"; then
18999    pkg_cv_LIBDRM_RADEON_CFLAGS="$LIBDRM_RADEON_CFLAGS"
19000 elif test -n "$PKG_CONFIG"; then
19001    if test -n "$PKG_CONFIG" && \
19002    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon\""; } >&5
19003  ($PKG_CONFIG --exists --print-errors "libdrm_radeon") 2>&5
19004  ac_status=$?
19005  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19006  test $ac_status = 0; }; then
19007  pkg_cv_LIBDRM_RADEON_CFLAGS=`$PKG_CONFIG --cflags "libdrm_radeon" 2>/dev/null`
19008		      test "x$?" != "x0" && pkg_failed=yes
19009else
19010  pkg_failed=yes
19011fi
19012 else
19013    pkg_failed=untried
19014fi
19015if test -n "$LIBDRM_RADEON_LIBS"; then
19016    pkg_cv_LIBDRM_RADEON_LIBS="$LIBDRM_RADEON_LIBS"
19017 elif test -n "$PKG_CONFIG"; then
19018    if test -n "$PKG_CONFIG" && \
19019    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon\""; } >&5
19020  ($PKG_CONFIG --exists --print-errors "libdrm_radeon") 2>&5
19021  ac_status=$?
19022  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19023  test $ac_status = 0; }; then
19024  pkg_cv_LIBDRM_RADEON_LIBS=`$PKG_CONFIG --libs "libdrm_radeon" 2>/dev/null`
19025		      test "x$?" != "x0" && pkg_failed=yes
19026else
19027  pkg_failed=yes
19028fi
19029 else
19030    pkg_failed=untried
19031fi
19032
19033
19034
19035if test $pkg_failed = yes; then
19036   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19037$as_echo "no" >&6; }
19038
19039if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19040        _pkg_short_errors_supported=yes
19041else
19042        _pkg_short_errors_supported=no
19043fi
19044        if test $_pkg_short_errors_supported = yes; then
19045	        LIBDRM_RADEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_radeon" 2>&1`
19046        else
19047	        LIBDRM_RADEON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_radeon" 2>&1`
19048        fi
19049	# Put the nasty error message in config.log where it belongs
19050	echo "$LIBDRM_RADEON_PKG_ERRORS" >&5
19051
19052	as_fn_error $? "Package requirements (libdrm_radeon) were not met:
19053
19054$LIBDRM_RADEON_PKG_ERRORS
19055
19056Consider adjusting the PKG_CONFIG_PATH environment variable if you
19057installed software in a non-standard prefix.
19058
19059Alternatively, you may set the environment variables LIBDRM_RADEON_CFLAGS
19060and LIBDRM_RADEON_LIBS to avoid the need to call pkg-config.
19061See the pkg-config man page for more details." "$LINENO" 5
19062elif test $pkg_failed = untried; then
19063     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19064$as_echo "no" >&6; }
19065	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19067as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19068is in your PATH or set the PKG_CONFIG environment variable to the full
19069path to pkg-config.
19070
19071Alternatively, you may set the environment variables LIBDRM_RADEON_CFLAGS
19072and LIBDRM_RADEON_LIBS to avoid the need to call pkg-config.
19073See the pkg-config man page for more details.
19074
19075To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19076See \`config.log' for more details" "$LINENO" 5; }
19077else
19078	LIBDRM_RADEON_CFLAGS=$pkg_cv_LIBDRM_RADEON_CFLAGS
19079	LIBDRM_RADEON_LIBS=$pkg_cv_LIBDRM_RADEON_LIBS
19080        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19081$as_echo "yes" >&6; }
19082
19083fi
19084
19085# Obtain compiler/linker options for the driver dependencies
19086
19087pkg_failed=no
19088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
19089$as_echo_n "checking for XORG... " >&6; }
19090
19091if test -n "$XORG_CFLAGS"; then
19092    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19093 elif test -n "$PKG_CONFIG"; then
19094    if test -n "$PKG_CONFIG" && \
19095    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.13 xproto fontsproto xf86driproto \$REQUIRED_MODULES\""; } >&5
19096  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES") 2>&5
19097  ac_status=$?
19098  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19099  test $ac_status = 0; }; then
19100  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>/dev/null`
19101		      test "x$?" != "x0" && pkg_failed=yes
19102else
19103  pkg_failed=yes
19104fi
19105 else
19106    pkg_failed=untried
19107fi
19108if test -n "$XORG_LIBS"; then
19109    pkg_cv_XORG_LIBS="$XORG_LIBS"
19110 elif test -n "$PKG_CONFIG"; then
19111    if test -n "$PKG_CONFIG" && \
19112    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.13 xproto fontsproto xf86driproto \$REQUIRED_MODULES\""; } >&5
19113  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES") 2>&5
19114  ac_status=$?
19115  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19116  test $ac_status = 0; }; then
19117  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>/dev/null`
19118		      test "x$?" != "x0" && pkg_failed=yes
19119else
19120  pkg_failed=yes
19121fi
19122 else
19123    pkg_failed=untried
19124fi
19125
19126
19127
19128if test $pkg_failed = yes; then
19129   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19130$as_echo "no" >&6; }
19131
19132if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19133        _pkg_short_errors_supported=yes
19134else
19135        _pkg_short_errors_supported=no
19136fi
19137        if test $_pkg_short_errors_supported = yes; then
19138	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>&1`
19139        else
19140	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>&1`
19141        fi
19142	# Put the nasty error message in config.log where it belongs
19143	echo "$XORG_PKG_ERRORS" >&5
19144
19145	as_fn_error $? "Package requirements (xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES) were not met:
19146
19147$XORG_PKG_ERRORS
19148
19149Consider adjusting the PKG_CONFIG_PATH environment variable if you
19150installed software in a non-standard prefix.
19151
19152Alternatively, you may set the environment variables XORG_CFLAGS
19153and XORG_LIBS to avoid the need to call pkg-config.
19154See the pkg-config man page for more details." "$LINENO" 5
19155elif test $pkg_failed = untried; then
19156     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19157$as_echo "no" >&6; }
19158	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19159$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19160as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19161is in your PATH or set the PKG_CONFIG environment variable to the full
19162path to pkg-config.
19163
19164Alternatively, you may set the environment variables XORG_CFLAGS
19165and XORG_LIBS to avoid the need to call pkg-config.
19166See the pkg-config man page for more details.
19167
19168To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19169See \`config.log' for more details" "$LINENO" 5; }
19170else
19171	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19172	XORG_LIBS=$pkg_cv_XORG_LIBS
19173        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19174$as_echo "yes" >&6; }
19175
19176fi
19177
19178pkg_failed=no
19179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
19180$as_echo_n "checking for XEXT... " >&6; }
19181
19182if test -n "$XEXT_CFLAGS"; then
19183    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
19184 elif test -n "$PKG_CONFIG"; then
19185    if test -n "$PKG_CONFIG" && \
19186    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
19187  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
19188  ac_status=$?
19189  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19190  test $ac_status = 0; }; then
19191  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
19192		      test "x$?" != "x0" && pkg_failed=yes
19193else
19194  pkg_failed=yes
19195fi
19196 else
19197    pkg_failed=untried
19198fi
19199if test -n "$XEXT_LIBS"; then
19200    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
19201 elif test -n "$PKG_CONFIG"; then
19202    if test -n "$PKG_CONFIG" && \
19203    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
19204  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
19205  ac_status=$?
19206  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19207  test $ac_status = 0; }; then
19208  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
19209		      test "x$?" != "x0" && pkg_failed=yes
19210else
19211  pkg_failed=yes
19212fi
19213 else
19214    pkg_failed=untried
19215fi
19216
19217
19218
19219if test $pkg_failed = yes; then
19220   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19221$as_echo "no" >&6; }
19222
19223if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19224        _pkg_short_errors_supported=yes
19225else
19226        _pkg_short_errors_supported=no
19227fi
19228        if test $_pkg_short_errors_supported = yes; then
19229	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
19230        else
19231	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
19232        fi
19233	# Put the nasty error message in config.log where it belongs
19234	echo "$XEXT_PKG_ERRORS" >&5
19235
19236	HAVE_XEXTPROTO_71="no"
19237elif test $pkg_failed = untried; then
19238     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19239$as_echo "no" >&6; }
19240	HAVE_XEXTPROTO_71="no"
19241else
19242	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
19243	XEXT_LIBS=$pkg_cv_XEXT_LIBS
19244        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19245$as_echo "yes" >&6; }
19246	HAVE_XEXTPROTO_71="yes";
19247$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
19248
19249fi
19250 if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
19251  HAVE_XEXTPROTO_71_TRUE=
19252  HAVE_XEXTPROTO_71_FALSE='#'
19253else
19254  HAVE_XEXTPROTO_71_TRUE='#'
19255  HAVE_XEXTPROTO_71_FALSE=
19256fi
19257
19258
19259# Section "OutputClass" is only supported as of xserver 1.16
19260if test -n "$PKG_CONFIG" && \
19261    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.16\""; } >&5
19262  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.16") 2>&5
19263  ac_status=$?
19264  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19265  test $ac_status = 0; }; then
19266  sysconfigdir=`$PKG_CONFIG --variable=sysconfigdir xorg-server`
19267else
19268  sysconfigdir=""
19269fi
19270 if test "x$sysconfigdir" != "x"; then
19271  HAS_XORG_CONF_DIR_TRUE=
19272  HAS_XORG_CONF_DIR_FALSE='#'
19273else
19274  HAS_XORG_CONF_DIR_TRUE='#'
19275  HAS_XORG_CONF_DIR_FALSE=
19276fi
19277
19278
19279# Define a configure option for an alternate X Server configuration directory
19280
19281# Check whether --with-xorg-conf-dir was given.
19282if test "${with_xorg_conf_dir+set}" = set; then :
19283  withval=$with_xorg_conf_dir; configdir="$withval"
19284else
19285  configdir='${prefix}/share/X11/xorg.conf.d'
19286fi
19287
19288
19289
19290# Check whether --enable-udev was given.
19291if test "${enable_udev+set}" = set; then :
19292  enableval=$enable_udev; enable_udev="$enableval"
19293else
19294  enable_udev=auto
19295fi
19296
19297if test "x$enable_udev" != "xno"; then
19298
19299pkg_failed=no
19300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5
19301$as_echo_n "checking for LIBUDEV... " >&6; }
19302
19303if test -n "$LIBUDEV_CFLAGS"; then
19304    pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS"
19305 elif test -n "$PKG_CONFIG"; then
19306    if test -n "$PKG_CONFIG" && \
19307    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
19308  ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
19309  ac_status=$?
19310  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19311  test $ac_status = 0; }; then
19312  pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
19313		      test "x$?" != "x0" && pkg_failed=yes
19314else
19315  pkg_failed=yes
19316fi
19317 else
19318    pkg_failed=untried
19319fi
19320if test -n "$LIBUDEV_LIBS"; then
19321    pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS"
19322 elif test -n "$PKG_CONFIG"; then
19323    if test -n "$PKG_CONFIG" && \
19324    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
19325  ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
19326  ac_status=$?
19327  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19328  test $ac_status = 0; }; then
19329  pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
19330		      test "x$?" != "x0" && pkg_failed=yes
19331else
19332  pkg_failed=yes
19333fi
19334 else
19335    pkg_failed=untried
19336fi
19337
19338
19339
19340if test $pkg_failed = yes; then
19341   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19342$as_echo "no" >&6; }
19343
19344if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19345        _pkg_short_errors_supported=yes
19346else
19347        _pkg_short_errors_supported=no
19348fi
19349        if test $_pkg_short_errors_supported = yes; then
19350	        LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
19351        else
19352	        LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
19353        fi
19354	# Put the nasty error message in config.log where it belongs
19355	echo "$LIBUDEV_PKG_ERRORS" >&5
19356
19357	LIBUDEV=no
19358elif test $pkg_failed = untried; then
19359     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19360$as_echo "no" >&6; }
19361	LIBUDEV=no
19362else
19363	LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS
19364	LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS
19365        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19366$as_echo "yes" >&6; }
19367	LIBUDEV=yes
19368fi
19369	if test "x$LIBUDEV" = xyes; then
19370
19371$as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
19372
19373	elif test "x$enable_udev" != "xauto"; then
19374		as_fn_error $? "Building with udev requested but libudev not found" "$LINENO" 5
19375	fi
19376fi
19377 if test x$LIBUDEV = xyes; then
19378  LIBUDEV_TRUE=
19379  LIBUDEV_FALSE='#'
19380else
19381  LIBUDEV_TRUE='#'
19382  LIBUDEV_FALSE=
19383fi
19384
19385
19386SAVE_CPPFLAGS="$CPPFLAGS"
19387CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
19388
19389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include GLAMOR support" >&5
19390$as_echo_n "checking whether to include GLAMOR support... " >&6; }
19391# Check whether --enable-glamor was given.
19392if test "${enable_glamor+set}" = set; then :
19393  enableval=$enable_glamor; GLAMOR="$enableval"
19394else
19395  GLAMOR=yes
19396fi
19397
19398
19399if test "x$GLAMOR" != "xno"; then
19400	for ac_header in glamor.h
19401do :
19402  ac_fn_c_check_header_compile "$LINENO" "glamor.h" "ac_cv_header_glamor_h" "#include \"xorg-server.h\"
19403"
19404if test "x$ac_cv_header_glamor_h" = xyes; then :
19405  cat >>confdefs.h <<_ACEOF
19406#define HAVE_GLAMOR_H 1
19407_ACEOF
19408 GLAMOR_H="yes"
19409else
19410  GLAMOR_H="no"
19411fi
19412
19413done
19414
19415
19416	if test "x$GLAMOR_H" = xyes; then
19417		ac_fn_c_check_decl "$LINENO" "GLAMOR_NO_DRI3" "ac_cv_have_decl_GLAMOR_NO_DRI3" "#include \"xorg-server.h\"
19418			       #include \"glamor.h\"
19419"
19420if test "x$ac_cv_have_decl_GLAMOR_NO_DRI3" = xyes; then :
19421  GLAMOR_XSERVER="yes"
19422else
19423  GLAMOR_XSERVER="no"
19424fi
19425
19426
19427		ac_fn_c_check_decl "$LINENO" "glamor_glyphs_init" "ac_cv_have_decl_glamor_glyphs_init" "#include \"xorg-server.h\"
19428			       #include \"glamor.h\"
19429"
19430if test "x$ac_cv_have_decl_glamor_glyphs_init" = xyes; then :
19431
19432$as_echo "#define HAVE_GLAMOR_GLYPHS_INIT 1" >>confdefs.h
19433
19434fi
19435
19436
19437		ac_fn_c_check_decl "$LINENO" "glamor_egl_destroy_textured_pixmap" "ac_cv_have_decl_glamor_egl_destroy_textured_pixmap" "#include \"xorg-server.h\"
19438			       #include \"glamor.h\"
19439"
19440if test "x$ac_cv_have_decl_glamor_egl_destroy_textured_pixmap" = xyes; then :
19441
19442$as_echo "#define HAVE_GLAMOR_EGL_DESTROY_TEXTURED_PIXMAP 1" >>confdefs.h
19443
19444fi
19445
19446	fi
19447
19448	if test "x$GLAMOR_XSERVER" != xyes; then
19449
19450pkg_failed=no
19451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR" >&5
19452$as_echo_n "checking for LIBGLAMOR... " >&6; }
19453
19454if test -n "$LIBGLAMOR_CFLAGS"; then
19455    pkg_cv_LIBGLAMOR_CFLAGS="$LIBGLAMOR_CFLAGS"
19456 elif test -n "$PKG_CONFIG"; then
19457    if test -n "$PKG_CONFIG" && \
19458    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.6.0\""; } >&5
19459  ($PKG_CONFIG --exists --print-errors "glamor >= 0.6.0") 2>&5
19460  ac_status=$?
19461  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19462  test $ac_status = 0; }; then
19463  pkg_cv_LIBGLAMOR_CFLAGS=`$PKG_CONFIG --cflags "glamor >= 0.6.0" 2>/dev/null`
19464		      test "x$?" != "x0" && pkg_failed=yes
19465else
19466  pkg_failed=yes
19467fi
19468 else
19469    pkg_failed=untried
19470fi
19471if test -n "$LIBGLAMOR_LIBS"; then
19472    pkg_cv_LIBGLAMOR_LIBS="$LIBGLAMOR_LIBS"
19473 elif test -n "$PKG_CONFIG"; then
19474    if test -n "$PKG_CONFIG" && \
19475    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.6.0\""; } >&5
19476  ($PKG_CONFIG --exists --print-errors "glamor >= 0.6.0") 2>&5
19477  ac_status=$?
19478  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19479  test $ac_status = 0; }; then
19480  pkg_cv_LIBGLAMOR_LIBS=`$PKG_CONFIG --libs "glamor >= 0.6.0" 2>/dev/null`
19481		      test "x$?" != "x0" && pkg_failed=yes
19482else
19483  pkg_failed=yes
19484fi
19485 else
19486    pkg_failed=untried
19487fi
19488
19489
19490
19491if test $pkg_failed = yes; then
19492   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19493$as_echo "no" >&6; }
19494
19495if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19496        _pkg_short_errors_supported=yes
19497else
19498        _pkg_short_errors_supported=no
19499fi
19500        if test $_pkg_short_errors_supported = yes; then
19501	        LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor >= 0.6.0" 2>&1`
19502        else
19503	        LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor >= 0.6.0" 2>&1`
19504        fi
19505	# Put the nasty error message in config.log where it belongs
19506	echo "$LIBGLAMOR_PKG_ERRORS" >&5
19507
19508	as_fn_error $? "Package requirements (glamor >= 0.6.0) were not met:
19509
19510$LIBGLAMOR_PKG_ERRORS
19511
19512Consider adjusting the PKG_CONFIG_PATH environment variable if you
19513installed software in a non-standard prefix.
19514
19515Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS
19516and LIBGLAMOR_LIBS to avoid the need to call pkg-config.
19517See the pkg-config man page for more details." "$LINENO" 5
19518elif test $pkg_failed = untried; then
19519     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19520$as_echo "no" >&6; }
19521	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19523as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19524is in your PATH or set the PKG_CONFIG environment variable to the full
19525path to pkg-config.
19526
19527Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS
19528and LIBGLAMOR_LIBS to avoid the need to call pkg-config.
19529See the pkg-config man page for more details.
19530
19531To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19532See \`config.log' for more details" "$LINENO" 5; }
19533else
19534	LIBGLAMOR_CFLAGS=$pkg_cv_LIBGLAMOR_CFLAGS
19535	LIBGLAMOR_LIBS=$pkg_cv_LIBGLAMOR_LIBS
19536        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19537$as_echo "yes" >&6; }
19538
19539fi
19540
19541pkg_failed=no
19542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR_EGL" >&5
19543$as_echo_n "checking for LIBGLAMOR_EGL... " >&6; }
19544
19545if test -n "$LIBGLAMOR_EGL_CFLAGS"; then
19546    pkg_cv_LIBGLAMOR_EGL_CFLAGS="$LIBGLAMOR_EGL_CFLAGS"
19547 elif test -n "$PKG_CONFIG"; then
19548    if test -n "$PKG_CONFIG" && \
19549    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5
19550  ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5
19551  ac_status=$?
19552  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19553  test $ac_status = 0; }; then
19554  pkg_cv_LIBGLAMOR_EGL_CFLAGS=`$PKG_CONFIG --cflags "glamor-egl" 2>/dev/null`
19555		      test "x$?" != "x0" && pkg_failed=yes
19556else
19557  pkg_failed=yes
19558fi
19559 else
19560    pkg_failed=untried
19561fi
19562if test -n "$LIBGLAMOR_EGL_LIBS"; then
19563    pkg_cv_LIBGLAMOR_EGL_LIBS="$LIBGLAMOR_EGL_LIBS"
19564 elif test -n "$PKG_CONFIG"; then
19565    if test -n "$PKG_CONFIG" && \
19566    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5
19567  ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5
19568  ac_status=$?
19569  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19570  test $ac_status = 0; }; then
19571  pkg_cv_LIBGLAMOR_EGL_LIBS=`$PKG_CONFIG --libs "glamor-egl" 2>/dev/null`
19572		      test "x$?" != "x0" && pkg_failed=yes
19573else
19574  pkg_failed=yes
19575fi
19576 else
19577    pkg_failed=untried
19578fi
19579
19580
19581
19582if test $pkg_failed = yes; then
19583   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19584$as_echo "no" >&6; }
19585
19586if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19587        _pkg_short_errors_supported=yes
19588else
19589        _pkg_short_errors_supported=no
19590fi
19591        if test $_pkg_short_errors_supported = yes; then
19592	        LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor-egl" 2>&1`
19593        else
19594	        LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor-egl" 2>&1`
19595        fi
19596	# Put the nasty error message in config.log where it belongs
19597	echo "$LIBGLAMOR_EGL_PKG_ERRORS" >&5
19598
19599	as_fn_error $? "Package requirements (glamor-egl) were not met:
19600
19601$LIBGLAMOR_EGL_PKG_ERRORS
19602
19603Consider adjusting the PKG_CONFIG_PATH environment variable if you
19604installed software in a non-standard prefix.
19605
19606Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS
19607and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config.
19608See the pkg-config man page for more details." "$LINENO" 5
19609elif test $pkg_failed = untried; then
19610     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19611$as_echo "no" >&6; }
19612	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19613$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19614as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19615is in your PATH or set the PKG_CONFIG environment variable to the full
19616path to pkg-config.
19617
19618Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS
19619and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config.
19620See the pkg-config man page for more details.
19621
19622To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19623See \`config.log' for more details" "$LINENO" 5; }
19624else
19625	LIBGLAMOR_EGL_CFLAGS=$pkg_cv_LIBGLAMOR_EGL_CFLAGS
19626	LIBGLAMOR_EGL_LIBS=$pkg_cv_LIBGLAMOR_EGL_LIBS
19627        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19628$as_echo "yes" >&6; }
19629
19630fi
19631	fi
19632
19633$as_echo "#define USE_GLAMOR 1" >>confdefs.h
19634
19635else
19636	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLAMOR" >&5
19637$as_echo "$GLAMOR" >&6; }
19638fi
19639 if test x$GLAMOR != xno; then
19640  GLAMOR_TRUE=
19641  GLAMOR_FALSE='#'
19642else
19643  GLAMOR_TRUE='#'
19644  GLAMOR_FALSE=
19645fi
19646
19647
19648ac_fn_c_check_decl "$LINENO" "RegionDuplicate" "ac_cv_have_decl_RegionDuplicate" "#include <xorg-server.h>
19649	       #include <regionstr.h>
19650"
19651if test "x$ac_cv_have_decl_RegionDuplicate" = xyes; then :
19652
19653$as_echo "#define HAVE_REGIONDUPLICATE 1" >>confdefs.h
19654
19655fi
19656
19657
19658ac_fn_c_check_decl "$LINENO" "fbGlyphs" "ac_cv_have_decl_fbGlyphs" "#include <X11/Xmd.h>
19659	       #include <X11/Xfuncproto.h>
19660	       #include <X11/extensions/renderproto.h>
19661	       #include <xorg-server.h>
19662	       #include <picture.h>
19663	       #include <glyphstr.h>
19664	       #include <fbpict.h>
19665"
19666if test "x$ac_cv_have_decl_fbGlyphs" = xyes; then :
19667
19668$as_echo "#define HAVE_FBGLYPHS 1" >>confdefs.h
19669
19670fi
19671
19672
19673ac_fn_c_check_decl "$LINENO" "xf86CursorResetCursor" "ac_cv_have_decl_xf86CursorResetCursor" "#include <xorg-server.h>
19674	       #include <xf86Cursor.h>
19675"
19676if test "x$ac_cv_have_decl_xf86CursorResetCursor" = xyes; then :
19677
19678$as_echo "#define HAVE_XF86_CURSOR_RESET_CURSOR 1" >>confdefs.h
19679
19680fi
19681
19682
19683for ac_header in misyncshm.h
19684do :
19685  ac_fn_c_check_header_compile "$LINENO" "misyncshm.h" "ac_cv_header_misyncshm_h" "#include <X11/Xdefs.h>
19686	          #include <X11/Xfuncproto.h>
19687	          #include <xorg-server.h>
19688		  #include <screenint.h>
19689"
19690if test "x$ac_cv_header_misyncshm_h" = xyes; then :
19691  cat >>confdefs.h <<_ACEOF
19692#define HAVE_MISYNCSHM_H 1
19693_ACEOF
19694
19695fi
19696
19697done
19698
19699
19700for ac_header in present.h
19701do :
19702  ac_fn_c_check_header_compile "$LINENO" "present.h" "ac_cv_header_present_h" "#include <X11/Xmd.h>
19703		 #include <X11/Xproto.h>
19704		 #include \"xorg-server.h\"
19705		 #include <X11/X.h>
19706"
19707if test "x$ac_cv_header_present_h" = xyes; then :
19708  cat >>confdefs.h <<_ACEOF
19709#define HAVE_PRESENT_H 1
19710_ACEOF
19711
19712fi
19713
19714done
19715
19716
19717for ac_header in dri3.h
19718do :
19719  ac_fn_c_check_header_compile "$LINENO" "dri3.h" "ac_cv_header_dri3_h" "#include <X11/Xmd.h>
19720		 #include <xorg-server.h>
19721"
19722if test "x$ac_cv_header_dri3_h" = xyes; then :
19723  cat >>confdefs.h <<_ACEOF
19724#define HAVE_DRI3_H 1
19725_ACEOF
19726
19727fi
19728
19729done
19730
19731
19732CPPFLAGS="$SAVE_CPPFLAGS"
19733
19734
19735pkg_failed=no
19736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
19737$as_echo_n "checking for PCIACCESS... " >&6; }
19738
19739if test -n "$PCIACCESS_CFLAGS"; then
19740    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
19741 elif test -n "$PKG_CONFIG"; then
19742    if test -n "$PKG_CONFIG" && \
19743    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
19744  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
19745  ac_status=$?
19746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19747  test $ac_status = 0; }; then
19748  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
19749		      test "x$?" != "x0" && pkg_failed=yes
19750else
19751  pkg_failed=yes
19752fi
19753 else
19754    pkg_failed=untried
19755fi
19756if test -n "$PCIACCESS_LIBS"; then
19757    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
19758 elif test -n "$PKG_CONFIG"; then
19759    if test -n "$PKG_CONFIG" && \
19760    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
19761  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
19762  ac_status=$?
19763  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19764  test $ac_status = 0; }; then
19765  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
19766		      test "x$?" != "x0" && pkg_failed=yes
19767else
19768  pkg_failed=yes
19769fi
19770 else
19771    pkg_failed=untried
19772fi
19773
19774
19775
19776if test $pkg_failed = yes; then
19777   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19778$as_echo "no" >&6; }
19779
19780if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19781        _pkg_short_errors_supported=yes
19782else
19783        _pkg_short_errors_supported=no
19784fi
19785        if test $_pkg_short_errors_supported = yes; then
19786	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
19787        else
19788	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
19789        fi
19790	# Put the nasty error message in config.log where it belongs
19791	echo "$PCIACCESS_PKG_ERRORS" >&5
19792
19793	as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
19794
19795$PCIACCESS_PKG_ERRORS
19796
19797Consider adjusting the PKG_CONFIG_PATH environment variable if you
19798installed software in a non-standard prefix.
19799
19800Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19801and PCIACCESS_LIBS to avoid the need to call pkg-config.
19802See the pkg-config man page for more details." "$LINENO" 5
19803elif test $pkg_failed = untried; then
19804     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19805$as_echo "no" >&6; }
19806	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19807$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19808as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19809is in your PATH or set the PKG_CONFIG environment variable to the full
19810path to pkg-config.
19811
19812Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19813and PCIACCESS_LIBS to avoid the need to call pkg-config.
19814See the pkg-config man page for more details.
19815
19816To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19817See \`config.log' for more details" "$LINENO" 5; }
19818else
19819	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
19820	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
19821        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19822$as_echo "yes" >&6; }
19823
19824fi
19825XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
19826
19827# Checks for headers/macros for byte swapping
19828# Known variants:
19829#	<byteswap.h> bswap_16, bswap_32, bswap_64  (glibc)
19830#	<sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD)
19831#	<sys/endian.h> bswap16, bswap32, bswap64 (other BSD's)
19832#	and a fallback to local macros if none of the above are found
19833
19834# if <byteswap.h> is found, assume it's the correct version
19835for ac_header in byteswap.h
19836do :
19837  ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
19838if test "x$ac_cv_header_byteswap_h" = xyes; then :
19839  cat >>confdefs.h <<_ACEOF
19840#define HAVE_BYTESWAP_H 1
19841_ACEOF
19842
19843fi
19844
19845done
19846
19847
19848# if <sys/endian.h> is found, have to check which version
19849ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
19850if test "x$ac_cv_header_sys_endian_h" = xyes; then :
19851  HAVE_SYS_ENDIAN_H="yes"
19852else
19853  HAVE_SYS_ENDIAN_H="no"
19854fi
19855
19856
19857
19858if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then
19859	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
19860$as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
19861	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19862/* end confdefs.h.  */
19863
19864#include <sys/types.h>
19865#include <sys/endian.h>
19866
19867int
19868main ()
19869{
19870
19871int a = 1, b;
19872b = __swap16(a);
19873
19874  ;
19875  return 0;
19876}
19877
19878_ACEOF
19879if ac_fn_c_try_link "$LINENO"; then :
19880  SYS_ENDIAN__SWAP='yes'
19881else
19882  SYS_ENDIAN__SWAP='no'
19883fi
19884rm -f core conftest.err conftest.$ac_objext \
19885    conftest$ac_exeext conftest.$ac_ext
19886	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN__SWAP" >&5
19887$as_echo "$SYS_ENDIAN__SWAP" >&6; }
19888
19889	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
19890$as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
19891	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19892/* end confdefs.h.  */
19893
19894#include <sys/types.h>
19895#include <sys/endian.h>
19896
19897int
19898main ()
19899{
19900
19901int a = 1, b;
19902b = bswap16(a);
19903
19904  ;
19905  return 0;
19906}
19907
19908_ACEOF
19909if ac_fn_c_try_link "$LINENO"; then :
19910  SYS_ENDIAN_BSWAP='yes'
19911else
19912  SYS_ENDIAN_BSWAP='no'
19913fi
19914rm -f core conftest.err conftest.$ac_objext \
19915    conftest$ac_exeext conftest.$ac_ext
19916	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN_BSWAP" >&5
19917$as_echo "$SYS_ENDIAN_BSWAP" >&6; }
19918
19919    	if test "$SYS_ENDIAN_BSWAP" = "yes" ; then
19920		USE_SYS_ENDIAN_H=yes
19921		BSWAP=bswap
19922	else
19923	    	if test "$SYS_ENDIAN__SWAP" = "yes" ; then
19924			USE_SYS_ENDIAN_H=yes
19925			BSWAP=__swap
19926		else
19927			USE_SYS_ENDIAN_H=no
19928		fi
19929	fi
19930
19931	if test "$USE_SYS_ENDIAN_H" = "yes" ; then
19932
19933$as_echo "#define USE_SYS_ENDIAN_H 1" >>confdefs.h
19934
19935
19936cat >>confdefs.h <<_ACEOF
19937#define bswap_16 ${BSWAP}16
19938_ACEOF
19939
19940
19941cat >>confdefs.h <<_ACEOF
19942#define bswap_32 ${BSWAP}32
19943_ACEOF
19944
19945
19946cat >>confdefs.h <<_ACEOF
19947#define bswap_64 ${BSWAP}64
19948_ACEOF
19949
19950	fi
19951fi
19952
19953
19954
19955DRIVER_NAME=ati
19956
19957
19958{ $as_echo "$as_me:${as_lineno-$LINENO}: The atimisc sub-driver has been split out to xf86-video-mach64:
19959    git://anongit.freedesktop.org/git/xorg/driver/xf86-video-mach64
19960Please install that driver as well for mach64-based cards.
19961" >&5
19962$as_echo "$as_me: The atimisc sub-driver has been split out to xf86-video-mach64:
19963    git://anongit.freedesktop.org/git/xorg/driver/xf86-video-mach64
19964Please install that driver as well for mach64-based cards.
19965" >&6;}
19966
19967{ $as_echo "$as_me:${as_lineno-$LINENO}: The r128 sub-driver has been split out to xf86-video-r128:
19968    git://anongit.freedesktop.org/git/xorg/driver/xf86-video-r128
19969Please install that driver as well for rage128-based cards.
19970" >&5
19971$as_echo "$as_me: The r128 sub-driver has been split out to xf86-video-r128:
19972    git://anongit.freedesktop.org/git/xorg/driver/xf86-video-r128
19973Please install that driver as well for rage128-based cards.
19974" >&6;}
19975
19976ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile conf/Makefile"
19977
19978cat >confcache <<\_ACEOF
19979# This file is a shell script that caches the results of configure
19980# tests run on this system so they can be shared between configure
19981# scripts and configure runs, see configure's option --config-cache.
19982# It is not useful on other systems.  If it contains results you don't
19983# want to keep, you may remove or edit it.
19984#
19985# config.status only pays attention to the cache file if you give it
19986# the --recheck option to rerun configure.
19987#
19988# `ac_cv_env_foo' variables (set or unset) will be overridden when
19989# loading this file, other *unset* `ac_cv_foo' will be assigned the
19990# following values.
19991
19992_ACEOF
19993
19994# The following way of writing the cache mishandles newlines in values,
19995# but we know of no workaround that is simple, portable, and efficient.
19996# So, we kill variables containing newlines.
19997# Ultrix sh set writes to stderr and can't be redirected directly,
19998# and sets the high bit in the cache file unless we assign to the vars.
19999(
20000  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20001    eval ac_val=\$$ac_var
20002    case $ac_val in #(
20003    *${as_nl}*)
20004      case $ac_var in #(
20005      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20006$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20007      esac
20008      case $ac_var in #(
20009      _ | IFS | as_nl) ;; #(
20010      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20011      *) { eval $ac_var=; unset $ac_var;} ;;
20012      esac ;;
20013    esac
20014  done
20015
20016  (set) 2>&1 |
20017    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20018    *${as_nl}ac_space=\ *)
20019      # `set' does not quote correctly, so add quotes: double-quote
20020      # substitution turns \\\\ into \\, and sed turns \\ into \.
20021      sed -n \
20022	"s/'/'\\\\''/g;
20023	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20024      ;; #(
20025    *)
20026      # `set' quotes correctly as required by POSIX, so do not add quotes.
20027      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20028      ;;
20029    esac |
20030    sort
20031) |
20032  sed '
20033     /^ac_cv_env_/b end
20034     t clear
20035     :clear
20036     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20037     t end
20038     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20039     :end' >>confcache
20040if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20041  if test -w "$cache_file"; then
20042    if test "x$cache_file" != "x/dev/null"; then
20043      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20044$as_echo "$as_me: updating cache $cache_file" >&6;}
20045      if test ! -f "$cache_file" || test -h "$cache_file"; then
20046	cat confcache >"$cache_file"
20047      else
20048        case $cache_file in #(
20049        */* | ?:*)
20050	  mv -f confcache "$cache_file"$$ &&
20051	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20052        *)
20053	  mv -f confcache "$cache_file" ;;
20054	esac
20055      fi
20056    fi
20057  else
20058    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20059$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20060  fi
20061fi
20062rm -f confcache
20063
20064test "x$prefix" = xNONE && prefix=$ac_default_prefix
20065# Let make expand exec_prefix.
20066test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20067
20068DEFS=-DHAVE_CONFIG_H
20069
20070ac_libobjs=
20071ac_ltlibobjs=
20072U=
20073for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20074  # 1. Remove the extension, and $U if already installed.
20075  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20076  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20077  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20078  #    will be set to the directory where LIBOBJS objects are built.
20079  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20080  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20081done
20082LIBOBJS=$ac_libobjs
20083
20084LTLIBOBJS=$ac_ltlibobjs
20085
20086
20087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20088$as_echo_n "checking that generated files are newer than configure... " >&6; }
20089   if test -n "$am_sleep_pid"; then
20090     # Hide warnings about reused PIDs.
20091     wait $am_sleep_pid 2>/dev/null
20092   fi
20093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20094$as_echo "done" >&6; }
20095 if test -n "$EXEEXT"; then
20096  am__EXEEXT_TRUE=
20097  am__EXEEXT_FALSE='#'
20098else
20099  am__EXEEXT_TRUE='#'
20100  am__EXEEXT_FALSE=
20101fi
20102
20103if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20104  as_fn_error $? "conditional \"AMDEP\" was never defined.
20105Usually this means the macro was only invoked conditionally." "$LINENO" 5
20106fi
20107if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20108  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20109Usually this means the macro was only invoked conditionally." "$LINENO" 5
20110fi
20111if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
20112  as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
20113Usually this means the macro was only invoked conditionally." "$LINENO" 5
20114fi
20115if test -z "${HAS_XORG_CONF_DIR_TRUE}" && test -z "${HAS_XORG_CONF_DIR_FALSE}"; then
20116  as_fn_error $? "conditional \"HAS_XORG_CONF_DIR\" was never defined.
20117Usually this means the macro was only invoked conditionally." "$LINENO" 5
20118fi
20119if test -z "${LIBUDEV_TRUE}" && test -z "${LIBUDEV_FALSE}"; then
20120  as_fn_error $? "conditional \"LIBUDEV\" was never defined.
20121Usually this means the macro was only invoked conditionally." "$LINENO" 5
20122fi
20123if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then
20124  as_fn_error $? "conditional \"GLAMOR\" was never defined.
20125Usually this means the macro was only invoked conditionally." "$LINENO" 5
20126fi
20127
20128: "${CONFIG_STATUS=./config.status}"
20129ac_write_fail=0
20130ac_clean_files_save=$ac_clean_files
20131ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20132{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20133$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20134as_write_fail=0
20135cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20136#! $SHELL
20137# Generated by $as_me.
20138# Run this file to recreate the current configuration.
20139# Compiler output produced by configure, useful for debugging
20140# configure, is in config.log if it exists.
20141
20142debug=false
20143ac_cs_recheck=false
20144ac_cs_silent=false
20145
20146SHELL=\${CONFIG_SHELL-$SHELL}
20147export SHELL
20148_ASEOF
20149cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20150## -------------------- ##
20151## M4sh Initialization. ##
20152## -------------------- ##
20153
20154# Be more Bourne compatible
20155DUALCASE=1; export DUALCASE # for MKS sh
20156if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20157  emulate sh
20158  NULLCMD=:
20159  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20160  # is contrary to our usage.  Disable this feature.
20161  alias -g '${1+"$@"}'='"$@"'
20162  setopt NO_GLOB_SUBST
20163else
20164  case `(set -o) 2>/dev/null` in #(
20165  *posix*) :
20166    set -o posix ;; #(
20167  *) :
20168     ;;
20169esac
20170fi
20171
20172
20173as_nl='
20174'
20175export as_nl
20176# Printing a long string crashes Solaris 7 /usr/bin/printf.
20177as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20178as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20179as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20180# Prefer a ksh shell builtin over an external printf program on Solaris,
20181# but without wasting forks for bash or zsh.
20182if test -z "$BASH_VERSION$ZSH_VERSION" \
20183    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20184  as_echo='print -r --'
20185  as_echo_n='print -rn --'
20186elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20187  as_echo='printf %s\n'
20188  as_echo_n='printf %s'
20189else
20190  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20191    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20192    as_echo_n='/usr/ucb/echo -n'
20193  else
20194    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20195    as_echo_n_body='eval
20196      arg=$1;
20197      case $arg in #(
20198      *"$as_nl"*)
20199	expr "X$arg" : "X\\(.*\\)$as_nl";
20200	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20201      esac;
20202      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20203    '
20204    export as_echo_n_body
20205    as_echo_n='sh -c $as_echo_n_body as_echo'
20206  fi
20207  export as_echo_body
20208  as_echo='sh -c $as_echo_body as_echo'
20209fi
20210
20211# The user is always right.
20212if test "${PATH_SEPARATOR+set}" != set; then
20213  PATH_SEPARATOR=:
20214  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20215    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20216      PATH_SEPARATOR=';'
20217  }
20218fi
20219
20220
20221# IFS
20222# We need space, tab and new line, in precisely that order.  Quoting is
20223# there to prevent editors from complaining about space-tab.
20224# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20225# splitting by setting IFS to empty value.)
20226IFS=" ""	$as_nl"
20227
20228# Find who we are.  Look in the path if we contain no directory separator.
20229as_myself=
20230case $0 in #((
20231  *[\\/]* ) as_myself=$0 ;;
20232  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20233for as_dir in $PATH
20234do
20235  IFS=$as_save_IFS
20236  test -z "$as_dir" && as_dir=.
20237    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20238  done
20239IFS=$as_save_IFS
20240
20241     ;;
20242esac
20243# We did not find ourselves, most probably we were run as `sh COMMAND'
20244# in which case we are not to be found in the path.
20245if test "x$as_myself" = x; then
20246  as_myself=$0
20247fi
20248if test ! -f "$as_myself"; then
20249  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20250  exit 1
20251fi
20252
20253# Unset variables that we do not need and which cause bugs (e.g. in
20254# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20255# suppresses any "Segmentation fault" message there.  '((' could
20256# trigger a bug in pdksh 5.2.14.
20257for as_var in BASH_ENV ENV MAIL MAILPATH
20258do eval test x\${$as_var+set} = xset \
20259  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20260done
20261PS1='$ '
20262PS2='> '
20263PS4='+ '
20264
20265# NLS nuisances.
20266LC_ALL=C
20267export LC_ALL
20268LANGUAGE=C
20269export LANGUAGE
20270
20271# CDPATH.
20272(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20273
20274
20275# as_fn_error STATUS ERROR [LINENO LOG_FD]
20276# ----------------------------------------
20277# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20278# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20279# script with STATUS, using 1 if that was 0.
20280as_fn_error ()
20281{
20282  as_status=$1; test $as_status -eq 0 && as_status=1
20283  if test "$4"; then
20284    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20285    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20286  fi
20287  $as_echo "$as_me: error: $2" >&2
20288  as_fn_exit $as_status
20289} # as_fn_error
20290
20291
20292# as_fn_set_status STATUS
20293# -----------------------
20294# Set $? to STATUS, without forking.
20295as_fn_set_status ()
20296{
20297  return $1
20298} # as_fn_set_status
20299
20300# as_fn_exit STATUS
20301# -----------------
20302# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20303as_fn_exit ()
20304{
20305  set +e
20306  as_fn_set_status $1
20307  exit $1
20308} # as_fn_exit
20309
20310# as_fn_unset VAR
20311# ---------------
20312# Portably unset VAR.
20313as_fn_unset ()
20314{
20315  { eval $1=; unset $1;}
20316}
20317as_unset=as_fn_unset
20318# as_fn_append VAR VALUE
20319# ----------------------
20320# Append the text in VALUE to the end of the definition contained in VAR. Take
20321# advantage of any shell optimizations that allow amortized linear growth over
20322# repeated appends, instead of the typical quadratic growth present in naive
20323# implementations.
20324if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20325  eval 'as_fn_append ()
20326  {
20327    eval $1+=\$2
20328  }'
20329else
20330  as_fn_append ()
20331  {
20332    eval $1=\$$1\$2
20333  }
20334fi # as_fn_append
20335
20336# as_fn_arith ARG...
20337# ------------------
20338# Perform arithmetic evaluation on the ARGs, and store the result in the
20339# global $as_val. Take advantage of shells that can avoid forks. The arguments
20340# must be portable across $(()) and expr.
20341if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20342  eval 'as_fn_arith ()
20343  {
20344    as_val=$(( $* ))
20345  }'
20346else
20347  as_fn_arith ()
20348  {
20349    as_val=`expr "$@" || test $? -eq 1`
20350  }
20351fi # as_fn_arith
20352
20353
20354if expr a : '\(a\)' >/dev/null 2>&1 &&
20355   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20356  as_expr=expr
20357else
20358  as_expr=false
20359fi
20360
20361if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20362  as_basename=basename
20363else
20364  as_basename=false
20365fi
20366
20367if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20368  as_dirname=dirname
20369else
20370  as_dirname=false
20371fi
20372
20373as_me=`$as_basename -- "$0" ||
20374$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20375	 X"$0" : 'X\(//\)$' \| \
20376	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20377$as_echo X/"$0" |
20378    sed '/^.*\/\([^/][^/]*\)\/*$/{
20379	    s//\1/
20380	    q
20381	  }
20382	  /^X\/\(\/\/\)$/{
20383	    s//\1/
20384	    q
20385	  }
20386	  /^X\/\(\/\).*/{
20387	    s//\1/
20388	    q
20389	  }
20390	  s/.*/./; q'`
20391
20392# Avoid depending upon Character Ranges.
20393as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20394as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20395as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20396as_cr_digits='0123456789'
20397as_cr_alnum=$as_cr_Letters$as_cr_digits
20398
20399ECHO_C= ECHO_N= ECHO_T=
20400case `echo -n x` in #(((((
20401-n*)
20402  case `echo 'xy\c'` in
20403  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20404  xy)  ECHO_C='\c';;
20405  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20406       ECHO_T='	';;
20407  esac;;
20408*)
20409  ECHO_N='-n';;
20410esac
20411
20412rm -f conf$$ conf$$.exe conf$$.file
20413if test -d conf$$.dir; then
20414  rm -f conf$$.dir/conf$$.file
20415else
20416  rm -f conf$$.dir
20417  mkdir conf$$.dir 2>/dev/null
20418fi
20419if (echo >conf$$.file) 2>/dev/null; then
20420  if ln -s conf$$.file conf$$ 2>/dev/null; then
20421    as_ln_s='ln -s'
20422    # ... but there are two gotchas:
20423    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20424    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20425    # In both cases, we have to default to `cp -pR'.
20426    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20427      as_ln_s='cp -pR'
20428  elif ln conf$$.file conf$$ 2>/dev/null; then
20429    as_ln_s=ln
20430  else
20431    as_ln_s='cp -pR'
20432  fi
20433else
20434  as_ln_s='cp -pR'
20435fi
20436rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20437rmdir conf$$.dir 2>/dev/null
20438
20439
20440# as_fn_mkdir_p
20441# -------------
20442# Create "$as_dir" as a directory, including parents if necessary.
20443as_fn_mkdir_p ()
20444{
20445
20446  case $as_dir in #(
20447  -*) as_dir=./$as_dir;;
20448  esac
20449  test -d "$as_dir" || eval $as_mkdir_p || {
20450    as_dirs=
20451    while :; do
20452      case $as_dir in #(
20453      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20454      *) as_qdir=$as_dir;;
20455      esac
20456      as_dirs="'$as_qdir' $as_dirs"
20457      as_dir=`$as_dirname -- "$as_dir" ||
20458$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20459	 X"$as_dir" : 'X\(//\)[^/]' \| \
20460	 X"$as_dir" : 'X\(//\)$' \| \
20461	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20462$as_echo X"$as_dir" |
20463    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20464	    s//\1/
20465	    q
20466	  }
20467	  /^X\(\/\/\)[^/].*/{
20468	    s//\1/
20469	    q
20470	  }
20471	  /^X\(\/\/\)$/{
20472	    s//\1/
20473	    q
20474	  }
20475	  /^X\(\/\).*/{
20476	    s//\1/
20477	    q
20478	  }
20479	  s/.*/./; q'`
20480      test -d "$as_dir" && break
20481    done
20482    test -z "$as_dirs" || eval "mkdir $as_dirs"
20483  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20484
20485
20486} # as_fn_mkdir_p
20487if mkdir -p . 2>/dev/null; then
20488  as_mkdir_p='mkdir -p "$as_dir"'
20489else
20490  test -d ./-p && rmdir ./-p
20491  as_mkdir_p=false
20492fi
20493
20494
20495# as_fn_executable_p FILE
20496# -----------------------
20497# Test if FILE is an executable regular file.
20498as_fn_executable_p ()
20499{
20500  test -f "$1" && test -x "$1"
20501} # as_fn_executable_p
20502as_test_x='test -x'
20503as_executable_p=as_fn_executable_p
20504
20505# Sed expression to map a string onto a valid CPP name.
20506as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20507
20508# Sed expression to map a string onto a valid variable name.
20509as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20510
20511
20512exec 6>&1
20513## ----------------------------------- ##
20514## Main body of $CONFIG_STATUS script. ##
20515## ----------------------------------- ##
20516_ASEOF
20517test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20518
20519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20520# Save the log message, to keep $0 and so on meaningful, and to
20521# report actual input values of CONFIG_FILES etc. instead of their
20522# values after options handling.
20523ac_log="
20524This file was extended by xf86-video-ati $as_me 18.0.0, which was
20525generated by GNU Autoconf 2.69.  Invocation command line was
20526
20527  CONFIG_FILES    = $CONFIG_FILES
20528  CONFIG_HEADERS  = $CONFIG_HEADERS
20529  CONFIG_LINKS    = $CONFIG_LINKS
20530  CONFIG_COMMANDS = $CONFIG_COMMANDS
20531  $ $0 $@
20532
20533on `(hostname || uname -n) 2>/dev/null | sed 1q`
20534"
20535
20536_ACEOF
20537
20538case $ac_config_files in *"
20539"*) set x $ac_config_files; shift; ac_config_files=$*;;
20540esac
20541
20542case $ac_config_headers in *"
20543"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20544esac
20545
20546
20547cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20548# Files that config.status was made for.
20549config_files="$ac_config_files"
20550config_headers="$ac_config_headers"
20551config_commands="$ac_config_commands"
20552
20553_ACEOF
20554
20555cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20556ac_cs_usage="\
20557\`$as_me' instantiates files and other configuration actions
20558from templates according to the current configuration.  Unless the files
20559and actions are specified as TAGs, all are instantiated by default.
20560
20561Usage: $0 [OPTION]... [TAG]...
20562
20563  -h, --help       print this help, then exit
20564  -V, --version    print version number and configuration settings, then exit
20565      --config     print configuration, then exit
20566  -q, --quiet, --silent
20567                   do not print progress messages
20568  -d, --debug      don't remove temporary files
20569      --recheck    update $as_me by reconfiguring in the same conditions
20570      --file=FILE[:TEMPLATE]
20571                   instantiate the configuration file FILE
20572      --header=FILE[:TEMPLATE]
20573                   instantiate the configuration header FILE
20574
20575Configuration files:
20576$config_files
20577
20578Configuration headers:
20579$config_headers
20580
20581Configuration commands:
20582$config_commands
20583
20584Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Radeon>."
20585
20586_ACEOF
20587cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20588ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20589ac_cs_version="\\
20590xf86-video-ati config.status 18.0.0
20591configured by $0, generated by GNU Autoconf 2.69,
20592  with options \\"\$ac_cs_config\\"
20593
20594Copyright (C) 2012 Free Software Foundation, Inc.
20595This config.status script is free software; the Free Software Foundation
20596gives unlimited permission to copy, distribute and modify it."
20597
20598ac_pwd='$ac_pwd'
20599srcdir='$srcdir'
20600INSTALL='$INSTALL'
20601MKDIR_P='$MKDIR_P'
20602AWK='$AWK'
20603test -n "\$AWK" || AWK=awk
20604_ACEOF
20605
20606cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20607# The default lists apply if the user does not specify any file.
20608ac_need_defaults=:
20609while test $# != 0
20610do
20611  case $1 in
20612  --*=?*)
20613    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20614    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20615    ac_shift=:
20616    ;;
20617  --*=)
20618    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20619    ac_optarg=
20620    ac_shift=:
20621    ;;
20622  *)
20623    ac_option=$1
20624    ac_optarg=$2
20625    ac_shift=shift
20626    ;;
20627  esac
20628
20629  case $ac_option in
20630  # Handling of the options.
20631  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20632    ac_cs_recheck=: ;;
20633  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20634    $as_echo "$ac_cs_version"; exit ;;
20635  --config | --confi | --conf | --con | --co | --c )
20636    $as_echo "$ac_cs_config"; exit ;;
20637  --debug | --debu | --deb | --de | --d | -d )
20638    debug=: ;;
20639  --file | --fil | --fi | --f )
20640    $ac_shift
20641    case $ac_optarg in
20642    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20643    '') as_fn_error $? "missing file argument" ;;
20644    esac
20645    as_fn_append CONFIG_FILES " '$ac_optarg'"
20646    ac_need_defaults=false;;
20647  --header | --heade | --head | --hea )
20648    $ac_shift
20649    case $ac_optarg in
20650    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20651    esac
20652    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20653    ac_need_defaults=false;;
20654  --he | --h)
20655    # Conflict between --help and --header
20656    as_fn_error $? "ambiguous option: \`$1'
20657Try \`$0 --help' for more information.";;
20658  --help | --hel | -h )
20659    $as_echo "$ac_cs_usage"; exit ;;
20660  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20661  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20662    ac_cs_silent=: ;;
20663
20664  # This is an error.
20665  -*) as_fn_error $? "unrecognized option: \`$1'
20666Try \`$0 --help' for more information." ;;
20667
20668  *) as_fn_append ac_config_targets " $1"
20669     ac_need_defaults=false ;;
20670
20671  esac
20672  shift
20673done
20674
20675ac_configure_extra_args=
20676
20677if $ac_cs_silent; then
20678  exec 6>/dev/null
20679  ac_configure_extra_args="$ac_configure_extra_args --silent"
20680fi
20681
20682_ACEOF
20683cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20684if \$ac_cs_recheck; then
20685  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20686  shift
20687  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20688  CONFIG_SHELL='$SHELL'
20689  export CONFIG_SHELL
20690  exec "\$@"
20691fi
20692
20693_ACEOF
20694cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20695exec 5>>config.log
20696{
20697  echo
20698  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20699## Running $as_me. ##
20700_ASBOX
20701  $as_echo "$ac_log"
20702} >&5
20703
20704_ACEOF
20705cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20706#
20707# INIT-COMMANDS
20708#
20709AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20710
20711
20712# The HP-UX ksh and POSIX shell print the target directory to stdout
20713# if CDPATH is set.
20714(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20715
20716sed_quote_subst='$sed_quote_subst'
20717double_quote_subst='$double_quote_subst'
20718delay_variable_subst='$delay_variable_subst'
20719enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20720macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20721macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20722enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20723pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20724enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20725shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20726SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20727ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20728PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20729host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20730host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20731host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20732build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20733build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20734build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20735SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20736Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20737GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20738EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20739FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20740LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20741NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20742LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20743max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20744ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20745exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20746lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20747lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20748lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20749lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20750lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20751reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20752reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20753OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20754deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20755file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20756file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20757want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20758DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20759sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20760AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20761lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20762AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20763archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20764STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20765RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20766old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20767old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20768old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20769lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20770CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20771CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20772compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20773GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20774lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20775lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20776lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20777lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20778lt_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"`'
20779lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20780nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20781lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20782lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20783objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20784MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20785lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20786lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20787lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20788lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20789lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20790need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20791MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20792DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20793NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20794LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20795OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20796OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20797libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20798shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20799extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20800archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20801enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20802export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20803whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20804compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20805old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20806old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20807archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20808archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20809module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20810module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20811with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20812allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20813no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20814hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20815hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20816hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20817hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20818hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20819hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20820hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20821inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20822link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20823always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20824export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20825exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20826include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20827prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20828postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20829file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20830variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20831need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20832need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20833version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20834runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20835shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20836shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20837libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20838library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20839soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20840install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20841postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20842postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20843finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20844finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20845hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20846sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20847configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20848configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20849hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20850enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20851enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20852enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20853old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20854striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20855
20856LTCC='$LTCC'
20857LTCFLAGS='$LTCFLAGS'
20858compiler='$compiler_DEFAULT'
20859
20860# A function that is used when there is no print builtin or printf.
20861func_fallback_echo ()
20862{
20863  eval 'cat <<_LTECHO_EOF
20864\$1
20865_LTECHO_EOF'
20866}
20867
20868# Quote evaled strings.
20869for var in SHELL \
20870ECHO \
20871PATH_SEPARATOR \
20872SED \
20873GREP \
20874EGREP \
20875FGREP \
20876LD \
20877NM \
20878LN_S \
20879lt_SP2NL \
20880lt_NL2SP \
20881reload_flag \
20882OBJDUMP \
20883deplibs_check_method \
20884file_magic_cmd \
20885file_magic_glob \
20886want_nocaseglob \
20887DLLTOOL \
20888sharedlib_from_linklib_cmd \
20889AR \
20890archiver_list_spec \
20891STRIP \
20892RANLIB \
20893CC \
20894CFLAGS \
20895compiler \
20896lt_cv_sys_global_symbol_pipe \
20897lt_cv_sys_global_symbol_to_cdecl \
20898lt_cv_sys_global_symbol_to_import \
20899lt_cv_sys_global_symbol_to_c_name_address \
20900lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20901lt_cv_nm_interface \
20902nm_file_list_spec \
20903lt_cv_truncate_bin \
20904lt_prog_compiler_no_builtin_flag \
20905lt_prog_compiler_pic \
20906lt_prog_compiler_wl \
20907lt_prog_compiler_static \
20908lt_cv_prog_compiler_c_o \
20909need_locks \
20910MANIFEST_TOOL \
20911DSYMUTIL \
20912NMEDIT \
20913LIPO \
20914OTOOL \
20915OTOOL64 \
20916shrext_cmds \
20917export_dynamic_flag_spec \
20918whole_archive_flag_spec \
20919compiler_needs_object \
20920with_gnu_ld \
20921allow_undefined_flag \
20922no_undefined_flag \
20923hardcode_libdir_flag_spec \
20924hardcode_libdir_separator \
20925exclude_expsyms \
20926include_expsyms \
20927file_list_spec \
20928variables_saved_for_relink \
20929libname_spec \
20930library_names_spec \
20931soname_spec \
20932install_override_mode \
20933finish_eval \
20934old_striplib \
20935striplib; do
20936    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20937    *[\\\\\\\`\\"\\\$]*)
20938      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20939      ;;
20940    *)
20941      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20942      ;;
20943    esac
20944done
20945
20946# Double-quote double-evaled strings.
20947for var in reload_cmds \
20948old_postinstall_cmds \
20949old_postuninstall_cmds \
20950old_archive_cmds \
20951extract_expsyms_cmds \
20952old_archive_from_new_cmds \
20953old_archive_from_expsyms_cmds \
20954archive_cmds \
20955archive_expsym_cmds \
20956module_cmds \
20957module_expsym_cmds \
20958export_symbols_cmds \
20959prelink_cmds \
20960postlink_cmds \
20961postinstall_cmds \
20962postuninstall_cmds \
20963finish_cmds \
20964sys_lib_search_path_spec \
20965configure_time_dlsearch_path \
20966configure_time_lt_sys_library_path; do
20967    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20968    *[\\\\\\\`\\"\\\$]*)
20969      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20970      ;;
20971    *)
20972      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20973      ;;
20974    esac
20975done
20976
20977ac_aux_dir='$ac_aux_dir'
20978
20979# See if we are running on zsh, and set the options that allow our
20980# commands through without removal of \ escapes INIT.
20981if test -n "\${ZSH_VERSION+set}"; then
20982   setopt NO_GLOB_SUBST
20983fi
20984
20985
20986    PACKAGE='$PACKAGE'
20987    VERSION='$VERSION'
20988    RM='$RM'
20989    ofile='$ofile'
20990
20991
20992
20993
20994_ACEOF
20995
20996cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20997
20998# Handling of arguments.
20999for ac_config_target in $ac_config_targets
21000do
21001  case $ac_config_target in
21002    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21003    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21004    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21005    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21006    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21007    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21008    "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
21009
21010  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21011  esac
21012done
21013
21014
21015# If the user did not use the arguments to specify the items to instantiate,
21016# then the envvar interface is used.  Set only those that are not.
21017# We use the long form for the default assignment because of an extremely
21018# bizarre bug on SunOS 4.1.3.
21019if $ac_need_defaults; then
21020  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21021  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21022  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21023fi
21024
21025# Have a temporary directory for convenience.  Make it in the build tree
21026# simply because there is no reason against having it here, and in addition,
21027# creating and moving files from /tmp can sometimes cause problems.
21028# Hook for its removal unless debugging.
21029# Note that there is a small window in which the directory will not be cleaned:
21030# after its creation but before its name has been assigned to `$tmp'.
21031$debug ||
21032{
21033  tmp= ac_tmp=
21034  trap 'exit_status=$?
21035  : "${ac_tmp:=$tmp}"
21036  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21037' 0
21038  trap 'as_fn_exit 1' 1 2 13 15
21039}
21040# Create a (secure) tmp directory for tmp files.
21041
21042{
21043  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21044  test -d "$tmp"
21045}  ||
21046{
21047  tmp=./conf$$-$RANDOM
21048  (umask 077 && mkdir "$tmp")
21049} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21050ac_tmp=$tmp
21051
21052# Set up the scripts for CONFIG_FILES section.
21053# No need to generate them if there are no CONFIG_FILES.
21054# This happens for instance with `./config.status config.h'.
21055if test -n "$CONFIG_FILES"; then
21056
21057
21058ac_cr=`echo X | tr X '\015'`
21059# On cygwin, bash can eat \r inside `` if the user requested igncr.
21060# But we know of no other shell where ac_cr would be empty at this
21061# point, so we can use a bashism as a fallback.
21062if test "x$ac_cr" = x; then
21063  eval ac_cr=\$\'\\r\'
21064fi
21065ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21066if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21067  ac_cs_awk_cr='\\r'
21068else
21069  ac_cs_awk_cr=$ac_cr
21070fi
21071
21072echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21073_ACEOF
21074
21075
21076{
21077  echo "cat >conf$$subs.awk <<_ACEOF" &&
21078  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21079  echo "_ACEOF"
21080} >conf$$subs.sh ||
21081  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21082ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21083ac_delim='%!_!# '
21084for ac_last_try in false false false false false :; do
21085  . ./conf$$subs.sh ||
21086    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21087
21088  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21089  if test $ac_delim_n = $ac_delim_num; then
21090    break
21091  elif $ac_last_try; then
21092    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21093  else
21094    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21095  fi
21096done
21097rm -f conf$$subs.sh
21098
21099cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21100cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21101_ACEOF
21102sed -n '
21103h
21104s/^/S["/; s/!.*/"]=/
21105p
21106g
21107s/^[^!]*!//
21108:repl
21109t repl
21110s/'"$ac_delim"'$//
21111t delim
21112:nl
21113h
21114s/\(.\{148\}\)..*/\1/
21115t more1
21116s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21117p
21118n
21119b repl
21120:more1
21121s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21122p
21123g
21124s/.\{148\}//
21125t nl
21126:delim
21127h
21128s/\(.\{148\}\)..*/\1/
21129t more2
21130s/["\\]/\\&/g; s/^/"/; s/$/"/
21131p
21132b
21133:more2
21134s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21135p
21136g
21137s/.\{148\}//
21138t delim
21139' <conf$$subs.awk | sed '
21140/^[^""]/{
21141  N
21142  s/\n//
21143}
21144' >>$CONFIG_STATUS || ac_write_fail=1
21145rm -f conf$$subs.awk
21146cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21147_ACAWK
21148cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21149  for (key in S) S_is_set[key] = 1
21150  FS = ""
21151
21152}
21153{
21154  line = $ 0
21155  nfields = split(line, field, "@")
21156  substed = 0
21157  len = length(field[1])
21158  for (i = 2; i < nfields; i++) {
21159    key = field[i]
21160    keylen = length(key)
21161    if (S_is_set[key]) {
21162      value = S[key]
21163      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21164      len += length(value) + length(field[++i])
21165      substed = 1
21166    } else
21167      len += 1 + keylen
21168  }
21169
21170  print line
21171}
21172
21173_ACAWK
21174_ACEOF
21175cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21176if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21177  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21178else
21179  cat
21180fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21181  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21182_ACEOF
21183
21184# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21185# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21186# trailing colons and then remove the whole line if VPATH becomes empty
21187# (actually we leave an empty line to preserve line numbers).
21188if test "x$srcdir" = x.; then
21189  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21190h
21191s///
21192s/^/:/
21193s/[	 ]*$/:/
21194s/:\$(srcdir):/:/g
21195s/:\${srcdir}:/:/g
21196s/:@srcdir@:/:/g
21197s/^:*//
21198s/:*$//
21199x
21200s/\(=[	 ]*\).*/\1/
21201G
21202s/\n//
21203s/^[^=]*=[	 ]*$//
21204}'
21205fi
21206
21207cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21208fi # test -n "$CONFIG_FILES"
21209
21210# Set up the scripts for CONFIG_HEADERS section.
21211# No need to generate them if there are no CONFIG_HEADERS.
21212# This happens for instance with `./config.status Makefile'.
21213if test -n "$CONFIG_HEADERS"; then
21214cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21215BEGIN {
21216_ACEOF
21217
21218# Transform confdefs.h into an awk script `defines.awk', embedded as
21219# here-document in config.status, that substitutes the proper values into
21220# config.h.in to produce config.h.
21221
21222# Create a delimiter string that does not exist in confdefs.h, to ease
21223# handling of long lines.
21224ac_delim='%!_!# '
21225for ac_last_try in false false :; do
21226  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21227  if test -z "$ac_tt"; then
21228    break
21229  elif $ac_last_try; then
21230    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21231  else
21232    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21233  fi
21234done
21235
21236# For the awk script, D is an array of macro values keyed by name,
21237# likewise P contains macro parameters if any.  Preserve backslash
21238# newline sequences.
21239
21240ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21241sed -n '
21242s/.\{148\}/&'"$ac_delim"'/g
21243t rset
21244:rset
21245s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21246t def
21247d
21248:def
21249s/\\$//
21250t bsnl
21251s/["\\]/\\&/g
21252s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21253D["\1"]=" \3"/p
21254s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21255d
21256:bsnl
21257s/["\\]/\\&/g
21258s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21259D["\1"]=" \3\\\\\\n"\\/p
21260t cont
21261s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21262t cont
21263d
21264:cont
21265n
21266s/.\{148\}/&'"$ac_delim"'/g
21267t clear
21268:clear
21269s/\\$//
21270t bsnlc
21271s/["\\]/\\&/g; s/^/"/; s/$/"/p
21272d
21273:bsnlc
21274s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21275b cont
21276' <confdefs.h | sed '
21277s/'"$ac_delim"'/"\\\
21278"/g' >>$CONFIG_STATUS || ac_write_fail=1
21279
21280cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21281  for (key in D) D_is_set[key] = 1
21282  FS = ""
21283}
21284/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21285  line = \$ 0
21286  split(line, arg, " ")
21287  if (arg[1] == "#") {
21288    defundef = arg[2]
21289    mac1 = arg[3]
21290  } else {
21291    defundef = substr(arg[1], 2)
21292    mac1 = arg[2]
21293  }
21294  split(mac1, mac2, "(") #)
21295  macro = mac2[1]
21296  prefix = substr(line, 1, index(line, defundef) - 1)
21297  if (D_is_set[macro]) {
21298    # Preserve the white space surrounding the "#".
21299    print prefix "define", macro P[macro] D[macro]
21300    next
21301  } else {
21302    # Replace #undef with comments.  This is necessary, for example,
21303    # in the case of _POSIX_SOURCE, which is predefined and required
21304    # on some systems where configure will not decide to define it.
21305    if (defundef == "undef") {
21306      print "/*", prefix defundef, macro, "*/"
21307      next
21308    }
21309  }
21310}
21311{ print }
21312_ACAWK
21313_ACEOF
21314cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21315  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21316fi # test -n "$CONFIG_HEADERS"
21317
21318
21319eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21320shift
21321for ac_tag
21322do
21323  case $ac_tag in
21324  :[FHLC]) ac_mode=$ac_tag; continue;;
21325  esac
21326  case $ac_mode$ac_tag in
21327  :[FHL]*:*);;
21328  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21329  :[FH]-) ac_tag=-:-;;
21330  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21331  esac
21332  ac_save_IFS=$IFS
21333  IFS=:
21334  set x $ac_tag
21335  IFS=$ac_save_IFS
21336  shift
21337  ac_file=$1
21338  shift
21339
21340  case $ac_mode in
21341  :L) ac_source=$1;;
21342  :[FH])
21343    ac_file_inputs=
21344    for ac_f
21345    do
21346      case $ac_f in
21347      -) ac_f="$ac_tmp/stdin";;
21348      *) # Look for the file first in the build tree, then in the source tree
21349	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21350	 # because $ac_f cannot contain `:'.
21351	 test -f "$ac_f" ||
21352	   case $ac_f in
21353	   [\\/$]*) false;;
21354	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21355	   esac ||
21356	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21357      esac
21358      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21359      as_fn_append ac_file_inputs " '$ac_f'"
21360    done
21361
21362    # Let's still pretend it is `configure' which instantiates (i.e., don't
21363    # use $as_me), people would be surprised to read:
21364    #    /* config.h.  Generated by config.status.  */
21365    configure_input='Generated from '`
21366	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21367	`' by configure.'
21368    if test x"$ac_file" != x-; then
21369      configure_input="$ac_file.  $configure_input"
21370      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21371$as_echo "$as_me: creating $ac_file" >&6;}
21372    fi
21373    # Neutralize special characters interpreted by sed in replacement strings.
21374    case $configure_input in #(
21375    *\&* | *\|* | *\\* )
21376       ac_sed_conf_input=`$as_echo "$configure_input" |
21377       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21378    *) ac_sed_conf_input=$configure_input;;
21379    esac
21380
21381    case $ac_tag in
21382    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21383      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21384    esac
21385    ;;
21386  esac
21387
21388  ac_dir=`$as_dirname -- "$ac_file" ||
21389$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21390	 X"$ac_file" : 'X\(//\)[^/]' \| \
21391	 X"$ac_file" : 'X\(//\)$' \| \
21392	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21393$as_echo X"$ac_file" |
21394    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21395	    s//\1/
21396	    q
21397	  }
21398	  /^X\(\/\/\)[^/].*/{
21399	    s//\1/
21400	    q
21401	  }
21402	  /^X\(\/\/\)$/{
21403	    s//\1/
21404	    q
21405	  }
21406	  /^X\(\/\).*/{
21407	    s//\1/
21408	    q
21409	  }
21410	  s/.*/./; q'`
21411  as_dir="$ac_dir"; as_fn_mkdir_p
21412  ac_builddir=.
21413
21414case "$ac_dir" in
21415.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21416*)
21417  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21418  # A ".." for each directory in $ac_dir_suffix.
21419  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21420  case $ac_top_builddir_sub in
21421  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21422  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21423  esac ;;
21424esac
21425ac_abs_top_builddir=$ac_pwd
21426ac_abs_builddir=$ac_pwd$ac_dir_suffix
21427# for backward compatibility:
21428ac_top_builddir=$ac_top_build_prefix
21429
21430case $srcdir in
21431  .)  # We are building in place.
21432    ac_srcdir=.
21433    ac_top_srcdir=$ac_top_builddir_sub
21434    ac_abs_top_srcdir=$ac_pwd ;;
21435  [\\/]* | ?:[\\/]* )  # Absolute name.
21436    ac_srcdir=$srcdir$ac_dir_suffix;
21437    ac_top_srcdir=$srcdir
21438    ac_abs_top_srcdir=$srcdir ;;
21439  *) # Relative name.
21440    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21441    ac_top_srcdir=$ac_top_build_prefix$srcdir
21442    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21443esac
21444ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21445
21446
21447  case $ac_mode in
21448  :F)
21449  #
21450  # CONFIG_FILE
21451  #
21452
21453  case $INSTALL in
21454  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21455  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21456  esac
21457  ac_MKDIR_P=$MKDIR_P
21458  case $MKDIR_P in
21459  [\\/$]* | ?:[\\/]* ) ;;
21460  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21461  esac
21462_ACEOF
21463
21464cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21465# If the template does not know about datarootdir, expand it.
21466# FIXME: This hack should be removed a few years after 2.60.
21467ac_datarootdir_hack=; ac_datarootdir_seen=
21468ac_sed_dataroot='
21469/datarootdir/ {
21470  p
21471  q
21472}
21473/@datadir@/p
21474/@docdir@/p
21475/@infodir@/p
21476/@localedir@/p
21477/@mandir@/p'
21478case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21479*datarootdir*) ac_datarootdir_seen=yes;;
21480*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21481  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21482$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21483_ACEOF
21484cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21485  ac_datarootdir_hack='
21486  s&@datadir@&$datadir&g
21487  s&@docdir@&$docdir&g
21488  s&@infodir@&$infodir&g
21489  s&@localedir@&$localedir&g
21490  s&@mandir@&$mandir&g
21491  s&\\\${datarootdir}&$datarootdir&g' ;;
21492esac
21493_ACEOF
21494
21495# Neutralize VPATH when `$srcdir' = `.'.
21496# Shell code in configure.ac might set extrasub.
21497# FIXME: do we really want to maintain this feature?
21498cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21499ac_sed_extra="$ac_vpsub
21500$extrasub
21501_ACEOF
21502cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21503:t
21504/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21505s|@configure_input@|$ac_sed_conf_input|;t t
21506s&@top_builddir@&$ac_top_builddir_sub&;t t
21507s&@top_build_prefix@&$ac_top_build_prefix&;t t
21508s&@srcdir@&$ac_srcdir&;t t
21509s&@abs_srcdir@&$ac_abs_srcdir&;t t
21510s&@top_srcdir@&$ac_top_srcdir&;t t
21511s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21512s&@builddir@&$ac_builddir&;t t
21513s&@abs_builddir@&$ac_abs_builddir&;t t
21514s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21515s&@INSTALL@&$ac_INSTALL&;t t
21516s&@MKDIR_P@&$ac_MKDIR_P&;t t
21517$ac_datarootdir_hack
21518"
21519eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21520  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21521
21522test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21523  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21524  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21525      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21526  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21527which seems to be undefined.  Please make sure it is defined" >&5
21528$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21529which seems to be undefined.  Please make sure it is defined" >&2;}
21530
21531  rm -f "$ac_tmp/stdin"
21532  case $ac_file in
21533  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21534  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21535  esac \
21536  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21537 ;;
21538  :H)
21539  #
21540  # CONFIG_HEADER
21541  #
21542  if test x"$ac_file" != x-; then
21543    {
21544      $as_echo "/* $configure_input  */" \
21545      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21546    } >"$ac_tmp/config.h" \
21547      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21548    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21549      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21550$as_echo "$as_me: $ac_file is unchanged" >&6;}
21551    else
21552      rm -f "$ac_file"
21553      mv "$ac_tmp/config.h" "$ac_file" \
21554	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21555    fi
21556  else
21557    $as_echo "/* $configure_input  */" \
21558      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21559      || as_fn_error $? "could not create -" "$LINENO" 5
21560  fi
21561# Compute "$ac_file"'s index in $config_headers.
21562_am_arg="$ac_file"
21563_am_stamp_count=1
21564for _am_header in $config_headers :; do
21565  case $_am_header in
21566    $_am_arg | $_am_arg:* )
21567      break ;;
21568    * )
21569      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21570  esac
21571done
21572echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21573$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21574	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21575	 X"$_am_arg" : 'X\(//\)$' \| \
21576	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21577$as_echo X"$_am_arg" |
21578    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21579	    s//\1/
21580	    q
21581	  }
21582	  /^X\(\/\/\)[^/].*/{
21583	    s//\1/
21584	    q
21585	  }
21586	  /^X\(\/\/\)$/{
21587	    s//\1/
21588	    q
21589	  }
21590	  /^X\(\/\).*/{
21591	    s//\1/
21592	    q
21593	  }
21594	  s/.*/./; q'`/stamp-h$_am_stamp_count
21595 ;;
21596
21597  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21598$as_echo "$as_me: executing $ac_file commands" >&6;}
21599 ;;
21600  esac
21601
21602
21603  case $ac_file$ac_mode in
21604    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21605  # Older Autoconf quotes --file arguments for eval, but not when files
21606  # are listed without --file.  Let's play safe and only enable the eval
21607  # if we detect the quoting.
21608  case $CONFIG_FILES in
21609  *\'*) eval set x "$CONFIG_FILES" ;;
21610  *)   set x $CONFIG_FILES ;;
21611  esac
21612  shift
21613  for mf
21614  do
21615    # Strip MF so we end up with the name of the file.
21616    mf=`echo "$mf" | sed -e 's/:.*$//'`
21617    # Check whether this is an Automake generated Makefile or not.
21618    # We used to match only the files named 'Makefile.in', but
21619    # some people rename them; so instead we look at the file content.
21620    # Grep'ing the first line is not enough: some people post-process
21621    # each Makefile.in and add a new line on top of each file to say so.
21622    # Grep'ing the whole file is not good either: AIX grep has a line
21623    # limit of 2048, but all sed's we know have understand at least 4000.
21624    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21625      dirpart=`$as_dirname -- "$mf" ||
21626$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21627	 X"$mf" : 'X\(//\)[^/]' \| \
21628	 X"$mf" : 'X\(//\)$' \| \
21629	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21630$as_echo X"$mf" |
21631    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21632	    s//\1/
21633	    q
21634	  }
21635	  /^X\(\/\/\)[^/].*/{
21636	    s//\1/
21637	    q
21638	  }
21639	  /^X\(\/\/\)$/{
21640	    s//\1/
21641	    q
21642	  }
21643	  /^X\(\/\).*/{
21644	    s//\1/
21645	    q
21646	  }
21647	  s/.*/./; q'`
21648    else
21649      continue
21650    fi
21651    # Extract the definition of DEPDIR, am__include, and am__quote
21652    # from the Makefile without running 'make'.
21653    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21654    test -z "$DEPDIR" && continue
21655    am__include=`sed -n 's/^am__include = //p' < "$mf"`
21656    test -z "$am__include" && continue
21657    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21658    # Find all dependency output files, they are included files with
21659    # $(DEPDIR) in their names.  We invoke sed twice because it is the
21660    # simplest approach to changing $(DEPDIR) to its actual value in the
21661    # expansion.
21662    for file in `sed -n "
21663      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21664	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21665      # Make sure the directory exists.
21666      test -f "$dirpart/$file" && continue
21667      fdir=`$as_dirname -- "$file" ||
21668$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21669	 X"$file" : 'X\(//\)[^/]' \| \
21670	 X"$file" : 'X\(//\)$' \| \
21671	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21672$as_echo X"$file" |
21673    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21674	    s//\1/
21675	    q
21676	  }
21677	  /^X\(\/\/\)[^/].*/{
21678	    s//\1/
21679	    q
21680	  }
21681	  /^X\(\/\/\)$/{
21682	    s//\1/
21683	    q
21684	  }
21685	  /^X\(\/\).*/{
21686	    s//\1/
21687	    q
21688	  }
21689	  s/.*/./; q'`
21690      as_dir=$dirpart/$fdir; as_fn_mkdir_p
21691      # echo "creating $dirpart/$file"
21692      echo '# dummy' > "$dirpart/$file"
21693    done
21694  done
21695}
21696 ;;
21697    "libtool":C)
21698
21699    # See if we are running on zsh, and set the options that allow our
21700    # commands through without removal of \ escapes.
21701    if test -n "${ZSH_VERSION+set}"; then
21702      setopt NO_GLOB_SUBST
21703    fi
21704
21705    cfgfile=${ofile}T
21706    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21707    $RM "$cfgfile"
21708
21709    cat <<_LT_EOF >> "$cfgfile"
21710#! $SHELL
21711# Generated automatically by $as_me ($PACKAGE) $VERSION
21712# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21713# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21714
21715# Provide generalized library-building support services.
21716# Written by Gordon Matzigkeit, 1996
21717
21718# Copyright (C) 2014 Free Software Foundation, Inc.
21719# This is free software; see the source for copying conditions.  There is NO
21720# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21721
21722# GNU Libtool is free software; you can redistribute it and/or modify
21723# it under the terms of the GNU General Public License as published by
21724# the Free Software Foundation; either version 2 of of the License, or
21725# (at your option) any later version.
21726#
21727# As a special exception to the GNU General Public License, if you
21728# distribute this file as part of a program or library that is built
21729# using GNU Libtool, you may include this file under the  same
21730# distribution terms that you use for the rest of that program.
21731#
21732# GNU Libtool is distributed in the hope that it will be useful, but
21733# WITHOUT ANY WARRANTY; without even the implied warranty of
21734# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21735# GNU General Public License for more details.
21736#
21737# You should have received a copy of the GNU General Public License
21738# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21739
21740
21741# The names of the tagged configurations supported by this script.
21742available_tags=''
21743
21744# Configured defaults for sys_lib_dlsearch_path munging.
21745: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21746
21747# ### BEGIN LIBTOOL CONFIG
21748
21749# Whether or not to build static libraries.
21750build_old_libs=$enable_static
21751
21752# Which release of libtool.m4 was used?
21753macro_version=$macro_version
21754macro_revision=$macro_revision
21755
21756# Whether or not to build shared libraries.
21757build_libtool_libs=$enable_shared
21758
21759# What type of objects to build.
21760pic_mode=$pic_mode
21761
21762# Whether or not to optimize for fast installation.
21763fast_install=$enable_fast_install
21764
21765# Shared archive member basename,for filename based shared library versioning on AIX.
21766shared_archive_member_spec=$shared_archive_member_spec
21767
21768# Shell to use when invoking shell scripts.
21769SHELL=$lt_SHELL
21770
21771# An echo program that protects backslashes.
21772ECHO=$lt_ECHO
21773
21774# The PATH separator for the build system.
21775PATH_SEPARATOR=$lt_PATH_SEPARATOR
21776
21777# The host system.
21778host_alias=$host_alias
21779host=$host
21780host_os=$host_os
21781
21782# The build system.
21783build_alias=$build_alias
21784build=$build
21785build_os=$build_os
21786
21787# A sed program that does not truncate output.
21788SED=$lt_SED
21789
21790# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21791Xsed="\$SED -e 1s/^X//"
21792
21793# A grep program that handles long lines.
21794GREP=$lt_GREP
21795
21796# An ERE matcher.
21797EGREP=$lt_EGREP
21798
21799# A literal string matcher.
21800FGREP=$lt_FGREP
21801
21802# A BSD- or MS-compatible name lister.
21803NM=$lt_NM
21804
21805# Whether we need soft or hard links.
21806LN_S=$lt_LN_S
21807
21808# What is the maximum length of a command?
21809max_cmd_len=$max_cmd_len
21810
21811# Object file suffix (normally "o").
21812objext=$ac_objext
21813
21814# Executable file suffix (normally "").
21815exeext=$exeext
21816
21817# whether the shell understands "unset".
21818lt_unset=$lt_unset
21819
21820# turn spaces into newlines.
21821SP2NL=$lt_lt_SP2NL
21822
21823# turn newlines into spaces.
21824NL2SP=$lt_lt_NL2SP
21825
21826# convert \$build file names to \$host format.
21827to_host_file_cmd=$lt_cv_to_host_file_cmd
21828
21829# convert \$build files to toolchain format.
21830to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21831
21832# An object symbol dumper.
21833OBJDUMP=$lt_OBJDUMP
21834
21835# Method to check whether dependent libraries are shared objects.
21836deplibs_check_method=$lt_deplibs_check_method
21837
21838# Command to use when deplibs_check_method = "file_magic".
21839file_magic_cmd=$lt_file_magic_cmd
21840
21841# How to find potential files when deplibs_check_method = "file_magic".
21842file_magic_glob=$lt_file_magic_glob
21843
21844# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21845want_nocaseglob=$lt_want_nocaseglob
21846
21847# DLL creation program.
21848DLLTOOL=$lt_DLLTOOL
21849
21850# Command to associate shared and link libraries.
21851sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21852
21853# The archiver.
21854AR=$lt_AR
21855
21856# Flags to create an archive (by configure).
21857lt_ar_flags=$lt_ar_flags
21858
21859# Flags to create an archive.
21860AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21861
21862# How to feed a file listing to the archiver.
21863archiver_list_spec=$lt_archiver_list_spec
21864
21865# A symbol stripping program.
21866STRIP=$lt_STRIP
21867
21868# Commands used to install an old-style archive.
21869RANLIB=$lt_RANLIB
21870old_postinstall_cmds=$lt_old_postinstall_cmds
21871old_postuninstall_cmds=$lt_old_postuninstall_cmds
21872
21873# Whether to use a lock for old archive extraction.
21874lock_old_archive_extraction=$lock_old_archive_extraction
21875
21876# A C compiler.
21877LTCC=$lt_CC
21878
21879# LTCC compiler flags.
21880LTCFLAGS=$lt_CFLAGS
21881
21882# Take the output of nm and produce a listing of raw symbols and C names.
21883global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21884
21885# Transform the output of nm in a proper C declaration.
21886global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21887
21888# Transform the output of nm into a list of symbols to manually relocate.
21889global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21890
21891# Transform the output of nm in a C name address pair.
21892global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21893
21894# Transform the output of nm in a C name address pair when lib prefix is needed.
21895global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21896
21897# The name lister interface.
21898nm_interface=$lt_lt_cv_nm_interface
21899
21900# Specify filename containing input files for \$NM.
21901nm_file_list_spec=$lt_nm_file_list_spec
21902
21903# The root where to search for dependent libraries,and where our libraries should be installed.
21904lt_sysroot=$lt_sysroot
21905
21906# Command to truncate a binary pipe.
21907lt_truncate_bin=$lt_lt_cv_truncate_bin
21908
21909# The name of the directory that contains temporary libtool files.
21910objdir=$objdir
21911
21912# Used to examine libraries when file_magic_cmd begins with "file".
21913MAGIC_CMD=$MAGIC_CMD
21914
21915# Must we lock files when doing compilation?
21916need_locks=$lt_need_locks
21917
21918# Manifest tool.
21919MANIFEST_TOOL=$lt_MANIFEST_TOOL
21920
21921# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21922DSYMUTIL=$lt_DSYMUTIL
21923
21924# Tool to change global to local symbols on Mac OS X.
21925NMEDIT=$lt_NMEDIT
21926
21927# Tool to manipulate fat objects and archives on Mac OS X.
21928LIPO=$lt_LIPO
21929
21930# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21931OTOOL=$lt_OTOOL
21932
21933# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21934OTOOL64=$lt_OTOOL64
21935
21936# Old archive suffix (normally "a").
21937libext=$libext
21938
21939# Shared library suffix (normally ".so").
21940shrext_cmds=$lt_shrext_cmds
21941
21942# The commands to extract the exported symbol list from a shared archive.
21943extract_expsyms_cmds=$lt_extract_expsyms_cmds
21944
21945# Variables whose values should be saved in libtool wrapper scripts and
21946# restored at link time.
21947variables_saved_for_relink=$lt_variables_saved_for_relink
21948
21949# Do we need the "lib" prefix for modules?
21950need_lib_prefix=$need_lib_prefix
21951
21952# Do we need a version for libraries?
21953need_version=$need_version
21954
21955# Library versioning type.
21956version_type=$version_type
21957
21958# Shared library runtime path variable.
21959runpath_var=$runpath_var
21960
21961# Shared library path variable.
21962shlibpath_var=$shlibpath_var
21963
21964# Is shlibpath searched before the hard-coded library search path?
21965shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21966
21967# Format of library name prefix.
21968libname_spec=$lt_libname_spec
21969
21970# List of archive names.  First name is the real one, the rest are links.
21971# The last name is the one that the linker finds with -lNAME
21972library_names_spec=$lt_library_names_spec
21973
21974# The coded name of the library, if different from the real name.
21975soname_spec=$lt_soname_spec
21976
21977# Permission mode override for installation of shared libraries.
21978install_override_mode=$lt_install_override_mode
21979
21980# Command to use after installation of a shared archive.
21981postinstall_cmds=$lt_postinstall_cmds
21982
21983# Command to use after uninstallation of a shared archive.
21984postuninstall_cmds=$lt_postuninstall_cmds
21985
21986# Commands used to finish a libtool library installation in a directory.
21987finish_cmds=$lt_finish_cmds
21988
21989# As "finish_cmds", except a single script fragment to be evaled but
21990# not shown.
21991finish_eval=$lt_finish_eval
21992
21993# Whether we should hardcode library paths into libraries.
21994hardcode_into_libs=$hardcode_into_libs
21995
21996# Compile-time system search path for libraries.
21997sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21998
21999# Detected run-time system search path for libraries.
22000sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22001
22002# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22003configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22004
22005# Whether dlopen is supported.
22006dlopen_support=$enable_dlopen
22007
22008# Whether dlopen of programs is supported.
22009dlopen_self=$enable_dlopen_self
22010
22011# Whether dlopen of statically linked programs is supported.
22012dlopen_self_static=$enable_dlopen_self_static
22013
22014# Commands to strip libraries.
22015old_striplib=$lt_old_striplib
22016striplib=$lt_striplib
22017
22018
22019# The linker used to build libraries.
22020LD=$lt_LD
22021
22022# How to create reloadable object files.
22023reload_flag=$lt_reload_flag
22024reload_cmds=$lt_reload_cmds
22025
22026# Commands used to build an old-style archive.
22027old_archive_cmds=$lt_old_archive_cmds
22028
22029# A language specific compiler.
22030CC=$lt_compiler
22031
22032# Is the compiler the GNU compiler?
22033with_gcc=$GCC
22034
22035# Compiler flag to turn off builtin functions.
22036no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22037
22038# Additional compiler flags for building library objects.
22039pic_flag=$lt_lt_prog_compiler_pic
22040
22041# How to pass a linker flag through the compiler.
22042wl=$lt_lt_prog_compiler_wl
22043
22044# Compiler flag to prevent dynamic linking.
22045link_static_flag=$lt_lt_prog_compiler_static
22046
22047# Does compiler simultaneously support -c and -o options?
22048compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22049
22050# Whether or not to add -lc for building shared libraries.
22051build_libtool_need_lc=$archive_cmds_need_lc
22052
22053# Whether or not to disallow shared libs when runtime libs are static.
22054allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22055
22056# Compiler flag to allow reflexive dlopens.
22057export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22058
22059# Compiler flag to generate shared objects directly from archives.
22060whole_archive_flag_spec=$lt_whole_archive_flag_spec
22061
22062# Whether the compiler copes with passing no objects directly.
22063compiler_needs_object=$lt_compiler_needs_object
22064
22065# Create an old-style archive from a shared archive.
22066old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22067
22068# Create a temporary old-style archive to link instead of a shared archive.
22069old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22070
22071# Commands used to build a shared archive.
22072archive_cmds=$lt_archive_cmds
22073archive_expsym_cmds=$lt_archive_expsym_cmds
22074
22075# Commands used to build a loadable module if different from building
22076# a shared archive.
22077module_cmds=$lt_module_cmds
22078module_expsym_cmds=$lt_module_expsym_cmds
22079
22080# Whether we are building with GNU ld or not.
22081with_gnu_ld=$lt_with_gnu_ld
22082
22083# Flag that allows shared libraries with undefined symbols to be built.
22084allow_undefined_flag=$lt_allow_undefined_flag
22085
22086# Flag that enforces no undefined symbols.
22087no_undefined_flag=$lt_no_undefined_flag
22088
22089# Flag to hardcode \$libdir into a binary during linking.
22090# This must work even if \$libdir does not exist
22091hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22092
22093# Whether we need a single "-rpath" flag with a separated argument.
22094hardcode_libdir_separator=$lt_hardcode_libdir_separator
22095
22096# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22097# DIR into the resulting binary.
22098hardcode_direct=$hardcode_direct
22099
22100# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22101# DIR into the resulting binary and the resulting library dependency is
22102# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22103# library is relocated.
22104hardcode_direct_absolute=$hardcode_direct_absolute
22105
22106# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22107# into the resulting binary.
22108hardcode_minus_L=$hardcode_minus_L
22109
22110# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22111# into the resulting binary.
22112hardcode_shlibpath_var=$hardcode_shlibpath_var
22113
22114# Set to "yes" if building a shared library automatically hardcodes DIR
22115# into the library and all subsequent libraries and executables linked
22116# against it.
22117hardcode_automatic=$hardcode_automatic
22118
22119# Set to yes if linker adds runtime paths of dependent libraries
22120# to runtime path list.
22121inherit_rpath=$inherit_rpath
22122
22123# Whether libtool must link a program against all its dependency libraries.
22124link_all_deplibs=$link_all_deplibs
22125
22126# Set to "yes" if exported symbols are required.
22127always_export_symbols=$always_export_symbols
22128
22129# The commands to list exported symbols.
22130export_symbols_cmds=$lt_export_symbols_cmds
22131
22132# Symbols that should not be listed in the preloaded symbols.
22133exclude_expsyms=$lt_exclude_expsyms
22134
22135# Symbols that must always be exported.
22136include_expsyms=$lt_include_expsyms
22137
22138# Commands necessary for linking programs (against libraries) with templates.
22139prelink_cmds=$lt_prelink_cmds
22140
22141# Commands necessary for finishing linking programs.
22142postlink_cmds=$lt_postlink_cmds
22143
22144# Specify filename containing input files.
22145file_list_spec=$lt_file_list_spec
22146
22147# How to hardcode a shared library path into an executable.
22148hardcode_action=$hardcode_action
22149
22150# ### END LIBTOOL CONFIG
22151
22152_LT_EOF
22153
22154    cat <<'_LT_EOF' >> "$cfgfile"
22155
22156# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22157
22158# func_munge_path_list VARIABLE PATH
22159# -----------------------------------
22160# VARIABLE is name of variable containing _space_ separated list of
22161# directories to be munged by the contents of PATH, which is string
22162# having a format:
22163# "DIR[:DIR]:"
22164#       string "DIR[ DIR]" will be prepended to VARIABLE
22165# ":DIR[:DIR]"
22166#       string "DIR[ DIR]" will be appended to VARIABLE
22167# "DIRP[:DIRP]::[DIRA:]DIRA"
22168#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22169#       "DIRA[ DIRA]" will be appended to VARIABLE
22170# "DIR[:DIR]"
22171#       VARIABLE will be replaced by "DIR[ DIR]"
22172func_munge_path_list ()
22173{
22174    case x$2 in
22175    x)
22176        ;;
22177    *:)
22178        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22179        ;;
22180    x:*)
22181        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22182        ;;
22183    *::*)
22184        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22185        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22186        ;;
22187    *)
22188        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22189        ;;
22190    esac
22191}
22192
22193
22194# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22195func_cc_basename ()
22196{
22197    for cc_temp in $*""; do
22198      case $cc_temp in
22199        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22200        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22201        \-*) ;;
22202        *) break;;
22203      esac
22204    done
22205    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22206}
22207
22208
22209# ### END FUNCTIONS SHARED WITH CONFIGURE
22210
22211_LT_EOF
22212
22213  case $host_os in
22214  aix3*)
22215    cat <<\_LT_EOF >> "$cfgfile"
22216# AIX sometimes has problems with the GCC collect2 program.  For some
22217# reason, if we set the COLLECT_NAMES environment variable, the problems
22218# vanish in a puff of smoke.
22219if test set != "${COLLECT_NAMES+set}"; then
22220  COLLECT_NAMES=
22221  export COLLECT_NAMES
22222fi
22223_LT_EOF
22224    ;;
22225  esac
22226
22227
22228ltmain=$ac_aux_dir/ltmain.sh
22229
22230
22231  # We use sed instead of cat because bash on DJGPP gets confused if
22232  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22233  # text mode, it properly converts lines to CR/LF.  This bash problem
22234  # is reportedly fixed, but why not run on old versions too?
22235  sed '$q' "$ltmain" >> "$cfgfile" \
22236     || (rm -f "$cfgfile"; exit 1)
22237
22238   mv -f "$cfgfile" "$ofile" ||
22239    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22240  chmod +x "$ofile"
22241
22242 ;;
22243
22244  esac
22245done # for ac_tag
22246
22247
22248as_fn_exit 0
22249_ACEOF
22250ac_clean_files=$ac_clean_files_save
22251
22252test $ac_write_fail = 0 ||
22253  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22254
22255
22256# configure is writing to config.log, and then calls config.status.
22257# config.status does its own redirection, appending to config.log.
22258# Unfortunately, on DOS this fails, as config.log is still kept open
22259# by configure, so config.status won't be able to write to it; its
22260# output is simply discarded.  So we exec the FD to /dev/null,
22261# effectively closing config.log, so it can be properly (re)opened and
22262# appended to by config.status.  When coming back to configure, we
22263# need to make the FD available again.
22264if test "$no_create" != yes; then
22265  ac_cs_success=:
22266  ac_config_status_args=
22267  test "$silent" = yes &&
22268    ac_config_status_args="$ac_config_status_args --quiet"
22269  exec 5>/dev/null
22270  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22271  exec 5>>config.log
22272  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22273  # would make configure fail if this is the last instruction.
22274  $ac_cs_success || as_fn_exit 1
22275fi
22276if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22277  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22278$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22279fi
22280
22281
22282echo ""
22283echo "        prefix:              $prefix"
22284echo "        exec_prefix:         $exec_prefix"
22285echo "        libdir:              $libdir"
22286echo "        includedir:          $includedir"
22287echo "        configdir:           $configdir"
22288
22289echo ""
22290echo "        CFLAGS:              $CFLAGS"
22291echo "        CXXFLAGS:            $CXXFLAGS"
22292echo "        Macros:              $DEFINES"
22293
22294echo ""
22295echo "        Run '${MAKE-make}' to build xf86-video-ati"
22296echo ""
22297