Home | History | Annotate | Line # | Download | only in dist
configure revision 1.1.1.6
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.69 for x11perf 1.6.1.
      4 #
      5 # Report bugs to <https://gitlab.freedesktop.org/xorg/test/x11perf/issues>.
      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
     18 DUALCASE=1; export DUALCASE # for MKS sh
     19 if 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
     26 else
     27   case `(set -o) 2>/dev/null` in #(
     28   *posix*) :
     29     set -o posix ;; #(
     30   *) :
     31      ;;
     32 esac
     33 fi
     34 
     35 
     36 as_nl='
     37 '
     38 export as_nl
     39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
     40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     42 as_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.
     45 if 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 --'
     49 elif (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'
     52 else
     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'
     72 fi
     73 
     74 # The user is always right.
     75 if 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   }
     81 fi
     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.)
     89 IFS=" ""	$as_nl"
     90 
     91 # Find who we are.  Look in the path if we contain no directory separator.
     92 as_myself=
     93 case $0 in #((
     94   *[\\/]* ) as_myself=$0 ;;
     95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     96 for as_dir in $PATH
     97 do
     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
    102 IFS=$as_save_IFS
    103 
    104      ;;
    105 esac
    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.
    108 if test "x$as_myself" = x; then
    109   as_myself=$0
    110 fi
    111 if test ! -f "$as_myself"; then
    112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    113   exit 1
    114 fi
    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.
    120 for as_var in BASH_ENV ENV MAIL MAILPATH
    121 do eval test x\${$as_var+set} = xset \
    122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
    123 done
    124 PS1='$ '
    125 PS2='> '
    126 PS4='+ '
    127 
    128 # NLS nuisances.
    129 LC_ALL=C
    130 export LC_ALL
    131 LANGUAGE=C
    132 export 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.
    145 BASH_ENV=/dev/null
    146 ENV=/dev/null
    147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    148 case $- in # ((((
    149   *v*x* | *x*v* ) as_opts=-vx ;;
    150   *v* ) as_opts=-v ;;
    151   *x* ) as_opts=-x ;;
    152   * ) as_opts= ;;
    153 esac
    154 exec $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
    158 as_fn_exit 255
    159   fi
    160   # We don't want this to propagate to other subprocesses.
    161           { _as_can_reexec=; unset _as_can_reexec;}
    162 if 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
    170 else
    171   case \`(set -o) 2>/dev/null\` in #(
    172   *posix*) :
    173     set -o posix ;; #(
    174   *) :
    175      ;;
    176 esac
    177 fi
    178 "
    179   as_required="as_fn_return () { (exit \$1); }
    180 as_fn_success () { as_fn_return 0; }
    181 as_fn_failure () { as_fn_return 1; }
    182 as_fn_ret_success () { return 0; }
    183 as_fn_ret_failure () { return 1; }
    184 
    185 exitcode=0
    186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
    191 
    192 else
    193   exitcode=1; echo positional parameters were not saved.
    194 fi
    195 test x\$exitcode = x0 || exit 1
    196 test -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
    201 test \$(( 1 + 1 )) = 2 || exit 1"
    202   if (eval "$as_required") 2>/dev/null; then :
    203   as_have_required=yes
    204 else
    205   as_have_required=no
    206 fi
    207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
    208 
    209 else
    210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    211 as_found=false
    212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    213 do
    214   IFS=$as_save_IFS
    215   test -z "$as_dir" && as_dir=.
    216   as_found=:
    217   case $as_dir in #(
    218 	 /*)
    219 	   for as_base in sh bash ksh sh5; do
    220 	     # Try only shells that exist, to save several forks.
    221 	     as_shell=$as_dir/$as_base
    222 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    223 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
    224   CONFIG_SHELL=$as_shell as_have_required=yes
    225 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
    226   break 2
    227 fi
    228 fi
    229 	   done;;
    230        esac
    231   as_found=false
    232 done
    233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    234 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
    235   CONFIG_SHELL=$SHELL as_have_required=yes
    236 fi; }
    237 IFS=$as_save_IFS
    238 
    239 
    240       if test "x$CONFIG_SHELL" != x; then :
    241   export CONFIG_SHELL
    242              # We cannot yet assume a decent shell, so we have to provide a
    243 # neutralization value for shells without unset; and this also
    244 # works around shells that cannot unset nonexistent variables.
    245 # Preserve -v and -x to the replacement shell.
    246 BASH_ENV=/dev/null
    247 ENV=/dev/null
    248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    249 case $- in # ((((
    250   *v*x* | *x*v* ) as_opts=-vx ;;
    251   *v* ) as_opts=-v ;;
    252   *x* ) as_opts=-x ;;
    253   * ) as_opts= ;;
    254 esac
    255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    256 # Admittedly, this is quite paranoid, since all the known shells bail
    257 # out after a failed `exec'.
    258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    259 exit 255
    260 fi
    261 
    262     if test x$as_have_required = xno; then :
    263   $as_echo "$0: This script requires a shell more modern than all"
    264   $as_echo "$0: the shells that I found on your system."
    265   if test x${ZSH_VERSION+set} = xset ; then
    266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
    268   else
    269     $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
    270 $0: https://gitlab.freedesktop.org/xorg/test/x11perf/issues
    271 $0: about your system, including any error possibly output
    272 $0: before this message. Then install a modern shell, or
    273 $0: manually run the script under such a shell if you do
    274 $0: have one."
    275   fi
    276   exit 1
    277 fi
    278 fi
    279 fi
    280 SHELL=${CONFIG_SHELL-/bin/sh}
    281 export SHELL
    282 # Unset more variables known to interfere with behavior of common tools.
    283 CLICOLOR_FORCE= GREP_OPTIONS=
    284 unset CLICOLOR_FORCE GREP_OPTIONS
    285 
    286 ## --------------------- ##
    287 ## M4sh Shell Functions. ##
    288 ## --------------------- ##
    289 # as_fn_unset VAR
    290 # ---------------
    291 # Portably unset VAR.
    292 as_fn_unset ()
    293 {
    294   { eval $1=; unset $1;}
    295 }
    296 as_unset=as_fn_unset
    297 
    298 # as_fn_set_status STATUS
    299 # -----------------------
    300 # Set $? to STATUS, without forking.
    301 as_fn_set_status ()
    302 {
    303   return $1
    304 } # as_fn_set_status
    305 
    306 # as_fn_exit STATUS
    307 # -----------------
    308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    309 as_fn_exit ()
    310 {
    311   set +e
    312   as_fn_set_status $1
    313   exit $1
    314 } # as_fn_exit
    315 
    316 # as_fn_mkdir_p
    317 # -------------
    318 # Create "$as_dir" as a directory, including parents if necessary.
    319 as_fn_mkdir_p ()
    320 {
    321 
    322   case $as_dir in #(
    323   -*) as_dir=./$as_dir;;
    324   esac
    325   test -d "$as_dir" || eval $as_mkdir_p || {
    326     as_dirs=
    327     while :; do
    328       case $as_dir in #(
    329       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    330       *) as_qdir=$as_dir;;
    331       esac
    332       as_dirs="'$as_qdir' $as_dirs"
    333       as_dir=`$as_dirname -- "$as_dir" ||
    334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    335 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    336 	 X"$as_dir" : 'X\(//\)$' \| \
    337 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    338 $as_echo X"$as_dir" |
    339     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    340 	    s//\1/
    341 	    q
    342 	  }
    343 	  /^X\(\/\/\)[^/].*/{
    344 	    s//\1/
    345 	    q
    346 	  }
    347 	  /^X\(\/\/\)$/{
    348 	    s//\1/
    349 	    q
    350 	  }
    351 	  /^X\(\/\).*/{
    352 	    s//\1/
    353 	    q
    354 	  }
    355 	  s/.*/./; q'`
    356       test -d "$as_dir" && break
    357     done
    358     test -z "$as_dirs" || eval "mkdir $as_dirs"
    359   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    360 
    361 
    362 } # as_fn_mkdir_p
    363 
    364 # as_fn_executable_p FILE
    365 # -----------------------
    366 # Test if FILE is an executable regular file.
    367 as_fn_executable_p ()
    368 {
    369   test -f "$1" && test -x "$1"
    370 } # as_fn_executable_p
    371 # as_fn_append VAR VALUE
    372 # ----------------------
    373 # Append the text in VALUE to the end of the definition contained in VAR. Take
    374 # advantage of any shell optimizations that allow amortized linear growth over
    375 # repeated appends, instead of the typical quadratic growth present in naive
    376 # implementations.
    377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
    378   eval 'as_fn_append ()
    379   {
    380     eval $1+=\$2
    381   }'
    382 else
    383   as_fn_append ()
    384   {
    385     eval $1=\$$1\$2
    386   }
    387 fi # as_fn_append
    388 
    389 # as_fn_arith ARG...
    390 # ------------------
    391 # Perform arithmetic evaluation on the ARGs, and store the result in the
    392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    393 # must be portable across $(()) and expr.
    394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
    395   eval 'as_fn_arith ()
    396   {
    397     as_val=$(( $* ))
    398   }'
    399 else
    400   as_fn_arith ()
    401   {
    402     as_val=`expr "$@" || test $? -eq 1`
    403   }
    404 fi # as_fn_arith
    405 
    406 
    407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    408 # ----------------------------------------
    409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    411 # script with STATUS, using 1 if that was 0.
    412 as_fn_error ()
    413 {
    414   as_status=$1; test $as_status -eq 0 && as_status=1
    415   if test "$4"; then
    416     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    417     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    418   fi
    419   $as_echo "$as_me: error: $2" >&2
    420   as_fn_exit $as_status
    421 } # as_fn_error
    422 
    423 if expr a : '\(a\)' >/dev/null 2>&1 &&
    424    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    425   as_expr=expr
    426 else
    427   as_expr=false
    428 fi
    429 
    430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    431   as_basename=basename
    432 else
    433   as_basename=false
    434 fi
    435 
    436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    437   as_dirname=dirname
    438 else
    439   as_dirname=false
    440 fi
    441 
    442 as_me=`$as_basename -- "$0" ||
    443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    444 	 X"$0" : 'X\(//\)$' \| \
    445 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    446 $as_echo X/"$0" |
    447     sed '/^.*\/\([^/][^/]*\)\/*$/{
    448 	    s//\1/
    449 	    q
    450 	  }
    451 	  /^X\/\(\/\/\)$/{
    452 	    s//\1/
    453 	    q
    454 	  }
    455 	  /^X\/\(\/\).*/{
    456 	    s//\1/
    457 	    q
    458 	  }
    459 	  s/.*/./; q'`
    460 
    461 # Avoid depending upon Character Ranges.
    462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    465 as_cr_digits='0123456789'
    466 as_cr_alnum=$as_cr_Letters$as_cr_digits
    467 
    468 
    469   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    470   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    471   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    472   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    473   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    474   sed -n '
    475     p
    476     /[$]LINENO/=
    477   ' <$as_myself |
    478     sed '
    479       s/[$]LINENO.*/&-/
    480       t lineno
    481       b
    482       :lineno
    483       N
    484       :loop
    485       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    486       t loop
    487       s/-\n.*//
    488     ' >$as_me.lineno &&
    489   chmod +x "$as_me.lineno" ||
    490     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    491 
    492   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
    493   # already done that, so ensure we don't try to do so again and fall
    494   # in an infinite loop.  This has already happened in practice.
    495   _as_can_reexec=no; export _as_can_reexec
    496   # Don't try to exec as it changes $[0], causing all sort of problems
    497   # (the dirname of $[0] is not the place where we might find the
    498   # original and so on.  Autoconf is especially sensitive to this).
    499   . "./$as_me.lineno"
    500   # Exit status is that of the last command.
    501   exit
    502 }
    503 
    504 ECHO_C= ECHO_N= ECHO_T=
    505 case `echo -n x` in #(((((
    506 -n*)
    507   case `echo 'xy\c'` in
    508   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    509   xy)  ECHO_C='\c';;
    510   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    511        ECHO_T='	';;
    512   esac;;
    513 *)
    514   ECHO_N='-n';;
    515 esac
    516 
    517 rm -f conf$$ conf$$.exe conf$$.file
    518 if test -d conf$$.dir; then
    519   rm -f conf$$.dir/conf$$.file
    520 else
    521   rm -f conf$$.dir
    522   mkdir conf$$.dir 2>/dev/null
    523 fi
    524 if (echo >conf$$.file) 2>/dev/null; then
    525   if ln -s conf$$.file conf$$ 2>/dev/null; then
    526     as_ln_s='ln -s'
    527     # ... but there are two gotchas:
    528     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    529     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    530     # In both cases, we have to default to `cp -pR'.
    531     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    532       as_ln_s='cp -pR'
    533   elif ln conf$$.file conf$$ 2>/dev/null; then
    534     as_ln_s=ln
    535   else
    536     as_ln_s='cp -pR'
    537   fi
    538 else
    539   as_ln_s='cp -pR'
    540 fi
    541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    542 rmdir conf$$.dir 2>/dev/null
    543 
    544 if mkdir -p . 2>/dev/null; then
    545   as_mkdir_p='mkdir -p "$as_dir"'
    546 else
    547   test -d ./-p && rmdir ./-p
    548   as_mkdir_p=false
    549 fi
    550 
    551 as_test_x='test -x'
    552 as_executable_p=as_fn_executable_p
    553 
    554 # Sed expression to map a string onto a valid CPP name.
    555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    556 
    557 # Sed expression to map a string onto a valid variable name.
    558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    559 
    560 
    561 test -n "$DJDIR" || exec 7<&0 </dev/null
    562 exec 6>&1
    563 
    564 # Name of the host.
    565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    566 # so uname gets run too.
    567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    568 
    569 #
    570 # Initializations.
    571 #
    572 ac_default_prefix=/usr/local
    573 ac_clean_files=
    574 ac_config_libobj_dir=.
    575 LIBOBJS=
    576 cross_compiling=no
    577 subdirs=
    578 MFLAGS=
    579 MAKEFLAGS=
    580 
    581 # Identity of this package.
    582 PACKAGE_NAME='x11perf'
    583 PACKAGE_TARNAME='x11perf'
    584 PACKAGE_VERSION='1.6.1'
    585 PACKAGE_STRING='x11perf 1.6.1'
    586 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/test/x11perf/issues'
    587 PACKAGE_URL=''
    588 
    589 ac_unique_file="Makefile.am"
    590 # Factoring default headers for most tests.
    591 ac_includes_default="\
    592 #include <stdio.h>
    593 #ifdef HAVE_SYS_TYPES_H
    594 # include <sys/types.h>
    595 #endif
    596 #ifdef HAVE_SYS_STAT_H
    597 # include <sys/stat.h>
    598 #endif
    599 #ifdef STDC_HEADERS
    600 # include <stdlib.h>
    601 # include <stddef.h>
    602 #else
    603 # ifdef HAVE_STDLIB_H
    604 #  include <stdlib.h>
    605 # endif
    606 #endif
    607 #ifdef HAVE_STRING_H
    608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    609 #  include <memory.h>
    610 # endif
    611 # include <string.h>
    612 #endif
    613 #ifdef HAVE_STRINGS_H
    614 # include <strings.h>
    615 #endif
    616 #ifdef HAVE_INTTYPES_H
    617 # include <inttypes.h>
    618 #endif
    619 #ifdef HAVE_STDINT_H
    620 # include <stdint.h>
    621 #endif
    622 #ifdef HAVE_UNISTD_H
    623 # include <unistd.h>
    624 #endif"
    625 
    626 ac_subst_vars='am__EXEEXT_FALSE
    627 am__EXEEXT_TRUE
    628 LTLIBOBJS
    629 LIBOBJS
    630 XEXT_LIBS
    631 XEXT_CFLAGS
    632 XFT_LIBS
    633 XFT_CFLAGS
    634 XRENDER_LIBS
    635 XRENDER_CFLAGS
    636 X11PERF_LIBS
    637 X11PERF_CFLAGS
    638 MKTEMP
    639 x11perfcompdir
    640 MAN_SUBSTS
    641 XORG_MAN_PAGE
    642 ADMIN_MAN_DIR
    643 DRIVER_MAN_DIR
    644 MISC_MAN_DIR
    645 FILE_MAN_DIR
    646 LIB_MAN_DIR
    647 APP_MAN_DIR
    648 ADMIN_MAN_SUFFIX
    649 DRIVER_MAN_SUFFIX
    650 MISC_MAN_SUFFIX
    651 FILE_MAN_SUFFIX
    652 LIB_MAN_SUFFIX
    653 APP_MAN_SUFFIX
    654 SED
    655 host_os
    656 host_vendor
    657 host_cpu
    658 host
    659 build_os
    660 build_vendor
    661 build_cpu
    662 build
    663 INSTALL_CMD
    664 PKG_CONFIG_LIBDIR
    665 PKG_CONFIG_PATH
    666 PKG_CONFIG
    667 CHANGELOG_CMD
    668 STRICT_CFLAGS
    669 CWARNFLAGS
    670 BASE_CFLAGS
    671 EGREP
    672 GREP
    673 CPP
    674 am__fastdepCC_FALSE
    675 am__fastdepCC_TRUE
    676 CCDEPMODE
    677 am__nodep
    678 AMDEPBACKSLASH
    679 AMDEP_FALSE
    680 AMDEP_TRUE
    681 am__quote
    682 am__include
    683 DEPDIR
    684 OBJEXT
    685 EXEEXT
    686 ac_ct_CC
    687 CPPFLAGS
    688 LDFLAGS
    689 CFLAGS
    690 CC
    691 AM_BACKSLASH
    692 AM_DEFAULT_VERBOSITY
    693 AM_DEFAULT_V
    694 AM_V
    695 am__untar
    696 am__tar
    697 AMTAR
    698 am__leading_dot
    699 SET_MAKE
    700 AWK
    701 mkdir_p
    702 MKDIR_P
    703 INSTALL_STRIP_PROGRAM
    704 STRIP
    705 install_sh
    706 MAKEINFO
    707 AUTOHEADER
    708 AUTOMAKE
    709 AUTOCONF
    710 ACLOCAL
    711 VERSION
    712 PACKAGE
    713 CYGPATH_W
    714 am__isrc
    715 INSTALL_DATA
    716 INSTALL_SCRIPT
    717 INSTALL_PROGRAM
    718 target_alias
    719 host_alias
    720 build_alias
    721 LIBS
    722 ECHO_T
    723 ECHO_N
    724 ECHO_C
    725 DEFS
    726 mandir
    727 localedir
    728 libdir
    729 psdir
    730 pdfdir
    731 dvidir
    732 htmldir
    733 infodir
    734 docdir
    735 oldincludedir
    736 includedir
    737 localstatedir
    738 sharedstatedir
    739 sysconfdir
    740 datadir
    741 datarootdir
    742 libexecdir
    743 sbindir
    744 bindir
    745 program_transform_name
    746 prefix
    747 exec_prefix
    748 PACKAGE_URL
    749 PACKAGE_BUGREPORT
    750 PACKAGE_STRING
    751 PACKAGE_VERSION
    752 PACKAGE_TARNAME
    753 PACKAGE_NAME
    754 PATH_SEPARATOR
    755 SHELL'
    756 ac_subst_files=''
    757 ac_user_opts='
    758 enable_option_checking
    759 enable_silent_rules
    760 enable_dependency_tracking
    761 enable_selective_werror
    762 enable_strict_compilation
    763 '
    764       ac_precious_vars='build_alias
    765 host_alias
    766 target_alias
    767 CC
    768 CFLAGS
    769 LDFLAGS
    770 LIBS
    771 CPPFLAGS
    772 CPP
    773 PKG_CONFIG
    774 PKG_CONFIG_PATH
    775 PKG_CONFIG_LIBDIR
    776 X11PERF_CFLAGS
    777 X11PERF_LIBS
    778 XRENDER_CFLAGS
    779 XRENDER_LIBS
    780 XFT_CFLAGS
    781 XFT_LIBS
    782 XEXT_CFLAGS
    783 XEXT_LIBS'
    784 
    785 
    786 # Initialize some variables set by options.
    787 ac_init_help=
    788 ac_init_version=false
    789 ac_unrecognized_opts=
    790 ac_unrecognized_sep=
    791 # The variables have the same names as the options, with
    792 # dashes changed to underlines.
    793 cache_file=/dev/null
    794 exec_prefix=NONE
    795 no_create=
    796 no_recursion=
    797 prefix=NONE
    798 program_prefix=NONE
    799 program_suffix=NONE
    800 program_transform_name=s,x,x,
    801 silent=
    802 site=
    803 srcdir=
    804 verbose=
    805 x_includes=NONE
    806 x_libraries=NONE
    807 
    808 # Installation directory options.
    809 # These are left unexpanded so users can "make install exec_prefix=/foo"
    810 # and all the variables that are supposed to be based on exec_prefix
    811 # by default will actually change.
    812 # Use braces instead of parens because sh, perl, etc. also accept them.
    813 # (The list follows the same order as the GNU Coding Standards.)
    814 bindir='${exec_prefix}/bin'
    815 sbindir='${exec_prefix}/sbin'
    816 libexecdir='${exec_prefix}/libexec'
    817 datarootdir='${prefix}/share'
    818 datadir='${datarootdir}'
    819 sysconfdir='${prefix}/etc'
    820 sharedstatedir='${prefix}/com'
    821 localstatedir='${prefix}/var'
    822 includedir='${prefix}/include'
    823 oldincludedir='/usr/include'
    824 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    825 infodir='${datarootdir}/info'
    826 htmldir='${docdir}'
    827 dvidir='${docdir}'
    828 pdfdir='${docdir}'
    829 psdir='${docdir}'
    830 libdir='${exec_prefix}/lib'
    831 localedir='${datarootdir}/locale'
    832 mandir='${datarootdir}/man'
    833 
    834 ac_prev=
    835 ac_dashdash=
    836 for ac_option
    837 do
    838   # If the previous option needs an argument, assign it.
    839   if test -n "$ac_prev"; then
    840     eval $ac_prev=\$ac_option
    841     ac_prev=
    842     continue
    843   fi
    844 
    845   case $ac_option in
    846   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    847   *=)   ac_optarg= ;;
    848   *)    ac_optarg=yes ;;
    849   esac
    850 
    851   # Accept the important Cygnus configure options, so we can diagnose typos.
    852 
    853   case $ac_dashdash$ac_option in
    854   --)
    855     ac_dashdash=yes ;;
    856 
    857   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    858     ac_prev=bindir ;;
    859   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    860     bindir=$ac_optarg ;;
    861 
    862   -build | --build | --buil | --bui | --bu)
    863     ac_prev=build_alias ;;
    864   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    865     build_alias=$ac_optarg ;;
    866 
    867   -cache-file | --cache-file | --cache-fil | --cache-fi \
    868   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    869     ac_prev=cache_file ;;
    870   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    871   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    872     cache_file=$ac_optarg ;;
    873 
    874   --config-cache | -C)
    875     cache_file=config.cache ;;
    876 
    877   -datadir | --datadir | --datadi | --datad)
    878     ac_prev=datadir ;;
    879   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    880     datadir=$ac_optarg ;;
    881 
    882   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    883   | --dataroo | --dataro | --datar)
    884     ac_prev=datarootdir ;;
    885   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    886   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    887     datarootdir=$ac_optarg ;;
    888 
    889   -disable-* | --disable-*)
    890     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    891     # Reject names that are not valid shell variable names.
    892     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    893       as_fn_error $? "invalid feature name: $ac_useropt"
    894     ac_useropt_orig=$ac_useropt
    895     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    896     case $ac_user_opts in
    897       *"
    898 "enable_$ac_useropt"
    899 "*) ;;
    900       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
    901 	 ac_unrecognized_sep=', ';;
    902     esac
    903     eval enable_$ac_useropt=no ;;
    904 
    905   -docdir | --docdir | --docdi | --doc | --do)
    906     ac_prev=docdir ;;
    907   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    908     docdir=$ac_optarg ;;
    909 
    910   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    911     ac_prev=dvidir ;;
    912   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    913     dvidir=$ac_optarg ;;
    914 
    915   -enable-* | --enable-*)
    916     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    917     # Reject names that are not valid shell variable names.
    918     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    919       as_fn_error $? "invalid feature name: $ac_useropt"
    920     ac_useropt_orig=$ac_useropt
    921     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    922     case $ac_user_opts in
    923       *"
    924 "enable_$ac_useropt"
    925 "*) ;;
    926       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
    927 	 ac_unrecognized_sep=', ';;
    928     esac
    929     eval enable_$ac_useropt=\$ac_optarg ;;
    930 
    931   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    932   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    933   | --exec | --exe | --ex)
    934     ac_prev=exec_prefix ;;
    935   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    936   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    937   | --exec=* | --exe=* | --ex=*)
    938     exec_prefix=$ac_optarg ;;
    939 
    940   -gas | --gas | --ga | --g)
    941     # Obsolete; use --with-gas.
    942     with_gas=yes ;;
    943 
    944   -help | --help | --hel | --he | -h)
    945     ac_init_help=long ;;
    946   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    947     ac_init_help=recursive ;;
    948   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    949     ac_init_help=short ;;
    950 
    951   -host | --host | --hos | --ho)
    952     ac_prev=host_alias ;;
    953   -host=* | --host=* | --hos=* | --ho=*)
    954     host_alias=$ac_optarg ;;
    955 
    956   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    957     ac_prev=htmldir ;;
    958   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
    959   | --ht=*)
    960     htmldir=$ac_optarg ;;
    961 
    962   -includedir | --includedir | --includedi | --included | --include \
    963   | --includ | --inclu | --incl | --inc)
    964     ac_prev=includedir ;;
    965   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    966   | --includ=* | --inclu=* | --incl=* | --inc=*)
    967     includedir=$ac_optarg ;;
    968 
    969   -infodir | --infodir | --infodi | --infod | --info | --inf)
    970     ac_prev=infodir ;;
    971   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    972     infodir=$ac_optarg ;;
    973 
    974   -libdir | --libdir | --libdi | --libd)
    975     ac_prev=libdir ;;
    976   -libdir=* | --libdir=* | --libdi=* | --libd=*)
    977     libdir=$ac_optarg ;;
    978 
    979   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
    980   | --libexe | --libex | --libe)
    981     ac_prev=libexecdir ;;
    982   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    983   | --libexe=* | --libex=* | --libe=*)
    984     libexecdir=$ac_optarg ;;
    985 
    986   -localedir | --localedir | --localedi | --localed | --locale)
    987     ac_prev=localedir ;;
    988   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    989     localedir=$ac_optarg ;;
    990 
    991   -localstatedir | --localstatedir | --localstatedi | --localstated \
    992   | --localstate | --localstat | --localsta | --localst | --locals)
    993     ac_prev=localstatedir ;;
    994   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    995   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    996     localstatedir=$ac_optarg ;;
    997 
    998   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    999     ac_prev=mandir ;;
   1000   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1001     mandir=$ac_optarg ;;
   1002 
   1003   -nfp | --nfp | --nf)
   1004     # Obsolete; use --without-fp.
   1005     with_fp=no ;;
   1006 
   1007   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1008   | --no-cr | --no-c | -n)
   1009     no_create=yes ;;
   1010 
   1011   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1012   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1013     no_recursion=yes ;;
   1014 
   1015   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1016   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1017   | --oldin | --oldi | --old | --ol | --o)
   1018     ac_prev=oldincludedir ;;
   1019   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1020   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1021   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1022     oldincludedir=$ac_optarg ;;
   1023 
   1024   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1025     ac_prev=prefix ;;
   1026   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1027     prefix=$ac_optarg ;;
   1028 
   1029   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1030   | --program-pre | --program-pr | --program-p)
   1031     ac_prev=program_prefix ;;
   1032   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1033   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1034     program_prefix=$ac_optarg ;;
   1035 
   1036   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1037   | --program-suf | --program-su | --program-s)
   1038     ac_prev=program_suffix ;;
   1039   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1040   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1041     program_suffix=$ac_optarg ;;
   1042 
   1043   -program-transform-name | --program-transform-name \
   1044   | --program-transform-nam | --program-transform-na \
   1045   | --program-transform-n | --program-transform- \
   1046   | --program-transform | --program-transfor \
   1047   | --program-transfo | --program-transf \
   1048   | --program-trans | --program-tran \
   1049   | --progr-tra | --program-tr | --program-t)
   1050     ac_prev=program_transform_name ;;
   1051   -program-transform-name=* | --program-transform-name=* \
   1052   | --program-transform-nam=* | --program-transform-na=* \
   1053   | --program-transform-n=* | --program-transform-=* \
   1054   | --program-transform=* | --program-transfor=* \
   1055   | --program-transfo=* | --program-transf=* \
   1056   | --program-trans=* | --program-tran=* \
   1057   | --progr-tra=* | --program-tr=* | --program-t=*)
   1058     program_transform_name=$ac_optarg ;;
   1059 
   1060   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1061     ac_prev=pdfdir ;;
   1062   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1063     pdfdir=$ac_optarg ;;
   1064 
   1065   -psdir | --psdir | --psdi | --psd | --ps)
   1066     ac_prev=psdir ;;
   1067   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1068     psdir=$ac_optarg ;;
   1069 
   1070   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1071   | -silent | --silent | --silen | --sile | --sil)
   1072     silent=yes ;;
   1073 
   1074   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1075     ac_prev=sbindir ;;
   1076   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1077   | --sbi=* | --sb=*)
   1078     sbindir=$ac_optarg ;;
   1079 
   1080   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1081   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1082   | --sharedst | --shareds | --shared | --share | --shar \
   1083   | --sha | --sh)
   1084     ac_prev=sharedstatedir ;;
   1085   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1086   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1087   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1088   | --sha=* | --sh=*)
   1089     sharedstatedir=$ac_optarg ;;
   1090 
   1091   -site | --site | --sit)
   1092     ac_prev=site ;;
   1093   -site=* | --site=* | --sit=*)
   1094     site=$ac_optarg ;;
   1095 
   1096   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1097     ac_prev=srcdir ;;
   1098   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1099     srcdir=$ac_optarg ;;
   1100 
   1101   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1102   | --syscon | --sysco | --sysc | --sys | --sy)
   1103     ac_prev=sysconfdir ;;
   1104   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1105   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1106     sysconfdir=$ac_optarg ;;
   1107 
   1108   -target | --target | --targe | --targ | --tar | --ta | --t)
   1109     ac_prev=target_alias ;;
   1110   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1111     target_alias=$ac_optarg ;;
   1112 
   1113   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1114     verbose=yes ;;
   1115 
   1116   -version | --version | --versio | --versi | --vers | -V)
   1117     ac_init_version=: ;;
   1118 
   1119   -with-* | --with-*)
   1120     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1121     # Reject names that are not valid shell variable names.
   1122     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1123       as_fn_error $? "invalid package name: $ac_useropt"
   1124     ac_useropt_orig=$ac_useropt
   1125     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1126     case $ac_user_opts in
   1127       *"
   1128 "with_$ac_useropt"
   1129 "*) ;;
   1130       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1131 	 ac_unrecognized_sep=', ';;
   1132     esac
   1133     eval with_$ac_useropt=\$ac_optarg ;;
   1134 
   1135   -without-* | --without-*)
   1136     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1137     # Reject names that are not valid shell variable names.
   1138     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1139       as_fn_error $? "invalid package name: $ac_useropt"
   1140     ac_useropt_orig=$ac_useropt
   1141     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1142     case $ac_user_opts in
   1143       *"
   1144 "with_$ac_useropt"
   1145 "*) ;;
   1146       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1147 	 ac_unrecognized_sep=', ';;
   1148     esac
   1149     eval with_$ac_useropt=no ;;
   1150 
   1151   --x)
   1152     # Obsolete; use --with-x.
   1153     with_x=yes ;;
   1154 
   1155   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1156   | --x-incl | --x-inc | --x-in | --x-i)
   1157     ac_prev=x_includes ;;
   1158   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1159   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1160     x_includes=$ac_optarg ;;
   1161 
   1162   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1163   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1164     ac_prev=x_libraries ;;
   1165   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1166   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1167     x_libraries=$ac_optarg ;;
   1168 
   1169   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1170 Try \`$0 --help' for more information"
   1171     ;;
   1172 
   1173   *=*)
   1174     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1175     # Reject names that are not valid shell variable names.
   1176     case $ac_envvar in #(
   1177       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1178       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1179     esac
   1180     eval $ac_envvar=\$ac_optarg
   1181     export $ac_envvar ;;
   1182 
   1183   *)
   1184     # FIXME: should be removed in autoconf 3.0.
   1185     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1186     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1187       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1188     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1189     ;;
   1190 
   1191   esac
   1192 done
   1193 
   1194 if test -n "$ac_prev"; then
   1195   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1196   as_fn_error $? "missing argument to $ac_option"
   1197 fi
   1198 
   1199 if test -n "$ac_unrecognized_opts"; then
   1200   case $enable_option_checking in
   1201     no) ;;
   1202     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1203     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1204   esac
   1205 fi
   1206 
   1207 # Check all directory arguments for consistency.
   1208 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1209 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1210 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1211 		libdir localedir mandir
   1212 do
   1213   eval ac_val=\$$ac_var
   1214   # Remove trailing slashes.
   1215   case $ac_val in
   1216     */ )
   1217       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1218       eval $ac_var=\$ac_val;;
   1219   esac
   1220   # Be sure to have absolute directory names.
   1221   case $ac_val in
   1222     [\\/$]* | ?:[\\/]* )  continue;;
   1223     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1224   esac
   1225   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1226 done
   1227 
   1228 # There might be people who depend on the old broken behavior: `$host'
   1229 # used to hold the argument of --host etc.
   1230 # FIXME: To remove some day.
   1231 build=$build_alias
   1232 host=$host_alias
   1233 target=$target_alias
   1234 
   1235 # FIXME: To remove some day.
   1236 if test "x$host_alias" != x; then
   1237   if test "x$build_alias" = x; then
   1238     cross_compiling=maybe
   1239   elif test "x$build_alias" != "x$host_alias"; then
   1240     cross_compiling=yes
   1241   fi
   1242 fi
   1243 
   1244 ac_tool_prefix=
   1245 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1246 
   1247 test "$silent" = yes && exec 6>/dev/null
   1248 
   1249 
   1250 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1251 ac_ls_di=`ls -di .` &&
   1252 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1253   as_fn_error $? "working directory cannot be determined"
   1254 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1255   as_fn_error $? "pwd does not report name of working directory"
   1256 
   1257 
   1258 # Find the source files, if location was not specified.
   1259 if test -z "$srcdir"; then
   1260   ac_srcdir_defaulted=yes
   1261   # Try the directory containing this script, then the parent directory.
   1262   ac_confdir=`$as_dirname -- "$as_myself" ||
   1263 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1264 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1265 	 X"$as_myself" : 'X\(//\)$' \| \
   1266 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1267 $as_echo X"$as_myself" |
   1268     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1269 	    s//\1/
   1270 	    q
   1271 	  }
   1272 	  /^X\(\/\/\)[^/].*/{
   1273 	    s//\1/
   1274 	    q
   1275 	  }
   1276 	  /^X\(\/\/\)$/{
   1277 	    s//\1/
   1278 	    q
   1279 	  }
   1280 	  /^X\(\/\).*/{
   1281 	    s//\1/
   1282 	    q
   1283 	  }
   1284 	  s/.*/./; q'`
   1285   srcdir=$ac_confdir
   1286   if test ! -r "$srcdir/$ac_unique_file"; then
   1287     srcdir=..
   1288   fi
   1289 else
   1290   ac_srcdir_defaulted=no
   1291 fi
   1292 if test ! -r "$srcdir/$ac_unique_file"; then
   1293   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1294   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1295 fi
   1296 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1297 ac_abs_confdir=`(
   1298 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1299 	pwd)`
   1300 # When building in place, set srcdir=.
   1301 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1302   srcdir=.
   1303 fi
   1304 # Remove unnecessary trailing slashes from srcdir.
   1305 # Double slashes in file names in object file debugging info
   1306 # mess up M-x gdb in Emacs.
   1307 case $srcdir in
   1308 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1309 esac
   1310 for ac_var in $ac_precious_vars; do
   1311   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1312   eval ac_env_${ac_var}_value=\$${ac_var}
   1313   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1314   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1315 done
   1316 
   1317 #
   1318 # Report the --help message.
   1319 #
   1320 if test "$ac_init_help" = "long"; then
   1321   # Omit some internal or obsolete options to make the list less imposing.
   1322   # This message is too long to be a string in the A/UX 3.1 sh.
   1323   cat <<_ACEOF
   1324 \`configure' configures x11perf 1.6.1 to adapt to many kinds of systems.
   1325 
   1326 Usage: $0 [OPTION]... [VAR=VALUE]...
   1327 
   1328 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1329 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1330 
   1331 Defaults for the options are specified in brackets.
   1332 
   1333 Configuration:
   1334   -h, --help              display this help and exit
   1335       --help=short        display options specific to this package
   1336       --help=recursive    display the short help of all the included packages
   1337   -V, --version           display version information and exit
   1338   -q, --quiet, --silent   do not print \`checking ...' messages
   1339       --cache-file=FILE   cache test results in FILE [disabled]
   1340   -C, --config-cache      alias for \`--cache-file=config.cache'
   1341   -n, --no-create         do not create output files
   1342       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1343 
   1344 Installation directories:
   1345   --prefix=PREFIX         install architecture-independent files in PREFIX
   1346                           [$ac_default_prefix]
   1347   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1348                           [PREFIX]
   1349 
   1350 By default, \`make install' will install all the files in
   1351 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1352 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1353 for instance \`--prefix=\$HOME'.
   1354 
   1355 For better control, use the options below.
   1356 
   1357 Fine tuning of the installation directories:
   1358   --bindir=DIR            user executables [EPREFIX/bin]
   1359   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1360   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1361   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1362   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1363   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1364   --libdir=DIR            object code libraries [EPREFIX/lib]
   1365   --includedir=DIR        C header files [PREFIX/include]
   1366   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1367   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1368   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1369   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1370   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1371   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1372   --docdir=DIR            documentation root [DATAROOTDIR/doc/x11perf]
   1373   --htmldir=DIR           html documentation [DOCDIR]
   1374   --dvidir=DIR            dvi documentation [DOCDIR]
   1375   --pdfdir=DIR            pdf documentation [DOCDIR]
   1376   --psdir=DIR             ps documentation [DOCDIR]
   1377 _ACEOF
   1378 
   1379   cat <<\_ACEOF
   1380 
   1381 Program names:
   1382   --program-prefix=PREFIX            prepend PREFIX to installed program names
   1383   --program-suffix=SUFFIX            append SUFFIX to installed program names
   1384   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
   1385 
   1386 System types:
   1387   --build=BUILD     configure for building on BUILD [guessed]
   1388   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1389 _ACEOF
   1390 fi
   1391 
   1392 if test -n "$ac_init_help"; then
   1393   case $ac_init_help in
   1394      short | recursive ) echo "Configuration of x11perf 1.6.1:";;
   1395    esac
   1396   cat <<\_ACEOF
   1397 
   1398 Optional Features:
   1399   --disable-option-checking  ignore unrecognized --enable/--with options
   1400   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1401   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1402   --enable-silent-rules   less verbose build output (undo: "make V=1")
   1403   --disable-silent-rules  verbose build output (undo: "make V=0")
   1404   --enable-dependency-tracking
   1405                           do not reject slow dependency extractors
   1406   --disable-dependency-tracking
   1407                           speeds up one-time build
   1408   --disable-selective-werror
   1409                           Turn off selective compiler errors. (default:
   1410                           enabled)
   1411   --enable-strict-compilation
   1412                           Enable all warnings from compiler and make them
   1413                           errors (default: disabled)
   1414 
   1415 Some influential environment variables:
   1416   CC          C compiler command
   1417   CFLAGS      C compiler flags
   1418   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1419               nonstandard directory <lib dir>
   1420   LIBS        libraries to pass to the linker, e.g. -l<library>
   1421   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1422               you have headers in a nonstandard directory <include dir>
   1423   CPP         C preprocessor
   1424   PKG_CONFIG  path to pkg-config utility
   1425   PKG_CONFIG_PATH
   1426               directories to add to pkg-config's search path
   1427   PKG_CONFIG_LIBDIR
   1428               path overriding pkg-config's built-in search path
   1429   X11PERF_CFLAGS
   1430               C compiler flags for X11PERF, overriding pkg-config
   1431   X11PERF_LIBS
   1432               linker flags for X11PERF, overriding pkg-config
   1433   XRENDER_CFLAGS
   1434               C compiler flags for XRENDER, overriding pkg-config
   1435   XRENDER_LIBS
   1436               linker flags for XRENDER, overriding pkg-config
   1437   XFT_CFLAGS  C compiler flags for XFT, overriding pkg-config
   1438   XFT_LIBS    linker flags for XFT, overriding pkg-config
   1439   XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
   1440   XEXT_LIBS   linker flags for XEXT, overriding pkg-config
   1441 
   1442 Use these variables to override the choices made by `configure' or to help
   1443 it to find libraries and programs with nonstandard names/locations.
   1444 
   1445 Report bugs to <https://gitlab.freedesktop.org/xorg/test/x11perf/issues>.
   1446 _ACEOF
   1447 ac_status=$?
   1448 fi
   1449 
   1450 if test "$ac_init_help" = "recursive"; then
   1451   # If there are subdirs, report their specific --help.
   1452   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1453     test -d "$ac_dir" ||
   1454       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1455       continue
   1456     ac_builddir=.
   1457 
   1458 case "$ac_dir" in
   1459 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1460 *)
   1461   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1462   # A ".." for each directory in $ac_dir_suffix.
   1463   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1464   case $ac_top_builddir_sub in
   1465   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1466   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1467   esac ;;
   1468 esac
   1469 ac_abs_top_builddir=$ac_pwd
   1470 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1471 # for backward compatibility:
   1472 ac_top_builddir=$ac_top_build_prefix
   1473 
   1474 case $srcdir in
   1475   .)  # We are building in place.
   1476     ac_srcdir=.
   1477     ac_top_srcdir=$ac_top_builddir_sub
   1478     ac_abs_top_srcdir=$ac_pwd ;;
   1479   [\\/]* | ?:[\\/]* )  # Absolute name.
   1480     ac_srcdir=$srcdir$ac_dir_suffix;
   1481     ac_top_srcdir=$srcdir
   1482     ac_abs_top_srcdir=$srcdir ;;
   1483   *) # Relative name.
   1484     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1485     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1486     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1487 esac
   1488 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1489 
   1490     cd "$ac_dir" || { ac_status=$?; continue; }
   1491     # Check for guested configure.
   1492     if test -f "$ac_srcdir/configure.gnu"; then
   1493       echo &&
   1494       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1495     elif test -f "$ac_srcdir/configure"; then
   1496       echo &&
   1497       $SHELL "$ac_srcdir/configure" --help=recursive
   1498     else
   1499       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1500     fi || ac_status=$?
   1501     cd "$ac_pwd" || { ac_status=$?; break; }
   1502   done
   1503 fi
   1504 
   1505 test -n "$ac_init_help" && exit $ac_status
   1506 if $ac_init_version; then
   1507   cat <<\_ACEOF
   1508 x11perf configure 1.6.1
   1509 generated by GNU Autoconf 2.69
   1510 
   1511 Copyright (C) 2012 Free Software Foundation, Inc.
   1512 This configure script is free software; the Free Software Foundation
   1513 gives unlimited permission to copy, distribute and modify it.
   1514 _ACEOF
   1515   exit
   1516 fi
   1517 
   1518 ## ------------------------ ##
   1519 ## Autoconf initialization. ##
   1520 ## ------------------------ ##
   1521 
   1522 # ac_fn_c_try_compile LINENO
   1523 # --------------------------
   1524 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1525 ac_fn_c_try_compile ()
   1526 {
   1527   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1528   rm -f conftest.$ac_objext
   1529   if { { ac_try="$ac_compile"
   1530 case "(($ac_try" in
   1531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1532   *) ac_try_echo=$ac_try;;
   1533 esac
   1534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1535 $as_echo "$ac_try_echo"; } >&5
   1536   (eval "$ac_compile") 2>conftest.err
   1537   ac_status=$?
   1538   if test -s conftest.err; then
   1539     grep -v '^ *+' conftest.err >conftest.er1
   1540     cat conftest.er1 >&5
   1541     mv -f conftest.er1 conftest.err
   1542   fi
   1543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1544   test $ac_status = 0; } && {
   1545 	 test -z "$ac_c_werror_flag" ||
   1546 	 test ! -s conftest.err
   1547        } && test -s conftest.$ac_objext; then :
   1548   ac_retval=0
   1549 else
   1550   $as_echo "$as_me: failed program was:" >&5
   1551 sed 's/^/| /' conftest.$ac_ext >&5
   1552 
   1553 	ac_retval=1
   1554 fi
   1555   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1556   as_fn_set_status $ac_retval
   1557 
   1558 } # ac_fn_c_try_compile
   1559 
   1560 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
   1561 # ---------------------------------------------
   1562 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
   1563 # accordingly.
   1564 ac_fn_c_check_decl ()
   1565 {
   1566   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1567   as_decl_name=`echo $2|sed 's/ *(.*//'`
   1568   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
   1569   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
   1570 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
   1571 if eval \${$3+:} false; then :
   1572   $as_echo_n "(cached) " >&6
   1573 else
   1574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1575 /* end confdefs.h.  */
   1576 $4
   1577 int
   1578 main ()
   1579 {
   1580 #ifndef $as_decl_name
   1581 #ifdef __cplusplus
   1582   (void) $as_decl_use;
   1583 #else
   1584   (void) $as_decl_name;
   1585 #endif
   1586 #endif
   1587 
   1588   ;
   1589   return 0;
   1590 }
   1591 _ACEOF
   1592 if ac_fn_c_try_compile "$LINENO"; then :
   1593   eval "$3=yes"
   1594 else
   1595   eval "$3=no"
   1596 fi
   1597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1598 fi
   1599 eval ac_res=\$$3
   1600 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1601 $as_echo "$ac_res" >&6; }
   1602   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1603 
   1604 } # ac_fn_c_check_decl
   1605 
   1606 # ac_fn_c_try_cpp LINENO
   1607 # ----------------------
   1608 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1609 ac_fn_c_try_cpp ()
   1610 {
   1611   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1612   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1613 case "(($ac_try" in
   1614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1615   *) ac_try_echo=$ac_try;;
   1616 esac
   1617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1618 $as_echo "$ac_try_echo"; } >&5
   1619   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1620   ac_status=$?
   1621   if test -s conftest.err; then
   1622     grep -v '^ *+' conftest.err >conftest.er1
   1623     cat conftest.er1 >&5
   1624     mv -f conftest.er1 conftest.err
   1625   fi
   1626   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1627   test $ac_status = 0; } > conftest.i && {
   1628 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1629 	 test ! -s conftest.err
   1630        }; then :
   1631   ac_retval=0
   1632 else
   1633   $as_echo "$as_me: failed program was:" >&5
   1634 sed 's/^/| /' conftest.$ac_ext >&5
   1635 
   1636     ac_retval=1
   1637 fi
   1638   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1639   as_fn_set_status $ac_retval
   1640 
   1641 } # ac_fn_c_try_cpp
   1642 
   1643 # ac_fn_c_try_run LINENO
   1644 # ----------------------
   1645 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   1646 # that executables *can* be run.
   1647 ac_fn_c_try_run ()
   1648 {
   1649   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1650   if { { ac_try="$ac_link"
   1651 case "(($ac_try" in
   1652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1653   *) ac_try_echo=$ac_try;;
   1654 esac
   1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1656 $as_echo "$ac_try_echo"; } >&5
   1657   (eval "$ac_link") 2>&5
   1658   ac_status=$?
   1659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1660   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   1661   { { case "(($ac_try" in
   1662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1663   *) ac_try_echo=$ac_try;;
   1664 esac
   1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1666 $as_echo "$ac_try_echo"; } >&5
   1667   (eval "$ac_try") 2>&5
   1668   ac_status=$?
   1669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1670   test $ac_status = 0; }; }; then :
   1671   ac_retval=0
   1672 else
   1673   $as_echo "$as_me: program exited with status $ac_status" >&5
   1674        $as_echo "$as_me: failed program was:" >&5
   1675 sed 's/^/| /' conftest.$ac_ext >&5
   1676 
   1677        ac_retval=$ac_status
   1678 fi
   1679   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1680   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1681   as_fn_set_status $ac_retval
   1682 
   1683 } # ac_fn_c_try_run
   1684 
   1685 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1686 # -------------------------------------------------------
   1687 # Tests whether HEADER exists and can be compiled using the include files in
   1688 # INCLUDES, setting the cache variable VAR accordingly.
   1689 ac_fn_c_check_header_compile ()
   1690 {
   1691   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1693 $as_echo_n "checking for $2... " >&6; }
   1694 if eval \${$3+:} false; then :
   1695   $as_echo_n "(cached) " >&6
   1696 else
   1697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1698 /* end confdefs.h.  */
   1699 $4
   1700 #include <$2>
   1701 _ACEOF
   1702 if ac_fn_c_try_compile "$LINENO"; then :
   1703   eval "$3=yes"
   1704 else
   1705   eval "$3=no"
   1706 fi
   1707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1708 fi
   1709 eval ac_res=\$$3
   1710 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1711 $as_echo "$ac_res" >&6; }
   1712   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1713 
   1714 } # ac_fn_c_check_header_compile
   1715 
   1716 # ac_fn_c_try_link LINENO
   1717 # -----------------------
   1718 # Try to link conftest.$ac_ext, and return whether this succeeded.
   1719 ac_fn_c_try_link ()
   1720 {
   1721   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1722   rm -f conftest.$ac_objext conftest$ac_exeext
   1723   if { { ac_try="$ac_link"
   1724 case "(($ac_try" in
   1725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1726   *) ac_try_echo=$ac_try;;
   1727 esac
   1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1729 $as_echo "$ac_try_echo"; } >&5
   1730   (eval "$ac_link") 2>conftest.err
   1731   ac_status=$?
   1732   if test -s conftest.err; then
   1733     grep -v '^ *+' conftest.err >conftest.er1
   1734     cat conftest.er1 >&5
   1735     mv -f conftest.er1 conftest.err
   1736   fi
   1737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1738   test $ac_status = 0; } && {
   1739 	 test -z "$ac_c_werror_flag" ||
   1740 	 test ! -s conftest.err
   1741        } && test -s conftest$ac_exeext && {
   1742 	 test "$cross_compiling" = yes ||
   1743 	 test -x conftest$ac_exeext
   1744        }; then :
   1745   ac_retval=0
   1746 else
   1747   $as_echo "$as_me: failed program was:" >&5
   1748 sed 's/^/| /' conftest.$ac_ext >&5
   1749 
   1750 	ac_retval=1
   1751 fi
   1752   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1753   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1754   # interfere with the next link command; also delete a directory that is
   1755   # left behind by Apple's compiler.  We do this before executing the actions.
   1756   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1757   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1758   as_fn_set_status $ac_retval
   1759 
   1760 } # ac_fn_c_try_link
   1761 
   1762 # ac_fn_c_check_func LINENO FUNC VAR
   1763 # ----------------------------------
   1764 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   1765 ac_fn_c_check_func ()
   1766 {
   1767   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1769 $as_echo_n "checking for $2... " >&6; }
   1770 if eval \${$3+:} false; then :
   1771   $as_echo_n "(cached) " >&6
   1772 else
   1773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1774 /* end confdefs.h.  */
   1775 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   1776    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   1777 #define $2 innocuous_$2
   1778 
   1779 /* System header to define __stub macros and hopefully few prototypes,
   1780     which can conflict with char $2 (); below.
   1781     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   1782     <limits.h> exists even on freestanding compilers.  */
   1783 
   1784 #ifdef __STDC__
   1785 # include <limits.h>
   1786 #else
   1787 # include <assert.h>
   1788 #endif
   1789 
   1790 #undef $2
   1791 
   1792 /* Override any GCC internal prototype to avoid an error.
   1793    Use char because int might match the return type of a GCC
   1794    builtin and then its argument prototype would still apply.  */
   1795 #ifdef __cplusplus
   1796 extern "C"
   1797 #endif
   1798 char $2 ();
   1799 /* The GNU C library defines this for functions which it implements
   1800     to always fail with ENOSYS.  Some functions are actually named
   1801     something starting with __ and the normal name is an alias.  */
   1802 #if defined __stub_$2 || defined __stub___$2
   1803 choke me
   1804 #endif
   1805 
   1806 int
   1807 main ()
   1808 {
   1809 return $2 ();
   1810   ;
   1811   return 0;
   1812 }
   1813 _ACEOF
   1814 if ac_fn_c_try_link "$LINENO"; then :
   1815   eval "$3=yes"
   1816 else
   1817   eval "$3=no"
   1818 fi
   1819 rm -f core conftest.err conftest.$ac_objext \
   1820     conftest$ac_exeext conftest.$ac_ext
   1821 fi
   1822 eval ac_res=\$$3
   1823 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1824 $as_echo "$ac_res" >&6; }
   1825   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1826 
   1827 } # ac_fn_c_check_func
   1828 cat >config.log <<_ACEOF
   1829 This file contains any messages produced by compilers while
   1830 running configure, to aid debugging if configure makes a mistake.
   1831 
   1832 It was created by x11perf $as_me 1.6.1, which was
   1833 generated by GNU Autoconf 2.69.  Invocation command line was
   1834 
   1835   $ $0 $@
   1836 
   1837 _ACEOF
   1838 exec 5>>config.log
   1839 {
   1840 cat <<_ASUNAME
   1841 ## --------- ##
   1842 ## Platform. ##
   1843 ## --------- ##
   1844 
   1845 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   1846 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   1847 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   1848 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   1849 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   1850 
   1851 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   1852 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   1853 
   1854 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   1855 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   1856 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   1857 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   1858 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   1859 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   1860 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   1861 
   1862 _ASUNAME
   1863 
   1864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1865 for as_dir in $PATH
   1866 do
   1867   IFS=$as_save_IFS
   1868   test -z "$as_dir" && as_dir=.
   1869     $as_echo "PATH: $as_dir"
   1870   done
   1871 IFS=$as_save_IFS
   1872 
   1873 } >&5
   1874 
   1875 cat >&5 <<_ACEOF
   1876 
   1877 
   1878 ## ----------- ##
   1879 ## Core tests. ##
   1880 ## ----------- ##
   1881 
   1882 _ACEOF
   1883 
   1884 
   1885 # Keep a trace of the command line.
   1886 # Strip out --no-create and --no-recursion so they do not pile up.
   1887 # Strip out --silent because we don't want to record it for future runs.
   1888 # Also quote any args containing shell meta-characters.
   1889 # Make two passes to allow for proper duplicate-argument suppression.
   1890 ac_configure_args=
   1891 ac_configure_args0=
   1892 ac_configure_args1=
   1893 ac_must_keep_next=false
   1894 for ac_pass in 1 2
   1895 do
   1896   for ac_arg
   1897   do
   1898     case $ac_arg in
   1899     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   1900     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1901     | -silent | --silent | --silen | --sile | --sil)
   1902       continue ;;
   1903     *\'*)
   1904       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   1905     esac
   1906     case $ac_pass in
   1907     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   1908     2)
   1909       as_fn_append ac_configure_args1 " '$ac_arg'"
   1910       if test $ac_must_keep_next = true; then
   1911 	ac_must_keep_next=false # Got value, back to normal.
   1912       else
   1913 	case $ac_arg in
   1914 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   1915 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   1916 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   1917 	  | -with-* | --with-* | -without-* | --without-* | --x)
   1918 	    case "$ac_configure_args0 " in
   1919 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   1920 	    esac
   1921 	    ;;
   1922 	  -* ) ac_must_keep_next=true ;;
   1923 	esac
   1924       fi
   1925       as_fn_append ac_configure_args " '$ac_arg'"
   1926       ;;
   1927     esac
   1928   done
   1929 done
   1930 { ac_configure_args0=; unset ac_configure_args0;}
   1931 { ac_configure_args1=; unset ac_configure_args1;}
   1932 
   1933 # When interrupted or exit'd, cleanup temporary files, and complete
   1934 # config.log.  We remove comments because anyway the quotes in there
   1935 # would cause problems or look ugly.
   1936 # WARNING: Use '\'' to represent an apostrophe within the trap.
   1937 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   1938 trap 'exit_status=$?
   1939   # Save into config.log some information that might help in debugging.
   1940   {
   1941     echo
   1942 
   1943     $as_echo "## ---------------- ##
   1944 ## Cache variables. ##
   1945 ## ---------------- ##"
   1946     echo
   1947     # The following way of writing the cache mishandles newlines in values,
   1948 (
   1949   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   1950     eval ac_val=\$$ac_var
   1951     case $ac_val in #(
   1952     *${as_nl}*)
   1953       case $ac_var in #(
   1954       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   1955 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   1956       esac
   1957       case $ac_var in #(
   1958       _ | IFS | as_nl) ;; #(
   1959       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   1960       *) { eval $ac_var=; unset $ac_var;} ;;
   1961       esac ;;
   1962     esac
   1963   done
   1964   (set) 2>&1 |
   1965     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   1966     *${as_nl}ac_space=\ *)
   1967       sed -n \
   1968 	"s/'\''/'\''\\\\'\'''\''/g;
   1969 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   1970       ;; #(
   1971     *)
   1972       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   1973       ;;
   1974     esac |
   1975     sort
   1976 )
   1977     echo
   1978 
   1979     $as_echo "## ----------------- ##
   1980 ## Output variables. ##
   1981 ## ----------------- ##"
   1982     echo
   1983     for ac_var in $ac_subst_vars
   1984     do
   1985       eval ac_val=\$$ac_var
   1986       case $ac_val in
   1987       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   1988       esac
   1989       $as_echo "$ac_var='\''$ac_val'\''"
   1990     done | sort
   1991     echo
   1992 
   1993     if test -n "$ac_subst_files"; then
   1994       $as_echo "## ------------------- ##
   1995 ## File substitutions. ##
   1996 ## ------------------- ##"
   1997       echo
   1998       for ac_var in $ac_subst_files
   1999       do
   2000 	eval ac_val=\$$ac_var
   2001 	case $ac_val in
   2002 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2003 	esac
   2004 	$as_echo "$ac_var='\''$ac_val'\''"
   2005       done | sort
   2006       echo
   2007     fi
   2008 
   2009     if test -s confdefs.h; then
   2010       $as_echo "## ----------- ##
   2011 ## confdefs.h. ##
   2012 ## ----------- ##"
   2013       echo
   2014       cat confdefs.h
   2015       echo
   2016     fi
   2017     test "$ac_signal" != 0 &&
   2018       $as_echo "$as_me: caught signal $ac_signal"
   2019     $as_echo "$as_me: exit $exit_status"
   2020   } >&5
   2021   rm -f core *.core core.conftest.* &&
   2022     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2023     exit $exit_status
   2024 ' 0
   2025 for ac_signal in 1 2 13 15; do
   2026   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2027 done
   2028 ac_signal=0
   2029 
   2030 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2031 rm -f -r conftest* confdefs.h
   2032 
   2033 $as_echo "/* confdefs.h */" > confdefs.h
   2034 
   2035 # Predefined preprocessor variables.
   2036 
   2037 cat >>confdefs.h <<_ACEOF
   2038 #define PACKAGE_NAME "$PACKAGE_NAME"
   2039 _ACEOF
   2040 
   2041 cat >>confdefs.h <<_ACEOF
   2042 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2043 _ACEOF
   2044 
   2045 cat >>confdefs.h <<_ACEOF
   2046 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2047 _ACEOF
   2048 
   2049 cat >>confdefs.h <<_ACEOF
   2050 #define PACKAGE_STRING "$PACKAGE_STRING"
   2051 _ACEOF
   2052 
   2053 cat >>confdefs.h <<_ACEOF
   2054 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2055 _ACEOF
   2056 
   2057 cat >>confdefs.h <<_ACEOF
   2058 #define PACKAGE_URL "$PACKAGE_URL"
   2059 _ACEOF
   2060 
   2061 
   2062 # Let the site file select an alternate cache file if it wants to.
   2063 # Prefer an explicitly selected file to automatically selected ones.
   2064 ac_site_file1=NONE
   2065 ac_site_file2=NONE
   2066 if test -n "$CONFIG_SITE"; then
   2067   # We do not want a PATH search for config.site.
   2068   case $CONFIG_SITE in #((
   2069     -*)  ac_site_file1=./$CONFIG_SITE;;
   2070     */*) ac_site_file1=$CONFIG_SITE;;
   2071     *)   ac_site_file1=./$CONFIG_SITE;;
   2072   esac
   2073 elif test "x$prefix" != xNONE; then
   2074   ac_site_file1=$prefix/share/config.site
   2075   ac_site_file2=$prefix/etc/config.site
   2076 else
   2077   ac_site_file1=$ac_default_prefix/share/config.site
   2078   ac_site_file2=$ac_default_prefix/etc/config.site
   2079 fi
   2080 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2081 do
   2082   test "x$ac_site_file" = xNONE && continue
   2083   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
   2084     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2085 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2086     sed 's/^/| /' "$ac_site_file" >&5
   2087     . "$ac_site_file" \
   2088       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2090 as_fn_error $? "failed to load site script $ac_site_file
   2091 See \`config.log' for more details" "$LINENO" 5; }
   2092   fi
   2093 done
   2094 
   2095 if test -r "$cache_file"; then
   2096   # Some versions of bash will fail to source /dev/null (special files
   2097   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2098   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2099     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2100 $as_echo "$as_me: loading cache $cache_file" >&6;}
   2101     case $cache_file in
   2102       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2103       *)                      . "./$cache_file";;
   2104     esac
   2105   fi
   2106 else
   2107   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2108 $as_echo "$as_me: creating cache $cache_file" >&6;}
   2109   >$cache_file
   2110 fi
   2111 
   2112 # Check that the precious variables saved in the cache have kept the same
   2113 # value.
   2114 ac_cache_corrupted=false
   2115 for ac_var in $ac_precious_vars; do
   2116   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2117   eval ac_new_set=\$ac_env_${ac_var}_set
   2118   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2119   eval ac_new_val=\$ac_env_${ac_var}_value
   2120   case $ac_old_set,$ac_new_set in
   2121     set,)
   2122       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2123 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2124       ac_cache_corrupted=: ;;
   2125     ,set)
   2126       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2127 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2128       ac_cache_corrupted=: ;;
   2129     ,);;
   2130     *)
   2131       if test "x$ac_old_val" != "x$ac_new_val"; then
   2132 	# differences in whitespace do not lead to failure.
   2133 	ac_old_val_w=`echo x $ac_old_val`
   2134 	ac_new_val_w=`echo x $ac_new_val`
   2135 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2136 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2137 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2138 	  ac_cache_corrupted=:
   2139 	else
   2140 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2141 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2142 	  eval $ac_var=\$ac_old_val
   2143 	fi
   2144 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2145 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2146 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2147 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2148       fi;;
   2149   esac
   2150   # Pass precious variables to config.status.
   2151   if test "$ac_new_set" = set; then
   2152     case $ac_new_val in
   2153     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2154     *) ac_arg=$ac_var=$ac_new_val ;;
   2155     esac
   2156     case " $ac_configure_args " in
   2157       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2158       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2159     esac
   2160   fi
   2161 done
   2162 if $ac_cache_corrupted; then
   2163   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2165   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2166 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2167   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2168 fi
   2169 ## -------------------- ##
   2170 ## Main body of script. ##
   2171 ## -------------------- ##
   2172 
   2173 ac_ext=c
   2174 ac_cpp='$CPP $CPPFLAGS'
   2175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2178 
   2179 
   2180 
   2181 ac_config_headers="$ac_config_headers config.h"
   2182 
   2183 
   2184 # Initialize Automake
   2185 am__api_version='1.15'
   2186 
   2187 ac_aux_dir=
   2188 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   2189   if test -f "$ac_dir/install-sh"; then
   2190     ac_aux_dir=$ac_dir
   2191     ac_install_sh="$ac_aux_dir/install-sh -c"
   2192     break
   2193   elif test -f "$ac_dir/install.sh"; then
   2194     ac_aux_dir=$ac_dir
   2195     ac_install_sh="$ac_aux_dir/install.sh -c"
   2196     break
   2197   elif test -f "$ac_dir/shtool"; then
   2198     ac_aux_dir=$ac_dir
   2199     ac_install_sh="$ac_aux_dir/shtool install -c"
   2200     break
   2201   fi
   2202 done
   2203 if test -z "$ac_aux_dir"; then
   2204   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
   2205 fi
   2206 
   2207 # These three variables are undocumented and unsupported,
   2208 # and are intended to be withdrawn in a future Autoconf release.
   2209 # They can cause serious problems if a builder's source tree is in a directory
   2210 # whose full name contains unusual characters.
   2211 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   2212 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   2213 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   2214 
   2215 
   2216 # Find a good install program.  We prefer a C program (faster),
   2217 # so one script is as good as another.  But avoid the broken or
   2218 # incompatible versions:
   2219 # SysV /etc/install, /usr/sbin/install
   2220 # SunOS /usr/etc/install
   2221 # IRIX /sbin/install
   2222 # AIX /bin/install
   2223 # AmigaOS /C/install, which installs bootblocks on floppy discs
   2224 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   2225 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   2226 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   2227 # OS/2's system install, which has a completely different semantic
   2228 # ./install, which can be erroneously created by make from ./install.sh.
   2229 # Reject install programs that cannot install multiple files.
   2230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   2231 $as_echo_n "checking for a BSD-compatible install... " >&6; }
   2232 if test -z "$INSTALL"; then
   2233 if ${ac_cv_path_install+:} false; then :
   2234   $as_echo_n "(cached) " >&6
   2235 else
   2236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2237 for as_dir in $PATH
   2238 do
   2239   IFS=$as_save_IFS
   2240   test -z "$as_dir" && as_dir=.
   2241     # Account for people who put trailing slashes in PATH elements.
   2242 case $as_dir/ in #((
   2243   ./ | .// | /[cC]/* | \
   2244   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   2245   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   2246   /usr/ucb/* ) ;;
   2247   *)
   2248     # OSF1 and SCO ODT 3.0 have their own names for install.
   2249     # Don't use installbsd from OSF since it installs stuff as root
   2250     # by default.
   2251     for ac_prog in ginstall scoinst install; do
   2252       for ac_exec_ext in '' $ac_executable_extensions; do
   2253 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
   2254 	  if test $ac_prog = install &&
   2255 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   2256 	    # AIX install.  It has an incompatible calling convention.
   2257 	    :
   2258 	  elif test $ac_prog = install &&
   2259 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   2260 	    # program-specific install script used by HP pwplus--don't use.
   2261 	    :
   2262 	  else
   2263 	    rm -rf conftest.one conftest.two conftest.dir
   2264 	    echo one > conftest.one
   2265 	    echo two > conftest.two
   2266 	    mkdir conftest.dir
   2267 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   2268 	      test -s conftest.one && test -s conftest.two &&
   2269 	      test -s conftest.dir/conftest.one &&
   2270 	      test -s conftest.dir/conftest.two
   2271 	    then
   2272 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   2273 	      break 3
   2274 	    fi
   2275 	  fi
   2276 	fi
   2277       done
   2278     done
   2279     ;;
   2280 esac
   2281 
   2282   done
   2283 IFS=$as_save_IFS
   2284 
   2285 rm -rf conftest.one conftest.two conftest.dir
   2286 
   2287 fi
   2288   if test "${ac_cv_path_install+set}" = set; then
   2289     INSTALL=$ac_cv_path_install
   2290   else
   2291     # As a last resort, use the slow shell script.  Don't cache a
   2292     # value for INSTALL within a source directory, because that will
   2293     # break other packages using the cache if that directory is
   2294     # removed, or if the value is a relative name.
   2295     INSTALL=$ac_install_sh
   2296   fi
   2297 fi
   2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   2299 $as_echo "$INSTALL" >&6; }
   2300 
   2301 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   2302 # It thinks the first close brace ends the variable substitution.
   2303 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   2304 
   2305 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   2306 
   2307 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   2308 
   2309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
   2310 $as_echo_n "checking whether build environment is sane... " >&6; }
   2311 # Reject unsafe characters in $srcdir or the absolute working directory
   2312 # name.  Accept space and tab only in the latter.
   2313 am_lf='
   2314 '
   2315 case `pwd` in
   2316   *[\\\"\#\$\&\'\`$am_lf]*)
   2317     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
   2318 esac
   2319 case $srcdir in
   2320   *[\\\"\#\$\&\'\`$am_lf\ \	]*)
   2321     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
   2322 esac
   2323 
   2324 # Do 'set' in a subshell so we don't clobber the current shell's
   2325 # arguments.  Must try -L first in case configure is actually a
   2326 # symlink; some systems play weird games with the mod time of symlinks
   2327 # (eg FreeBSD returns the mod time of the symlink's containing
   2328 # directory).
   2329 if (
   2330    am_has_slept=no
   2331    for am_try in 1 2; do
   2332      echo "timestamp, slept: $am_has_slept" > conftest.file
   2333      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
   2334      if test "$*" = "X"; then
   2335 	# -L didn't work.
   2336 	set X `ls -t "$srcdir/configure" conftest.file`
   2337      fi
   2338      if test "$*" != "X $srcdir/configure conftest.file" \
   2339 	&& test "$*" != "X conftest.file $srcdir/configure"; then
   2340 
   2341 	# If neither matched, then we have a broken ls.  This can happen
   2342 	# if, for instance, CONFIG_SHELL is bash and it inherits a
   2343 	# broken ls alias from the environment.  This has actually
   2344 	# happened.  Such a system could not be considered "sane".
   2345 	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
   2346   alias in your environment" "$LINENO" 5
   2347      fi
   2348      if test "$2" = conftest.file || test $am_try -eq 2; then
   2349        break
   2350      fi
   2351      # Just in case.
   2352      sleep 1
   2353      am_has_slept=yes
   2354    done
   2355    test "$2" = conftest.file
   2356    )
   2357 then
   2358    # Ok.
   2359    :
   2360 else
   2361    as_fn_error $? "newly created file is older than distributed files!
   2362 Check your system clock" "$LINENO" 5
   2363 fi
   2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   2365 $as_echo "yes" >&6; }
   2366 # If we didn't sleep, we still need to ensure time stamps of config.status and
   2367 # generated files are strictly newer.
   2368 am_sleep_pid=
   2369 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
   2370   ( sleep 1 ) &
   2371   am_sleep_pid=$!
   2372 fi
   2373 
   2374 rm -f conftest.file
   2375 
   2376 test "$program_prefix" != NONE &&
   2377   program_transform_name="s&^&$program_prefix&;$program_transform_name"
   2378 # Use a double $ so make ignores it.
   2379 test "$program_suffix" != NONE &&
   2380   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
   2381 # Double any \ or $.
   2382 # By default was `s,x,x', remove it if useless.
   2383 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
   2384 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
   2385 
   2386 # Expand $ac_aux_dir to an absolute path.
   2387 am_aux_dir=`cd "$ac_aux_dir" && pwd`
   2388 
   2389 if test x"${MISSING+set}" != xset; then
   2390   case $am_aux_dir in
   2391   *\ * | *\	*)
   2392     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
   2393   *)
   2394     MISSING="\${SHELL} $am_aux_dir/missing" ;;
   2395   esac
   2396 fi
   2397 # Use eval to expand $SHELL
   2398 if eval "$MISSING --is-lightweight"; then
   2399   am_missing_run="$MISSING "
   2400 else
   2401   am_missing_run=
   2402   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
   2403 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
   2404 fi
   2405 
   2406 if test x"${install_sh+set}" != xset; then
   2407   case $am_aux_dir in
   2408   *\ * | *\	*)
   2409     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
   2410   *)
   2411     install_sh="\${SHELL} $am_aux_dir/install-sh"
   2412   esac
   2413 fi
   2414 
   2415 # Installed binaries are usually stripped using 'strip' when the user
   2416 # run "make install-strip".  However 'strip' might not be the right
   2417 # tool to use in cross-compilation environments, therefore Automake
   2418 # will honor the 'STRIP' environment variable to overrule this program.
   2419 if test "$cross_compiling" != no; then
   2420   if test -n "$ac_tool_prefix"; then
   2421   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   2422 set dummy ${ac_tool_prefix}strip; ac_word=$2
   2423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2424 $as_echo_n "checking for $ac_word... " >&6; }
   2425 if ${ac_cv_prog_STRIP+:} false; then :
   2426   $as_echo_n "(cached) " >&6
   2427 else
   2428   if test -n "$STRIP"; then
   2429   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   2430 else
   2431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2432 for as_dir in $PATH
   2433 do
   2434   IFS=$as_save_IFS
   2435   test -z "$as_dir" && as_dir=.
   2436     for ac_exec_ext in '' $ac_executable_extensions; do
   2437   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2438     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   2439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2440     break 2
   2441   fi
   2442 done
   2443   done
   2444 IFS=$as_save_IFS
   2445 
   2446 fi
   2447 fi
   2448 STRIP=$ac_cv_prog_STRIP
   2449 if test -n "$STRIP"; then
   2450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   2451 $as_echo "$STRIP" >&6; }
   2452 else
   2453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2454 $as_echo "no" >&6; }
   2455 fi
   2456 
   2457 
   2458 fi
   2459 if test -z "$ac_cv_prog_STRIP"; then
   2460   ac_ct_STRIP=$STRIP
   2461   # Extract the first word of "strip", so it can be a program name with args.
   2462 set dummy strip; ac_word=$2
   2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2464 $as_echo_n "checking for $ac_word... " >&6; }
   2465 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
   2466   $as_echo_n "(cached) " >&6
   2467 else
   2468   if test -n "$ac_ct_STRIP"; then
   2469   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   2470 else
   2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2472 for as_dir in $PATH
   2473 do
   2474   IFS=$as_save_IFS
   2475   test -z "$as_dir" && as_dir=.
   2476     for ac_exec_ext in '' $ac_executable_extensions; do
   2477   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2478     ac_cv_prog_ac_ct_STRIP="strip"
   2479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2480     break 2
   2481   fi
   2482 done
   2483   done
   2484 IFS=$as_save_IFS
   2485 
   2486 fi
   2487 fi
   2488 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   2489 if test -n "$ac_ct_STRIP"; then
   2490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   2491 $as_echo "$ac_ct_STRIP" >&6; }
   2492 else
   2493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2494 $as_echo "no" >&6; }
   2495 fi
   2496 
   2497   if test "x$ac_ct_STRIP" = x; then
   2498     STRIP=":"
   2499   else
   2500     case $cross_compiling:$ac_tool_warned in
   2501 yes:)
   2502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2504 ac_tool_warned=yes ;;
   2505 esac
   2506     STRIP=$ac_ct_STRIP
   2507   fi
   2508 else
   2509   STRIP="$ac_cv_prog_STRIP"
   2510 fi
   2511 
   2512 fi
   2513 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
   2514 
   2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
   2516 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
   2517 if test -z "$MKDIR_P"; then
   2518   if ${ac_cv_path_mkdir+:} false; then :
   2519   $as_echo_n "(cached) " >&6
   2520 else
   2521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2522 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
   2523 do
   2524   IFS=$as_save_IFS
   2525   test -z "$as_dir" && as_dir=.
   2526     for ac_prog in mkdir gmkdir; do
   2527 	 for ac_exec_ext in '' $ac_executable_extensions; do
   2528 	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
   2529 	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
   2530 	     'mkdir (GNU coreutils) '* | \
   2531 	     'mkdir (coreutils) '* | \
   2532 	     'mkdir (fileutils) '4.1*)
   2533 	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
   2534 	       break 3;;
   2535 	   esac
   2536 	 done
   2537        done
   2538   done
   2539 IFS=$as_save_IFS
   2540 
   2541 fi
   2542 
   2543   test -d ./--version && rmdir ./--version
   2544   if test "${ac_cv_path_mkdir+set}" = set; then
   2545     MKDIR_P="$ac_cv_path_mkdir -p"
   2546   else
   2547     # As a last resort, use the slow shell script.  Don't cache a
   2548     # value for MKDIR_P within a source directory, because that will
   2549     # break other packages using the cache if that directory is
   2550     # removed, or if the value is a relative name.
   2551     MKDIR_P="$ac_install_sh -d"
   2552   fi
   2553 fi
   2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
   2555 $as_echo "$MKDIR_P" >&6; }
   2556 
   2557 for ac_prog in gawk mawk nawk awk
   2558 do
   2559   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2560 set dummy $ac_prog; ac_word=$2
   2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2562 $as_echo_n "checking for $ac_word... " >&6; }
   2563 if ${ac_cv_prog_AWK+:} false; then :
   2564   $as_echo_n "(cached) " >&6
   2565 else
   2566   if test -n "$AWK"; then
   2567   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   2568 else
   2569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2570 for as_dir in $PATH
   2571 do
   2572   IFS=$as_save_IFS
   2573   test -z "$as_dir" && as_dir=.
   2574     for ac_exec_ext in '' $ac_executable_extensions; do
   2575   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2576     ac_cv_prog_AWK="$ac_prog"
   2577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2578     break 2
   2579   fi
   2580 done
   2581   done
   2582 IFS=$as_save_IFS
   2583 
   2584 fi
   2585 fi
   2586 AWK=$ac_cv_prog_AWK
   2587 if test -n "$AWK"; then
   2588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   2589 $as_echo "$AWK" >&6; }
   2590 else
   2591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2592 $as_echo "no" >&6; }
   2593 fi
   2594 
   2595 
   2596   test -n "$AWK" && break
   2597 done
   2598 
   2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
   2600 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
   2601 set x ${MAKE-make}
   2602 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
   2603 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
   2604   $as_echo_n "(cached) " >&6
   2605 else
   2606   cat >conftest.make <<\_ACEOF
   2607 SHELL = /bin/sh
   2608 all:
   2609 	@echo '@@@%%%=$(MAKE)=@@@%%%'
   2610 _ACEOF
   2611 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
   2612 case `${MAKE-make} -f conftest.make 2>/dev/null` in
   2613   *@@@%%%=?*=@@@%%%*)
   2614     eval ac_cv_prog_make_${ac_make}_set=yes;;
   2615   *)
   2616     eval ac_cv_prog_make_${ac_make}_set=no;;
   2617 esac
   2618 rm -f conftest.make
   2619 fi
   2620 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
   2621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   2622 $as_echo "yes" >&6; }
   2623   SET_MAKE=
   2624 else
   2625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2626 $as_echo "no" >&6; }
   2627   SET_MAKE="MAKE=${MAKE-make}"
   2628 fi
   2629 
   2630 rm -rf .tst 2>/dev/null
   2631 mkdir .tst 2>/dev/null
   2632 if test -d .tst; then
   2633   am__leading_dot=.
   2634 else
   2635   am__leading_dot=_
   2636 fi
   2637 rmdir .tst 2>/dev/null
   2638 
   2639 # Check whether --enable-silent-rules was given.
   2640 if test "${enable_silent_rules+set}" = set; then :
   2641   enableval=$enable_silent_rules;
   2642 fi
   2643 
   2644 case $enable_silent_rules in # (((
   2645   yes) AM_DEFAULT_VERBOSITY=0;;
   2646    no) AM_DEFAULT_VERBOSITY=1;;
   2647     *) AM_DEFAULT_VERBOSITY=1;;
   2648 esac
   2649 am_make=${MAKE-make}
   2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
   2651 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
   2652 if ${am_cv_make_support_nested_variables+:} false; then :
   2653   $as_echo_n "(cached) " >&6
   2654 else
   2655   if $as_echo 'TRUE=$(BAR$(V))
   2656 BAR0=false
   2657 BAR1=true
   2658 V=1
   2659 am__doit:
   2660 	@$(TRUE)
   2661 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
   2662   am_cv_make_support_nested_variables=yes
   2663 else
   2664   am_cv_make_support_nested_variables=no
   2665 fi
   2666 fi
   2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
   2668 $as_echo "$am_cv_make_support_nested_variables" >&6; }
   2669 if test $am_cv_make_support_nested_variables = yes; then
   2670     AM_V='$(V)'
   2671   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
   2672 else
   2673   AM_V=$AM_DEFAULT_VERBOSITY
   2674   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
   2675 fi
   2676 AM_BACKSLASH='\'
   2677 
   2678 if test "`cd $srcdir && pwd`" != "`pwd`"; then
   2679   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
   2680   # is not polluted with repeated "-I."
   2681   am__isrc=' -I$(srcdir)'
   2682   # test to see if srcdir already configured
   2683   if test -f $srcdir/config.status; then
   2684     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
   2685   fi
   2686 fi
   2687 
   2688 # test whether we have cygpath
   2689 if test -z "$CYGPATH_W"; then
   2690   if (cygpath --version) >/dev/null 2>/dev/null; then
   2691     CYGPATH_W='cygpath -w'
   2692   else
   2693     CYGPATH_W=echo
   2694   fi
   2695 fi
   2696 
   2697 
   2698 # Define the identity of the package.
   2699  PACKAGE='x11perf'
   2700  VERSION='1.6.1'
   2701 
   2702 
   2703 cat >>confdefs.h <<_ACEOF
   2704 #define PACKAGE "$PACKAGE"
   2705 _ACEOF
   2706 
   2707 
   2708 cat >>confdefs.h <<_ACEOF
   2709 #define VERSION "$VERSION"
   2710 _ACEOF
   2711 
   2712 # Some tools Automake needs.
   2713 
   2714 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
   2715 
   2716 
   2717 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
   2718 
   2719 
   2720 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
   2721 
   2722 
   2723 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
   2724 
   2725 
   2726 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
   2727 
   2728 # For better backward compatibility.  To be removed once Automake 1.9.x
   2729 # dies out for good.  For more background, see:
   2730 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
   2731 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
   2732 mkdir_p='$(MKDIR_P)'
   2733 
   2734 # We need awk for the "check" target (and possibly the TAP driver).  The
   2735 # system "awk" is bad on some platforms.
   2736 # Always define AMTAR for backward compatibility.  Yes, it's still used
   2737 # in the wild :-(  We should find a proper way to deprecate it ...
   2738 AMTAR='$${TAR-tar}'
   2739 
   2740 
   2741 # We'll loop over all known methods to create a tar archive until one works.
   2742 _am_tools='gnutar  pax cpio none'
   2743 
   2744 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
   2745 
   2746 
   2747 
   2748 
   2749 
   2750 
   2751 # POSIX will say in a future version that running "rm -f" with no argument
   2752 # is OK; and we want to be able to make that assumption in our Makefile
   2753 # recipes.  So use an aggressive probe to check that the usage we want is
   2754 # actually supported "in the wild" to an acceptable degree.
   2755 # See automake bug#10828.
   2756 # To make any issue more visible, cause the running configure to be aborted
   2757 # by default if the 'rm' program in use doesn't match our expectations; the
   2758 # user can still override this though.
   2759 if rm -f && rm -fr && rm -rf; then : OK; else
   2760   cat >&2 <<'END'
   2761 Oops!
   2762 
   2763 Your 'rm' program seems unable to run without file operands specified
   2764 on the command line, even when the '-f' option is present.  This is contrary
   2765 to the behaviour of most rm programs out there, and not conforming with
   2766 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
   2767 
   2768 Please tell bug-automake@gnu.org about your system, including the value
   2769 of your $PATH and any error possibly output before this message.  This
   2770 can help us improve future automake versions.
   2771 
   2772 END
   2773   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
   2774     echo 'Configuration will proceed anyway, since you have set the' >&2
   2775     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
   2776     echo >&2
   2777   else
   2778     cat >&2 <<'END'
   2779 Aborting the configuration process, to ensure you take notice of the issue.
   2780 
   2781 You can download and install GNU coreutils to get an 'rm' implementation
   2782 that behaves properly: <http://www.gnu.org/software/coreutils/>.
   2783 
   2784 If you want to complete the configuration process using your problematic
   2785 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
   2786 to "yes", and re-run configure.
   2787 
   2788 END
   2789     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
   2790   fi
   2791 fi
   2792 
   2793 
   2794 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
   2795 
   2796 
   2797 
   2798 
   2799 
   2800 
   2801 
   2802 
   2803 
   2804 
   2805 
   2806 DEPDIR="${am__leading_dot}deps"
   2807 
   2808 ac_config_commands="$ac_config_commands depfiles"
   2809 
   2810 
   2811 am_make=${MAKE-make}
   2812 cat > confinc << 'END'
   2813 am__doit:
   2814 	@echo this is the am__doit target
   2815 .PHONY: am__doit
   2816 END
   2817 # If we don't find an include directive, just comment out the code.
   2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
   2819 $as_echo_n "checking for style of include used by $am_make... " >&6; }
   2820 am__include="#"
   2821 am__quote=
   2822 _am_result=none
   2823 # First try GNU make style include.
   2824 echo "include confinc" > confmf
   2825 # Ignore all kinds of additional output from 'make'.
   2826 case `$am_make -s -f confmf 2> /dev/null` in #(
   2827 *the\ am__doit\ target*)
   2828   am__include=include
   2829   am__quote=
   2830   _am_result=GNU
   2831   ;;
   2832 esac
   2833 # Now try BSD make style include.
   2834 if test "$am__include" = "#"; then
   2835    echo '.include "confinc"' > confmf
   2836    case `$am_make -s -f confmf 2> /dev/null` in #(
   2837    *the\ am__doit\ target*)
   2838      am__include=.include
   2839      am__quote="\""
   2840      _am_result=BSD
   2841      ;;
   2842    esac
   2843 fi
   2844 
   2845 
   2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
   2847 $as_echo "$_am_result" >&6; }
   2848 rm -f confinc confmf
   2849 
   2850 # Check whether --enable-dependency-tracking was given.
   2851 if test "${enable_dependency_tracking+set}" = set; then :
   2852   enableval=$enable_dependency_tracking;
   2853 fi
   2854 
   2855 if test "x$enable_dependency_tracking" != xno; then
   2856   am_depcomp="$ac_aux_dir/depcomp"
   2857   AMDEPBACKSLASH='\'
   2858   am__nodep='_no'
   2859 fi
   2860  if test "x$enable_dependency_tracking" != xno; then
   2861   AMDEP_TRUE=
   2862   AMDEP_FALSE='#'
   2863 else
   2864   AMDEP_TRUE='#'
   2865   AMDEP_FALSE=
   2866 fi
   2867 
   2868 
   2869 ac_ext=c
   2870 ac_cpp='$CPP $CPPFLAGS'
   2871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2874 if test -n "$ac_tool_prefix"; then
   2875   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   2876 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2878 $as_echo_n "checking for $ac_word... " >&6; }
   2879 if ${ac_cv_prog_CC+:} false; then :
   2880   $as_echo_n "(cached) " >&6
   2881 else
   2882   if test -n "$CC"; then
   2883   ac_cv_prog_CC="$CC" # Let the user override the test.
   2884 else
   2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2886 for as_dir in $PATH
   2887 do
   2888   IFS=$as_save_IFS
   2889   test -z "$as_dir" && as_dir=.
   2890     for ac_exec_ext in '' $ac_executable_extensions; do
   2891   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2892     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   2893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2894     break 2
   2895   fi
   2896 done
   2897   done
   2898 IFS=$as_save_IFS
   2899 
   2900 fi
   2901 fi
   2902 CC=$ac_cv_prog_CC
   2903 if test -n "$CC"; then
   2904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2905 $as_echo "$CC" >&6; }
   2906 else
   2907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2908 $as_echo "no" >&6; }
   2909 fi
   2910 
   2911 
   2912 fi
   2913 if test -z "$ac_cv_prog_CC"; then
   2914   ac_ct_CC=$CC
   2915   # Extract the first word of "gcc", so it can be a program name with args.
   2916 set dummy gcc; ac_word=$2
   2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2918 $as_echo_n "checking for $ac_word... " >&6; }
   2919 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   2920   $as_echo_n "(cached) " >&6
   2921 else
   2922   if test -n "$ac_ct_CC"; then
   2923   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2924 else
   2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2926 for as_dir in $PATH
   2927 do
   2928   IFS=$as_save_IFS
   2929   test -z "$as_dir" && as_dir=.
   2930     for ac_exec_ext in '' $ac_executable_extensions; do
   2931   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2932     ac_cv_prog_ac_ct_CC="gcc"
   2933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2934     break 2
   2935   fi
   2936 done
   2937   done
   2938 IFS=$as_save_IFS
   2939 
   2940 fi
   2941 fi
   2942 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2943 if test -n "$ac_ct_CC"; then
   2944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2945 $as_echo "$ac_ct_CC" >&6; }
   2946 else
   2947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2948 $as_echo "no" >&6; }
   2949 fi
   2950 
   2951   if test "x$ac_ct_CC" = x; then
   2952     CC=""
   2953   else
   2954     case $cross_compiling:$ac_tool_warned in
   2955 yes:)
   2956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2958 ac_tool_warned=yes ;;
   2959 esac
   2960     CC=$ac_ct_CC
   2961   fi
   2962 else
   2963   CC="$ac_cv_prog_CC"
   2964 fi
   2965 
   2966 if test -z "$CC"; then
   2967           if test -n "$ac_tool_prefix"; then
   2968     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   2969 set dummy ${ac_tool_prefix}cc; ac_word=$2
   2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2971 $as_echo_n "checking for $ac_word... " >&6; }
   2972 if ${ac_cv_prog_CC+:} false; then :
   2973   $as_echo_n "(cached) " >&6
   2974 else
   2975   if test -n "$CC"; then
   2976   ac_cv_prog_CC="$CC" # Let the user override the test.
   2977 else
   2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2979 for as_dir in $PATH
   2980 do
   2981   IFS=$as_save_IFS
   2982   test -z "$as_dir" && as_dir=.
   2983     for ac_exec_ext in '' $ac_executable_extensions; do
   2984   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2985     ac_cv_prog_CC="${ac_tool_prefix}cc"
   2986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2987     break 2
   2988   fi
   2989 done
   2990   done
   2991 IFS=$as_save_IFS
   2992 
   2993 fi
   2994 fi
   2995 CC=$ac_cv_prog_CC
   2996 if test -n "$CC"; then
   2997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2998 $as_echo "$CC" >&6; }
   2999 else
   3000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3001 $as_echo "no" >&6; }
   3002 fi
   3003 
   3004 
   3005   fi
   3006 fi
   3007 if test -z "$CC"; then
   3008   # Extract the first word of "cc", so it can be a program name with args.
   3009 set dummy cc; ac_word=$2
   3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3011 $as_echo_n "checking for $ac_word... " >&6; }
   3012 if ${ac_cv_prog_CC+:} false; then :
   3013   $as_echo_n "(cached) " >&6
   3014 else
   3015   if test -n "$CC"; then
   3016   ac_cv_prog_CC="$CC" # Let the user override the test.
   3017 else
   3018   ac_prog_rejected=no
   3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3020 for as_dir in $PATH
   3021 do
   3022   IFS=$as_save_IFS
   3023   test -z "$as_dir" && as_dir=.
   3024     for ac_exec_ext in '' $ac_executable_extensions; do
   3025   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3026     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   3027        ac_prog_rejected=yes
   3028        continue
   3029      fi
   3030     ac_cv_prog_CC="cc"
   3031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3032     break 2
   3033   fi
   3034 done
   3035   done
   3036 IFS=$as_save_IFS
   3037 
   3038 if test $ac_prog_rejected = yes; then
   3039   # We found a bogon in the path, so make sure we never use it.
   3040   set dummy $ac_cv_prog_CC
   3041   shift
   3042   if test $# != 0; then
   3043     # We chose a different compiler from the bogus one.
   3044     # However, it has the same basename, so the bogon will be chosen
   3045     # first if we set CC to just the basename; use the full file name.
   3046     shift
   3047     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   3048   fi
   3049 fi
   3050 fi
   3051 fi
   3052 CC=$ac_cv_prog_CC
   3053 if test -n "$CC"; then
   3054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3055 $as_echo "$CC" >&6; }
   3056 else
   3057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3058 $as_echo "no" >&6; }
   3059 fi
   3060 
   3061 
   3062 fi
   3063 if test -z "$CC"; then
   3064   if test -n "$ac_tool_prefix"; then
   3065   for ac_prog in cl.exe
   3066   do
   3067     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   3068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3070 $as_echo_n "checking for $ac_word... " >&6; }
   3071 if ${ac_cv_prog_CC+:} false; then :
   3072   $as_echo_n "(cached) " >&6
   3073 else
   3074   if test -n "$CC"; then
   3075   ac_cv_prog_CC="$CC" # Let the user override the test.
   3076 else
   3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3078 for as_dir in $PATH
   3079 do
   3080   IFS=$as_save_IFS
   3081   test -z "$as_dir" && as_dir=.
   3082     for ac_exec_ext in '' $ac_executable_extensions; do
   3083   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3084     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   3085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3086     break 2
   3087   fi
   3088 done
   3089   done
   3090 IFS=$as_save_IFS
   3091 
   3092 fi
   3093 fi
   3094 CC=$ac_cv_prog_CC
   3095 if test -n "$CC"; then
   3096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3097 $as_echo "$CC" >&6; }
   3098 else
   3099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3100 $as_echo "no" >&6; }
   3101 fi
   3102 
   3103 
   3104     test -n "$CC" && break
   3105   done
   3106 fi
   3107 if test -z "$CC"; then
   3108   ac_ct_CC=$CC
   3109   for ac_prog in cl.exe
   3110 do
   3111   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3112 set dummy $ac_prog; ac_word=$2
   3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3114 $as_echo_n "checking for $ac_word... " >&6; }
   3115 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   3116   $as_echo_n "(cached) " >&6
   3117 else
   3118   if test -n "$ac_ct_CC"; then
   3119   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3120 else
   3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3122 for as_dir in $PATH
   3123 do
   3124   IFS=$as_save_IFS
   3125   test -z "$as_dir" && as_dir=.
   3126     for ac_exec_ext in '' $ac_executable_extensions; do
   3127   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3128     ac_cv_prog_ac_ct_CC="$ac_prog"
   3129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3130     break 2
   3131   fi
   3132 done
   3133   done
   3134 IFS=$as_save_IFS
   3135 
   3136 fi
   3137 fi
   3138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3139 if test -n "$ac_ct_CC"; then
   3140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3141 $as_echo "$ac_ct_CC" >&6; }
   3142 else
   3143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3144 $as_echo "no" >&6; }
   3145 fi
   3146 
   3147 
   3148   test -n "$ac_ct_CC" && break
   3149 done
   3150 
   3151   if test "x$ac_ct_CC" = x; then
   3152     CC=""
   3153   else
   3154     case $cross_compiling:$ac_tool_warned in
   3155 yes:)
   3156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3158 ac_tool_warned=yes ;;
   3159 esac
   3160     CC=$ac_ct_CC
   3161   fi
   3162 fi
   3163 
   3164 fi
   3165 
   3166 
   3167 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3169 as_fn_error $? "no acceptable C compiler found in \$PATH
   3170 See \`config.log' for more details" "$LINENO" 5; }
   3171 
   3172 # Provide some information about the compiler.
   3173 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3174 set X $ac_compile
   3175 ac_compiler=$2
   3176 for ac_option in --version -v -V -qversion; do
   3177   { { ac_try="$ac_compiler $ac_option >&5"
   3178 case "(($ac_try" in
   3179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3180   *) ac_try_echo=$ac_try;;
   3181 esac
   3182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3183 $as_echo "$ac_try_echo"; } >&5
   3184   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3185   ac_status=$?
   3186   if test -s conftest.err; then
   3187     sed '10a\
   3188 ... rest of stderr output deleted ...
   3189          10q' conftest.err >conftest.er1
   3190     cat conftest.er1 >&5
   3191   fi
   3192   rm -f conftest.er1 conftest.err
   3193   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3194   test $ac_status = 0; }
   3195 done
   3196 
   3197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3198 /* end confdefs.h.  */
   3199 
   3200 int
   3201 main ()
   3202 {
   3203 
   3204   ;
   3205   return 0;
   3206 }
   3207 _ACEOF
   3208 ac_clean_files_save=$ac_clean_files
   3209 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   3210 # Try to create an executable without -o first, disregard a.out.
   3211 # It will help us diagnose broken compilers, and finding out an intuition
   3212 # of exeext.
   3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3214 $as_echo_n "checking whether the C compiler works... " >&6; }
   3215 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3216 
   3217 # The possible output files:
   3218 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3219 
   3220 ac_rmfiles=
   3221 for ac_file in $ac_files
   3222 do
   3223   case $ac_file in
   3224     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3225     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3226   esac
   3227 done
   3228 rm -f $ac_rmfiles
   3229 
   3230 if { { ac_try="$ac_link_default"
   3231 case "(($ac_try" in
   3232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3233   *) ac_try_echo=$ac_try;;
   3234 esac
   3235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3236 $as_echo "$ac_try_echo"; } >&5
   3237   (eval "$ac_link_default") 2>&5
   3238   ac_status=$?
   3239   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3240   test $ac_status = 0; }; then :
   3241   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3242 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3243 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3244 # so that the user can short-circuit this test for compilers unknown to
   3245 # Autoconf.
   3246 for ac_file in $ac_files ''
   3247 do
   3248   test -f "$ac_file" || continue
   3249   case $ac_file in
   3250     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3251 	;;
   3252     [ab].out )
   3253 	# We found the default executable, but exeext='' is most
   3254 	# certainly right.
   3255 	break;;
   3256     *.* )
   3257 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   3258 	then :; else
   3259 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3260 	fi
   3261 	# We set ac_cv_exeext here because the later test for it is not
   3262 	# safe: cross compilers may not add the suffix if given an `-o'
   3263 	# argument, so we may need to know it at that point already.
   3264 	# Even if this section looks crufty: it has the advantage of
   3265 	# actually working.
   3266 	break;;
   3267     * )
   3268 	break;;
   3269   esac
   3270 done
   3271 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3272 
   3273 else
   3274   ac_file=''
   3275 fi
   3276 if test -z "$ac_file"; then :
   3277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3278 $as_echo "no" >&6; }
   3279 $as_echo "$as_me: failed program was:" >&5
   3280 sed 's/^/| /' conftest.$ac_ext >&5
   3281 
   3282 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3284 as_fn_error 77 "C compiler cannot create executables
   3285 See \`config.log' for more details" "$LINENO" 5; }
   3286 else
   3287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3288 $as_echo "yes" >&6; }
   3289 fi
   3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3291 $as_echo_n "checking for C compiler default output file name... " >&6; }
   3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3293 $as_echo "$ac_file" >&6; }
   3294 ac_exeext=$ac_cv_exeext
   3295 
   3296 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3297 ac_clean_files=$ac_clean_files_save
   3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3299 $as_echo_n "checking for suffix of executables... " >&6; }
   3300 if { { ac_try="$ac_link"
   3301 case "(($ac_try" in
   3302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3303   *) ac_try_echo=$ac_try;;
   3304 esac
   3305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3306 $as_echo "$ac_try_echo"; } >&5
   3307   (eval "$ac_link") 2>&5
   3308   ac_status=$?
   3309   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3310   test $ac_status = 0; }; then :
   3311   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3312 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3313 # work properly (i.e., refer to `conftest.exe'), while it won't with
   3314 # `rm'.
   3315 for ac_file in conftest.exe conftest conftest.*; do
   3316   test -f "$ac_file" || continue
   3317   case $ac_file in
   3318     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3319     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3320 	  break;;
   3321     * ) break;;
   3322   esac
   3323 done
   3324 else
   3325   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3327 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   3328 See \`config.log' for more details" "$LINENO" 5; }
   3329 fi
   3330 rm -f conftest conftest$ac_cv_exeext
   3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3332 $as_echo "$ac_cv_exeext" >&6; }
   3333 
   3334 rm -f conftest.$ac_ext
   3335 EXEEXT=$ac_cv_exeext
   3336 ac_exeext=$EXEEXT
   3337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3338 /* end confdefs.h.  */
   3339 #include <stdio.h>
   3340 int
   3341 main ()
   3342 {
   3343 FILE *f = fopen ("conftest.out", "w");
   3344  return ferror (f) || fclose (f) != 0;
   3345 
   3346   ;
   3347   return 0;
   3348 }
   3349 _ACEOF
   3350 ac_clean_files="$ac_clean_files conftest.out"
   3351 # Check that the compiler produces executables we can run.  If not, either
   3352 # the compiler is broken, or we cross compile.
   3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3354 $as_echo_n "checking whether we are cross compiling... " >&6; }
   3355 if test "$cross_compiling" != yes; then
   3356   { { ac_try="$ac_link"
   3357 case "(($ac_try" in
   3358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3359   *) ac_try_echo=$ac_try;;
   3360 esac
   3361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3362 $as_echo "$ac_try_echo"; } >&5
   3363   (eval "$ac_link") 2>&5
   3364   ac_status=$?
   3365   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3366   test $ac_status = 0; }
   3367   if { ac_try='./conftest$ac_cv_exeext'
   3368   { { case "(($ac_try" in
   3369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3370   *) ac_try_echo=$ac_try;;
   3371 esac
   3372 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3373 $as_echo "$ac_try_echo"; } >&5
   3374   (eval "$ac_try") 2>&5
   3375   ac_status=$?
   3376   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3377   test $ac_status = 0; }; }; then
   3378     cross_compiling=no
   3379   else
   3380     if test "$cross_compiling" = maybe; then
   3381 	cross_compiling=yes
   3382     else
   3383 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3385 as_fn_error $? "cannot run C compiled programs.
   3386 If you meant to cross compile, use \`--host'.
   3387 See \`config.log' for more details" "$LINENO" 5; }
   3388     fi
   3389   fi
   3390 fi
   3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3392 $as_echo "$cross_compiling" >&6; }
   3393 
   3394 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   3395 ac_clean_files=$ac_clean_files_save
   3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3397 $as_echo_n "checking for suffix of object files... " >&6; }
   3398 if ${ac_cv_objext+:} false; then :
   3399   $as_echo_n "(cached) " >&6
   3400 else
   3401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3402 /* end confdefs.h.  */
   3403 
   3404 int
   3405 main ()
   3406 {
   3407 
   3408   ;
   3409   return 0;
   3410 }
   3411 _ACEOF
   3412 rm -f conftest.o conftest.obj
   3413 if { { ac_try="$ac_compile"
   3414 case "(($ac_try" in
   3415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3416   *) ac_try_echo=$ac_try;;
   3417 esac
   3418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3419 $as_echo "$ac_try_echo"; } >&5
   3420   (eval "$ac_compile") 2>&5
   3421   ac_status=$?
   3422   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3423   test $ac_status = 0; }; then :
   3424   for ac_file in conftest.o conftest.obj conftest.*; do
   3425   test -f "$ac_file" || continue;
   3426   case $ac_file in
   3427     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3428     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3429        break;;
   3430   esac
   3431 done
   3432 else
   3433   $as_echo "$as_me: failed program was:" >&5
   3434 sed 's/^/| /' conftest.$ac_ext >&5
   3435 
   3436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3438 as_fn_error $? "cannot compute suffix of object files: cannot compile
   3439 See \`config.log' for more details" "$LINENO" 5; }
   3440 fi
   3441 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3442 fi
   3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3444 $as_echo "$ac_cv_objext" >&6; }
   3445 OBJEXT=$ac_cv_objext
   3446 ac_objext=$OBJEXT
   3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   3448 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   3449 if ${ac_cv_c_compiler_gnu+:} false; then :
   3450   $as_echo_n "(cached) " >&6
   3451 else
   3452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3453 /* end confdefs.h.  */
   3454 
   3455 int
   3456 main ()
   3457 {
   3458 #ifndef __GNUC__
   3459        choke me
   3460 #endif
   3461 
   3462   ;
   3463   return 0;
   3464 }
   3465 _ACEOF
   3466 if ac_fn_c_try_compile "$LINENO"; then :
   3467   ac_compiler_gnu=yes
   3468 else
   3469   ac_compiler_gnu=no
   3470 fi
   3471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3472 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3473 
   3474 fi
   3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3476 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   3477 if test $ac_compiler_gnu = yes; then
   3478   GCC=yes
   3479 else
   3480   GCC=
   3481 fi
   3482 ac_test_CFLAGS=${CFLAGS+set}
   3483 ac_save_CFLAGS=$CFLAGS
   3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3485 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   3486 if ${ac_cv_prog_cc_g+:} false; then :
   3487   $as_echo_n "(cached) " >&6
   3488 else
   3489   ac_save_c_werror_flag=$ac_c_werror_flag
   3490    ac_c_werror_flag=yes
   3491    ac_cv_prog_cc_g=no
   3492    CFLAGS="-g"
   3493    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3494 /* end confdefs.h.  */
   3495 
   3496 int
   3497 main ()
   3498 {
   3499 
   3500   ;
   3501   return 0;
   3502 }
   3503 _ACEOF
   3504 if ac_fn_c_try_compile "$LINENO"; then :
   3505   ac_cv_prog_cc_g=yes
   3506 else
   3507   CFLAGS=""
   3508       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3509 /* end confdefs.h.  */
   3510 
   3511 int
   3512 main ()
   3513 {
   3514 
   3515   ;
   3516   return 0;
   3517 }
   3518 _ACEOF
   3519 if ac_fn_c_try_compile "$LINENO"; then :
   3520 
   3521 else
   3522   ac_c_werror_flag=$ac_save_c_werror_flag
   3523 	 CFLAGS="-g"
   3524 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3525 /* end confdefs.h.  */
   3526 
   3527 int
   3528 main ()
   3529 {
   3530 
   3531   ;
   3532   return 0;
   3533 }
   3534 _ACEOF
   3535 if ac_fn_c_try_compile "$LINENO"; then :
   3536   ac_cv_prog_cc_g=yes
   3537 fi
   3538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3539 fi
   3540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3541 fi
   3542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3543    ac_c_werror_flag=$ac_save_c_werror_flag
   3544 fi
   3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3546 $as_echo "$ac_cv_prog_cc_g" >&6; }
   3547 if test "$ac_test_CFLAGS" = set; then
   3548   CFLAGS=$ac_save_CFLAGS
   3549 elif test $ac_cv_prog_cc_g = yes; then
   3550   if test "$GCC" = yes; then
   3551     CFLAGS="-g -O2"
   3552   else
   3553     CFLAGS="-g"
   3554   fi
   3555 else
   3556   if test "$GCC" = yes; then
   3557     CFLAGS="-O2"
   3558   else
   3559     CFLAGS=
   3560   fi
   3561 fi
   3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   3563 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   3564 if ${ac_cv_prog_cc_c89+:} false; then :
   3565   $as_echo_n "(cached) " >&6
   3566 else
   3567   ac_cv_prog_cc_c89=no
   3568 ac_save_CC=$CC
   3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3570 /* end confdefs.h.  */
   3571 #include <stdarg.h>
   3572 #include <stdio.h>
   3573 struct stat;
   3574 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   3575 struct buf { int x; };
   3576 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   3577 static char *e (p, i)
   3578      char **p;
   3579      int i;
   3580 {
   3581   return p[i];
   3582 }
   3583 static char *f (char * (*g) (char **, int), char **p, ...)
   3584 {
   3585   char *s;
   3586   va_list v;
   3587   va_start (v,p);
   3588   s = g (p, va_arg (v,int));
   3589   va_end (v);
   3590   return s;
   3591 }
   3592 
   3593 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   3594    function prototypes and stuff, but not '\xHH' hex character constants.
   3595    These don't provoke an error unfortunately, instead are silently treated
   3596    as 'x'.  The following induces an error, until -std is added to get
   3597    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   3598    array size at least.  It's necessary to write '\x00'==0 to get something
   3599    that's true only with -std.  */
   3600 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   3601 
   3602 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   3603    inside strings and character constants.  */
   3604 #define FOO(x) 'x'
   3605 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   3606 
   3607 int test (int i, double x);
   3608 struct s1 {int (*f) (int a);};
   3609 struct s2 {int (*f) (double a);};
   3610 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   3611 int argc;
   3612 char **argv;
   3613 int
   3614 main ()
   3615 {
   3616 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   3617   ;
   3618   return 0;
   3619 }
   3620 _ACEOF
   3621 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   3622 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3623 do
   3624   CC="$ac_save_CC $ac_arg"
   3625   if ac_fn_c_try_compile "$LINENO"; then :
   3626   ac_cv_prog_cc_c89=$ac_arg
   3627 fi
   3628 rm -f core conftest.err conftest.$ac_objext
   3629   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3630 done
   3631 rm -f conftest.$ac_ext
   3632 CC=$ac_save_CC
   3633 
   3634 fi
   3635 # AC_CACHE_VAL
   3636 case "x$ac_cv_prog_cc_c89" in
   3637   x)
   3638     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3639 $as_echo "none needed" >&6; } ;;
   3640   xno)
   3641     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3642 $as_echo "unsupported" >&6; } ;;
   3643   *)
   3644     CC="$CC $ac_cv_prog_cc_c89"
   3645     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   3646 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   3647 esac
   3648 if test "x$ac_cv_prog_cc_c89" != xno; then :
   3649 
   3650 fi
   3651 
   3652 ac_ext=c
   3653 ac_cpp='$CPP $CPPFLAGS'
   3654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3657 
   3658 ac_ext=c
   3659 ac_cpp='$CPP $CPPFLAGS'
   3660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
   3664 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
   3665 if ${am_cv_prog_cc_c_o+:} false; then :
   3666   $as_echo_n "(cached) " >&6
   3667 else
   3668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3669 /* end confdefs.h.  */
   3670 
   3671 int
   3672 main ()
   3673 {
   3674 
   3675   ;
   3676   return 0;
   3677 }
   3678 _ACEOF
   3679   # Make sure it works both with $CC and with simple cc.
   3680   # Following AC_PROG_CC_C_O, we do the test twice because some
   3681   # compilers refuse to overwrite an existing .o file with -o,
   3682   # though they will create one.
   3683   am_cv_prog_cc_c_o=yes
   3684   for am_i in 1 2; do
   3685     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
   3686    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
   3687    ac_status=$?
   3688    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3689    (exit $ac_status); } \
   3690          && test -f conftest2.$ac_objext; then
   3691       : OK
   3692     else
   3693       am_cv_prog_cc_c_o=no
   3694       break
   3695     fi
   3696   done
   3697   rm -f core conftest*
   3698   unset am_i
   3699 fi
   3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
   3701 $as_echo "$am_cv_prog_cc_c_o" >&6; }
   3702 if test "$am_cv_prog_cc_c_o" != yes; then
   3703    # Losing compiler, so override with the script.
   3704    # FIXME: It is wrong to rewrite CC.
   3705    # But if we don't then we get into trouble of one sort or another.
   3706    # A longer-term fix would be to have automake use am__CC in this case,
   3707    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   3708    CC="$am_aux_dir/compile $CC"
   3709 fi
   3710 ac_ext=c
   3711 ac_cpp='$CPP $CPPFLAGS'
   3712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3715 
   3716 
   3717 depcc="$CC"   am_compiler_list=
   3718 
   3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
   3720 $as_echo_n "checking dependency style of $depcc... " >&6; }
   3721 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
   3722   $as_echo_n "(cached) " >&6
   3723 else
   3724   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
   3725   # We make a subdir and do the tests there.  Otherwise we can end up
   3726   # making bogus files that we don't know about and never remove.  For
   3727   # instance it was reported that on HP-UX the gcc test will end up
   3728   # making a dummy file named 'D' -- because '-MD' means "put the output
   3729   # in D".
   3730   rm -rf conftest.dir
   3731   mkdir conftest.dir
   3732   # Copy depcomp to subdir because otherwise we won't find it if we're
   3733   # using a relative directory.
   3734   cp "$am_depcomp" conftest.dir
   3735   cd conftest.dir
   3736   # We will build objects and dependencies in a subdirectory because
   3737   # it helps to detect inapplicable dependency modes.  For instance
   3738   # both Tru64's cc and ICC support -MD to output dependencies as a
   3739   # side effect of compilation, but ICC will put the dependencies in
   3740   # the current directory while Tru64 will put them in the object
   3741   # directory.
   3742   mkdir sub
   3743 
   3744   am_cv_CC_dependencies_compiler_type=none
   3745   if test "$am_compiler_list" = ""; then
   3746      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
   3747   fi
   3748   am__universal=false
   3749   case " $depcc " in #(
   3750      *\ -arch\ *\ -arch\ *) am__universal=true ;;
   3751      esac
   3752 
   3753   for depmode in $am_compiler_list; do
   3754     # Setup a source with many dependencies, because some compilers
   3755     # like to wrap large dependency lists on column 80 (with \), and
   3756     # we should not choose a depcomp mode which is confused by this.
   3757     #
   3758     # We need to recreate these files for each test, as the compiler may
   3759     # overwrite some of them when testing with obscure command lines.
   3760     # This happens at least with the AIX C compiler.
   3761     : > sub/conftest.c
   3762     for i in 1 2 3 4 5 6; do
   3763       echo '#include "conftst'$i'.h"' >> sub/conftest.c
   3764       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
   3765       # Solaris 10 /bin/sh.
   3766       echo '/* dummy */' > sub/conftst$i.h
   3767     done
   3768     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
   3769 
   3770     # We check with '-c' and '-o' for the sake of the "dashmstdout"
   3771     # mode.  It turns out that the SunPro C++ compiler does not properly
   3772     # handle '-M -o', and we need to detect this.  Also, some Intel
   3773     # versions had trouble with output in subdirs.
   3774     am__obj=sub/conftest.${OBJEXT-o}
   3775     am__minus_obj="-o $am__obj"
   3776     case $depmode in
   3777     gcc)
   3778       # This depmode causes a compiler race in universal mode.
   3779       test "$am__universal" = false || continue
   3780       ;;
   3781     nosideeffect)
   3782       # After this tag, mechanisms are not by side-effect, so they'll
   3783       # only be used when explicitly requested.
   3784       if test "x$enable_dependency_tracking" = xyes; then
   3785 	continue
   3786       else
   3787 	break
   3788       fi
   3789       ;;
   3790     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
   3791       # This compiler won't grok '-c -o', but also, the minuso test has
   3792       # not run yet.  These depmodes are late enough in the game, and
   3793       # so weak that their functioning should not be impacted.
   3794       am__obj=conftest.${OBJEXT-o}
   3795       am__minus_obj=
   3796       ;;
   3797     none) break ;;
   3798     esac
   3799     if depmode=$depmode \
   3800        source=sub/conftest.c object=$am__obj \
   3801        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
   3802        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
   3803          >/dev/null 2>conftest.err &&
   3804        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
   3805        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
   3806        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
   3807        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
   3808       # icc doesn't choke on unknown options, it will just issue warnings
   3809       # or remarks (even with -Werror).  So we grep stderr for any message
   3810       # that says an option was ignored or not supported.
   3811       # When given -MP, icc 7.0 and 7.1 complain thusly:
   3812       #   icc: Command line warning: ignoring option '-M'; no argument required
   3813       # The diagnosis changed in icc 8.0:
   3814       #   icc: Command line remark: option '-MP' not supported
   3815       if (grep 'ignoring option' conftest.err ||
   3816           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
   3817         am_cv_CC_dependencies_compiler_type=$depmode
   3818         break
   3819       fi
   3820     fi
   3821   done
   3822 
   3823   cd ..
   3824   rm -rf conftest.dir
   3825 else
   3826   am_cv_CC_dependencies_compiler_type=none
   3827 fi
   3828 
   3829 fi
   3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
   3831 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
   3832 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
   3833 
   3834  if
   3835   test "x$enable_dependency_tracking" != xno \
   3836   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
   3837   am__fastdepCC_TRUE=
   3838   am__fastdepCC_FALSE='#'
   3839 else
   3840   am__fastdepCC_TRUE='#'
   3841   am__fastdepCC_FALSE=
   3842 fi
   3843 
   3844 
   3845    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
   3846 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
   3847 if ${ac_cv_prog_cc_c99+:} false; then :
   3848   $as_echo_n "(cached) " >&6
   3849 else
   3850   ac_cv_prog_cc_c99=no
   3851 ac_save_CC=$CC
   3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3853 /* end confdefs.h.  */
   3854 #include <stdarg.h>
   3855 #include <stdbool.h>
   3856 #include <stdlib.h>
   3857 #include <wchar.h>
   3858 #include <stdio.h>
   3859 
   3860 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
   3861 #define debug(...) fprintf (stderr, __VA_ARGS__)
   3862 #define showlist(...) puts (#__VA_ARGS__)
   3863 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
   3864 static void
   3865 test_varargs_macros (void)
   3866 {
   3867   int x = 1234;
   3868   int y = 5678;
   3869   debug ("Flag");
   3870   debug ("X = %d\n", x);
   3871   showlist (The first, second, and third items.);
   3872   report (x>y, "x is %d but y is %d", x, y);
   3873 }
   3874 
   3875 // Check long long types.
   3876 #define BIG64 18446744073709551615ull
   3877 #define BIG32 4294967295ul
   3878 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
   3879 #if !BIG_OK
   3880   your preprocessor is broken;
   3881 #endif
   3882 #if BIG_OK
   3883 #else
   3884   your preprocessor is broken;
   3885 #endif
   3886 static long long int bignum = -9223372036854775807LL;
   3887 static unsigned long long int ubignum = BIG64;
   3888 
   3889 struct incomplete_array
   3890 {
   3891   int datasize;
   3892   double data[];
   3893 };
   3894 
   3895 struct named_init {
   3896   int number;
   3897   const wchar_t *name;
   3898   double average;
   3899 };
   3900 
   3901 typedef const char *ccp;
   3902 
   3903 static inline int
   3904 test_restrict (ccp restrict text)
   3905 {
   3906   // See if C++-style comments work.
   3907   // Iterate through items via the restricted pointer.
   3908   // Also check for declarations in for loops.
   3909   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
   3910     continue;
   3911   return 0;
   3912 }
   3913 
   3914 // Check varargs and va_copy.
   3915 static void
   3916 test_varargs (const char *format, ...)
   3917 {
   3918   va_list args;
   3919   va_start (args, format);
   3920   va_list args_copy;
   3921   va_copy (args_copy, args);
   3922 
   3923   const char *str;
   3924   int number;
   3925   float fnumber;
   3926 
   3927   while (*format)
   3928     {
   3929       switch (*format++)
   3930 	{
   3931 	case 's': // string
   3932 	  str = va_arg (args_copy, const char *);
   3933 	  break;
   3934 	case 'd': // int
   3935 	  number = va_arg (args_copy, int);
   3936 	  break;
   3937 	case 'f': // float
   3938 	  fnumber = va_arg (args_copy, double);
   3939 	  break;
   3940 	default:
   3941 	  break;
   3942 	}
   3943     }
   3944   va_end (args_copy);
   3945   va_end (args);
   3946 }
   3947 
   3948 int
   3949 main ()
   3950 {
   3951 
   3952   // Check bool.
   3953   _Bool success = false;
   3954 
   3955   // Check restrict.
   3956   if (test_restrict ("String literal") == 0)
   3957     success = true;
   3958   char *restrict newvar = "Another string";
   3959 
   3960   // Check varargs.
   3961   test_varargs ("s, d' f .", "string", 65, 34.234);
   3962   test_varargs_macros ();
   3963 
   3964   // Check flexible array members.
   3965   struct incomplete_array *ia =
   3966     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
   3967   ia->datasize = 10;
   3968   for (int i = 0; i < ia->datasize; ++i)
   3969     ia->data[i] = i * 1.234;
   3970 
   3971   // Check named initializers.
   3972   struct named_init ni = {
   3973     .number = 34,
   3974     .name = L"Test wide string",
   3975     .average = 543.34343,
   3976   };
   3977 
   3978   ni.number = 58;
   3979 
   3980   int dynamic_array[ni.number];
   3981   dynamic_array[ni.number - 1] = 543;
   3982 
   3983   // work around unused variable warnings
   3984   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
   3985 	  || dynamic_array[ni.number - 1] != 543);
   3986 
   3987   ;
   3988   return 0;
   3989 }
   3990 _ACEOF
   3991 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
   3992 do
   3993   CC="$ac_save_CC $ac_arg"
   3994   if ac_fn_c_try_compile "$LINENO"; then :
   3995   ac_cv_prog_cc_c99=$ac_arg
   3996 fi
   3997 rm -f core conftest.err conftest.$ac_objext
   3998   test "x$ac_cv_prog_cc_c99" != "xno" && break
   3999 done
   4000 rm -f conftest.$ac_ext
   4001 CC=$ac_save_CC
   4002 
   4003 fi
   4004 # AC_CACHE_VAL
   4005 case "x$ac_cv_prog_cc_c99" in
   4006   x)
   4007     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   4008 $as_echo "none needed" >&6; } ;;
   4009   xno)
   4010     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   4011 $as_echo "unsupported" >&6; } ;;
   4012   *)
   4013     CC="$CC $ac_cv_prog_cc_c99"
   4014     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
   4015 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
   4016 esac
   4017 if test "x$ac_cv_prog_cc_c99" != xno; then :
   4018 
   4019 fi
   4020 
   4021 
   4022 
   4023 ac_ext=c
   4024 ac_cpp='$CPP $CPPFLAGS'
   4025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   4029 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   4030 # On Suns, sometimes $CPP names a directory.
   4031 if test -n "$CPP" && test -d "$CPP"; then
   4032   CPP=
   4033 fi
   4034 if test -z "$CPP"; then
   4035   if ${ac_cv_prog_CPP+:} false; then :
   4036   $as_echo_n "(cached) " >&6
   4037 else
   4038       # Double quotes because CPP needs to be expanded
   4039     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   4040     do
   4041       ac_preproc_ok=false
   4042 for ac_c_preproc_warn_flag in '' yes
   4043 do
   4044   # Use a header file that comes with gcc, so configuring glibc
   4045   # with a fresh cross-compiler works.
   4046   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4047   # <limits.h> exists even on freestanding compilers.
   4048   # On the NeXT, cc -E runs the code through the compiler's parser,
   4049   # not just through cpp. "Syntax error" is here to catch this case.
   4050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4051 /* end confdefs.h.  */
   4052 #ifdef __STDC__
   4053 # include <limits.h>
   4054 #else
   4055 # include <assert.h>
   4056 #endif
   4057 		     Syntax error
   4058 _ACEOF
   4059 if ac_fn_c_try_cpp "$LINENO"; then :
   4060 
   4061 else
   4062   # Broken: fails on valid input.
   4063 continue
   4064 fi
   4065 rm -f conftest.err conftest.i conftest.$ac_ext
   4066 
   4067   # OK, works on sane cases.  Now check whether nonexistent headers
   4068   # can be detected and how.
   4069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4070 /* end confdefs.h.  */
   4071 #include <ac_nonexistent.h>
   4072 _ACEOF
   4073 if ac_fn_c_try_cpp "$LINENO"; then :
   4074   # Broken: success on invalid input.
   4075 continue
   4076 else
   4077   # Passes both tests.
   4078 ac_preproc_ok=:
   4079 break
   4080 fi
   4081 rm -f conftest.err conftest.i conftest.$ac_ext
   4082 
   4083 done
   4084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4085 rm -f conftest.i conftest.err conftest.$ac_ext
   4086 if $ac_preproc_ok; then :
   4087   break
   4088 fi
   4089 
   4090     done
   4091     ac_cv_prog_CPP=$CPP
   4092 
   4093 fi
   4094   CPP=$ac_cv_prog_CPP
   4095 else
   4096   ac_cv_prog_CPP=$CPP
   4097 fi
   4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   4099 $as_echo "$CPP" >&6; }
   4100 ac_preproc_ok=false
   4101 for ac_c_preproc_warn_flag in '' yes
   4102 do
   4103   # Use a header file that comes with gcc, so configuring glibc
   4104   # with a fresh cross-compiler works.
   4105   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4106   # <limits.h> exists even on freestanding compilers.
   4107   # On the NeXT, cc -E runs the code through the compiler's parser,
   4108   # not just through cpp. "Syntax error" is here to catch this case.
   4109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4110 /* end confdefs.h.  */
   4111 #ifdef __STDC__
   4112 # include <limits.h>
   4113 #else
   4114 # include <assert.h>
   4115 #endif
   4116 		     Syntax error
   4117 _ACEOF
   4118 if ac_fn_c_try_cpp "$LINENO"; then :
   4119 
   4120 else
   4121   # Broken: fails on valid input.
   4122 continue
   4123 fi
   4124 rm -f conftest.err conftest.i conftest.$ac_ext
   4125 
   4126   # OK, works on sane cases.  Now check whether nonexistent headers
   4127   # can be detected and how.
   4128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4129 /* end confdefs.h.  */
   4130 #include <ac_nonexistent.h>
   4131 _ACEOF
   4132 if ac_fn_c_try_cpp "$LINENO"; then :
   4133   # Broken: success on invalid input.
   4134 continue
   4135 else
   4136   # Passes both tests.
   4137 ac_preproc_ok=:
   4138 break
   4139 fi
   4140 rm -f conftest.err conftest.i conftest.$ac_ext
   4141 
   4142 done
   4143 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4144 rm -f conftest.i conftest.err conftest.$ac_ext
   4145 if $ac_preproc_ok; then :
   4146 
   4147 else
   4148   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4150 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   4151 See \`config.log' for more details" "$LINENO" 5; }
   4152 fi
   4153 
   4154 ac_ext=c
   4155 ac_cpp='$CPP $CPPFLAGS'
   4156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4159 
   4160 
   4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   4162 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   4163 if ${ac_cv_path_GREP+:} false; then :
   4164   $as_echo_n "(cached) " >&6
   4165 else
   4166   if test -z "$GREP"; then
   4167   ac_path_GREP_found=false
   4168   # Loop through the user's path and test for each of PROGNAME-LIST
   4169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4170 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4171 do
   4172   IFS=$as_save_IFS
   4173   test -z "$as_dir" && as_dir=.
   4174     for ac_prog in grep ggrep; do
   4175     for ac_exec_ext in '' $ac_executable_extensions; do
   4176       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   4177       as_fn_executable_p "$ac_path_GREP" || continue
   4178 # Check for GNU ac_path_GREP and select it if it is found.
   4179   # Check for GNU $ac_path_GREP
   4180 case `"$ac_path_GREP" --version 2>&1` in
   4181 *GNU*)
   4182   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   4183 *)
   4184   ac_count=0
   4185   $as_echo_n 0123456789 >"conftest.in"
   4186   while :
   4187   do
   4188     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4189     mv "conftest.tmp" "conftest.in"
   4190     cp "conftest.in" "conftest.nl"
   4191     $as_echo 'GREP' >> "conftest.nl"
   4192     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4193     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4194     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4195     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   4196       # Best one so far, save it but keep looking for a better one
   4197       ac_cv_path_GREP="$ac_path_GREP"
   4198       ac_path_GREP_max=$ac_count
   4199     fi
   4200     # 10*(2^10) chars as input seems more than enough
   4201     test $ac_count -gt 10 && break
   4202   done
   4203   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4204 esac
   4205 
   4206       $ac_path_GREP_found && break 3
   4207     done
   4208   done
   4209   done
   4210 IFS=$as_save_IFS
   4211   if test -z "$ac_cv_path_GREP"; then
   4212     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4213   fi
   4214 else
   4215   ac_cv_path_GREP=$GREP
   4216 fi
   4217 
   4218 fi
   4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   4220 $as_echo "$ac_cv_path_GREP" >&6; }
   4221  GREP="$ac_cv_path_GREP"
   4222 
   4223 
   4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   4225 $as_echo_n "checking for egrep... " >&6; }
   4226 if ${ac_cv_path_EGREP+:} false; then :
   4227   $as_echo_n "(cached) " >&6
   4228 else
   4229   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   4230    then ac_cv_path_EGREP="$GREP -E"
   4231    else
   4232      if test -z "$EGREP"; then
   4233   ac_path_EGREP_found=false
   4234   # Loop through the user's path and test for each of PROGNAME-LIST
   4235   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4236 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4237 do
   4238   IFS=$as_save_IFS
   4239   test -z "$as_dir" && as_dir=.
   4240     for ac_prog in egrep; do
   4241     for ac_exec_ext in '' $ac_executable_extensions; do
   4242       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   4243       as_fn_executable_p "$ac_path_EGREP" || continue
   4244 # Check for GNU ac_path_EGREP and select it if it is found.
   4245   # Check for GNU $ac_path_EGREP
   4246 case `"$ac_path_EGREP" --version 2>&1` in
   4247 *GNU*)
   4248   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   4249 *)
   4250   ac_count=0
   4251   $as_echo_n 0123456789 >"conftest.in"
   4252   while :
   4253   do
   4254     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4255     mv "conftest.tmp" "conftest.in"
   4256     cp "conftest.in" "conftest.nl"
   4257     $as_echo 'EGREP' >> "conftest.nl"
   4258     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4259     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4260     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4261     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   4262       # Best one so far, save it but keep looking for a better one
   4263       ac_cv_path_EGREP="$ac_path_EGREP"
   4264       ac_path_EGREP_max=$ac_count
   4265     fi
   4266     # 10*(2^10) chars as input seems more than enough
   4267     test $ac_count -gt 10 && break
   4268   done
   4269   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4270 esac
   4271 
   4272       $ac_path_EGREP_found && break 3
   4273     done
   4274   done
   4275   done
   4276 IFS=$as_save_IFS
   4277   if test -z "$ac_cv_path_EGREP"; then
   4278     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4279   fi
   4280 else
   4281   ac_cv_path_EGREP=$EGREP
   4282 fi
   4283 
   4284    fi
   4285 fi
   4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   4287 $as_echo "$ac_cv_path_EGREP" >&6; }
   4288  EGREP="$ac_cv_path_EGREP"
   4289 
   4290 
   4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   4292 $as_echo_n "checking for ANSI C header files... " >&6; }
   4293 if ${ac_cv_header_stdc+:} false; then :
   4294   $as_echo_n "(cached) " >&6
   4295 else
   4296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4297 /* end confdefs.h.  */
   4298 #include <stdlib.h>
   4299 #include <stdarg.h>
   4300 #include <string.h>
   4301 #include <float.h>
   4302 
   4303 int
   4304 main ()
   4305 {
   4306 
   4307   ;
   4308   return 0;
   4309 }
   4310 _ACEOF
   4311 if ac_fn_c_try_compile "$LINENO"; then :
   4312   ac_cv_header_stdc=yes
   4313 else
   4314   ac_cv_header_stdc=no
   4315 fi
   4316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4317 
   4318 if test $ac_cv_header_stdc = yes; then
   4319   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   4320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4321 /* end confdefs.h.  */
   4322 #include <string.h>
   4323 
   4324 _ACEOF
   4325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4326   $EGREP "memchr" >/dev/null 2>&1; then :
   4327 
   4328 else
   4329   ac_cv_header_stdc=no
   4330 fi
   4331 rm -f conftest*
   4332 
   4333 fi
   4334 
   4335 if test $ac_cv_header_stdc = yes; then
   4336   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   4337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4338 /* end confdefs.h.  */
   4339 #include <stdlib.h>
   4340 
   4341 _ACEOF
   4342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4343   $EGREP "free" >/dev/null 2>&1; then :
   4344 
   4345 else
   4346   ac_cv_header_stdc=no
   4347 fi
   4348 rm -f conftest*
   4349 
   4350 fi
   4351 
   4352 if test $ac_cv_header_stdc = yes; then
   4353   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   4354   if test "$cross_compiling" = yes; then :
   4355   :
   4356 else
   4357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4358 /* end confdefs.h.  */
   4359 #include <ctype.h>
   4360 #include <stdlib.h>
   4361 #if ((' ' & 0x0FF) == 0x020)
   4362 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   4363 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   4364 #else
   4365 # define ISLOWER(c) \
   4366 		   (('a' <= (c) && (c) <= 'i') \
   4367 		     || ('j' <= (c) && (c) <= 'r') \
   4368 		     || ('s' <= (c) && (c) <= 'z'))
   4369 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   4370 #endif
   4371 
   4372 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   4373 int
   4374 main ()
   4375 {
   4376   int i;
   4377   for (i = 0; i < 256; i++)
   4378     if (XOR (islower (i), ISLOWER (i))
   4379 	|| toupper (i) != TOUPPER (i))
   4380       return 2;
   4381   return 0;
   4382 }
   4383 _ACEOF
   4384 if ac_fn_c_try_run "$LINENO"; then :
   4385 
   4386 else
   4387   ac_cv_header_stdc=no
   4388 fi
   4389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   4390   conftest.$ac_objext conftest.beam conftest.$ac_ext
   4391 fi
   4392 
   4393 fi
   4394 fi
   4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   4396 $as_echo "$ac_cv_header_stdc" >&6; }
   4397 if test $ac_cv_header_stdc = yes; then
   4398 
   4399 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   4400 
   4401 fi
   4402 
   4403 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   4404 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   4405 		  inttypes.h stdint.h unistd.h
   4406 do :
   4407   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4408 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   4409 "
   4410 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   4411   cat >>confdefs.h <<_ACEOF
   4412 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4413 _ACEOF
   4414 
   4415 fi
   4416 
   4417 done
   4418 
   4419 
   4420 
   4421 
   4422 
   4423 
   4424 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
   4425 if test "x$ac_cv_have_decl___clang__" = xyes; then :
   4426   CLANGCC="yes"
   4427 else
   4428   CLANGCC="no"
   4429 fi
   4430 
   4431 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
   4432 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
   4433   INTELCC="yes"
   4434 else
   4435   INTELCC="no"
   4436 fi
   4437 
   4438 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
   4439 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
   4440   SUNCC="yes"
   4441 else
   4442   SUNCC="no"
   4443 fi
   4444 
   4445 
   4446 
   4447 
   4448 
   4449 
   4450 
   4451 
   4452 
   4453 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
   4454 	if test -n "$ac_tool_prefix"; then
   4455   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
   4456 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
   4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4458 $as_echo_n "checking for $ac_word... " >&6; }
   4459 if ${ac_cv_path_PKG_CONFIG+:} false; then :
   4460   $as_echo_n "(cached) " >&6
   4461 else
   4462   case $PKG_CONFIG in
   4463   [\\/]* | ?:[\\/]*)
   4464   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
   4465   ;;
   4466   *)
   4467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4468 for as_dir in $PATH
   4469 do
   4470   IFS=$as_save_IFS
   4471   test -z "$as_dir" && as_dir=.
   4472     for ac_exec_ext in '' $ac_executable_extensions; do
   4473   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4474     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   4475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4476     break 2
   4477   fi
   4478 done
   4479   done
   4480 IFS=$as_save_IFS
   4481 
   4482   ;;
   4483 esac
   4484 fi
   4485 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
   4486 if test -n "$PKG_CONFIG"; then
   4487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
   4488 $as_echo "$PKG_CONFIG" >&6; }
   4489 else
   4490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4491 $as_echo "no" >&6; }
   4492 fi
   4493 
   4494 
   4495 fi
   4496 if test -z "$ac_cv_path_PKG_CONFIG"; then
   4497   ac_pt_PKG_CONFIG=$PKG_CONFIG
   4498   # Extract the first word of "pkg-config", so it can be a program name with args.
   4499 set dummy pkg-config; ac_word=$2
   4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4501 $as_echo_n "checking for $ac_word... " >&6; }
   4502 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
   4503   $as_echo_n "(cached) " >&6
   4504 else
   4505   case $ac_pt_PKG_CONFIG in
   4506   [\\/]* | ?:[\\/]*)
   4507   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
   4508   ;;
   4509   *)
   4510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4511 for as_dir in $PATH
   4512 do
   4513   IFS=$as_save_IFS
   4514   test -z "$as_dir" && as_dir=.
   4515     for ac_exec_ext in '' $ac_executable_extensions; do
   4516   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4517     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   4518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4519     break 2
   4520   fi
   4521 done
   4522   done
   4523 IFS=$as_save_IFS
   4524 
   4525   ;;
   4526 esac
   4527 fi
   4528 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
   4529 if test -n "$ac_pt_PKG_CONFIG"; then
   4530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
   4531 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
   4532 else
   4533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4534 $as_echo "no" >&6; }
   4535 fi
   4536 
   4537   if test "x$ac_pt_PKG_CONFIG" = x; then
   4538     PKG_CONFIG=""
   4539   else
   4540     case $cross_compiling:$ac_tool_warned in
   4541 yes:)
   4542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4544 ac_tool_warned=yes ;;
   4545 esac
   4546     PKG_CONFIG=$ac_pt_PKG_CONFIG
   4547   fi
   4548 else
   4549   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
   4550 fi
   4551 
   4552 fi
   4553 if test -n "$PKG_CONFIG"; then
   4554 	_pkg_min_version=0.9.0
   4555 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
   4556 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
   4557 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
   4558 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4559 $as_echo "yes" >&6; }
   4560 	else
   4561 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4562 $as_echo "no" >&6; }
   4563 		PKG_CONFIG=""
   4564 	fi
   4565 fi
   4566 # Make sure we can run config.sub.
   4567 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   4568   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   4569 
   4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   4571 $as_echo_n "checking build system type... " >&6; }
   4572 if ${ac_cv_build+:} false; then :
   4573   $as_echo_n "(cached) " >&6
   4574 else
   4575   ac_build_alias=$build_alias
   4576 test "x$ac_build_alias" = x &&
   4577   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   4578 test "x$ac_build_alias" = x &&
   4579   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   4580 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   4581   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   4582 
   4583 fi
   4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   4585 $as_echo "$ac_cv_build" >&6; }
   4586 case $ac_cv_build in
   4587 *-*-*) ;;
   4588 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   4589 esac
   4590 build=$ac_cv_build
   4591 ac_save_IFS=$IFS; IFS='-'
   4592 set x $ac_cv_build
   4593 shift
   4594 build_cpu=$1
   4595 build_vendor=$2
   4596 shift; shift
   4597 # Remember, the first character of IFS is used to create $*,
   4598 # except with old shells:
   4599 build_os=$*
   4600 IFS=$ac_save_IFS
   4601 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   4602 
   4603 
   4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   4605 $as_echo_n "checking host system type... " >&6; }
   4606 if ${ac_cv_host+:} false; then :
   4607   $as_echo_n "(cached) " >&6
   4608 else
   4609   if test "x$host_alias" = x; then
   4610   ac_cv_host=$ac_cv_build
   4611 else
   4612   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   4613     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   4614 fi
   4615 
   4616 fi
   4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   4618 $as_echo "$ac_cv_host" >&6; }
   4619 case $ac_cv_host in
   4620 *-*-*) ;;
   4621 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   4622 esac
   4623 host=$ac_cv_host
   4624 ac_save_IFS=$IFS; IFS='-'
   4625 set x $ac_cv_host
   4626 shift
   4627 host_cpu=$1
   4628 host_vendor=$2
   4629 shift; shift
   4630 # Remember, the first character of IFS is used to create $*,
   4631 # except with old shells:
   4632 host_os=$*
   4633 IFS=$ac_save_IFS
   4634 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   4635 
   4636 
   4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
   4638 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
   4639 if ${ac_cv_path_SED+:} false; then :
   4640   $as_echo_n "(cached) " >&6
   4641 else
   4642             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
   4643      for ac_i in 1 2 3 4 5 6 7; do
   4644        ac_script="$ac_script$as_nl$ac_script"
   4645      done
   4646      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
   4647      { ac_script=; unset ac_script;}
   4648      if test -z "$SED"; then
   4649   ac_path_SED_found=false
   4650   # Loop through the user's path and test for each of PROGNAME-LIST
   4651   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4652 for as_dir in $PATH
   4653 do
   4654   IFS=$as_save_IFS
   4655   test -z "$as_dir" && as_dir=.
   4656     for ac_prog in sed gsed; do
   4657     for ac_exec_ext in '' $ac_executable_extensions; do
   4658       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
   4659       as_fn_executable_p "$ac_path_SED" || continue
   4660 # Check for GNU ac_path_SED and select it if it is found.
   4661   # Check for GNU $ac_path_SED
   4662 case `"$ac_path_SED" --version 2>&1` in
   4663 *GNU*)
   4664   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
   4665 *)
   4666   ac_count=0
   4667   $as_echo_n 0123456789 >"conftest.in"
   4668   while :
   4669   do
   4670     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4671     mv "conftest.tmp" "conftest.in"
   4672     cp "conftest.in" "conftest.nl"
   4673     $as_echo '' >> "conftest.nl"
   4674     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4675     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4676     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4677     if test $ac_count -gt ${ac_path_SED_max-0}; then
   4678       # Best one so far, save it but keep looking for a better one
   4679       ac_cv_path_SED="$ac_path_SED"
   4680       ac_path_SED_max=$ac_count
   4681     fi
   4682     # 10*(2^10) chars as input seems more than enough
   4683     test $ac_count -gt 10 && break
   4684   done
   4685   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4686 esac
   4687 
   4688       $ac_path_SED_found && break 3
   4689     done
   4690   done
   4691   done
   4692 IFS=$as_save_IFS
   4693   if test -z "$ac_cv_path_SED"; then
   4694     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
   4695   fi
   4696 else
   4697   ac_cv_path_SED=$SED
   4698 fi
   4699 
   4700 fi
   4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
   4702 $as_echo "$ac_cv_path_SED" >&6; }
   4703  SED="$ac_cv_path_SED"
   4704   rm -f conftest.sed
   4705 
   4706 
   4707 
   4708 
   4709 
   4710 
   4711 # Check whether --enable-selective-werror was given.
   4712 if test "${enable_selective_werror+set}" = set; then :
   4713   enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
   4714 else
   4715   SELECTIVE_WERROR=yes
   4716 fi
   4717 
   4718 
   4719 
   4720 
   4721 
   4722 # -v is too short to test reliably with XORG_TESTSET_CFLAG
   4723 if test "x$SUNCC" = "xyes"; then
   4724     BASE_CFLAGS="-v"
   4725 else
   4726     BASE_CFLAGS=""
   4727 fi
   4728 
   4729 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
   4730 
   4731 
   4732 
   4733 
   4734 
   4735 
   4736 
   4737 
   4738 
   4739 
   4740 
   4741 
   4742 
   4743 xorg_testset_save_CFLAGS="$CFLAGS"
   4744 
   4745 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   4746 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   4747 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   4748 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   4749 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   4750   $as_echo_n "(cached) " >&6
   4751 else
   4752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4753 /* end confdefs.h.  */
   4754 int i;
   4755 _ACEOF
   4756 if ac_fn_c_try_compile "$LINENO"; then :
   4757   xorg_cv_cc_flag_unknown_warning_option=yes
   4758 else
   4759   xorg_cv_cc_flag_unknown_warning_option=no
   4760 fi
   4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4762 fi
   4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   4764 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   4765 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   4766 	CFLAGS="$xorg_testset_save_CFLAGS"
   4767 fi
   4768 
   4769 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   4770 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   4771 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   4772 	fi
   4773 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   4774 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   4775 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   4776 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   4777   $as_echo_n "(cached) " >&6
   4778 else
   4779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4780 /* end confdefs.h.  */
   4781 int i;
   4782 _ACEOF
   4783 if ac_fn_c_try_compile "$LINENO"; then :
   4784   xorg_cv_cc_flag_unused_command_line_argument=yes
   4785 else
   4786   xorg_cv_cc_flag_unused_command_line_argument=no
   4787 fi
   4788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4789 fi
   4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   4791 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   4792 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   4793 	CFLAGS="$xorg_testset_save_CFLAGS"
   4794 fi
   4795 
   4796 found="no"
   4797 
   4798 	if test $found = "no" ; then
   4799 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   4800 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   4801 		fi
   4802 
   4803 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   4804 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   4805 		fi
   4806 
   4807 		CFLAGS="$CFLAGS -Wall"
   4808 
   4809 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
   4810 $as_echo_n "checking if $CC supports -Wall... " >&6; }
   4811 		cacheid=xorg_cv_cc_flag__Wall
   4812 		if eval \${$cacheid+:} false; then :
   4813   $as_echo_n "(cached) " >&6
   4814 else
   4815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4816 /* end confdefs.h.  */
   4817 int i;
   4818 int
   4819 main ()
   4820 {
   4821 
   4822   ;
   4823   return 0;
   4824 }
   4825 _ACEOF
   4826 if ac_fn_c_try_link "$LINENO"; then :
   4827   eval $cacheid=yes
   4828 else
   4829   eval $cacheid=no
   4830 fi
   4831 rm -f core conftest.err conftest.$ac_objext \
   4832     conftest$ac_exeext conftest.$ac_ext
   4833 fi
   4834 
   4835 
   4836 		CFLAGS="$xorg_testset_save_CFLAGS"
   4837 
   4838 		eval supported=\$$cacheid
   4839 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   4840 $as_echo "$supported" >&6; }
   4841 		if test "$supported" = "yes" ; then
   4842 			BASE_CFLAGS="$BASE_CFLAGS -Wall"
   4843 			found="yes"
   4844 		fi
   4845 	fi
   4846 
   4847 
   4848 
   4849 
   4850 
   4851 
   4852 
   4853 
   4854 
   4855 
   4856 
   4857 
   4858 
   4859 
   4860 
   4861 xorg_testset_save_CFLAGS="$CFLAGS"
   4862 
   4863 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   4864 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   4865 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   4866 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   4867 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   4868   $as_echo_n "(cached) " >&6
   4869 else
   4870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4871 /* end confdefs.h.  */
   4872 int i;
   4873 _ACEOF
   4874 if ac_fn_c_try_compile "$LINENO"; then :
   4875   xorg_cv_cc_flag_unknown_warning_option=yes
   4876 else
   4877   xorg_cv_cc_flag_unknown_warning_option=no
   4878 fi
   4879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4880 fi
   4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   4882 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   4883 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   4884 	CFLAGS="$xorg_testset_save_CFLAGS"
   4885 fi
   4886 
   4887 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   4888 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   4889 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   4890 	fi
   4891 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   4892 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   4893 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   4894 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   4895   $as_echo_n "(cached) " >&6
   4896 else
   4897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4898 /* end confdefs.h.  */
   4899 int i;
   4900 _ACEOF
   4901 if ac_fn_c_try_compile "$LINENO"; then :
   4902   xorg_cv_cc_flag_unused_command_line_argument=yes
   4903 else
   4904   xorg_cv_cc_flag_unused_command_line_argument=no
   4905 fi
   4906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4907 fi
   4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   4909 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   4910 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   4911 	CFLAGS="$xorg_testset_save_CFLAGS"
   4912 fi
   4913 
   4914 found="no"
   4915 
   4916 	if test $found = "no" ; then
   4917 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   4918 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   4919 		fi
   4920 
   4921 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   4922 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   4923 		fi
   4924 
   4925 		CFLAGS="$CFLAGS -Wpointer-arith"
   4926 
   4927 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
   4928 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
   4929 		cacheid=xorg_cv_cc_flag__Wpointer_arith
   4930 		if eval \${$cacheid+:} false; then :
   4931   $as_echo_n "(cached) " >&6
   4932 else
   4933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4934 /* end confdefs.h.  */
   4935 int i;
   4936 int
   4937 main ()
   4938 {
   4939 
   4940   ;
   4941   return 0;
   4942 }
   4943 _ACEOF
   4944 if ac_fn_c_try_link "$LINENO"; then :
   4945   eval $cacheid=yes
   4946 else
   4947   eval $cacheid=no
   4948 fi
   4949 rm -f core conftest.err conftest.$ac_objext \
   4950     conftest$ac_exeext conftest.$ac_ext
   4951 fi
   4952 
   4953 
   4954 		CFLAGS="$xorg_testset_save_CFLAGS"
   4955 
   4956 		eval supported=\$$cacheid
   4957 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   4958 $as_echo "$supported" >&6; }
   4959 		if test "$supported" = "yes" ; then
   4960 			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
   4961 			found="yes"
   4962 		fi
   4963 	fi
   4964 
   4965 
   4966 
   4967 
   4968 
   4969 
   4970 
   4971 
   4972 
   4973 
   4974 
   4975 
   4976 
   4977 
   4978 
   4979 xorg_testset_save_CFLAGS="$CFLAGS"
   4980 
   4981 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   4982 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   4983 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   4984 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   4985 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   4986   $as_echo_n "(cached) " >&6
   4987 else
   4988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4989 /* end confdefs.h.  */
   4990 int i;
   4991 _ACEOF
   4992 if ac_fn_c_try_compile "$LINENO"; then :
   4993   xorg_cv_cc_flag_unknown_warning_option=yes
   4994 else
   4995   xorg_cv_cc_flag_unknown_warning_option=no
   4996 fi
   4997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4998 fi
   4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   5000 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   5001 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   5002 	CFLAGS="$xorg_testset_save_CFLAGS"
   5003 fi
   5004 
   5005 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   5006 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5007 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5008 	fi
   5009 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5010 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   5011 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   5012 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   5013   $as_echo_n "(cached) " >&6
   5014 else
   5015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5016 /* end confdefs.h.  */
   5017 int i;
   5018 _ACEOF
   5019 if ac_fn_c_try_compile "$LINENO"; then :
   5020   xorg_cv_cc_flag_unused_command_line_argument=yes
   5021 else
   5022   xorg_cv_cc_flag_unused_command_line_argument=no
   5023 fi
   5024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5025 fi
   5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   5027 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   5028 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   5029 	CFLAGS="$xorg_testset_save_CFLAGS"
   5030 fi
   5031 
   5032 found="no"
   5033 
   5034 	if test $found = "no" ; then
   5035 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5036 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5037 		fi
   5038 
   5039 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   5040 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5041 		fi
   5042 
   5043 		CFLAGS="$CFLAGS -Wmissing-declarations"
   5044 
   5045 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
   5046 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
   5047 		cacheid=xorg_cv_cc_flag__Wmissing_declarations
   5048 		if eval \${$cacheid+:} false; then :
   5049   $as_echo_n "(cached) " >&6
   5050 else
   5051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5052 /* end confdefs.h.  */
   5053 int i;
   5054 int
   5055 main ()
   5056 {
   5057 
   5058   ;
   5059   return 0;
   5060 }
   5061 _ACEOF
   5062 if ac_fn_c_try_link "$LINENO"; then :
   5063   eval $cacheid=yes
   5064 else
   5065   eval $cacheid=no
   5066 fi
   5067 rm -f core conftest.err conftest.$ac_objext \
   5068     conftest$ac_exeext conftest.$ac_ext
   5069 fi
   5070 
   5071 
   5072 		CFLAGS="$xorg_testset_save_CFLAGS"
   5073 
   5074 		eval supported=\$$cacheid
   5075 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   5076 $as_echo "$supported" >&6; }
   5077 		if test "$supported" = "yes" ; then
   5078 			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
   5079 			found="yes"
   5080 		fi
   5081 	fi
   5082 
   5083 
   5084 
   5085 
   5086 
   5087 
   5088 
   5089 
   5090 
   5091 
   5092 
   5093 
   5094 
   5095 
   5096 
   5097 xorg_testset_save_CFLAGS="$CFLAGS"
   5098 
   5099 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   5100 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5101 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   5102 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   5103 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   5104   $as_echo_n "(cached) " >&6
   5105 else
   5106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5107 /* end confdefs.h.  */
   5108 int i;
   5109 _ACEOF
   5110 if ac_fn_c_try_compile "$LINENO"; then :
   5111   xorg_cv_cc_flag_unknown_warning_option=yes
   5112 else
   5113   xorg_cv_cc_flag_unknown_warning_option=no
   5114 fi
   5115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5116 fi
   5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   5118 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   5119 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   5120 	CFLAGS="$xorg_testset_save_CFLAGS"
   5121 fi
   5122 
   5123 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   5124 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5125 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5126 	fi
   5127 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5128 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   5129 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   5130 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   5131   $as_echo_n "(cached) " >&6
   5132 else
   5133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5134 /* end confdefs.h.  */
   5135 int i;
   5136 _ACEOF
   5137 if ac_fn_c_try_compile "$LINENO"; then :
   5138   xorg_cv_cc_flag_unused_command_line_argument=yes
   5139 else
   5140   xorg_cv_cc_flag_unused_command_line_argument=no
   5141 fi
   5142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5143 fi
   5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   5145 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   5146 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   5147 	CFLAGS="$xorg_testset_save_CFLAGS"
   5148 fi
   5149 
   5150 found="no"
   5151 
   5152 	if test $found = "no" ; then
   5153 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5154 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5155 		fi
   5156 
   5157 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   5158 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5159 		fi
   5160 
   5161 		CFLAGS="$CFLAGS -Wformat=2"
   5162 
   5163 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
   5164 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
   5165 		cacheid=xorg_cv_cc_flag__Wformat_2
   5166 		if eval \${$cacheid+:} false; then :
   5167   $as_echo_n "(cached) " >&6
   5168 else
   5169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5170 /* end confdefs.h.  */
   5171 int i;
   5172 int
   5173 main ()
   5174 {
   5175 
   5176   ;
   5177   return 0;
   5178 }
   5179 _ACEOF
   5180 if ac_fn_c_try_link "$LINENO"; then :
   5181   eval $cacheid=yes
   5182 else
   5183   eval $cacheid=no
   5184 fi
   5185 rm -f core conftest.err conftest.$ac_objext \
   5186     conftest$ac_exeext conftest.$ac_ext
   5187 fi
   5188 
   5189 
   5190 		CFLAGS="$xorg_testset_save_CFLAGS"
   5191 
   5192 		eval supported=\$$cacheid
   5193 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   5194 $as_echo "$supported" >&6; }
   5195 		if test "$supported" = "yes" ; then
   5196 			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
   5197 			found="yes"
   5198 		fi
   5199 	fi
   5200 
   5201 	if test $found = "no" ; then
   5202 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5203 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5204 		fi
   5205 
   5206 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   5207 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5208 		fi
   5209 
   5210 		CFLAGS="$CFLAGS -Wformat"
   5211 
   5212 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
   5213 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
   5214 		cacheid=xorg_cv_cc_flag__Wformat
   5215 		if eval \${$cacheid+:} false; then :
   5216   $as_echo_n "(cached) " >&6
   5217 else
   5218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5219 /* end confdefs.h.  */
   5220 int i;
   5221 int
   5222 main ()
   5223 {
   5224 
   5225   ;
   5226   return 0;
   5227 }
   5228 _ACEOF
   5229 if ac_fn_c_try_link "$LINENO"; then :
   5230   eval $cacheid=yes
   5231 else
   5232   eval $cacheid=no
   5233 fi
   5234 rm -f core conftest.err conftest.$ac_objext \
   5235     conftest$ac_exeext conftest.$ac_ext
   5236 fi
   5237 
   5238 
   5239 		CFLAGS="$xorg_testset_save_CFLAGS"
   5240 
   5241 		eval supported=\$$cacheid
   5242 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   5243 $as_echo "$supported" >&6; }
   5244 		if test "$supported" = "yes" ; then
   5245 			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
   5246 			found="yes"
   5247 		fi
   5248 	fi
   5249 
   5250 
   5251 
   5252 
   5253 
   5254 
   5255 
   5256 
   5257 
   5258 
   5259 
   5260 
   5261 
   5262 
   5263 
   5264 
   5265 
   5266 xorg_testset_save_CFLAGS="$CFLAGS"
   5267 
   5268 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   5269 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5270 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   5271 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   5272 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   5273   $as_echo_n "(cached) " >&6
   5274 else
   5275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5276 /* end confdefs.h.  */
   5277 int i;
   5278 _ACEOF
   5279 if ac_fn_c_try_compile "$LINENO"; then :
   5280   xorg_cv_cc_flag_unknown_warning_option=yes
   5281 else
   5282   xorg_cv_cc_flag_unknown_warning_option=no
   5283 fi
   5284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5285 fi
   5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   5287 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   5288 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   5289 	CFLAGS="$xorg_testset_save_CFLAGS"
   5290 fi
   5291 
   5292 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   5293 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5294 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5295 	fi
   5296 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5297 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   5298 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   5299 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   5300   $as_echo_n "(cached) " >&6
   5301 else
   5302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5303 /* end confdefs.h.  */
   5304 int i;
   5305 _ACEOF
   5306 if ac_fn_c_try_compile "$LINENO"; then :
   5307   xorg_cv_cc_flag_unused_command_line_argument=yes
   5308 else
   5309   xorg_cv_cc_flag_unused_command_line_argument=no
   5310 fi
   5311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5312 fi
   5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   5314 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   5315 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   5316 	CFLAGS="$xorg_testset_save_CFLAGS"
   5317 fi
   5318 
   5319 found="no"
   5320 
   5321 	if test $found = "no" ; then
   5322 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5323 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5324 		fi
   5325 
   5326 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   5327 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5328 		fi
   5329 
   5330 		CFLAGS="$CFLAGS -Wstrict-prototypes"
   5331 
   5332 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
   5333 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
   5334 		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
   5335 		if eval \${$cacheid+:} false; then :
   5336   $as_echo_n "(cached) " >&6
   5337 else
   5338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5339 /* end confdefs.h.  */
   5340 int i;
   5341 int
   5342 main ()
   5343 {
   5344 
   5345   ;
   5346   return 0;
   5347 }
   5348 _ACEOF
   5349 if ac_fn_c_try_link "$LINENO"; then :
   5350   eval $cacheid=yes
   5351 else
   5352   eval $cacheid=no
   5353 fi
   5354 rm -f core conftest.err conftest.$ac_objext \
   5355     conftest$ac_exeext conftest.$ac_ext
   5356 fi
   5357 
   5358 
   5359 		CFLAGS="$xorg_testset_save_CFLAGS"
   5360 
   5361 		eval supported=\$$cacheid
   5362 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   5363 $as_echo "$supported" >&6; }
   5364 		if test "$supported" = "yes" ; then
   5365 			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
   5366 			found="yes"
   5367 		fi
   5368 	fi
   5369 
   5370 
   5371 
   5372 
   5373 
   5374 
   5375 
   5376 
   5377 
   5378 
   5379 
   5380 
   5381 
   5382 
   5383 
   5384 xorg_testset_save_CFLAGS="$CFLAGS"
   5385 
   5386 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   5387 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5388 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   5389 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   5390 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   5391   $as_echo_n "(cached) " >&6
   5392 else
   5393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5394 /* end confdefs.h.  */
   5395 int i;
   5396 _ACEOF
   5397 if ac_fn_c_try_compile "$LINENO"; then :
   5398   xorg_cv_cc_flag_unknown_warning_option=yes
   5399 else
   5400   xorg_cv_cc_flag_unknown_warning_option=no
   5401 fi
   5402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5403 fi
   5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   5405 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   5406 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   5407 	CFLAGS="$xorg_testset_save_CFLAGS"
   5408 fi
   5409 
   5410 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   5411 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5412 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5413 	fi
   5414 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5415 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   5416 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   5417 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   5418   $as_echo_n "(cached) " >&6
   5419 else
   5420   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5421 /* end confdefs.h.  */
   5422 int i;
   5423 _ACEOF
   5424 if ac_fn_c_try_compile "$LINENO"; then :
   5425   xorg_cv_cc_flag_unused_command_line_argument=yes
   5426 else
   5427   xorg_cv_cc_flag_unused_command_line_argument=no
   5428 fi
   5429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5430 fi
   5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   5432 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   5433 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   5434 	CFLAGS="$xorg_testset_save_CFLAGS"
   5435 fi
   5436 
   5437 found="no"
   5438 
   5439 	if test $found = "no" ; then
   5440 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5441 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5442 		fi
   5443 
   5444 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   5445 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5446 		fi
   5447 
   5448 		CFLAGS="$CFLAGS -Wmissing-prototypes"
   5449 
   5450 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
   5451 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
   5452 		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
   5453 		if eval \${$cacheid+:} false; then :
   5454   $as_echo_n "(cached) " >&6
   5455 else
   5456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5457 /* end confdefs.h.  */
   5458 int i;
   5459 int
   5460 main ()
   5461 {
   5462 
   5463   ;
   5464   return 0;
   5465 }
   5466 _ACEOF
   5467 if ac_fn_c_try_link "$LINENO"; then :
   5468   eval $cacheid=yes
   5469 else
   5470   eval $cacheid=no
   5471 fi
   5472 rm -f core conftest.err conftest.$ac_objext \
   5473     conftest$ac_exeext conftest.$ac_ext
   5474 fi
   5475 
   5476 
   5477 		CFLAGS="$xorg_testset_save_CFLAGS"
   5478 
   5479 		eval supported=\$$cacheid
   5480 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   5481 $as_echo "$supported" >&6; }
   5482 		if test "$supported" = "yes" ; then
   5483 			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
   5484 			found="yes"
   5485 		fi
   5486 	fi
   5487 
   5488 
   5489 
   5490 
   5491 
   5492 
   5493 
   5494 
   5495 
   5496 
   5497 
   5498 
   5499 
   5500 
   5501 
   5502 xorg_testset_save_CFLAGS="$CFLAGS"
   5503 
   5504 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   5505 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5506 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   5507 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   5508 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   5509   $as_echo_n "(cached) " >&6
   5510 else
   5511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5512 /* end confdefs.h.  */
   5513 int i;
   5514 _ACEOF
   5515 if ac_fn_c_try_compile "$LINENO"; then :
   5516   xorg_cv_cc_flag_unknown_warning_option=yes
   5517 else
   5518   xorg_cv_cc_flag_unknown_warning_option=no
   5519 fi
   5520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5521 fi
   5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   5523 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   5524 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   5525 	CFLAGS="$xorg_testset_save_CFLAGS"
   5526 fi
   5527 
   5528 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   5529 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5530 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5531 	fi
   5532 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5533 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   5534 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   5535 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   5536   $as_echo_n "(cached) " >&6
   5537 else
   5538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5539 /* end confdefs.h.  */
   5540 int i;
   5541 _ACEOF
   5542 if ac_fn_c_try_compile "$LINENO"; then :
   5543   xorg_cv_cc_flag_unused_command_line_argument=yes
   5544 else
   5545   xorg_cv_cc_flag_unused_command_line_argument=no
   5546 fi
   5547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5548 fi
   5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   5550 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   5551 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   5552 	CFLAGS="$xorg_testset_save_CFLAGS"
   5553 fi
   5554 
   5555 found="no"
   5556 
   5557 	if test $found = "no" ; then
   5558 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5559 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5560 		fi
   5561 
   5562 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   5563 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5564 		fi
   5565 
   5566 		CFLAGS="$CFLAGS -Wnested-externs"
   5567 
   5568 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
   5569 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
   5570 		cacheid=xorg_cv_cc_flag__Wnested_externs
   5571 		if eval \${$cacheid+:} false; then :
   5572   $as_echo_n "(cached) " >&6
   5573 else
   5574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5575 /* end confdefs.h.  */
   5576 int i;
   5577 int
   5578 main ()
   5579 {
   5580 
   5581   ;
   5582   return 0;
   5583 }
   5584 _ACEOF
   5585 if ac_fn_c_try_link "$LINENO"; then :
   5586   eval $cacheid=yes
   5587 else
   5588   eval $cacheid=no
   5589 fi
   5590 rm -f core conftest.err conftest.$ac_objext \
   5591     conftest$ac_exeext conftest.$ac_ext
   5592 fi
   5593 
   5594 
   5595 		CFLAGS="$xorg_testset_save_CFLAGS"
   5596 
   5597 		eval supported=\$$cacheid
   5598 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   5599 $as_echo "$supported" >&6; }
   5600 		if test "$supported" = "yes" ; then
   5601 			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
   5602 			found="yes"
   5603 		fi
   5604 	fi
   5605 
   5606 
   5607 
   5608 
   5609 
   5610 
   5611 
   5612 
   5613 
   5614 
   5615 
   5616 
   5617 
   5618 
   5619 
   5620 xorg_testset_save_CFLAGS="$CFLAGS"
   5621 
   5622 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   5623 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5624 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   5625 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   5626 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   5627   $as_echo_n "(cached) " >&6
   5628 else
   5629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5630 /* end confdefs.h.  */
   5631 int i;
   5632 _ACEOF
   5633 if ac_fn_c_try_compile "$LINENO"; then :
   5634   xorg_cv_cc_flag_unknown_warning_option=yes
   5635 else
   5636   xorg_cv_cc_flag_unknown_warning_option=no
   5637 fi
   5638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5639 fi
   5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   5641 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   5642 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   5643 	CFLAGS="$xorg_testset_save_CFLAGS"
   5644 fi
   5645 
   5646 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   5647 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5648 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5649 	fi
   5650 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5651 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   5652 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   5653 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   5654   $as_echo_n "(cached) " >&6
   5655 else
   5656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5657 /* end confdefs.h.  */
   5658 int i;
   5659 _ACEOF
   5660 if ac_fn_c_try_compile "$LINENO"; then :
   5661   xorg_cv_cc_flag_unused_command_line_argument=yes
   5662 else
   5663   xorg_cv_cc_flag_unused_command_line_argument=no
   5664 fi
   5665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5666 fi
   5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   5668 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   5669 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   5670 	CFLAGS="$xorg_testset_save_CFLAGS"
   5671 fi
   5672 
   5673 found="no"
   5674 
   5675 	if test $found = "no" ; then
   5676 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5677 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5678 		fi
   5679 
   5680 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   5681 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5682 		fi
   5683 
   5684 		CFLAGS="$CFLAGS -Wbad-function-cast"
   5685 
   5686 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
   5687 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
   5688 		cacheid=xorg_cv_cc_flag__Wbad_function_cast
   5689 		if eval \${$cacheid+:} false; then :
   5690   $as_echo_n "(cached) " >&6
   5691 else
   5692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5693 /* end confdefs.h.  */
   5694 int i;
   5695 int
   5696 main ()
   5697 {
   5698 
   5699   ;
   5700   return 0;
   5701 }
   5702 _ACEOF
   5703 if ac_fn_c_try_link "$LINENO"; then :
   5704   eval $cacheid=yes
   5705 else
   5706   eval $cacheid=no
   5707 fi
   5708 rm -f core conftest.err conftest.$ac_objext \
   5709     conftest$ac_exeext conftest.$ac_ext
   5710 fi
   5711 
   5712 
   5713 		CFLAGS="$xorg_testset_save_CFLAGS"
   5714 
   5715 		eval supported=\$$cacheid
   5716 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   5717 $as_echo "$supported" >&6; }
   5718 		if test "$supported" = "yes" ; then
   5719 			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
   5720 			found="yes"
   5721 		fi
   5722 	fi
   5723 
   5724 
   5725 
   5726 
   5727 
   5728 
   5729 
   5730 
   5731 
   5732 
   5733 
   5734 
   5735 
   5736 
   5737 
   5738 xorg_testset_save_CFLAGS="$CFLAGS"
   5739 
   5740 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   5741 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5742 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   5743 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   5744 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   5745   $as_echo_n "(cached) " >&6
   5746 else
   5747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5748 /* end confdefs.h.  */
   5749 int i;
   5750 _ACEOF
   5751 if ac_fn_c_try_compile "$LINENO"; then :
   5752   xorg_cv_cc_flag_unknown_warning_option=yes
   5753 else
   5754   xorg_cv_cc_flag_unknown_warning_option=no
   5755 fi
   5756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5757 fi
   5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   5759 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   5760 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   5761 	CFLAGS="$xorg_testset_save_CFLAGS"
   5762 fi
   5763 
   5764 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   5765 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5766 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5767 	fi
   5768 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5769 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   5770 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   5771 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   5772   $as_echo_n "(cached) " >&6
   5773 else
   5774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5775 /* end confdefs.h.  */
   5776 int i;
   5777 _ACEOF
   5778 if ac_fn_c_try_compile "$LINENO"; then :
   5779   xorg_cv_cc_flag_unused_command_line_argument=yes
   5780 else
   5781   xorg_cv_cc_flag_unused_command_line_argument=no
   5782 fi
   5783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5784 fi
   5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   5786 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   5787 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   5788 	CFLAGS="$xorg_testset_save_CFLAGS"
   5789 fi
   5790 
   5791 found="no"
   5792 
   5793 	if test $found = "no" ; then
   5794 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5795 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5796 		fi
   5797 
   5798 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   5799 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5800 		fi
   5801 
   5802 		CFLAGS="$CFLAGS -Wold-style-definition"
   5803 
   5804 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
   5805 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
   5806 		cacheid=xorg_cv_cc_flag__Wold_style_definition
   5807 		if eval \${$cacheid+:} false; then :
   5808   $as_echo_n "(cached) " >&6
   5809 else
   5810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5811 /* end confdefs.h.  */
   5812 int i;
   5813 int
   5814 main ()
   5815 {
   5816 
   5817   ;
   5818   return 0;
   5819 }
   5820 _ACEOF
   5821 if ac_fn_c_try_link "$LINENO"; then :
   5822   eval $cacheid=yes
   5823 else
   5824   eval $cacheid=no
   5825 fi
   5826 rm -f core conftest.err conftest.$ac_objext \
   5827     conftest$ac_exeext conftest.$ac_ext
   5828 fi
   5829 
   5830 
   5831 		CFLAGS="$xorg_testset_save_CFLAGS"
   5832 
   5833 		eval supported=\$$cacheid
   5834 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   5835 $as_echo "$supported" >&6; }
   5836 		if test "$supported" = "yes" ; then
   5837 			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
   5838 			found="yes"
   5839 		fi
   5840 	fi
   5841 
   5842 	if test $found = "no" ; then
   5843 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5844 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5845 		fi
   5846 
   5847 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   5848 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5849 		fi
   5850 
   5851 		CFLAGS="$CFLAGS -fd"
   5852 
   5853 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
   5854 $as_echo_n "checking if $CC supports -fd... " >&6; }
   5855 		cacheid=xorg_cv_cc_flag__fd
   5856 		if eval \${$cacheid+:} false; then :
   5857   $as_echo_n "(cached) " >&6
   5858 else
   5859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5860 /* end confdefs.h.  */
   5861 int i;
   5862 int
   5863 main ()
   5864 {
   5865 
   5866   ;
   5867   return 0;
   5868 }
   5869 _ACEOF
   5870 if ac_fn_c_try_link "$LINENO"; then :
   5871   eval $cacheid=yes
   5872 else
   5873   eval $cacheid=no
   5874 fi
   5875 rm -f core conftest.err conftest.$ac_objext \
   5876     conftest$ac_exeext conftest.$ac_ext
   5877 fi
   5878 
   5879 
   5880 		CFLAGS="$xorg_testset_save_CFLAGS"
   5881 
   5882 		eval supported=\$$cacheid
   5883 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   5884 $as_echo "$supported" >&6; }
   5885 		if test "$supported" = "yes" ; then
   5886 			BASE_CFLAGS="$BASE_CFLAGS -fd"
   5887 			found="yes"
   5888 		fi
   5889 	fi
   5890 
   5891 
   5892 
   5893 
   5894 
   5895 
   5896 
   5897 
   5898 
   5899 
   5900 
   5901 
   5902 
   5903 
   5904 
   5905 xorg_testset_save_CFLAGS="$CFLAGS"
   5906 
   5907 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   5908 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5909 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   5910 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   5911 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   5912   $as_echo_n "(cached) " >&6
   5913 else
   5914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5915 /* end confdefs.h.  */
   5916 int i;
   5917 _ACEOF
   5918 if ac_fn_c_try_compile "$LINENO"; then :
   5919   xorg_cv_cc_flag_unknown_warning_option=yes
   5920 else
   5921   xorg_cv_cc_flag_unknown_warning_option=no
   5922 fi
   5923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5924 fi
   5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   5926 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   5927 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   5928 	CFLAGS="$xorg_testset_save_CFLAGS"
   5929 fi
   5930 
   5931 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   5932 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5933 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5934 	fi
   5935 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5936 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   5937 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   5938 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   5939   $as_echo_n "(cached) " >&6
   5940 else
   5941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5942 /* end confdefs.h.  */
   5943 int i;
   5944 _ACEOF
   5945 if ac_fn_c_try_compile "$LINENO"; then :
   5946   xorg_cv_cc_flag_unused_command_line_argument=yes
   5947 else
   5948   xorg_cv_cc_flag_unused_command_line_argument=no
   5949 fi
   5950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5951 fi
   5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   5953 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   5954 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   5955 	CFLAGS="$xorg_testset_save_CFLAGS"
   5956 fi
   5957 
   5958 found="no"
   5959 
   5960 	if test $found = "no" ; then
   5961 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5962 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5963 		fi
   5964 
   5965 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   5966 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5967 		fi
   5968 
   5969 		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
   5970 
   5971 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
   5972 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
   5973 		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
   5974 		if eval \${$cacheid+:} false; then :
   5975   $as_echo_n "(cached) " >&6
   5976 else
   5977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5978 /* end confdefs.h.  */
   5979 int i;
   5980 int
   5981 main ()
   5982 {
   5983 
   5984   ;
   5985   return 0;
   5986 }
   5987 _ACEOF
   5988 if ac_fn_c_try_link "$LINENO"; then :
   5989   eval $cacheid=yes
   5990 else
   5991   eval $cacheid=no
   5992 fi
   5993 rm -f core conftest.err conftest.$ac_objext \
   5994     conftest$ac_exeext conftest.$ac_ext
   5995 fi
   5996 
   5997 
   5998 		CFLAGS="$xorg_testset_save_CFLAGS"
   5999 
   6000 		eval supported=\$$cacheid
   6001 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   6002 $as_echo "$supported" >&6; }
   6003 		if test "$supported" = "yes" ; then
   6004 			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
   6005 			found="yes"
   6006 		fi
   6007 	fi
   6008 
   6009 
   6010 
   6011 
   6012 
   6013 # This chunk adds additional warnings that could catch undesired effects.
   6014 
   6015 
   6016 
   6017 
   6018 
   6019 
   6020 
   6021 
   6022 
   6023 
   6024 
   6025 
   6026 
   6027 xorg_testset_save_CFLAGS="$CFLAGS"
   6028 
   6029 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   6030 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6031 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   6032 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   6033 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   6034   $as_echo_n "(cached) " >&6
   6035 else
   6036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6037 /* end confdefs.h.  */
   6038 int i;
   6039 _ACEOF
   6040 if ac_fn_c_try_compile "$LINENO"; then :
   6041   xorg_cv_cc_flag_unknown_warning_option=yes
   6042 else
   6043   xorg_cv_cc_flag_unknown_warning_option=no
   6044 fi
   6045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6046 fi
   6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   6048 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   6049 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   6050 	CFLAGS="$xorg_testset_save_CFLAGS"
   6051 fi
   6052 
   6053 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   6054 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6055 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6056 	fi
   6057 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6058 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   6059 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   6060 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   6061   $as_echo_n "(cached) " >&6
   6062 else
   6063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6064 /* end confdefs.h.  */
   6065 int i;
   6066 _ACEOF
   6067 if ac_fn_c_try_compile "$LINENO"; then :
   6068   xorg_cv_cc_flag_unused_command_line_argument=yes
   6069 else
   6070   xorg_cv_cc_flag_unused_command_line_argument=no
   6071 fi
   6072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6073 fi
   6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   6075 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   6076 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   6077 	CFLAGS="$xorg_testset_save_CFLAGS"
   6078 fi
   6079 
   6080 found="no"
   6081 
   6082 	if test $found = "no" ; then
   6083 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6084 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6085 		fi
   6086 
   6087 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   6088 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6089 		fi
   6090 
   6091 		CFLAGS="$CFLAGS -Wunused"
   6092 
   6093 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
   6094 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
   6095 		cacheid=xorg_cv_cc_flag__Wunused
   6096 		if eval \${$cacheid+:} false; then :
   6097   $as_echo_n "(cached) " >&6
   6098 else
   6099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6100 /* end confdefs.h.  */
   6101 int i;
   6102 int
   6103 main ()
   6104 {
   6105 
   6106   ;
   6107   return 0;
   6108 }
   6109 _ACEOF
   6110 if ac_fn_c_try_link "$LINENO"; then :
   6111   eval $cacheid=yes
   6112 else
   6113   eval $cacheid=no
   6114 fi
   6115 rm -f core conftest.err conftest.$ac_objext \
   6116     conftest$ac_exeext conftest.$ac_ext
   6117 fi
   6118 
   6119 
   6120 		CFLAGS="$xorg_testset_save_CFLAGS"
   6121 
   6122 		eval supported=\$$cacheid
   6123 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   6124 $as_echo "$supported" >&6; }
   6125 		if test "$supported" = "yes" ; then
   6126 			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
   6127 			found="yes"
   6128 		fi
   6129 	fi
   6130 
   6131 
   6132 
   6133 
   6134 
   6135 
   6136 
   6137 
   6138 
   6139 
   6140 
   6141 
   6142 
   6143 
   6144 
   6145 xorg_testset_save_CFLAGS="$CFLAGS"
   6146 
   6147 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   6148 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6149 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   6150 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   6151 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   6152   $as_echo_n "(cached) " >&6
   6153 else
   6154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6155 /* end confdefs.h.  */
   6156 int i;
   6157 _ACEOF
   6158 if ac_fn_c_try_compile "$LINENO"; then :
   6159   xorg_cv_cc_flag_unknown_warning_option=yes
   6160 else
   6161   xorg_cv_cc_flag_unknown_warning_option=no
   6162 fi
   6163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6164 fi
   6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   6166 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   6167 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   6168 	CFLAGS="$xorg_testset_save_CFLAGS"
   6169 fi
   6170 
   6171 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   6172 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6173 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6174 	fi
   6175 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6176 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   6177 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   6178 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   6179   $as_echo_n "(cached) " >&6
   6180 else
   6181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6182 /* end confdefs.h.  */
   6183 int i;
   6184 _ACEOF
   6185 if ac_fn_c_try_compile "$LINENO"; then :
   6186   xorg_cv_cc_flag_unused_command_line_argument=yes
   6187 else
   6188   xorg_cv_cc_flag_unused_command_line_argument=no
   6189 fi
   6190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6191 fi
   6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   6193 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   6194 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   6195 	CFLAGS="$xorg_testset_save_CFLAGS"
   6196 fi
   6197 
   6198 found="no"
   6199 
   6200 	if test $found = "no" ; then
   6201 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6202 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6203 		fi
   6204 
   6205 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   6206 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6207 		fi
   6208 
   6209 		CFLAGS="$CFLAGS -Wuninitialized"
   6210 
   6211 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
   6212 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
   6213 		cacheid=xorg_cv_cc_flag__Wuninitialized
   6214 		if eval \${$cacheid+:} false; then :
   6215   $as_echo_n "(cached) " >&6
   6216 else
   6217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6218 /* end confdefs.h.  */
   6219 int i;
   6220 int
   6221 main ()
   6222 {
   6223 
   6224   ;
   6225   return 0;
   6226 }
   6227 _ACEOF
   6228 if ac_fn_c_try_link "$LINENO"; then :
   6229   eval $cacheid=yes
   6230 else
   6231   eval $cacheid=no
   6232 fi
   6233 rm -f core conftest.err conftest.$ac_objext \
   6234     conftest$ac_exeext conftest.$ac_ext
   6235 fi
   6236 
   6237 
   6238 		CFLAGS="$xorg_testset_save_CFLAGS"
   6239 
   6240 		eval supported=\$$cacheid
   6241 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   6242 $as_echo "$supported" >&6; }
   6243 		if test "$supported" = "yes" ; then
   6244 			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
   6245 			found="yes"
   6246 		fi
   6247 	fi
   6248 
   6249 
   6250 
   6251 
   6252 
   6253 
   6254 
   6255 
   6256 
   6257 
   6258 
   6259 
   6260 
   6261 
   6262 
   6263 xorg_testset_save_CFLAGS="$CFLAGS"
   6264 
   6265 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   6266 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6267 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   6268 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   6269 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   6270   $as_echo_n "(cached) " >&6
   6271 else
   6272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6273 /* end confdefs.h.  */
   6274 int i;
   6275 _ACEOF
   6276 if ac_fn_c_try_compile "$LINENO"; then :
   6277   xorg_cv_cc_flag_unknown_warning_option=yes
   6278 else
   6279   xorg_cv_cc_flag_unknown_warning_option=no
   6280 fi
   6281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6282 fi
   6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   6284 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   6285 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   6286 	CFLAGS="$xorg_testset_save_CFLAGS"
   6287 fi
   6288 
   6289 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   6290 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6291 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6292 	fi
   6293 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6294 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   6295 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   6296 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   6297   $as_echo_n "(cached) " >&6
   6298 else
   6299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6300 /* end confdefs.h.  */
   6301 int i;
   6302 _ACEOF
   6303 if ac_fn_c_try_compile "$LINENO"; then :
   6304   xorg_cv_cc_flag_unused_command_line_argument=yes
   6305 else
   6306   xorg_cv_cc_flag_unused_command_line_argument=no
   6307 fi
   6308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6309 fi
   6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   6311 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   6312 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   6313 	CFLAGS="$xorg_testset_save_CFLAGS"
   6314 fi
   6315 
   6316 found="no"
   6317 
   6318 	if test $found = "no" ; then
   6319 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6320 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6321 		fi
   6322 
   6323 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   6324 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6325 		fi
   6326 
   6327 		CFLAGS="$CFLAGS -Wshadow"
   6328 
   6329 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
   6330 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
   6331 		cacheid=xorg_cv_cc_flag__Wshadow
   6332 		if eval \${$cacheid+:} false; then :
   6333   $as_echo_n "(cached) " >&6
   6334 else
   6335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6336 /* end confdefs.h.  */
   6337 int i;
   6338 int
   6339 main ()
   6340 {
   6341 
   6342   ;
   6343   return 0;
   6344 }
   6345 _ACEOF
   6346 if ac_fn_c_try_link "$LINENO"; then :
   6347   eval $cacheid=yes
   6348 else
   6349   eval $cacheid=no
   6350 fi
   6351 rm -f core conftest.err conftest.$ac_objext \
   6352     conftest$ac_exeext conftest.$ac_ext
   6353 fi
   6354 
   6355 
   6356 		CFLAGS="$xorg_testset_save_CFLAGS"
   6357 
   6358 		eval supported=\$$cacheid
   6359 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   6360 $as_echo "$supported" >&6; }
   6361 		if test "$supported" = "yes" ; then
   6362 			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
   6363 			found="yes"
   6364 		fi
   6365 	fi
   6366 
   6367 
   6368 
   6369 
   6370 
   6371 
   6372 
   6373 
   6374 
   6375 
   6376 
   6377 
   6378 
   6379 
   6380 
   6381 xorg_testset_save_CFLAGS="$CFLAGS"
   6382 
   6383 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   6384 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6385 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   6386 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   6387 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   6388   $as_echo_n "(cached) " >&6
   6389 else
   6390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6391 /* end confdefs.h.  */
   6392 int i;
   6393 _ACEOF
   6394 if ac_fn_c_try_compile "$LINENO"; then :
   6395   xorg_cv_cc_flag_unknown_warning_option=yes
   6396 else
   6397   xorg_cv_cc_flag_unknown_warning_option=no
   6398 fi
   6399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6400 fi
   6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   6402 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   6403 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   6404 	CFLAGS="$xorg_testset_save_CFLAGS"
   6405 fi
   6406 
   6407 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   6408 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6409 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6410 	fi
   6411 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6412 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   6413 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   6414 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   6415   $as_echo_n "(cached) " >&6
   6416 else
   6417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6418 /* end confdefs.h.  */
   6419 int i;
   6420 _ACEOF
   6421 if ac_fn_c_try_compile "$LINENO"; then :
   6422   xorg_cv_cc_flag_unused_command_line_argument=yes
   6423 else
   6424   xorg_cv_cc_flag_unused_command_line_argument=no
   6425 fi
   6426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6427 fi
   6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   6429 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   6430 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   6431 	CFLAGS="$xorg_testset_save_CFLAGS"
   6432 fi
   6433 
   6434 found="no"
   6435 
   6436 	if test $found = "no" ; then
   6437 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6438 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6439 		fi
   6440 
   6441 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   6442 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6443 		fi
   6444 
   6445 		CFLAGS="$CFLAGS -Wmissing-noreturn"
   6446 
   6447 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
   6448 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
   6449 		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
   6450 		if eval \${$cacheid+:} false; then :
   6451   $as_echo_n "(cached) " >&6
   6452 else
   6453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6454 /* end confdefs.h.  */
   6455 int i;
   6456 int
   6457 main ()
   6458 {
   6459 
   6460   ;
   6461   return 0;
   6462 }
   6463 _ACEOF
   6464 if ac_fn_c_try_link "$LINENO"; then :
   6465   eval $cacheid=yes
   6466 else
   6467   eval $cacheid=no
   6468 fi
   6469 rm -f core conftest.err conftest.$ac_objext \
   6470     conftest$ac_exeext conftest.$ac_ext
   6471 fi
   6472 
   6473 
   6474 		CFLAGS="$xorg_testset_save_CFLAGS"
   6475 
   6476 		eval supported=\$$cacheid
   6477 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   6478 $as_echo "$supported" >&6; }
   6479 		if test "$supported" = "yes" ; then
   6480 			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
   6481 			found="yes"
   6482 		fi
   6483 	fi
   6484 
   6485 
   6486 
   6487 
   6488 
   6489 
   6490 
   6491 
   6492 
   6493 
   6494 
   6495 
   6496 
   6497 
   6498 
   6499 xorg_testset_save_CFLAGS="$CFLAGS"
   6500 
   6501 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   6502 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6503 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   6504 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   6505 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   6506   $as_echo_n "(cached) " >&6
   6507 else
   6508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6509 /* end confdefs.h.  */
   6510 int i;
   6511 _ACEOF
   6512 if ac_fn_c_try_compile "$LINENO"; then :
   6513   xorg_cv_cc_flag_unknown_warning_option=yes
   6514 else
   6515   xorg_cv_cc_flag_unknown_warning_option=no
   6516 fi
   6517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6518 fi
   6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   6520 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   6521 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   6522 	CFLAGS="$xorg_testset_save_CFLAGS"
   6523 fi
   6524 
   6525 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   6526 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6527 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6528 	fi
   6529 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6530 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   6531 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   6532 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   6533   $as_echo_n "(cached) " >&6
   6534 else
   6535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6536 /* end confdefs.h.  */
   6537 int i;
   6538 _ACEOF
   6539 if ac_fn_c_try_compile "$LINENO"; then :
   6540   xorg_cv_cc_flag_unused_command_line_argument=yes
   6541 else
   6542   xorg_cv_cc_flag_unused_command_line_argument=no
   6543 fi
   6544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6545 fi
   6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   6547 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   6548 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   6549 	CFLAGS="$xorg_testset_save_CFLAGS"
   6550 fi
   6551 
   6552 found="no"
   6553 
   6554 	if test $found = "no" ; then
   6555 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6556 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6557 		fi
   6558 
   6559 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   6560 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6561 		fi
   6562 
   6563 		CFLAGS="$CFLAGS -Wmissing-format-attribute"
   6564 
   6565 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
   6566 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
   6567 		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
   6568 		if eval \${$cacheid+:} false; then :
   6569   $as_echo_n "(cached) " >&6
   6570 else
   6571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6572 /* end confdefs.h.  */
   6573 int i;
   6574 int
   6575 main ()
   6576 {
   6577 
   6578   ;
   6579   return 0;
   6580 }
   6581 _ACEOF
   6582 if ac_fn_c_try_link "$LINENO"; then :
   6583   eval $cacheid=yes
   6584 else
   6585   eval $cacheid=no
   6586 fi
   6587 rm -f core conftest.err conftest.$ac_objext \
   6588     conftest$ac_exeext conftest.$ac_ext
   6589 fi
   6590 
   6591 
   6592 		CFLAGS="$xorg_testset_save_CFLAGS"
   6593 
   6594 		eval supported=\$$cacheid
   6595 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   6596 $as_echo "$supported" >&6; }
   6597 		if test "$supported" = "yes" ; then
   6598 			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
   6599 			found="yes"
   6600 		fi
   6601 	fi
   6602 
   6603 
   6604 
   6605 
   6606 
   6607 
   6608 
   6609 
   6610 
   6611 
   6612 
   6613 
   6614 
   6615 
   6616 
   6617 xorg_testset_save_CFLAGS="$CFLAGS"
   6618 
   6619 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   6620 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6621 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   6622 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   6623 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   6624   $as_echo_n "(cached) " >&6
   6625 else
   6626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6627 /* end confdefs.h.  */
   6628 int i;
   6629 _ACEOF
   6630 if ac_fn_c_try_compile "$LINENO"; then :
   6631   xorg_cv_cc_flag_unknown_warning_option=yes
   6632 else
   6633   xorg_cv_cc_flag_unknown_warning_option=no
   6634 fi
   6635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6636 fi
   6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   6638 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   6639 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   6640 	CFLAGS="$xorg_testset_save_CFLAGS"
   6641 fi
   6642 
   6643 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   6644 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6645 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6646 	fi
   6647 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6648 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   6649 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   6650 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   6651   $as_echo_n "(cached) " >&6
   6652 else
   6653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6654 /* end confdefs.h.  */
   6655 int i;
   6656 _ACEOF
   6657 if ac_fn_c_try_compile "$LINENO"; then :
   6658   xorg_cv_cc_flag_unused_command_line_argument=yes
   6659 else
   6660   xorg_cv_cc_flag_unused_command_line_argument=no
   6661 fi
   6662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6663 fi
   6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   6665 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   6666 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   6667 	CFLAGS="$xorg_testset_save_CFLAGS"
   6668 fi
   6669 
   6670 found="no"
   6671 
   6672 	if test $found = "no" ; then
   6673 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6674 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6675 		fi
   6676 
   6677 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   6678 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6679 		fi
   6680 
   6681 		CFLAGS="$CFLAGS -Wredundant-decls"
   6682 
   6683 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
   6684 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
   6685 		cacheid=xorg_cv_cc_flag__Wredundant_decls
   6686 		if eval \${$cacheid+:} false; then :
   6687   $as_echo_n "(cached) " >&6
   6688 else
   6689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6690 /* end confdefs.h.  */
   6691 int i;
   6692 int
   6693 main ()
   6694 {
   6695 
   6696   ;
   6697   return 0;
   6698 }
   6699 _ACEOF
   6700 if ac_fn_c_try_link "$LINENO"; then :
   6701   eval $cacheid=yes
   6702 else
   6703   eval $cacheid=no
   6704 fi
   6705 rm -f core conftest.err conftest.$ac_objext \
   6706     conftest$ac_exeext conftest.$ac_ext
   6707 fi
   6708 
   6709 
   6710 		CFLAGS="$xorg_testset_save_CFLAGS"
   6711 
   6712 		eval supported=\$$cacheid
   6713 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   6714 $as_echo "$supported" >&6; }
   6715 		if test "$supported" = "yes" ; then
   6716 			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
   6717 			found="yes"
   6718 		fi
   6719 	fi
   6720 
   6721 
   6722 
   6723 
   6724 
   6725 
   6726 
   6727 
   6728 
   6729 
   6730 
   6731 
   6732 
   6733 
   6734 
   6735 xorg_testset_save_CFLAGS="$CFLAGS"
   6736 
   6737 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   6738 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6739 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   6740 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   6741 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   6742   $as_echo_n "(cached) " >&6
   6743 else
   6744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6745 /* end confdefs.h.  */
   6746 int i;
   6747 _ACEOF
   6748 if ac_fn_c_try_compile "$LINENO"; then :
   6749   xorg_cv_cc_flag_unknown_warning_option=yes
   6750 else
   6751   xorg_cv_cc_flag_unknown_warning_option=no
   6752 fi
   6753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6754 fi
   6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   6756 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   6757 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   6758 	CFLAGS="$xorg_testset_save_CFLAGS"
   6759 fi
   6760 
   6761 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   6762 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6763 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6764 	fi
   6765 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6766 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   6767 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   6768 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   6769   $as_echo_n "(cached) " >&6
   6770 else
   6771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6772 /* end confdefs.h.  */
   6773 int i;
   6774 _ACEOF
   6775 if ac_fn_c_try_compile "$LINENO"; then :
   6776   xorg_cv_cc_flag_unused_command_line_argument=yes
   6777 else
   6778   xorg_cv_cc_flag_unused_command_line_argument=no
   6779 fi
   6780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6781 fi
   6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   6783 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   6784 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   6785 	CFLAGS="$xorg_testset_save_CFLAGS"
   6786 fi
   6787 
   6788 found="no"
   6789 
   6790 	if test $found = "no" ; then
   6791 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6792 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6793 		fi
   6794 
   6795 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   6796 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6797 		fi
   6798 
   6799 		CFLAGS="$CFLAGS -Wlogical-op"
   6800 
   6801 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
   6802 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
   6803 		cacheid=xorg_cv_cc_flag__Wlogical_op
   6804 		if eval \${$cacheid+:} false; then :
   6805   $as_echo_n "(cached) " >&6
   6806 else
   6807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6808 /* end confdefs.h.  */
   6809 int i;
   6810 int
   6811 main ()
   6812 {
   6813 
   6814   ;
   6815   return 0;
   6816 }
   6817 _ACEOF
   6818 if ac_fn_c_try_link "$LINENO"; then :
   6819   eval $cacheid=yes
   6820 else
   6821   eval $cacheid=no
   6822 fi
   6823 rm -f core conftest.err conftest.$ac_objext \
   6824     conftest$ac_exeext conftest.$ac_ext
   6825 fi
   6826 
   6827 
   6828 		CFLAGS="$xorg_testset_save_CFLAGS"
   6829 
   6830 		eval supported=\$$cacheid
   6831 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   6832 $as_echo "$supported" >&6; }
   6833 		if test "$supported" = "yes" ; then
   6834 			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
   6835 			found="yes"
   6836 		fi
   6837 	fi
   6838 
   6839 
   6840 
   6841 # These are currently disabled because they are noisy.  They will be enabled
   6842 # in the future once the codebase is sufficiently modernized to silence
   6843 # them.  For now, I don't want them to drown out the other warnings.
   6844 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
   6845 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
   6846 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
   6847 
   6848 # Turn some warnings into errors, so we don't accidently get successful builds
   6849 # when there are problems that should be fixed.
   6850 
   6851 if test "x$SELECTIVE_WERROR" = "xyes" ; then
   6852 
   6853 
   6854 
   6855 
   6856 
   6857 
   6858 
   6859 
   6860 
   6861 
   6862 
   6863 
   6864 
   6865 xorg_testset_save_CFLAGS="$CFLAGS"
   6866 
   6867 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   6868 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6869 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   6870 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   6871 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   6872   $as_echo_n "(cached) " >&6
   6873 else
   6874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6875 /* end confdefs.h.  */
   6876 int i;
   6877 _ACEOF
   6878 if ac_fn_c_try_compile "$LINENO"; then :
   6879   xorg_cv_cc_flag_unknown_warning_option=yes
   6880 else
   6881   xorg_cv_cc_flag_unknown_warning_option=no
   6882 fi
   6883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6884 fi
   6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   6886 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   6887 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   6888 	CFLAGS="$xorg_testset_save_CFLAGS"
   6889 fi
   6890 
   6891 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   6892 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6893 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6894 	fi
   6895 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6896 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   6897 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   6898 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   6899   $as_echo_n "(cached) " >&6
   6900 else
   6901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6902 /* end confdefs.h.  */
   6903 int i;
   6904 _ACEOF
   6905 if ac_fn_c_try_compile "$LINENO"; then :
   6906   xorg_cv_cc_flag_unused_command_line_argument=yes
   6907 else
   6908   xorg_cv_cc_flag_unused_command_line_argument=no
   6909 fi
   6910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6911 fi
   6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   6913 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   6914 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   6915 	CFLAGS="$xorg_testset_save_CFLAGS"
   6916 fi
   6917 
   6918 found="no"
   6919 
   6920 	if test $found = "no" ; then
   6921 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6922 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6923 		fi
   6924 
   6925 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   6926 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6927 		fi
   6928 
   6929 		CFLAGS="$CFLAGS -Werror=implicit"
   6930 
   6931 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
   6932 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
   6933 		cacheid=xorg_cv_cc_flag__Werror_implicit
   6934 		if eval \${$cacheid+:} false; then :
   6935   $as_echo_n "(cached) " >&6
   6936 else
   6937   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6938 /* end confdefs.h.  */
   6939 int i;
   6940 int
   6941 main ()
   6942 {
   6943 
   6944   ;
   6945   return 0;
   6946 }
   6947 _ACEOF
   6948 if ac_fn_c_try_link "$LINENO"; then :
   6949   eval $cacheid=yes
   6950 else
   6951   eval $cacheid=no
   6952 fi
   6953 rm -f core conftest.err conftest.$ac_objext \
   6954     conftest$ac_exeext conftest.$ac_ext
   6955 fi
   6956 
   6957 
   6958 		CFLAGS="$xorg_testset_save_CFLAGS"
   6959 
   6960 		eval supported=\$$cacheid
   6961 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   6962 $as_echo "$supported" >&6; }
   6963 		if test "$supported" = "yes" ; then
   6964 			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
   6965 			found="yes"
   6966 		fi
   6967 	fi
   6968 
   6969 	if test $found = "no" ; then
   6970 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6971 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6972 		fi
   6973 
   6974 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   6975 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6976 		fi
   6977 
   6978 		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
   6979 
   6980 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
   6981 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
   6982 		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
   6983 		if eval \${$cacheid+:} false; then :
   6984   $as_echo_n "(cached) " >&6
   6985 else
   6986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6987 /* end confdefs.h.  */
   6988 int i;
   6989 int
   6990 main ()
   6991 {
   6992 
   6993   ;
   6994   return 0;
   6995 }
   6996 _ACEOF
   6997 if ac_fn_c_try_link "$LINENO"; then :
   6998   eval $cacheid=yes
   6999 else
   7000   eval $cacheid=no
   7001 fi
   7002 rm -f core conftest.err conftest.$ac_objext \
   7003     conftest$ac_exeext conftest.$ac_ext
   7004 fi
   7005 
   7006 
   7007 		CFLAGS="$xorg_testset_save_CFLAGS"
   7008 
   7009 		eval supported=\$$cacheid
   7010 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   7011 $as_echo "$supported" >&6; }
   7012 		if test "$supported" = "yes" ; then
   7013 			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
   7014 			found="yes"
   7015 		fi
   7016 	fi
   7017 
   7018 
   7019 
   7020 
   7021 
   7022 
   7023 
   7024 
   7025 
   7026 
   7027 
   7028 
   7029 
   7030 
   7031 
   7032 xorg_testset_save_CFLAGS="$CFLAGS"
   7033 
   7034 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   7035 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7036 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   7037 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   7038 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   7039   $as_echo_n "(cached) " >&6
   7040 else
   7041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7042 /* end confdefs.h.  */
   7043 int i;
   7044 _ACEOF
   7045 if ac_fn_c_try_compile "$LINENO"; then :
   7046   xorg_cv_cc_flag_unknown_warning_option=yes
   7047 else
   7048   xorg_cv_cc_flag_unknown_warning_option=no
   7049 fi
   7050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7051 fi
   7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   7053 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   7054 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   7055 	CFLAGS="$xorg_testset_save_CFLAGS"
   7056 fi
   7057 
   7058 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   7059 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7060 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7061 	fi
   7062 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7063 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   7064 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   7065 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   7066   $as_echo_n "(cached) " >&6
   7067 else
   7068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7069 /* end confdefs.h.  */
   7070 int i;
   7071 _ACEOF
   7072 if ac_fn_c_try_compile "$LINENO"; then :
   7073   xorg_cv_cc_flag_unused_command_line_argument=yes
   7074 else
   7075   xorg_cv_cc_flag_unused_command_line_argument=no
   7076 fi
   7077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7078 fi
   7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   7080 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   7081 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   7082 	CFLAGS="$xorg_testset_save_CFLAGS"
   7083 fi
   7084 
   7085 found="no"
   7086 
   7087 	if test $found = "no" ; then
   7088 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7089 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7090 		fi
   7091 
   7092 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   7093 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7094 		fi
   7095 
   7096 		CFLAGS="$CFLAGS -Werror=nonnull"
   7097 
   7098 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
   7099 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
   7100 		cacheid=xorg_cv_cc_flag__Werror_nonnull
   7101 		if eval \${$cacheid+:} false; then :
   7102   $as_echo_n "(cached) " >&6
   7103 else
   7104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7105 /* end confdefs.h.  */
   7106 int i;
   7107 int
   7108 main ()
   7109 {
   7110 
   7111   ;
   7112   return 0;
   7113 }
   7114 _ACEOF
   7115 if ac_fn_c_try_link "$LINENO"; then :
   7116   eval $cacheid=yes
   7117 else
   7118   eval $cacheid=no
   7119 fi
   7120 rm -f core conftest.err conftest.$ac_objext \
   7121     conftest$ac_exeext conftest.$ac_ext
   7122 fi
   7123 
   7124 
   7125 		CFLAGS="$xorg_testset_save_CFLAGS"
   7126 
   7127 		eval supported=\$$cacheid
   7128 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   7129 $as_echo "$supported" >&6; }
   7130 		if test "$supported" = "yes" ; then
   7131 			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
   7132 			found="yes"
   7133 		fi
   7134 	fi
   7135 
   7136 
   7137 
   7138 
   7139 
   7140 
   7141 
   7142 
   7143 
   7144 
   7145 
   7146 
   7147 
   7148 
   7149 
   7150 xorg_testset_save_CFLAGS="$CFLAGS"
   7151 
   7152 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   7153 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7154 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   7155 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   7156 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   7157   $as_echo_n "(cached) " >&6
   7158 else
   7159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7160 /* end confdefs.h.  */
   7161 int i;
   7162 _ACEOF
   7163 if ac_fn_c_try_compile "$LINENO"; then :
   7164   xorg_cv_cc_flag_unknown_warning_option=yes
   7165 else
   7166   xorg_cv_cc_flag_unknown_warning_option=no
   7167 fi
   7168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7169 fi
   7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   7171 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   7172 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   7173 	CFLAGS="$xorg_testset_save_CFLAGS"
   7174 fi
   7175 
   7176 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   7177 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7178 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7179 	fi
   7180 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7181 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   7182 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   7183 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   7184   $as_echo_n "(cached) " >&6
   7185 else
   7186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7187 /* end confdefs.h.  */
   7188 int i;
   7189 _ACEOF
   7190 if ac_fn_c_try_compile "$LINENO"; then :
   7191   xorg_cv_cc_flag_unused_command_line_argument=yes
   7192 else
   7193   xorg_cv_cc_flag_unused_command_line_argument=no
   7194 fi
   7195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7196 fi
   7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   7198 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   7199 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   7200 	CFLAGS="$xorg_testset_save_CFLAGS"
   7201 fi
   7202 
   7203 found="no"
   7204 
   7205 	if test $found = "no" ; then
   7206 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7207 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7208 		fi
   7209 
   7210 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   7211 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7212 		fi
   7213 
   7214 		CFLAGS="$CFLAGS -Werror=init-self"
   7215 
   7216 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
   7217 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
   7218 		cacheid=xorg_cv_cc_flag__Werror_init_self
   7219 		if eval \${$cacheid+:} false; then :
   7220   $as_echo_n "(cached) " >&6
   7221 else
   7222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7223 /* end confdefs.h.  */
   7224 int i;
   7225 int
   7226 main ()
   7227 {
   7228 
   7229   ;
   7230   return 0;
   7231 }
   7232 _ACEOF
   7233 if ac_fn_c_try_link "$LINENO"; then :
   7234   eval $cacheid=yes
   7235 else
   7236   eval $cacheid=no
   7237 fi
   7238 rm -f core conftest.err conftest.$ac_objext \
   7239     conftest$ac_exeext conftest.$ac_ext
   7240 fi
   7241 
   7242 
   7243 		CFLAGS="$xorg_testset_save_CFLAGS"
   7244 
   7245 		eval supported=\$$cacheid
   7246 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   7247 $as_echo "$supported" >&6; }
   7248 		if test "$supported" = "yes" ; then
   7249 			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
   7250 			found="yes"
   7251 		fi
   7252 	fi
   7253 
   7254 
   7255 
   7256 
   7257 
   7258 
   7259 
   7260 
   7261 
   7262 
   7263 
   7264 
   7265 
   7266 
   7267 
   7268 xorg_testset_save_CFLAGS="$CFLAGS"
   7269 
   7270 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   7271 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7272 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   7273 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   7274 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   7275   $as_echo_n "(cached) " >&6
   7276 else
   7277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7278 /* end confdefs.h.  */
   7279 int i;
   7280 _ACEOF
   7281 if ac_fn_c_try_compile "$LINENO"; then :
   7282   xorg_cv_cc_flag_unknown_warning_option=yes
   7283 else
   7284   xorg_cv_cc_flag_unknown_warning_option=no
   7285 fi
   7286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7287 fi
   7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   7289 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   7290 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   7291 	CFLAGS="$xorg_testset_save_CFLAGS"
   7292 fi
   7293 
   7294 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   7295 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7296 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7297 	fi
   7298 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7299 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   7300 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   7301 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   7302   $as_echo_n "(cached) " >&6
   7303 else
   7304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7305 /* end confdefs.h.  */
   7306 int i;
   7307 _ACEOF
   7308 if ac_fn_c_try_compile "$LINENO"; then :
   7309   xorg_cv_cc_flag_unused_command_line_argument=yes
   7310 else
   7311   xorg_cv_cc_flag_unused_command_line_argument=no
   7312 fi
   7313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7314 fi
   7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   7316 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   7317 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   7318 	CFLAGS="$xorg_testset_save_CFLAGS"
   7319 fi
   7320 
   7321 found="no"
   7322 
   7323 	if test $found = "no" ; then
   7324 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7325 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7326 		fi
   7327 
   7328 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   7329 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7330 		fi
   7331 
   7332 		CFLAGS="$CFLAGS -Werror=main"
   7333 
   7334 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
   7335 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
   7336 		cacheid=xorg_cv_cc_flag__Werror_main
   7337 		if eval \${$cacheid+:} false; then :
   7338   $as_echo_n "(cached) " >&6
   7339 else
   7340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7341 /* end confdefs.h.  */
   7342 int i;
   7343 int
   7344 main ()
   7345 {
   7346 
   7347   ;
   7348   return 0;
   7349 }
   7350 _ACEOF
   7351 if ac_fn_c_try_link "$LINENO"; then :
   7352   eval $cacheid=yes
   7353 else
   7354   eval $cacheid=no
   7355 fi
   7356 rm -f core conftest.err conftest.$ac_objext \
   7357     conftest$ac_exeext conftest.$ac_ext
   7358 fi
   7359 
   7360 
   7361 		CFLAGS="$xorg_testset_save_CFLAGS"
   7362 
   7363 		eval supported=\$$cacheid
   7364 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   7365 $as_echo "$supported" >&6; }
   7366 		if test "$supported" = "yes" ; then
   7367 			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
   7368 			found="yes"
   7369 		fi
   7370 	fi
   7371 
   7372 
   7373 
   7374 
   7375 
   7376 
   7377 
   7378 
   7379 
   7380 
   7381 
   7382 
   7383 
   7384 
   7385 
   7386 xorg_testset_save_CFLAGS="$CFLAGS"
   7387 
   7388 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   7389 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7390 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   7391 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   7392 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   7393   $as_echo_n "(cached) " >&6
   7394 else
   7395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7396 /* end confdefs.h.  */
   7397 int i;
   7398 _ACEOF
   7399 if ac_fn_c_try_compile "$LINENO"; then :
   7400   xorg_cv_cc_flag_unknown_warning_option=yes
   7401 else
   7402   xorg_cv_cc_flag_unknown_warning_option=no
   7403 fi
   7404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7405 fi
   7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   7407 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   7408 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   7409 	CFLAGS="$xorg_testset_save_CFLAGS"
   7410 fi
   7411 
   7412 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   7413 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7414 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7415 	fi
   7416 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7417 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   7418 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   7419 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   7420   $as_echo_n "(cached) " >&6
   7421 else
   7422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7423 /* end confdefs.h.  */
   7424 int i;
   7425 _ACEOF
   7426 if ac_fn_c_try_compile "$LINENO"; then :
   7427   xorg_cv_cc_flag_unused_command_line_argument=yes
   7428 else
   7429   xorg_cv_cc_flag_unused_command_line_argument=no
   7430 fi
   7431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7432 fi
   7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   7434 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   7435 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   7436 	CFLAGS="$xorg_testset_save_CFLAGS"
   7437 fi
   7438 
   7439 found="no"
   7440 
   7441 	if test $found = "no" ; then
   7442 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7443 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7444 		fi
   7445 
   7446 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   7447 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7448 		fi
   7449 
   7450 		CFLAGS="$CFLAGS -Werror=missing-braces"
   7451 
   7452 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
   7453 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
   7454 		cacheid=xorg_cv_cc_flag__Werror_missing_braces
   7455 		if eval \${$cacheid+:} false; then :
   7456   $as_echo_n "(cached) " >&6
   7457 else
   7458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7459 /* end confdefs.h.  */
   7460 int i;
   7461 int
   7462 main ()
   7463 {
   7464 
   7465   ;
   7466   return 0;
   7467 }
   7468 _ACEOF
   7469 if ac_fn_c_try_link "$LINENO"; then :
   7470   eval $cacheid=yes
   7471 else
   7472   eval $cacheid=no
   7473 fi
   7474 rm -f core conftest.err conftest.$ac_objext \
   7475     conftest$ac_exeext conftest.$ac_ext
   7476 fi
   7477 
   7478 
   7479 		CFLAGS="$xorg_testset_save_CFLAGS"
   7480 
   7481 		eval supported=\$$cacheid
   7482 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   7483 $as_echo "$supported" >&6; }
   7484 		if test "$supported" = "yes" ; then
   7485 			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
   7486 			found="yes"
   7487 		fi
   7488 	fi
   7489 
   7490 
   7491 
   7492 
   7493 
   7494 
   7495 
   7496 
   7497 
   7498 
   7499 
   7500 
   7501 
   7502 
   7503 
   7504 xorg_testset_save_CFLAGS="$CFLAGS"
   7505 
   7506 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   7507 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7508 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   7509 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   7510 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   7511   $as_echo_n "(cached) " >&6
   7512 else
   7513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7514 /* end confdefs.h.  */
   7515 int i;
   7516 _ACEOF
   7517 if ac_fn_c_try_compile "$LINENO"; then :
   7518   xorg_cv_cc_flag_unknown_warning_option=yes
   7519 else
   7520   xorg_cv_cc_flag_unknown_warning_option=no
   7521 fi
   7522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7523 fi
   7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   7525 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   7526 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   7527 	CFLAGS="$xorg_testset_save_CFLAGS"
   7528 fi
   7529 
   7530 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   7531 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7532 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7533 	fi
   7534 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7535 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   7536 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   7537 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   7538   $as_echo_n "(cached) " >&6
   7539 else
   7540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7541 /* end confdefs.h.  */
   7542 int i;
   7543 _ACEOF
   7544 if ac_fn_c_try_compile "$LINENO"; then :
   7545   xorg_cv_cc_flag_unused_command_line_argument=yes
   7546 else
   7547   xorg_cv_cc_flag_unused_command_line_argument=no
   7548 fi
   7549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7550 fi
   7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   7552 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   7553 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   7554 	CFLAGS="$xorg_testset_save_CFLAGS"
   7555 fi
   7556 
   7557 found="no"
   7558 
   7559 	if test $found = "no" ; then
   7560 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7561 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7562 		fi
   7563 
   7564 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   7565 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7566 		fi
   7567 
   7568 		CFLAGS="$CFLAGS -Werror=sequence-point"
   7569 
   7570 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
   7571 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
   7572 		cacheid=xorg_cv_cc_flag__Werror_sequence_point
   7573 		if eval \${$cacheid+:} false; then :
   7574   $as_echo_n "(cached) " >&6
   7575 else
   7576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7577 /* end confdefs.h.  */
   7578 int i;
   7579 int
   7580 main ()
   7581 {
   7582 
   7583   ;
   7584   return 0;
   7585 }
   7586 _ACEOF
   7587 if ac_fn_c_try_link "$LINENO"; then :
   7588   eval $cacheid=yes
   7589 else
   7590   eval $cacheid=no
   7591 fi
   7592 rm -f core conftest.err conftest.$ac_objext \
   7593     conftest$ac_exeext conftest.$ac_ext
   7594 fi
   7595 
   7596 
   7597 		CFLAGS="$xorg_testset_save_CFLAGS"
   7598 
   7599 		eval supported=\$$cacheid
   7600 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   7601 $as_echo "$supported" >&6; }
   7602 		if test "$supported" = "yes" ; then
   7603 			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
   7604 			found="yes"
   7605 		fi
   7606 	fi
   7607 
   7608 
   7609 
   7610 
   7611 
   7612 
   7613 
   7614 
   7615 
   7616 
   7617 
   7618 
   7619 
   7620 
   7621 
   7622 xorg_testset_save_CFLAGS="$CFLAGS"
   7623 
   7624 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   7625 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7626 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   7627 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   7628 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   7629   $as_echo_n "(cached) " >&6
   7630 else
   7631   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7632 /* end confdefs.h.  */
   7633 int i;
   7634 _ACEOF
   7635 if ac_fn_c_try_compile "$LINENO"; then :
   7636   xorg_cv_cc_flag_unknown_warning_option=yes
   7637 else
   7638   xorg_cv_cc_flag_unknown_warning_option=no
   7639 fi
   7640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7641 fi
   7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   7643 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   7644 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   7645 	CFLAGS="$xorg_testset_save_CFLAGS"
   7646 fi
   7647 
   7648 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   7649 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7650 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7651 	fi
   7652 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7653 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   7654 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   7655 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   7656   $as_echo_n "(cached) " >&6
   7657 else
   7658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7659 /* end confdefs.h.  */
   7660 int i;
   7661 _ACEOF
   7662 if ac_fn_c_try_compile "$LINENO"; then :
   7663   xorg_cv_cc_flag_unused_command_line_argument=yes
   7664 else
   7665   xorg_cv_cc_flag_unused_command_line_argument=no
   7666 fi
   7667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7668 fi
   7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   7670 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   7671 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   7672 	CFLAGS="$xorg_testset_save_CFLAGS"
   7673 fi
   7674 
   7675 found="no"
   7676 
   7677 	if test $found = "no" ; then
   7678 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7679 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7680 		fi
   7681 
   7682 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   7683 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7684 		fi
   7685 
   7686 		CFLAGS="$CFLAGS -Werror=return-type"
   7687 
   7688 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
   7689 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
   7690 		cacheid=xorg_cv_cc_flag__Werror_return_type
   7691 		if eval \${$cacheid+:} false; then :
   7692   $as_echo_n "(cached) " >&6
   7693 else
   7694   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7695 /* end confdefs.h.  */
   7696 int i;
   7697 int
   7698 main ()
   7699 {
   7700 
   7701   ;
   7702   return 0;
   7703 }
   7704 _ACEOF
   7705 if ac_fn_c_try_link "$LINENO"; then :
   7706   eval $cacheid=yes
   7707 else
   7708   eval $cacheid=no
   7709 fi
   7710 rm -f core conftest.err conftest.$ac_objext \
   7711     conftest$ac_exeext conftest.$ac_ext
   7712 fi
   7713 
   7714 
   7715 		CFLAGS="$xorg_testset_save_CFLAGS"
   7716 
   7717 		eval supported=\$$cacheid
   7718 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   7719 $as_echo "$supported" >&6; }
   7720 		if test "$supported" = "yes" ; then
   7721 			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
   7722 			found="yes"
   7723 		fi
   7724 	fi
   7725 
   7726 	if test $found = "no" ; then
   7727 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7728 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7729 		fi
   7730 
   7731 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   7732 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7733 		fi
   7734 
   7735 		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
   7736 
   7737 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
   7738 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
   7739 		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
   7740 		if eval \${$cacheid+:} false; then :
   7741   $as_echo_n "(cached) " >&6
   7742 else
   7743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7744 /* end confdefs.h.  */
   7745 int i;
   7746 int
   7747 main ()
   7748 {
   7749 
   7750   ;
   7751   return 0;
   7752 }
   7753 _ACEOF
   7754 if ac_fn_c_try_link "$LINENO"; then :
   7755   eval $cacheid=yes
   7756 else
   7757   eval $cacheid=no
   7758 fi
   7759 rm -f core conftest.err conftest.$ac_objext \
   7760     conftest$ac_exeext conftest.$ac_ext
   7761 fi
   7762 
   7763 
   7764 		CFLAGS="$xorg_testset_save_CFLAGS"
   7765 
   7766 		eval supported=\$$cacheid
   7767 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   7768 $as_echo "$supported" >&6; }
   7769 		if test "$supported" = "yes" ; then
   7770 			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
   7771 			found="yes"
   7772 		fi
   7773 	fi
   7774 
   7775 
   7776 
   7777 
   7778 
   7779 
   7780 
   7781 
   7782 
   7783 
   7784 
   7785 
   7786 
   7787 
   7788 
   7789 xorg_testset_save_CFLAGS="$CFLAGS"
   7790 
   7791 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   7792 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7793 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   7794 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   7795 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   7796   $as_echo_n "(cached) " >&6
   7797 else
   7798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7799 /* end confdefs.h.  */
   7800 int i;
   7801 _ACEOF
   7802 if ac_fn_c_try_compile "$LINENO"; then :
   7803   xorg_cv_cc_flag_unknown_warning_option=yes
   7804 else
   7805   xorg_cv_cc_flag_unknown_warning_option=no
   7806 fi
   7807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7808 fi
   7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   7810 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   7811 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   7812 	CFLAGS="$xorg_testset_save_CFLAGS"
   7813 fi
   7814 
   7815 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   7816 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7817 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7818 	fi
   7819 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7820 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   7821 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   7822 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   7823   $as_echo_n "(cached) " >&6
   7824 else
   7825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7826 /* end confdefs.h.  */
   7827 int i;
   7828 _ACEOF
   7829 if ac_fn_c_try_compile "$LINENO"; then :
   7830   xorg_cv_cc_flag_unused_command_line_argument=yes
   7831 else
   7832   xorg_cv_cc_flag_unused_command_line_argument=no
   7833 fi
   7834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7835 fi
   7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   7837 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   7838 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   7839 	CFLAGS="$xorg_testset_save_CFLAGS"
   7840 fi
   7841 
   7842 found="no"
   7843 
   7844 	if test $found = "no" ; then
   7845 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7846 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7847 		fi
   7848 
   7849 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   7850 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7851 		fi
   7852 
   7853 		CFLAGS="$CFLAGS -Werror=trigraphs"
   7854 
   7855 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
   7856 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
   7857 		cacheid=xorg_cv_cc_flag__Werror_trigraphs
   7858 		if eval \${$cacheid+:} false; then :
   7859   $as_echo_n "(cached) " >&6
   7860 else
   7861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7862 /* end confdefs.h.  */
   7863 int i;
   7864 int
   7865 main ()
   7866 {
   7867 
   7868   ;
   7869   return 0;
   7870 }
   7871 _ACEOF
   7872 if ac_fn_c_try_link "$LINENO"; then :
   7873   eval $cacheid=yes
   7874 else
   7875   eval $cacheid=no
   7876 fi
   7877 rm -f core conftest.err conftest.$ac_objext \
   7878     conftest$ac_exeext conftest.$ac_ext
   7879 fi
   7880 
   7881 
   7882 		CFLAGS="$xorg_testset_save_CFLAGS"
   7883 
   7884 		eval supported=\$$cacheid
   7885 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   7886 $as_echo "$supported" >&6; }
   7887 		if test "$supported" = "yes" ; then
   7888 			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
   7889 			found="yes"
   7890 		fi
   7891 	fi
   7892 
   7893 
   7894 
   7895 
   7896 
   7897 
   7898 
   7899 
   7900 
   7901 
   7902 
   7903 
   7904 
   7905 
   7906 
   7907 xorg_testset_save_CFLAGS="$CFLAGS"
   7908 
   7909 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   7910 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7911 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   7912 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   7913 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   7914   $as_echo_n "(cached) " >&6
   7915 else
   7916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7917 /* end confdefs.h.  */
   7918 int i;
   7919 _ACEOF
   7920 if ac_fn_c_try_compile "$LINENO"; then :
   7921   xorg_cv_cc_flag_unknown_warning_option=yes
   7922 else
   7923   xorg_cv_cc_flag_unknown_warning_option=no
   7924 fi
   7925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7926 fi
   7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   7928 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   7929 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   7930 	CFLAGS="$xorg_testset_save_CFLAGS"
   7931 fi
   7932 
   7933 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   7934 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7935 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7936 	fi
   7937 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7938 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   7939 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   7940 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   7941   $as_echo_n "(cached) " >&6
   7942 else
   7943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7944 /* end confdefs.h.  */
   7945 int i;
   7946 _ACEOF
   7947 if ac_fn_c_try_compile "$LINENO"; then :
   7948   xorg_cv_cc_flag_unused_command_line_argument=yes
   7949 else
   7950   xorg_cv_cc_flag_unused_command_line_argument=no
   7951 fi
   7952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7953 fi
   7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   7955 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   7956 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   7957 	CFLAGS="$xorg_testset_save_CFLAGS"
   7958 fi
   7959 
   7960 found="no"
   7961 
   7962 	if test $found = "no" ; then
   7963 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7964 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7965 		fi
   7966 
   7967 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   7968 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7969 		fi
   7970 
   7971 		CFLAGS="$CFLAGS -Werror=array-bounds"
   7972 
   7973 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
   7974 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
   7975 		cacheid=xorg_cv_cc_flag__Werror_array_bounds
   7976 		if eval \${$cacheid+:} false; then :
   7977   $as_echo_n "(cached) " >&6
   7978 else
   7979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7980 /* end confdefs.h.  */
   7981 int i;
   7982 int
   7983 main ()
   7984 {
   7985 
   7986   ;
   7987   return 0;
   7988 }
   7989 _ACEOF
   7990 if ac_fn_c_try_link "$LINENO"; then :
   7991   eval $cacheid=yes
   7992 else
   7993   eval $cacheid=no
   7994 fi
   7995 rm -f core conftest.err conftest.$ac_objext \
   7996     conftest$ac_exeext conftest.$ac_ext
   7997 fi
   7998 
   7999 
   8000 		CFLAGS="$xorg_testset_save_CFLAGS"
   8001 
   8002 		eval supported=\$$cacheid
   8003 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   8004 $as_echo "$supported" >&6; }
   8005 		if test "$supported" = "yes" ; then
   8006 			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
   8007 			found="yes"
   8008 		fi
   8009 	fi
   8010 
   8011 
   8012 
   8013 
   8014 
   8015 
   8016 
   8017 
   8018 
   8019 
   8020 
   8021 
   8022 
   8023 
   8024 
   8025 xorg_testset_save_CFLAGS="$CFLAGS"
   8026 
   8027 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   8028 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8029 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   8030 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   8031 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   8032   $as_echo_n "(cached) " >&6
   8033 else
   8034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8035 /* end confdefs.h.  */
   8036 int i;
   8037 _ACEOF
   8038 if ac_fn_c_try_compile "$LINENO"; then :
   8039   xorg_cv_cc_flag_unknown_warning_option=yes
   8040 else
   8041   xorg_cv_cc_flag_unknown_warning_option=no
   8042 fi
   8043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8044 fi
   8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   8046 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   8047 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   8048 	CFLAGS="$xorg_testset_save_CFLAGS"
   8049 fi
   8050 
   8051 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   8052 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8053 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8054 	fi
   8055 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8056 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   8057 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   8058 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   8059   $as_echo_n "(cached) " >&6
   8060 else
   8061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8062 /* end confdefs.h.  */
   8063 int i;
   8064 _ACEOF
   8065 if ac_fn_c_try_compile "$LINENO"; then :
   8066   xorg_cv_cc_flag_unused_command_line_argument=yes
   8067 else
   8068   xorg_cv_cc_flag_unused_command_line_argument=no
   8069 fi
   8070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8071 fi
   8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   8073 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   8074 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   8075 	CFLAGS="$xorg_testset_save_CFLAGS"
   8076 fi
   8077 
   8078 found="no"
   8079 
   8080 	if test $found = "no" ; then
   8081 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8082 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8083 		fi
   8084 
   8085 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   8086 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8087 		fi
   8088 
   8089 		CFLAGS="$CFLAGS -Werror=write-strings"
   8090 
   8091 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
   8092 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
   8093 		cacheid=xorg_cv_cc_flag__Werror_write_strings
   8094 		if eval \${$cacheid+:} false; then :
   8095   $as_echo_n "(cached) " >&6
   8096 else
   8097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8098 /* end confdefs.h.  */
   8099 int i;
   8100 int
   8101 main ()
   8102 {
   8103 
   8104   ;
   8105   return 0;
   8106 }
   8107 _ACEOF
   8108 if ac_fn_c_try_link "$LINENO"; then :
   8109   eval $cacheid=yes
   8110 else
   8111   eval $cacheid=no
   8112 fi
   8113 rm -f core conftest.err conftest.$ac_objext \
   8114     conftest$ac_exeext conftest.$ac_ext
   8115 fi
   8116 
   8117 
   8118 		CFLAGS="$xorg_testset_save_CFLAGS"
   8119 
   8120 		eval supported=\$$cacheid
   8121 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   8122 $as_echo "$supported" >&6; }
   8123 		if test "$supported" = "yes" ; then
   8124 			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
   8125 			found="yes"
   8126 		fi
   8127 	fi
   8128 
   8129 
   8130 
   8131 
   8132 
   8133 
   8134 
   8135 
   8136 
   8137 
   8138 
   8139 
   8140 
   8141 
   8142 
   8143 xorg_testset_save_CFLAGS="$CFLAGS"
   8144 
   8145 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   8146 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8147 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   8148 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   8149 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   8150   $as_echo_n "(cached) " >&6
   8151 else
   8152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8153 /* end confdefs.h.  */
   8154 int i;
   8155 _ACEOF
   8156 if ac_fn_c_try_compile "$LINENO"; then :
   8157   xorg_cv_cc_flag_unknown_warning_option=yes
   8158 else
   8159   xorg_cv_cc_flag_unknown_warning_option=no
   8160 fi
   8161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8162 fi
   8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   8164 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   8165 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   8166 	CFLAGS="$xorg_testset_save_CFLAGS"
   8167 fi
   8168 
   8169 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   8170 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8171 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8172 	fi
   8173 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8174 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   8175 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   8176 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   8177   $as_echo_n "(cached) " >&6
   8178 else
   8179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8180 /* end confdefs.h.  */
   8181 int i;
   8182 _ACEOF
   8183 if ac_fn_c_try_compile "$LINENO"; then :
   8184   xorg_cv_cc_flag_unused_command_line_argument=yes
   8185 else
   8186   xorg_cv_cc_flag_unused_command_line_argument=no
   8187 fi
   8188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8189 fi
   8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   8191 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   8192 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   8193 	CFLAGS="$xorg_testset_save_CFLAGS"
   8194 fi
   8195 
   8196 found="no"
   8197 
   8198 	if test $found = "no" ; then
   8199 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8200 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8201 		fi
   8202 
   8203 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   8204 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8205 		fi
   8206 
   8207 		CFLAGS="$CFLAGS -Werror=address"
   8208 
   8209 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
   8210 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
   8211 		cacheid=xorg_cv_cc_flag__Werror_address
   8212 		if eval \${$cacheid+:} false; then :
   8213   $as_echo_n "(cached) " >&6
   8214 else
   8215   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8216 /* end confdefs.h.  */
   8217 int i;
   8218 int
   8219 main ()
   8220 {
   8221 
   8222   ;
   8223   return 0;
   8224 }
   8225 _ACEOF
   8226 if ac_fn_c_try_link "$LINENO"; then :
   8227   eval $cacheid=yes
   8228 else
   8229   eval $cacheid=no
   8230 fi
   8231 rm -f core conftest.err conftest.$ac_objext \
   8232     conftest$ac_exeext conftest.$ac_ext
   8233 fi
   8234 
   8235 
   8236 		CFLAGS="$xorg_testset_save_CFLAGS"
   8237 
   8238 		eval supported=\$$cacheid
   8239 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   8240 $as_echo "$supported" >&6; }
   8241 		if test "$supported" = "yes" ; then
   8242 			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
   8243 			found="yes"
   8244 		fi
   8245 	fi
   8246 
   8247 
   8248 
   8249 
   8250 
   8251 
   8252 
   8253 
   8254 
   8255 
   8256 
   8257 
   8258 
   8259 
   8260 
   8261 xorg_testset_save_CFLAGS="$CFLAGS"
   8262 
   8263 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   8264 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8265 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   8266 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   8267 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   8268   $as_echo_n "(cached) " >&6
   8269 else
   8270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8271 /* end confdefs.h.  */
   8272 int i;
   8273 _ACEOF
   8274 if ac_fn_c_try_compile "$LINENO"; then :
   8275   xorg_cv_cc_flag_unknown_warning_option=yes
   8276 else
   8277   xorg_cv_cc_flag_unknown_warning_option=no
   8278 fi
   8279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8280 fi
   8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   8282 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   8283 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   8284 	CFLAGS="$xorg_testset_save_CFLAGS"
   8285 fi
   8286 
   8287 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   8288 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8289 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8290 	fi
   8291 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8292 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   8293 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   8294 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   8295   $as_echo_n "(cached) " >&6
   8296 else
   8297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8298 /* end confdefs.h.  */
   8299 int i;
   8300 _ACEOF
   8301 if ac_fn_c_try_compile "$LINENO"; then :
   8302   xorg_cv_cc_flag_unused_command_line_argument=yes
   8303 else
   8304   xorg_cv_cc_flag_unused_command_line_argument=no
   8305 fi
   8306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8307 fi
   8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   8309 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   8310 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   8311 	CFLAGS="$xorg_testset_save_CFLAGS"
   8312 fi
   8313 
   8314 found="no"
   8315 
   8316 	if test $found = "no" ; then
   8317 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8318 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8319 		fi
   8320 
   8321 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   8322 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8323 		fi
   8324 
   8325 		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
   8326 
   8327 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
   8328 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
   8329 		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
   8330 		if eval \${$cacheid+:} false; then :
   8331   $as_echo_n "(cached) " >&6
   8332 else
   8333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8334 /* end confdefs.h.  */
   8335 int i;
   8336 int
   8337 main ()
   8338 {
   8339 
   8340   ;
   8341   return 0;
   8342 }
   8343 _ACEOF
   8344 if ac_fn_c_try_link "$LINENO"; then :
   8345   eval $cacheid=yes
   8346 else
   8347   eval $cacheid=no
   8348 fi
   8349 rm -f core conftest.err conftest.$ac_objext \
   8350     conftest$ac_exeext conftest.$ac_ext
   8351 fi
   8352 
   8353 
   8354 		CFLAGS="$xorg_testset_save_CFLAGS"
   8355 
   8356 		eval supported=\$$cacheid
   8357 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   8358 $as_echo "$supported" >&6; }
   8359 		if test "$supported" = "yes" ; then
   8360 			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
   8361 			found="yes"
   8362 		fi
   8363 	fi
   8364 
   8365 	if test $found = "no" ; then
   8366 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8367 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8368 		fi
   8369 
   8370 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   8371 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8372 		fi
   8373 
   8374 		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
   8375 
   8376 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
   8377 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
   8378 		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
   8379 		if eval \${$cacheid+:} false; then :
   8380   $as_echo_n "(cached) " >&6
   8381 else
   8382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8383 /* end confdefs.h.  */
   8384 int i;
   8385 int
   8386 main ()
   8387 {
   8388 
   8389   ;
   8390   return 0;
   8391 }
   8392 _ACEOF
   8393 if ac_fn_c_try_link "$LINENO"; then :
   8394   eval $cacheid=yes
   8395 else
   8396   eval $cacheid=no
   8397 fi
   8398 rm -f core conftest.err conftest.$ac_objext \
   8399     conftest$ac_exeext conftest.$ac_ext
   8400 fi
   8401 
   8402 
   8403 		CFLAGS="$xorg_testset_save_CFLAGS"
   8404 
   8405 		eval supported=\$$cacheid
   8406 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   8407 $as_echo "$supported" >&6; }
   8408 		if test "$supported" = "yes" ; then
   8409 			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
   8410 			found="yes"
   8411 		fi
   8412 	fi
   8413 
   8414 
   8415 
   8416 
   8417 
   8418 
   8419 
   8420 
   8421 
   8422 
   8423 
   8424 
   8425 
   8426 
   8427 
   8428 xorg_testset_save_CFLAGS="$CFLAGS"
   8429 
   8430 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   8431 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8432 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   8433 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   8434 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   8435   $as_echo_n "(cached) " >&6
   8436 else
   8437   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8438 /* end confdefs.h.  */
   8439 int i;
   8440 _ACEOF
   8441 if ac_fn_c_try_compile "$LINENO"; then :
   8442   xorg_cv_cc_flag_unknown_warning_option=yes
   8443 else
   8444   xorg_cv_cc_flag_unknown_warning_option=no
   8445 fi
   8446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8447 fi
   8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   8449 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   8450 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   8451 	CFLAGS="$xorg_testset_save_CFLAGS"
   8452 fi
   8453 
   8454 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   8455 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8456 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8457 	fi
   8458 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8459 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   8460 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   8461 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   8462   $as_echo_n "(cached) " >&6
   8463 else
   8464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8465 /* end confdefs.h.  */
   8466 int i;
   8467 _ACEOF
   8468 if ac_fn_c_try_compile "$LINENO"; then :
   8469   xorg_cv_cc_flag_unused_command_line_argument=yes
   8470 else
   8471   xorg_cv_cc_flag_unused_command_line_argument=no
   8472 fi
   8473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8474 fi
   8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   8476 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   8477 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   8478 	CFLAGS="$xorg_testset_save_CFLAGS"
   8479 fi
   8480 
   8481 found="no"
   8482 
   8483 	if test $found = "no" ; then
   8484 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8485 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8486 		fi
   8487 
   8488 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   8489 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8490 		fi
   8491 
   8492 		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
   8493 
   8494 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
   8495 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
   8496 		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
   8497 		if eval \${$cacheid+:} false; then :
   8498   $as_echo_n "(cached) " >&6
   8499 else
   8500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8501 /* end confdefs.h.  */
   8502 int i;
   8503 int
   8504 main ()
   8505 {
   8506 
   8507   ;
   8508   return 0;
   8509 }
   8510 _ACEOF
   8511 if ac_fn_c_try_link "$LINENO"; then :
   8512   eval $cacheid=yes
   8513 else
   8514   eval $cacheid=no
   8515 fi
   8516 rm -f core conftest.err conftest.$ac_objext \
   8517     conftest$ac_exeext conftest.$ac_ext
   8518 fi
   8519 
   8520 
   8521 		CFLAGS="$xorg_testset_save_CFLAGS"
   8522 
   8523 		eval supported=\$$cacheid
   8524 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   8525 $as_echo "$supported" >&6; }
   8526 		if test "$supported" = "yes" ; then
   8527 			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
   8528 			found="yes"
   8529 		fi
   8530 	fi
   8531 
   8532  # Also -errwarn=E_BAD_PTR_INT_COMBINATION
   8533 else
   8534 { $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
   8535 $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;}
   8536 
   8537 
   8538 
   8539 
   8540 
   8541 
   8542 
   8543 
   8544 
   8545 
   8546 
   8547 
   8548 
   8549 xorg_testset_save_CFLAGS="$CFLAGS"
   8550 
   8551 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   8552 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8553 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   8554 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   8555 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   8556   $as_echo_n "(cached) " >&6
   8557 else
   8558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8559 /* end confdefs.h.  */
   8560 int i;
   8561 _ACEOF
   8562 if ac_fn_c_try_compile "$LINENO"; then :
   8563   xorg_cv_cc_flag_unknown_warning_option=yes
   8564 else
   8565   xorg_cv_cc_flag_unknown_warning_option=no
   8566 fi
   8567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8568 fi
   8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   8570 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   8571 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   8572 	CFLAGS="$xorg_testset_save_CFLAGS"
   8573 fi
   8574 
   8575 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   8576 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8577 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8578 	fi
   8579 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8580 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   8581 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   8582 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   8583   $as_echo_n "(cached) " >&6
   8584 else
   8585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8586 /* end confdefs.h.  */
   8587 int i;
   8588 _ACEOF
   8589 if ac_fn_c_try_compile "$LINENO"; then :
   8590   xorg_cv_cc_flag_unused_command_line_argument=yes
   8591 else
   8592   xorg_cv_cc_flag_unused_command_line_argument=no
   8593 fi
   8594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8595 fi
   8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   8597 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   8598 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   8599 	CFLAGS="$xorg_testset_save_CFLAGS"
   8600 fi
   8601 
   8602 found="no"
   8603 
   8604 	if test $found = "no" ; then
   8605 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8606 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8607 		fi
   8608 
   8609 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   8610 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8611 		fi
   8612 
   8613 		CFLAGS="$CFLAGS -Wimplicit"
   8614 
   8615 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
   8616 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
   8617 		cacheid=xorg_cv_cc_flag__Wimplicit
   8618 		if eval \${$cacheid+:} false; then :
   8619   $as_echo_n "(cached) " >&6
   8620 else
   8621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8622 /* end confdefs.h.  */
   8623 int i;
   8624 int
   8625 main ()
   8626 {
   8627 
   8628   ;
   8629   return 0;
   8630 }
   8631 _ACEOF
   8632 if ac_fn_c_try_link "$LINENO"; then :
   8633   eval $cacheid=yes
   8634 else
   8635   eval $cacheid=no
   8636 fi
   8637 rm -f core conftest.err conftest.$ac_objext \
   8638     conftest$ac_exeext conftest.$ac_ext
   8639 fi
   8640 
   8641 
   8642 		CFLAGS="$xorg_testset_save_CFLAGS"
   8643 
   8644 		eval supported=\$$cacheid
   8645 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   8646 $as_echo "$supported" >&6; }
   8647 		if test "$supported" = "yes" ; then
   8648 			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
   8649 			found="yes"
   8650 		fi
   8651 	fi
   8652 
   8653 
   8654 
   8655 
   8656 
   8657 
   8658 
   8659 
   8660 
   8661 
   8662 
   8663 
   8664 
   8665 
   8666 
   8667 xorg_testset_save_CFLAGS="$CFLAGS"
   8668 
   8669 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   8670 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8671 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   8672 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   8673 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   8674   $as_echo_n "(cached) " >&6
   8675 else
   8676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8677 /* end confdefs.h.  */
   8678 int i;
   8679 _ACEOF
   8680 if ac_fn_c_try_compile "$LINENO"; then :
   8681   xorg_cv_cc_flag_unknown_warning_option=yes
   8682 else
   8683   xorg_cv_cc_flag_unknown_warning_option=no
   8684 fi
   8685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8686 fi
   8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   8688 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   8689 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   8690 	CFLAGS="$xorg_testset_save_CFLAGS"
   8691 fi
   8692 
   8693 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   8694 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8695 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8696 	fi
   8697 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8698 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   8699 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   8700 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   8701   $as_echo_n "(cached) " >&6
   8702 else
   8703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8704 /* end confdefs.h.  */
   8705 int i;
   8706 _ACEOF
   8707 if ac_fn_c_try_compile "$LINENO"; then :
   8708   xorg_cv_cc_flag_unused_command_line_argument=yes
   8709 else
   8710   xorg_cv_cc_flag_unused_command_line_argument=no
   8711 fi
   8712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8713 fi
   8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   8715 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   8716 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   8717 	CFLAGS="$xorg_testset_save_CFLAGS"
   8718 fi
   8719 
   8720 found="no"
   8721 
   8722 	if test $found = "no" ; then
   8723 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8724 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8725 		fi
   8726 
   8727 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   8728 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8729 		fi
   8730 
   8731 		CFLAGS="$CFLAGS -Wnonnull"
   8732 
   8733 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
   8734 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
   8735 		cacheid=xorg_cv_cc_flag__Wnonnull
   8736 		if eval \${$cacheid+:} false; then :
   8737   $as_echo_n "(cached) " >&6
   8738 else
   8739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8740 /* end confdefs.h.  */
   8741 int i;
   8742 int
   8743 main ()
   8744 {
   8745 
   8746   ;
   8747   return 0;
   8748 }
   8749 _ACEOF
   8750 if ac_fn_c_try_link "$LINENO"; then :
   8751   eval $cacheid=yes
   8752 else
   8753   eval $cacheid=no
   8754 fi
   8755 rm -f core conftest.err conftest.$ac_objext \
   8756     conftest$ac_exeext conftest.$ac_ext
   8757 fi
   8758 
   8759 
   8760 		CFLAGS="$xorg_testset_save_CFLAGS"
   8761 
   8762 		eval supported=\$$cacheid
   8763 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   8764 $as_echo "$supported" >&6; }
   8765 		if test "$supported" = "yes" ; then
   8766 			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
   8767 			found="yes"
   8768 		fi
   8769 	fi
   8770 
   8771 
   8772 
   8773 
   8774 
   8775 
   8776 
   8777 
   8778 
   8779 
   8780 
   8781 
   8782 
   8783 
   8784 
   8785 xorg_testset_save_CFLAGS="$CFLAGS"
   8786 
   8787 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   8788 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8789 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   8790 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   8791 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   8792   $as_echo_n "(cached) " >&6
   8793 else
   8794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8795 /* end confdefs.h.  */
   8796 int i;
   8797 _ACEOF
   8798 if ac_fn_c_try_compile "$LINENO"; then :
   8799   xorg_cv_cc_flag_unknown_warning_option=yes
   8800 else
   8801   xorg_cv_cc_flag_unknown_warning_option=no
   8802 fi
   8803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8804 fi
   8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   8806 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   8807 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   8808 	CFLAGS="$xorg_testset_save_CFLAGS"
   8809 fi
   8810 
   8811 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   8812 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8813 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8814 	fi
   8815 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8816 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   8817 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   8818 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   8819   $as_echo_n "(cached) " >&6
   8820 else
   8821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8822 /* end confdefs.h.  */
   8823 int i;
   8824 _ACEOF
   8825 if ac_fn_c_try_compile "$LINENO"; then :
   8826   xorg_cv_cc_flag_unused_command_line_argument=yes
   8827 else
   8828   xorg_cv_cc_flag_unused_command_line_argument=no
   8829 fi
   8830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8831 fi
   8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   8833 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   8834 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   8835 	CFLAGS="$xorg_testset_save_CFLAGS"
   8836 fi
   8837 
   8838 found="no"
   8839 
   8840 	if test $found = "no" ; then
   8841 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8842 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8843 		fi
   8844 
   8845 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   8846 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8847 		fi
   8848 
   8849 		CFLAGS="$CFLAGS -Winit-self"
   8850 
   8851 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
   8852 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
   8853 		cacheid=xorg_cv_cc_flag__Winit_self
   8854 		if eval \${$cacheid+:} false; then :
   8855   $as_echo_n "(cached) " >&6
   8856 else
   8857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8858 /* end confdefs.h.  */
   8859 int i;
   8860 int
   8861 main ()
   8862 {
   8863 
   8864   ;
   8865   return 0;
   8866 }
   8867 _ACEOF
   8868 if ac_fn_c_try_link "$LINENO"; then :
   8869   eval $cacheid=yes
   8870 else
   8871   eval $cacheid=no
   8872 fi
   8873 rm -f core conftest.err conftest.$ac_objext \
   8874     conftest$ac_exeext conftest.$ac_ext
   8875 fi
   8876 
   8877 
   8878 		CFLAGS="$xorg_testset_save_CFLAGS"
   8879 
   8880 		eval supported=\$$cacheid
   8881 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   8882 $as_echo "$supported" >&6; }
   8883 		if test "$supported" = "yes" ; then
   8884 			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
   8885 			found="yes"
   8886 		fi
   8887 	fi
   8888 
   8889 
   8890 
   8891 
   8892 
   8893 
   8894 
   8895 
   8896 
   8897 
   8898 
   8899 
   8900 
   8901 
   8902 
   8903 xorg_testset_save_CFLAGS="$CFLAGS"
   8904 
   8905 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   8906 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8907 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   8908 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   8909 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   8910   $as_echo_n "(cached) " >&6
   8911 else
   8912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8913 /* end confdefs.h.  */
   8914 int i;
   8915 _ACEOF
   8916 if ac_fn_c_try_compile "$LINENO"; then :
   8917   xorg_cv_cc_flag_unknown_warning_option=yes
   8918 else
   8919   xorg_cv_cc_flag_unknown_warning_option=no
   8920 fi
   8921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8922 fi
   8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   8924 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   8925 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   8926 	CFLAGS="$xorg_testset_save_CFLAGS"
   8927 fi
   8928 
   8929 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   8930 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8931 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8932 	fi
   8933 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8934 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   8935 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   8936 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   8937   $as_echo_n "(cached) " >&6
   8938 else
   8939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8940 /* end confdefs.h.  */
   8941 int i;
   8942 _ACEOF
   8943 if ac_fn_c_try_compile "$LINENO"; then :
   8944   xorg_cv_cc_flag_unused_command_line_argument=yes
   8945 else
   8946   xorg_cv_cc_flag_unused_command_line_argument=no
   8947 fi
   8948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8949 fi
   8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   8951 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   8952 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   8953 	CFLAGS="$xorg_testset_save_CFLAGS"
   8954 fi
   8955 
   8956 found="no"
   8957 
   8958 	if test $found = "no" ; then
   8959 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8960 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8961 		fi
   8962 
   8963 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   8964 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8965 		fi
   8966 
   8967 		CFLAGS="$CFLAGS -Wmain"
   8968 
   8969 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
   8970 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
   8971 		cacheid=xorg_cv_cc_flag__Wmain
   8972 		if eval \${$cacheid+:} false; then :
   8973   $as_echo_n "(cached) " >&6
   8974 else
   8975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8976 /* end confdefs.h.  */
   8977 int i;
   8978 int
   8979 main ()
   8980 {
   8981 
   8982   ;
   8983   return 0;
   8984 }
   8985 _ACEOF
   8986 if ac_fn_c_try_link "$LINENO"; then :
   8987   eval $cacheid=yes
   8988 else
   8989   eval $cacheid=no
   8990 fi
   8991 rm -f core conftest.err conftest.$ac_objext \
   8992     conftest$ac_exeext conftest.$ac_ext
   8993 fi
   8994 
   8995 
   8996 		CFLAGS="$xorg_testset_save_CFLAGS"
   8997 
   8998 		eval supported=\$$cacheid
   8999 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   9000 $as_echo "$supported" >&6; }
   9001 		if test "$supported" = "yes" ; then
   9002 			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
   9003 			found="yes"
   9004 		fi
   9005 	fi
   9006 
   9007 
   9008 
   9009 
   9010 
   9011 
   9012 
   9013 
   9014 
   9015 
   9016 
   9017 
   9018 
   9019 
   9020 
   9021 xorg_testset_save_CFLAGS="$CFLAGS"
   9022 
   9023 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   9024 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9025 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   9026 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   9027 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   9028   $as_echo_n "(cached) " >&6
   9029 else
   9030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9031 /* end confdefs.h.  */
   9032 int i;
   9033 _ACEOF
   9034 if ac_fn_c_try_compile "$LINENO"; then :
   9035   xorg_cv_cc_flag_unknown_warning_option=yes
   9036 else
   9037   xorg_cv_cc_flag_unknown_warning_option=no
   9038 fi
   9039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9040 fi
   9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   9042 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   9043 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   9044 	CFLAGS="$xorg_testset_save_CFLAGS"
   9045 fi
   9046 
   9047 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   9048 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9049 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9050 	fi
   9051 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9052 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   9053 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   9054 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   9055   $as_echo_n "(cached) " >&6
   9056 else
   9057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9058 /* end confdefs.h.  */
   9059 int i;
   9060 _ACEOF
   9061 if ac_fn_c_try_compile "$LINENO"; then :
   9062   xorg_cv_cc_flag_unused_command_line_argument=yes
   9063 else
   9064   xorg_cv_cc_flag_unused_command_line_argument=no
   9065 fi
   9066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9067 fi
   9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   9069 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   9070 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   9071 	CFLAGS="$xorg_testset_save_CFLAGS"
   9072 fi
   9073 
   9074 found="no"
   9075 
   9076 	if test $found = "no" ; then
   9077 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9078 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9079 		fi
   9080 
   9081 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   9082 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9083 		fi
   9084 
   9085 		CFLAGS="$CFLAGS -Wmissing-braces"
   9086 
   9087 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
   9088 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
   9089 		cacheid=xorg_cv_cc_flag__Wmissing_braces
   9090 		if eval \${$cacheid+:} false; then :
   9091   $as_echo_n "(cached) " >&6
   9092 else
   9093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9094 /* end confdefs.h.  */
   9095 int i;
   9096 int
   9097 main ()
   9098 {
   9099 
   9100   ;
   9101   return 0;
   9102 }
   9103 _ACEOF
   9104 if ac_fn_c_try_link "$LINENO"; then :
   9105   eval $cacheid=yes
   9106 else
   9107   eval $cacheid=no
   9108 fi
   9109 rm -f core conftest.err conftest.$ac_objext \
   9110     conftest$ac_exeext conftest.$ac_ext
   9111 fi
   9112 
   9113 
   9114 		CFLAGS="$xorg_testset_save_CFLAGS"
   9115 
   9116 		eval supported=\$$cacheid
   9117 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   9118 $as_echo "$supported" >&6; }
   9119 		if test "$supported" = "yes" ; then
   9120 			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
   9121 			found="yes"
   9122 		fi
   9123 	fi
   9124 
   9125 
   9126 
   9127 
   9128 
   9129 
   9130 
   9131 
   9132 
   9133 
   9134 
   9135 
   9136 
   9137 
   9138 
   9139 xorg_testset_save_CFLAGS="$CFLAGS"
   9140 
   9141 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   9142 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9143 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   9144 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   9145 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   9146   $as_echo_n "(cached) " >&6
   9147 else
   9148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9149 /* end confdefs.h.  */
   9150 int i;
   9151 _ACEOF
   9152 if ac_fn_c_try_compile "$LINENO"; then :
   9153   xorg_cv_cc_flag_unknown_warning_option=yes
   9154 else
   9155   xorg_cv_cc_flag_unknown_warning_option=no
   9156 fi
   9157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9158 fi
   9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   9160 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   9161 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   9162 	CFLAGS="$xorg_testset_save_CFLAGS"
   9163 fi
   9164 
   9165 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   9166 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9167 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9168 	fi
   9169 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9170 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   9171 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   9172 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   9173   $as_echo_n "(cached) " >&6
   9174 else
   9175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9176 /* end confdefs.h.  */
   9177 int i;
   9178 _ACEOF
   9179 if ac_fn_c_try_compile "$LINENO"; then :
   9180   xorg_cv_cc_flag_unused_command_line_argument=yes
   9181 else
   9182   xorg_cv_cc_flag_unused_command_line_argument=no
   9183 fi
   9184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9185 fi
   9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   9187 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   9188 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   9189 	CFLAGS="$xorg_testset_save_CFLAGS"
   9190 fi
   9191 
   9192 found="no"
   9193 
   9194 	if test $found = "no" ; then
   9195 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9196 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9197 		fi
   9198 
   9199 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   9200 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9201 		fi
   9202 
   9203 		CFLAGS="$CFLAGS -Wsequence-point"
   9204 
   9205 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
   9206 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
   9207 		cacheid=xorg_cv_cc_flag__Wsequence_point
   9208 		if eval \${$cacheid+:} false; then :
   9209   $as_echo_n "(cached) " >&6
   9210 else
   9211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9212 /* end confdefs.h.  */
   9213 int i;
   9214 int
   9215 main ()
   9216 {
   9217 
   9218   ;
   9219   return 0;
   9220 }
   9221 _ACEOF
   9222 if ac_fn_c_try_link "$LINENO"; then :
   9223   eval $cacheid=yes
   9224 else
   9225   eval $cacheid=no
   9226 fi
   9227 rm -f core conftest.err conftest.$ac_objext \
   9228     conftest$ac_exeext conftest.$ac_ext
   9229 fi
   9230 
   9231 
   9232 		CFLAGS="$xorg_testset_save_CFLAGS"
   9233 
   9234 		eval supported=\$$cacheid
   9235 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   9236 $as_echo "$supported" >&6; }
   9237 		if test "$supported" = "yes" ; then
   9238 			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
   9239 			found="yes"
   9240 		fi
   9241 	fi
   9242 
   9243 
   9244 
   9245 
   9246 
   9247 
   9248 
   9249 
   9250 
   9251 
   9252 
   9253 
   9254 
   9255 
   9256 
   9257 xorg_testset_save_CFLAGS="$CFLAGS"
   9258 
   9259 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   9260 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9261 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   9262 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   9263 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   9264   $as_echo_n "(cached) " >&6
   9265 else
   9266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9267 /* end confdefs.h.  */
   9268 int i;
   9269 _ACEOF
   9270 if ac_fn_c_try_compile "$LINENO"; then :
   9271   xorg_cv_cc_flag_unknown_warning_option=yes
   9272 else
   9273   xorg_cv_cc_flag_unknown_warning_option=no
   9274 fi
   9275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9276 fi
   9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   9278 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   9279 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   9280 	CFLAGS="$xorg_testset_save_CFLAGS"
   9281 fi
   9282 
   9283 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   9284 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9285 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9286 	fi
   9287 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9288 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   9289 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   9290 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   9291   $as_echo_n "(cached) " >&6
   9292 else
   9293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9294 /* end confdefs.h.  */
   9295 int i;
   9296 _ACEOF
   9297 if ac_fn_c_try_compile "$LINENO"; then :
   9298   xorg_cv_cc_flag_unused_command_line_argument=yes
   9299 else
   9300   xorg_cv_cc_flag_unused_command_line_argument=no
   9301 fi
   9302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9303 fi
   9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   9305 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   9306 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   9307 	CFLAGS="$xorg_testset_save_CFLAGS"
   9308 fi
   9309 
   9310 found="no"
   9311 
   9312 	if test $found = "no" ; then
   9313 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9314 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9315 		fi
   9316 
   9317 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   9318 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9319 		fi
   9320 
   9321 		CFLAGS="$CFLAGS -Wreturn-type"
   9322 
   9323 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
   9324 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
   9325 		cacheid=xorg_cv_cc_flag__Wreturn_type
   9326 		if eval \${$cacheid+:} false; then :
   9327   $as_echo_n "(cached) " >&6
   9328 else
   9329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9330 /* end confdefs.h.  */
   9331 int i;
   9332 int
   9333 main ()
   9334 {
   9335 
   9336   ;
   9337   return 0;
   9338 }
   9339 _ACEOF
   9340 if ac_fn_c_try_link "$LINENO"; then :
   9341   eval $cacheid=yes
   9342 else
   9343   eval $cacheid=no
   9344 fi
   9345 rm -f core conftest.err conftest.$ac_objext \
   9346     conftest$ac_exeext conftest.$ac_ext
   9347 fi
   9348 
   9349 
   9350 		CFLAGS="$xorg_testset_save_CFLAGS"
   9351 
   9352 		eval supported=\$$cacheid
   9353 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   9354 $as_echo "$supported" >&6; }
   9355 		if test "$supported" = "yes" ; then
   9356 			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
   9357 			found="yes"
   9358 		fi
   9359 	fi
   9360 
   9361 
   9362 
   9363 
   9364 
   9365 
   9366 
   9367 
   9368 
   9369 
   9370 
   9371 
   9372 
   9373 
   9374 
   9375 xorg_testset_save_CFLAGS="$CFLAGS"
   9376 
   9377 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   9378 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9379 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   9380 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   9381 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   9382   $as_echo_n "(cached) " >&6
   9383 else
   9384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9385 /* end confdefs.h.  */
   9386 int i;
   9387 _ACEOF
   9388 if ac_fn_c_try_compile "$LINENO"; then :
   9389   xorg_cv_cc_flag_unknown_warning_option=yes
   9390 else
   9391   xorg_cv_cc_flag_unknown_warning_option=no
   9392 fi
   9393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9394 fi
   9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   9396 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   9397 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   9398 	CFLAGS="$xorg_testset_save_CFLAGS"
   9399 fi
   9400 
   9401 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   9402 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9403 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9404 	fi
   9405 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9406 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   9407 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   9408 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   9409   $as_echo_n "(cached) " >&6
   9410 else
   9411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9412 /* end confdefs.h.  */
   9413 int i;
   9414 _ACEOF
   9415 if ac_fn_c_try_compile "$LINENO"; then :
   9416   xorg_cv_cc_flag_unused_command_line_argument=yes
   9417 else
   9418   xorg_cv_cc_flag_unused_command_line_argument=no
   9419 fi
   9420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9421 fi
   9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   9423 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   9424 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   9425 	CFLAGS="$xorg_testset_save_CFLAGS"
   9426 fi
   9427 
   9428 found="no"
   9429 
   9430 	if test $found = "no" ; then
   9431 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9432 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9433 		fi
   9434 
   9435 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   9436 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9437 		fi
   9438 
   9439 		CFLAGS="$CFLAGS -Wtrigraphs"
   9440 
   9441 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
   9442 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
   9443 		cacheid=xorg_cv_cc_flag__Wtrigraphs
   9444 		if eval \${$cacheid+:} false; then :
   9445   $as_echo_n "(cached) " >&6
   9446 else
   9447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9448 /* end confdefs.h.  */
   9449 int i;
   9450 int
   9451 main ()
   9452 {
   9453 
   9454   ;
   9455   return 0;
   9456 }
   9457 _ACEOF
   9458 if ac_fn_c_try_link "$LINENO"; then :
   9459   eval $cacheid=yes
   9460 else
   9461   eval $cacheid=no
   9462 fi
   9463 rm -f core conftest.err conftest.$ac_objext \
   9464     conftest$ac_exeext conftest.$ac_ext
   9465 fi
   9466 
   9467 
   9468 		CFLAGS="$xorg_testset_save_CFLAGS"
   9469 
   9470 		eval supported=\$$cacheid
   9471 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   9472 $as_echo "$supported" >&6; }
   9473 		if test "$supported" = "yes" ; then
   9474 			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
   9475 			found="yes"
   9476 		fi
   9477 	fi
   9478 
   9479 
   9480 
   9481 
   9482 
   9483 
   9484 
   9485 
   9486 
   9487 
   9488 
   9489 
   9490 
   9491 
   9492 
   9493 xorg_testset_save_CFLAGS="$CFLAGS"
   9494 
   9495 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   9496 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9497 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   9498 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   9499 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   9500   $as_echo_n "(cached) " >&6
   9501 else
   9502   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9503 /* end confdefs.h.  */
   9504 int i;
   9505 _ACEOF
   9506 if ac_fn_c_try_compile "$LINENO"; then :
   9507   xorg_cv_cc_flag_unknown_warning_option=yes
   9508 else
   9509   xorg_cv_cc_flag_unknown_warning_option=no
   9510 fi
   9511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9512 fi
   9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   9514 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   9515 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   9516 	CFLAGS="$xorg_testset_save_CFLAGS"
   9517 fi
   9518 
   9519 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   9520 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9521 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9522 	fi
   9523 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9524 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   9525 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   9526 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   9527   $as_echo_n "(cached) " >&6
   9528 else
   9529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9530 /* end confdefs.h.  */
   9531 int i;
   9532 _ACEOF
   9533 if ac_fn_c_try_compile "$LINENO"; then :
   9534   xorg_cv_cc_flag_unused_command_line_argument=yes
   9535 else
   9536   xorg_cv_cc_flag_unused_command_line_argument=no
   9537 fi
   9538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9539 fi
   9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   9541 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   9542 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   9543 	CFLAGS="$xorg_testset_save_CFLAGS"
   9544 fi
   9545 
   9546 found="no"
   9547 
   9548 	if test $found = "no" ; then
   9549 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9550 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9551 		fi
   9552 
   9553 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   9554 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9555 		fi
   9556 
   9557 		CFLAGS="$CFLAGS -Warray-bounds"
   9558 
   9559 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
   9560 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
   9561 		cacheid=xorg_cv_cc_flag__Warray_bounds
   9562 		if eval \${$cacheid+:} false; then :
   9563   $as_echo_n "(cached) " >&6
   9564 else
   9565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9566 /* end confdefs.h.  */
   9567 int i;
   9568 int
   9569 main ()
   9570 {
   9571 
   9572   ;
   9573   return 0;
   9574 }
   9575 _ACEOF
   9576 if ac_fn_c_try_link "$LINENO"; then :
   9577   eval $cacheid=yes
   9578 else
   9579   eval $cacheid=no
   9580 fi
   9581 rm -f core conftest.err conftest.$ac_objext \
   9582     conftest$ac_exeext conftest.$ac_ext
   9583 fi
   9584 
   9585 
   9586 		CFLAGS="$xorg_testset_save_CFLAGS"
   9587 
   9588 		eval supported=\$$cacheid
   9589 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   9590 $as_echo "$supported" >&6; }
   9591 		if test "$supported" = "yes" ; then
   9592 			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
   9593 			found="yes"
   9594 		fi
   9595 	fi
   9596 
   9597 
   9598 
   9599 
   9600 
   9601 
   9602 
   9603 
   9604 
   9605 
   9606 
   9607 
   9608 
   9609 
   9610 
   9611 xorg_testset_save_CFLAGS="$CFLAGS"
   9612 
   9613 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   9614 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9615 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   9616 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   9617 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   9618   $as_echo_n "(cached) " >&6
   9619 else
   9620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9621 /* end confdefs.h.  */
   9622 int i;
   9623 _ACEOF
   9624 if ac_fn_c_try_compile "$LINENO"; then :
   9625   xorg_cv_cc_flag_unknown_warning_option=yes
   9626 else
   9627   xorg_cv_cc_flag_unknown_warning_option=no
   9628 fi
   9629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9630 fi
   9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   9632 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   9633 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   9634 	CFLAGS="$xorg_testset_save_CFLAGS"
   9635 fi
   9636 
   9637 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   9638 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9639 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9640 	fi
   9641 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9642 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   9643 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   9644 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   9645   $as_echo_n "(cached) " >&6
   9646 else
   9647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9648 /* end confdefs.h.  */
   9649 int i;
   9650 _ACEOF
   9651 if ac_fn_c_try_compile "$LINENO"; then :
   9652   xorg_cv_cc_flag_unused_command_line_argument=yes
   9653 else
   9654   xorg_cv_cc_flag_unused_command_line_argument=no
   9655 fi
   9656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9657 fi
   9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   9659 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   9660 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   9661 	CFLAGS="$xorg_testset_save_CFLAGS"
   9662 fi
   9663 
   9664 found="no"
   9665 
   9666 	if test $found = "no" ; then
   9667 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9668 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9669 		fi
   9670 
   9671 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   9672 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9673 		fi
   9674 
   9675 		CFLAGS="$CFLAGS -Wwrite-strings"
   9676 
   9677 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
   9678 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
   9679 		cacheid=xorg_cv_cc_flag__Wwrite_strings
   9680 		if eval \${$cacheid+:} false; then :
   9681   $as_echo_n "(cached) " >&6
   9682 else
   9683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9684 /* end confdefs.h.  */
   9685 int i;
   9686 int
   9687 main ()
   9688 {
   9689 
   9690   ;
   9691   return 0;
   9692 }
   9693 _ACEOF
   9694 if ac_fn_c_try_link "$LINENO"; then :
   9695   eval $cacheid=yes
   9696 else
   9697   eval $cacheid=no
   9698 fi
   9699 rm -f core conftest.err conftest.$ac_objext \
   9700     conftest$ac_exeext conftest.$ac_ext
   9701 fi
   9702 
   9703 
   9704 		CFLAGS="$xorg_testset_save_CFLAGS"
   9705 
   9706 		eval supported=\$$cacheid
   9707 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   9708 $as_echo "$supported" >&6; }
   9709 		if test "$supported" = "yes" ; then
   9710 			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
   9711 			found="yes"
   9712 		fi
   9713 	fi
   9714 
   9715 
   9716 
   9717 
   9718 
   9719 
   9720 
   9721 
   9722 
   9723 
   9724 
   9725 
   9726 
   9727 
   9728 
   9729 xorg_testset_save_CFLAGS="$CFLAGS"
   9730 
   9731 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   9732 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9733 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   9734 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   9735 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   9736   $as_echo_n "(cached) " >&6
   9737 else
   9738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9739 /* end confdefs.h.  */
   9740 int i;
   9741 _ACEOF
   9742 if ac_fn_c_try_compile "$LINENO"; then :
   9743   xorg_cv_cc_flag_unknown_warning_option=yes
   9744 else
   9745   xorg_cv_cc_flag_unknown_warning_option=no
   9746 fi
   9747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9748 fi
   9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   9750 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   9751 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   9752 	CFLAGS="$xorg_testset_save_CFLAGS"
   9753 fi
   9754 
   9755 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   9756 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9757 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9758 	fi
   9759 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9760 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   9761 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   9762 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   9763   $as_echo_n "(cached) " >&6
   9764 else
   9765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9766 /* end confdefs.h.  */
   9767 int i;
   9768 _ACEOF
   9769 if ac_fn_c_try_compile "$LINENO"; then :
   9770   xorg_cv_cc_flag_unused_command_line_argument=yes
   9771 else
   9772   xorg_cv_cc_flag_unused_command_line_argument=no
   9773 fi
   9774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9775 fi
   9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   9777 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   9778 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   9779 	CFLAGS="$xorg_testset_save_CFLAGS"
   9780 fi
   9781 
   9782 found="no"
   9783 
   9784 	if test $found = "no" ; then
   9785 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9786 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9787 		fi
   9788 
   9789 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   9790 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9791 		fi
   9792 
   9793 		CFLAGS="$CFLAGS -Waddress"
   9794 
   9795 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
   9796 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
   9797 		cacheid=xorg_cv_cc_flag__Waddress
   9798 		if eval \${$cacheid+:} false; then :
   9799   $as_echo_n "(cached) " >&6
   9800 else
   9801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9802 /* end confdefs.h.  */
   9803 int i;
   9804 int
   9805 main ()
   9806 {
   9807 
   9808   ;
   9809   return 0;
   9810 }
   9811 _ACEOF
   9812 if ac_fn_c_try_link "$LINENO"; then :
   9813   eval $cacheid=yes
   9814 else
   9815   eval $cacheid=no
   9816 fi
   9817 rm -f core conftest.err conftest.$ac_objext \
   9818     conftest$ac_exeext conftest.$ac_ext
   9819 fi
   9820 
   9821 
   9822 		CFLAGS="$xorg_testset_save_CFLAGS"
   9823 
   9824 		eval supported=\$$cacheid
   9825 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   9826 $as_echo "$supported" >&6; }
   9827 		if test "$supported" = "yes" ; then
   9828 			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
   9829 			found="yes"
   9830 		fi
   9831 	fi
   9832 
   9833 
   9834 
   9835 
   9836 
   9837 
   9838 
   9839 
   9840 
   9841 
   9842 
   9843 
   9844 
   9845 
   9846 
   9847 xorg_testset_save_CFLAGS="$CFLAGS"
   9848 
   9849 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   9850 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9851 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   9852 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   9853 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   9854   $as_echo_n "(cached) " >&6
   9855 else
   9856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9857 /* end confdefs.h.  */
   9858 int i;
   9859 _ACEOF
   9860 if ac_fn_c_try_compile "$LINENO"; then :
   9861   xorg_cv_cc_flag_unknown_warning_option=yes
   9862 else
   9863   xorg_cv_cc_flag_unknown_warning_option=no
   9864 fi
   9865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9866 fi
   9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   9868 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   9869 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   9870 	CFLAGS="$xorg_testset_save_CFLAGS"
   9871 fi
   9872 
   9873 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   9874 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9875 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9876 	fi
   9877 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9878 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   9879 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   9880 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   9881   $as_echo_n "(cached) " >&6
   9882 else
   9883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9884 /* end confdefs.h.  */
   9885 int i;
   9886 _ACEOF
   9887 if ac_fn_c_try_compile "$LINENO"; then :
   9888   xorg_cv_cc_flag_unused_command_line_argument=yes
   9889 else
   9890   xorg_cv_cc_flag_unused_command_line_argument=no
   9891 fi
   9892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9893 fi
   9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   9895 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   9896 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   9897 	CFLAGS="$xorg_testset_save_CFLAGS"
   9898 fi
   9899 
   9900 found="no"
   9901 
   9902 	if test $found = "no" ; then
   9903 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9904 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9905 		fi
   9906 
   9907 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   9908 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9909 		fi
   9910 
   9911 		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
   9912 
   9913 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
   9914 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
   9915 		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
   9916 		if eval \${$cacheid+:} false; then :
   9917   $as_echo_n "(cached) " >&6
   9918 else
   9919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9920 /* end confdefs.h.  */
   9921 int i;
   9922 int
   9923 main ()
   9924 {
   9925 
   9926   ;
   9927   return 0;
   9928 }
   9929 _ACEOF
   9930 if ac_fn_c_try_link "$LINENO"; then :
   9931   eval $cacheid=yes
   9932 else
   9933   eval $cacheid=no
   9934 fi
   9935 rm -f core conftest.err conftest.$ac_objext \
   9936     conftest$ac_exeext conftest.$ac_ext
   9937 fi
   9938 
   9939 
   9940 		CFLAGS="$xorg_testset_save_CFLAGS"
   9941 
   9942 		eval supported=\$$cacheid
   9943 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   9944 $as_echo "$supported" >&6; }
   9945 		if test "$supported" = "yes" ; then
   9946 			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
   9947 			found="yes"
   9948 		fi
   9949 	fi
   9950 
   9951 
   9952 
   9953 
   9954 
   9955 
   9956 
   9957 
   9958 
   9959 
   9960 
   9961 
   9962 
   9963 
   9964 
   9965 xorg_testset_save_CFLAGS="$CFLAGS"
   9966 
   9967 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   9968 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9969 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   9970 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   9971 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   9972   $as_echo_n "(cached) " >&6
   9973 else
   9974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9975 /* end confdefs.h.  */
   9976 int i;
   9977 _ACEOF
   9978 if ac_fn_c_try_compile "$LINENO"; then :
   9979   xorg_cv_cc_flag_unknown_warning_option=yes
   9980 else
   9981   xorg_cv_cc_flag_unknown_warning_option=no
   9982 fi
   9983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9984 fi
   9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   9986 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   9987 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   9988 	CFLAGS="$xorg_testset_save_CFLAGS"
   9989 fi
   9990 
   9991 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   9992 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9993 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9994 	fi
   9995 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9996 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   9997 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   9998 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   9999   $as_echo_n "(cached) " >&6
   10000 else
   10001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10002 /* end confdefs.h.  */
   10003 int i;
   10004 _ACEOF
   10005 if ac_fn_c_try_compile "$LINENO"; then :
   10006   xorg_cv_cc_flag_unused_command_line_argument=yes
   10007 else
   10008   xorg_cv_cc_flag_unused_command_line_argument=no
   10009 fi
   10010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10011 fi
   10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   10013 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   10014 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   10015 	CFLAGS="$xorg_testset_save_CFLAGS"
   10016 fi
   10017 
   10018 found="no"
   10019 
   10020 	if test $found = "no" ; then
   10021 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10022 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10023 		fi
   10024 
   10025 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   10026 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10027 		fi
   10028 
   10029 		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
   10030 
   10031 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
   10032 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
   10033 		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
   10034 		if eval \${$cacheid+:} false; then :
   10035   $as_echo_n "(cached) " >&6
   10036 else
   10037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10038 /* end confdefs.h.  */
   10039 int i;
   10040 int
   10041 main ()
   10042 {
   10043 
   10044   ;
   10045   return 0;
   10046 }
   10047 _ACEOF
   10048 if ac_fn_c_try_link "$LINENO"; then :
   10049   eval $cacheid=yes
   10050 else
   10051   eval $cacheid=no
   10052 fi
   10053 rm -f core conftest.err conftest.$ac_objext \
   10054     conftest$ac_exeext conftest.$ac_ext
   10055 fi
   10056 
   10057 
   10058 		CFLAGS="$xorg_testset_save_CFLAGS"
   10059 
   10060 		eval supported=\$$cacheid
   10061 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   10062 $as_echo "$supported" >&6; }
   10063 		if test "$supported" = "yes" ; then
   10064 			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
   10065 			found="yes"
   10066 		fi
   10067 	fi
   10068 
   10069 
   10070 fi
   10071 
   10072 
   10073 
   10074 
   10075 
   10076 
   10077 
   10078 		CWARNFLAGS="$BASE_CFLAGS"
   10079 		if  test "x$GCC" = xyes ; then
   10080 		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
   10081 		fi
   10082 
   10083 
   10084 
   10085 
   10086 
   10087 
   10088 
   10089 
   10090 # Check whether --enable-strict-compilation was given.
   10091 if test "${enable_strict_compilation+set}" = set; then :
   10092   enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
   10093 else
   10094   STRICT_COMPILE=no
   10095 fi
   10096 
   10097 
   10098 
   10099 
   10100 
   10101 
   10102 STRICT_CFLAGS=""
   10103 
   10104 
   10105 
   10106 
   10107 
   10108 
   10109 
   10110 
   10111 
   10112 
   10113 
   10114 
   10115 
   10116 xorg_testset_save_CFLAGS="$CFLAGS"
   10117 
   10118 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   10119 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10120 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   10121 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   10122 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   10123   $as_echo_n "(cached) " >&6
   10124 else
   10125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10126 /* end confdefs.h.  */
   10127 int i;
   10128 _ACEOF
   10129 if ac_fn_c_try_compile "$LINENO"; then :
   10130   xorg_cv_cc_flag_unknown_warning_option=yes
   10131 else
   10132   xorg_cv_cc_flag_unknown_warning_option=no
   10133 fi
   10134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10135 fi
   10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   10137 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   10138 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   10139 	CFLAGS="$xorg_testset_save_CFLAGS"
   10140 fi
   10141 
   10142 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   10143 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10144 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10145 	fi
   10146 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10147 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   10148 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   10149 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   10150   $as_echo_n "(cached) " >&6
   10151 else
   10152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10153 /* end confdefs.h.  */
   10154 int i;
   10155 _ACEOF
   10156 if ac_fn_c_try_compile "$LINENO"; then :
   10157   xorg_cv_cc_flag_unused_command_line_argument=yes
   10158 else
   10159   xorg_cv_cc_flag_unused_command_line_argument=no
   10160 fi
   10161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10162 fi
   10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   10164 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   10165 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   10166 	CFLAGS="$xorg_testset_save_CFLAGS"
   10167 fi
   10168 
   10169 found="no"
   10170 
   10171 	if test $found = "no" ; then
   10172 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10173 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10174 		fi
   10175 
   10176 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   10177 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10178 		fi
   10179 
   10180 		CFLAGS="$CFLAGS -pedantic"
   10181 
   10182 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
   10183 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
   10184 		cacheid=xorg_cv_cc_flag__pedantic
   10185 		if eval \${$cacheid+:} false; then :
   10186   $as_echo_n "(cached) " >&6
   10187 else
   10188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10189 /* end confdefs.h.  */
   10190 int i;
   10191 int
   10192 main ()
   10193 {
   10194 
   10195   ;
   10196   return 0;
   10197 }
   10198 _ACEOF
   10199 if ac_fn_c_try_link "$LINENO"; then :
   10200   eval $cacheid=yes
   10201 else
   10202   eval $cacheid=no
   10203 fi
   10204 rm -f core conftest.err conftest.$ac_objext \
   10205     conftest$ac_exeext conftest.$ac_ext
   10206 fi
   10207 
   10208 
   10209 		CFLAGS="$xorg_testset_save_CFLAGS"
   10210 
   10211 		eval supported=\$$cacheid
   10212 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   10213 $as_echo "$supported" >&6; }
   10214 		if test "$supported" = "yes" ; then
   10215 			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
   10216 			found="yes"
   10217 		fi
   10218 	fi
   10219 
   10220 
   10221 
   10222 
   10223 
   10224 
   10225 
   10226 
   10227 
   10228 
   10229 
   10230 
   10231 
   10232 
   10233 
   10234 xorg_testset_save_CFLAGS="$CFLAGS"
   10235 
   10236 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   10237 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10238 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   10239 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   10240 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   10241   $as_echo_n "(cached) " >&6
   10242 else
   10243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10244 /* end confdefs.h.  */
   10245 int i;
   10246 _ACEOF
   10247 if ac_fn_c_try_compile "$LINENO"; then :
   10248   xorg_cv_cc_flag_unknown_warning_option=yes
   10249 else
   10250   xorg_cv_cc_flag_unknown_warning_option=no
   10251 fi
   10252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10253 fi
   10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   10255 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   10256 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   10257 	CFLAGS="$xorg_testset_save_CFLAGS"
   10258 fi
   10259 
   10260 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   10261 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10262 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10263 	fi
   10264 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10265 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   10266 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   10267 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   10268   $as_echo_n "(cached) " >&6
   10269 else
   10270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10271 /* end confdefs.h.  */
   10272 int i;
   10273 _ACEOF
   10274 if ac_fn_c_try_compile "$LINENO"; then :
   10275   xorg_cv_cc_flag_unused_command_line_argument=yes
   10276 else
   10277   xorg_cv_cc_flag_unused_command_line_argument=no
   10278 fi
   10279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10280 fi
   10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   10282 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   10283 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   10284 	CFLAGS="$xorg_testset_save_CFLAGS"
   10285 fi
   10286 
   10287 found="no"
   10288 
   10289 	if test $found = "no" ; then
   10290 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10291 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10292 		fi
   10293 
   10294 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   10295 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10296 		fi
   10297 
   10298 		CFLAGS="$CFLAGS -Werror"
   10299 
   10300 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
   10301 $as_echo_n "checking if $CC supports -Werror... " >&6; }
   10302 		cacheid=xorg_cv_cc_flag__Werror
   10303 		if eval \${$cacheid+:} false; then :
   10304   $as_echo_n "(cached) " >&6
   10305 else
   10306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10307 /* end confdefs.h.  */
   10308 int i;
   10309 int
   10310 main ()
   10311 {
   10312 
   10313   ;
   10314   return 0;
   10315 }
   10316 _ACEOF
   10317 if ac_fn_c_try_link "$LINENO"; then :
   10318   eval $cacheid=yes
   10319 else
   10320   eval $cacheid=no
   10321 fi
   10322 rm -f core conftest.err conftest.$ac_objext \
   10323     conftest$ac_exeext conftest.$ac_ext
   10324 fi
   10325 
   10326 
   10327 		CFLAGS="$xorg_testset_save_CFLAGS"
   10328 
   10329 		eval supported=\$$cacheid
   10330 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   10331 $as_echo "$supported" >&6; }
   10332 		if test "$supported" = "yes" ; then
   10333 			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
   10334 			found="yes"
   10335 		fi
   10336 	fi
   10337 
   10338 	if test $found = "no" ; then
   10339 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10340 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10341 		fi
   10342 
   10343 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   10344 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10345 		fi
   10346 
   10347 		CFLAGS="$CFLAGS -errwarn"
   10348 
   10349 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
   10350 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
   10351 		cacheid=xorg_cv_cc_flag__errwarn
   10352 		if eval \${$cacheid+:} false; then :
   10353   $as_echo_n "(cached) " >&6
   10354 else
   10355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10356 /* end confdefs.h.  */
   10357 int i;
   10358 int
   10359 main ()
   10360 {
   10361 
   10362   ;
   10363   return 0;
   10364 }
   10365 _ACEOF
   10366 if ac_fn_c_try_link "$LINENO"; then :
   10367   eval $cacheid=yes
   10368 else
   10369   eval $cacheid=no
   10370 fi
   10371 rm -f core conftest.err conftest.$ac_objext \
   10372     conftest$ac_exeext conftest.$ac_ext
   10373 fi
   10374 
   10375 
   10376 		CFLAGS="$xorg_testset_save_CFLAGS"
   10377 
   10378 		eval supported=\$$cacheid
   10379 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   10380 $as_echo "$supported" >&6; }
   10381 		if test "$supported" = "yes" ; then
   10382 			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
   10383 			found="yes"
   10384 		fi
   10385 	fi
   10386 
   10387 
   10388 
   10389 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
   10390 # activate it with -Werror, so we add it here explicitly.
   10391 
   10392 
   10393 
   10394 
   10395 
   10396 
   10397 
   10398 
   10399 
   10400 
   10401 
   10402 
   10403 
   10404 xorg_testset_save_CFLAGS="$CFLAGS"
   10405 
   10406 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   10407 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10408 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   10409 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   10410 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
   10411   $as_echo_n "(cached) " >&6
   10412 else
   10413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10414 /* end confdefs.h.  */
   10415 int i;
   10416 _ACEOF
   10417 if ac_fn_c_try_compile "$LINENO"; then :
   10418   xorg_cv_cc_flag_unknown_warning_option=yes
   10419 else
   10420   xorg_cv_cc_flag_unknown_warning_option=no
   10421 fi
   10422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10423 fi
   10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   10425 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   10426 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   10427 	CFLAGS="$xorg_testset_save_CFLAGS"
   10428 fi
   10429 
   10430 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   10431 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10432 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10433 	fi
   10434 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10435 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   10436 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   10437 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
   10438   $as_echo_n "(cached) " >&6
   10439 else
   10440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10441 /* end confdefs.h.  */
   10442 int i;
   10443 _ACEOF
   10444 if ac_fn_c_try_compile "$LINENO"; then :
   10445   xorg_cv_cc_flag_unused_command_line_argument=yes
   10446 else
   10447   xorg_cv_cc_flag_unused_command_line_argument=no
   10448 fi
   10449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10450 fi
   10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   10452 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   10453 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   10454 	CFLAGS="$xorg_testset_save_CFLAGS"
   10455 fi
   10456 
   10457 found="no"
   10458 
   10459 	if test $found = "no" ; then
   10460 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10461 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10462 		fi
   10463 
   10464 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   10465 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10466 		fi
   10467 
   10468 		CFLAGS="$CFLAGS -Werror=attributes"
   10469 
   10470 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
   10471 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
   10472 		cacheid=xorg_cv_cc_flag__Werror_attributes
   10473 		if eval \${$cacheid+:} false; then :
   10474   $as_echo_n "(cached) " >&6
   10475 else
   10476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10477 /* end confdefs.h.  */
   10478 int i;
   10479 int
   10480 main ()
   10481 {
   10482 
   10483   ;
   10484   return 0;
   10485 }
   10486 _ACEOF
   10487 if ac_fn_c_try_link "$LINENO"; then :
   10488   eval $cacheid=yes
   10489 else
   10490   eval $cacheid=no
   10491 fi
   10492 rm -f core conftest.err conftest.$ac_objext \
   10493     conftest$ac_exeext conftest.$ac_ext
   10494 fi
   10495 
   10496 
   10497 		CFLAGS="$xorg_testset_save_CFLAGS"
   10498 
   10499 		eval supported=\$$cacheid
   10500 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   10501 $as_echo "$supported" >&6; }
   10502 		if test "$supported" = "yes" ; then
   10503 			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
   10504 			found="yes"
   10505 		fi
   10506 	fi
   10507 
   10508 
   10509 
   10510 if test "x$STRICT_COMPILE" = "xyes"; then
   10511     BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
   10512     CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
   10513 fi
   10514 
   10515 
   10516 
   10517 
   10518 
   10519 
   10520 cat >>confdefs.h <<_ACEOF
   10521 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
   10522 _ACEOF
   10523 
   10524 	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
   10525 	if test "x$PVM" = "x"; then
   10526 		PVM="0"
   10527 	fi
   10528 
   10529 cat >>confdefs.h <<_ACEOF
   10530 #define PACKAGE_VERSION_MINOR $PVM
   10531 _ACEOF
   10532 
   10533 	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
   10534 	if test "x$PVP" = "x"; then
   10535 		PVP="0"
   10536 	fi
   10537 
   10538 cat >>confdefs.h <<_ACEOF
   10539 #define PACKAGE_VERSION_PATCHLEVEL $PVP
   10540 _ACEOF
   10541 
   10542 
   10543 
   10544 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
   10545 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
   10546 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
   10547 echo 'git directory not found: installing possibly empty changelog.' >&2)"
   10548 
   10549 
   10550 
   10551 
   10552 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
   10553 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
   10554 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
   10555 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
   10556 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
   10557 
   10558 
   10559 
   10560 
   10561 
   10562 
   10563 if test x$APP_MAN_SUFFIX = x    ; then
   10564     APP_MAN_SUFFIX=1
   10565 fi
   10566 if test x$APP_MAN_DIR = x    ; then
   10567     APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
   10568 fi
   10569 
   10570 if test x$LIB_MAN_SUFFIX = x    ; then
   10571     LIB_MAN_SUFFIX=3
   10572 fi
   10573 if test x$LIB_MAN_DIR = x    ; then
   10574     LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
   10575 fi
   10576 
   10577 if test x$FILE_MAN_SUFFIX = x    ; then
   10578     case $host_os in
   10579 	# Solaris 2.0 - 11 use SysV man page sections
   10580 	solaris2.?|solaris2.1[01])	FILE_MAN_SUFFIX=4  ;;
   10581 	*)				FILE_MAN_SUFFIX=5  ;;
   10582     esac
   10583 fi
   10584 if test x$FILE_MAN_DIR = x    ; then
   10585     FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
   10586 fi
   10587 
   10588 if test x$MISC_MAN_SUFFIX = x    ; then
   10589     case $host_os in
   10590 	# Solaris 2.0 - 11 use SysV man page sections
   10591 	solaris2.?|solaris2.1[01])	MISC_MAN_SUFFIX=5  ;;
   10592 	*)				MISC_MAN_SUFFIX=7  ;;
   10593     esac
   10594 fi
   10595 if test x$MISC_MAN_DIR = x    ; then
   10596     MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
   10597 fi
   10598 
   10599 if test x$DRIVER_MAN_SUFFIX = x    ; then
   10600     case $host_os in
   10601 	# Solaris 2.0 - 11 use SysV man page sections
   10602 	solaris2.?|solaris2.1[01])	DRIVER_MAN_SUFFIX=7  ;;
   10603 	*)				DRIVER_MAN_SUFFIX=4  ;;
   10604     esac
   10605 fi
   10606 if test x$DRIVER_MAN_DIR = x    ; then
   10607     DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
   10608 fi
   10609 
   10610 if test x$ADMIN_MAN_SUFFIX = x    ; then
   10611     case $host_os in
   10612 	# Solaris 2.0 - 11 use SysV man page sections
   10613 	solaris2.?|solaris2.1[01])	ADMIN_MAN_SUFFIX=1m ;;
   10614 	*)				ADMIN_MAN_SUFFIX=8  ;;
   10615     esac
   10616 fi
   10617 if test x$ADMIN_MAN_DIR = x    ; then
   10618     ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
   10619 fi
   10620 
   10621 
   10622 
   10623 
   10624 
   10625 
   10626 
   10627 
   10628 
   10629 
   10630 
   10631 
   10632 
   10633 
   10634 
   10635 XORG_MAN_PAGE="X Version 11"
   10636 
   10637 MAN_SUBSTS="\
   10638 	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
   10639 	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
   10640 	-e 's|__xservername__|Xorg|g' \
   10641 	-e 's|__xconfigfile__|xorg.conf|g' \
   10642 	-e 's|__projectroot__|\$(prefix)|g' \
   10643 	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
   10644 	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
   10645 	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
   10646 	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
   10647 	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
   10648 	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
   10649 	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
   10650 
   10651 
   10652 
   10653 # Check whether --enable-silent-rules was given.
   10654 if test "${enable_silent_rules+set}" = set; then :
   10655   enableval=$enable_silent_rules;
   10656 fi
   10657 
   10658 case $enable_silent_rules in # (((
   10659   yes) AM_DEFAULT_VERBOSITY=0;;
   10660    no) AM_DEFAULT_VERBOSITY=1;;
   10661     *) AM_DEFAULT_VERBOSITY=0;;
   10662 esac
   10663 am_make=${MAKE-make}
   10664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
   10665 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
   10666 if ${am_cv_make_support_nested_variables+:} false; then :
   10667   $as_echo_n "(cached) " >&6
   10668 else
   10669   if $as_echo 'TRUE=$(BAR$(V))
   10670 BAR0=false
   10671 BAR1=true
   10672 V=1
   10673 am__doit:
   10674 	@$(TRUE)
   10675 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
   10676   am_cv_make_support_nested_variables=yes
   10677 else
   10678   am_cv_make_support_nested_variables=no
   10679 fi
   10680 fi
   10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
   10682 $as_echo "$am_cv_make_support_nested_variables" >&6; }
   10683 if test $am_cv_make_support_nested_variables = yes; then
   10684     AM_V='$(V)'
   10685   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
   10686 else
   10687   AM_V=$AM_DEFAULT_VERBOSITY
   10688   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
   10689 fi
   10690 AM_BACKSLASH='\'
   10691 
   10692 
   10693 
   10694 # Define the installation directory for the x11 performance compare scripts
   10695 x11perfcompdir=$libdir/X11/x11perfcomp
   10696 
   10697 
   10698 # Checks for programs run by the scripts we install
   10699 # Extract the first word of "mktemp", so it can be a program name with args.
   10700 set dummy mktemp; ac_word=$2
   10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   10702 $as_echo_n "checking for $ac_word... " >&6; }
   10703 if ${ac_cv_path_MKTEMP+:} false; then :
   10704   $as_echo_n "(cached) " >&6
   10705 else
   10706   case $MKTEMP in
   10707   [\\/]* | ?:[\\/]*)
   10708   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
   10709   ;;
   10710   *)
   10711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10712 for as_dir in $PATH
   10713 do
   10714   IFS=$as_save_IFS
   10715   test -z "$as_dir" && as_dir=.
   10716     for ac_exec_ext in '' $ac_executable_extensions; do
   10717   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10718     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
   10719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   10720     break 2
   10721   fi
   10722 done
   10723   done
   10724 IFS=$as_save_IFS
   10725 
   10726   ;;
   10727 esac
   10728 fi
   10729 MKTEMP=$ac_cv_path_MKTEMP
   10730 if test -n "$MKTEMP"; then
   10731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
   10732 $as_echo "$MKTEMP" >&6; }
   10733 else
   10734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10735 $as_echo "no" >&6; }
   10736 fi
   10737 
   10738 
   10739 
   10740 # Checks for pkg-config packages
   10741 
   10742 pkg_failed=no
   10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11PERF" >&5
   10744 $as_echo_n "checking for X11PERF... " >&6; }
   10745 
   10746 if test -n "$X11PERF_CFLAGS"; then
   10747     pkg_cv_X11PERF_CFLAGS="$X11PERF_CFLAGS"
   10748  elif test -n "$PKG_CONFIG"; then
   10749     if test -n "$PKG_CONFIG" && \
   10750     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmuu xproto >= 7.0.17\""; } >&5
   10751   ($PKG_CONFIG --exists --print-errors "x11 xmuu xproto >= 7.0.17") 2>&5
   10752   ac_status=$?
   10753   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   10754   test $ac_status = 0; }; then
   10755   pkg_cv_X11PERF_CFLAGS=`$PKG_CONFIG --cflags "x11 xmuu xproto >= 7.0.17" 2>/dev/null`
   10756 		      test "x$?" != "x0" && pkg_failed=yes
   10757 else
   10758   pkg_failed=yes
   10759 fi
   10760  else
   10761     pkg_failed=untried
   10762 fi
   10763 if test -n "$X11PERF_LIBS"; then
   10764     pkg_cv_X11PERF_LIBS="$X11PERF_LIBS"
   10765  elif test -n "$PKG_CONFIG"; then
   10766     if test -n "$PKG_CONFIG" && \
   10767     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmuu xproto >= 7.0.17\""; } >&5
   10768   ($PKG_CONFIG --exists --print-errors "x11 xmuu xproto >= 7.0.17") 2>&5
   10769   ac_status=$?
   10770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   10771   test $ac_status = 0; }; then
   10772   pkg_cv_X11PERF_LIBS=`$PKG_CONFIG --libs "x11 xmuu xproto >= 7.0.17" 2>/dev/null`
   10773 		      test "x$?" != "x0" && pkg_failed=yes
   10774 else
   10775   pkg_failed=yes
   10776 fi
   10777  else
   10778     pkg_failed=untried
   10779 fi
   10780 
   10781 
   10782 
   10783 if test $pkg_failed = yes; then
   10784    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10785 $as_echo "no" >&6; }
   10786 
   10787 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   10788         _pkg_short_errors_supported=yes
   10789 else
   10790         _pkg_short_errors_supported=no
   10791 fi
   10792         if test $_pkg_short_errors_supported = yes; then
   10793 	        X11PERF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xmuu xproto >= 7.0.17" 2>&1`
   10794         else
   10795 	        X11PERF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xmuu xproto >= 7.0.17" 2>&1`
   10796         fi
   10797 	# Put the nasty error message in config.log where it belongs
   10798 	echo "$X11PERF_PKG_ERRORS" >&5
   10799 
   10800 	as_fn_error $? "Package requirements (x11 xmuu xproto >= 7.0.17) were not met:
   10801 
   10802 $X11PERF_PKG_ERRORS
   10803 
   10804 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   10805 installed software in a non-standard prefix.
   10806 
   10807 Alternatively, you may set the environment variables X11PERF_CFLAGS
   10808 and X11PERF_LIBS to avoid the need to call pkg-config.
   10809 See the pkg-config man page for more details." "$LINENO" 5
   10810 elif test $pkg_failed = untried; then
   10811      	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10812 $as_echo "no" >&6; }
   10813 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   10814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   10815 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   10816 is in your PATH or set the PKG_CONFIG environment variable to the full
   10817 path to pkg-config.
   10818 
   10819 Alternatively, you may set the environment variables X11PERF_CFLAGS
   10820 and X11PERF_LIBS to avoid the need to call pkg-config.
   10821 See the pkg-config man page for more details.
   10822 
   10823 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   10824 See \`config.log' for more details" "$LINENO" 5; }
   10825 else
   10826 	X11PERF_CFLAGS=$pkg_cv_X11PERF_CFLAGS
   10827 	X11PERF_LIBS=$pkg_cv_X11PERF_LIBS
   10828         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10829 $as_echo "yes" >&6; }
   10830 
   10831 fi
   10832 
   10833 # Check for Xrender library
   10834 
   10835 pkg_failed=no
   10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRENDER" >&5
   10837 $as_echo_n "checking for XRENDER... " >&6; }
   10838 
   10839 if test -n "$XRENDER_CFLAGS"; then
   10840     pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS"
   10841  elif test -n "$PKG_CONFIG"; then
   10842     if test -n "$PKG_CONFIG" && \
   10843     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender\""; } >&5
   10844   ($PKG_CONFIG --exists --print-errors "xrender") 2>&5
   10845   ac_status=$?
   10846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   10847   test $ac_status = 0; }; then
   10848   pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender" 2>/dev/null`
   10849 		      test "x$?" != "x0" && pkg_failed=yes
   10850 else
   10851   pkg_failed=yes
   10852 fi
   10853  else
   10854     pkg_failed=untried
   10855 fi
   10856 if test -n "$XRENDER_LIBS"; then
   10857     pkg_cv_XRENDER_LIBS="$XRENDER_LIBS"
   10858  elif test -n "$PKG_CONFIG"; then
   10859     if test -n "$PKG_CONFIG" && \
   10860     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender\""; } >&5
   10861   ($PKG_CONFIG --exists --print-errors "xrender") 2>&5
   10862   ac_status=$?
   10863   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   10864   test $ac_status = 0; }; then
   10865   pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender" 2>/dev/null`
   10866 		      test "x$?" != "x0" && pkg_failed=yes
   10867 else
   10868   pkg_failed=yes
   10869 fi
   10870  else
   10871     pkg_failed=untried
   10872 fi
   10873 
   10874 
   10875 
   10876 if test $pkg_failed = yes; then
   10877    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10878 $as_echo "no" >&6; }
   10879 
   10880 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   10881         _pkg_short_errors_supported=yes
   10882 else
   10883         _pkg_short_errors_supported=no
   10884 fi
   10885         if test $_pkg_short_errors_supported = yes; then
   10886 	        XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrender" 2>&1`
   10887         else
   10888 	        XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrender" 2>&1`
   10889         fi
   10890 	# Put the nasty error message in config.log where it belongs
   10891 	echo "$XRENDER_PKG_ERRORS" >&5
   10892 
   10893 	xrender_found=no
   10894 elif test $pkg_failed = untried; then
   10895      	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10896 $as_echo "no" >&6; }
   10897 	xrender_found=no
   10898 else
   10899 	XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS
   10900 	XRENDER_LIBS=$pkg_cv_XRENDER_LIBS
   10901         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10902 $as_echo "yes" >&6; }
   10903 	xrender_found=yes
   10904 fi
   10905 case "$xrender_found" in
   10906 yes)
   10907 
   10908 $as_echo "#define XRENDER 1" >>confdefs.h
   10909 
   10910 	;;
   10911 esac
   10912 
   10913 # Check for Xft library
   10914 
   10915 pkg_failed=no
   10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFT" >&5
   10917 $as_echo_n "checking for XFT... " >&6; }
   10918 
   10919 if test -n "$XFT_CFLAGS"; then
   10920     pkg_cv_XFT_CFLAGS="$XFT_CFLAGS"
   10921  elif test -n "$PKG_CONFIG"; then
   10922     if test -n "$PKG_CONFIG" && \
   10923     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft\""; } >&5
   10924   ($PKG_CONFIG --exists --print-errors "xft") 2>&5
   10925   ac_status=$?
   10926   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   10927   test $ac_status = 0; }; then
   10928   pkg_cv_XFT_CFLAGS=`$PKG_CONFIG --cflags "xft" 2>/dev/null`
   10929 		      test "x$?" != "x0" && pkg_failed=yes
   10930 else
   10931   pkg_failed=yes
   10932 fi
   10933  else
   10934     pkg_failed=untried
   10935 fi
   10936 if test -n "$XFT_LIBS"; then
   10937     pkg_cv_XFT_LIBS="$XFT_LIBS"
   10938  elif test -n "$PKG_CONFIG"; then
   10939     if test -n "$PKG_CONFIG" && \
   10940     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft\""; } >&5
   10941   ($PKG_CONFIG --exists --print-errors "xft") 2>&5
   10942   ac_status=$?
   10943   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   10944   test $ac_status = 0; }; then
   10945   pkg_cv_XFT_LIBS=`$PKG_CONFIG --libs "xft" 2>/dev/null`
   10946 		      test "x$?" != "x0" && pkg_failed=yes
   10947 else
   10948   pkg_failed=yes
   10949 fi
   10950  else
   10951     pkg_failed=untried
   10952 fi
   10953 
   10954 
   10955 
   10956 if test $pkg_failed = yes; then
   10957    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10958 $as_echo "no" >&6; }
   10959 
   10960 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   10961         _pkg_short_errors_supported=yes
   10962 else
   10963         _pkg_short_errors_supported=no
   10964 fi
   10965         if test $_pkg_short_errors_supported = yes; then
   10966 	        XFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xft" 2>&1`
   10967         else
   10968 	        XFT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xft" 2>&1`
   10969         fi
   10970 	# Put the nasty error message in config.log where it belongs
   10971 	echo "$XFT_PKG_ERRORS" >&5
   10972 
   10973 	xft_found=no
   10974 elif test $pkg_failed = untried; then
   10975      	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10976 $as_echo "no" >&6; }
   10977 	xft_found=no
   10978 else
   10979 	XFT_CFLAGS=$pkg_cv_XFT_CFLAGS
   10980 	XFT_LIBS=$pkg_cv_XFT_LIBS
   10981         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10982 $as_echo "yes" >&6; }
   10983 	xft_found=yes
   10984 fi
   10985 case "$xft_found" in
   10986 yes)
   10987 
   10988 $as_echo "#define XFT 1" >>confdefs.h
   10989 
   10990 	;;
   10991 esac
   10992 
   10993 # Check for MIT-SHM extension
   10994 
   10995 pkg_failed=no
   10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
   10997 $as_echo_n "checking for XEXT... " >&6; }
   10998 
   10999 if test -n "$XEXT_CFLAGS"; then
   11000     pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
   11001  elif test -n "$PKG_CONFIG"; then
   11002     if test -n "$PKG_CONFIG" && \
   11003     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
   11004   ($PKG_CONFIG --exists --print-errors "xext") 2>&5
   11005   ac_status=$?
   11006   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   11007   test $ac_status = 0; }; then
   11008   pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
   11009 		      test "x$?" != "x0" && pkg_failed=yes
   11010 else
   11011   pkg_failed=yes
   11012 fi
   11013  else
   11014     pkg_failed=untried
   11015 fi
   11016 if test -n "$XEXT_LIBS"; then
   11017     pkg_cv_XEXT_LIBS="$XEXT_LIBS"
   11018  elif test -n "$PKG_CONFIG"; then
   11019     if test -n "$PKG_CONFIG" && \
   11020     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
   11021   ($PKG_CONFIG --exists --print-errors "xext") 2>&5
   11022   ac_status=$?
   11023   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   11024   test $ac_status = 0; }; then
   11025   pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
   11026 		      test "x$?" != "x0" && pkg_failed=yes
   11027 else
   11028   pkg_failed=yes
   11029 fi
   11030  else
   11031     pkg_failed=untried
   11032 fi
   11033 
   11034 
   11035 
   11036 if test $pkg_failed = yes; then
   11037    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11038 $as_echo "no" >&6; }
   11039 
   11040 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   11041         _pkg_short_errors_supported=yes
   11042 else
   11043         _pkg_short_errors_supported=no
   11044 fi
   11045         if test $_pkg_short_errors_supported = yes; then
   11046 	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
   11047         else
   11048 	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
   11049         fi
   11050 	# Put the nasty error message in config.log where it belongs
   11051 	echo "$XEXT_PKG_ERRORS" >&5
   11052 
   11053 	xext_found=no
   11054 elif test $pkg_failed = untried; then
   11055      	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11056 $as_echo "no" >&6; }
   11057 	xext_found=no
   11058 else
   11059 	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
   11060 	XEXT_LIBS=$pkg_cv_XEXT_LIBS
   11061         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11062 $as_echo "yes" >&6; }
   11063 	xext_found=yes
   11064 fi
   11065 case "$xext_found" in
   11066 yes)
   11067 	save_LIBS="$LIBS"
   11068 	LIBS="$XEXT_LIBS $LIBS"
   11069 	for ac_func in XShmQueryExtension
   11070 do :
   11071   ac_fn_c_check_func "$LINENO" "XShmQueryExtension" "ac_cv_func_XShmQueryExtension"
   11072 if test "x$ac_cv_func_XShmQueryExtension" = xyes; then :
   11073   cat >>confdefs.h <<_ACEOF
   11074 #define HAVE_XSHMQUERYEXTENSION 1
   11075 _ACEOF
   11076 
   11077 $as_echo "#define MITSHM 1" >>confdefs.h
   11078 
   11079 fi
   11080 done
   11081 
   11082 	LIBS="$save_LIBS"
   11083 	;;
   11084 esac
   11085 
   11086 ac_config_files="$ac_config_files Makefile man/Makefile"
   11087 
   11088 cat >confcache <<\_ACEOF
   11089 # This file is a shell script that caches the results of configure
   11090 # tests run on this system so they can be shared between configure
   11091 # scripts and configure runs, see configure's option --config-cache.
   11092 # It is not useful on other systems.  If it contains results you don't
   11093 # want to keep, you may remove or edit it.
   11094 #
   11095 # config.status only pays attention to the cache file if you give it
   11096 # the --recheck option to rerun configure.
   11097 #
   11098 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   11099 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   11100 # following values.
   11101 
   11102 _ACEOF
   11103 
   11104 # The following way of writing the cache mishandles newlines in values,
   11105 # but we know of no workaround that is simple, portable, and efficient.
   11106 # So, we kill variables containing newlines.
   11107 # Ultrix sh set writes to stderr and can't be redirected directly,
   11108 # and sets the high bit in the cache file unless we assign to the vars.
   11109 (
   11110   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   11111     eval ac_val=\$$ac_var
   11112     case $ac_val in #(
   11113     *${as_nl}*)
   11114       case $ac_var in #(
   11115       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   11116 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   11117       esac
   11118       case $ac_var in #(
   11119       _ | IFS | as_nl) ;; #(
   11120       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   11121       *) { eval $ac_var=; unset $ac_var;} ;;
   11122       esac ;;
   11123     esac
   11124   done
   11125 
   11126   (set) 2>&1 |
   11127     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   11128     *${as_nl}ac_space=\ *)
   11129       # `set' does not quote correctly, so add quotes: double-quote
   11130       # substitution turns \\\\ into \\, and sed turns \\ into \.
   11131       sed -n \
   11132 	"s/'/'\\\\''/g;
   11133 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   11134       ;; #(
   11135     *)
   11136       # `set' quotes correctly as required by POSIX, so do not add quotes.
   11137       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   11138       ;;
   11139     esac |
   11140     sort
   11141 ) |
   11142   sed '
   11143      /^ac_cv_env_/b end
   11144      t clear
   11145      :clear
   11146      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   11147      t end
   11148      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   11149      :end' >>confcache
   11150 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   11151   if test -w "$cache_file"; then
   11152     if test "x$cache_file" != "x/dev/null"; then
   11153       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   11154 $as_echo "$as_me: updating cache $cache_file" >&6;}
   11155       if test ! -f "$cache_file" || test -h "$cache_file"; then
   11156 	cat confcache >"$cache_file"
   11157       else
   11158         case $cache_file in #(
   11159         */* | ?:*)
   11160 	  mv -f confcache "$cache_file"$$ &&
   11161 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   11162         *)
   11163 	  mv -f confcache "$cache_file" ;;
   11164 	esac
   11165       fi
   11166     fi
   11167   else
   11168     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   11169 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   11170   fi
   11171 fi
   11172 rm -f confcache
   11173 
   11174 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   11175 # Let make expand exec_prefix.
   11176 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   11177 
   11178 DEFS=-DHAVE_CONFIG_H
   11179 
   11180 ac_libobjs=
   11181 ac_ltlibobjs=
   11182 U=
   11183 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   11184   # 1. Remove the extension, and $U if already installed.
   11185   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   11186   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   11187   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   11188   #    will be set to the directory where LIBOBJS objects are built.
   11189   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   11190   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   11191 done
   11192 LIBOBJS=$ac_libobjs
   11193 
   11194 LTLIBOBJS=$ac_ltlibobjs
   11195 
   11196 
   11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
   11198 $as_echo_n "checking that generated files are newer than configure... " >&6; }
   11199    if test -n "$am_sleep_pid"; then
   11200      # Hide warnings about reused PIDs.
   11201      wait $am_sleep_pid 2>/dev/null
   11202    fi
   11203    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
   11204 $as_echo "done" >&6; }
   11205  if test -n "$EXEEXT"; then
   11206   am__EXEEXT_TRUE=
   11207   am__EXEEXT_FALSE='#'
   11208 else
   11209   am__EXEEXT_TRUE='#'
   11210   am__EXEEXT_FALSE=
   11211 fi
   11212 
   11213 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
   11214   as_fn_error $? "conditional \"AMDEP\" was never defined.
   11215 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   11216 fi
   11217 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
   11218   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
   11219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   11220 fi
   11221 
   11222 : "${CONFIG_STATUS=./config.status}"
   11223 ac_write_fail=0
   11224 ac_clean_files_save=$ac_clean_files
   11225 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   11226 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   11227 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   11228 as_write_fail=0
   11229 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   11230 #! $SHELL
   11231 # Generated by $as_me.
   11232 # Run this file to recreate the current configuration.
   11233 # Compiler output produced by configure, useful for debugging
   11234 # configure, is in config.log if it exists.
   11235 
   11236 debug=false
   11237 ac_cs_recheck=false
   11238 ac_cs_silent=false
   11239 
   11240 SHELL=\${CONFIG_SHELL-$SHELL}
   11241 export SHELL
   11242 _ASEOF
   11243 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   11244 ## -------------------- ##
   11245 ## M4sh Initialization. ##
   11246 ## -------------------- ##
   11247 
   11248 # Be more Bourne compatible
   11249 DUALCASE=1; export DUALCASE # for MKS sh
   11250 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   11251   emulate sh
   11252   NULLCMD=:
   11253   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   11254   # is contrary to our usage.  Disable this feature.
   11255   alias -g '${1+"$@"}'='"$@"'
   11256   setopt NO_GLOB_SUBST
   11257 else
   11258   case `(set -o) 2>/dev/null` in #(
   11259   *posix*) :
   11260     set -o posix ;; #(
   11261   *) :
   11262      ;;
   11263 esac
   11264 fi
   11265 
   11266 
   11267 as_nl='
   11268 '
   11269 export as_nl
   11270 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   11271 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   11272 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   11273 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   11274 # Prefer a ksh shell builtin over an external printf program on Solaris,
   11275 # but without wasting forks for bash or zsh.
   11276 if test -z "$BASH_VERSION$ZSH_VERSION" \
   11277     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   11278   as_echo='print -r --'
   11279   as_echo_n='print -rn --'
   11280 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   11281   as_echo='printf %s\n'
   11282   as_echo_n='printf %s'
   11283 else
   11284   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   11285     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   11286     as_echo_n='/usr/ucb/echo -n'
   11287   else
   11288     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   11289     as_echo_n_body='eval
   11290       arg=$1;
   11291       case $arg in #(
   11292       *"$as_nl"*)
   11293 	expr "X$arg" : "X\\(.*\\)$as_nl";
   11294 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   11295       esac;
   11296       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   11297     '
   11298     export as_echo_n_body
   11299     as_echo_n='sh -c $as_echo_n_body as_echo'
   11300   fi
   11301   export as_echo_body
   11302   as_echo='sh -c $as_echo_body as_echo'
   11303 fi
   11304 
   11305 # The user is always right.
   11306 if test "${PATH_SEPARATOR+set}" != set; then
   11307   PATH_SEPARATOR=:
   11308   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   11309     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   11310       PATH_SEPARATOR=';'
   11311   }
   11312 fi
   11313 
   11314 
   11315 # IFS
   11316 # We need space, tab and new line, in precisely that order.  Quoting is
   11317 # there to prevent editors from complaining about space-tab.
   11318 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   11319 # splitting by setting IFS to empty value.)
   11320 IFS=" ""	$as_nl"
   11321 
   11322 # Find who we are.  Look in the path if we contain no directory separator.
   11323 as_myself=
   11324 case $0 in #((
   11325   *[\\/]* ) as_myself=$0 ;;
   11326   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11327 for as_dir in $PATH
   11328 do
   11329   IFS=$as_save_IFS
   11330   test -z "$as_dir" && as_dir=.
   11331     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   11332   done
   11333 IFS=$as_save_IFS
   11334 
   11335      ;;
   11336 esac
   11337 # We did not find ourselves, most probably we were run as `sh COMMAND'
   11338 # in which case we are not to be found in the path.
   11339 if test "x$as_myself" = x; then
   11340   as_myself=$0
   11341 fi
   11342 if test ! -f "$as_myself"; then
   11343   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   11344   exit 1
   11345 fi
   11346 
   11347 # Unset variables that we do not need and which cause bugs (e.g. in
   11348 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   11349 # suppresses any "Segmentation fault" message there.  '((' could
   11350 # trigger a bug in pdksh 5.2.14.
   11351 for as_var in BASH_ENV ENV MAIL MAILPATH
   11352 do eval test x\${$as_var+set} = xset \
   11353   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   11354 done
   11355 PS1='$ '
   11356 PS2='> '
   11357 PS4='+ '
   11358 
   11359 # NLS nuisances.
   11360 LC_ALL=C
   11361 export LC_ALL
   11362 LANGUAGE=C
   11363 export LANGUAGE
   11364 
   11365 # CDPATH.
   11366 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   11367 
   11368 
   11369 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   11370 # ----------------------------------------
   11371 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   11372 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   11373 # script with STATUS, using 1 if that was 0.
   11374 as_fn_error ()
   11375 {
   11376   as_status=$1; test $as_status -eq 0 && as_status=1
   11377   if test "$4"; then
   11378     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   11379     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   11380   fi
   11381   $as_echo "$as_me: error: $2" >&2
   11382   as_fn_exit $as_status
   11383 } # as_fn_error
   11384 
   11385 
   11386 # as_fn_set_status STATUS
   11387 # -----------------------
   11388 # Set $? to STATUS, without forking.
   11389 as_fn_set_status ()
   11390 {
   11391   return $1
   11392 } # as_fn_set_status
   11393 
   11394 # as_fn_exit STATUS
   11395 # -----------------
   11396 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   11397 as_fn_exit ()
   11398 {
   11399   set +e
   11400   as_fn_set_status $1
   11401   exit $1
   11402 } # as_fn_exit
   11403 
   11404 # as_fn_unset VAR
   11405 # ---------------
   11406 # Portably unset VAR.
   11407 as_fn_unset ()
   11408 {
   11409   { eval $1=; unset $1;}
   11410 }
   11411 as_unset=as_fn_unset
   11412 # as_fn_append VAR VALUE
   11413 # ----------------------
   11414 # Append the text in VALUE to the end of the definition contained in VAR. Take
   11415 # advantage of any shell optimizations that allow amortized linear growth over
   11416 # repeated appends, instead of the typical quadratic growth present in naive
   11417 # implementations.
   11418 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   11419   eval 'as_fn_append ()
   11420   {
   11421     eval $1+=\$2
   11422   }'
   11423 else
   11424   as_fn_append ()
   11425   {
   11426     eval $1=\$$1\$2
   11427   }
   11428 fi # as_fn_append
   11429 
   11430 # as_fn_arith ARG...
   11431 # ------------------
   11432 # Perform arithmetic evaluation on the ARGs, and store the result in the
   11433 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   11434 # must be portable across $(()) and expr.
   11435 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   11436   eval 'as_fn_arith ()
   11437   {
   11438     as_val=$(( $* ))
   11439   }'
   11440 else
   11441   as_fn_arith ()
   11442   {
   11443     as_val=`expr "$@" || test $? -eq 1`
   11444   }
   11445 fi # as_fn_arith
   11446 
   11447 
   11448 if expr a : '\(a\)' >/dev/null 2>&1 &&
   11449    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   11450   as_expr=expr
   11451 else
   11452   as_expr=false
   11453 fi
   11454 
   11455 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   11456   as_basename=basename
   11457 else
   11458   as_basename=false
   11459 fi
   11460 
   11461 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   11462   as_dirname=dirname
   11463 else
   11464   as_dirname=false
   11465 fi
   11466 
   11467 as_me=`$as_basename -- "$0" ||
   11468 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   11469 	 X"$0" : 'X\(//\)$' \| \
   11470 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   11471 $as_echo X/"$0" |
   11472     sed '/^.*\/\([^/][^/]*\)\/*$/{
   11473 	    s//\1/
   11474 	    q
   11475 	  }
   11476 	  /^X\/\(\/\/\)$/{
   11477 	    s//\1/
   11478 	    q
   11479 	  }
   11480 	  /^X\/\(\/\).*/{
   11481 	    s//\1/
   11482 	    q
   11483 	  }
   11484 	  s/.*/./; q'`
   11485 
   11486 # Avoid depending upon Character Ranges.
   11487 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   11488 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   11489 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   11490 as_cr_digits='0123456789'
   11491 as_cr_alnum=$as_cr_Letters$as_cr_digits
   11492 
   11493 ECHO_C= ECHO_N= ECHO_T=
   11494 case `echo -n x` in #(((((
   11495 -n*)
   11496   case `echo 'xy\c'` in
   11497   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   11498   xy)  ECHO_C='\c';;
   11499   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   11500        ECHO_T='	';;
   11501   esac;;
   11502 *)
   11503   ECHO_N='-n';;
   11504 esac
   11505 
   11506 rm -f conf$$ conf$$.exe conf$$.file
   11507 if test -d conf$$.dir; then
   11508   rm -f conf$$.dir/conf$$.file
   11509 else
   11510   rm -f conf$$.dir
   11511   mkdir conf$$.dir 2>/dev/null
   11512 fi
   11513 if (echo >conf$$.file) 2>/dev/null; then
   11514   if ln -s conf$$.file conf$$ 2>/dev/null; then
   11515     as_ln_s='ln -s'
   11516     # ... but there are two gotchas:
   11517     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   11518     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   11519     # In both cases, we have to default to `cp -pR'.
   11520     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   11521       as_ln_s='cp -pR'
   11522   elif ln conf$$.file conf$$ 2>/dev/null; then
   11523     as_ln_s=ln
   11524   else
   11525     as_ln_s='cp -pR'
   11526   fi
   11527 else
   11528   as_ln_s='cp -pR'
   11529 fi
   11530 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   11531 rmdir conf$$.dir 2>/dev/null
   11532 
   11533 
   11534 # as_fn_mkdir_p
   11535 # -------------
   11536 # Create "$as_dir" as a directory, including parents if necessary.
   11537 as_fn_mkdir_p ()
   11538 {
   11539 
   11540   case $as_dir in #(
   11541   -*) as_dir=./$as_dir;;
   11542   esac
   11543   test -d "$as_dir" || eval $as_mkdir_p || {
   11544     as_dirs=
   11545     while :; do
   11546       case $as_dir in #(
   11547       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   11548       *) as_qdir=$as_dir;;
   11549       esac
   11550       as_dirs="'$as_qdir' $as_dirs"
   11551       as_dir=`$as_dirname -- "$as_dir" ||
   11552 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   11553 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   11554 	 X"$as_dir" : 'X\(//\)$' \| \
   11555 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   11556 $as_echo X"$as_dir" |
   11557     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   11558 	    s//\1/
   11559 	    q
   11560 	  }
   11561 	  /^X\(\/\/\)[^/].*/{
   11562 	    s//\1/
   11563 	    q
   11564 	  }
   11565 	  /^X\(\/\/\)$/{
   11566 	    s//\1/
   11567 	    q
   11568 	  }
   11569 	  /^X\(\/\).*/{
   11570 	    s//\1/
   11571 	    q
   11572 	  }
   11573 	  s/.*/./; q'`
   11574       test -d "$as_dir" && break
   11575     done
   11576     test -z "$as_dirs" || eval "mkdir $as_dirs"
   11577   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   11578 
   11579 
   11580 } # as_fn_mkdir_p
   11581 if mkdir -p . 2>/dev/null; then
   11582   as_mkdir_p='mkdir -p "$as_dir"'
   11583 else
   11584   test -d ./-p && rmdir ./-p
   11585   as_mkdir_p=false
   11586 fi
   11587 
   11588 
   11589 # as_fn_executable_p FILE
   11590 # -----------------------
   11591 # Test if FILE is an executable regular file.
   11592 as_fn_executable_p ()
   11593 {
   11594   test -f "$1" && test -x "$1"
   11595 } # as_fn_executable_p
   11596 as_test_x='test -x'
   11597 as_executable_p=as_fn_executable_p
   11598 
   11599 # Sed expression to map a string onto a valid CPP name.
   11600 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   11601 
   11602 # Sed expression to map a string onto a valid variable name.
   11603 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   11604 
   11605 
   11606 exec 6>&1
   11607 ## ----------------------------------- ##
   11608 ## Main body of $CONFIG_STATUS script. ##
   11609 ## ----------------------------------- ##
   11610 _ASEOF
   11611 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   11612 
   11613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   11614 # Save the log message, to keep $0 and so on meaningful, and to
   11615 # report actual input values of CONFIG_FILES etc. instead of their
   11616 # values after options handling.
   11617 ac_log="
   11618 This file was extended by x11perf $as_me 1.6.1, which was
   11619 generated by GNU Autoconf 2.69.  Invocation command line was
   11620 
   11621   CONFIG_FILES    = $CONFIG_FILES
   11622   CONFIG_HEADERS  = $CONFIG_HEADERS
   11623   CONFIG_LINKS    = $CONFIG_LINKS
   11624   CONFIG_COMMANDS = $CONFIG_COMMANDS
   11625   $ $0 $@
   11626 
   11627 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   11628 "
   11629 
   11630 _ACEOF
   11631 
   11632 case $ac_config_files in *"
   11633 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   11634 esac
   11635 
   11636 case $ac_config_headers in *"
   11637 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   11638 esac
   11639 
   11640 
   11641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   11642 # Files that config.status was made for.
   11643 config_files="$ac_config_files"
   11644 config_headers="$ac_config_headers"
   11645 config_commands="$ac_config_commands"
   11646 
   11647 _ACEOF
   11648 
   11649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   11650 ac_cs_usage="\
   11651 \`$as_me' instantiates files and other configuration actions
   11652 from templates according to the current configuration.  Unless the files
   11653 and actions are specified as TAGs, all are instantiated by default.
   11654 
   11655 Usage: $0 [OPTION]... [TAG]...
   11656 
   11657   -h, --help       print this help, then exit
   11658   -V, --version    print version number and configuration settings, then exit
   11659       --config     print configuration, then exit
   11660   -q, --quiet, --silent
   11661                    do not print progress messages
   11662   -d, --debug      don't remove temporary files
   11663       --recheck    update $as_me by reconfiguring in the same conditions
   11664       --file=FILE[:TEMPLATE]
   11665                    instantiate the configuration file FILE
   11666       --header=FILE[:TEMPLATE]
   11667                    instantiate the configuration header FILE
   11668 
   11669 Configuration files:
   11670 $config_files
   11671 
   11672 Configuration headers:
   11673 $config_headers
   11674 
   11675 Configuration commands:
   11676 $config_commands
   11677 
   11678 Report bugs to <https://gitlab.freedesktop.org/xorg/test/x11perf/issues>."
   11679 
   11680 _ACEOF
   11681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   11682 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   11683 ac_cs_version="\\
   11684 x11perf config.status 1.6.1
   11685 configured by $0, generated by GNU Autoconf 2.69,
   11686   with options \\"\$ac_cs_config\\"
   11687 
   11688 Copyright (C) 2012 Free Software Foundation, Inc.
   11689 This config.status script is free software; the Free Software Foundation
   11690 gives unlimited permission to copy, distribute and modify it."
   11691 
   11692 ac_pwd='$ac_pwd'
   11693 srcdir='$srcdir'
   11694 INSTALL='$INSTALL'
   11695 MKDIR_P='$MKDIR_P'
   11696 AWK='$AWK'
   11697 test -n "\$AWK" || AWK=awk
   11698 _ACEOF
   11699 
   11700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   11701 # The default lists apply if the user does not specify any file.
   11702 ac_need_defaults=:
   11703 while test $# != 0
   11704 do
   11705   case $1 in
   11706   --*=?*)
   11707     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   11708     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   11709     ac_shift=:
   11710     ;;
   11711   --*=)
   11712     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   11713     ac_optarg=
   11714     ac_shift=:
   11715     ;;
   11716   *)
   11717     ac_option=$1
   11718     ac_optarg=$2
   11719     ac_shift=shift
   11720     ;;
   11721   esac
   11722 
   11723   case $ac_option in
   11724   # Handling of the options.
   11725   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   11726     ac_cs_recheck=: ;;
   11727   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   11728     $as_echo "$ac_cs_version"; exit ;;
   11729   --config | --confi | --conf | --con | --co | --c )
   11730     $as_echo "$ac_cs_config"; exit ;;
   11731   --debug | --debu | --deb | --de | --d | -d )
   11732     debug=: ;;
   11733   --file | --fil | --fi | --f )
   11734     $ac_shift
   11735     case $ac_optarg in
   11736     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   11737     '') as_fn_error $? "missing file argument" ;;
   11738     esac
   11739     as_fn_append CONFIG_FILES " '$ac_optarg'"
   11740     ac_need_defaults=false;;
   11741   --header | --heade | --head | --hea )
   11742     $ac_shift
   11743     case $ac_optarg in
   11744     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   11745     esac
   11746     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   11747     ac_need_defaults=false;;
   11748   --he | --h)
   11749     # Conflict between --help and --header
   11750     as_fn_error $? "ambiguous option: \`$1'
   11751 Try \`$0 --help' for more information.";;
   11752   --help | --hel | -h )
   11753     $as_echo "$ac_cs_usage"; exit ;;
   11754   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   11755   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   11756     ac_cs_silent=: ;;
   11757 
   11758   # This is an error.
   11759   -*) as_fn_error $? "unrecognized option: \`$1'
   11760 Try \`$0 --help' for more information." ;;
   11761 
   11762   *) as_fn_append ac_config_targets " $1"
   11763      ac_need_defaults=false ;;
   11764 
   11765   esac
   11766   shift
   11767 done
   11768 
   11769 ac_configure_extra_args=
   11770 
   11771 if $ac_cs_silent; then
   11772   exec 6>/dev/null
   11773   ac_configure_extra_args="$ac_configure_extra_args --silent"
   11774 fi
   11775 
   11776 _ACEOF
   11777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   11778 if \$ac_cs_recheck; then
   11779   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   11780   shift
   11781   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   11782   CONFIG_SHELL='$SHELL'
   11783   export CONFIG_SHELL
   11784   exec "\$@"
   11785 fi
   11786 
   11787 _ACEOF
   11788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   11789 exec 5>>config.log
   11790 {
   11791   echo
   11792   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   11793 ## Running $as_me. ##
   11794 _ASBOX
   11795   $as_echo "$ac_log"
   11796 } >&5
   11797 
   11798 _ACEOF
   11799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   11800 #
   11801 # INIT-COMMANDS
   11802 #
   11803 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
   11804 
   11805 _ACEOF
   11806 
   11807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   11808 
   11809 # Handling of arguments.
   11810 for ac_config_target in $ac_config_targets
   11811 do
   11812   case $ac_config_target in
   11813     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
   11814     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
   11815     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   11816     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
   11817 
   11818   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   11819   esac
   11820 done
   11821 
   11822 
   11823 # If the user did not use the arguments to specify the items to instantiate,
   11824 # then the envvar interface is used.  Set only those that are not.
   11825 # We use the long form for the default assignment because of an extremely
   11826 # bizarre bug on SunOS 4.1.3.
   11827 if $ac_need_defaults; then
   11828   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   11829   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   11830   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   11831 fi
   11832 
   11833 # Have a temporary directory for convenience.  Make it in the build tree
   11834 # simply because there is no reason against having it here, and in addition,
   11835 # creating and moving files from /tmp can sometimes cause problems.
   11836 # Hook for its removal unless debugging.
   11837 # Note that there is a small window in which the directory will not be cleaned:
   11838 # after its creation but before its name has been assigned to `$tmp'.
   11839 $debug ||
   11840 {
   11841   tmp= ac_tmp=
   11842   trap 'exit_status=$?
   11843   : "${ac_tmp:=$tmp}"
   11844   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   11845 ' 0
   11846   trap 'as_fn_exit 1' 1 2 13 15
   11847 }
   11848 # Create a (secure) tmp directory for tmp files.
   11849 
   11850 {
   11851   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   11852   test -d "$tmp"
   11853 }  ||
   11854 {
   11855   tmp=./conf$$-$RANDOM
   11856   (umask 077 && mkdir "$tmp")
   11857 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   11858 ac_tmp=$tmp
   11859 
   11860 # Set up the scripts for CONFIG_FILES section.
   11861 # No need to generate them if there are no CONFIG_FILES.
   11862 # This happens for instance with `./config.status config.h'.
   11863 if test -n "$CONFIG_FILES"; then
   11864 
   11865 
   11866 ac_cr=`echo X | tr X '\015'`
   11867 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   11868 # But we know of no other shell where ac_cr would be empty at this
   11869 # point, so we can use a bashism as a fallback.
   11870 if test "x$ac_cr" = x; then
   11871   eval ac_cr=\$\'\\r\'
   11872 fi
   11873 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   11874 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   11875   ac_cs_awk_cr='\\r'
   11876 else
   11877   ac_cs_awk_cr=$ac_cr
   11878 fi
   11879 
   11880 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   11881 _ACEOF
   11882 
   11883 
   11884 {
   11885   echo "cat >conf$$subs.awk <<_ACEOF" &&
   11886   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   11887   echo "_ACEOF"
   11888 } >conf$$subs.sh ||
   11889   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   11890 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   11891 ac_delim='%!_!# '
   11892 for ac_last_try in false false false false false :; do
   11893   . ./conf$$subs.sh ||
   11894     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   11895 
   11896   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   11897   if test $ac_delim_n = $ac_delim_num; then
   11898     break
   11899   elif $ac_last_try; then
   11900     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   11901   else
   11902     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   11903   fi
   11904 done
   11905 rm -f conf$$subs.sh
   11906 
   11907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   11908 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   11909 _ACEOF
   11910 sed -n '
   11911 h
   11912 s/^/S["/; s/!.*/"]=/
   11913 p
   11914 g
   11915 s/^[^!]*!//
   11916 :repl
   11917 t repl
   11918 s/'"$ac_delim"'$//
   11919 t delim
   11920 :nl
   11921 h
   11922 s/\(.\{148\}\)..*/\1/
   11923 t more1
   11924 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   11925 p
   11926 n
   11927 b repl
   11928 :more1
   11929 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   11930 p
   11931 g
   11932 s/.\{148\}//
   11933 t nl
   11934 :delim
   11935 h
   11936 s/\(.\{148\}\)..*/\1/
   11937 t more2
   11938 s/["\\]/\\&/g; s/^/"/; s/$/"/
   11939 p
   11940 b
   11941 :more2
   11942 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   11943 p
   11944 g
   11945 s/.\{148\}//
   11946 t delim
   11947 ' <conf$$subs.awk | sed '
   11948 /^[^""]/{
   11949   N
   11950   s/\n//
   11951 }
   11952 ' >>$CONFIG_STATUS || ac_write_fail=1
   11953 rm -f conf$$subs.awk
   11954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   11955 _ACAWK
   11956 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   11957   for (key in S) S_is_set[key] = 1
   11958   FS = ""
   11959 
   11960 }
   11961 {
   11962   line = $ 0
   11963   nfields = split(line, field, "@")
   11964   substed = 0
   11965   len = length(field[1])
   11966   for (i = 2; i < nfields; i++) {
   11967     key = field[i]
   11968     keylen = length(key)
   11969     if (S_is_set[key]) {
   11970       value = S[key]
   11971       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   11972       len += length(value) + length(field[++i])
   11973       substed = 1
   11974     } else
   11975       len += 1 + keylen
   11976   }
   11977 
   11978   print line
   11979 }
   11980 
   11981 _ACAWK
   11982 _ACEOF
   11983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   11984 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   11985   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   11986 else
   11987   cat
   11988 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   11989   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   11990 _ACEOF
   11991 
   11992 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   11993 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   11994 # trailing colons and then remove the whole line if VPATH becomes empty
   11995 # (actually we leave an empty line to preserve line numbers).
   11996 if test "x$srcdir" = x.; then
   11997   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   11998 h
   11999 s///
   12000 s/^/:/
   12001 s/[	 ]*$/:/
   12002 s/:\$(srcdir):/:/g
   12003 s/:\${srcdir}:/:/g
   12004 s/:@srcdir@:/:/g
   12005 s/^:*//
   12006 s/:*$//
   12007 x
   12008 s/\(=[	 ]*\).*/\1/
   12009 G
   12010 s/\n//
   12011 s/^[^=]*=[	 ]*$//
   12012 }'
   12013 fi
   12014 
   12015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   12016 fi # test -n "$CONFIG_FILES"
   12017 
   12018 # Set up the scripts for CONFIG_HEADERS section.
   12019 # No need to generate them if there are no CONFIG_HEADERS.
   12020 # This happens for instance with `./config.status Makefile'.
   12021 if test -n "$CONFIG_HEADERS"; then
   12022 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   12023 BEGIN {
   12024 _ACEOF
   12025 
   12026 # Transform confdefs.h into an awk script `defines.awk', embedded as
   12027 # here-document in config.status, that substitutes the proper values into
   12028 # config.h.in to produce config.h.
   12029 
   12030 # Create a delimiter string that does not exist in confdefs.h, to ease
   12031 # handling of long lines.
   12032 ac_delim='%!_!# '
   12033 for ac_last_try in false false :; do
   12034   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   12035   if test -z "$ac_tt"; then
   12036     break
   12037   elif $ac_last_try; then
   12038     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   12039   else
   12040     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   12041   fi
   12042 done
   12043 
   12044 # For the awk script, D is an array of macro values keyed by name,
   12045 # likewise P contains macro parameters if any.  Preserve backslash
   12046 # newline sequences.
   12047 
   12048 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   12049 sed -n '
   12050 s/.\{148\}/&'"$ac_delim"'/g
   12051 t rset
   12052 :rset
   12053 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   12054 t def
   12055 d
   12056 :def
   12057 s/\\$//
   12058 t bsnl
   12059 s/["\\]/\\&/g
   12060 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   12061 D["\1"]=" \3"/p
   12062 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   12063 d
   12064 :bsnl
   12065 s/["\\]/\\&/g
   12066 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   12067 D["\1"]=" \3\\\\\\n"\\/p
   12068 t cont
   12069 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   12070 t cont
   12071 d
   12072 :cont
   12073 n
   12074 s/.\{148\}/&'"$ac_delim"'/g
   12075 t clear
   12076 :clear
   12077 s/\\$//
   12078 t bsnlc
   12079 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   12080 d
   12081 :bsnlc
   12082 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   12083 b cont
   12084 ' <confdefs.h | sed '
   12085 s/'"$ac_delim"'/"\\\
   12086 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   12087 
   12088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   12089   for (key in D) D_is_set[key] = 1
   12090   FS = ""
   12091 }
   12092 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   12093   line = \$ 0
   12094   split(line, arg, " ")
   12095   if (arg[1] == "#") {
   12096     defundef = arg[2]
   12097     mac1 = arg[3]
   12098   } else {
   12099     defundef = substr(arg[1], 2)
   12100     mac1 = arg[2]
   12101   }
   12102   split(mac1, mac2, "(") #)
   12103   macro = mac2[1]
   12104   prefix = substr(line, 1, index(line, defundef) - 1)
   12105   if (D_is_set[macro]) {
   12106     # Preserve the white space surrounding the "#".
   12107     print prefix "define", macro P[macro] D[macro]
   12108     next
   12109   } else {
   12110     # Replace #undef with comments.  This is necessary, for example,
   12111     # in the case of _POSIX_SOURCE, which is predefined and required
   12112     # on some systems where configure will not decide to define it.
   12113     if (defundef == "undef") {
   12114       print "/*", prefix defundef, macro, "*/"
   12115       next
   12116     }
   12117   }
   12118 }
   12119 { print }
   12120 _ACAWK
   12121 _ACEOF
   12122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   12123   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   12124 fi # test -n "$CONFIG_HEADERS"
   12125 
   12126 
   12127 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
   12128 shift
   12129 for ac_tag
   12130 do
   12131   case $ac_tag in
   12132   :[FHLC]) ac_mode=$ac_tag; continue;;
   12133   esac
   12134   case $ac_mode$ac_tag in
   12135   :[FHL]*:*);;
   12136   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   12137   :[FH]-) ac_tag=-:-;;
   12138   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   12139   esac
   12140   ac_save_IFS=$IFS
   12141   IFS=:
   12142   set x $ac_tag
   12143   IFS=$ac_save_IFS
   12144   shift
   12145   ac_file=$1
   12146   shift
   12147 
   12148   case $ac_mode in
   12149   :L) ac_source=$1;;
   12150   :[FH])
   12151     ac_file_inputs=
   12152     for ac_f
   12153     do
   12154       case $ac_f in
   12155       -) ac_f="$ac_tmp/stdin";;
   12156       *) # Look for the file first in the build tree, then in the source tree
   12157 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   12158 	 # because $ac_f cannot contain `:'.
   12159 	 test -f "$ac_f" ||
   12160 	   case $ac_f in
   12161 	   [\\/$]*) false;;
   12162 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   12163 	   esac ||
   12164 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   12165       esac
   12166       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   12167       as_fn_append ac_file_inputs " '$ac_f'"
   12168     done
   12169 
   12170     # Let's still pretend it is `configure' which instantiates (i.e., don't
   12171     # use $as_me), people would be surprised to read:
   12172     #    /* config.h.  Generated by config.status.  */
   12173     configure_input='Generated from '`
   12174 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   12175 	`' by configure.'
   12176     if test x"$ac_file" != x-; then
   12177       configure_input="$ac_file.  $configure_input"
   12178       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   12179 $as_echo "$as_me: creating $ac_file" >&6;}
   12180     fi
   12181     # Neutralize special characters interpreted by sed in replacement strings.
   12182     case $configure_input in #(
   12183     *\&* | *\|* | *\\* )
   12184        ac_sed_conf_input=`$as_echo "$configure_input" |
   12185        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   12186     *) ac_sed_conf_input=$configure_input;;
   12187     esac
   12188 
   12189     case $ac_tag in
   12190     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   12191       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   12192     esac
   12193     ;;
   12194   esac
   12195 
   12196   ac_dir=`$as_dirname -- "$ac_file" ||
   12197 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   12198 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   12199 	 X"$ac_file" : 'X\(//\)$' \| \
   12200 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   12201 $as_echo X"$ac_file" |
   12202     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   12203 	    s//\1/
   12204 	    q
   12205 	  }
   12206 	  /^X\(\/\/\)[^/].*/{
   12207 	    s//\1/
   12208 	    q
   12209 	  }
   12210 	  /^X\(\/\/\)$/{
   12211 	    s//\1/
   12212 	    q
   12213 	  }
   12214 	  /^X\(\/\).*/{
   12215 	    s//\1/
   12216 	    q
   12217 	  }
   12218 	  s/.*/./; q'`
   12219   as_dir="$ac_dir"; as_fn_mkdir_p
   12220   ac_builddir=.
   12221 
   12222 case "$ac_dir" in
   12223 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   12224 *)
   12225   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   12226   # A ".." for each directory in $ac_dir_suffix.
   12227   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   12228   case $ac_top_builddir_sub in
   12229   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   12230   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   12231   esac ;;
   12232 esac
   12233 ac_abs_top_builddir=$ac_pwd
   12234 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   12235 # for backward compatibility:
   12236 ac_top_builddir=$ac_top_build_prefix
   12237 
   12238 case $srcdir in
   12239   .)  # We are building in place.
   12240     ac_srcdir=.
   12241     ac_top_srcdir=$ac_top_builddir_sub
   12242     ac_abs_top_srcdir=$ac_pwd ;;
   12243   [\\/]* | ?:[\\/]* )  # Absolute name.
   12244     ac_srcdir=$srcdir$ac_dir_suffix;
   12245     ac_top_srcdir=$srcdir
   12246     ac_abs_top_srcdir=$srcdir ;;
   12247   *) # Relative name.
   12248     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   12249     ac_top_srcdir=$ac_top_build_prefix$srcdir
   12250     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   12251 esac
   12252 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   12253 
   12254 
   12255   case $ac_mode in
   12256   :F)
   12257   #
   12258   # CONFIG_FILE
   12259   #
   12260 
   12261   case $INSTALL in
   12262   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   12263   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   12264   esac
   12265   ac_MKDIR_P=$MKDIR_P
   12266   case $MKDIR_P in
   12267   [\\/$]* | ?:[\\/]* ) ;;
   12268   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
   12269   esac
   12270 _ACEOF
   12271 
   12272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   12273 # If the template does not know about datarootdir, expand it.
   12274 # FIXME: This hack should be removed a few years after 2.60.
   12275 ac_datarootdir_hack=; ac_datarootdir_seen=
   12276 ac_sed_dataroot='
   12277 /datarootdir/ {
   12278   p
   12279   q
   12280 }
   12281 /@datadir@/p
   12282 /@docdir@/p
   12283 /@infodir@/p
   12284 /@localedir@/p
   12285 /@mandir@/p'
   12286 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   12287 *datarootdir*) ac_datarootdir_seen=yes;;
   12288 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   12289   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   12290 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   12291 _ACEOF
   12292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   12293   ac_datarootdir_hack='
   12294   s&@datadir@&$datadir&g
   12295   s&@docdir@&$docdir&g
   12296   s&@infodir@&$infodir&g
   12297   s&@localedir@&$localedir&g
   12298   s&@mandir@&$mandir&g
   12299   s&\\\${datarootdir}&$datarootdir&g' ;;
   12300 esac
   12301 _ACEOF
   12302 
   12303 # Neutralize VPATH when `$srcdir' = `.'.
   12304 # Shell code in configure.ac might set extrasub.
   12305 # FIXME: do we really want to maintain this feature?
   12306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   12307 ac_sed_extra="$ac_vpsub
   12308 $extrasub
   12309 _ACEOF
   12310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   12311 :t
   12312 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   12313 s|@configure_input@|$ac_sed_conf_input|;t t
   12314 s&@top_builddir@&$ac_top_builddir_sub&;t t
   12315 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   12316 s&@srcdir@&$ac_srcdir&;t t
   12317 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   12318 s&@top_srcdir@&$ac_top_srcdir&;t t
   12319 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   12320 s&@builddir@&$ac_builddir&;t t
   12321 s&@abs_builddir@&$ac_abs_builddir&;t t
   12322 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   12323 s&@INSTALL@&$ac_INSTALL&;t t
   12324 s&@MKDIR_P@&$ac_MKDIR_P&;t t
   12325 $ac_datarootdir_hack
   12326 "
   12327 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
   12328   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   12329 
   12330 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   12331   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   12332   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   12333       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   12334   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   12335 which seems to be undefined.  Please make sure it is defined" >&5
   12336 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   12337 which seems to be undefined.  Please make sure it is defined" >&2;}
   12338 
   12339   rm -f "$ac_tmp/stdin"
   12340   case $ac_file in
   12341   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   12342   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   12343   esac \
   12344   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   12345  ;;
   12346   :H)
   12347   #
   12348   # CONFIG_HEADER
   12349   #
   12350   if test x"$ac_file" != x-; then
   12351     {
   12352       $as_echo "/* $configure_input  */" \
   12353       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   12354     } >"$ac_tmp/config.h" \
   12355       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   12356     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   12357       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   12358 $as_echo "$as_me: $ac_file is unchanged" >&6;}
   12359     else
   12360       rm -f "$ac_file"
   12361       mv "$ac_tmp/config.h" "$ac_file" \
   12362 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   12363     fi
   12364   else
   12365     $as_echo "/* $configure_input  */" \
   12366       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   12367       || as_fn_error $? "could not create -" "$LINENO" 5
   12368   fi
   12369 # Compute "$ac_file"'s index in $config_headers.
   12370 _am_arg="$ac_file"
   12371 _am_stamp_count=1
   12372 for _am_header in $config_headers :; do
   12373   case $_am_header in
   12374     $_am_arg | $_am_arg:* )
   12375       break ;;
   12376     * )
   12377       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
   12378   esac
   12379 done
   12380 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
   12381 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   12382 	 X"$_am_arg" : 'X\(//\)[^/]' \| \
   12383 	 X"$_am_arg" : 'X\(//\)$' \| \
   12384 	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
   12385 $as_echo X"$_am_arg" |
   12386     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   12387 	    s//\1/
   12388 	    q
   12389 	  }
   12390 	  /^X\(\/\/\)[^/].*/{
   12391 	    s//\1/
   12392 	    q
   12393 	  }
   12394 	  /^X\(\/\/\)$/{
   12395 	    s//\1/
   12396 	    q
   12397 	  }
   12398 	  /^X\(\/\).*/{
   12399 	    s//\1/
   12400 	    q
   12401 	  }
   12402 	  s/.*/./; q'`/stamp-h$_am_stamp_count
   12403  ;;
   12404 
   12405   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   12406 $as_echo "$as_me: executing $ac_file commands" >&6;}
   12407  ;;
   12408   esac
   12409 
   12410 
   12411   case $ac_file$ac_mode in
   12412     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
   12413   # Older Autoconf quotes --file arguments for eval, but not when files
   12414   # are listed without --file.  Let's play safe and only enable the eval
   12415   # if we detect the quoting.
   12416   case $CONFIG_FILES in
   12417   *\'*) eval set x "$CONFIG_FILES" ;;
   12418   *)   set x $CONFIG_FILES ;;
   12419   esac
   12420   shift
   12421   for mf
   12422   do
   12423     # Strip MF so we end up with the name of the file.
   12424     mf=`echo "$mf" | sed -e 's/:.*$//'`
   12425     # Check whether this is an Automake generated Makefile or not.
   12426     # We used to match only the files named 'Makefile.in', but
   12427     # some people rename them; so instead we look at the file content.
   12428     # Grep'ing the first line is not enough: some people post-process
   12429     # each Makefile.in and add a new line on top of each file to say so.
   12430     # Grep'ing the whole file is not good either: AIX grep has a line
   12431     # limit of 2048, but all sed's we know have understand at least 4000.
   12432     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
   12433       dirpart=`$as_dirname -- "$mf" ||
   12434 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   12435 	 X"$mf" : 'X\(//\)[^/]' \| \
   12436 	 X"$mf" : 'X\(//\)$' \| \
   12437 	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
   12438 $as_echo X"$mf" |
   12439     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   12440 	    s//\1/
   12441 	    q
   12442 	  }
   12443 	  /^X\(\/\/\)[^/].*/{
   12444 	    s//\1/
   12445 	    q
   12446 	  }
   12447 	  /^X\(\/\/\)$/{
   12448 	    s//\1/
   12449 	    q
   12450 	  }
   12451 	  /^X\(\/\).*/{
   12452 	    s//\1/
   12453 	    q
   12454 	  }
   12455 	  s/.*/./; q'`
   12456     else
   12457       continue
   12458     fi
   12459     # Extract the definition of DEPDIR, am__include, and am__quote
   12460     # from the Makefile without running 'make'.
   12461     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
   12462     test -z "$DEPDIR" && continue
   12463     am__include=`sed -n 's/^am__include = //p' < "$mf"`
   12464     test -z "$am__include" && continue
   12465     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
   12466     # Find all dependency output files, they are included files with
   12467     # $(DEPDIR) in their names.  We invoke sed twice because it is the
   12468     # simplest approach to changing $(DEPDIR) to its actual value in the
   12469     # expansion.
   12470     for file in `sed -n "
   12471       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
   12472 	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
   12473       # Make sure the directory exists.
   12474       test -f "$dirpart/$file" && continue
   12475       fdir=`$as_dirname -- "$file" ||
   12476 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   12477 	 X"$file" : 'X\(//\)[^/]' \| \
   12478 	 X"$file" : 'X\(//\)$' \| \
   12479 	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
   12480 $as_echo X"$file" |
   12481     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   12482 	    s//\1/
   12483 	    q
   12484 	  }
   12485 	  /^X\(\/\/\)[^/].*/{
   12486 	    s//\1/
   12487 	    q
   12488 	  }
   12489 	  /^X\(\/\/\)$/{
   12490 	    s//\1/
   12491 	    q
   12492 	  }
   12493 	  /^X\(\/\).*/{
   12494 	    s//\1/
   12495 	    q
   12496 	  }
   12497 	  s/.*/./; q'`
   12498       as_dir=$dirpart/$fdir; as_fn_mkdir_p
   12499       # echo "creating $dirpart/$file"
   12500       echo '# dummy' > "$dirpart/$file"
   12501     done
   12502   done
   12503 }
   12504  ;;
   12505 
   12506   esac
   12507 done # for ac_tag
   12508 
   12509 
   12510 as_fn_exit 0
   12511 _ACEOF
   12512 ac_clean_files=$ac_clean_files_save
   12513 
   12514 test $ac_write_fail = 0 ||
   12515   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   12516 
   12517 
   12518 # configure is writing to config.log, and then calls config.status.
   12519 # config.status does its own redirection, appending to config.log.
   12520 # Unfortunately, on DOS this fails, as config.log is still kept open
   12521 # by configure, so config.status won't be able to write to it; its
   12522 # output is simply discarded.  So we exec the FD to /dev/null,
   12523 # effectively closing config.log, so it can be properly (re)opened and
   12524 # appended to by config.status.  When coming back to configure, we
   12525 # need to make the FD available again.
   12526 if test "$no_create" != yes; then
   12527   ac_cs_success=:
   12528   ac_config_status_args=
   12529   test "$silent" = yes &&
   12530     ac_config_status_args="$ac_config_status_args --quiet"
   12531   exec 5>/dev/null
   12532   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   12533   exec 5>>config.log
   12534   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   12535   # would make configure fail if this is the last instruction.
   12536   $ac_cs_success || as_fn_exit 1
   12537 fi
   12538 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   12539   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   12540 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   12541 fi
   12542 
   12543