Home | History | Annotate | Line # | Download | only in dist
configure revision 1.1.1.3
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.71 for lndir 1.0.4.
      4 #
      5 # Report bugs to <https://gitlab.freedesktop.org/xorg/util/lndir/-/issues>.
      6 #
      7 #
      8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
      9 # Inc.
     10 #
     11 #
     12 # This configure script is free software; the Free Software Foundation
     13 # gives unlimited permission to copy, distribute and modify it.
     14 ## -------------------- ##
     15 ## M4sh Initialization. ##
     16 ## -------------------- ##
     17 
     18 # Be more Bourne compatible
     19 DUALCASE=1; export DUALCASE # for MKS sh
     20 as_nop=:
     21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
     22 then :
     23   emulate sh
     24   NULLCMD=:
     25   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
     26   # is contrary to our usage.  Disable this feature.
     27   alias -g '${1+"$@"}'='"$@"'
     28   setopt NO_GLOB_SUBST
     29 else $as_nop
     30   case `(set -o) 2>/dev/null` in #(
     31   *posix*) :
     32     set -o posix ;; #(
     33   *) :
     34      ;;
     35 esac
     36 fi
     37 
     38 
     39 
     40 # Reset variables that may have inherited troublesome values from
     41 # the environment.
     42 
     43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
     44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
     45 # side effect of setting IFS to empty, thus disabling word splitting.)
     46 # Quoting is to prevent editors from complaining about space-tab.
     47 as_nl='
     48 '
     49 export as_nl
     50 IFS=" ""	$as_nl"
     51 
     52 PS1='$ '
     53 PS2='> '
     54 PS4='+ '
     55 
     56 # Ensure predictable behavior from utilities with locale-dependent output.
     57 LC_ALL=C
     58 export LC_ALL
     59 LANGUAGE=C
     60 export LANGUAGE
     61 
     62 # We cannot yet rely on "unset" to work, but we need these variables
     63 # to be unset--not just set to an empty or harmless value--now, to
     64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
     65 # also avoids known problems related to "unset" and subshell syntax
     66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
     67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
     68 do eval test \${$as_var+y} \
     69   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
     70 done
     71 
     72 # Ensure that fds 0, 1, and 2 are open.
     73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
     74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
     75 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
     76 
     77 # The user is always right.
     78 if ${PATH_SEPARATOR+false} :; then
     79   PATH_SEPARATOR=:
     80   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     81     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     82       PATH_SEPARATOR=';'
     83   }
     84 fi
     85 
     86 
     87 # Find who we are.  Look in the path if we contain no directory separator.
     88 as_myself=
     89 case $0 in #((
     90   *[\\/]* ) as_myself=$0 ;;
     91   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     92 for as_dir in $PATH
     93 do
     94   IFS=$as_save_IFS
     95   case $as_dir in #(((
     96     '') as_dir=./ ;;
     97     */) ;;
     98     *) as_dir=$as_dir/ ;;
     99   esac
    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   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    113   exit 1
    114 fi
    115 
    116 
    117 # Use a proper internal environment variable to ensure we don't fall
    118   # into an infinite loop, continuously re-executing ourselves.
    119   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    120     _as_can_reexec=no; export _as_can_reexec;
    121     # We cannot yet assume a decent shell, so we have to provide a
    122 # neutralization value for shells without unset; and this also
    123 # works around shells that cannot unset nonexistent variables.
    124 # Preserve -v and -x to the replacement shell.
    125 BASH_ENV=/dev/null
    126 ENV=/dev/null
    127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    128 case $- in # ((((
    129   *v*x* | *x*v* ) as_opts=-vx ;;
    130   *v* ) as_opts=-v ;;
    131   *x* ) as_opts=-x ;;
    132   * ) as_opts= ;;
    133 esac
    134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    135 # Admittedly, this is quite paranoid, since all the known shells bail
    136 # out after a failed `exec'.
    137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
    138 exit 255
    139   fi
    140   # We don't want this to propagate to other subprocesses.
    141           { _as_can_reexec=; unset _as_can_reexec;}
    142 if test "x$CONFIG_SHELL" = x; then
    143   as_bourne_compatible="as_nop=:
    144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
    145 then :
    146   emulate sh
    147   NULLCMD=:
    148   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
    149   # is contrary to our usage.  Disable this feature.
    150   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    151   setopt NO_GLOB_SUBST
    152 else \$as_nop
    153   case \`(set -o) 2>/dev/null\` in #(
    154   *posix*) :
    155     set -o posix ;; #(
    156   *) :
    157      ;;
    158 esac
    159 fi
    160 "
    161   as_required="as_fn_return () { (exit \$1); }
    162 as_fn_success () { as_fn_return 0; }
    163 as_fn_failure () { as_fn_return 1; }
    164 as_fn_ret_success () { return 0; }
    165 as_fn_ret_failure () { return 1; }
    166 
    167 exitcode=0
    168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
    173 then :
    174 
    175 else \$as_nop
    176   exitcode=1; echo positional parameters were not saved.
    177 fi
    178 test x\$exitcode = x0 || exit 1
    179 blah=\$(echo \$(echo blah))
    180 test x\"\$blah\" = xblah || exit 1
    181 test -x / || exit 1"
    182   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    183   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    184   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    185   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    186 test \$(( 1 + 1 )) = 2 || exit 1"
    187   if (eval "$as_required") 2>/dev/null
    188 then :
    189   as_have_required=yes
    190 else $as_nop
    191   as_have_required=no
    192 fi
    193   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
    194 then :
    195 
    196 else $as_nop
    197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    198 as_found=false
    199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    200 do
    201   IFS=$as_save_IFS
    202   case $as_dir in #(((
    203     '') as_dir=./ ;;
    204     */) ;;
    205     *) as_dir=$as_dir/ ;;
    206   esac
    207   as_found=:
    208   case $as_dir in #(
    209 	 /*)
    210 	   for as_base in sh bash ksh sh5; do
    211 	     # Try only shells that exist, to save several forks.
    212 	     as_shell=$as_dir$as_base
    213 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    214 		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
    215 then :
    216   CONFIG_SHELL=$as_shell as_have_required=yes
    217 		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
    218 then :
    219   break 2
    220 fi
    221 fi
    222 	   done;;
    223        esac
    224   as_found=false
    225 done
    226 IFS=$as_save_IFS
    227 if $as_found
    228 then :
    229 
    230 else $as_nop
    231   if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    232 	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
    233 then :
    234   CONFIG_SHELL=$SHELL as_have_required=yes
    235 fi
    236 fi
    237 
    238 
    239       if test "x$CONFIG_SHELL" != x
    240 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
    259 exit 255
    260 fi
    261 
    262     if test x$as_have_required = xno
    263 then :
    264   printf "%s\n" "$0: This script requires a shell more modern than all"
    265   printf "%s\n" "$0: the shells that I found on your system."
    266   if test ${ZSH_VERSION+y} ; then
    267     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    268     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
    269   else
    270     printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
    271 $0: https://gitlab.freedesktop.org/xorg/util/lndir/-/issues
    272 $0: about your system, including any error possibly output
    273 $0: before this message. Then install a modern shell, or
    274 $0: manually run the script under such a shell if you do
    275 $0: have one."
    276   fi
    277   exit 1
    278 fi
    279 fi
    280 fi
    281 SHELL=${CONFIG_SHELL-/bin/sh}
    282 export SHELL
    283 # Unset more variables known to interfere with behavior of common tools.
    284 CLICOLOR_FORCE= GREP_OPTIONS=
    285 unset CLICOLOR_FORCE GREP_OPTIONS
    286 
    287 ## --------------------- ##
    288 ## M4sh Shell Functions. ##
    289 ## --------------------- ##
    290 # as_fn_unset VAR
    291 # ---------------
    292 # Portably unset VAR.
    293 as_fn_unset ()
    294 {
    295   { eval $1=; unset $1;}
    296 }
    297 as_unset=as_fn_unset
    298 
    299 
    300 # as_fn_set_status STATUS
    301 # -----------------------
    302 # Set $? to STATUS, without forking.
    303 as_fn_set_status ()
    304 {
    305   return $1
    306 } # as_fn_set_status
    307 
    308 # as_fn_exit STATUS
    309 # -----------------
    310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    311 as_fn_exit ()
    312 {
    313   set +e
    314   as_fn_set_status $1
    315   exit $1
    316 } # as_fn_exit
    317 # as_fn_nop
    318 # ---------
    319 # Do nothing but, unlike ":", preserve the value of $?.
    320 as_fn_nop ()
    321 {
    322   return $?
    323 }
    324 as_nop=as_fn_nop
    325 
    326 # as_fn_mkdir_p
    327 # -------------
    328 # Create "$as_dir" as a directory, including parents if necessary.
    329 as_fn_mkdir_p ()
    330 {
    331 
    332   case $as_dir in #(
    333   -*) as_dir=./$as_dir;;
    334   esac
    335   test -d "$as_dir" || eval $as_mkdir_p || {
    336     as_dirs=
    337     while :; do
    338       case $as_dir in #(
    339       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    340       *) as_qdir=$as_dir;;
    341       esac
    342       as_dirs="'$as_qdir' $as_dirs"
    343       as_dir=`$as_dirname -- "$as_dir" ||
    344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    345 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    346 	 X"$as_dir" : 'X\(//\)$' \| \
    347 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    348 printf "%s\n" X"$as_dir" |
    349     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    350 	    s//\1/
    351 	    q
    352 	  }
    353 	  /^X\(\/\/\)[^/].*/{
    354 	    s//\1/
    355 	    q
    356 	  }
    357 	  /^X\(\/\/\)$/{
    358 	    s//\1/
    359 	    q
    360 	  }
    361 	  /^X\(\/\).*/{
    362 	    s//\1/
    363 	    q
    364 	  }
    365 	  s/.*/./; q'`
    366       test -d "$as_dir" && break
    367     done
    368     test -z "$as_dirs" || eval "mkdir $as_dirs"
    369   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    370 
    371 
    372 } # as_fn_mkdir_p
    373 
    374 # as_fn_executable_p FILE
    375 # -----------------------
    376 # Test if FILE is an executable regular file.
    377 as_fn_executable_p ()
    378 {
    379   test -f "$1" && test -x "$1"
    380 } # as_fn_executable_p
    381 # as_fn_append VAR VALUE
    382 # ----------------------
    383 # Append the text in VALUE to the end of the definition contained in VAR. Take
    384 # advantage of any shell optimizations that allow amortized linear growth over
    385 # repeated appends, instead of the typical quadratic growth present in naive
    386 # implementations.
    387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
    388 then :
    389   eval 'as_fn_append ()
    390   {
    391     eval $1+=\$2
    392   }'
    393 else $as_nop
    394   as_fn_append ()
    395   {
    396     eval $1=\$$1\$2
    397   }
    398 fi # as_fn_append
    399 
    400 # as_fn_arith ARG...
    401 # ------------------
    402 # Perform arithmetic evaluation on the ARGs, and store the result in the
    403 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    404 # must be portable across $(()) and expr.
    405 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
    406 then :
    407   eval 'as_fn_arith ()
    408   {
    409     as_val=$(( $* ))
    410   }'
    411 else $as_nop
    412   as_fn_arith ()
    413   {
    414     as_val=`expr "$@" || test $? -eq 1`
    415   }
    416 fi # as_fn_arith
    417 
    418 # as_fn_nop
    419 # ---------
    420 # Do nothing but, unlike ":", preserve the value of $?.
    421 as_fn_nop ()
    422 {
    423   return $?
    424 }
    425 as_nop=as_fn_nop
    426 
    427 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    428 # ----------------------------------------
    429 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    430 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    431 # script with STATUS, using 1 if that was 0.
    432 as_fn_error ()
    433 {
    434   as_status=$1; test $as_status -eq 0 && as_status=1
    435   if test "$4"; then
    436     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    437     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    438   fi
    439   printf "%s\n" "$as_me: error: $2" >&2
    440   as_fn_exit $as_status
    441 } # as_fn_error
    442 
    443 if expr a : '\(a\)' >/dev/null 2>&1 &&
    444    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    445   as_expr=expr
    446 else
    447   as_expr=false
    448 fi
    449 
    450 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    451   as_basename=basename
    452 else
    453   as_basename=false
    454 fi
    455 
    456 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    457   as_dirname=dirname
    458 else
    459   as_dirname=false
    460 fi
    461 
    462 as_me=`$as_basename -- "$0" ||
    463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    464 	 X"$0" : 'X\(//\)$' \| \
    465 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    466 printf "%s\n" X/"$0" |
    467     sed '/^.*\/\([^/][^/]*\)\/*$/{
    468 	    s//\1/
    469 	    q
    470 	  }
    471 	  /^X\/\(\/\/\)$/{
    472 	    s//\1/
    473 	    q
    474 	  }
    475 	  /^X\/\(\/\).*/{
    476 	    s//\1/
    477 	    q
    478 	  }
    479 	  s/.*/./; q'`
    480 
    481 # Avoid depending upon Character Ranges.
    482 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    483 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    484 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    485 as_cr_digits='0123456789'
    486 as_cr_alnum=$as_cr_Letters$as_cr_digits
    487 
    488 
    489   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    490   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    491   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    492   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    493   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    494   sed -n '
    495     p
    496     /[$]LINENO/=
    497   ' <$as_myself |
    498     sed '
    499       s/[$]LINENO.*/&-/
    500       t lineno
    501       b
    502       :lineno
    503       N
    504       :loop
    505       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    506       t loop
    507       s/-\n.*//
    508     ' >$as_me.lineno &&
    509   chmod +x "$as_me.lineno" ||
    510     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    511 
    512   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
    513   # already done that, so ensure we don't try to do so again and fall
    514   # in an infinite loop.  This has already happened in practice.
    515   _as_can_reexec=no; export _as_can_reexec
    516   # Don't try to exec as it changes $[0], causing all sort of problems
    517   # (the dirname of $[0] is not the place where we might find the
    518   # original and so on.  Autoconf is especially sensitive to this).
    519   . "./$as_me.lineno"
    520   # Exit status is that of the last command.
    521   exit
    522 }
    523 
    524 
    525 # Determine whether it's possible to make 'echo' print without a newline.
    526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
    527 # for compatibility with existing Makefiles.
    528 ECHO_C= ECHO_N= ECHO_T=
    529 case `echo -n x` in #(((((
    530 -n*)
    531   case `echo 'xy\c'` in
    532   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    533   xy)  ECHO_C='\c';;
    534   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    535        ECHO_T='	';;
    536   esac;;
    537 *)
    538   ECHO_N='-n';;
    539 esac
    540 
    541 # For backward compatibility with old third-party macros, we provide
    542 # the shell variables $as_echo and $as_echo_n.  New code should use
    543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
    544 as_echo='printf %s\n'
    545 as_echo_n='printf %s'
    546 
    547 
    548 rm -f conf$$ conf$$.exe conf$$.file
    549 if test -d conf$$.dir; then
    550   rm -f conf$$.dir/conf$$.file
    551 else
    552   rm -f conf$$.dir
    553   mkdir conf$$.dir 2>/dev/null
    554 fi
    555 if (echo >conf$$.file) 2>/dev/null; then
    556   if ln -s conf$$.file conf$$ 2>/dev/null; then
    557     as_ln_s='ln -s'
    558     # ... but there are two gotchas:
    559     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    560     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    561     # In both cases, we have to default to `cp -pR'.
    562     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    563       as_ln_s='cp -pR'
    564   elif ln conf$$.file conf$$ 2>/dev/null; then
    565     as_ln_s=ln
    566   else
    567     as_ln_s='cp -pR'
    568   fi
    569 else
    570   as_ln_s='cp -pR'
    571 fi
    572 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    573 rmdir conf$$.dir 2>/dev/null
    574 
    575 if mkdir -p . 2>/dev/null; then
    576   as_mkdir_p='mkdir -p "$as_dir"'
    577 else
    578   test -d ./-p && rmdir ./-p
    579   as_mkdir_p=false
    580 fi
    581 
    582 as_test_x='test -x'
    583 as_executable_p=as_fn_executable_p
    584 
    585 # Sed expression to map a string onto a valid CPP name.
    586 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    587 
    588 # Sed expression to map a string onto a valid variable name.
    589 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    590 
    591 
    592 test -n "$DJDIR" || exec 7<&0 </dev/null
    593 exec 6>&1
    594 
    595 # Name of the host.
    596 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    597 # so uname gets run too.
    598 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    599 
    600 #
    601 # Initializations.
    602 #
    603 ac_default_prefix=/usr/local
    604 ac_clean_files=
    605 ac_config_libobj_dir=.
    606 LIBOBJS=
    607 cross_compiling=no
    608 subdirs=
    609 MFLAGS=
    610 MAKEFLAGS=
    611 
    612 # Identity of this package.
    613 PACKAGE_NAME='lndir'
    614 PACKAGE_TARNAME='lndir'
    615 PACKAGE_VERSION='1.0.4'
    616 PACKAGE_STRING='lndir 1.0.4'
    617 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/util/lndir/-/issues'
    618 PACKAGE_URL=''
    619 
    620 ac_unique_file="Makefile.am"
    621 # Factoring default headers for most tests.
    622 ac_includes_default="\
    623 #include <stddef.h>
    624 #ifdef HAVE_STDIO_H
    625 # include <stdio.h>
    626 #endif
    627 #ifdef HAVE_STDLIB_H
    628 # include <stdlib.h>
    629 #endif
    630 #ifdef HAVE_STRING_H
    631 # include <string.h>
    632 #endif
    633 #ifdef HAVE_INTTYPES_H
    634 # include <inttypes.h>
    635 #endif
    636 #ifdef HAVE_STDINT_H
    637 # include <stdint.h>
    638 #endif
    639 #ifdef HAVE_STRINGS_H
    640 # include <strings.h>
    641 #endif
    642 #ifdef HAVE_SYS_TYPES_H
    643 # include <sys/types.h>
    644 #endif
    645 #ifdef HAVE_SYS_STAT_H
    646 # include <sys/stat.h>
    647 #endif
    648 #ifdef HAVE_UNISTD_H
    649 # include <unistd.h>
    650 #endif"
    651 
    652 ac_header_c_list=
    653 ac_subst_vars='am__EXEEXT_FALSE
    654 am__EXEEXT_TRUE
    655 LTLIBOBJS
    656 LIBOBJS
    657 LIBBSD_LIBS
    658 LIBBSD_CFLAGS
    659 XPROTO_LIBS
    660 XPROTO_CFLAGS
    661 MAN_SUBSTS
    662 XORG_MAN_PAGE
    663 ADMIN_MAN_DIR
    664 DRIVER_MAN_DIR
    665 MISC_MAN_DIR
    666 FILE_MAN_DIR
    667 LIB_MAN_DIR
    668 APP_MAN_DIR
    669 ADMIN_MAN_SUFFIX
    670 DRIVER_MAN_SUFFIX
    671 MISC_MAN_SUFFIX
    672 FILE_MAN_SUFFIX
    673 LIB_MAN_SUFFIX
    674 APP_MAN_SUFFIX
    675 SED
    676 host_os
    677 host_vendor
    678 host_cpu
    679 host
    680 build_os
    681 build_vendor
    682 build_cpu
    683 build
    684 INSTALL_CMD
    685 PKG_CONFIG_LIBDIR
    686 PKG_CONFIG_PATH
    687 PKG_CONFIG
    688 CHANGELOG_CMD
    689 STRICT_CFLAGS
    690 CWARNFLAGS
    691 BASE_CFLAGS
    692 AM_BACKSLASH
    693 AM_DEFAULT_VERBOSITY
    694 AM_DEFAULT_V
    695 AM_V
    696 CSCOPE
    697 ETAGS
    698 CTAGS
    699 am__fastdepCC_FALSE
    700 am__fastdepCC_TRUE
    701 CCDEPMODE
    702 am__nodep
    703 AMDEPBACKSLASH
    704 AMDEP_FALSE
    705 AMDEP_TRUE
    706 am__include
    707 DEPDIR
    708 am__untar
    709 am__tar
    710 AMTAR
    711 am__leading_dot
    712 SET_MAKE
    713 AWK
    714 mkdir_p
    715 MKDIR_P
    716 INSTALL_STRIP_PROGRAM
    717 STRIP
    718 install_sh
    719 MAKEINFO
    720 AUTOHEADER
    721 AUTOMAKE
    722 AUTOCONF
    723 ACLOCAL
    724 VERSION
    725 PACKAGE
    726 CYGPATH_W
    727 am__isrc
    728 INSTALL_DATA
    729 INSTALL_SCRIPT
    730 INSTALL_PROGRAM
    731 OBJEXT
    732 EXEEXT
    733 ac_ct_CC
    734 CPPFLAGS
    735 LDFLAGS
    736 CFLAGS
    737 CC
    738 target_alias
    739 host_alias
    740 build_alias
    741 LIBS
    742 ECHO_T
    743 ECHO_N
    744 ECHO_C
    745 DEFS
    746 mandir
    747 localedir
    748 libdir
    749 psdir
    750 pdfdir
    751 dvidir
    752 htmldir
    753 infodir
    754 docdir
    755 oldincludedir
    756 includedir
    757 runstatedir
    758 localstatedir
    759 sharedstatedir
    760 sysconfdir
    761 datadir
    762 datarootdir
    763 libexecdir
    764 sbindir
    765 bindir
    766 program_transform_name
    767 prefix
    768 exec_prefix
    769 PACKAGE_URL
    770 PACKAGE_BUGREPORT
    771 PACKAGE_STRING
    772 PACKAGE_VERSION
    773 PACKAGE_TARNAME
    774 PACKAGE_NAME
    775 PATH_SEPARATOR
    776 SHELL
    777 am__quote'
    778 ac_subst_files=''
    779 ac_user_opts='
    780 enable_option_checking
    781 enable_dependency_tracking
    782 enable_silent_rules
    783 enable_selective_werror
    784 enable_strict_compilation
    785 enable_largefile
    786 '
    787       ac_precious_vars='build_alias
    788 host_alias
    789 target_alias
    790 CC
    791 CFLAGS
    792 LDFLAGS
    793 LIBS
    794 CPPFLAGS
    795 PKG_CONFIG
    796 PKG_CONFIG_PATH
    797 PKG_CONFIG_LIBDIR
    798 XPROTO_CFLAGS
    799 XPROTO_LIBS
    800 LIBBSD_CFLAGS
    801 LIBBSD_LIBS'
    802 
    803 
    804 # Initialize some variables set by options.
    805 ac_init_help=
    806 ac_init_version=false
    807 ac_unrecognized_opts=
    808 ac_unrecognized_sep=
    809 # The variables have the same names as the options, with
    810 # dashes changed to underlines.
    811 cache_file=/dev/null
    812 exec_prefix=NONE
    813 no_create=
    814 no_recursion=
    815 prefix=NONE
    816 program_prefix=NONE
    817 program_suffix=NONE
    818 program_transform_name=s,x,x,
    819 silent=
    820 site=
    821 srcdir=
    822 verbose=
    823 x_includes=NONE
    824 x_libraries=NONE
    825 
    826 # Installation directory options.
    827 # These are left unexpanded so users can "make install exec_prefix=/foo"
    828 # and all the variables that are supposed to be based on exec_prefix
    829 # by default will actually change.
    830 # Use braces instead of parens because sh, perl, etc. also accept them.
    831 # (The list follows the same order as the GNU Coding Standards.)
    832 bindir='${exec_prefix}/bin'
    833 sbindir='${exec_prefix}/sbin'
    834 libexecdir='${exec_prefix}/libexec'
    835 datarootdir='${prefix}/share'
    836 datadir='${datarootdir}'
    837 sysconfdir='${prefix}/etc'
    838 sharedstatedir='${prefix}/com'
    839 localstatedir='${prefix}/var'
    840 runstatedir='${localstatedir}/run'
    841 includedir='${prefix}/include'
    842 oldincludedir='/usr/include'
    843 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    844 infodir='${datarootdir}/info'
    845 htmldir='${docdir}'
    846 dvidir='${docdir}'
    847 pdfdir='${docdir}'
    848 psdir='${docdir}'
    849 libdir='${exec_prefix}/lib'
    850 localedir='${datarootdir}/locale'
    851 mandir='${datarootdir}/man'
    852 
    853 ac_prev=
    854 ac_dashdash=
    855 for ac_option
    856 do
    857   # If the previous option needs an argument, assign it.
    858   if test -n "$ac_prev"; then
    859     eval $ac_prev=\$ac_option
    860     ac_prev=
    861     continue
    862   fi
    863 
    864   case $ac_option in
    865   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    866   *=)   ac_optarg= ;;
    867   *)    ac_optarg=yes ;;
    868   esac
    869 
    870   case $ac_dashdash$ac_option in
    871   --)
    872     ac_dashdash=yes ;;
    873 
    874   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    875     ac_prev=bindir ;;
    876   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    877     bindir=$ac_optarg ;;
    878 
    879   -build | --build | --buil | --bui | --bu)
    880     ac_prev=build_alias ;;
    881   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    882     build_alias=$ac_optarg ;;
    883 
    884   -cache-file | --cache-file | --cache-fil | --cache-fi \
    885   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    886     ac_prev=cache_file ;;
    887   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    888   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    889     cache_file=$ac_optarg ;;
    890 
    891   --config-cache | -C)
    892     cache_file=config.cache ;;
    893 
    894   -datadir | --datadir | --datadi | --datad)
    895     ac_prev=datadir ;;
    896   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    897     datadir=$ac_optarg ;;
    898 
    899   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    900   | --dataroo | --dataro | --datar)
    901     ac_prev=datarootdir ;;
    902   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    903   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    904     datarootdir=$ac_optarg ;;
    905 
    906   -disable-* | --disable-*)
    907     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    908     # Reject names that are not valid shell variable names.
    909     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    910       as_fn_error $? "invalid feature name: \`$ac_useropt'"
    911     ac_useropt_orig=$ac_useropt
    912     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
    913     case $ac_user_opts in
    914       *"
    915 "enable_$ac_useropt"
    916 "*) ;;
    917       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
    918 	 ac_unrecognized_sep=', ';;
    919     esac
    920     eval enable_$ac_useropt=no ;;
    921 
    922   -docdir | --docdir | --docdi | --doc | --do)
    923     ac_prev=docdir ;;
    924   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    925     docdir=$ac_optarg ;;
    926 
    927   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    928     ac_prev=dvidir ;;
    929   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    930     dvidir=$ac_optarg ;;
    931 
    932   -enable-* | --enable-*)
    933     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    934     # Reject names that are not valid shell variable names.
    935     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    936       as_fn_error $? "invalid feature name: \`$ac_useropt'"
    937     ac_useropt_orig=$ac_useropt
    938     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
    939     case $ac_user_opts in
    940       *"
    941 "enable_$ac_useropt"
    942 "*) ;;
    943       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
    944 	 ac_unrecognized_sep=', ';;
    945     esac
    946     eval enable_$ac_useropt=\$ac_optarg ;;
    947 
    948   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    949   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    950   | --exec | --exe | --ex)
    951     ac_prev=exec_prefix ;;
    952   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    953   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    954   | --exec=* | --exe=* | --ex=*)
    955     exec_prefix=$ac_optarg ;;
    956 
    957   -gas | --gas | --ga | --g)
    958     # Obsolete; use --with-gas.
    959     with_gas=yes ;;
    960 
    961   -help | --help | --hel | --he | -h)
    962     ac_init_help=long ;;
    963   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    964     ac_init_help=recursive ;;
    965   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    966     ac_init_help=short ;;
    967 
    968   -host | --host | --hos | --ho)
    969     ac_prev=host_alias ;;
    970   -host=* | --host=* | --hos=* | --ho=*)
    971     host_alias=$ac_optarg ;;
    972 
    973   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    974     ac_prev=htmldir ;;
    975   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
    976   | --ht=*)
    977     htmldir=$ac_optarg ;;
    978 
    979   -includedir | --includedir | --includedi | --included | --include \
    980   | --includ | --inclu | --incl | --inc)
    981     ac_prev=includedir ;;
    982   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    983   | --includ=* | --inclu=* | --incl=* | --inc=*)
    984     includedir=$ac_optarg ;;
    985 
    986   -infodir | --infodir | --infodi | --infod | --info | --inf)
    987     ac_prev=infodir ;;
    988   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    989     infodir=$ac_optarg ;;
    990 
    991   -libdir | --libdir | --libdi | --libd)
    992     ac_prev=libdir ;;
    993   -libdir=* | --libdir=* | --libdi=* | --libd=*)
    994     libdir=$ac_optarg ;;
    995 
    996   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
    997   | --libexe | --libex | --libe)
    998     ac_prev=libexecdir ;;
    999   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1000   | --libexe=* | --libex=* | --libe=*)
   1001     libexecdir=$ac_optarg ;;
   1002 
   1003   -localedir | --localedir | --localedi | --localed | --locale)
   1004     ac_prev=localedir ;;
   1005   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1006     localedir=$ac_optarg ;;
   1007 
   1008   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1009   | --localstate | --localstat | --localsta | --localst | --locals)
   1010     ac_prev=localstatedir ;;
   1011   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1012   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1013     localstatedir=$ac_optarg ;;
   1014 
   1015   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1016     ac_prev=mandir ;;
   1017   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1018     mandir=$ac_optarg ;;
   1019 
   1020   -nfp | --nfp | --nf)
   1021     # Obsolete; use --without-fp.
   1022     with_fp=no ;;
   1023 
   1024   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1025   | --no-cr | --no-c | -n)
   1026     no_create=yes ;;
   1027 
   1028   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1029   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1030     no_recursion=yes ;;
   1031 
   1032   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1033   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1034   | --oldin | --oldi | --old | --ol | --o)
   1035     ac_prev=oldincludedir ;;
   1036   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1037   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1038   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1039     oldincludedir=$ac_optarg ;;
   1040 
   1041   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1042     ac_prev=prefix ;;
   1043   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1044     prefix=$ac_optarg ;;
   1045 
   1046   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1047   | --program-pre | --program-pr | --program-p)
   1048     ac_prev=program_prefix ;;
   1049   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1050   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1051     program_prefix=$ac_optarg ;;
   1052 
   1053   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1054   | --program-suf | --program-su | --program-s)
   1055     ac_prev=program_suffix ;;
   1056   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1057   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1058     program_suffix=$ac_optarg ;;
   1059 
   1060   -program-transform-name | --program-transform-name \
   1061   | --program-transform-nam | --program-transform-na \
   1062   | --program-transform-n | --program-transform- \
   1063   | --program-transform | --program-transfor \
   1064   | --program-transfo | --program-transf \
   1065   | --program-trans | --program-tran \
   1066   | --progr-tra | --program-tr | --program-t)
   1067     ac_prev=program_transform_name ;;
   1068   -program-transform-name=* | --program-transform-name=* \
   1069   | --program-transform-nam=* | --program-transform-na=* \
   1070   | --program-transform-n=* | --program-transform-=* \
   1071   | --program-transform=* | --program-transfor=* \
   1072   | --program-transfo=* | --program-transf=* \
   1073   | --program-trans=* | --program-tran=* \
   1074   | --progr-tra=* | --program-tr=* | --program-t=*)
   1075     program_transform_name=$ac_optarg ;;
   1076 
   1077   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1078     ac_prev=pdfdir ;;
   1079   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1080     pdfdir=$ac_optarg ;;
   1081 
   1082   -psdir | --psdir | --psdi | --psd | --ps)
   1083     ac_prev=psdir ;;
   1084   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1085     psdir=$ac_optarg ;;
   1086 
   1087   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1088   | -silent | --silent | --silen | --sile | --sil)
   1089     silent=yes ;;
   1090 
   1091   -runstatedir | --runstatedir | --runstatedi | --runstated \
   1092   | --runstate | --runstat | --runsta | --runst | --runs \
   1093   | --run | --ru | --r)
   1094     ac_prev=runstatedir ;;
   1095   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
   1096   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
   1097   | --run=* | --ru=* | --r=*)
   1098     runstatedir=$ac_optarg ;;
   1099 
   1100   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1101     ac_prev=sbindir ;;
   1102   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1103   | --sbi=* | --sb=*)
   1104     sbindir=$ac_optarg ;;
   1105 
   1106   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1107   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1108   | --sharedst | --shareds | --shared | --share | --shar \
   1109   | --sha | --sh)
   1110     ac_prev=sharedstatedir ;;
   1111   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1112   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1113   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1114   | --sha=* | --sh=*)
   1115     sharedstatedir=$ac_optarg ;;
   1116 
   1117   -site | --site | --sit)
   1118     ac_prev=site ;;
   1119   -site=* | --site=* | --sit=*)
   1120     site=$ac_optarg ;;
   1121 
   1122   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1123     ac_prev=srcdir ;;
   1124   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1125     srcdir=$ac_optarg ;;
   1126 
   1127   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1128   | --syscon | --sysco | --sysc | --sys | --sy)
   1129     ac_prev=sysconfdir ;;
   1130   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1131   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1132     sysconfdir=$ac_optarg ;;
   1133 
   1134   -target | --target | --targe | --targ | --tar | --ta | --t)
   1135     ac_prev=target_alias ;;
   1136   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1137     target_alias=$ac_optarg ;;
   1138 
   1139   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1140     verbose=yes ;;
   1141 
   1142   -version | --version | --versio | --versi | --vers | -V)
   1143     ac_init_version=: ;;
   1144 
   1145   -with-* | --with-*)
   1146     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1147     # Reject names that are not valid shell variable names.
   1148     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1149       as_fn_error $? "invalid package name: \`$ac_useropt'"
   1150     ac_useropt_orig=$ac_useropt
   1151     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
   1152     case $ac_user_opts in
   1153       *"
   1154 "with_$ac_useropt"
   1155 "*) ;;
   1156       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1157 	 ac_unrecognized_sep=', ';;
   1158     esac
   1159     eval with_$ac_useropt=\$ac_optarg ;;
   1160 
   1161   -without-* | --without-*)
   1162     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1163     # Reject names that are not valid shell variable names.
   1164     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1165       as_fn_error $? "invalid package name: \`$ac_useropt'"
   1166     ac_useropt_orig=$ac_useropt
   1167     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
   1168     case $ac_user_opts in
   1169       *"
   1170 "with_$ac_useropt"
   1171 "*) ;;
   1172       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1173 	 ac_unrecognized_sep=', ';;
   1174     esac
   1175     eval with_$ac_useropt=no ;;
   1176 
   1177   --x)
   1178     # Obsolete; use --with-x.
   1179     with_x=yes ;;
   1180 
   1181   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1182   | --x-incl | --x-inc | --x-in | --x-i)
   1183     ac_prev=x_includes ;;
   1184   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1185   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1186     x_includes=$ac_optarg ;;
   1187 
   1188   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1189   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1190     ac_prev=x_libraries ;;
   1191   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1192   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1193     x_libraries=$ac_optarg ;;
   1194 
   1195   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1196 Try \`$0 --help' for more information"
   1197     ;;
   1198 
   1199   *=*)
   1200     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1201     # Reject names that are not valid shell variable names.
   1202     case $ac_envvar in #(
   1203       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1204       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1205     esac
   1206     eval $ac_envvar=\$ac_optarg
   1207     export $ac_envvar ;;
   1208 
   1209   *)
   1210     # FIXME: should be removed in autoconf 3.0.
   1211     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
   1212     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1213       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
   1214     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1215     ;;
   1216 
   1217   esac
   1218 done
   1219 
   1220 if test -n "$ac_prev"; then
   1221   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1222   as_fn_error $? "missing argument to $ac_option"
   1223 fi
   1224 
   1225 if test -n "$ac_unrecognized_opts"; then
   1226   case $enable_option_checking in
   1227     no) ;;
   1228     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1229     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1230   esac
   1231 fi
   1232 
   1233 # Check all directory arguments for consistency.
   1234 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1235 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1236 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1237 		libdir localedir mandir runstatedir
   1238 do
   1239   eval ac_val=\$$ac_var
   1240   # Remove trailing slashes.
   1241   case $ac_val in
   1242     */ )
   1243       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1244       eval $ac_var=\$ac_val;;
   1245   esac
   1246   # Be sure to have absolute directory names.
   1247   case $ac_val in
   1248     [\\/$]* | ?:[\\/]* )  continue;;
   1249     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1250   esac
   1251   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1252 done
   1253 
   1254 # There might be people who depend on the old broken behavior: `$host'
   1255 # used to hold the argument of --host etc.
   1256 # FIXME: To remove some day.
   1257 build=$build_alias
   1258 host=$host_alias
   1259 target=$target_alias
   1260 
   1261 # FIXME: To remove some day.
   1262 if test "x$host_alias" != x; then
   1263   if test "x$build_alias" = x; then
   1264     cross_compiling=maybe
   1265   elif test "x$build_alias" != "x$host_alias"; then
   1266     cross_compiling=yes
   1267   fi
   1268 fi
   1269 
   1270 ac_tool_prefix=
   1271 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1272 
   1273 test "$silent" = yes && exec 6>/dev/null
   1274 
   1275 
   1276 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1277 ac_ls_di=`ls -di .` &&
   1278 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1279   as_fn_error $? "working directory cannot be determined"
   1280 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1281   as_fn_error $? "pwd does not report name of working directory"
   1282 
   1283 
   1284 # Find the source files, if location was not specified.
   1285 if test -z "$srcdir"; then
   1286   ac_srcdir_defaulted=yes
   1287   # Try the directory containing this script, then the parent directory.
   1288   ac_confdir=`$as_dirname -- "$as_myself" ||
   1289 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1290 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1291 	 X"$as_myself" : 'X\(//\)$' \| \
   1292 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1293 printf "%s\n" X"$as_myself" |
   1294     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1295 	    s//\1/
   1296 	    q
   1297 	  }
   1298 	  /^X\(\/\/\)[^/].*/{
   1299 	    s//\1/
   1300 	    q
   1301 	  }
   1302 	  /^X\(\/\/\)$/{
   1303 	    s//\1/
   1304 	    q
   1305 	  }
   1306 	  /^X\(\/\).*/{
   1307 	    s//\1/
   1308 	    q
   1309 	  }
   1310 	  s/.*/./; q'`
   1311   srcdir=$ac_confdir
   1312   if test ! -r "$srcdir/$ac_unique_file"; then
   1313     srcdir=..
   1314   fi
   1315 else
   1316   ac_srcdir_defaulted=no
   1317 fi
   1318 if test ! -r "$srcdir/$ac_unique_file"; then
   1319   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1320   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1321 fi
   1322 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1323 ac_abs_confdir=`(
   1324 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1325 	pwd)`
   1326 # When building in place, set srcdir=.
   1327 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1328   srcdir=.
   1329 fi
   1330 # Remove unnecessary trailing slashes from srcdir.
   1331 # Double slashes in file names in object file debugging info
   1332 # mess up M-x gdb in Emacs.
   1333 case $srcdir in
   1334 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1335 esac
   1336 for ac_var in $ac_precious_vars; do
   1337   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1338   eval ac_env_${ac_var}_value=\$${ac_var}
   1339   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1340   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1341 done
   1342 
   1343 #
   1344 # Report the --help message.
   1345 #
   1346 if test "$ac_init_help" = "long"; then
   1347   # Omit some internal or obsolete options to make the list less imposing.
   1348   # This message is too long to be a string in the A/UX 3.1 sh.
   1349   cat <<_ACEOF
   1350 \`configure' configures lndir 1.0.4 to adapt to many kinds of systems.
   1351 
   1352 Usage: $0 [OPTION]... [VAR=VALUE]...
   1353 
   1354 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1355 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1356 
   1357 Defaults for the options are specified in brackets.
   1358 
   1359 Configuration:
   1360   -h, --help              display this help and exit
   1361       --help=short        display options specific to this package
   1362       --help=recursive    display the short help of all the included packages
   1363   -V, --version           display version information and exit
   1364   -q, --quiet, --silent   do not print \`checking ...' messages
   1365       --cache-file=FILE   cache test results in FILE [disabled]
   1366   -C, --config-cache      alias for \`--cache-file=config.cache'
   1367   -n, --no-create         do not create output files
   1368       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1369 
   1370 Installation directories:
   1371   --prefix=PREFIX         install architecture-independent files in PREFIX
   1372                           [$ac_default_prefix]
   1373   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1374                           [PREFIX]
   1375 
   1376 By default, \`make install' will install all the files in
   1377 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1378 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1379 for instance \`--prefix=\$HOME'.
   1380 
   1381 For better control, use the options below.
   1382 
   1383 Fine tuning of the installation directories:
   1384   --bindir=DIR            user executables [EPREFIX/bin]
   1385   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1386   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1387   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1388   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1389   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1390   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
   1391   --libdir=DIR            object code libraries [EPREFIX/lib]
   1392   --includedir=DIR        C header files [PREFIX/include]
   1393   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1394   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1395   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1396   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1397   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1398   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1399   --docdir=DIR            documentation root [DATAROOTDIR/doc/lndir]
   1400   --htmldir=DIR           html documentation [DOCDIR]
   1401   --dvidir=DIR            dvi documentation [DOCDIR]
   1402   --pdfdir=DIR            pdf documentation [DOCDIR]
   1403   --psdir=DIR             ps documentation [DOCDIR]
   1404 _ACEOF
   1405 
   1406   cat <<\_ACEOF
   1407 
   1408 Program names:
   1409   --program-prefix=PREFIX            prepend PREFIX to installed program names
   1410   --program-suffix=SUFFIX            append SUFFIX to installed program names
   1411   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
   1412 
   1413 System types:
   1414   --build=BUILD     configure for building on BUILD [guessed]
   1415   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1416 _ACEOF
   1417 fi
   1418 
   1419 if test -n "$ac_init_help"; then
   1420   case $ac_init_help in
   1421      short | recursive ) echo "Configuration of lndir 1.0.4:";;
   1422    esac
   1423   cat <<\_ACEOF
   1424 
   1425 Optional Features:
   1426   --disable-option-checking  ignore unrecognized --enable/--with options
   1427   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1428   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1429   --enable-dependency-tracking
   1430                           do not reject slow dependency extractors
   1431   --disable-dependency-tracking
   1432                           speeds up one-time build
   1433   --enable-silent-rules   less verbose build output (undo: "make V=1")
   1434   --disable-silent-rules  verbose build output (undo: "make V=0")
   1435   --disable-selective-werror
   1436                           Turn off selective compiler errors. (default:
   1437                           enabled)
   1438   --enable-strict-compilation
   1439                           Enable all warnings from compiler and make them
   1440                           errors (default: disabled)
   1441   --disable-largefile     omit support for large files
   1442 
   1443 Some influential environment variables:
   1444   CC          C compiler command
   1445   CFLAGS      C compiler flags
   1446   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1447               nonstandard directory <lib dir>
   1448   LIBS        libraries to pass to the linker, e.g. -l<library>
   1449   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1450               you have headers in a nonstandard directory <include dir>
   1451   PKG_CONFIG  path to pkg-config utility
   1452   PKG_CONFIG_PATH
   1453               directories to add to pkg-config's search path
   1454   PKG_CONFIG_LIBDIR
   1455               path overriding pkg-config's built-in search path
   1456   XPROTO_CFLAGS
   1457               C compiler flags for XPROTO, overriding pkg-config
   1458   XPROTO_LIBS linker flags for XPROTO, overriding pkg-config
   1459   LIBBSD_CFLAGS
   1460               C compiler flags for LIBBSD, overriding pkg-config
   1461   LIBBSD_LIBS linker flags for LIBBSD, overriding pkg-config
   1462 
   1463 Use these variables to override the choices made by `configure' or to help
   1464 it to find libraries and programs with nonstandard names/locations.
   1465 
   1466 Report bugs to <https://gitlab.freedesktop.org/xorg/util/lndir/-/issues>.
   1467 _ACEOF
   1468 ac_status=$?
   1469 fi
   1470 
   1471 if test "$ac_init_help" = "recursive"; then
   1472   # If there are subdirs, report their specific --help.
   1473   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1474     test -d "$ac_dir" ||
   1475       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1476       continue
   1477     ac_builddir=.
   1478 
   1479 case "$ac_dir" in
   1480 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1481 *)
   1482   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
   1483   # A ".." for each directory in $ac_dir_suffix.
   1484   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1485   case $ac_top_builddir_sub in
   1486   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1487   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1488   esac ;;
   1489 esac
   1490 ac_abs_top_builddir=$ac_pwd
   1491 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1492 # for backward compatibility:
   1493 ac_top_builddir=$ac_top_build_prefix
   1494 
   1495 case $srcdir in
   1496   .)  # We are building in place.
   1497     ac_srcdir=.
   1498     ac_top_srcdir=$ac_top_builddir_sub
   1499     ac_abs_top_srcdir=$ac_pwd ;;
   1500   [\\/]* | ?:[\\/]* )  # Absolute name.
   1501     ac_srcdir=$srcdir$ac_dir_suffix;
   1502     ac_top_srcdir=$srcdir
   1503     ac_abs_top_srcdir=$srcdir ;;
   1504   *) # Relative name.
   1505     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1506     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1507     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1508 esac
   1509 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1510 
   1511     cd "$ac_dir" || { ac_status=$?; continue; }
   1512     # Check for configure.gnu first; this name is used for a wrapper for
   1513     # Metaconfig's "Configure" on case-insensitive file systems.
   1514     if test -f "$ac_srcdir/configure.gnu"; then
   1515       echo &&
   1516       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1517     elif test -f "$ac_srcdir/configure"; then
   1518       echo &&
   1519       $SHELL "$ac_srcdir/configure" --help=recursive
   1520     else
   1521       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1522     fi || ac_status=$?
   1523     cd "$ac_pwd" || { ac_status=$?; break; }
   1524   done
   1525 fi
   1526 
   1527 test -n "$ac_init_help" && exit $ac_status
   1528 if $ac_init_version; then
   1529   cat <<\_ACEOF
   1530 lndir configure 1.0.4
   1531 generated by GNU Autoconf 2.71
   1532 
   1533 Copyright (C) 2021 Free Software Foundation, Inc.
   1534 This configure script is free software; the Free Software Foundation
   1535 gives unlimited permission to copy, distribute and modify it.
   1536 _ACEOF
   1537   exit
   1538 fi
   1539 
   1540 ## ------------------------ ##
   1541 ## Autoconf initialization. ##
   1542 ## ------------------------ ##
   1543 
   1544 # ac_fn_c_try_compile LINENO
   1545 # --------------------------
   1546 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1547 ac_fn_c_try_compile ()
   1548 {
   1549   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1550   rm -f conftest.$ac_objext conftest.beam
   1551   if { { ac_try="$ac_compile"
   1552 case "(($ac_try" in
   1553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1554   *) ac_try_echo=$ac_try;;
   1555 esac
   1556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1557 printf "%s\n" "$ac_try_echo"; } >&5
   1558   (eval "$ac_compile") 2>conftest.err
   1559   ac_status=$?
   1560   if test -s conftest.err; then
   1561     grep -v '^ *+' conftest.err >conftest.er1
   1562     cat conftest.er1 >&5
   1563     mv -f conftest.er1 conftest.err
   1564   fi
   1565   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1566   test $ac_status = 0; } && {
   1567 	 test -z "$ac_c_werror_flag" ||
   1568 	 test ! -s conftest.err
   1569        } && test -s conftest.$ac_objext
   1570 then :
   1571   ac_retval=0
   1572 else $as_nop
   1573   printf "%s\n" "$as_me: failed program was:" >&5
   1574 sed 's/^/| /' conftest.$ac_ext >&5
   1575 
   1576 	ac_retval=1
   1577 fi
   1578   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1579   as_fn_set_status $ac_retval
   1580 
   1581 } # ac_fn_c_try_compile
   1582 
   1583 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1584 # -------------------------------------------------------
   1585 # Tests whether HEADER exists and can be compiled using the include files in
   1586 # INCLUDES, setting the cache variable VAR accordingly.
   1587 ac_fn_c_check_header_compile ()
   1588 {
   1589   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1590   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1591 printf %s "checking for $2... " >&6; }
   1592 if eval test \${$3+y}
   1593 then :
   1594   printf %s "(cached) " >&6
   1595 else $as_nop
   1596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1597 /* end confdefs.h.  */
   1598 $4
   1599 #include <$2>
   1600 _ACEOF
   1601 if ac_fn_c_try_compile "$LINENO"
   1602 then :
   1603   eval "$3=yes"
   1604 else $as_nop
   1605   eval "$3=no"
   1606 fi
   1607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   1608 fi
   1609 eval ac_res=\$$3
   1610 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1611 printf "%s\n" "$ac_res" >&6; }
   1612   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1613 
   1614 } # ac_fn_c_check_header_compile
   1615 
   1616 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
   1617 # ------------------------------------------------------------------
   1618 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
   1619 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
   1620 ac_fn_check_decl ()
   1621 {
   1622   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1623   as_decl_name=`echo $2|sed 's/ *(.*//'`
   1624   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
   1625 printf %s "checking whether $as_decl_name is declared... " >&6; }
   1626 if eval test \${$3+y}
   1627 then :
   1628   printf %s "(cached) " >&6
   1629 else $as_nop
   1630   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
   1631   eval ac_save_FLAGS=\$$6
   1632   as_fn_append $6 " $5"
   1633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1634 /* end confdefs.h.  */
   1635 $4
   1636 int
   1637 main (void)
   1638 {
   1639 #ifndef $as_decl_name
   1640 #ifdef __cplusplus
   1641   (void) $as_decl_use;
   1642 #else
   1643   (void) $as_decl_name;
   1644 #endif
   1645 #endif
   1646 
   1647   ;
   1648   return 0;
   1649 }
   1650 _ACEOF
   1651 if ac_fn_c_try_compile "$LINENO"
   1652 then :
   1653   eval "$3=yes"
   1654 else $as_nop
   1655   eval "$3=no"
   1656 fi
   1657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   1658   eval $6=\$ac_save_FLAGS
   1659 
   1660 fi
   1661 eval ac_res=\$$3
   1662 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1663 printf "%s\n" "$ac_res" >&6; }
   1664   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1665 
   1666 } # ac_fn_check_decl
   1667 
   1668 # ac_fn_c_try_link LINENO
   1669 # -----------------------
   1670 # Try to link conftest.$ac_ext, and return whether this succeeded.
   1671 ac_fn_c_try_link ()
   1672 {
   1673   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1674   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
   1675   if { { ac_try="$ac_link"
   1676 case "(($ac_try" in
   1677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1678   *) ac_try_echo=$ac_try;;
   1679 esac
   1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1681 printf "%s\n" "$ac_try_echo"; } >&5
   1682   (eval "$ac_link") 2>conftest.err
   1683   ac_status=$?
   1684   if test -s conftest.err; then
   1685     grep -v '^ *+' conftest.err >conftest.er1
   1686     cat conftest.er1 >&5
   1687     mv -f conftest.er1 conftest.err
   1688   fi
   1689   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1690   test $ac_status = 0; } && {
   1691 	 test -z "$ac_c_werror_flag" ||
   1692 	 test ! -s conftest.err
   1693        } && test -s conftest$ac_exeext && {
   1694 	 test "$cross_compiling" = yes ||
   1695 	 test -x conftest$ac_exeext
   1696        }
   1697 then :
   1698   ac_retval=0
   1699 else $as_nop
   1700   printf "%s\n" "$as_me: failed program was:" >&5
   1701 sed 's/^/| /' conftest.$ac_ext >&5
   1702 
   1703 	ac_retval=1
   1704 fi
   1705   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1706   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1707   # interfere with the next link command; also delete a directory that is
   1708   # left behind by Apple's compiler.  We do this before executing the actions.
   1709   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1710   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1711   as_fn_set_status $ac_retval
   1712 
   1713 } # ac_fn_c_try_link
   1714 
   1715 # ac_fn_c_check_func LINENO FUNC VAR
   1716 # ----------------------------------
   1717 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   1718 ac_fn_c_check_func ()
   1719 {
   1720   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1721   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1722 printf %s "checking for $2... " >&6; }
   1723 if eval test \${$3+y}
   1724 then :
   1725   printf %s "(cached) " >&6
   1726 else $as_nop
   1727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1728 /* end confdefs.h.  */
   1729 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   1730    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   1731 #define $2 innocuous_$2
   1732 
   1733 /* System header to define __stub macros and hopefully few prototypes,
   1734    which can conflict with char $2 (); below.  */
   1735 
   1736 #include <limits.h>
   1737 #undef $2
   1738 
   1739 /* Override any GCC internal prototype to avoid an error.
   1740    Use char because int might match the return type of a GCC
   1741    builtin and then its argument prototype would still apply.  */
   1742 #ifdef __cplusplus
   1743 extern "C"
   1744 #endif
   1745 char $2 ();
   1746 /* The GNU C library defines this for functions which it implements
   1747     to always fail with ENOSYS.  Some functions are actually named
   1748     something starting with __ and the normal name is an alias.  */
   1749 #if defined __stub_$2 || defined __stub___$2
   1750 choke me
   1751 #endif
   1752 
   1753 int
   1754 main (void)
   1755 {
   1756 return $2 ();
   1757   ;
   1758   return 0;
   1759 }
   1760 _ACEOF
   1761 if ac_fn_c_try_link "$LINENO"
   1762 then :
   1763   eval "$3=yes"
   1764 else $as_nop
   1765   eval "$3=no"
   1766 fi
   1767 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   1768     conftest$ac_exeext conftest.$ac_ext
   1769 fi
   1770 eval ac_res=\$$3
   1771 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1772 printf "%s\n" "$ac_res" >&6; }
   1773   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1774 
   1775 } # ac_fn_c_check_func
   1776 ac_configure_args_raw=
   1777 for ac_arg
   1778 do
   1779   case $ac_arg in
   1780   *\'*)
   1781     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   1782   esac
   1783   as_fn_append ac_configure_args_raw " '$ac_arg'"
   1784 done
   1785 
   1786 case $ac_configure_args_raw in
   1787   *$as_nl*)
   1788     ac_safe_unquote= ;;
   1789   *)
   1790     ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
   1791     ac_unsafe_a="$ac_unsafe_z#~"
   1792     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
   1793     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
   1794 esac
   1795 
   1796 cat >config.log <<_ACEOF
   1797 This file contains any messages produced by compilers while
   1798 running configure, to aid debugging if configure makes a mistake.
   1799 
   1800 It was created by lndir $as_me 1.0.4, which was
   1801 generated by GNU Autoconf 2.71.  Invocation command line was
   1802 
   1803   $ $0$ac_configure_args_raw
   1804 
   1805 _ACEOF
   1806 exec 5>>config.log
   1807 {
   1808 cat <<_ASUNAME
   1809 ## --------- ##
   1810 ## Platform. ##
   1811 ## --------- ##
   1812 
   1813 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   1814 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   1815 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   1816 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   1817 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   1818 
   1819 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   1820 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   1821 
   1822 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   1823 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   1824 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   1825 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   1826 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   1827 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   1828 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   1829 
   1830 _ASUNAME
   1831 
   1832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1833 for as_dir in $PATH
   1834 do
   1835   IFS=$as_save_IFS
   1836   case $as_dir in #(((
   1837     '') as_dir=./ ;;
   1838     */) ;;
   1839     *) as_dir=$as_dir/ ;;
   1840   esac
   1841     printf "%s\n" "PATH: $as_dir"
   1842   done
   1843 IFS=$as_save_IFS
   1844 
   1845 } >&5
   1846 
   1847 cat >&5 <<_ACEOF
   1848 
   1849 
   1850 ## ----------- ##
   1851 ## Core tests. ##
   1852 ## ----------- ##
   1853 
   1854 _ACEOF
   1855 
   1856 
   1857 # Keep a trace of the command line.
   1858 # Strip out --no-create and --no-recursion so they do not pile up.
   1859 # Strip out --silent because we don't want to record it for future runs.
   1860 # Also quote any args containing shell meta-characters.
   1861 # Make two passes to allow for proper duplicate-argument suppression.
   1862 ac_configure_args=
   1863 ac_configure_args0=
   1864 ac_configure_args1=
   1865 ac_must_keep_next=false
   1866 for ac_pass in 1 2
   1867 do
   1868   for ac_arg
   1869   do
   1870     case $ac_arg in
   1871     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   1872     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1873     | -silent | --silent | --silen | --sile | --sil)
   1874       continue ;;
   1875     *\'*)
   1876       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   1877     esac
   1878     case $ac_pass in
   1879     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   1880     2)
   1881       as_fn_append ac_configure_args1 " '$ac_arg'"
   1882       if test $ac_must_keep_next = true; then
   1883 	ac_must_keep_next=false # Got value, back to normal.
   1884       else
   1885 	case $ac_arg in
   1886 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   1887 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   1888 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   1889 	  | -with-* | --with-* | -without-* | --without-* | --x)
   1890 	    case "$ac_configure_args0 " in
   1891 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   1892 	    esac
   1893 	    ;;
   1894 	  -* ) ac_must_keep_next=true ;;
   1895 	esac
   1896       fi
   1897       as_fn_append ac_configure_args " '$ac_arg'"
   1898       ;;
   1899     esac
   1900   done
   1901 done
   1902 { ac_configure_args0=; unset ac_configure_args0;}
   1903 { ac_configure_args1=; unset ac_configure_args1;}
   1904 
   1905 # When interrupted or exit'd, cleanup temporary files, and complete
   1906 # config.log.  We remove comments because anyway the quotes in there
   1907 # would cause problems or look ugly.
   1908 # WARNING: Use '\'' to represent an apostrophe within the trap.
   1909 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   1910 trap 'exit_status=$?
   1911   # Sanitize IFS.
   1912   IFS=" ""	$as_nl"
   1913   # Save into config.log some information that might help in debugging.
   1914   {
   1915     echo
   1916 
   1917     printf "%s\n" "## ---------------- ##
   1918 ## Cache variables. ##
   1919 ## ---------------- ##"
   1920     echo
   1921     # The following way of writing the cache mishandles newlines in values,
   1922 (
   1923   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   1924     eval ac_val=\$$ac_var
   1925     case $ac_val in #(
   1926     *${as_nl}*)
   1927       case $ac_var in #(
   1928       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   1929 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   1930       esac
   1931       case $ac_var in #(
   1932       _ | IFS | as_nl) ;; #(
   1933       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   1934       *) { eval $ac_var=; unset $ac_var;} ;;
   1935       esac ;;
   1936     esac
   1937   done
   1938   (set) 2>&1 |
   1939     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   1940     *${as_nl}ac_space=\ *)
   1941       sed -n \
   1942 	"s/'\''/'\''\\\\'\'''\''/g;
   1943 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   1944       ;; #(
   1945     *)
   1946       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   1947       ;;
   1948     esac |
   1949     sort
   1950 )
   1951     echo
   1952 
   1953     printf "%s\n" "## ----------------- ##
   1954 ## Output variables. ##
   1955 ## ----------------- ##"
   1956     echo
   1957     for ac_var in $ac_subst_vars
   1958     do
   1959       eval ac_val=\$$ac_var
   1960       case $ac_val in
   1961       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   1962       esac
   1963       printf "%s\n" "$ac_var='\''$ac_val'\''"
   1964     done | sort
   1965     echo
   1966 
   1967     if test -n "$ac_subst_files"; then
   1968       printf "%s\n" "## ------------------- ##
   1969 ## File substitutions. ##
   1970 ## ------------------- ##"
   1971       echo
   1972       for ac_var in $ac_subst_files
   1973       do
   1974 	eval ac_val=\$$ac_var
   1975 	case $ac_val in
   1976 	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   1977 	esac
   1978 	printf "%s\n" "$ac_var='\''$ac_val'\''"
   1979       done | sort
   1980       echo
   1981     fi
   1982 
   1983     if test -s confdefs.h; then
   1984       printf "%s\n" "## ----------- ##
   1985 ## confdefs.h. ##
   1986 ## ----------- ##"
   1987       echo
   1988       cat confdefs.h
   1989       echo
   1990     fi
   1991     test "$ac_signal" != 0 &&
   1992       printf "%s\n" "$as_me: caught signal $ac_signal"
   1993     printf "%s\n" "$as_me: exit $exit_status"
   1994   } >&5
   1995   rm -f core *.core core.conftest.* &&
   1996     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   1997     exit $exit_status
   1998 ' 0
   1999 for ac_signal in 1 2 13 15; do
   2000   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2001 done
   2002 ac_signal=0
   2003 
   2004 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2005 rm -f -r conftest* confdefs.h
   2006 
   2007 printf "%s\n" "/* confdefs.h */" > confdefs.h
   2008 
   2009 # Predefined preprocessor variables.
   2010 
   2011 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
   2012 
   2013 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
   2014 
   2015 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
   2016 
   2017 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
   2018 
   2019 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
   2020 
   2021 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
   2022 
   2023 
   2024 # Let the site file select an alternate cache file if it wants to.
   2025 # Prefer an explicitly selected file to automatically selected ones.
   2026 if test -n "$CONFIG_SITE"; then
   2027   ac_site_files="$CONFIG_SITE"
   2028 elif test "x$prefix" != xNONE; then
   2029   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
   2030 else
   2031   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
   2032 fi
   2033 
   2034 for ac_site_file in $ac_site_files
   2035 do
   2036   case $ac_site_file in #(
   2037   */*) :
   2038      ;; #(
   2039   *) :
   2040     ac_site_file=./$ac_site_file ;;
   2041 esac
   2042   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
   2043     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2044 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
   2045     sed 's/^/| /' "$ac_site_file" >&5
   2046     . "$ac_site_file" \
   2047       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2048 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   2049 as_fn_error $? "failed to load site script $ac_site_file
   2050 See \`config.log' for more details" "$LINENO" 5; }
   2051   fi
   2052 done
   2053 
   2054 if test -r "$cache_file"; then
   2055   # Some versions of bash will fail to source /dev/null (special files
   2056   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2057   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2058     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2059 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
   2060     case $cache_file in
   2061       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2062       *)                      . "./$cache_file";;
   2063     esac
   2064   fi
   2065 else
   2066   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2067 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
   2068   >$cache_file
   2069 fi
   2070 
   2071 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
   2072 # Test code for whether the C compiler supports C89 (global declarations)
   2073 ac_c_conftest_c89_globals='
   2074 /* Does the compiler advertise C89 conformance?
   2075    Do not test the value of __STDC__, because some compilers set it to 0
   2076    while being otherwise adequately conformant. */
   2077 #if !defined __STDC__
   2078 # error "Compiler does not advertise C89 conformance"
   2079 #endif
   2080 
   2081 #include <stddef.h>
   2082 #include <stdarg.h>
   2083 struct stat;
   2084 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
   2085 struct buf { int x; };
   2086 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
   2087 static char *e (p, i)
   2088      char **p;
   2089      int i;
   2090 {
   2091   return p[i];
   2092 }
   2093 static char *f (char * (*g) (char **, int), char **p, ...)
   2094 {
   2095   char *s;
   2096   va_list v;
   2097   va_start (v,p);
   2098   s = g (p, va_arg (v,int));
   2099   va_end (v);
   2100   return s;
   2101 }
   2102 
   2103 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   2104    function prototypes and stuff, but not \xHH hex character constants.
   2105    These do not provoke an error unfortunately, instead are silently treated
   2106    as an "x".  The following induces an error, until -std is added to get
   2107    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
   2108    array size at least.  It is necessary to write \x00 == 0 to get something
   2109    that is true only with -std.  */
   2110 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
   2111 
   2112 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   2113    inside strings and character constants.  */
   2114 #define FOO(x) '\''x'\''
   2115 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
   2116 
   2117 int test (int i, double x);
   2118 struct s1 {int (*f) (int a);};
   2119 struct s2 {int (*f) (double a);};
   2120 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
   2121                int, int);'
   2122 
   2123 # Test code for whether the C compiler supports C89 (body of main).
   2124 ac_c_conftest_c89_main='
   2125 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
   2126 '
   2127 
   2128 # Test code for whether the C compiler supports C99 (global declarations)
   2129 ac_c_conftest_c99_globals='
   2130 // Does the compiler advertise C99 conformance?
   2131 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
   2132 # error "Compiler does not advertise C99 conformance"
   2133 #endif
   2134 
   2135 #include <stdbool.h>
   2136 extern int puts (const char *);
   2137 extern int printf (const char *, ...);
   2138 extern int dprintf (int, const char *, ...);
   2139 extern void *malloc (size_t);
   2140 
   2141 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
   2142 // dprintf is used instead of fprintf to avoid needing to declare
   2143 // FILE and stderr.
   2144 #define debug(...) dprintf (2, __VA_ARGS__)
   2145 #define showlist(...) puts (#__VA_ARGS__)
   2146 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
   2147 static void
   2148 test_varargs_macros (void)
   2149 {
   2150   int x = 1234;
   2151   int y = 5678;
   2152   debug ("Flag");
   2153   debug ("X = %d\n", x);
   2154   showlist (The first, second, and third items.);
   2155   report (x>y, "x is %d but y is %d", x, y);
   2156 }
   2157 
   2158 // Check long long types.
   2159 #define BIG64 18446744073709551615ull
   2160 #define BIG32 4294967295ul
   2161 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
   2162 #if !BIG_OK
   2163   #error "your preprocessor is broken"
   2164 #endif
   2165 #if BIG_OK
   2166 #else
   2167   #error "your preprocessor is broken"
   2168 #endif
   2169 static long long int bignum = -9223372036854775807LL;
   2170 static unsigned long long int ubignum = BIG64;
   2171 
   2172 struct incomplete_array
   2173 {
   2174   int datasize;
   2175   double data[];
   2176 };
   2177 
   2178 struct named_init {
   2179   int number;
   2180   const wchar_t *name;
   2181   double average;
   2182 };
   2183 
   2184 typedef const char *ccp;
   2185 
   2186 static inline int
   2187 test_restrict (ccp restrict text)
   2188 {
   2189   // See if C++-style comments work.
   2190   // Iterate through items via the restricted pointer.
   2191   // Also check for declarations in for loops.
   2192   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
   2193     continue;
   2194   return 0;
   2195 }
   2196 
   2197 // Check varargs and va_copy.
   2198 static bool
   2199 test_varargs (const char *format, ...)
   2200 {
   2201   va_list args;
   2202   va_start (args, format);
   2203   va_list args_copy;
   2204   va_copy (args_copy, args);
   2205 
   2206   const char *str = "";
   2207   int number = 0;
   2208   float fnumber = 0;
   2209 
   2210   while (*format)
   2211     {
   2212       switch (*format++)
   2213 	{
   2214 	case '\''s'\'': // string
   2215 	  str = va_arg (args_copy, const char *);
   2216 	  break;
   2217 	case '\''d'\'': // int
   2218 	  number = va_arg (args_copy, int);
   2219 	  break;
   2220 	case '\''f'\'': // float
   2221 	  fnumber = va_arg (args_copy, double);
   2222 	  break;
   2223 	default:
   2224 	  break;
   2225 	}
   2226     }
   2227   va_end (args_copy);
   2228   va_end (args);
   2229 
   2230   return *str && number && fnumber;
   2231 }
   2232 '
   2233 
   2234 # Test code for whether the C compiler supports C99 (body of main).
   2235 ac_c_conftest_c99_main='
   2236   // Check bool.
   2237   _Bool success = false;
   2238   success |= (argc != 0);
   2239 
   2240   // Check restrict.
   2241   if (test_restrict ("String literal") == 0)
   2242     success = true;
   2243   char *restrict newvar = "Another string";
   2244 
   2245   // Check varargs.
   2246   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
   2247   test_varargs_macros ();
   2248 
   2249   // Check flexible array members.
   2250   struct incomplete_array *ia =
   2251     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
   2252   ia->datasize = 10;
   2253   for (int i = 0; i < ia->datasize; ++i)
   2254     ia->data[i] = i * 1.234;
   2255 
   2256   // Check named initializers.
   2257   struct named_init ni = {
   2258     .number = 34,
   2259     .name = L"Test wide string",
   2260     .average = 543.34343,
   2261   };
   2262 
   2263   ni.number = 58;
   2264 
   2265   int dynamic_array[ni.number];
   2266   dynamic_array[0] = argv[0][0];
   2267   dynamic_array[ni.number - 1] = 543;
   2268 
   2269   // work around unused variable warnings
   2270   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
   2271 	 || dynamic_array[ni.number - 1] != 543);
   2272 '
   2273 
   2274 # Test code for whether the C compiler supports C11 (global declarations)
   2275 ac_c_conftest_c11_globals='
   2276 // Does the compiler advertise C11 conformance?
   2277 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
   2278 # error "Compiler does not advertise C11 conformance"
   2279 #endif
   2280 
   2281 // Check _Alignas.
   2282 char _Alignas (double) aligned_as_double;
   2283 char _Alignas (0) no_special_alignment;
   2284 extern char aligned_as_int;
   2285 char _Alignas (0) _Alignas (int) aligned_as_int;
   2286 
   2287 // Check _Alignof.
   2288 enum
   2289 {
   2290   int_alignment = _Alignof (int),
   2291   int_array_alignment = _Alignof (int[100]),
   2292   char_alignment = _Alignof (char)
   2293 };
   2294 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
   2295 
   2296 // Check _Noreturn.
   2297 int _Noreturn does_not_return (void) { for (;;) continue; }
   2298 
   2299 // Check _Static_assert.
   2300 struct test_static_assert
   2301 {
   2302   int x;
   2303   _Static_assert (sizeof (int) <= sizeof (long int),
   2304                   "_Static_assert does not work in struct");
   2305   long int y;
   2306 };
   2307 
   2308 // Check UTF-8 literals.
   2309 #define u8 syntax error!
   2310 char const utf8_literal[] = u8"happens to be ASCII" "another string";
   2311 
   2312 // Check duplicate typedefs.
   2313 typedef long *long_ptr;
   2314 typedef long int *long_ptr;
   2315 typedef long_ptr long_ptr;
   2316 
   2317 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
   2318 struct anonymous
   2319 {
   2320   union {
   2321     struct { int i; int j; };
   2322     struct { int k; long int l; } w;
   2323   };
   2324   int m;
   2325 } v1;
   2326 '
   2327 
   2328 # Test code for whether the C compiler supports C11 (body of main).
   2329 ac_c_conftest_c11_main='
   2330   _Static_assert ((offsetof (struct anonymous, i)
   2331 		   == offsetof (struct anonymous, w.k)),
   2332 		  "Anonymous union alignment botch");
   2333   v1.i = 2;
   2334   v1.w.k = 5;
   2335   ok |= v1.i != 5;
   2336 '
   2337 
   2338 # Test code for whether the C compiler supports C11 (complete).
   2339 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
   2340 ${ac_c_conftest_c99_globals}
   2341 ${ac_c_conftest_c11_globals}
   2342 
   2343 int
   2344 main (int argc, char **argv)
   2345 {
   2346   int ok = 0;
   2347   ${ac_c_conftest_c89_main}
   2348   ${ac_c_conftest_c99_main}
   2349   ${ac_c_conftest_c11_main}
   2350   return ok;
   2351 }
   2352 "
   2353 
   2354 # Test code for whether the C compiler supports C99 (complete).
   2355 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
   2356 ${ac_c_conftest_c99_globals}
   2357 
   2358 int
   2359 main (int argc, char **argv)
   2360 {
   2361   int ok = 0;
   2362   ${ac_c_conftest_c89_main}
   2363   ${ac_c_conftest_c99_main}
   2364   return ok;
   2365 }
   2366 "
   2367 
   2368 # Test code for whether the C compiler supports C89 (complete).
   2369 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
   2370 
   2371 int
   2372 main (int argc, char **argv)
   2373 {
   2374   int ok = 0;
   2375   ${ac_c_conftest_c89_main}
   2376   return ok;
   2377 }
   2378 "
   2379 
   2380 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
   2381 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
   2382 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
   2383 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
   2384 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
   2385 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
   2386 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
   2387 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
   2388 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
   2389 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
   2390 
   2391 # Auxiliary files required by this configure script.
   2392 ac_aux_files="config.guess config.sub missing install-sh compile"
   2393 
   2394 # Locations in which to look for auxiliary files.
   2395 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
   2396 
   2397 # Search for a directory containing all of the required auxiliary files,
   2398 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
   2399 # If we don't find one directory that contains all the files we need,
   2400 # we report the set of missing files from the *first* directory in
   2401 # $ac_aux_dir_candidates and give up.
   2402 ac_missing_aux_files=""
   2403 ac_first_candidate=:
   2404 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
   2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2406 as_found=false
   2407 for as_dir in $ac_aux_dir_candidates
   2408 do
   2409   IFS=$as_save_IFS
   2410   case $as_dir in #(((
   2411     '') as_dir=./ ;;
   2412     */) ;;
   2413     *) as_dir=$as_dir/ ;;
   2414   esac
   2415   as_found=:
   2416 
   2417   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
   2418   ac_aux_dir_found=yes
   2419   ac_install_sh=
   2420   for ac_aux in $ac_aux_files
   2421   do
   2422     # As a special case, if "install-sh" is required, that requirement
   2423     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
   2424     # and $ac_install_sh is set appropriately for whichever one is found.
   2425     if test x"$ac_aux" = x"install-sh"
   2426     then
   2427       if test -f "${as_dir}install-sh"; then
   2428         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
   2429         ac_install_sh="${as_dir}install-sh -c"
   2430       elif test -f "${as_dir}install.sh"; then
   2431         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
   2432         ac_install_sh="${as_dir}install.sh -c"
   2433       elif test -f "${as_dir}shtool"; then
   2434         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
   2435         ac_install_sh="${as_dir}shtool install -c"
   2436       else
   2437         ac_aux_dir_found=no
   2438         if $ac_first_candidate; then
   2439           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
   2440         else
   2441           break
   2442         fi
   2443       fi
   2444     else
   2445       if test -f "${as_dir}${ac_aux}"; then
   2446         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
   2447       else
   2448         ac_aux_dir_found=no
   2449         if $ac_first_candidate; then
   2450           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
   2451         else
   2452           break
   2453         fi
   2454       fi
   2455     fi
   2456   done
   2457   if test "$ac_aux_dir_found" = yes; then
   2458     ac_aux_dir="$as_dir"
   2459     break
   2460   fi
   2461   ac_first_candidate=false
   2462 
   2463   as_found=false
   2464 done
   2465 IFS=$as_save_IFS
   2466 if $as_found
   2467 then :
   2468 
   2469 else $as_nop
   2470   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
   2471 fi
   2472 
   2473 
   2474 # These three variables are undocumented and unsupported,
   2475 # and are intended to be withdrawn in a future Autoconf release.
   2476 # They can cause serious problems if a builder's source tree is in a directory
   2477 # whose full name contains unusual characters.
   2478 if test -f "${ac_aux_dir}config.guess"; then
   2479   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
   2480 fi
   2481 if test -f "${ac_aux_dir}config.sub"; then
   2482   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
   2483 fi
   2484 if test -f "$ac_aux_dir/configure"; then
   2485   ac_configure="$SHELL ${ac_aux_dir}configure"
   2486 fi
   2487 
   2488 # Check that the precious variables saved in the cache have kept the same
   2489 # value.
   2490 ac_cache_corrupted=false
   2491 for ac_var in $ac_precious_vars; do
   2492   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2493   eval ac_new_set=\$ac_env_${ac_var}_set
   2494   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2495   eval ac_new_val=\$ac_env_${ac_var}_value
   2496   case $ac_old_set,$ac_new_set in
   2497     set,)
   2498       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2499 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2500       ac_cache_corrupted=: ;;
   2501     ,set)
   2502       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2503 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2504       ac_cache_corrupted=: ;;
   2505     ,);;
   2506     *)
   2507       if test "x$ac_old_val" != "x$ac_new_val"; then
   2508 	# differences in whitespace do not lead to failure.
   2509 	ac_old_val_w=`echo x $ac_old_val`
   2510 	ac_new_val_w=`echo x $ac_new_val`
   2511 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2512 	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2513 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2514 	  ac_cache_corrupted=:
   2515 	else
   2516 	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2517 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2518 	  eval $ac_var=\$ac_old_val
   2519 	fi
   2520 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2521 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2522 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2523 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
   2524       fi;;
   2525   esac
   2526   # Pass precious variables to config.status.
   2527   if test "$ac_new_set" = set; then
   2528     case $ac_new_val in
   2529     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2530     *) ac_arg=$ac_var=$ac_new_val ;;
   2531     esac
   2532     case " $ac_configure_args " in
   2533       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2534       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2535     esac
   2536   fi
   2537 done
   2538 if $ac_cache_corrupted; then
   2539   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2540 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   2541   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2542 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
   2543   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
   2544 	    and start over" "$LINENO" 5
   2545 fi
   2546 ## -------------------- ##
   2547 ## Main body of script. ##
   2548 ## -------------------- ##
   2549 
   2550 ac_ext=c
   2551 ac_cpp='$CPP $CPPFLAGS'
   2552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2555 
   2556 
   2557 
   2558 ac_config_headers="$ac_config_headers config.h"
   2559 
   2560 
   2561 
   2562 
   2563 
   2564 
   2565 
   2566 
   2567 
   2568 
   2569 
   2570 
   2571 # Expand $ac_aux_dir to an absolute path.
   2572 am_aux_dir=`cd "$ac_aux_dir" && pwd`
   2573 
   2574 ac_ext=c
   2575 ac_cpp='$CPP $CPPFLAGS'
   2576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2579 if test -n "$ac_tool_prefix"; then
   2580   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   2581 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   2582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2583 printf %s "checking for $ac_word... " >&6; }
   2584 if test ${ac_cv_prog_CC+y}
   2585 then :
   2586   printf %s "(cached) " >&6
   2587 else $as_nop
   2588   if test -n "$CC"; then
   2589   ac_cv_prog_CC="$CC" # Let the user override the test.
   2590 else
   2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2592 for as_dir in $PATH
   2593 do
   2594   IFS=$as_save_IFS
   2595   case $as_dir in #(((
   2596     '') as_dir=./ ;;
   2597     */) ;;
   2598     *) as_dir=$as_dir/ ;;
   2599   esac
   2600     for ac_exec_ext in '' $ac_executable_extensions; do
   2601   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2602     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   2603     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2604     break 2
   2605   fi
   2606 done
   2607   done
   2608 IFS=$as_save_IFS
   2609 
   2610 fi
   2611 fi
   2612 CC=$ac_cv_prog_CC
   2613 if test -n "$CC"; then
   2614   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2615 printf "%s\n" "$CC" >&6; }
   2616 else
   2617   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2618 printf "%s\n" "no" >&6; }
   2619 fi
   2620 
   2621 
   2622 fi
   2623 if test -z "$ac_cv_prog_CC"; then
   2624   ac_ct_CC=$CC
   2625   # Extract the first word of "gcc", so it can be a program name with args.
   2626 set dummy gcc; ac_word=$2
   2627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2628 printf %s "checking for $ac_word... " >&6; }
   2629 if test ${ac_cv_prog_ac_ct_CC+y}
   2630 then :
   2631   printf %s "(cached) " >&6
   2632 else $as_nop
   2633   if test -n "$ac_ct_CC"; then
   2634   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2635 else
   2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2637 for as_dir in $PATH
   2638 do
   2639   IFS=$as_save_IFS
   2640   case $as_dir in #(((
   2641     '') as_dir=./ ;;
   2642     */) ;;
   2643     *) as_dir=$as_dir/ ;;
   2644   esac
   2645     for ac_exec_ext in '' $ac_executable_extensions; do
   2646   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2647     ac_cv_prog_ac_ct_CC="gcc"
   2648     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2649     break 2
   2650   fi
   2651 done
   2652   done
   2653 IFS=$as_save_IFS
   2654 
   2655 fi
   2656 fi
   2657 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2658 if test -n "$ac_ct_CC"; then
   2659   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2660 printf "%s\n" "$ac_ct_CC" >&6; }
   2661 else
   2662   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2663 printf "%s\n" "no" >&6; }
   2664 fi
   2665 
   2666   if test "x$ac_ct_CC" = x; then
   2667     CC=""
   2668   else
   2669     case $cross_compiling:$ac_tool_warned in
   2670 yes:)
   2671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2672 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2673 ac_tool_warned=yes ;;
   2674 esac
   2675     CC=$ac_ct_CC
   2676   fi
   2677 else
   2678   CC="$ac_cv_prog_CC"
   2679 fi
   2680 
   2681 if test -z "$CC"; then
   2682           if test -n "$ac_tool_prefix"; then
   2683     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   2684 set dummy ${ac_tool_prefix}cc; ac_word=$2
   2685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2686 printf %s "checking for $ac_word... " >&6; }
   2687 if test ${ac_cv_prog_CC+y}
   2688 then :
   2689   printf %s "(cached) " >&6
   2690 else $as_nop
   2691   if test -n "$CC"; then
   2692   ac_cv_prog_CC="$CC" # Let the user override the test.
   2693 else
   2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2695 for as_dir in $PATH
   2696 do
   2697   IFS=$as_save_IFS
   2698   case $as_dir in #(((
   2699     '') as_dir=./ ;;
   2700     */) ;;
   2701     *) as_dir=$as_dir/ ;;
   2702   esac
   2703     for ac_exec_ext in '' $ac_executable_extensions; do
   2704   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2705     ac_cv_prog_CC="${ac_tool_prefix}cc"
   2706     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2707     break 2
   2708   fi
   2709 done
   2710   done
   2711 IFS=$as_save_IFS
   2712 
   2713 fi
   2714 fi
   2715 CC=$ac_cv_prog_CC
   2716 if test -n "$CC"; then
   2717   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2718 printf "%s\n" "$CC" >&6; }
   2719 else
   2720   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2721 printf "%s\n" "no" >&6; }
   2722 fi
   2723 
   2724 
   2725   fi
   2726 fi
   2727 if test -z "$CC"; then
   2728   # Extract the first word of "cc", so it can be a program name with args.
   2729 set dummy cc; ac_word=$2
   2730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2731 printf %s "checking for $ac_word... " >&6; }
   2732 if test ${ac_cv_prog_CC+y}
   2733 then :
   2734   printf %s "(cached) " >&6
   2735 else $as_nop
   2736   if test -n "$CC"; then
   2737   ac_cv_prog_CC="$CC" # Let the user override the test.
   2738 else
   2739   ac_prog_rejected=no
   2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2741 for as_dir in $PATH
   2742 do
   2743   IFS=$as_save_IFS
   2744   case $as_dir in #(((
   2745     '') as_dir=./ ;;
   2746     */) ;;
   2747     *) as_dir=$as_dir/ ;;
   2748   esac
   2749     for ac_exec_ext in '' $ac_executable_extensions; do
   2750   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2751     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   2752        ac_prog_rejected=yes
   2753        continue
   2754      fi
   2755     ac_cv_prog_CC="cc"
   2756     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2757     break 2
   2758   fi
   2759 done
   2760   done
   2761 IFS=$as_save_IFS
   2762 
   2763 if test $ac_prog_rejected = yes; then
   2764   # We found a bogon in the path, so make sure we never use it.
   2765   set dummy $ac_cv_prog_CC
   2766   shift
   2767   if test $# != 0; then
   2768     # We chose a different compiler from the bogus one.
   2769     # However, it has the same basename, so the bogon will be chosen
   2770     # first if we set CC to just the basename; use the full file name.
   2771     shift
   2772     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
   2773   fi
   2774 fi
   2775 fi
   2776 fi
   2777 CC=$ac_cv_prog_CC
   2778 if test -n "$CC"; then
   2779   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2780 printf "%s\n" "$CC" >&6; }
   2781 else
   2782   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2783 printf "%s\n" "no" >&6; }
   2784 fi
   2785 
   2786 
   2787 fi
   2788 if test -z "$CC"; then
   2789   if test -n "$ac_tool_prefix"; then
   2790   for ac_prog in cl.exe
   2791   do
   2792     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2793 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2795 printf %s "checking for $ac_word... " >&6; }
   2796 if test ${ac_cv_prog_CC+y}
   2797 then :
   2798   printf %s "(cached) " >&6
   2799 else $as_nop
   2800   if test -n "$CC"; then
   2801   ac_cv_prog_CC="$CC" # Let the user override the test.
   2802 else
   2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2804 for as_dir in $PATH
   2805 do
   2806   IFS=$as_save_IFS
   2807   case $as_dir in #(((
   2808     '') as_dir=./ ;;
   2809     */) ;;
   2810     *) as_dir=$as_dir/ ;;
   2811   esac
   2812     for ac_exec_ext in '' $ac_executable_extensions; do
   2813   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2814     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   2815     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2816     break 2
   2817   fi
   2818 done
   2819   done
   2820 IFS=$as_save_IFS
   2821 
   2822 fi
   2823 fi
   2824 CC=$ac_cv_prog_CC
   2825 if test -n "$CC"; then
   2826   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2827 printf "%s\n" "$CC" >&6; }
   2828 else
   2829   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2830 printf "%s\n" "no" >&6; }
   2831 fi
   2832 
   2833 
   2834     test -n "$CC" && break
   2835   done
   2836 fi
   2837 if test -z "$CC"; then
   2838   ac_ct_CC=$CC
   2839   for ac_prog in cl.exe
   2840 do
   2841   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2842 set dummy $ac_prog; ac_word=$2
   2843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2844 printf %s "checking for $ac_word... " >&6; }
   2845 if test ${ac_cv_prog_ac_ct_CC+y}
   2846 then :
   2847   printf %s "(cached) " >&6
   2848 else $as_nop
   2849   if test -n "$ac_ct_CC"; then
   2850   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2851 else
   2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2853 for as_dir in $PATH
   2854 do
   2855   IFS=$as_save_IFS
   2856   case $as_dir in #(((
   2857     '') as_dir=./ ;;
   2858     */) ;;
   2859     *) as_dir=$as_dir/ ;;
   2860   esac
   2861     for ac_exec_ext in '' $ac_executable_extensions; do
   2862   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2863     ac_cv_prog_ac_ct_CC="$ac_prog"
   2864     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2865     break 2
   2866   fi
   2867 done
   2868   done
   2869 IFS=$as_save_IFS
   2870 
   2871 fi
   2872 fi
   2873 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2874 if test -n "$ac_ct_CC"; then
   2875   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2876 printf "%s\n" "$ac_ct_CC" >&6; }
   2877 else
   2878   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2879 printf "%s\n" "no" >&6; }
   2880 fi
   2881 
   2882 
   2883   test -n "$ac_ct_CC" && break
   2884 done
   2885 
   2886   if test "x$ac_ct_CC" = x; then
   2887     CC=""
   2888   else
   2889     case $cross_compiling:$ac_tool_warned in
   2890 yes:)
   2891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2892 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2893 ac_tool_warned=yes ;;
   2894 esac
   2895     CC=$ac_ct_CC
   2896   fi
   2897 fi
   2898 
   2899 fi
   2900 if test -z "$CC"; then
   2901   if test -n "$ac_tool_prefix"; then
   2902   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
   2903 set dummy ${ac_tool_prefix}clang; ac_word=$2
   2904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2905 printf %s "checking for $ac_word... " >&6; }
   2906 if test ${ac_cv_prog_CC+y}
   2907 then :
   2908   printf %s "(cached) " >&6
   2909 else $as_nop
   2910   if test -n "$CC"; then
   2911   ac_cv_prog_CC="$CC" # Let the user override the test.
   2912 else
   2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2914 for as_dir in $PATH
   2915 do
   2916   IFS=$as_save_IFS
   2917   case $as_dir in #(((
   2918     '') as_dir=./ ;;
   2919     */) ;;
   2920     *) as_dir=$as_dir/ ;;
   2921   esac
   2922     for ac_exec_ext in '' $ac_executable_extensions; do
   2923   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2924     ac_cv_prog_CC="${ac_tool_prefix}clang"
   2925     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2926     break 2
   2927   fi
   2928 done
   2929   done
   2930 IFS=$as_save_IFS
   2931 
   2932 fi
   2933 fi
   2934 CC=$ac_cv_prog_CC
   2935 if test -n "$CC"; then
   2936   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2937 printf "%s\n" "$CC" >&6; }
   2938 else
   2939   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2940 printf "%s\n" "no" >&6; }
   2941 fi
   2942 
   2943 
   2944 fi
   2945 if test -z "$ac_cv_prog_CC"; then
   2946   ac_ct_CC=$CC
   2947   # Extract the first word of "clang", so it can be a program name with args.
   2948 set dummy clang; ac_word=$2
   2949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2950 printf %s "checking for $ac_word... " >&6; }
   2951 if test ${ac_cv_prog_ac_ct_CC+y}
   2952 then :
   2953   printf %s "(cached) " >&6
   2954 else $as_nop
   2955   if test -n "$ac_ct_CC"; then
   2956   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2957 else
   2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2959 for as_dir in $PATH
   2960 do
   2961   IFS=$as_save_IFS
   2962   case $as_dir in #(((
   2963     '') as_dir=./ ;;
   2964     */) ;;
   2965     *) as_dir=$as_dir/ ;;
   2966   esac
   2967     for ac_exec_ext in '' $ac_executable_extensions; do
   2968   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2969     ac_cv_prog_ac_ct_CC="clang"
   2970     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2971     break 2
   2972   fi
   2973 done
   2974   done
   2975 IFS=$as_save_IFS
   2976 
   2977 fi
   2978 fi
   2979 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2980 if test -n "$ac_ct_CC"; then
   2981   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2982 printf "%s\n" "$ac_ct_CC" >&6; }
   2983 else
   2984   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2985 printf "%s\n" "no" >&6; }
   2986 fi
   2987 
   2988   if test "x$ac_ct_CC" = x; then
   2989     CC=""
   2990   else
   2991     case $cross_compiling:$ac_tool_warned in
   2992 yes:)
   2993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2994 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2995 ac_tool_warned=yes ;;
   2996 esac
   2997     CC=$ac_ct_CC
   2998   fi
   2999 else
   3000   CC="$ac_cv_prog_CC"
   3001 fi
   3002 
   3003 fi
   3004 
   3005 
   3006 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3007 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   3008 as_fn_error $? "no acceptable C compiler found in \$PATH
   3009 See \`config.log' for more details" "$LINENO" 5; }
   3010 
   3011 # Provide some information about the compiler.
   3012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3013 set X $ac_compile
   3014 ac_compiler=$2
   3015 for ac_option in --version -v -V -qversion -version; do
   3016   { { ac_try="$ac_compiler $ac_option >&5"
   3017 case "(($ac_try" in
   3018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3019   *) ac_try_echo=$ac_try;;
   3020 esac
   3021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3022 printf "%s\n" "$ac_try_echo"; } >&5
   3023   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3024   ac_status=$?
   3025   if test -s conftest.err; then
   3026     sed '10a\
   3027 ... rest of stderr output deleted ...
   3028          10q' conftest.err >conftest.er1
   3029     cat conftest.er1 >&5
   3030   fi
   3031   rm -f conftest.er1 conftest.err
   3032   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3033   test $ac_status = 0; }
   3034 done
   3035 
   3036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3037 /* end confdefs.h.  */
   3038 
   3039 int
   3040 main (void)
   3041 {
   3042 
   3043   ;
   3044   return 0;
   3045 }
   3046 _ACEOF
   3047 ac_clean_files_save=$ac_clean_files
   3048 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   3049 # Try to create an executable without -o first, disregard a.out.
   3050 # It will help us diagnose broken compilers, and finding out an intuition
   3051 # of exeext.
   3052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3053 printf %s "checking whether the C compiler works... " >&6; }
   3054 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3055 
   3056 # The possible output files:
   3057 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3058 
   3059 ac_rmfiles=
   3060 for ac_file in $ac_files
   3061 do
   3062   case $ac_file in
   3063     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3064     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3065   esac
   3066 done
   3067 rm -f $ac_rmfiles
   3068 
   3069 if { { ac_try="$ac_link_default"
   3070 case "(($ac_try" in
   3071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3072   *) ac_try_echo=$ac_try;;
   3073 esac
   3074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3075 printf "%s\n" "$ac_try_echo"; } >&5
   3076   (eval "$ac_link_default") 2>&5
   3077   ac_status=$?
   3078   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3079   test $ac_status = 0; }
   3080 then :
   3081   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3082 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3083 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3084 # so that the user can short-circuit this test for compilers unknown to
   3085 # Autoconf.
   3086 for ac_file in $ac_files ''
   3087 do
   3088   test -f "$ac_file" || continue
   3089   case $ac_file in
   3090     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3091 	;;
   3092     [ab].out )
   3093 	# We found the default executable, but exeext='' is most
   3094 	# certainly right.
   3095 	break;;
   3096     *.* )
   3097 	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
   3098 	then :; else
   3099 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3100 	fi
   3101 	# We set ac_cv_exeext here because the later test for it is not
   3102 	# safe: cross compilers may not add the suffix if given an `-o'
   3103 	# argument, so we may need to know it at that point already.
   3104 	# Even if this section looks crufty: it has the advantage of
   3105 	# actually working.
   3106 	break;;
   3107     * )
   3108 	break;;
   3109   esac
   3110 done
   3111 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3112 
   3113 else $as_nop
   3114   ac_file=''
   3115 fi
   3116 if test -z "$ac_file"
   3117 then :
   3118   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3119 printf "%s\n" "no" >&6; }
   3120 printf "%s\n" "$as_me: failed program was:" >&5
   3121 sed 's/^/| /' conftest.$ac_ext >&5
   3122 
   3123 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3124 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   3125 as_fn_error 77 "C compiler cannot create executables
   3126 See \`config.log' for more details" "$LINENO" 5; }
   3127 else $as_nop
   3128   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3129 printf "%s\n" "yes" >&6; }
   3130 fi
   3131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3132 printf %s "checking for C compiler default output file name... " >&6; }
   3133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3134 printf "%s\n" "$ac_file" >&6; }
   3135 ac_exeext=$ac_cv_exeext
   3136 
   3137 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3138 ac_clean_files=$ac_clean_files_save
   3139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3140 printf %s "checking for suffix of executables... " >&6; }
   3141 if { { ac_try="$ac_link"
   3142 case "(($ac_try" in
   3143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3144   *) ac_try_echo=$ac_try;;
   3145 esac
   3146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3147 printf "%s\n" "$ac_try_echo"; } >&5
   3148   (eval "$ac_link") 2>&5
   3149   ac_status=$?
   3150   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3151   test $ac_status = 0; }
   3152 then :
   3153   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3154 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3155 # work properly (i.e., refer to `conftest.exe'), while it won't with
   3156 # `rm'.
   3157 for ac_file in conftest.exe conftest conftest.*; do
   3158   test -f "$ac_file" || continue
   3159   case $ac_file in
   3160     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3161     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3162 	  break;;
   3163     * ) break;;
   3164   esac
   3165 done
   3166 else $as_nop
   3167   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3168 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   3169 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   3170 See \`config.log' for more details" "$LINENO" 5; }
   3171 fi
   3172 rm -f conftest conftest$ac_cv_exeext
   3173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3174 printf "%s\n" "$ac_cv_exeext" >&6; }
   3175 
   3176 rm -f conftest.$ac_ext
   3177 EXEEXT=$ac_cv_exeext
   3178 ac_exeext=$EXEEXT
   3179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3180 /* end confdefs.h.  */
   3181 #include <stdio.h>
   3182 int
   3183 main (void)
   3184 {
   3185 FILE *f = fopen ("conftest.out", "w");
   3186  return ferror (f) || fclose (f) != 0;
   3187 
   3188   ;
   3189   return 0;
   3190 }
   3191 _ACEOF
   3192 ac_clean_files="$ac_clean_files conftest.out"
   3193 # Check that the compiler produces executables we can run.  If not, either
   3194 # the compiler is broken, or we cross compile.
   3195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3196 printf %s "checking whether we are cross compiling... " >&6; }
   3197 if test "$cross_compiling" != yes; then
   3198   { { ac_try="$ac_link"
   3199 case "(($ac_try" in
   3200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3201   *) ac_try_echo=$ac_try;;
   3202 esac
   3203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3204 printf "%s\n" "$ac_try_echo"; } >&5
   3205   (eval "$ac_link") 2>&5
   3206   ac_status=$?
   3207   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3208   test $ac_status = 0; }
   3209   if { ac_try='./conftest$ac_cv_exeext'
   3210   { { case "(($ac_try" in
   3211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3212   *) ac_try_echo=$ac_try;;
   3213 esac
   3214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3215 printf "%s\n" "$ac_try_echo"; } >&5
   3216   (eval "$ac_try") 2>&5
   3217   ac_status=$?
   3218   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3219   test $ac_status = 0; }; }; then
   3220     cross_compiling=no
   3221   else
   3222     if test "$cross_compiling" = maybe; then
   3223 	cross_compiling=yes
   3224     else
   3225 	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3226 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   3227 as_fn_error 77 "cannot run C compiled programs.
   3228 If you meant to cross compile, use \`--host'.
   3229 See \`config.log' for more details" "$LINENO" 5; }
   3230     fi
   3231   fi
   3232 fi
   3233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3234 printf "%s\n" "$cross_compiling" >&6; }
   3235 
   3236 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   3237 ac_clean_files=$ac_clean_files_save
   3238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3239 printf %s "checking for suffix of object files... " >&6; }
   3240 if test ${ac_cv_objext+y}
   3241 then :
   3242   printf %s "(cached) " >&6
   3243 else $as_nop
   3244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3245 /* end confdefs.h.  */
   3246 
   3247 int
   3248 main (void)
   3249 {
   3250 
   3251   ;
   3252   return 0;
   3253 }
   3254 _ACEOF
   3255 rm -f conftest.o conftest.obj
   3256 if { { ac_try="$ac_compile"
   3257 case "(($ac_try" in
   3258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3259   *) ac_try_echo=$ac_try;;
   3260 esac
   3261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3262 printf "%s\n" "$ac_try_echo"; } >&5
   3263   (eval "$ac_compile") 2>&5
   3264   ac_status=$?
   3265   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3266   test $ac_status = 0; }
   3267 then :
   3268   for ac_file in conftest.o conftest.obj conftest.*; do
   3269   test -f "$ac_file" || continue;
   3270   case $ac_file in
   3271     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3272     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3273        break;;
   3274   esac
   3275 done
   3276 else $as_nop
   3277   printf "%s\n" "$as_me: failed program was:" >&5
   3278 sed 's/^/| /' conftest.$ac_ext >&5
   3279 
   3280 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3281 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   3282 as_fn_error $? "cannot compute suffix of object files: cannot compile
   3283 See \`config.log' for more details" "$LINENO" 5; }
   3284 fi
   3285 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3286 fi
   3287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3288 printf "%s\n" "$ac_cv_objext" >&6; }
   3289 OBJEXT=$ac_cv_objext
   3290 ac_objext=$OBJEXT
   3291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
   3292 printf %s "checking whether the compiler supports GNU C... " >&6; }
   3293 if test ${ac_cv_c_compiler_gnu+y}
   3294 then :
   3295   printf %s "(cached) " >&6
   3296 else $as_nop
   3297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3298 /* end confdefs.h.  */
   3299 
   3300 int
   3301 main (void)
   3302 {
   3303 #ifndef __GNUC__
   3304        choke me
   3305 #endif
   3306 
   3307   ;
   3308   return 0;
   3309 }
   3310 _ACEOF
   3311 if ac_fn_c_try_compile "$LINENO"
   3312 then :
   3313   ac_compiler_gnu=yes
   3314 else $as_nop
   3315   ac_compiler_gnu=no
   3316 fi
   3317 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   3318 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3319 
   3320 fi
   3321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3322 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
   3323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3324 
   3325 if test $ac_compiler_gnu = yes; then
   3326   GCC=yes
   3327 else
   3328   GCC=
   3329 fi
   3330 ac_test_CFLAGS=${CFLAGS+y}
   3331 ac_save_CFLAGS=$CFLAGS
   3332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3333 printf %s "checking whether $CC accepts -g... " >&6; }
   3334 if test ${ac_cv_prog_cc_g+y}
   3335 then :
   3336   printf %s "(cached) " >&6
   3337 else $as_nop
   3338   ac_save_c_werror_flag=$ac_c_werror_flag
   3339    ac_c_werror_flag=yes
   3340    ac_cv_prog_cc_g=no
   3341    CFLAGS="-g"
   3342    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3343 /* end confdefs.h.  */
   3344 
   3345 int
   3346 main (void)
   3347 {
   3348 
   3349   ;
   3350   return 0;
   3351 }
   3352 _ACEOF
   3353 if ac_fn_c_try_compile "$LINENO"
   3354 then :
   3355   ac_cv_prog_cc_g=yes
   3356 else $as_nop
   3357   CFLAGS=""
   3358       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3359 /* end confdefs.h.  */
   3360 
   3361 int
   3362 main (void)
   3363 {
   3364 
   3365   ;
   3366   return 0;
   3367 }
   3368 _ACEOF
   3369 if ac_fn_c_try_compile "$LINENO"
   3370 then :
   3371 
   3372 else $as_nop
   3373   ac_c_werror_flag=$ac_save_c_werror_flag
   3374 	 CFLAGS="-g"
   3375 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3376 /* end confdefs.h.  */
   3377 
   3378 int
   3379 main (void)
   3380 {
   3381 
   3382   ;
   3383   return 0;
   3384 }
   3385 _ACEOF
   3386 if ac_fn_c_try_compile "$LINENO"
   3387 then :
   3388   ac_cv_prog_cc_g=yes
   3389 fi
   3390 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   3391 fi
   3392 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   3393 fi
   3394 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   3395    ac_c_werror_flag=$ac_save_c_werror_flag
   3396 fi
   3397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3398 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
   3399 if test $ac_test_CFLAGS; then
   3400   CFLAGS=$ac_save_CFLAGS
   3401 elif test $ac_cv_prog_cc_g = yes; then
   3402   if test "$GCC" = yes; then
   3403     CFLAGS="-g -O2"
   3404   else
   3405     CFLAGS="-g"
   3406   fi
   3407 else
   3408   if test "$GCC" = yes; then
   3409     CFLAGS="-O2"
   3410   else
   3411     CFLAGS=
   3412   fi
   3413 fi
   3414 ac_prog_cc_stdc=no
   3415 if test x$ac_prog_cc_stdc = xno
   3416 then :
   3417   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
   3418 printf %s "checking for $CC option to enable C11 features... " >&6; }
   3419 if test ${ac_cv_prog_cc_c11+y}
   3420 then :
   3421   printf %s "(cached) " >&6
   3422 else $as_nop
   3423   ac_cv_prog_cc_c11=no
   3424 ac_save_CC=$CC
   3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3426 /* end confdefs.h.  */
   3427 $ac_c_conftest_c11_program
   3428 _ACEOF
   3429 for ac_arg in '' -std=gnu11
   3430 do
   3431   CC="$ac_save_CC $ac_arg"
   3432   if ac_fn_c_try_compile "$LINENO"
   3433 then :
   3434   ac_cv_prog_cc_c11=$ac_arg
   3435 fi
   3436 rm -f core conftest.err conftest.$ac_objext conftest.beam
   3437   test "x$ac_cv_prog_cc_c11" != "xno" && break
   3438 done
   3439 rm -f conftest.$ac_ext
   3440 CC=$ac_save_CC
   3441 fi
   3442 
   3443 if test "x$ac_cv_prog_cc_c11" = xno
   3444 then :
   3445   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3446 printf "%s\n" "unsupported" >&6; }
   3447 else $as_nop
   3448   if test "x$ac_cv_prog_cc_c11" = x
   3449 then :
   3450   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3451 printf "%s\n" "none needed" >&6; }
   3452 else $as_nop
   3453   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
   3454 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
   3455      CC="$CC $ac_cv_prog_cc_c11"
   3456 fi
   3457   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
   3458   ac_prog_cc_stdc=c11
   3459 fi
   3460 fi
   3461 if test x$ac_prog_cc_stdc = xno
   3462 then :
   3463   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
   3464 printf %s "checking for $CC option to enable C99 features... " >&6; }
   3465 if test ${ac_cv_prog_cc_c99+y}
   3466 then :
   3467   printf %s "(cached) " >&6
   3468 else $as_nop
   3469   ac_cv_prog_cc_c99=no
   3470 ac_save_CC=$CC
   3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3472 /* end confdefs.h.  */
   3473 $ac_c_conftest_c99_program
   3474 _ACEOF
   3475 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
   3476 do
   3477   CC="$ac_save_CC $ac_arg"
   3478   if ac_fn_c_try_compile "$LINENO"
   3479 then :
   3480   ac_cv_prog_cc_c99=$ac_arg
   3481 fi
   3482 rm -f core conftest.err conftest.$ac_objext conftest.beam
   3483   test "x$ac_cv_prog_cc_c99" != "xno" && break
   3484 done
   3485 rm -f conftest.$ac_ext
   3486 CC=$ac_save_CC
   3487 fi
   3488 
   3489 if test "x$ac_cv_prog_cc_c99" = xno
   3490 then :
   3491   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3492 printf "%s\n" "unsupported" >&6; }
   3493 else $as_nop
   3494   if test "x$ac_cv_prog_cc_c99" = x
   3495 then :
   3496   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3497 printf "%s\n" "none needed" >&6; }
   3498 else $as_nop
   3499   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
   3500 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
   3501      CC="$CC $ac_cv_prog_cc_c99"
   3502 fi
   3503   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
   3504   ac_prog_cc_stdc=c99
   3505 fi
   3506 fi
   3507 if test x$ac_prog_cc_stdc = xno
   3508 then :
   3509   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
   3510 printf %s "checking for $CC option to enable C89 features... " >&6; }
   3511 if test ${ac_cv_prog_cc_c89+y}
   3512 then :
   3513   printf %s "(cached) " >&6
   3514 else $as_nop
   3515   ac_cv_prog_cc_c89=no
   3516 ac_save_CC=$CC
   3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3518 /* end confdefs.h.  */
   3519 $ac_c_conftest_c89_program
   3520 _ACEOF
   3521 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3522 do
   3523   CC="$ac_save_CC $ac_arg"
   3524   if ac_fn_c_try_compile "$LINENO"
   3525 then :
   3526   ac_cv_prog_cc_c89=$ac_arg
   3527 fi
   3528 rm -f core conftest.err conftest.$ac_objext conftest.beam
   3529   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3530 done
   3531 rm -f conftest.$ac_ext
   3532 CC=$ac_save_CC
   3533 fi
   3534 
   3535 if test "x$ac_cv_prog_cc_c89" = xno
   3536 then :
   3537   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3538 printf "%s\n" "unsupported" >&6; }
   3539 else $as_nop
   3540   if test "x$ac_cv_prog_cc_c89" = x
   3541 then :
   3542   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3543 printf "%s\n" "none needed" >&6; }
   3544 else $as_nop
   3545   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   3546 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
   3547      CC="$CC $ac_cv_prog_cc_c89"
   3548 fi
   3549   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
   3550   ac_prog_cc_stdc=c89
   3551 fi
   3552 fi
   3553 
   3554 ac_ext=c
   3555 ac_cpp='$CPP $CPPFLAGS'
   3556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3559 
   3560 
   3561   ac_ext=c
   3562 ac_cpp='$CPP $CPPFLAGS'
   3563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
   3567 printf %s "checking whether $CC understands -c and -o together... " >&6; }
   3568 if test ${am_cv_prog_cc_c_o+y}
   3569 then :
   3570   printf %s "(cached) " >&6
   3571 else $as_nop
   3572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3573 /* end confdefs.h.  */
   3574 
   3575 int
   3576 main (void)
   3577 {
   3578 
   3579   ;
   3580   return 0;
   3581 }
   3582 _ACEOF
   3583   # Make sure it works both with $CC and with simple cc.
   3584   # Following AC_PROG_CC_C_O, we do the test twice because some
   3585   # compilers refuse to overwrite an existing .o file with -o,
   3586   # though they will create one.
   3587   am_cv_prog_cc_c_o=yes
   3588   for am_i in 1 2; do
   3589     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
   3590    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
   3591    ac_status=$?
   3592    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3593    (exit $ac_status); } \
   3594          && test -f conftest2.$ac_objext; then
   3595       : OK
   3596     else
   3597       am_cv_prog_cc_c_o=no
   3598       break
   3599     fi
   3600   done
   3601   rm -f core conftest*
   3602   unset am_i
   3603 fi
   3604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
   3605 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
   3606 if test "$am_cv_prog_cc_c_o" != yes; then
   3607    # Losing compiler, so override with the script.
   3608    # FIXME: It is wrong to rewrite CC.
   3609    # But if we don't then we get into trouble of one sort or another.
   3610    # A longer-term fix would be to have automake use am__CC in this case,
   3611    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   3612    CC="$am_aux_dir/compile $CC"
   3613 fi
   3614 ac_ext=c
   3615 ac_cpp='$CPP $CPPFLAGS'
   3616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3619 
   3620 
   3621 
   3622 ac_header= ac_cache=
   3623 for ac_item in $ac_header_c_list
   3624 do
   3625   if test $ac_cache; then
   3626     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
   3627     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
   3628       printf "%s\n" "#define $ac_item 1" >> confdefs.h
   3629     fi
   3630     ac_header= ac_cache=
   3631   elif test $ac_header; then
   3632     ac_cache=$ac_item
   3633   else
   3634     ac_header=$ac_item
   3635   fi
   3636 done
   3637 
   3638 
   3639 
   3640 
   3641 
   3642 
   3643 
   3644 
   3645 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
   3646 then :
   3647 
   3648 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
   3649 
   3650 fi
   3651 
   3652 
   3653 
   3654 
   3655 
   3656 
   3657   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
   3658 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
   3659 if test ${ac_cv_safe_to_define___extensions__+y}
   3660 then :
   3661   printf %s "(cached) " >&6
   3662 else $as_nop
   3663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3664 /* end confdefs.h.  */
   3665 
   3666 #         define __EXTENSIONS__ 1
   3667           $ac_includes_default
   3668 int
   3669 main (void)
   3670 {
   3671 
   3672   ;
   3673   return 0;
   3674 }
   3675 _ACEOF
   3676 if ac_fn_c_try_compile "$LINENO"
   3677 then :
   3678   ac_cv_safe_to_define___extensions__=yes
   3679 else $as_nop
   3680   ac_cv_safe_to_define___extensions__=no
   3681 fi
   3682 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   3683 fi
   3684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
   3685 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
   3686 
   3687   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
   3688 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
   3689 if test ${ac_cv_should_define__xopen_source+y}
   3690 then :
   3691   printf %s "(cached) " >&6
   3692 else $as_nop
   3693   ac_cv_should_define__xopen_source=no
   3694     if test $ac_cv_header_wchar_h = yes
   3695 then :
   3696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3697 /* end confdefs.h.  */
   3698 
   3699           #include <wchar.h>
   3700           mbstate_t x;
   3701 int
   3702 main (void)
   3703 {
   3704 
   3705   ;
   3706   return 0;
   3707 }
   3708 _ACEOF
   3709 if ac_fn_c_try_compile "$LINENO"
   3710 then :
   3711 
   3712 else $as_nop
   3713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3714 /* end confdefs.h.  */
   3715 
   3716             #define _XOPEN_SOURCE 500
   3717             #include <wchar.h>
   3718             mbstate_t x;
   3719 int
   3720 main (void)
   3721 {
   3722 
   3723   ;
   3724   return 0;
   3725 }
   3726 _ACEOF
   3727 if ac_fn_c_try_compile "$LINENO"
   3728 then :
   3729   ac_cv_should_define__xopen_source=yes
   3730 fi
   3731 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   3732 fi
   3733 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   3734 fi
   3735 fi
   3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
   3737 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
   3738 
   3739   printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
   3740 
   3741   printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
   3742 
   3743   printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
   3744 
   3745   printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
   3746 
   3747   printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
   3748 
   3749   printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
   3750 
   3751   printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
   3752 
   3753   printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
   3754 
   3755   printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
   3756 
   3757   printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
   3758 
   3759   printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
   3760 
   3761   printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
   3762 
   3763   printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
   3764 
   3765   printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
   3766 
   3767   printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
   3768 
   3769   if test $ac_cv_header_minix_config_h = yes
   3770 then :
   3771   MINIX=yes
   3772     printf "%s\n" "#define _MINIX 1" >>confdefs.h
   3773 
   3774     printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
   3775 
   3776     printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
   3777 
   3778 else $as_nop
   3779   MINIX=
   3780 fi
   3781   if test $ac_cv_safe_to_define___extensions__ = yes
   3782 then :
   3783   printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
   3784 
   3785 fi
   3786   if test $ac_cv_should_define__xopen_source = yes
   3787 then :
   3788   printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
   3789 
   3790 fi
   3791 
   3792 
   3793 # Initialize Automake
   3794 am__api_version='1.16'
   3795 
   3796 
   3797   # Find a good install program.  We prefer a C program (faster),
   3798 # so one script is as good as another.  But avoid the broken or
   3799 # incompatible versions:
   3800 # SysV /etc/install, /usr/sbin/install
   3801 # SunOS /usr/etc/install
   3802 # IRIX /sbin/install
   3803 # AIX /bin/install
   3804 # AmigaOS /C/install, which installs bootblocks on floppy discs
   3805 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   3806 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   3807 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   3808 # OS/2's system install, which has a completely different semantic
   3809 # ./install, which can be erroneously created by make from ./install.sh.
   3810 # Reject install programs that cannot install multiple files.
   3811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   3812 printf %s "checking for a BSD-compatible install... " >&6; }
   3813 if test -z "$INSTALL"; then
   3814 if test ${ac_cv_path_install+y}
   3815 then :
   3816   printf %s "(cached) " >&6
   3817 else $as_nop
   3818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3819 for as_dir in $PATH
   3820 do
   3821   IFS=$as_save_IFS
   3822   case $as_dir in #(((
   3823     '') as_dir=./ ;;
   3824     */) ;;
   3825     *) as_dir=$as_dir/ ;;
   3826   esac
   3827     # Account for fact that we put trailing slashes in our PATH walk.
   3828 case $as_dir in #((
   3829   ./ | /[cC]/* | \
   3830   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   3831   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   3832   /usr/ucb/* ) ;;
   3833   *)
   3834     # OSF1 and SCO ODT 3.0 have their own names for install.
   3835     # Don't use installbsd from OSF since it installs stuff as root
   3836     # by default.
   3837     for ac_prog in ginstall scoinst install; do
   3838       for ac_exec_ext in '' $ac_executable_extensions; do
   3839 	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
   3840 	  if test $ac_prog = install &&
   3841 	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   3842 	    # AIX install.  It has an incompatible calling convention.
   3843 	    :
   3844 	  elif test $ac_prog = install &&
   3845 	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   3846 	    # program-specific install script used by HP pwplus--don't use.
   3847 	    :
   3848 	  else
   3849 	    rm -rf conftest.one conftest.two conftest.dir
   3850 	    echo one > conftest.one
   3851 	    echo two > conftest.two
   3852 	    mkdir conftest.dir
   3853 	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
   3854 	      test -s conftest.one && test -s conftest.two &&
   3855 	      test -s conftest.dir/conftest.one &&
   3856 	      test -s conftest.dir/conftest.two
   3857 	    then
   3858 	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
   3859 	      break 3
   3860 	    fi
   3861 	  fi
   3862 	fi
   3863       done
   3864     done
   3865     ;;
   3866 esac
   3867 
   3868   done
   3869 IFS=$as_save_IFS
   3870 
   3871 rm -rf conftest.one conftest.two conftest.dir
   3872 
   3873 fi
   3874   if test ${ac_cv_path_install+y}; then
   3875     INSTALL=$ac_cv_path_install
   3876   else
   3877     # As a last resort, use the slow shell script.  Don't cache a
   3878     # value for INSTALL within a source directory, because that will
   3879     # break other packages using the cache if that directory is
   3880     # removed, or if the value is a relative name.
   3881     INSTALL=$ac_install_sh
   3882   fi
   3883 fi
   3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   3885 printf "%s\n" "$INSTALL" >&6; }
   3886 
   3887 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   3888 # It thinks the first close brace ends the variable substitution.
   3889 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   3890 
   3891 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   3892 
   3893 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   3894 
   3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
   3896 printf %s "checking whether build environment is sane... " >&6; }
   3897 # Reject unsafe characters in $srcdir or the absolute working directory
   3898 # name.  Accept space and tab only in the latter.
   3899 am_lf='
   3900 '
   3901 case `pwd` in
   3902   *[\\\"\#\$\&\'\`$am_lf]*)
   3903     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
   3904 esac
   3905 case $srcdir in
   3906   *[\\\"\#\$\&\'\`$am_lf\ \	]*)
   3907     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
   3908 esac
   3909 
   3910 # Do 'set' in a subshell so we don't clobber the current shell's
   3911 # arguments.  Must try -L first in case configure is actually a
   3912 # symlink; some systems play weird games with the mod time of symlinks
   3913 # (eg FreeBSD returns the mod time of the symlink's containing
   3914 # directory).
   3915 if (
   3916    am_has_slept=no
   3917    for am_try in 1 2; do
   3918      echo "timestamp, slept: $am_has_slept" > conftest.file
   3919      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
   3920      if test "$*" = "X"; then
   3921 	# -L didn't work.
   3922 	set X `ls -t "$srcdir/configure" conftest.file`
   3923      fi
   3924      if test "$*" != "X $srcdir/configure conftest.file" \
   3925 	&& test "$*" != "X conftest.file $srcdir/configure"; then
   3926 
   3927 	# If neither matched, then we have a broken ls.  This can happen
   3928 	# if, for instance, CONFIG_SHELL is bash and it inherits a
   3929 	# broken ls alias from the environment.  This has actually
   3930 	# happened.  Such a system could not be considered "sane".
   3931 	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
   3932   alias in your environment" "$LINENO" 5
   3933      fi
   3934      if test "$2" = conftest.file || test $am_try -eq 2; then
   3935        break
   3936      fi
   3937      # Just in case.
   3938      sleep 1
   3939      am_has_slept=yes
   3940    done
   3941    test "$2" = conftest.file
   3942    )
   3943 then
   3944    # Ok.
   3945    :
   3946 else
   3947    as_fn_error $? "newly created file is older than distributed files!
   3948 Check your system clock" "$LINENO" 5
   3949 fi
   3950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3951 printf "%s\n" "yes" >&6; }
   3952 # If we didn't sleep, we still need to ensure time stamps of config.status and
   3953 # generated files are strictly newer.
   3954 am_sleep_pid=
   3955 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
   3956   ( sleep 1 ) &
   3957   am_sleep_pid=$!
   3958 fi
   3959 
   3960 rm -f conftest.file
   3961 
   3962 test "$program_prefix" != NONE &&
   3963   program_transform_name="s&^&$program_prefix&;$program_transform_name"
   3964 # Use a double $ so make ignores it.
   3965 test "$program_suffix" != NONE &&
   3966   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
   3967 # Double any \ or $.
   3968 # By default was `s,x,x', remove it if useless.
   3969 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
   3970 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
   3971 
   3972 
   3973   if test x"${MISSING+set}" != xset; then
   3974   MISSING="\${SHELL} '$am_aux_dir/missing'"
   3975 fi
   3976 # Use eval to expand $SHELL
   3977 if eval "$MISSING --is-lightweight"; then
   3978   am_missing_run="$MISSING "
   3979 else
   3980   am_missing_run=
   3981   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
   3982 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
   3983 fi
   3984 
   3985 if test x"${install_sh+set}" != xset; then
   3986   case $am_aux_dir in
   3987   *\ * | *\	*)
   3988     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
   3989   *)
   3990     install_sh="\${SHELL} $am_aux_dir/install-sh"
   3991   esac
   3992 fi
   3993 
   3994 # Installed binaries are usually stripped using 'strip' when the user
   3995 # run "make install-strip".  However 'strip' might not be the right
   3996 # tool to use in cross-compilation environments, therefore Automake
   3997 # will honor the 'STRIP' environment variable to overrule this program.
   3998 if test "$cross_compiling" != no; then
   3999   if test -n "$ac_tool_prefix"; then
   4000   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   4001 set dummy ${ac_tool_prefix}strip; ac_word=$2
   4002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4003 printf %s "checking for $ac_word... " >&6; }
   4004 if test ${ac_cv_prog_STRIP+y}
   4005 then :
   4006   printf %s "(cached) " >&6
   4007 else $as_nop
   4008   if test -n "$STRIP"; then
   4009   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   4010 else
   4011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4012 for as_dir in $PATH
   4013 do
   4014   IFS=$as_save_IFS
   4015   case $as_dir in #(((
   4016     '') as_dir=./ ;;
   4017     */) ;;
   4018     *) as_dir=$as_dir/ ;;
   4019   esac
   4020     for ac_exec_ext in '' $ac_executable_extensions; do
   4021   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   4022     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   4023     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   4024     break 2
   4025   fi
   4026 done
   4027   done
   4028 IFS=$as_save_IFS
   4029 
   4030 fi
   4031 fi
   4032 STRIP=$ac_cv_prog_STRIP
   4033 if test -n "$STRIP"; then
   4034   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   4035 printf "%s\n" "$STRIP" >&6; }
   4036 else
   4037   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4038 printf "%s\n" "no" >&6; }
   4039 fi
   4040 
   4041 
   4042 fi
   4043 if test -z "$ac_cv_prog_STRIP"; then
   4044   ac_ct_STRIP=$STRIP
   4045   # Extract the first word of "strip", so it can be a program name with args.
   4046 set dummy strip; ac_word=$2
   4047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4048 printf %s "checking for $ac_word... " >&6; }
   4049 if test ${ac_cv_prog_ac_ct_STRIP+y}
   4050 then :
   4051   printf %s "(cached) " >&6
   4052 else $as_nop
   4053   if test -n "$ac_ct_STRIP"; then
   4054   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   4055 else
   4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4057 for as_dir in $PATH
   4058 do
   4059   IFS=$as_save_IFS
   4060   case $as_dir in #(((
   4061     '') as_dir=./ ;;
   4062     */) ;;
   4063     *) as_dir=$as_dir/ ;;
   4064   esac
   4065     for ac_exec_ext in '' $ac_executable_extensions; do
   4066   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   4067     ac_cv_prog_ac_ct_STRIP="strip"
   4068     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   4069     break 2
   4070   fi
   4071 done
   4072   done
   4073 IFS=$as_save_IFS
   4074 
   4075 fi
   4076 fi
   4077 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   4078 if test -n "$ac_ct_STRIP"; then
   4079   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   4080 printf "%s\n" "$ac_ct_STRIP" >&6; }
   4081 else
   4082   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4083 printf "%s\n" "no" >&6; }
   4084 fi
   4085 
   4086   if test "x$ac_ct_STRIP" = x; then
   4087     STRIP=":"
   4088   else
   4089     case $cross_compiling:$ac_tool_warned in
   4090 yes:)
   4091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4092 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4093 ac_tool_warned=yes ;;
   4094 esac
   4095     STRIP=$ac_ct_STRIP
   4096   fi
   4097 else
   4098   STRIP="$ac_cv_prog_STRIP"
   4099 fi
   4100 
   4101 fi
   4102 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
   4103 
   4104 
   4105   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
   4106 printf %s "checking for a race-free mkdir -p... " >&6; }
   4107 if test -z "$MKDIR_P"; then
   4108   if test ${ac_cv_path_mkdir+y}
   4109 then :
   4110   printf %s "(cached) " >&6
   4111 else $as_nop
   4112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4113 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
   4114 do
   4115   IFS=$as_save_IFS
   4116   case $as_dir in #(((
   4117     '') as_dir=./ ;;
   4118     */) ;;
   4119     *) as_dir=$as_dir/ ;;
   4120   esac
   4121     for ac_prog in mkdir gmkdir; do
   4122 	 for ac_exec_ext in '' $ac_executable_extensions; do
   4123 	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
   4124 	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
   4125 	     'mkdir ('*'coreutils) '* | \
   4126 	     'BusyBox '* | \
   4127 	     'mkdir (fileutils) '4.1*)
   4128 	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
   4129 	       break 3;;
   4130 	   esac
   4131 	 done
   4132        done
   4133   done
   4134 IFS=$as_save_IFS
   4135 
   4136 fi
   4137 
   4138   test -d ./--version && rmdir ./--version
   4139   if test ${ac_cv_path_mkdir+y}; then
   4140     MKDIR_P="$ac_cv_path_mkdir -p"
   4141   else
   4142     # As a last resort, use the slow shell script.  Don't cache a
   4143     # value for MKDIR_P within a source directory, because that will
   4144     # break other packages using the cache if that directory is
   4145     # removed, or if the value is a relative name.
   4146     MKDIR_P="$ac_install_sh -d"
   4147   fi
   4148 fi
   4149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
   4150 printf "%s\n" "$MKDIR_P" >&6; }
   4151 
   4152 for ac_prog in gawk mawk nawk awk
   4153 do
   4154   # Extract the first word of "$ac_prog", so it can be a program name with args.
   4155 set dummy $ac_prog; ac_word=$2
   4156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4157 printf %s "checking for $ac_word... " >&6; }
   4158 if test ${ac_cv_prog_AWK+y}
   4159 then :
   4160   printf %s "(cached) " >&6
   4161 else $as_nop
   4162   if test -n "$AWK"; then
   4163   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   4164 else
   4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4166 for as_dir in $PATH
   4167 do
   4168   IFS=$as_save_IFS
   4169   case $as_dir in #(((
   4170     '') as_dir=./ ;;
   4171     */) ;;
   4172     *) as_dir=$as_dir/ ;;
   4173   esac
   4174     for ac_exec_ext in '' $ac_executable_extensions; do
   4175   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   4176     ac_cv_prog_AWK="$ac_prog"
   4177     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   4178     break 2
   4179   fi
   4180 done
   4181   done
   4182 IFS=$as_save_IFS
   4183 
   4184 fi
   4185 fi
   4186 AWK=$ac_cv_prog_AWK
   4187 if test -n "$AWK"; then
   4188   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   4189 printf "%s\n" "$AWK" >&6; }
   4190 else
   4191   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4192 printf "%s\n" "no" >&6; }
   4193 fi
   4194 
   4195 
   4196   test -n "$AWK" && break
   4197 done
   4198 
   4199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
   4200 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
   4201 set x ${MAKE-make}
   4202 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
   4203 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
   4204 then :
   4205   printf %s "(cached) " >&6
   4206 else $as_nop
   4207   cat >conftest.make <<\_ACEOF
   4208 SHELL = /bin/sh
   4209 all:
   4210 	@echo '@@@%%%=$(MAKE)=@@@%%%'
   4211 _ACEOF
   4212 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
   4213 case `${MAKE-make} -f conftest.make 2>/dev/null` in
   4214   *@@@%%%=?*=@@@%%%*)
   4215     eval ac_cv_prog_make_${ac_make}_set=yes;;
   4216   *)
   4217     eval ac_cv_prog_make_${ac_make}_set=no;;
   4218 esac
   4219 rm -f conftest.make
   4220 fi
   4221 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
   4222   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4223 printf "%s\n" "yes" >&6; }
   4224   SET_MAKE=
   4225 else
   4226   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4227 printf "%s\n" "no" >&6; }
   4228   SET_MAKE="MAKE=${MAKE-make}"
   4229 fi
   4230 
   4231 rm -rf .tst 2>/dev/null
   4232 mkdir .tst 2>/dev/null
   4233 if test -d .tst; then
   4234   am__leading_dot=.
   4235 else
   4236   am__leading_dot=_
   4237 fi
   4238 rmdir .tst 2>/dev/null
   4239 
   4240 DEPDIR="${am__leading_dot}deps"
   4241 
   4242 ac_config_commands="$ac_config_commands depfiles"
   4243 
   4244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
   4245 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
   4246 cat > confinc.mk << 'END'
   4247 am__doit:
   4248 	@echo this is the am__doit target >confinc.out
   4249 .PHONY: am__doit
   4250 END
   4251 am__include="#"
   4252 am__quote=
   4253 # BSD make does it like this.
   4254 echo '.include "confinc.mk" # ignored' > confmf.BSD
   4255 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
   4256 echo 'include confinc.mk # ignored' > confmf.GNU
   4257 _am_result=no
   4258 for s in GNU BSD; do
   4259   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
   4260    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
   4261    ac_status=$?
   4262    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4263    (exit $ac_status); }
   4264   case $?:`cat confinc.out 2>/dev/null` in #(
   4265   '0:this is the am__doit target') :
   4266     case $s in #(
   4267   BSD) :
   4268     am__include='.include' am__quote='"' ;; #(
   4269   *) :
   4270     am__include='include' am__quote='' ;;
   4271 esac ;; #(
   4272   *) :
   4273      ;;
   4274 esac
   4275   if test "$am__include" != "#"; then
   4276     _am_result="yes ($s style)"
   4277     break
   4278   fi
   4279 done
   4280 rm -f confinc.* confmf.*
   4281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
   4282 printf "%s\n" "${_am_result}" >&6; }
   4283 
   4284 # Check whether --enable-dependency-tracking was given.
   4285 if test ${enable_dependency_tracking+y}
   4286 then :
   4287   enableval=$enable_dependency_tracking;
   4288 fi
   4289 
   4290 if test "x$enable_dependency_tracking" != xno; then
   4291   am_depcomp="$ac_aux_dir/depcomp"
   4292   AMDEPBACKSLASH='\'
   4293   am__nodep='_no'
   4294 fi
   4295  if test "x$enable_dependency_tracking" != xno; then
   4296   AMDEP_TRUE=
   4297   AMDEP_FALSE='#'
   4298 else
   4299   AMDEP_TRUE='#'
   4300   AMDEP_FALSE=
   4301 fi
   4302 
   4303 
   4304 # Check whether --enable-silent-rules was given.
   4305 if test ${enable_silent_rules+y}
   4306 then :
   4307   enableval=$enable_silent_rules;
   4308 fi
   4309 
   4310 case $enable_silent_rules in # (((
   4311   yes) AM_DEFAULT_VERBOSITY=0;;
   4312    no) AM_DEFAULT_VERBOSITY=1;;
   4313     *) AM_DEFAULT_VERBOSITY=1;;
   4314 esac
   4315 am_make=${MAKE-make}
   4316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
   4317 printf %s "checking whether $am_make supports nested variables... " >&6; }
   4318 if test ${am_cv_make_support_nested_variables+y}
   4319 then :
   4320   printf %s "(cached) " >&6
   4321 else $as_nop
   4322   if printf "%s\n" 'TRUE=$(BAR$(V))
   4323 BAR0=false
   4324 BAR1=true
   4325 V=1
   4326 am__doit:
   4327 	@$(TRUE)
   4328 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
   4329   am_cv_make_support_nested_variables=yes
   4330 else
   4331   am_cv_make_support_nested_variables=no
   4332 fi
   4333 fi
   4334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
   4335 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
   4336 if test $am_cv_make_support_nested_variables = yes; then
   4337     AM_V='$(V)'
   4338   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
   4339 else
   4340   AM_V=$AM_DEFAULT_VERBOSITY
   4341   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
   4342 fi
   4343 AM_BACKSLASH='\'
   4344 
   4345 if test "`cd $srcdir && pwd`" != "`pwd`"; then
   4346   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
   4347   # is not polluted with repeated "-I."
   4348   am__isrc=' -I$(srcdir)'
   4349   # test to see if srcdir already configured
   4350   if test -f $srcdir/config.status; then
   4351     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
   4352   fi
   4353 fi
   4354 
   4355 # test whether we have cygpath
   4356 if test -z "$CYGPATH_W"; then
   4357   if (cygpath --version) >/dev/null 2>/dev/null; then
   4358     CYGPATH_W='cygpath -w'
   4359   else
   4360     CYGPATH_W=echo
   4361   fi
   4362 fi
   4363 
   4364 
   4365 # Define the identity of the package.
   4366  PACKAGE='lndir'
   4367  VERSION='1.0.4'
   4368 
   4369 
   4370 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
   4371 
   4372 
   4373 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
   4374 
   4375 # Some tools Automake needs.
   4376 
   4377 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
   4378 
   4379 
   4380 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
   4381 
   4382 
   4383 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
   4384 
   4385 
   4386 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
   4387 
   4388 
   4389 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
   4390 
   4391 # For better backward compatibility.  To be removed once Automake 1.9.x
   4392 # dies out for good.  For more background, see:
   4393 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
   4394 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
   4395 mkdir_p='$(MKDIR_P)'
   4396 
   4397 # We need awk for the "check" target (and possibly the TAP driver).  The
   4398 # system "awk" is bad on some platforms.
   4399 # Always define AMTAR for backward compatibility.  Yes, it's still used
   4400 # in the wild :-(  We should find a proper way to deprecate it ...
   4401 AMTAR='$${TAR-tar}'
   4402 
   4403 
   4404 # We'll loop over all known methods to create a tar archive until one works.
   4405 _am_tools='gnutar  pax cpio none'
   4406 
   4407 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
   4408 
   4409 
   4410 
   4411 
   4412 
   4413 depcc="$CC"   am_compiler_list=
   4414 
   4415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
   4416 printf %s "checking dependency style of $depcc... " >&6; }
   4417 if test ${am_cv_CC_dependencies_compiler_type+y}
   4418 then :
   4419   printf %s "(cached) " >&6
   4420 else $as_nop
   4421   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
   4422   # We make a subdir and do the tests there.  Otherwise we can end up
   4423   # making bogus files that we don't know about and never remove.  For
   4424   # instance it was reported that on HP-UX the gcc test will end up
   4425   # making a dummy file named 'D' -- because '-MD' means "put the output
   4426   # in D".
   4427   rm -rf conftest.dir
   4428   mkdir conftest.dir
   4429   # Copy depcomp to subdir because otherwise we won't find it if we're
   4430   # using a relative directory.
   4431   cp "$am_depcomp" conftest.dir
   4432   cd conftest.dir
   4433   # We will build objects and dependencies in a subdirectory because
   4434   # it helps to detect inapplicable dependency modes.  For instance
   4435   # both Tru64's cc and ICC support -MD to output dependencies as a
   4436   # side effect of compilation, but ICC will put the dependencies in
   4437   # the current directory while Tru64 will put them in the object
   4438   # directory.
   4439   mkdir sub
   4440 
   4441   am_cv_CC_dependencies_compiler_type=none
   4442   if test "$am_compiler_list" = ""; then
   4443      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
   4444   fi
   4445   am__universal=false
   4446   case " $depcc " in #(
   4447      *\ -arch\ *\ -arch\ *) am__universal=true ;;
   4448      esac
   4449 
   4450   for depmode in $am_compiler_list; do
   4451     # Setup a source with many dependencies, because some compilers
   4452     # like to wrap large dependency lists on column 80 (with \), and
   4453     # we should not choose a depcomp mode which is confused by this.
   4454     #
   4455     # We need to recreate these files for each test, as the compiler may
   4456     # overwrite some of them when testing with obscure command lines.
   4457     # This happens at least with the AIX C compiler.
   4458     : > sub/conftest.c
   4459     for i in 1 2 3 4 5 6; do
   4460       echo '#include "conftst'$i'.h"' >> sub/conftest.c
   4461       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
   4462       # Solaris 10 /bin/sh.
   4463       echo '/* dummy */' > sub/conftst$i.h
   4464     done
   4465     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
   4466 
   4467     # We check with '-c' and '-o' for the sake of the "dashmstdout"
   4468     # mode.  It turns out that the SunPro C++ compiler does not properly
   4469     # handle '-M -o', and we need to detect this.  Also, some Intel
   4470     # versions had trouble with output in subdirs.
   4471     am__obj=sub/conftest.${OBJEXT-o}
   4472     am__minus_obj="-o $am__obj"
   4473     case $depmode in
   4474     gcc)
   4475       # This depmode causes a compiler race in universal mode.
   4476       test "$am__universal" = false || continue
   4477       ;;
   4478     nosideeffect)
   4479       # After this tag, mechanisms are not by side-effect, so they'll
   4480       # only be used when explicitly requested.
   4481       if test "x$enable_dependency_tracking" = xyes; then
   4482 	continue
   4483       else
   4484 	break
   4485       fi
   4486       ;;
   4487     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
   4488       # This compiler won't grok '-c -o', but also, the minuso test has
   4489       # not run yet.  These depmodes are late enough in the game, and
   4490       # so weak that their functioning should not be impacted.
   4491       am__obj=conftest.${OBJEXT-o}
   4492       am__minus_obj=
   4493       ;;
   4494     none) break ;;
   4495     esac
   4496     if depmode=$depmode \
   4497        source=sub/conftest.c object=$am__obj \
   4498        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
   4499        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
   4500          >/dev/null 2>conftest.err &&
   4501        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
   4502        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
   4503        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
   4504        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
   4505       # icc doesn't choke on unknown options, it will just issue warnings
   4506       # or remarks (even with -Werror).  So we grep stderr for any message
   4507       # that says an option was ignored or not supported.
   4508       # When given -MP, icc 7.0 and 7.1 complain thusly:
   4509       #   icc: Command line warning: ignoring option '-M'; no argument required
   4510       # The diagnosis changed in icc 8.0:
   4511       #   icc: Command line remark: option '-MP' not supported
   4512       if (grep 'ignoring option' conftest.err ||
   4513           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
   4514         am_cv_CC_dependencies_compiler_type=$depmode
   4515         break
   4516       fi
   4517     fi
   4518   done
   4519 
   4520   cd ..
   4521   rm -rf conftest.dir
   4522 else
   4523   am_cv_CC_dependencies_compiler_type=none
   4524 fi
   4525 
   4526 fi
   4527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
   4528 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
   4529 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
   4530 
   4531  if
   4532   test "x$enable_dependency_tracking" != xno \
   4533   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
   4534   am__fastdepCC_TRUE=
   4535   am__fastdepCC_FALSE='#'
   4536 else
   4537   am__fastdepCC_TRUE='#'
   4538   am__fastdepCC_FALSE=
   4539 fi
   4540 
   4541 
   4542 # Variables for tags utilities; see am/tags.am
   4543 if test -z "$CTAGS"; then
   4544   CTAGS=ctags
   4545 fi
   4546 
   4547 if test -z "$ETAGS"; then
   4548   ETAGS=etags
   4549 fi
   4550 
   4551 if test -z "$CSCOPE"; then
   4552   CSCOPE=cscope
   4553 fi
   4554 
   4555 
   4556 
   4557 # POSIX will say in a future version that running "rm -f" with no argument
   4558 # is OK; and we want to be able to make that assumption in our Makefile
   4559 # recipes.  So use an aggressive probe to check that the usage we want is
   4560 # actually supported "in the wild" to an acceptable degree.
   4561 # See automake bug#10828.
   4562 # To make any issue more visible, cause the running configure to be aborted
   4563 # by default if the 'rm' program in use doesn't match our expectations; the
   4564 # user can still override this though.
   4565 if rm -f && rm -fr && rm -rf; then : OK; else
   4566   cat >&2 <<'END'
   4567 Oops!
   4568 
   4569 Your 'rm' program seems unable to run without file operands specified
   4570 on the command line, even when the '-f' option is present.  This is contrary
   4571 to the behaviour of most rm programs out there, and not conforming with
   4572 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
   4573 
   4574 Please tell bug-automake@gnu.org about your system, including the value
   4575 of your $PATH and any error possibly output before this message.  This
   4576 can help us improve future automake versions.
   4577 
   4578 END
   4579   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
   4580     echo 'Configuration will proceed anyway, since you have set the' >&2
   4581     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
   4582     echo >&2
   4583   else
   4584     cat >&2 <<'END'
   4585 Aborting the configuration process, to ensure you take notice of the issue.
   4586 
   4587 You can download and install GNU coreutils to get an 'rm' implementation
   4588 that behaves properly: <https://www.gnu.org/software/coreutils/>.
   4589 
   4590 If you want to complete the configuration process using your problematic
   4591 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
   4592 to "yes", and re-run configure.
   4593 
   4594 END
   4595     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
   4596   fi
   4597 fi
   4598 
   4599 
   4600 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
   4601 
   4602 
   4603 
   4604 
   4605 
   4606 
   4607 
   4608 
   4609 
   4610 
   4611 
   4612 
   4613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
   4614 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
   4615 if test ${ac_cv_c_undeclared_builtin_options+y}
   4616 then :
   4617   printf %s "(cached) " >&6
   4618 else $as_nop
   4619   ac_save_CFLAGS=$CFLAGS
   4620    ac_cv_c_undeclared_builtin_options='cannot detect'
   4621    for ac_arg in '' -fno-builtin; do
   4622      CFLAGS="$ac_save_CFLAGS $ac_arg"
   4623      # This test program should *not* compile successfully.
   4624      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4625 /* end confdefs.h.  */
   4626 
   4627 int
   4628 main (void)
   4629 {
   4630 (void) strchr;
   4631   ;
   4632   return 0;
   4633 }
   4634 _ACEOF
   4635 if ac_fn_c_try_compile "$LINENO"
   4636 then :
   4637 
   4638 else $as_nop
   4639   # This test program should compile successfully.
   4640         # No library function is consistently available on
   4641         # freestanding implementations, so test against a dummy
   4642         # declaration.  Include always-available headers on the
   4643         # off chance that they somehow elicit warnings.
   4644         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4645 /* end confdefs.h.  */
   4646 #include <float.h>
   4647 #include <limits.h>
   4648 #include <stdarg.h>
   4649 #include <stddef.h>
   4650 extern void ac_decl (int, char *);
   4651 
   4652 int
   4653 main (void)
   4654 {
   4655 (void) ac_decl (0, (char *) 0);
   4656   (void) ac_decl;
   4657 
   4658   ;
   4659   return 0;
   4660 }
   4661 _ACEOF
   4662 if ac_fn_c_try_compile "$LINENO"
   4663 then :
   4664   if test x"$ac_arg" = x
   4665 then :
   4666   ac_cv_c_undeclared_builtin_options='none needed'
   4667 else $as_nop
   4668   ac_cv_c_undeclared_builtin_options=$ac_arg
   4669 fi
   4670           break
   4671 fi
   4672 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4673 fi
   4674 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   4675     done
   4676     CFLAGS=$ac_save_CFLAGS
   4677 
   4678 fi
   4679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
   4680 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
   4681   case $ac_cv_c_undeclared_builtin_options in #(
   4682   'cannot detect') :
   4683     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4684 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   4685 as_fn_error $? "cannot make $CC report undeclared builtins
   4686 See \`config.log' for more details" "$LINENO" 5; } ;; #(
   4687   'none needed') :
   4688     ac_c_undeclared_builtin_options='' ;; #(
   4689   *) :
   4690     ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
   4691 esac
   4692 
   4693 
   4694 
   4695 
   4696 
   4697 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
   4698 if test "x$ac_cv_have_decl___clang__" = xyes
   4699 then :
   4700   CLANGCC="yes"
   4701 else $as_nop
   4702   CLANGCC="no"
   4703 fi
   4704 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
   4705 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
   4706 then :
   4707   INTELCC="yes"
   4708 else $as_nop
   4709   INTELCC="no"
   4710 fi
   4711 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
   4712 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
   4713 then :
   4714   SUNCC="yes"
   4715 else $as_nop
   4716   SUNCC="no"
   4717 fi
   4718 
   4719 
   4720 
   4721 
   4722 
   4723 
   4724 
   4725 
   4726 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
   4727 	if test -n "$ac_tool_prefix"; then
   4728   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
   4729 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
   4730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4731 printf %s "checking for $ac_word... " >&6; }
   4732 if test ${ac_cv_path_PKG_CONFIG+y}
   4733 then :
   4734   printf %s "(cached) " >&6
   4735 else $as_nop
   4736   case $PKG_CONFIG in
   4737   [\\/]* | ?:[\\/]*)
   4738   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
   4739   ;;
   4740   *)
   4741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4742 for as_dir in $PATH
   4743 do
   4744   IFS=$as_save_IFS
   4745   case $as_dir in #(((
   4746     '') as_dir=./ ;;
   4747     */) ;;
   4748     *) as_dir=$as_dir/ ;;
   4749   esac
   4750     for ac_exec_ext in '' $ac_executable_extensions; do
   4751   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   4752     ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
   4753     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   4754     break 2
   4755   fi
   4756 done
   4757   done
   4758 IFS=$as_save_IFS
   4759 
   4760   ;;
   4761 esac
   4762 fi
   4763 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
   4764 if test -n "$PKG_CONFIG"; then
   4765   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
   4766 printf "%s\n" "$PKG_CONFIG" >&6; }
   4767 else
   4768   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4769 printf "%s\n" "no" >&6; }
   4770 fi
   4771 
   4772 
   4773 fi
   4774 if test -z "$ac_cv_path_PKG_CONFIG"; then
   4775   ac_pt_PKG_CONFIG=$PKG_CONFIG
   4776   # Extract the first word of "pkg-config", so it can be a program name with args.
   4777 set dummy pkg-config; ac_word=$2
   4778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4779 printf %s "checking for $ac_word... " >&6; }
   4780 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
   4781 then :
   4782   printf %s "(cached) " >&6
   4783 else $as_nop
   4784   case $ac_pt_PKG_CONFIG in
   4785   [\\/]* | ?:[\\/]*)
   4786   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
   4787   ;;
   4788   *)
   4789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4790 for as_dir in $PATH
   4791 do
   4792   IFS=$as_save_IFS
   4793   case $as_dir in #(((
   4794     '') as_dir=./ ;;
   4795     */) ;;
   4796     *) as_dir=$as_dir/ ;;
   4797   esac
   4798     for ac_exec_ext in '' $ac_executable_extensions; do
   4799   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   4800     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
   4801     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   4802     break 2
   4803   fi
   4804 done
   4805   done
   4806 IFS=$as_save_IFS
   4807 
   4808   ;;
   4809 esac
   4810 fi
   4811 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
   4812 if test -n "$ac_pt_PKG_CONFIG"; then
   4813   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
   4814 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
   4815 else
   4816   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4817 printf "%s\n" "no" >&6; }
   4818 fi
   4819 
   4820   if test "x$ac_pt_PKG_CONFIG" = x; then
   4821     PKG_CONFIG=""
   4822   else
   4823     case $cross_compiling:$ac_tool_warned in
   4824 yes:)
   4825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4826 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4827 ac_tool_warned=yes ;;
   4828 esac
   4829     PKG_CONFIG=$ac_pt_PKG_CONFIG
   4830   fi
   4831 else
   4832   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
   4833 fi
   4834 
   4835 fi
   4836 if test -n "$PKG_CONFIG"; then
   4837 	_pkg_min_version=0.9.0
   4838 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
   4839 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
   4840 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
   4841 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4842 printf "%s\n" "yes" >&6; }
   4843 	else
   4844 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4845 printf "%s\n" "no" >&6; }
   4846 		PKG_CONFIG=""
   4847 	fi
   4848 fi
   4849 
   4850 
   4851   # Make sure we can run config.sub.
   4852 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
   4853   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
   4854 
   4855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   4856 printf %s "checking build system type... " >&6; }
   4857 if test ${ac_cv_build+y}
   4858 then :
   4859   printf %s "(cached) " >&6
   4860 else $as_nop
   4861   ac_build_alias=$build_alias
   4862 test "x$ac_build_alias" = x &&
   4863   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
   4864 test "x$ac_build_alias" = x &&
   4865   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   4866 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
   4867   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
   4868 
   4869 fi
   4870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   4871 printf "%s\n" "$ac_cv_build" >&6; }
   4872 case $ac_cv_build in
   4873 *-*-*) ;;
   4874 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   4875 esac
   4876 build=$ac_cv_build
   4877 ac_save_IFS=$IFS; IFS='-'
   4878 set x $ac_cv_build
   4879 shift
   4880 build_cpu=$1
   4881 build_vendor=$2
   4882 shift; shift
   4883 # Remember, the first character of IFS is used to create $*,
   4884 # except with old shells:
   4885 build_os=$*
   4886 IFS=$ac_save_IFS
   4887 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   4888 
   4889 
   4890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   4891 printf %s "checking host system type... " >&6; }
   4892 if test ${ac_cv_host+y}
   4893 then :
   4894   printf %s "(cached) " >&6
   4895 else $as_nop
   4896   if test "x$host_alias" = x; then
   4897   ac_cv_host=$ac_cv_build
   4898 else
   4899   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
   4900     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
   4901 fi
   4902 
   4903 fi
   4904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   4905 printf "%s\n" "$ac_cv_host" >&6; }
   4906 case $ac_cv_host in
   4907 *-*-*) ;;
   4908 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   4909 esac
   4910 host=$ac_cv_host
   4911 ac_save_IFS=$IFS; IFS='-'
   4912 set x $ac_cv_host
   4913 shift
   4914 host_cpu=$1
   4915 host_vendor=$2
   4916 shift; shift
   4917 # Remember, the first character of IFS is used to create $*,
   4918 # except with old shells:
   4919 host_os=$*
   4920 IFS=$ac_save_IFS
   4921 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   4922 
   4923 
   4924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
   4925 printf %s "checking for a sed that does not truncate output... " >&6; }
   4926 if test ${ac_cv_path_SED+y}
   4927 then :
   4928   printf %s "(cached) " >&6
   4929 else $as_nop
   4930             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
   4931      for ac_i in 1 2 3 4 5 6 7; do
   4932        ac_script="$ac_script$as_nl$ac_script"
   4933      done
   4934      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
   4935      { ac_script=; unset ac_script;}
   4936      if test -z "$SED"; then
   4937   ac_path_SED_found=false
   4938   # Loop through the user's path and test for each of PROGNAME-LIST
   4939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4940 for as_dir in $PATH
   4941 do
   4942   IFS=$as_save_IFS
   4943   case $as_dir in #(((
   4944     '') as_dir=./ ;;
   4945     */) ;;
   4946     *) as_dir=$as_dir/ ;;
   4947   esac
   4948     for ac_prog in sed gsed
   4949    do
   4950     for ac_exec_ext in '' $ac_executable_extensions; do
   4951       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
   4952       as_fn_executable_p "$ac_path_SED" || continue
   4953 # Check for GNU ac_path_SED and select it if it is found.
   4954   # Check for GNU $ac_path_SED
   4955 case `"$ac_path_SED" --version 2>&1` in
   4956 *GNU*)
   4957   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
   4958 *)
   4959   ac_count=0
   4960   printf %s 0123456789 >"conftest.in"
   4961   while :
   4962   do
   4963     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4964     mv "conftest.tmp" "conftest.in"
   4965     cp "conftest.in" "conftest.nl"
   4966     printf "%s\n" '' >> "conftest.nl"
   4967     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4968     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4969     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4970     if test $ac_count -gt ${ac_path_SED_max-0}; then
   4971       # Best one so far, save it but keep looking for a better one
   4972       ac_cv_path_SED="$ac_path_SED"
   4973       ac_path_SED_max=$ac_count
   4974     fi
   4975     # 10*(2^10) chars as input seems more than enough
   4976     test $ac_count -gt 10 && break
   4977   done
   4978   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4979 esac
   4980 
   4981       $ac_path_SED_found && break 3
   4982     done
   4983   done
   4984   done
   4985 IFS=$as_save_IFS
   4986   if test -z "$ac_cv_path_SED"; then
   4987     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
   4988   fi
   4989 else
   4990   ac_cv_path_SED=$SED
   4991 fi
   4992 
   4993 fi
   4994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
   4995 printf "%s\n" "$ac_cv_path_SED" >&6; }
   4996  SED="$ac_cv_path_SED"
   4997   rm -f conftest.sed
   4998 
   4999 
   5000 
   5001 
   5002 
   5003 
   5004 # Check whether --enable-selective-werror was given.
   5005 if test ${enable_selective_werror+y}
   5006 then :
   5007   enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
   5008 else $as_nop
   5009   SELECTIVE_WERROR=yes
   5010 fi
   5011 
   5012 
   5013 
   5014 
   5015 
   5016 # -v is too short to test reliably with XORG_TESTSET_CFLAG
   5017 if test "x$SUNCC" = "xyes"; then
   5018     BASE_CFLAGS="-v"
   5019 else
   5020     BASE_CFLAGS=""
   5021 fi
   5022 
   5023 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
   5024 
   5025 
   5026 
   5027 
   5028 
   5029 
   5030 
   5031 
   5032 
   5033 
   5034 
   5035 
   5036 
   5037 xorg_testset_save_CFLAGS="$CFLAGS"
   5038 
   5039 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   5040 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5041 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   5042 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   5043 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   5044 then :
   5045   printf %s "(cached) " >&6
   5046 else $as_nop
   5047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5048 /* end confdefs.h.  */
   5049 int i;
   5050 _ACEOF
   5051 if ac_fn_c_try_compile "$LINENO"
   5052 then :
   5053   xorg_cv_cc_flag_unknown_warning_option=yes
   5054 else $as_nop
   5055   xorg_cv_cc_flag_unknown_warning_option=no
   5056 fi
   5057 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5058 fi
   5059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   5060 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   5061 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   5062 	CFLAGS="$xorg_testset_save_CFLAGS"
   5063 fi
   5064 
   5065 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   5066 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5067 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5068 	fi
   5069 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5070 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   5071 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   5072 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   5073 then :
   5074   printf %s "(cached) " >&6
   5075 else $as_nop
   5076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5077 /* end confdefs.h.  */
   5078 int i;
   5079 _ACEOF
   5080 if ac_fn_c_try_compile "$LINENO"
   5081 then :
   5082   xorg_cv_cc_flag_unused_command_line_argument=yes
   5083 else $as_nop
   5084   xorg_cv_cc_flag_unused_command_line_argument=no
   5085 fi
   5086 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5087 fi
   5088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   5089 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   5090 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   5091 	CFLAGS="$xorg_testset_save_CFLAGS"
   5092 fi
   5093 
   5094 found="no"
   5095 
   5096 	if test $found = "no" ; then
   5097 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5098 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5099 		fi
   5100 
   5101 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   5102 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5103 		fi
   5104 
   5105 		CFLAGS="$CFLAGS -Wall"
   5106 
   5107 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
   5108 printf %s "checking if $CC supports -Wall... " >&6; }
   5109 		cacheid=xorg_cv_cc_flag__Wall
   5110 		if eval test \${$cacheid+y}
   5111 then :
   5112   printf %s "(cached) " >&6
   5113 else $as_nop
   5114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5115 /* end confdefs.h.  */
   5116 int i;
   5117 int
   5118 main (void)
   5119 {
   5120 
   5121   ;
   5122   return 0;
   5123 }
   5124 _ACEOF
   5125 if ac_fn_c_try_link "$LINENO"
   5126 then :
   5127   eval $cacheid=yes
   5128 else $as_nop
   5129   eval $cacheid=no
   5130 fi
   5131 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   5132     conftest$ac_exeext conftest.$ac_ext
   5133 fi
   5134 
   5135 
   5136 		CFLAGS="$xorg_testset_save_CFLAGS"
   5137 
   5138 		eval supported=\$$cacheid
   5139 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   5140 printf "%s\n" "$supported" >&6; }
   5141 		if test "$supported" = "yes" ; then
   5142 			BASE_CFLAGS="$BASE_CFLAGS -Wall"
   5143 			found="yes"
   5144 		fi
   5145 	fi
   5146 
   5147 
   5148 
   5149 
   5150 
   5151 
   5152 
   5153 
   5154 
   5155 
   5156 
   5157 
   5158 
   5159 
   5160 
   5161 xorg_testset_save_CFLAGS="$CFLAGS"
   5162 
   5163 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   5164 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5165 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   5166 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   5167 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   5168 then :
   5169   printf %s "(cached) " >&6
   5170 else $as_nop
   5171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5172 /* end confdefs.h.  */
   5173 int i;
   5174 _ACEOF
   5175 if ac_fn_c_try_compile "$LINENO"
   5176 then :
   5177   xorg_cv_cc_flag_unknown_warning_option=yes
   5178 else $as_nop
   5179   xorg_cv_cc_flag_unknown_warning_option=no
   5180 fi
   5181 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5182 fi
   5183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   5184 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   5185 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   5186 	CFLAGS="$xorg_testset_save_CFLAGS"
   5187 fi
   5188 
   5189 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   5190 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5191 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5192 	fi
   5193 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5194 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   5195 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   5196 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   5197 then :
   5198   printf %s "(cached) " >&6
   5199 else $as_nop
   5200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5201 /* end confdefs.h.  */
   5202 int i;
   5203 _ACEOF
   5204 if ac_fn_c_try_compile "$LINENO"
   5205 then :
   5206   xorg_cv_cc_flag_unused_command_line_argument=yes
   5207 else $as_nop
   5208   xorg_cv_cc_flag_unused_command_line_argument=no
   5209 fi
   5210 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5211 fi
   5212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   5213 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   5214 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   5215 	CFLAGS="$xorg_testset_save_CFLAGS"
   5216 fi
   5217 
   5218 found="no"
   5219 
   5220 	if test $found = "no" ; then
   5221 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5222 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5223 		fi
   5224 
   5225 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   5226 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5227 		fi
   5228 
   5229 		CFLAGS="$CFLAGS -Wpointer-arith"
   5230 
   5231 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
   5232 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
   5233 		cacheid=xorg_cv_cc_flag__Wpointer_arith
   5234 		if eval test \${$cacheid+y}
   5235 then :
   5236   printf %s "(cached) " >&6
   5237 else $as_nop
   5238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5239 /* end confdefs.h.  */
   5240 int i;
   5241 int
   5242 main (void)
   5243 {
   5244 
   5245   ;
   5246   return 0;
   5247 }
   5248 _ACEOF
   5249 if ac_fn_c_try_link "$LINENO"
   5250 then :
   5251   eval $cacheid=yes
   5252 else $as_nop
   5253   eval $cacheid=no
   5254 fi
   5255 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   5256     conftest$ac_exeext conftest.$ac_ext
   5257 fi
   5258 
   5259 
   5260 		CFLAGS="$xorg_testset_save_CFLAGS"
   5261 
   5262 		eval supported=\$$cacheid
   5263 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   5264 printf "%s\n" "$supported" >&6; }
   5265 		if test "$supported" = "yes" ; then
   5266 			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
   5267 			found="yes"
   5268 		fi
   5269 	fi
   5270 
   5271 
   5272 
   5273 
   5274 
   5275 
   5276 
   5277 
   5278 
   5279 
   5280 
   5281 
   5282 
   5283 
   5284 
   5285 xorg_testset_save_CFLAGS="$CFLAGS"
   5286 
   5287 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   5288 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5289 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   5290 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   5291 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   5292 then :
   5293   printf %s "(cached) " >&6
   5294 else $as_nop
   5295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5296 /* end confdefs.h.  */
   5297 int i;
   5298 _ACEOF
   5299 if ac_fn_c_try_compile "$LINENO"
   5300 then :
   5301   xorg_cv_cc_flag_unknown_warning_option=yes
   5302 else $as_nop
   5303   xorg_cv_cc_flag_unknown_warning_option=no
   5304 fi
   5305 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5306 fi
   5307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   5308 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   5309 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   5310 	CFLAGS="$xorg_testset_save_CFLAGS"
   5311 fi
   5312 
   5313 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   5314 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5315 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5316 	fi
   5317 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5318 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   5319 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   5320 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   5321 then :
   5322   printf %s "(cached) " >&6
   5323 else $as_nop
   5324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5325 /* end confdefs.h.  */
   5326 int i;
   5327 _ACEOF
   5328 if ac_fn_c_try_compile "$LINENO"
   5329 then :
   5330   xorg_cv_cc_flag_unused_command_line_argument=yes
   5331 else $as_nop
   5332   xorg_cv_cc_flag_unused_command_line_argument=no
   5333 fi
   5334 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5335 fi
   5336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   5337 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   5338 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   5339 	CFLAGS="$xorg_testset_save_CFLAGS"
   5340 fi
   5341 
   5342 found="no"
   5343 
   5344 	if test $found = "no" ; then
   5345 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5346 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5347 		fi
   5348 
   5349 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   5350 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5351 		fi
   5352 
   5353 		CFLAGS="$CFLAGS -Wmissing-declarations"
   5354 
   5355 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
   5356 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
   5357 		cacheid=xorg_cv_cc_flag__Wmissing_declarations
   5358 		if eval test \${$cacheid+y}
   5359 then :
   5360   printf %s "(cached) " >&6
   5361 else $as_nop
   5362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5363 /* end confdefs.h.  */
   5364 int i;
   5365 int
   5366 main (void)
   5367 {
   5368 
   5369   ;
   5370   return 0;
   5371 }
   5372 _ACEOF
   5373 if ac_fn_c_try_link "$LINENO"
   5374 then :
   5375   eval $cacheid=yes
   5376 else $as_nop
   5377   eval $cacheid=no
   5378 fi
   5379 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   5380     conftest$ac_exeext conftest.$ac_ext
   5381 fi
   5382 
   5383 
   5384 		CFLAGS="$xorg_testset_save_CFLAGS"
   5385 
   5386 		eval supported=\$$cacheid
   5387 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   5388 printf "%s\n" "$supported" >&6; }
   5389 		if test "$supported" = "yes" ; then
   5390 			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
   5391 			found="yes"
   5392 		fi
   5393 	fi
   5394 
   5395 
   5396 
   5397 
   5398 
   5399 
   5400 
   5401 
   5402 
   5403 
   5404 
   5405 
   5406 
   5407 
   5408 
   5409 xorg_testset_save_CFLAGS="$CFLAGS"
   5410 
   5411 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   5412 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5413 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   5414 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   5415 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   5416 then :
   5417   printf %s "(cached) " >&6
   5418 else $as_nop
   5419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5420 /* end confdefs.h.  */
   5421 int i;
   5422 _ACEOF
   5423 if ac_fn_c_try_compile "$LINENO"
   5424 then :
   5425   xorg_cv_cc_flag_unknown_warning_option=yes
   5426 else $as_nop
   5427   xorg_cv_cc_flag_unknown_warning_option=no
   5428 fi
   5429 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5430 fi
   5431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   5432 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   5433 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   5434 	CFLAGS="$xorg_testset_save_CFLAGS"
   5435 fi
   5436 
   5437 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   5438 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5439 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5440 	fi
   5441 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5442 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   5443 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   5444 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   5445 then :
   5446   printf %s "(cached) " >&6
   5447 else $as_nop
   5448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5449 /* end confdefs.h.  */
   5450 int i;
   5451 _ACEOF
   5452 if ac_fn_c_try_compile "$LINENO"
   5453 then :
   5454   xorg_cv_cc_flag_unused_command_line_argument=yes
   5455 else $as_nop
   5456   xorg_cv_cc_flag_unused_command_line_argument=no
   5457 fi
   5458 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5459 fi
   5460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   5461 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   5462 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   5463 	CFLAGS="$xorg_testset_save_CFLAGS"
   5464 fi
   5465 
   5466 found="no"
   5467 
   5468 	if test $found = "no" ; then
   5469 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5470 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5471 		fi
   5472 
   5473 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   5474 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5475 		fi
   5476 
   5477 		CFLAGS="$CFLAGS -Wformat=2"
   5478 
   5479 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
   5480 printf %s "checking if $CC supports -Wformat=2... " >&6; }
   5481 		cacheid=xorg_cv_cc_flag__Wformat_2
   5482 		if eval test \${$cacheid+y}
   5483 then :
   5484   printf %s "(cached) " >&6
   5485 else $as_nop
   5486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5487 /* end confdefs.h.  */
   5488 int i;
   5489 int
   5490 main (void)
   5491 {
   5492 
   5493   ;
   5494   return 0;
   5495 }
   5496 _ACEOF
   5497 if ac_fn_c_try_link "$LINENO"
   5498 then :
   5499   eval $cacheid=yes
   5500 else $as_nop
   5501   eval $cacheid=no
   5502 fi
   5503 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   5504     conftest$ac_exeext conftest.$ac_ext
   5505 fi
   5506 
   5507 
   5508 		CFLAGS="$xorg_testset_save_CFLAGS"
   5509 
   5510 		eval supported=\$$cacheid
   5511 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   5512 printf "%s\n" "$supported" >&6; }
   5513 		if test "$supported" = "yes" ; then
   5514 			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
   5515 			found="yes"
   5516 		fi
   5517 	fi
   5518 
   5519 	if test $found = "no" ; then
   5520 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5521 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5522 		fi
   5523 
   5524 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   5525 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5526 		fi
   5527 
   5528 		CFLAGS="$CFLAGS -Wformat"
   5529 
   5530 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
   5531 printf %s "checking if $CC supports -Wformat... " >&6; }
   5532 		cacheid=xorg_cv_cc_flag__Wformat
   5533 		if eval test \${$cacheid+y}
   5534 then :
   5535   printf %s "(cached) " >&6
   5536 else $as_nop
   5537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5538 /* end confdefs.h.  */
   5539 int i;
   5540 int
   5541 main (void)
   5542 {
   5543 
   5544   ;
   5545   return 0;
   5546 }
   5547 _ACEOF
   5548 if ac_fn_c_try_link "$LINENO"
   5549 then :
   5550   eval $cacheid=yes
   5551 else $as_nop
   5552   eval $cacheid=no
   5553 fi
   5554 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   5555     conftest$ac_exeext conftest.$ac_ext
   5556 fi
   5557 
   5558 
   5559 		CFLAGS="$xorg_testset_save_CFLAGS"
   5560 
   5561 		eval supported=\$$cacheid
   5562 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   5563 printf "%s\n" "$supported" >&6; }
   5564 		if test "$supported" = "yes" ; then
   5565 			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
   5566 			found="yes"
   5567 		fi
   5568 	fi
   5569 
   5570 
   5571 
   5572 
   5573 
   5574 
   5575 
   5576 
   5577 
   5578 
   5579 
   5580 
   5581 
   5582 
   5583 
   5584 
   5585 
   5586 xorg_testset_save_CFLAGS="$CFLAGS"
   5587 
   5588 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   5589 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5590 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   5591 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   5592 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   5593 then :
   5594   printf %s "(cached) " >&6
   5595 else $as_nop
   5596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5597 /* end confdefs.h.  */
   5598 int i;
   5599 _ACEOF
   5600 if ac_fn_c_try_compile "$LINENO"
   5601 then :
   5602   xorg_cv_cc_flag_unknown_warning_option=yes
   5603 else $as_nop
   5604   xorg_cv_cc_flag_unknown_warning_option=no
   5605 fi
   5606 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5607 fi
   5608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   5609 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   5610 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   5611 	CFLAGS="$xorg_testset_save_CFLAGS"
   5612 fi
   5613 
   5614 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   5615 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5616 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5617 	fi
   5618 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5619 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   5620 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   5621 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   5622 then :
   5623   printf %s "(cached) " >&6
   5624 else $as_nop
   5625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5626 /* end confdefs.h.  */
   5627 int i;
   5628 _ACEOF
   5629 if ac_fn_c_try_compile "$LINENO"
   5630 then :
   5631   xorg_cv_cc_flag_unused_command_line_argument=yes
   5632 else $as_nop
   5633   xorg_cv_cc_flag_unused_command_line_argument=no
   5634 fi
   5635 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5636 fi
   5637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   5638 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   5639 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   5640 	CFLAGS="$xorg_testset_save_CFLAGS"
   5641 fi
   5642 
   5643 found="no"
   5644 
   5645 	if test $found = "no" ; then
   5646 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5647 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5648 		fi
   5649 
   5650 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   5651 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5652 		fi
   5653 
   5654 		CFLAGS="$CFLAGS -Wstrict-prototypes"
   5655 
   5656 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
   5657 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
   5658 		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
   5659 		if eval test \${$cacheid+y}
   5660 then :
   5661   printf %s "(cached) " >&6
   5662 else $as_nop
   5663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5664 /* end confdefs.h.  */
   5665 int i;
   5666 int
   5667 main (void)
   5668 {
   5669 
   5670   ;
   5671   return 0;
   5672 }
   5673 _ACEOF
   5674 if ac_fn_c_try_link "$LINENO"
   5675 then :
   5676   eval $cacheid=yes
   5677 else $as_nop
   5678   eval $cacheid=no
   5679 fi
   5680 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   5681     conftest$ac_exeext conftest.$ac_ext
   5682 fi
   5683 
   5684 
   5685 		CFLAGS="$xorg_testset_save_CFLAGS"
   5686 
   5687 		eval supported=\$$cacheid
   5688 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   5689 printf "%s\n" "$supported" >&6; }
   5690 		if test "$supported" = "yes" ; then
   5691 			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
   5692 			found="yes"
   5693 		fi
   5694 	fi
   5695 
   5696 
   5697 
   5698 
   5699 
   5700 
   5701 
   5702 
   5703 
   5704 
   5705 
   5706 
   5707 
   5708 
   5709 
   5710 xorg_testset_save_CFLAGS="$CFLAGS"
   5711 
   5712 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   5713 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5714 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   5715 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   5716 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   5717 then :
   5718   printf %s "(cached) " >&6
   5719 else $as_nop
   5720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5721 /* end confdefs.h.  */
   5722 int i;
   5723 _ACEOF
   5724 if ac_fn_c_try_compile "$LINENO"
   5725 then :
   5726   xorg_cv_cc_flag_unknown_warning_option=yes
   5727 else $as_nop
   5728   xorg_cv_cc_flag_unknown_warning_option=no
   5729 fi
   5730 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5731 fi
   5732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   5733 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   5734 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   5735 	CFLAGS="$xorg_testset_save_CFLAGS"
   5736 fi
   5737 
   5738 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   5739 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5740 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5741 	fi
   5742 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5743 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   5744 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   5745 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   5746 then :
   5747   printf %s "(cached) " >&6
   5748 else $as_nop
   5749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5750 /* end confdefs.h.  */
   5751 int i;
   5752 _ACEOF
   5753 if ac_fn_c_try_compile "$LINENO"
   5754 then :
   5755   xorg_cv_cc_flag_unused_command_line_argument=yes
   5756 else $as_nop
   5757   xorg_cv_cc_flag_unused_command_line_argument=no
   5758 fi
   5759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5760 fi
   5761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   5762 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   5763 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   5764 	CFLAGS="$xorg_testset_save_CFLAGS"
   5765 fi
   5766 
   5767 found="no"
   5768 
   5769 	if test $found = "no" ; then
   5770 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5771 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5772 		fi
   5773 
   5774 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   5775 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5776 		fi
   5777 
   5778 		CFLAGS="$CFLAGS -Wmissing-prototypes"
   5779 
   5780 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
   5781 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
   5782 		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
   5783 		if eval test \${$cacheid+y}
   5784 then :
   5785   printf %s "(cached) " >&6
   5786 else $as_nop
   5787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5788 /* end confdefs.h.  */
   5789 int i;
   5790 int
   5791 main (void)
   5792 {
   5793 
   5794   ;
   5795   return 0;
   5796 }
   5797 _ACEOF
   5798 if ac_fn_c_try_link "$LINENO"
   5799 then :
   5800   eval $cacheid=yes
   5801 else $as_nop
   5802   eval $cacheid=no
   5803 fi
   5804 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   5805     conftest$ac_exeext conftest.$ac_ext
   5806 fi
   5807 
   5808 
   5809 		CFLAGS="$xorg_testset_save_CFLAGS"
   5810 
   5811 		eval supported=\$$cacheid
   5812 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   5813 printf "%s\n" "$supported" >&6; }
   5814 		if test "$supported" = "yes" ; then
   5815 			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
   5816 			found="yes"
   5817 		fi
   5818 	fi
   5819 
   5820 
   5821 
   5822 
   5823 
   5824 
   5825 
   5826 
   5827 
   5828 
   5829 
   5830 
   5831 
   5832 
   5833 
   5834 xorg_testset_save_CFLAGS="$CFLAGS"
   5835 
   5836 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   5837 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5838 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   5839 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   5840 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   5841 then :
   5842   printf %s "(cached) " >&6
   5843 else $as_nop
   5844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5845 /* end confdefs.h.  */
   5846 int i;
   5847 _ACEOF
   5848 if ac_fn_c_try_compile "$LINENO"
   5849 then :
   5850   xorg_cv_cc_flag_unknown_warning_option=yes
   5851 else $as_nop
   5852   xorg_cv_cc_flag_unknown_warning_option=no
   5853 fi
   5854 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5855 fi
   5856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   5857 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   5858 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   5859 	CFLAGS="$xorg_testset_save_CFLAGS"
   5860 fi
   5861 
   5862 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   5863 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5864 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5865 	fi
   5866 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5867 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   5868 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   5869 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   5870 then :
   5871   printf %s "(cached) " >&6
   5872 else $as_nop
   5873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5874 /* end confdefs.h.  */
   5875 int i;
   5876 _ACEOF
   5877 if ac_fn_c_try_compile "$LINENO"
   5878 then :
   5879   xorg_cv_cc_flag_unused_command_line_argument=yes
   5880 else $as_nop
   5881   xorg_cv_cc_flag_unused_command_line_argument=no
   5882 fi
   5883 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5884 fi
   5885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   5886 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   5887 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   5888 	CFLAGS="$xorg_testset_save_CFLAGS"
   5889 fi
   5890 
   5891 found="no"
   5892 
   5893 	if test $found = "no" ; then
   5894 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5895 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5896 		fi
   5897 
   5898 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   5899 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5900 		fi
   5901 
   5902 		CFLAGS="$CFLAGS -Wnested-externs"
   5903 
   5904 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
   5905 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
   5906 		cacheid=xorg_cv_cc_flag__Wnested_externs
   5907 		if eval test \${$cacheid+y}
   5908 then :
   5909   printf %s "(cached) " >&6
   5910 else $as_nop
   5911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5912 /* end confdefs.h.  */
   5913 int i;
   5914 int
   5915 main (void)
   5916 {
   5917 
   5918   ;
   5919   return 0;
   5920 }
   5921 _ACEOF
   5922 if ac_fn_c_try_link "$LINENO"
   5923 then :
   5924   eval $cacheid=yes
   5925 else $as_nop
   5926   eval $cacheid=no
   5927 fi
   5928 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   5929     conftest$ac_exeext conftest.$ac_ext
   5930 fi
   5931 
   5932 
   5933 		CFLAGS="$xorg_testset_save_CFLAGS"
   5934 
   5935 		eval supported=\$$cacheid
   5936 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   5937 printf "%s\n" "$supported" >&6; }
   5938 		if test "$supported" = "yes" ; then
   5939 			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
   5940 			found="yes"
   5941 		fi
   5942 	fi
   5943 
   5944 
   5945 
   5946 
   5947 
   5948 
   5949 
   5950 
   5951 
   5952 
   5953 
   5954 
   5955 
   5956 
   5957 
   5958 xorg_testset_save_CFLAGS="$CFLAGS"
   5959 
   5960 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   5961 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5962 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   5963 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   5964 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   5965 then :
   5966   printf %s "(cached) " >&6
   5967 else $as_nop
   5968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5969 /* end confdefs.h.  */
   5970 int i;
   5971 _ACEOF
   5972 if ac_fn_c_try_compile "$LINENO"
   5973 then :
   5974   xorg_cv_cc_flag_unknown_warning_option=yes
   5975 else $as_nop
   5976   xorg_cv_cc_flag_unknown_warning_option=no
   5977 fi
   5978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   5979 fi
   5980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   5981 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   5982 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   5983 	CFLAGS="$xorg_testset_save_CFLAGS"
   5984 fi
   5985 
   5986 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   5987 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   5988 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   5989 	fi
   5990 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   5991 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   5992 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   5993 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   5994 then :
   5995   printf %s "(cached) " >&6
   5996 else $as_nop
   5997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5998 /* end confdefs.h.  */
   5999 int i;
   6000 _ACEOF
   6001 if ac_fn_c_try_compile "$LINENO"
   6002 then :
   6003   xorg_cv_cc_flag_unused_command_line_argument=yes
   6004 else $as_nop
   6005   xorg_cv_cc_flag_unused_command_line_argument=no
   6006 fi
   6007 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6008 fi
   6009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   6010 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   6011 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   6012 	CFLAGS="$xorg_testset_save_CFLAGS"
   6013 fi
   6014 
   6015 found="no"
   6016 
   6017 	if test $found = "no" ; then
   6018 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6019 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6020 		fi
   6021 
   6022 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   6023 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6024 		fi
   6025 
   6026 		CFLAGS="$CFLAGS -Wbad-function-cast"
   6027 
   6028 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
   6029 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
   6030 		cacheid=xorg_cv_cc_flag__Wbad_function_cast
   6031 		if eval test \${$cacheid+y}
   6032 then :
   6033   printf %s "(cached) " >&6
   6034 else $as_nop
   6035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6036 /* end confdefs.h.  */
   6037 int i;
   6038 int
   6039 main (void)
   6040 {
   6041 
   6042   ;
   6043   return 0;
   6044 }
   6045 _ACEOF
   6046 if ac_fn_c_try_link "$LINENO"
   6047 then :
   6048   eval $cacheid=yes
   6049 else $as_nop
   6050   eval $cacheid=no
   6051 fi
   6052 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   6053     conftest$ac_exeext conftest.$ac_ext
   6054 fi
   6055 
   6056 
   6057 		CFLAGS="$xorg_testset_save_CFLAGS"
   6058 
   6059 		eval supported=\$$cacheid
   6060 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   6061 printf "%s\n" "$supported" >&6; }
   6062 		if test "$supported" = "yes" ; then
   6063 			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
   6064 			found="yes"
   6065 		fi
   6066 	fi
   6067 
   6068 
   6069 
   6070 
   6071 
   6072 
   6073 
   6074 
   6075 
   6076 
   6077 
   6078 
   6079 
   6080 
   6081 
   6082 xorg_testset_save_CFLAGS="$CFLAGS"
   6083 
   6084 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   6085 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6086 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   6087 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   6088 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   6089 then :
   6090   printf %s "(cached) " >&6
   6091 else $as_nop
   6092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6093 /* end confdefs.h.  */
   6094 int i;
   6095 _ACEOF
   6096 if ac_fn_c_try_compile "$LINENO"
   6097 then :
   6098   xorg_cv_cc_flag_unknown_warning_option=yes
   6099 else $as_nop
   6100   xorg_cv_cc_flag_unknown_warning_option=no
   6101 fi
   6102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6103 fi
   6104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   6105 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   6106 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   6107 	CFLAGS="$xorg_testset_save_CFLAGS"
   6108 fi
   6109 
   6110 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   6111 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6112 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6113 	fi
   6114 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6115 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   6116 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   6117 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   6118 then :
   6119   printf %s "(cached) " >&6
   6120 else $as_nop
   6121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6122 /* end confdefs.h.  */
   6123 int i;
   6124 _ACEOF
   6125 if ac_fn_c_try_compile "$LINENO"
   6126 then :
   6127   xorg_cv_cc_flag_unused_command_line_argument=yes
   6128 else $as_nop
   6129   xorg_cv_cc_flag_unused_command_line_argument=no
   6130 fi
   6131 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6132 fi
   6133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   6134 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   6135 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   6136 	CFLAGS="$xorg_testset_save_CFLAGS"
   6137 fi
   6138 
   6139 found="no"
   6140 
   6141 	if test $found = "no" ; then
   6142 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6143 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6144 		fi
   6145 
   6146 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   6147 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6148 		fi
   6149 
   6150 		CFLAGS="$CFLAGS -Wold-style-definition"
   6151 
   6152 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
   6153 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
   6154 		cacheid=xorg_cv_cc_flag__Wold_style_definition
   6155 		if eval test \${$cacheid+y}
   6156 then :
   6157   printf %s "(cached) " >&6
   6158 else $as_nop
   6159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6160 /* end confdefs.h.  */
   6161 int i;
   6162 int
   6163 main (void)
   6164 {
   6165 
   6166   ;
   6167   return 0;
   6168 }
   6169 _ACEOF
   6170 if ac_fn_c_try_link "$LINENO"
   6171 then :
   6172   eval $cacheid=yes
   6173 else $as_nop
   6174   eval $cacheid=no
   6175 fi
   6176 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   6177     conftest$ac_exeext conftest.$ac_ext
   6178 fi
   6179 
   6180 
   6181 		CFLAGS="$xorg_testset_save_CFLAGS"
   6182 
   6183 		eval supported=\$$cacheid
   6184 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   6185 printf "%s\n" "$supported" >&6; }
   6186 		if test "$supported" = "yes" ; then
   6187 			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
   6188 			found="yes"
   6189 		fi
   6190 	fi
   6191 
   6192 	if test $found = "no" ; then
   6193 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6194 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6195 		fi
   6196 
   6197 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   6198 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6199 		fi
   6200 
   6201 		CFLAGS="$CFLAGS -fd"
   6202 
   6203 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
   6204 printf %s "checking if $CC supports -fd... " >&6; }
   6205 		cacheid=xorg_cv_cc_flag__fd
   6206 		if eval test \${$cacheid+y}
   6207 then :
   6208   printf %s "(cached) " >&6
   6209 else $as_nop
   6210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6211 /* end confdefs.h.  */
   6212 int i;
   6213 int
   6214 main (void)
   6215 {
   6216 
   6217   ;
   6218   return 0;
   6219 }
   6220 _ACEOF
   6221 if ac_fn_c_try_link "$LINENO"
   6222 then :
   6223   eval $cacheid=yes
   6224 else $as_nop
   6225   eval $cacheid=no
   6226 fi
   6227 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   6228     conftest$ac_exeext conftest.$ac_ext
   6229 fi
   6230 
   6231 
   6232 		CFLAGS="$xorg_testset_save_CFLAGS"
   6233 
   6234 		eval supported=\$$cacheid
   6235 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   6236 printf "%s\n" "$supported" >&6; }
   6237 		if test "$supported" = "yes" ; then
   6238 			BASE_CFLAGS="$BASE_CFLAGS -fd"
   6239 			found="yes"
   6240 		fi
   6241 	fi
   6242 
   6243 
   6244 
   6245 
   6246 
   6247 
   6248 
   6249 
   6250 
   6251 
   6252 
   6253 
   6254 
   6255 
   6256 
   6257 xorg_testset_save_CFLAGS="$CFLAGS"
   6258 
   6259 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   6260 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6261 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   6262 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   6263 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   6264 then :
   6265   printf %s "(cached) " >&6
   6266 else $as_nop
   6267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6268 /* end confdefs.h.  */
   6269 int i;
   6270 _ACEOF
   6271 if ac_fn_c_try_compile "$LINENO"
   6272 then :
   6273   xorg_cv_cc_flag_unknown_warning_option=yes
   6274 else $as_nop
   6275   xorg_cv_cc_flag_unknown_warning_option=no
   6276 fi
   6277 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6278 fi
   6279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   6280 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   6281 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   6282 	CFLAGS="$xorg_testset_save_CFLAGS"
   6283 fi
   6284 
   6285 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   6286 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6287 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6288 	fi
   6289 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6290 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   6291 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   6292 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   6293 then :
   6294   printf %s "(cached) " >&6
   6295 else $as_nop
   6296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6297 /* end confdefs.h.  */
   6298 int i;
   6299 _ACEOF
   6300 if ac_fn_c_try_compile "$LINENO"
   6301 then :
   6302   xorg_cv_cc_flag_unused_command_line_argument=yes
   6303 else $as_nop
   6304   xorg_cv_cc_flag_unused_command_line_argument=no
   6305 fi
   6306 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6307 fi
   6308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   6309 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   6310 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   6311 	CFLAGS="$xorg_testset_save_CFLAGS"
   6312 fi
   6313 
   6314 found="no"
   6315 
   6316 	if test $found = "no" ; then
   6317 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6318 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6319 		fi
   6320 
   6321 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   6322 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6323 		fi
   6324 
   6325 		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
   6326 
   6327 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
   6328 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
   6329 		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
   6330 		if eval test \${$cacheid+y}
   6331 then :
   6332   printf %s "(cached) " >&6
   6333 else $as_nop
   6334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6335 /* end confdefs.h.  */
   6336 int i;
   6337 int
   6338 main (void)
   6339 {
   6340 
   6341   ;
   6342   return 0;
   6343 }
   6344 _ACEOF
   6345 if ac_fn_c_try_link "$LINENO"
   6346 then :
   6347   eval $cacheid=yes
   6348 else $as_nop
   6349   eval $cacheid=no
   6350 fi
   6351 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   6352     conftest$ac_exeext conftest.$ac_ext
   6353 fi
   6354 
   6355 
   6356 		CFLAGS="$xorg_testset_save_CFLAGS"
   6357 
   6358 		eval supported=\$$cacheid
   6359 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   6360 printf "%s\n" "$supported" >&6; }
   6361 		if test "$supported" = "yes" ; then
   6362 			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
   6363 			found="yes"
   6364 		fi
   6365 	fi
   6366 
   6367 
   6368 
   6369 
   6370 
   6371 # This chunk adds additional warnings that could catch undesired effects.
   6372 
   6373 
   6374 
   6375 
   6376 
   6377 
   6378 
   6379 
   6380 
   6381 
   6382 
   6383 
   6384 
   6385 xorg_testset_save_CFLAGS="$CFLAGS"
   6386 
   6387 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   6388 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6389 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   6390 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   6391 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   6392 then :
   6393   printf %s "(cached) " >&6
   6394 else $as_nop
   6395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6396 /* end confdefs.h.  */
   6397 int i;
   6398 _ACEOF
   6399 if ac_fn_c_try_compile "$LINENO"
   6400 then :
   6401   xorg_cv_cc_flag_unknown_warning_option=yes
   6402 else $as_nop
   6403   xorg_cv_cc_flag_unknown_warning_option=no
   6404 fi
   6405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6406 fi
   6407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   6408 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   6409 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   6410 	CFLAGS="$xorg_testset_save_CFLAGS"
   6411 fi
   6412 
   6413 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   6414 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6415 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6416 	fi
   6417 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6418 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   6419 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   6420 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   6421 then :
   6422   printf %s "(cached) " >&6
   6423 else $as_nop
   6424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6425 /* end confdefs.h.  */
   6426 int i;
   6427 _ACEOF
   6428 if ac_fn_c_try_compile "$LINENO"
   6429 then :
   6430   xorg_cv_cc_flag_unused_command_line_argument=yes
   6431 else $as_nop
   6432   xorg_cv_cc_flag_unused_command_line_argument=no
   6433 fi
   6434 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6435 fi
   6436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   6437 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   6438 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   6439 	CFLAGS="$xorg_testset_save_CFLAGS"
   6440 fi
   6441 
   6442 found="no"
   6443 
   6444 	if test $found = "no" ; then
   6445 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6446 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6447 		fi
   6448 
   6449 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   6450 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6451 		fi
   6452 
   6453 		CFLAGS="$CFLAGS -Wunused"
   6454 
   6455 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
   6456 printf %s "checking if $CC supports -Wunused... " >&6; }
   6457 		cacheid=xorg_cv_cc_flag__Wunused
   6458 		if eval test \${$cacheid+y}
   6459 then :
   6460   printf %s "(cached) " >&6
   6461 else $as_nop
   6462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6463 /* end confdefs.h.  */
   6464 int i;
   6465 int
   6466 main (void)
   6467 {
   6468 
   6469   ;
   6470   return 0;
   6471 }
   6472 _ACEOF
   6473 if ac_fn_c_try_link "$LINENO"
   6474 then :
   6475   eval $cacheid=yes
   6476 else $as_nop
   6477   eval $cacheid=no
   6478 fi
   6479 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   6480     conftest$ac_exeext conftest.$ac_ext
   6481 fi
   6482 
   6483 
   6484 		CFLAGS="$xorg_testset_save_CFLAGS"
   6485 
   6486 		eval supported=\$$cacheid
   6487 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   6488 printf "%s\n" "$supported" >&6; }
   6489 		if test "$supported" = "yes" ; then
   6490 			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
   6491 			found="yes"
   6492 		fi
   6493 	fi
   6494 
   6495 
   6496 
   6497 
   6498 
   6499 
   6500 
   6501 
   6502 
   6503 
   6504 
   6505 
   6506 
   6507 
   6508 
   6509 xorg_testset_save_CFLAGS="$CFLAGS"
   6510 
   6511 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   6512 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6513 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   6514 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   6515 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   6516 then :
   6517   printf %s "(cached) " >&6
   6518 else $as_nop
   6519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6520 /* end confdefs.h.  */
   6521 int i;
   6522 _ACEOF
   6523 if ac_fn_c_try_compile "$LINENO"
   6524 then :
   6525   xorg_cv_cc_flag_unknown_warning_option=yes
   6526 else $as_nop
   6527   xorg_cv_cc_flag_unknown_warning_option=no
   6528 fi
   6529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6530 fi
   6531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   6532 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   6533 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   6534 	CFLAGS="$xorg_testset_save_CFLAGS"
   6535 fi
   6536 
   6537 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   6538 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6539 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6540 	fi
   6541 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6542 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   6543 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   6544 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   6545 then :
   6546   printf %s "(cached) " >&6
   6547 else $as_nop
   6548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6549 /* end confdefs.h.  */
   6550 int i;
   6551 _ACEOF
   6552 if ac_fn_c_try_compile "$LINENO"
   6553 then :
   6554   xorg_cv_cc_flag_unused_command_line_argument=yes
   6555 else $as_nop
   6556   xorg_cv_cc_flag_unused_command_line_argument=no
   6557 fi
   6558 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6559 fi
   6560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   6561 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   6562 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   6563 	CFLAGS="$xorg_testset_save_CFLAGS"
   6564 fi
   6565 
   6566 found="no"
   6567 
   6568 	if test $found = "no" ; then
   6569 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6570 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6571 		fi
   6572 
   6573 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   6574 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6575 		fi
   6576 
   6577 		CFLAGS="$CFLAGS -Wuninitialized"
   6578 
   6579 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
   6580 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
   6581 		cacheid=xorg_cv_cc_flag__Wuninitialized
   6582 		if eval test \${$cacheid+y}
   6583 then :
   6584   printf %s "(cached) " >&6
   6585 else $as_nop
   6586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6587 /* end confdefs.h.  */
   6588 int i;
   6589 int
   6590 main (void)
   6591 {
   6592 
   6593   ;
   6594   return 0;
   6595 }
   6596 _ACEOF
   6597 if ac_fn_c_try_link "$LINENO"
   6598 then :
   6599   eval $cacheid=yes
   6600 else $as_nop
   6601   eval $cacheid=no
   6602 fi
   6603 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   6604     conftest$ac_exeext conftest.$ac_ext
   6605 fi
   6606 
   6607 
   6608 		CFLAGS="$xorg_testset_save_CFLAGS"
   6609 
   6610 		eval supported=\$$cacheid
   6611 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   6612 printf "%s\n" "$supported" >&6; }
   6613 		if test "$supported" = "yes" ; then
   6614 			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
   6615 			found="yes"
   6616 		fi
   6617 	fi
   6618 
   6619 
   6620 
   6621 
   6622 
   6623 
   6624 
   6625 
   6626 
   6627 
   6628 
   6629 
   6630 
   6631 
   6632 
   6633 xorg_testset_save_CFLAGS="$CFLAGS"
   6634 
   6635 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   6636 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6637 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   6638 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   6639 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   6640 then :
   6641   printf %s "(cached) " >&6
   6642 else $as_nop
   6643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6644 /* end confdefs.h.  */
   6645 int i;
   6646 _ACEOF
   6647 if ac_fn_c_try_compile "$LINENO"
   6648 then :
   6649   xorg_cv_cc_flag_unknown_warning_option=yes
   6650 else $as_nop
   6651   xorg_cv_cc_flag_unknown_warning_option=no
   6652 fi
   6653 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6654 fi
   6655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   6656 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   6657 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   6658 	CFLAGS="$xorg_testset_save_CFLAGS"
   6659 fi
   6660 
   6661 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   6662 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6663 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6664 	fi
   6665 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6666 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   6667 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   6668 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   6669 then :
   6670   printf %s "(cached) " >&6
   6671 else $as_nop
   6672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6673 /* end confdefs.h.  */
   6674 int i;
   6675 _ACEOF
   6676 if ac_fn_c_try_compile "$LINENO"
   6677 then :
   6678   xorg_cv_cc_flag_unused_command_line_argument=yes
   6679 else $as_nop
   6680   xorg_cv_cc_flag_unused_command_line_argument=no
   6681 fi
   6682 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6683 fi
   6684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   6685 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   6686 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   6687 	CFLAGS="$xorg_testset_save_CFLAGS"
   6688 fi
   6689 
   6690 found="no"
   6691 
   6692 	if test $found = "no" ; then
   6693 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6694 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6695 		fi
   6696 
   6697 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   6698 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6699 		fi
   6700 
   6701 		CFLAGS="$CFLAGS -Wshadow"
   6702 
   6703 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
   6704 printf %s "checking if $CC supports -Wshadow... " >&6; }
   6705 		cacheid=xorg_cv_cc_flag__Wshadow
   6706 		if eval test \${$cacheid+y}
   6707 then :
   6708   printf %s "(cached) " >&6
   6709 else $as_nop
   6710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6711 /* end confdefs.h.  */
   6712 int i;
   6713 int
   6714 main (void)
   6715 {
   6716 
   6717   ;
   6718   return 0;
   6719 }
   6720 _ACEOF
   6721 if ac_fn_c_try_link "$LINENO"
   6722 then :
   6723   eval $cacheid=yes
   6724 else $as_nop
   6725   eval $cacheid=no
   6726 fi
   6727 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   6728     conftest$ac_exeext conftest.$ac_ext
   6729 fi
   6730 
   6731 
   6732 		CFLAGS="$xorg_testset_save_CFLAGS"
   6733 
   6734 		eval supported=\$$cacheid
   6735 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   6736 printf "%s\n" "$supported" >&6; }
   6737 		if test "$supported" = "yes" ; then
   6738 			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
   6739 			found="yes"
   6740 		fi
   6741 	fi
   6742 
   6743 
   6744 
   6745 
   6746 
   6747 
   6748 
   6749 
   6750 
   6751 
   6752 
   6753 
   6754 
   6755 
   6756 
   6757 xorg_testset_save_CFLAGS="$CFLAGS"
   6758 
   6759 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   6760 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6761 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   6762 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   6763 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   6764 then :
   6765   printf %s "(cached) " >&6
   6766 else $as_nop
   6767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6768 /* end confdefs.h.  */
   6769 int i;
   6770 _ACEOF
   6771 if ac_fn_c_try_compile "$LINENO"
   6772 then :
   6773   xorg_cv_cc_flag_unknown_warning_option=yes
   6774 else $as_nop
   6775   xorg_cv_cc_flag_unknown_warning_option=no
   6776 fi
   6777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6778 fi
   6779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   6780 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   6781 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   6782 	CFLAGS="$xorg_testset_save_CFLAGS"
   6783 fi
   6784 
   6785 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   6786 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6787 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6788 	fi
   6789 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6790 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   6791 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   6792 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   6793 then :
   6794   printf %s "(cached) " >&6
   6795 else $as_nop
   6796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6797 /* end confdefs.h.  */
   6798 int i;
   6799 _ACEOF
   6800 if ac_fn_c_try_compile "$LINENO"
   6801 then :
   6802   xorg_cv_cc_flag_unused_command_line_argument=yes
   6803 else $as_nop
   6804   xorg_cv_cc_flag_unused_command_line_argument=no
   6805 fi
   6806 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6807 fi
   6808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   6809 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   6810 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   6811 	CFLAGS="$xorg_testset_save_CFLAGS"
   6812 fi
   6813 
   6814 found="no"
   6815 
   6816 	if test $found = "no" ; then
   6817 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6818 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6819 		fi
   6820 
   6821 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   6822 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6823 		fi
   6824 
   6825 		CFLAGS="$CFLAGS -Wmissing-noreturn"
   6826 
   6827 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
   6828 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
   6829 		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
   6830 		if eval test \${$cacheid+y}
   6831 then :
   6832   printf %s "(cached) " >&6
   6833 else $as_nop
   6834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6835 /* end confdefs.h.  */
   6836 int i;
   6837 int
   6838 main (void)
   6839 {
   6840 
   6841   ;
   6842   return 0;
   6843 }
   6844 _ACEOF
   6845 if ac_fn_c_try_link "$LINENO"
   6846 then :
   6847   eval $cacheid=yes
   6848 else $as_nop
   6849   eval $cacheid=no
   6850 fi
   6851 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   6852     conftest$ac_exeext conftest.$ac_ext
   6853 fi
   6854 
   6855 
   6856 		CFLAGS="$xorg_testset_save_CFLAGS"
   6857 
   6858 		eval supported=\$$cacheid
   6859 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   6860 printf "%s\n" "$supported" >&6; }
   6861 		if test "$supported" = "yes" ; then
   6862 			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
   6863 			found="yes"
   6864 		fi
   6865 	fi
   6866 
   6867 
   6868 
   6869 
   6870 
   6871 
   6872 
   6873 
   6874 
   6875 
   6876 
   6877 
   6878 
   6879 
   6880 
   6881 xorg_testset_save_CFLAGS="$CFLAGS"
   6882 
   6883 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   6884 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6885 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   6886 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   6887 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   6888 then :
   6889   printf %s "(cached) " >&6
   6890 else $as_nop
   6891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6892 /* end confdefs.h.  */
   6893 int i;
   6894 _ACEOF
   6895 if ac_fn_c_try_compile "$LINENO"
   6896 then :
   6897   xorg_cv_cc_flag_unknown_warning_option=yes
   6898 else $as_nop
   6899   xorg_cv_cc_flag_unknown_warning_option=no
   6900 fi
   6901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6902 fi
   6903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   6904 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   6905 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   6906 	CFLAGS="$xorg_testset_save_CFLAGS"
   6907 fi
   6908 
   6909 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   6910 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6911 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6912 	fi
   6913 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6914 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   6915 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   6916 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   6917 then :
   6918   printf %s "(cached) " >&6
   6919 else $as_nop
   6920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6921 /* end confdefs.h.  */
   6922 int i;
   6923 _ACEOF
   6924 if ac_fn_c_try_compile "$LINENO"
   6925 then :
   6926   xorg_cv_cc_flag_unused_command_line_argument=yes
   6927 else $as_nop
   6928   xorg_cv_cc_flag_unused_command_line_argument=no
   6929 fi
   6930 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6931 fi
   6932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   6933 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   6934 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   6935 	CFLAGS="$xorg_testset_save_CFLAGS"
   6936 fi
   6937 
   6938 found="no"
   6939 
   6940 	if test $found = "no" ; then
   6941 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   6942 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   6943 		fi
   6944 
   6945 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   6946 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   6947 		fi
   6948 
   6949 		CFLAGS="$CFLAGS -Wmissing-format-attribute"
   6950 
   6951 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
   6952 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
   6953 		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
   6954 		if eval test \${$cacheid+y}
   6955 then :
   6956   printf %s "(cached) " >&6
   6957 else $as_nop
   6958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6959 /* end confdefs.h.  */
   6960 int i;
   6961 int
   6962 main (void)
   6963 {
   6964 
   6965   ;
   6966   return 0;
   6967 }
   6968 _ACEOF
   6969 if ac_fn_c_try_link "$LINENO"
   6970 then :
   6971   eval $cacheid=yes
   6972 else $as_nop
   6973   eval $cacheid=no
   6974 fi
   6975 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   6976     conftest$ac_exeext conftest.$ac_ext
   6977 fi
   6978 
   6979 
   6980 		CFLAGS="$xorg_testset_save_CFLAGS"
   6981 
   6982 		eval supported=\$$cacheid
   6983 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   6984 printf "%s\n" "$supported" >&6; }
   6985 		if test "$supported" = "yes" ; then
   6986 			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
   6987 			found="yes"
   6988 		fi
   6989 	fi
   6990 
   6991 
   6992 
   6993 
   6994 
   6995 
   6996 
   6997 
   6998 
   6999 
   7000 
   7001 
   7002 
   7003 
   7004 
   7005 xorg_testset_save_CFLAGS="$CFLAGS"
   7006 
   7007 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   7008 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7009 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   7010 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   7011 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   7012 then :
   7013   printf %s "(cached) " >&6
   7014 else $as_nop
   7015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7016 /* end confdefs.h.  */
   7017 int i;
   7018 _ACEOF
   7019 if ac_fn_c_try_compile "$LINENO"
   7020 then :
   7021   xorg_cv_cc_flag_unknown_warning_option=yes
   7022 else $as_nop
   7023   xorg_cv_cc_flag_unknown_warning_option=no
   7024 fi
   7025 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7026 fi
   7027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   7028 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   7029 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   7030 	CFLAGS="$xorg_testset_save_CFLAGS"
   7031 fi
   7032 
   7033 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   7034 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7035 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7036 	fi
   7037 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7038 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   7039 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   7040 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   7041 then :
   7042   printf %s "(cached) " >&6
   7043 else $as_nop
   7044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7045 /* end confdefs.h.  */
   7046 int i;
   7047 _ACEOF
   7048 if ac_fn_c_try_compile "$LINENO"
   7049 then :
   7050   xorg_cv_cc_flag_unused_command_line_argument=yes
   7051 else $as_nop
   7052   xorg_cv_cc_flag_unused_command_line_argument=no
   7053 fi
   7054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7055 fi
   7056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   7057 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   7058 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   7059 	CFLAGS="$xorg_testset_save_CFLAGS"
   7060 fi
   7061 
   7062 found="no"
   7063 
   7064 	if test $found = "no" ; then
   7065 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7066 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7067 		fi
   7068 
   7069 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   7070 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7071 		fi
   7072 
   7073 		CFLAGS="$CFLAGS -Wredundant-decls"
   7074 
   7075 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
   7076 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
   7077 		cacheid=xorg_cv_cc_flag__Wredundant_decls
   7078 		if eval test \${$cacheid+y}
   7079 then :
   7080   printf %s "(cached) " >&6
   7081 else $as_nop
   7082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7083 /* end confdefs.h.  */
   7084 int i;
   7085 int
   7086 main (void)
   7087 {
   7088 
   7089   ;
   7090   return 0;
   7091 }
   7092 _ACEOF
   7093 if ac_fn_c_try_link "$LINENO"
   7094 then :
   7095   eval $cacheid=yes
   7096 else $as_nop
   7097   eval $cacheid=no
   7098 fi
   7099 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7100     conftest$ac_exeext conftest.$ac_ext
   7101 fi
   7102 
   7103 
   7104 		CFLAGS="$xorg_testset_save_CFLAGS"
   7105 
   7106 		eval supported=\$$cacheid
   7107 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   7108 printf "%s\n" "$supported" >&6; }
   7109 		if test "$supported" = "yes" ; then
   7110 			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
   7111 			found="yes"
   7112 		fi
   7113 	fi
   7114 
   7115 
   7116 
   7117 
   7118 
   7119 
   7120 
   7121 
   7122 
   7123 
   7124 
   7125 
   7126 
   7127 
   7128 
   7129 xorg_testset_save_CFLAGS="$CFLAGS"
   7130 
   7131 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   7132 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7133 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   7134 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   7135 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   7136 then :
   7137   printf %s "(cached) " >&6
   7138 else $as_nop
   7139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7140 /* end confdefs.h.  */
   7141 int i;
   7142 _ACEOF
   7143 if ac_fn_c_try_compile "$LINENO"
   7144 then :
   7145   xorg_cv_cc_flag_unknown_warning_option=yes
   7146 else $as_nop
   7147   xorg_cv_cc_flag_unknown_warning_option=no
   7148 fi
   7149 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7150 fi
   7151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   7152 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   7153 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   7154 	CFLAGS="$xorg_testset_save_CFLAGS"
   7155 fi
   7156 
   7157 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   7158 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7159 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7160 	fi
   7161 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7162 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   7163 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   7164 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   7165 then :
   7166   printf %s "(cached) " >&6
   7167 else $as_nop
   7168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7169 /* end confdefs.h.  */
   7170 int i;
   7171 _ACEOF
   7172 if ac_fn_c_try_compile "$LINENO"
   7173 then :
   7174   xorg_cv_cc_flag_unused_command_line_argument=yes
   7175 else $as_nop
   7176   xorg_cv_cc_flag_unused_command_line_argument=no
   7177 fi
   7178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7179 fi
   7180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   7181 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   7182 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   7183 	CFLAGS="$xorg_testset_save_CFLAGS"
   7184 fi
   7185 
   7186 found="no"
   7187 
   7188 	if test $found = "no" ; then
   7189 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7190 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7191 		fi
   7192 
   7193 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   7194 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7195 		fi
   7196 
   7197 		CFLAGS="$CFLAGS -Wlogical-op"
   7198 
   7199 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
   7200 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
   7201 		cacheid=xorg_cv_cc_flag__Wlogical_op
   7202 		if eval test \${$cacheid+y}
   7203 then :
   7204   printf %s "(cached) " >&6
   7205 else $as_nop
   7206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7207 /* end confdefs.h.  */
   7208 int i;
   7209 int
   7210 main (void)
   7211 {
   7212 
   7213   ;
   7214   return 0;
   7215 }
   7216 _ACEOF
   7217 if ac_fn_c_try_link "$LINENO"
   7218 then :
   7219   eval $cacheid=yes
   7220 else $as_nop
   7221   eval $cacheid=no
   7222 fi
   7223 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7224     conftest$ac_exeext conftest.$ac_ext
   7225 fi
   7226 
   7227 
   7228 		CFLAGS="$xorg_testset_save_CFLAGS"
   7229 
   7230 		eval supported=\$$cacheid
   7231 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   7232 printf "%s\n" "$supported" >&6; }
   7233 		if test "$supported" = "yes" ; then
   7234 			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
   7235 			found="yes"
   7236 		fi
   7237 	fi
   7238 
   7239 
   7240 
   7241 # These are currently disabled because they are noisy.  They will be enabled
   7242 # in the future once the codebase is sufficiently modernized to silence
   7243 # them.  For now, I don't want them to drown out the other warnings.
   7244 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
   7245 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
   7246 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
   7247 
   7248 # Turn some warnings into errors, so we don't accidently get successful builds
   7249 # when there are problems that should be fixed.
   7250 
   7251 if test "x$SELECTIVE_WERROR" = "xyes" ; then
   7252 
   7253 
   7254 
   7255 
   7256 
   7257 
   7258 
   7259 
   7260 
   7261 
   7262 
   7263 
   7264 
   7265 xorg_testset_save_CFLAGS="$CFLAGS"
   7266 
   7267 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   7268 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7269 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   7270 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   7271 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   7272 then :
   7273   printf %s "(cached) " >&6
   7274 else $as_nop
   7275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7276 /* end confdefs.h.  */
   7277 int i;
   7278 _ACEOF
   7279 if ac_fn_c_try_compile "$LINENO"
   7280 then :
   7281   xorg_cv_cc_flag_unknown_warning_option=yes
   7282 else $as_nop
   7283   xorg_cv_cc_flag_unknown_warning_option=no
   7284 fi
   7285 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7286 fi
   7287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   7288 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   7289 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   7290 	CFLAGS="$xorg_testset_save_CFLAGS"
   7291 fi
   7292 
   7293 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   7294 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7295 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7296 	fi
   7297 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7298 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   7299 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   7300 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   7301 then :
   7302   printf %s "(cached) " >&6
   7303 else $as_nop
   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"
   7309 then :
   7310   xorg_cv_cc_flag_unused_command_line_argument=yes
   7311 else $as_nop
   7312   xorg_cv_cc_flag_unused_command_line_argument=no
   7313 fi
   7314 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7315 fi
   7316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   7317 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   7318 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   7319 	CFLAGS="$xorg_testset_save_CFLAGS"
   7320 fi
   7321 
   7322 found="no"
   7323 
   7324 	if test $found = "no" ; then
   7325 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7326 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7327 		fi
   7328 
   7329 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   7330 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7331 		fi
   7332 
   7333 		CFLAGS="$CFLAGS -Werror=implicit"
   7334 
   7335 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
   7336 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
   7337 		cacheid=xorg_cv_cc_flag__Werror_implicit
   7338 		if eval test \${$cacheid+y}
   7339 then :
   7340   printf %s "(cached) " >&6
   7341 else $as_nop
   7342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7343 /* end confdefs.h.  */
   7344 int i;
   7345 int
   7346 main (void)
   7347 {
   7348 
   7349   ;
   7350   return 0;
   7351 }
   7352 _ACEOF
   7353 if ac_fn_c_try_link "$LINENO"
   7354 then :
   7355   eval $cacheid=yes
   7356 else $as_nop
   7357   eval $cacheid=no
   7358 fi
   7359 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7360     conftest$ac_exeext conftest.$ac_ext
   7361 fi
   7362 
   7363 
   7364 		CFLAGS="$xorg_testset_save_CFLAGS"
   7365 
   7366 		eval supported=\$$cacheid
   7367 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   7368 printf "%s\n" "$supported" >&6; }
   7369 		if test "$supported" = "yes" ; then
   7370 			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
   7371 			found="yes"
   7372 		fi
   7373 	fi
   7374 
   7375 	if test $found = "no" ; then
   7376 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7377 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7378 		fi
   7379 
   7380 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   7381 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7382 		fi
   7383 
   7384 		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
   7385 
   7386 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
   7387 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
   7388 		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
   7389 		if eval test \${$cacheid+y}
   7390 then :
   7391   printf %s "(cached) " >&6
   7392 else $as_nop
   7393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7394 /* end confdefs.h.  */
   7395 int i;
   7396 int
   7397 main (void)
   7398 {
   7399 
   7400   ;
   7401   return 0;
   7402 }
   7403 _ACEOF
   7404 if ac_fn_c_try_link "$LINENO"
   7405 then :
   7406   eval $cacheid=yes
   7407 else $as_nop
   7408   eval $cacheid=no
   7409 fi
   7410 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7411     conftest$ac_exeext conftest.$ac_ext
   7412 fi
   7413 
   7414 
   7415 		CFLAGS="$xorg_testset_save_CFLAGS"
   7416 
   7417 		eval supported=\$$cacheid
   7418 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   7419 printf "%s\n" "$supported" >&6; }
   7420 		if test "$supported" = "yes" ; then
   7421 			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
   7422 			found="yes"
   7423 		fi
   7424 	fi
   7425 
   7426 
   7427 
   7428 
   7429 
   7430 
   7431 
   7432 
   7433 
   7434 
   7435 
   7436 
   7437 
   7438 
   7439 
   7440 xorg_testset_save_CFLAGS="$CFLAGS"
   7441 
   7442 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   7443 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7444 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   7445 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   7446 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   7447 then :
   7448   printf %s "(cached) " >&6
   7449 else $as_nop
   7450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7451 /* end confdefs.h.  */
   7452 int i;
   7453 _ACEOF
   7454 if ac_fn_c_try_compile "$LINENO"
   7455 then :
   7456   xorg_cv_cc_flag_unknown_warning_option=yes
   7457 else $as_nop
   7458   xorg_cv_cc_flag_unknown_warning_option=no
   7459 fi
   7460 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7461 fi
   7462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   7463 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   7464 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   7465 	CFLAGS="$xorg_testset_save_CFLAGS"
   7466 fi
   7467 
   7468 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   7469 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7470 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7471 	fi
   7472 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7473 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   7474 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   7475 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   7476 then :
   7477   printf %s "(cached) " >&6
   7478 else $as_nop
   7479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7480 /* end confdefs.h.  */
   7481 int i;
   7482 _ACEOF
   7483 if ac_fn_c_try_compile "$LINENO"
   7484 then :
   7485   xorg_cv_cc_flag_unused_command_line_argument=yes
   7486 else $as_nop
   7487   xorg_cv_cc_flag_unused_command_line_argument=no
   7488 fi
   7489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7490 fi
   7491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   7492 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   7493 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   7494 	CFLAGS="$xorg_testset_save_CFLAGS"
   7495 fi
   7496 
   7497 found="no"
   7498 
   7499 	if test $found = "no" ; then
   7500 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7501 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7502 		fi
   7503 
   7504 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   7505 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7506 		fi
   7507 
   7508 		CFLAGS="$CFLAGS -Werror=nonnull"
   7509 
   7510 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
   7511 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
   7512 		cacheid=xorg_cv_cc_flag__Werror_nonnull
   7513 		if eval test \${$cacheid+y}
   7514 then :
   7515   printf %s "(cached) " >&6
   7516 else $as_nop
   7517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7518 /* end confdefs.h.  */
   7519 int i;
   7520 int
   7521 main (void)
   7522 {
   7523 
   7524   ;
   7525   return 0;
   7526 }
   7527 _ACEOF
   7528 if ac_fn_c_try_link "$LINENO"
   7529 then :
   7530   eval $cacheid=yes
   7531 else $as_nop
   7532   eval $cacheid=no
   7533 fi
   7534 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7535     conftest$ac_exeext conftest.$ac_ext
   7536 fi
   7537 
   7538 
   7539 		CFLAGS="$xorg_testset_save_CFLAGS"
   7540 
   7541 		eval supported=\$$cacheid
   7542 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   7543 printf "%s\n" "$supported" >&6; }
   7544 		if test "$supported" = "yes" ; then
   7545 			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
   7546 			found="yes"
   7547 		fi
   7548 	fi
   7549 
   7550 
   7551 
   7552 
   7553 
   7554 
   7555 
   7556 
   7557 
   7558 
   7559 
   7560 
   7561 
   7562 
   7563 
   7564 xorg_testset_save_CFLAGS="$CFLAGS"
   7565 
   7566 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   7567 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7568 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   7569 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   7570 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   7571 then :
   7572   printf %s "(cached) " >&6
   7573 else $as_nop
   7574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7575 /* end confdefs.h.  */
   7576 int i;
   7577 _ACEOF
   7578 if ac_fn_c_try_compile "$LINENO"
   7579 then :
   7580   xorg_cv_cc_flag_unknown_warning_option=yes
   7581 else $as_nop
   7582   xorg_cv_cc_flag_unknown_warning_option=no
   7583 fi
   7584 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7585 fi
   7586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   7587 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   7588 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   7589 	CFLAGS="$xorg_testset_save_CFLAGS"
   7590 fi
   7591 
   7592 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   7593 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7594 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7595 	fi
   7596 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7597 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   7598 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   7599 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   7600 then :
   7601   printf %s "(cached) " >&6
   7602 else $as_nop
   7603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7604 /* end confdefs.h.  */
   7605 int i;
   7606 _ACEOF
   7607 if ac_fn_c_try_compile "$LINENO"
   7608 then :
   7609   xorg_cv_cc_flag_unused_command_line_argument=yes
   7610 else $as_nop
   7611   xorg_cv_cc_flag_unused_command_line_argument=no
   7612 fi
   7613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7614 fi
   7615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   7616 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   7617 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   7618 	CFLAGS="$xorg_testset_save_CFLAGS"
   7619 fi
   7620 
   7621 found="no"
   7622 
   7623 	if test $found = "no" ; then
   7624 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7625 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7626 		fi
   7627 
   7628 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   7629 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7630 		fi
   7631 
   7632 		CFLAGS="$CFLAGS -Werror=init-self"
   7633 
   7634 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
   7635 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
   7636 		cacheid=xorg_cv_cc_flag__Werror_init_self
   7637 		if eval test \${$cacheid+y}
   7638 then :
   7639   printf %s "(cached) " >&6
   7640 else $as_nop
   7641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7642 /* end confdefs.h.  */
   7643 int i;
   7644 int
   7645 main (void)
   7646 {
   7647 
   7648   ;
   7649   return 0;
   7650 }
   7651 _ACEOF
   7652 if ac_fn_c_try_link "$LINENO"
   7653 then :
   7654   eval $cacheid=yes
   7655 else $as_nop
   7656   eval $cacheid=no
   7657 fi
   7658 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7659     conftest$ac_exeext conftest.$ac_ext
   7660 fi
   7661 
   7662 
   7663 		CFLAGS="$xorg_testset_save_CFLAGS"
   7664 
   7665 		eval supported=\$$cacheid
   7666 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   7667 printf "%s\n" "$supported" >&6; }
   7668 		if test "$supported" = "yes" ; then
   7669 			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
   7670 			found="yes"
   7671 		fi
   7672 	fi
   7673 
   7674 
   7675 
   7676 
   7677 
   7678 
   7679 
   7680 
   7681 
   7682 
   7683 
   7684 
   7685 
   7686 
   7687 
   7688 xorg_testset_save_CFLAGS="$CFLAGS"
   7689 
   7690 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   7691 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7692 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   7693 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   7694 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   7695 then :
   7696   printf %s "(cached) " >&6
   7697 else $as_nop
   7698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7699 /* end confdefs.h.  */
   7700 int i;
   7701 _ACEOF
   7702 if ac_fn_c_try_compile "$LINENO"
   7703 then :
   7704   xorg_cv_cc_flag_unknown_warning_option=yes
   7705 else $as_nop
   7706   xorg_cv_cc_flag_unknown_warning_option=no
   7707 fi
   7708 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7709 fi
   7710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   7711 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   7712 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   7713 	CFLAGS="$xorg_testset_save_CFLAGS"
   7714 fi
   7715 
   7716 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   7717 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7718 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7719 	fi
   7720 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7721 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   7722 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   7723 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   7724 then :
   7725   printf %s "(cached) " >&6
   7726 else $as_nop
   7727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7728 /* end confdefs.h.  */
   7729 int i;
   7730 _ACEOF
   7731 if ac_fn_c_try_compile "$LINENO"
   7732 then :
   7733   xorg_cv_cc_flag_unused_command_line_argument=yes
   7734 else $as_nop
   7735   xorg_cv_cc_flag_unused_command_line_argument=no
   7736 fi
   7737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7738 fi
   7739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   7740 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   7741 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   7742 	CFLAGS="$xorg_testset_save_CFLAGS"
   7743 fi
   7744 
   7745 found="no"
   7746 
   7747 	if test $found = "no" ; then
   7748 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7749 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7750 		fi
   7751 
   7752 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   7753 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7754 		fi
   7755 
   7756 		CFLAGS="$CFLAGS -Werror=main"
   7757 
   7758 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
   7759 printf %s "checking if $CC supports -Werror=main... " >&6; }
   7760 		cacheid=xorg_cv_cc_flag__Werror_main
   7761 		if eval test \${$cacheid+y}
   7762 then :
   7763   printf %s "(cached) " >&6
   7764 else $as_nop
   7765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7766 /* end confdefs.h.  */
   7767 int i;
   7768 int
   7769 main (void)
   7770 {
   7771 
   7772   ;
   7773   return 0;
   7774 }
   7775 _ACEOF
   7776 if ac_fn_c_try_link "$LINENO"
   7777 then :
   7778   eval $cacheid=yes
   7779 else $as_nop
   7780   eval $cacheid=no
   7781 fi
   7782 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7783     conftest$ac_exeext conftest.$ac_ext
   7784 fi
   7785 
   7786 
   7787 		CFLAGS="$xorg_testset_save_CFLAGS"
   7788 
   7789 		eval supported=\$$cacheid
   7790 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   7791 printf "%s\n" "$supported" >&6; }
   7792 		if test "$supported" = "yes" ; then
   7793 			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
   7794 			found="yes"
   7795 		fi
   7796 	fi
   7797 
   7798 
   7799 
   7800 
   7801 
   7802 
   7803 
   7804 
   7805 
   7806 
   7807 
   7808 
   7809 
   7810 
   7811 
   7812 xorg_testset_save_CFLAGS="$CFLAGS"
   7813 
   7814 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   7815 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7816 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   7817 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   7818 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   7819 then :
   7820   printf %s "(cached) " >&6
   7821 else $as_nop
   7822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7823 /* end confdefs.h.  */
   7824 int i;
   7825 _ACEOF
   7826 if ac_fn_c_try_compile "$LINENO"
   7827 then :
   7828   xorg_cv_cc_flag_unknown_warning_option=yes
   7829 else $as_nop
   7830   xorg_cv_cc_flag_unknown_warning_option=no
   7831 fi
   7832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7833 fi
   7834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   7835 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   7836 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   7837 	CFLAGS="$xorg_testset_save_CFLAGS"
   7838 fi
   7839 
   7840 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   7841 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7842 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7843 	fi
   7844 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7845 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   7846 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   7847 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   7848 then :
   7849   printf %s "(cached) " >&6
   7850 else $as_nop
   7851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7852 /* end confdefs.h.  */
   7853 int i;
   7854 _ACEOF
   7855 if ac_fn_c_try_compile "$LINENO"
   7856 then :
   7857   xorg_cv_cc_flag_unused_command_line_argument=yes
   7858 else $as_nop
   7859   xorg_cv_cc_flag_unused_command_line_argument=no
   7860 fi
   7861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7862 fi
   7863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   7864 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   7865 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   7866 	CFLAGS="$xorg_testset_save_CFLAGS"
   7867 fi
   7868 
   7869 found="no"
   7870 
   7871 	if test $found = "no" ; then
   7872 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7873 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7874 		fi
   7875 
   7876 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   7877 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7878 		fi
   7879 
   7880 		CFLAGS="$CFLAGS -Werror=missing-braces"
   7881 
   7882 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
   7883 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
   7884 		cacheid=xorg_cv_cc_flag__Werror_missing_braces
   7885 		if eval test \${$cacheid+y}
   7886 then :
   7887   printf %s "(cached) " >&6
   7888 else $as_nop
   7889   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7890 /* end confdefs.h.  */
   7891 int i;
   7892 int
   7893 main (void)
   7894 {
   7895 
   7896   ;
   7897   return 0;
   7898 }
   7899 _ACEOF
   7900 if ac_fn_c_try_link "$LINENO"
   7901 then :
   7902   eval $cacheid=yes
   7903 else $as_nop
   7904   eval $cacheid=no
   7905 fi
   7906 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7907     conftest$ac_exeext conftest.$ac_ext
   7908 fi
   7909 
   7910 
   7911 		CFLAGS="$xorg_testset_save_CFLAGS"
   7912 
   7913 		eval supported=\$$cacheid
   7914 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   7915 printf "%s\n" "$supported" >&6; }
   7916 		if test "$supported" = "yes" ; then
   7917 			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
   7918 			found="yes"
   7919 		fi
   7920 	fi
   7921 
   7922 
   7923 
   7924 
   7925 
   7926 
   7927 
   7928 
   7929 
   7930 
   7931 
   7932 
   7933 
   7934 
   7935 
   7936 xorg_testset_save_CFLAGS="$CFLAGS"
   7937 
   7938 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   7939 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7940 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   7941 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   7942 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   7943 then :
   7944   printf %s "(cached) " >&6
   7945 else $as_nop
   7946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7947 /* end confdefs.h.  */
   7948 int i;
   7949 _ACEOF
   7950 if ac_fn_c_try_compile "$LINENO"
   7951 then :
   7952   xorg_cv_cc_flag_unknown_warning_option=yes
   7953 else $as_nop
   7954   xorg_cv_cc_flag_unknown_warning_option=no
   7955 fi
   7956 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7957 fi
   7958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   7959 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   7960 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   7961 	CFLAGS="$xorg_testset_save_CFLAGS"
   7962 fi
   7963 
   7964 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   7965 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7966 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7967 	fi
   7968 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   7969 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   7970 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   7971 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   7972 then :
   7973   printf %s "(cached) " >&6
   7974 else $as_nop
   7975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7976 /* end confdefs.h.  */
   7977 int i;
   7978 _ACEOF
   7979 if ac_fn_c_try_compile "$LINENO"
   7980 then :
   7981   xorg_cv_cc_flag_unused_command_line_argument=yes
   7982 else $as_nop
   7983   xorg_cv_cc_flag_unused_command_line_argument=no
   7984 fi
   7985 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   7986 fi
   7987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   7988 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   7989 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   7990 	CFLAGS="$xorg_testset_save_CFLAGS"
   7991 fi
   7992 
   7993 found="no"
   7994 
   7995 	if test $found = "no" ; then
   7996 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   7997 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   7998 		fi
   7999 
   8000 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   8001 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8002 		fi
   8003 
   8004 		CFLAGS="$CFLAGS -Werror=sequence-point"
   8005 
   8006 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
   8007 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
   8008 		cacheid=xorg_cv_cc_flag__Werror_sequence_point
   8009 		if eval test \${$cacheid+y}
   8010 then :
   8011   printf %s "(cached) " >&6
   8012 else $as_nop
   8013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8014 /* end confdefs.h.  */
   8015 int i;
   8016 int
   8017 main (void)
   8018 {
   8019 
   8020   ;
   8021   return 0;
   8022 }
   8023 _ACEOF
   8024 if ac_fn_c_try_link "$LINENO"
   8025 then :
   8026   eval $cacheid=yes
   8027 else $as_nop
   8028   eval $cacheid=no
   8029 fi
   8030 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   8031     conftest$ac_exeext conftest.$ac_ext
   8032 fi
   8033 
   8034 
   8035 		CFLAGS="$xorg_testset_save_CFLAGS"
   8036 
   8037 		eval supported=\$$cacheid
   8038 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   8039 printf "%s\n" "$supported" >&6; }
   8040 		if test "$supported" = "yes" ; then
   8041 			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
   8042 			found="yes"
   8043 		fi
   8044 	fi
   8045 
   8046 
   8047 
   8048 
   8049 
   8050 
   8051 
   8052 
   8053 
   8054 
   8055 
   8056 
   8057 
   8058 
   8059 
   8060 xorg_testset_save_CFLAGS="$CFLAGS"
   8061 
   8062 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   8063 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8064 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   8065 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   8066 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   8067 then :
   8068   printf %s "(cached) " >&6
   8069 else $as_nop
   8070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8071 /* end confdefs.h.  */
   8072 int i;
   8073 _ACEOF
   8074 if ac_fn_c_try_compile "$LINENO"
   8075 then :
   8076   xorg_cv_cc_flag_unknown_warning_option=yes
   8077 else $as_nop
   8078   xorg_cv_cc_flag_unknown_warning_option=no
   8079 fi
   8080 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8081 fi
   8082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   8083 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   8084 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   8085 	CFLAGS="$xorg_testset_save_CFLAGS"
   8086 fi
   8087 
   8088 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   8089 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8090 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8091 	fi
   8092 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8093 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   8094 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   8095 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   8096 then :
   8097   printf %s "(cached) " >&6
   8098 else $as_nop
   8099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8100 /* end confdefs.h.  */
   8101 int i;
   8102 _ACEOF
   8103 if ac_fn_c_try_compile "$LINENO"
   8104 then :
   8105   xorg_cv_cc_flag_unused_command_line_argument=yes
   8106 else $as_nop
   8107   xorg_cv_cc_flag_unused_command_line_argument=no
   8108 fi
   8109 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8110 fi
   8111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   8112 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   8113 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   8114 	CFLAGS="$xorg_testset_save_CFLAGS"
   8115 fi
   8116 
   8117 found="no"
   8118 
   8119 	if test $found = "no" ; then
   8120 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8121 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8122 		fi
   8123 
   8124 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   8125 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8126 		fi
   8127 
   8128 		CFLAGS="$CFLAGS -Werror=return-type"
   8129 
   8130 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
   8131 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
   8132 		cacheid=xorg_cv_cc_flag__Werror_return_type
   8133 		if eval test \${$cacheid+y}
   8134 then :
   8135   printf %s "(cached) " >&6
   8136 else $as_nop
   8137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8138 /* end confdefs.h.  */
   8139 int i;
   8140 int
   8141 main (void)
   8142 {
   8143 
   8144   ;
   8145   return 0;
   8146 }
   8147 _ACEOF
   8148 if ac_fn_c_try_link "$LINENO"
   8149 then :
   8150   eval $cacheid=yes
   8151 else $as_nop
   8152   eval $cacheid=no
   8153 fi
   8154 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   8155     conftest$ac_exeext conftest.$ac_ext
   8156 fi
   8157 
   8158 
   8159 		CFLAGS="$xorg_testset_save_CFLAGS"
   8160 
   8161 		eval supported=\$$cacheid
   8162 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   8163 printf "%s\n" "$supported" >&6; }
   8164 		if test "$supported" = "yes" ; then
   8165 			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
   8166 			found="yes"
   8167 		fi
   8168 	fi
   8169 
   8170 	if test $found = "no" ; then
   8171 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8172 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8173 		fi
   8174 
   8175 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   8176 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8177 		fi
   8178 
   8179 		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
   8180 
   8181 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
   8182 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
   8183 		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
   8184 		if eval test \${$cacheid+y}
   8185 then :
   8186   printf %s "(cached) " >&6
   8187 else $as_nop
   8188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8189 /* end confdefs.h.  */
   8190 int i;
   8191 int
   8192 main (void)
   8193 {
   8194 
   8195   ;
   8196   return 0;
   8197 }
   8198 _ACEOF
   8199 if ac_fn_c_try_link "$LINENO"
   8200 then :
   8201   eval $cacheid=yes
   8202 else $as_nop
   8203   eval $cacheid=no
   8204 fi
   8205 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   8206     conftest$ac_exeext conftest.$ac_ext
   8207 fi
   8208 
   8209 
   8210 		CFLAGS="$xorg_testset_save_CFLAGS"
   8211 
   8212 		eval supported=\$$cacheid
   8213 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   8214 printf "%s\n" "$supported" >&6; }
   8215 		if test "$supported" = "yes" ; then
   8216 			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
   8217 			found="yes"
   8218 		fi
   8219 	fi
   8220 
   8221 
   8222 
   8223 
   8224 
   8225 
   8226 
   8227 
   8228 
   8229 
   8230 
   8231 
   8232 
   8233 
   8234 
   8235 xorg_testset_save_CFLAGS="$CFLAGS"
   8236 
   8237 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   8238 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8239 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   8240 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   8241 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   8242 then :
   8243   printf %s "(cached) " >&6
   8244 else $as_nop
   8245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8246 /* end confdefs.h.  */
   8247 int i;
   8248 _ACEOF
   8249 if ac_fn_c_try_compile "$LINENO"
   8250 then :
   8251   xorg_cv_cc_flag_unknown_warning_option=yes
   8252 else $as_nop
   8253   xorg_cv_cc_flag_unknown_warning_option=no
   8254 fi
   8255 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8256 fi
   8257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   8258 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   8259 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   8260 	CFLAGS="$xorg_testset_save_CFLAGS"
   8261 fi
   8262 
   8263 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   8264 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8265 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8266 	fi
   8267 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8268 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   8269 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   8270 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   8271 then :
   8272   printf %s "(cached) " >&6
   8273 else $as_nop
   8274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8275 /* end confdefs.h.  */
   8276 int i;
   8277 _ACEOF
   8278 if ac_fn_c_try_compile "$LINENO"
   8279 then :
   8280   xorg_cv_cc_flag_unused_command_line_argument=yes
   8281 else $as_nop
   8282   xorg_cv_cc_flag_unused_command_line_argument=no
   8283 fi
   8284 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8285 fi
   8286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   8287 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   8288 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   8289 	CFLAGS="$xorg_testset_save_CFLAGS"
   8290 fi
   8291 
   8292 found="no"
   8293 
   8294 	if test $found = "no" ; then
   8295 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8296 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8297 		fi
   8298 
   8299 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   8300 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8301 		fi
   8302 
   8303 		CFLAGS="$CFLAGS -Werror=trigraphs"
   8304 
   8305 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
   8306 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
   8307 		cacheid=xorg_cv_cc_flag__Werror_trigraphs
   8308 		if eval test \${$cacheid+y}
   8309 then :
   8310   printf %s "(cached) " >&6
   8311 else $as_nop
   8312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8313 /* end confdefs.h.  */
   8314 int i;
   8315 int
   8316 main (void)
   8317 {
   8318 
   8319   ;
   8320   return 0;
   8321 }
   8322 _ACEOF
   8323 if ac_fn_c_try_link "$LINENO"
   8324 then :
   8325   eval $cacheid=yes
   8326 else $as_nop
   8327   eval $cacheid=no
   8328 fi
   8329 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   8330     conftest$ac_exeext conftest.$ac_ext
   8331 fi
   8332 
   8333 
   8334 		CFLAGS="$xorg_testset_save_CFLAGS"
   8335 
   8336 		eval supported=\$$cacheid
   8337 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   8338 printf "%s\n" "$supported" >&6; }
   8339 		if test "$supported" = "yes" ; then
   8340 			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
   8341 			found="yes"
   8342 		fi
   8343 	fi
   8344 
   8345 
   8346 
   8347 
   8348 
   8349 
   8350 
   8351 
   8352 
   8353 
   8354 
   8355 
   8356 
   8357 
   8358 
   8359 xorg_testset_save_CFLAGS="$CFLAGS"
   8360 
   8361 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   8362 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8363 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   8364 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   8365 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   8366 then :
   8367   printf %s "(cached) " >&6
   8368 else $as_nop
   8369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8370 /* end confdefs.h.  */
   8371 int i;
   8372 _ACEOF
   8373 if ac_fn_c_try_compile "$LINENO"
   8374 then :
   8375   xorg_cv_cc_flag_unknown_warning_option=yes
   8376 else $as_nop
   8377   xorg_cv_cc_flag_unknown_warning_option=no
   8378 fi
   8379 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8380 fi
   8381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   8382 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   8383 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   8384 	CFLAGS="$xorg_testset_save_CFLAGS"
   8385 fi
   8386 
   8387 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   8388 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8389 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8390 	fi
   8391 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8392 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   8393 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   8394 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   8395 then :
   8396   printf %s "(cached) " >&6
   8397 else $as_nop
   8398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8399 /* end confdefs.h.  */
   8400 int i;
   8401 _ACEOF
   8402 if ac_fn_c_try_compile "$LINENO"
   8403 then :
   8404   xorg_cv_cc_flag_unused_command_line_argument=yes
   8405 else $as_nop
   8406   xorg_cv_cc_flag_unused_command_line_argument=no
   8407 fi
   8408 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8409 fi
   8410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   8411 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   8412 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   8413 	CFLAGS="$xorg_testset_save_CFLAGS"
   8414 fi
   8415 
   8416 found="no"
   8417 
   8418 	if test $found = "no" ; then
   8419 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8420 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8421 		fi
   8422 
   8423 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   8424 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8425 		fi
   8426 
   8427 		CFLAGS="$CFLAGS -Werror=array-bounds"
   8428 
   8429 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
   8430 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
   8431 		cacheid=xorg_cv_cc_flag__Werror_array_bounds
   8432 		if eval test \${$cacheid+y}
   8433 then :
   8434   printf %s "(cached) " >&6
   8435 else $as_nop
   8436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8437 /* end confdefs.h.  */
   8438 int i;
   8439 int
   8440 main (void)
   8441 {
   8442 
   8443   ;
   8444   return 0;
   8445 }
   8446 _ACEOF
   8447 if ac_fn_c_try_link "$LINENO"
   8448 then :
   8449   eval $cacheid=yes
   8450 else $as_nop
   8451   eval $cacheid=no
   8452 fi
   8453 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   8454     conftest$ac_exeext conftest.$ac_ext
   8455 fi
   8456 
   8457 
   8458 		CFLAGS="$xorg_testset_save_CFLAGS"
   8459 
   8460 		eval supported=\$$cacheid
   8461 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   8462 printf "%s\n" "$supported" >&6; }
   8463 		if test "$supported" = "yes" ; then
   8464 			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
   8465 			found="yes"
   8466 		fi
   8467 	fi
   8468 
   8469 
   8470 
   8471 
   8472 
   8473 
   8474 
   8475 
   8476 
   8477 
   8478 
   8479 
   8480 
   8481 
   8482 
   8483 xorg_testset_save_CFLAGS="$CFLAGS"
   8484 
   8485 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   8486 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8487 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   8488 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   8489 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   8490 then :
   8491   printf %s "(cached) " >&6
   8492 else $as_nop
   8493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8494 /* end confdefs.h.  */
   8495 int i;
   8496 _ACEOF
   8497 if ac_fn_c_try_compile "$LINENO"
   8498 then :
   8499   xorg_cv_cc_flag_unknown_warning_option=yes
   8500 else $as_nop
   8501   xorg_cv_cc_flag_unknown_warning_option=no
   8502 fi
   8503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8504 fi
   8505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   8506 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   8507 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   8508 	CFLAGS="$xorg_testset_save_CFLAGS"
   8509 fi
   8510 
   8511 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   8512 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8513 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8514 	fi
   8515 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8516 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   8517 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   8518 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   8519 then :
   8520   printf %s "(cached) " >&6
   8521 else $as_nop
   8522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8523 /* end confdefs.h.  */
   8524 int i;
   8525 _ACEOF
   8526 if ac_fn_c_try_compile "$LINENO"
   8527 then :
   8528   xorg_cv_cc_flag_unused_command_line_argument=yes
   8529 else $as_nop
   8530   xorg_cv_cc_flag_unused_command_line_argument=no
   8531 fi
   8532 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8533 fi
   8534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   8535 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   8536 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   8537 	CFLAGS="$xorg_testset_save_CFLAGS"
   8538 fi
   8539 
   8540 found="no"
   8541 
   8542 	if test $found = "no" ; then
   8543 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8544 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8545 		fi
   8546 
   8547 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   8548 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8549 		fi
   8550 
   8551 		CFLAGS="$CFLAGS -Werror=write-strings"
   8552 
   8553 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
   8554 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
   8555 		cacheid=xorg_cv_cc_flag__Werror_write_strings
   8556 		if eval test \${$cacheid+y}
   8557 then :
   8558   printf %s "(cached) " >&6
   8559 else $as_nop
   8560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8561 /* end confdefs.h.  */
   8562 int i;
   8563 int
   8564 main (void)
   8565 {
   8566 
   8567   ;
   8568   return 0;
   8569 }
   8570 _ACEOF
   8571 if ac_fn_c_try_link "$LINENO"
   8572 then :
   8573   eval $cacheid=yes
   8574 else $as_nop
   8575   eval $cacheid=no
   8576 fi
   8577 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   8578     conftest$ac_exeext conftest.$ac_ext
   8579 fi
   8580 
   8581 
   8582 		CFLAGS="$xorg_testset_save_CFLAGS"
   8583 
   8584 		eval supported=\$$cacheid
   8585 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   8586 printf "%s\n" "$supported" >&6; }
   8587 		if test "$supported" = "yes" ; then
   8588 			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
   8589 			found="yes"
   8590 		fi
   8591 	fi
   8592 
   8593 
   8594 
   8595 
   8596 
   8597 
   8598 
   8599 
   8600 
   8601 
   8602 
   8603 
   8604 
   8605 
   8606 
   8607 xorg_testset_save_CFLAGS="$CFLAGS"
   8608 
   8609 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   8610 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8611 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   8612 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   8613 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   8614 then :
   8615   printf %s "(cached) " >&6
   8616 else $as_nop
   8617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8618 /* end confdefs.h.  */
   8619 int i;
   8620 _ACEOF
   8621 if ac_fn_c_try_compile "$LINENO"
   8622 then :
   8623   xorg_cv_cc_flag_unknown_warning_option=yes
   8624 else $as_nop
   8625   xorg_cv_cc_flag_unknown_warning_option=no
   8626 fi
   8627 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8628 fi
   8629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   8630 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   8631 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   8632 	CFLAGS="$xorg_testset_save_CFLAGS"
   8633 fi
   8634 
   8635 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   8636 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8637 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8638 	fi
   8639 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8640 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   8641 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   8642 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   8643 then :
   8644   printf %s "(cached) " >&6
   8645 else $as_nop
   8646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8647 /* end confdefs.h.  */
   8648 int i;
   8649 _ACEOF
   8650 if ac_fn_c_try_compile "$LINENO"
   8651 then :
   8652   xorg_cv_cc_flag_unused_command_line_argument=yes
   8653 else $as_nop
   8654   xorg_cv_cc_flag_unused_command_line_argument=no
   8655 fi
   8656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8657 fi
   8658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   8659 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   8660 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   8661 	CFLAGS="$xorg_testset_save_CFLAGS"
   8662 fi
   8663 
   8664 found="no"
   8665 
   8666 	if test $found = "no" ; then
   8667 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8668 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8669 		fi
   8670 
   8671 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   8672 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8673 		fi
   8674 
   8675 		CFLAGS="$CFLAGS -Werror=address"
   8676 
   8677 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
   8678 printf %s "checking if $CC supports -Werror=address... " >&6; }
   8679 		cacheid=xorg_cv_cc_flag__Werror_address
   8680 		if eval test \${$cacheid+y}
   8681 then :
   8682   printf %s "(cached) " >&6
   8683 else $as_nop
   8684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8685 /* end confdefs.h.  */
   8686 int i;
   8687 int
   8688 main (void)
   8689 {
   8690 
   8691   ;
   8692   return 0;
   8693 }
   8694 _ACEOF
   8695 if ac_fn_c_try_link "$LINENO"
   8696 then :
   8697   eval $cacheid=yes
   8698 else $as_nop
   8699   eval $cacheid=no
   8700 fi
   8701 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   8702     conftest$ac_exeext conftest.$ac_ext
   8703 fi
   8704 
   8705 
   8706 		CFLAGS="$xorg_testset_save_CFLAGS"
   8707 
   8708 		eval supported=\$$cacheid
   8709 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   8710 printf "%s\n" "$supported" >&6; }
   8711 		if test "$supported" = "yes" ; then
   8712 			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
   8713 			found="yes"
   8714 		fi
   8715 	fi
   8716 
   8717 
   8718 
   8719 
   8720 
   8721 
   8722 
   8723 
   8724 
   8725 
   8726 
   8727 
   8728 
   8729 
   8730 
   8731 xorg_testset_save_CFLAGS="$CFLAGS"
   8732 
   8733 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   8734 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8735 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   8736 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   8737 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   8738 then :
   8739   printf %s "(cached) " >&6
   8740 else $as_nop
   8741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8742 /* end confdefs.h.  */
   8743 int i;
   8744 _ACEOF
   8745 if ac_fn_c_try_compile "$LINENO"
   8746 then :
   8747   xorg_cv_cc_flag_unknown_warning_option=yes
   8748 else $as_nop
   8749   xorg_cv_cc_flag_unknown_warning_option=no
   8750 fi
   8751 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8752 fi
   8753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   8754 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   8755 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   8756 	CFLAGS="$xorg_testset_save_CFLAGS"
   8757 fi
   8758 
   8759 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   8760 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8761 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8762 	fi
   8763 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8764 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   8765 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   8766 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   8767 then :
   8768   printf %s "(cached) " >&6
   8769 else $as_nop
   8770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8771 /* end confdefs.h.  */
   8772 int i;
   8773 _ACEOF
   8774 if ac_fn_c_try_compile "$LINENO"
   8775 then :
   8776   xorg_cv_cc_flag_unused_command_line_argument=yes
   8777 else $as_nop
   8778   xorg_cv_cc_flag_unused_command_line_argument=no
   8779 fi
   8780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8781 fi
   8782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   8783 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   8784 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   8785 	CFLAGS="$xorg_testset_save_CFLAGS"
   8786 fi
   8787 
   8788 found="no"
   8789 
   8790 	if test $found = "no" ; then
   8791 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8792 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8793 		fi
   8794 
   8795 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   8796 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8797 		fi
   8798 
   8799 		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
   8800 
   8801 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
   8802 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
   8803 		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
   8804 		if eval test \${$cacheid+y}
   8805 then :
   8806   printf %s "(cached) " >&6
   8807 else $as_nop
   8808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8809 /* end confdefs.h.  */
   8810 int i;
   8811 int
   8812 main (void)
   8813 {
   8814 
   8815   ;
   8816   return 0;
   8817 }
   8818 _ACEOF
   8819 if ac_fn_c_try_link "$LINENO"
   8820 then :
   8821   eval $cacheid=yes
   8822 else $as_nop
   8823   eval $cacheid=no
   8824 fi
   8825 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   8826     conftest$ac_exeext conftest.$ac_ext
   8827 fi
   8828 
   8829 
   8830 		CFLAGS="$xorg_testset_save_CFLAGS"
   8831 
   8832 		eval supported=\$$cacheid
   8833 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   8834 printf "%s\n" "$supported" >&6; }
   8835 		if test "$supported" = "yes" ; then
   8836 			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
   8837 			found="yes"
   8838 		fi
   8839 	fi
   8840 
   8841 	if test $found = "no" ; then
   8842 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8843 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8844 		fi
   8845 
   8846 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   8847 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8848 		fi
   8849 
   8850 		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
   8851 
   8852 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
   8853 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
   8854 		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
   8855 		if eval test \${$cacheid+y}
   8856 then :
   8857   printf %s "(cached) " >&6
   8858 else $as_nop
   8859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8860 /* end confdefs.h.  */
   8861 int i;
   8862 int
   8863 main (void)
   8864 {
   8865 
   8866   ;
   8867   return 0;
   8868 }
   8869 _ACEOF
   8870 if ac_fn_c_try_link "$LINENO"
   8871 then :
   8872   eval $cacheid=yes
   8873 else $as_nop
   8874   eval $cacheid=no
   8875 fi
   8876 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   8877     conftest$ac_exeext conftest.$ac_ext
   8878 fi
   8879 
   8880 
   8881 		CFLAGS="$xorg_testset_save_CFLAGS"
   8882 
   8883 		eval supported=\$$cacheid
   8884 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   8885 printf "%s\n" "$supported" >&6; }
   8886 		if test "$supported" = "yes" ; then
   8887 			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
   8888 			found="yes"
   8889 		fi
   8890 	fi
   8891 
   8892 
   8893 
   8894 
   8895 
   8896 
   8897 
   8898 
   8899 
   8900 
   8901 
   8902 
   8903 
   8904 
   8905 
   8906 xorg_testset_save_CFLAGS="$CFLAGS"
   8907 
   8908 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   8909 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8910 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   8911 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   8912 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   8913 then :
   8914   printf %s "(cached) " >&6
   8915 else $as_nop
   8916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8917 /* end confdefs.h.  */
   8918 int i;
   8919 _ACEOF
   8920 if ac_fn_c_try_compile "$LINENO"
   8921 then :
   8922   xorg_cv_cc_flag_unknown_warning_option=yes
   8923 else $as_nop
   8924   xorg_cv_cc_flag_unknown_warning_option=no
   8925 fi
   8926 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8927 fi
   8928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   8929 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   8930 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   8931 	CFLAGS="$xorg_testset_save_CFLAGS"
   8932 fi
   8933 
   8934 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   8935 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8936 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8937 	fi
   8938 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8939 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   8940 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   8941 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   8942 then :
   8943   printf %s "(cached) " >&6
   8944 else $as_nop
   8945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8946 /* end confdefs.h.  */
   8947 int i;
   8948 _ACEOF
   8949 if ac_fn_c_try_compile "$LINENO"
   8950 then :
   8951   xorg_cv_cc_flag_unused_command_line_argument=yes
   8952 else $as_nop
   8953   xorg_cv_cc_flag_unused_command_line_argument=no
   8954 fi
   8955 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   8956 fi
   8957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   8958 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   8959 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   8960 	CFLAGS="$xorg_testset_save_CFLAGS"
   8961 fi
   8962 
   8963 found="no"
   8964 
   8965 	if test $found = "no" ; then
   8966 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   8967 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   8968 		fi
   8969 
   8970 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   8971 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   8972 		fi
   8973 
   8974 		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
   8975 
   8976 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
   8977 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
   8978 		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
   8979 		if eval test \${$cacheid+y}
   8980 then :
   8981   printf %s "(cached) " >&6
   8982 else $as_nop
   8983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8984 /* end confdefs.h.  */
   8985 int i;
   8986 int
   8987 main (void)
   8988 {
   8989 
   8990   ;
   8991   return 0;
   8992 }
   8993 _ACEOF
   8994 if ac_fn_c_try_link "$LINENO"
   8995 then :
   8996   eval $cacheid=yes
   8997 else $as_nop
   8998   eval $cacheid=no
   8999 fi
   9000 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   9001     conftest$ac_exeext conftest.$ac_ext
   9002 fi
   9003 
   9004 
   9005 		CFLAGS="$xorg_testset_save_CFLAGS"
   9006 
   9007 		eval supported=\$$cacheid
   9008 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   9009 printf "%s\n" "$supported" >&6; }
   9010 		if test "$supported" = "yes" ; then
   9011 			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
   9012 			found="yes"
   9013 		fi
   9014 	fi
   9015 
   9016  # Also -errwarn=E_BAD_PTR_INT_COMBINATION
   9017 else
   9018 { printf "%s\n" "$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
   9019 printf "%s\n" "$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;}
   9020 
   9021 
   9022 
   9023 
   9024 
   9025 
   9026 
   9027 
   9028 
   9029 
   9030 
   9031 
   9032 
   9033 xorg_testset_save_CFLAGS="$CFLAGS"
   9034 
   9035 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   9036 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9037 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   9038 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   9039 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   9040 then :
   9041   printf %s "(cached) " >&6
   9042 else $as_nop
   9043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9044 /* end confdefs.h.  */
   9045 int i;
   9046 _ACEOF
   9047 if ac_fn_c_try_compile "$LINENO"
   9048 then :
   9049   xorg_cv_cc_flag_unknown_warning_option=yes
   9050 else $as_nop
   9051   xorg_cv_cc_flag_unknown_warning_option=no
   9052 fi
   9053 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   9054 fi
   9055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   9056 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   9057 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   9058 	CFLAGS="$xorg_testset_save_CFLAGS"
   9059 fi
   9060 
   9061 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   9062 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9063 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9064 	fi
   9065 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9066 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   9067 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   9068 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   9069 then :
   9070   printf %s "(cached) " >&6
   9071 else $as_nop
   9072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9073 /* end confdefs.h.  */
   9074 int i;
   9075 _ACEOF
   9076 if ac_fn_c_try_compile "$LINENO"
   9077 then :
   9078   xorg_cv_cc_flag_unused_command_line_argument=yes
   9079 else $as_nop
   9080   xorg_cv_cc_flag_unused_command_line_argument=no
   9081 fi
   9082 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   9083 fi
   9084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   9085 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   9086 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   9087 	CFLAGS="$xorg_testset_save_CFLAGS"
   9088 fi
   9089 
   9090 found="no"
   9091 
   9092 	if test $found = "no" ; then
   9093 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9094 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9095 		fi
   9096 
   9097 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   9098 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9099 		fi
   9100 
   9101 		CFLAGS="$CFLAGS -Wimplicit"
   9102 
   9103 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
   9104 printf %s "checking if $CC supports -Wimplicit... " >&6; }
   9105 		cacheid=xorg_cv_cc_flag__Wimplicit
   9106 		if eval test \${$cacheid+y}
   9107 then :
   9108   printf %s "(cached) " >&6
   9109 else $as_nop
   9110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9111 /* end confdefs.h.  */
   9112 int i;
   9113 int
   9114 main (void)
   9115 {
   9116 
   9117   ;
   9118   return 0;
   9119 }
   9120 _ACEOF
   9121 if ac_fn_c_try_link "$LINENO"
   9122 then :
   9123   eval $cacheid=yes
   9124 else $as_nop
   9125   eval $cacheid=no
   9126 fi
   9127 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   9128     conftest$ac_exeext conftest.$ac_ext
   9129 fi
   9130 
   9131 
   9132 		CFLAGS="$xorg_testset_save_CFLAGS"
   9133 
   9134 		eval supported=\$$cacheid
   9135 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   9136 printf "%s\n" "$supported" >&6; }
   9137 		if test "$supported" = "yes" ; then
   9138 			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
   9139 			found="yes"
   9140 		fi
   9141 	fi
   9142 
   9143 
   9144 
   9145 
   9146 
   9147 
   9148 
   9149 
   9150 
   9151 
   9152 
   9153 
   9154 
   9155 
   9156 
   9157 xorg_testset_save_CFLAGS="$CFLAGS"
   9158 
   9159 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   9160 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9161 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   9162 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   9163 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   9164 then :
   9165   printf %s "(cached) " >&6
   9166 else $as_nop
   9167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9168 /* end confdefs.h.  */
   9169 int i;
   9170 _ACEOF
   9171 if ac_fn_c_try_compile "$LINENO"
   9172 then :
   9173   xorg_cv_cc_flag_unknown_warning_option=yes
   9174 else $as_nop
   9175   xorg_cv_cc_flag_unknown_warning_option=no
   9176 fi
   9177 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   9178 fi
   9179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   9180 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   9181 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   9182 	CFLAGS="$xorg_testset_save_CFLAGS"
   9183 fi
   9184 
   9185 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   9186 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9187 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9188 	fi
   9189 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9190 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   9191 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   9192 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   9193 then :
   9194   printf %s "(cached) " >&6
   9195 else $as_nop
   9196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9197 /* end confdefs.h.  */
   9198 int i;
   9199 _ACEOF
   9200 if ac_fn_c_try_compile "$LINENO"
   9201 then :
   9202   xorg_cv_cc_flag_unused_command_line_argument=yes
   9203 else $as_nop
   9204   xorg_cv_cc_flag_unused_command_line_argument=no
   9205 fi
   9206 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   9207 fi
   9208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   9209 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   9210 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   9211 	CFLAGS="$xorg_testset_save_CFLAGS"
   9212 fi
   9213 
   9214 found="no"
   9215 
   9216 	if test $found = "no" ; then
   9217 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9218 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9219 		fi
   9220 
   9221 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   9222 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9223 		fi
   9224 
   9225 		CFLAGS="$CFLAGS -Wnonnull"
   9226 
   9227 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
   9228 printf %s "checking if $CC supports -Wnonnull... " >&6; }
   9229 		cacheid=xorg_cv_cc_flag__Wnonnull
   9230 		if eval test \${$cacheid+y}
   9231 then :
   9232   printf %s "(cached) " >&6
   9233 else $as_nop
   9234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9235 /* end confdefs.h.  */
   9236 int i;
   9237 int
   9238 main (void)
   9239 {
   9240 
   9241   ;
   9242   return 0;
   9243 }
   9244 _ACEOF
   9245 if ac_fn_c_try_link "$LINENO"
   9246 then :
   9247   eval $cacheid=yes
   9248 else $as_nop
   9249   eval $cacheid=no
   9250 fi
   9251 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   9252     conftest$ac_exeext conftest.$ac_ext
   9253 fi
   9254 
   9255 
   9256 		CFLAGS="$xorg_testset_save_CFLAGS"
   9257 
   9258 		eval supported=\$$cacheid
   9259 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   9260 printf "%s\n" "$supported" >&6; }
   9261 		if test "$supported" = "yes" ; then
   9262 			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
   9263 			found="yes"
   9264 		fi
   9265 	fi
   9266 
   9267 
   9268 
   9269 
   9270 
   9271 
   9272 
   9273 
   9274 
   9275 
   9276 
   9277 
   9278 
   9279 
   9280 
   9281 xorg_testset_save_CFLAGS="$CFLAGS"
   9282 
   9283 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   9284 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9285 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   9286 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   9287 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   9288 then :
   9289   printf %s "(cached) " >&6
   9290 else $as_nop
   9291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9292 /* end confdefs.h.  */
   9293 int i;
   9294 _ACEOF
   9295 if ac_fn_c_try_compile "$LINENO"
   9296 then :
   9297   xorg_cv_cc_flag_unknown_warning_option=yes
   9298 else $as_nop
   9299   xorg_cv_cc_flag_unknown_warning_option=no
   9300 fi
   9301 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   9302 fi
   9303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   9304 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   9305 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   9306 	CFLAGS="$xorg_testset_save_CFLAGS"
   9307 fi
   9308 
   9309 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   9310 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9311 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9312 	fi
   9313 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9314 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   9315 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   9316 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   9317 then :
   9318   printf %s "(cached) " >&6
   9319 else $as_nop
   9320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9321 /* end confdefs.h.  */
   9322 int i;
   9323 _ACEOF
   9324 if ac_fn_c_try_compile "$LINENO"
   9325 then :
   9326   xorg_cv_cc_flag_unused_command_line_argument=yes
   9327 else $as_nop
   9328   xorg_cv_cc_flag_unused_command_line_argument=no
   9329 fi
   9330 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   9331 fi
   9332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   9333 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   9334 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   9335 	CFLAGS="$xorg_testset_save_CFLAGS"
   9336 fi
   9337 
   9338 found="no"
   9339 
   9340 	if test $found = "no" ; then
   9341 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9342 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9343 		fi
   9344 
   9345 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   9346 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9347 		fi
   9348 
   9349 		CFLAGS="$CFLAGS -Winit-self"
   9350 
   9351 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
   9352 printf %s "checking if $CC supports -Winit-self... " >&6; }
   9353 		cacheid=xorg_cv_cc_flag__Winit_self
   9354 		if eval test \${$cacheid+y}
   9355 then :
   9356   printf %s "(cached) " >&6
   9357 else $as_nop
   9358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9359 /* end confdefs.h.  */
   9360 int i;
   9361 int
   9362 main (void)
   9363 {
   9364 
   9365   ;
   9366   return 0;
   9367 }
   9368 _ACEOF
   9369 if ac_fn_c_try_link "$LINENO"
   9370 then :
   9371   eval $cacheid=yes
   9372 else $as_nop
   9373   eval $cacheid=no
   9374 fi
   9375 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   9376     conftest$ac_exeext conftest.$ac_ext
   9377 fi
   9378 
   9379 
   9380 		CFLAGS="$xorg_testset_save_CFLAGS"
   9381 
   9382 		eval supported=\$$cacheid
   9383 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   9384 printf "%s\n" "$supported" >&6; }
   9385 		if test "$supported" = "yes" ; then
   9386 			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
   9387 			found="yes"
   9388 		fi
   9389 	fi
   9390 
   9391 
   9392 
   9393 
   9394 
   9395 
   9396 
   9397 
   9398 
   9399 
   9400 
   9401 
   9402 
   9403 
   9404 
   9405 xorg_testset_save_CFLAGS="$CFLAGS"
   9406 
   9407 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   9408 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9409 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   9410 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   9411 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   9412 then :
   9413   printf %s "(cached) " >&6
   9414 else $as_nop
   9415   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9416 /* end confdefs.h.  */
   9417 int i;
   9418 _ACEOF
   9419 if ac_fn_c_try_compile "$LINENO"
   9420 then :
   9421   xorg_cv_cc_flag_unknown_warning_option=yes
   9422 else $as_nop
   9423   xorg_cv_cc_flag_unknown_warning_option=no
   9424 fi
   9425 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   9426 fi
   9427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   9428 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   9429 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   9430 	CFLAGS="$xorg_testset_save_CFLAGS"
   9431 fi
   9432 
   9433 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   9434 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9435 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9436 	fi
   9437 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9438 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   9439 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   9440 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   9441 then :
   9442   printf %s "(cached) " >&6
   9443 else $as_nop
   9444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9445 /* end confdefs.h.  */
   9446 int i;
   9447 _ACEOF
   9448 if ac_fn_c_try_compile "$LINENO"
   9449 then :
   9450   xorg_cv_cc_flag_unused_command_line_argument=yes
   9451 else $as_nop
   9452   xorg_cv_cc_flag_unused_command_line_argument=no
   9453 fi
   9454 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   9455 fi
   9456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   9457 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   9458 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   9459 	CFLAGS="$xorg_testset_save_CFLAGS"
   9460 fi
   9461 
   9462 found="no"
   9463 
   9464 	if test $found = "no" ; then
   9465 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9466 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9467 		fi
   9468 
   9469 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   9470 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9471 		fi
   9472 
   9473 		CFLAGS="$CFLAGS -Wmain"
   9474 
   9475 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
   9476 printf %s "checking if $CC supports -Wmain... " >&6; }
   9477 		cacheid=xorg_cv_cc_flag__Wmain
   9478 		if eval test \${$cacheid+y}
   9479 then :
   9480   printf %s "(cached) " >&6
   9481 else $as_nop
   9482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9483 /* end confdefs.h.  */
   9484 int i;
   9485 int
   9486 main (void)
   9487 {
   9488 
   9489   ;
   9490   return 0;
   9491 }
   9492 _ACEOF
   9493 if ac_fn_c_try_link "$LINENO"
   9494 then :
   9495   eval $cacheid=yes
   9496 else $as_nop
   9497   eval $cacheid=no
   9498 fi
   9499 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   9500     conftest$ac_exeext conftest.$ac_ext
   9501 fi
   9502 
   9503 
   9504 		CFLAGS="$xorg_testset_save_CFLAGS"
   9505 
   9506 		eval supported=\$$cacheid
   9507 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   9508 printf "%s\n" "$supported" >&6; }
   9509 		if test "$supported" = "yes" ; then
   9510 			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
   9511 			found="yes"
   9512 		fi
   9513 	fi
   9514 
   9515 
   9516 
   9517 
   9518 
   9519 
   9520 
   9521 
   9522 
   9523 
   9524 
   9525 
   9526 
   9527 
   9528 
   9529 xorg_testset_save_CFLAGS="$CFLAGS"
   9530 
   9531 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   9532 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9533 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   9534 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   9535 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   9536 then :
   9537   printf %s "(cached) " >&6
   9538 else $as_nop
   9539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9540 /* end confdefs.h.  */
   9541 int i;
   9542 _ACEOF
   9543 if ac_fn_c_try_compile "$LINENO"
   9544 then :
   9545   xorg_cv_cc_flag_unknown_warning_option=yes
   9546 else $as_nop
   9547   xorg_cv_cc_flag_unknown_warning_option=no
   9548 fi
   9549 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   9550 fi
   9551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   9552 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   9553 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   9554 	CFLAGS="$xorg_testset_save_CFLAGS"
   9555 fi
   9556 
   9557 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   9558 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9559 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9560 	fi
   9561 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9562 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   9563 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   9564 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   9565 then :
   9566   printf %s "(cached) " >&6
   9567 else $as_nop
   9568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9569 /* end confdefs.h.  */
   9570 int i;
   9571 _ACEOF
   9572 if ac_fn_c_try_compile "$LINENO"
   9573 then :
   9574   xorg_cv_cc_flag_unused_command_line_argument=yes
   9575 else $as_nop
   9576   xorg_cv_cc_flag_unused_command_line_argument=no
   9577 fi
   9578 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   9579 fi
   9580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   9581 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   9582 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   9583 	CFLAGS="$xorg_testset_save_CFLAGS"
   9584 fi
   9585 
   9586 found="no"
   9587 
   9588 	if test $found = "no" ; then
   9589 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9590 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9591 		fi
   9592 
   9593 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   9594 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9595 		fi
   9596 
   9597 		CFLAGS="$CFLAGS -Wmissing-braces"
   9598 
   9599 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
   9600 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
   9601 		cacheid=xorg_cv_cc_flag__Wmissing_braces
   9602 		if eval test \${$cacheid+y}
   9603 then :
   9604   printf %s "(cached) " >&6
   9605 else $as_nop
   9606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9607 /* end confdefs.h.  */
   9608 int i;
   9609 int
   9610 main (void)
   9611 {
   9612 
   9613   ;
   9614   return 0;
   9615 }
   9616 _ACEOF
   9617 if ac_fn_c_try_link "$LINENO"
   9618 then :
   9619   eval $cacheid=yes
   9620 else $as_nop
   9621   eval $cacheid=no
   9622 fi
   9623 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   9624     conftest$ac_exeext conftest.$ac_ext
   9625 fi
   9626 
   9627 
   9628 		CFLAGS="$xorg_testset_save_CFLAGS"
   9629 
   9630 		eval supported=\$$cacheid
   9631 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   9632 printf "%s\n" "$supported" >&6; }
   9633 		if test "$supported" = "yes" ; then
   9634 			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
   9635 			found="yes"
   9636 		fi
   9637 	fi
   9638 
   9639 
   9640 
   9641 
   9642 
   9643 
   9644 
   9645 
   9646 
   9647 
   9648 
   9649 
   9650 
   9651 
   9652 
   9653 xorg_testset_save_CFLAGS="$CFLAGS"
   9654 
   9655 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   9656 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9657 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   9658 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   9659 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   9660 then :
   9661   printf %s "(cached) " >&6
   9662 else $as_nop
   9663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9664 /* end confdefs.h.  */
   9665 int i;
   9666 _ACEOF
   9667 if ac_fn_c_try_compile "$LINENO"
   9668 then :
   9669   xorg_cv_cc_flag_unknown_warning_option=yes
   9670 else $as_nop
   9671   xorg_cv_cc_flag_unknown_warning_option=no
   9672 fi
   9673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   9674 fi
   9675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   9676 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   9677 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   9678 	CFLAGS="$xorg_testset_save_CFLAGS"
   9679 fi
   9680 
   9681 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   9682 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9683 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9684 	fi
   9685 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9686 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   9687 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   9688 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   9689 then :
   9690   printf %s "(cached) " >&6
   9691 else $as_nop
   9692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9693 /* end confdefs.h.  */
   9694 int i;
   9695 _ACEOF
   9696 if ac_fn_c_try_compile "$LINENO"
   9697 then :
   9698   xorg_cv_cc_flag_unused_command_line_argument=yes
   9699 else $as_nop
   9700   xorg_cv_cc_flag_unused_command_line_argument=no
   9701 fi
   9702 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   9703 fi
   9704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   9705 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   9706 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   9707 	CFLAGS="$xorg_testset_save_CFLAGS"
   9708 fi
   9709 
   9710 found="no"
   9711 
   9712 	if test $found = "no" ; then
   9713 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9714 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9715 		fi
   9716 
   9717 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   9718 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9719 		fi
   9720 
   9721 		CFLAGS="$CFLAGS -Wsequence-point"
   9722 
   9723 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
   9724 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
   9725 		cacheid=xorg_cv_cc_flag__Wsequence_point
   9726 		if eval test \${$cacheid+y}
   9727 then :
   9728   printf %s "(cached) " >&6
   9729 else $as_nop
   9730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9731 /* end confdefs.h.  */
   9732 int i;
   9733 int
   9734 main (void)
   9735 {
   9736 
   9737   ;
   9738   return 0;
   9739 }
   9740 _ACEOF
   9741 if ac_fn_c_try_link "$LINENO"
   9742 then :
   9743   eval $cacheid=yes
   9744 else $as_nop
   9745   eval $cacheid=no
   9746 fi
   9747 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   9748     conftest$ac_exeext conftest.$ac_ext
   9749 fi
   9750 
   9751 
   9752 		CFLAGS="$xorg_testset_save_CFLAGS"
   9753 
   9754 		eval supported=\$$cacheid
   9755 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   9756 printf "%s\n" "$supported" >&6; }
   9757 		if test "$supported" = "yes" ; then
   9758 			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
   9759 			found="yes"
   9760 		fi
   9761 	fi
   9762 
   9763 
   9764 
   9765 
   9766 
   9767 
   9768 
   9769 
   9770 
   9771 
   9772 
   9773 
   9774 
   9775 
   9776 
   9777 xorg_testset_save_CFLAGS="$CFLAGS"
   9778 
   9779 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   9780 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9781 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   9782 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   9783 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   9784 then :
   9785   printf %s "(cached) " >&6
   9786 else $as_nop
   9787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9788 /* end confdefs.h.  */
   9789 int i;
   9790 _ACEOF
   9791 if ac_fn_c_try_compile "$LINENO"
   9792 then :
   9793   xorg_cv_cc_flag_unknown_warning_option=yes
   9794 else $as_nop
   9795   xorg_cv_cc_flag_unknown_warning_option=no
   9796 fi
   9797 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   9798 fi
   9799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   9800 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   9801 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   9802 	CFLAGS="$xorg_testset_save_CFLAGS"
   9803 fi
   9804 
   9805 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   9806 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9807 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9808 	fi
   9809 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9810 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   9811 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   9812 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   9813 then :
   9814   printf %s "(cached) " >&6
   9815 else $as_nop
   9816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9817 /* end confdefs.h.  */
   9818 int i;
   9819 _ACEOF
   9820 if ac_fn_c_try_compile "$LINENO"
   9821 then :
   9822   xorg_cv_cc_flag_unused_command_line_argument=yes
   9823 else $as_nop
   9824   xorg_cv_cc_flag_unused_command_line_argument=no
   9825 fi
   9826 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   9827 fi
   9828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   9829 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   9830 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   9831 	CFLAGS="$xorg_testset_save_CFLAGS"
   9832 fi
   9833 
   9834 found="no"
   9835 
   9836 	if test $found = "no" ; then
   9837 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9838 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9839 		fi
   9840 
   9841 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   9842 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9843 		fi
   9844 
   9845 		CFLAGS="$CFLAGS -Wreturn-type"
   9846 
   9847 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
   9848 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
   9849 		cacheid=xorg_cv_cc_flag__Wreturn_type
   9850 		if eval test \${$cacheid+y}
   9851 then :
   9852   printf %s "(cached) " >&6
   9853 else $as_nop
   9854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9855 /* end confdefs.h.  */
   9856 int i;
   9857 int
   9858 main (void)
   9859 {
   9860 
   9861   ;
   9862   return 0;
   9863 }
   9864 _ACEOF
   9865 if ac_fn_c_try_link "$LINENO"
   9866 then :
   9867   eval $cacheid=yes
   9868 else $as_nop
   9869   eval $cacheid=no
   9870 fi
   9871 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   9872     conftest$ac_exeext conftest.$ac_ext
   9873 fi
   9874 
   9875 
   9876 		CFLAGS="$xorg_testset_save_CFLAGS"
   9877 
   9878 		eval supported=\$$cacheid
   9879 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   9880 printf "%s\n" "$supported" >&6; }
   9881 		if test "$supported" = "yes" ; then
   9882 			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
   9883 			found="yes"
   9884 		fi
   9885 	fi
   9886 
   9887 
   9888 
   9889 
   9890 
   9891 
   9892 
   9893 
   9894 
   9895 
   9896 
   9897 
   9898 
   9899 
   9900 
   9901 xorg_testset_save_CFLAGS="$CFLAGS"
   9902 
   9903 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   9904 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9905 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   9906 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   9907 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   9908 then :
   9909   printf %s "(cached) " >&6
   9910 else $as_nop
   9911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9912 /* end confdefs.h.  */
   9913 int i;
   9914 _ACEOF
   9915 if ac_fn_c_try_compile "$LINENO"
   9916 then :
   9917   xorg_cv_cc_flag_unknown_warning_option=yes
   9918 else $as_nop
   9919   xorg_cv_cc_flag_unknown_warning_option=no
   9920 fi
   9921 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   9922 fi
   9923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   9924 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   9925 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   9926 	CFLAGS="$xorg_testset_save_CFLAGS"
   9927 fi
   9928 
   9929 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   9930 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9931 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9932 	fi
   9933 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9934 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   9935 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   9936 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   9937 then :
   9938   printf %s "(cached) " >&6
   9939 else $as_nop
   9940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9941 /* end confdefs.h.  */
   9942 int i;
   9943 _ACEOF
   9944 if ac_fn_c_try_compile "$LINENO"
   9945 then :
   9946   xorg_cv_cc_flag_unused_command_line_argument=yes
   9947 else $as_nop
   9948   xorg_cv_cc_flag_unused_command_line_argument=no
   9949 fi
   9950 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   9951 fi
   9952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   9953 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   9954 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   9955 	CFLAGS="$xorg_testset_save_CFLAGS"
   9956 fi
   9957 
   9958 found="no"
   9959 
   9960 	if test $found = "no" ; then
   9961 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   9962 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   9963 		fi
   9964 
   9965 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   9966 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   9967 		fi
   9968 
   9969 		CFLAGS="$CFLAGS -Wtrigraphs"
   9970 
   9971 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
   9972 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
   9973 		cacheid=xorg_cv_cc_flag__Wtrigraphs
   9974 		if eval test \${$cacheid+y}
   9975 then :
   9976   printf %s "(cached) " >&6
   9977 else $as_nop
   9978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9979 /* end confdefs.h.  */
   9980 int i;
   9981 int
   9982 main (void)
   9983 {
   9984 
   9985   ;
   9986   return 0;
   9987 }
   9988 _ACEOF
   9989 if ac_fn_c_try_link "$LINENO"
   9990 then :
   9991   eval $cacheid=yes
   9992 else $as_nop
   9993   eval $cacheid=no
   9994 fi
   9995 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   9996     conftest$ac_exeext conftest.$ac_ext
   9997 fi
   9998 
   9999 
   10000 		CFLAGS="$xorg_testset_save_CFLAGS"
   10001 
   10002 		eval supported=\$$cacheid
   10003 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   10004 printf "%s\n" "$supported" >&6; }
   10005 		if test "$supported" = "yes" ; then
   10006 			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
   10007 			found="yes"
   10008 		fi
   10009 	fi
   10010 
   10011 
   10012 
   10013 
   10014 
   10015 
   10016 
   10017 
   10018 
   10019 
   10020 
   10021 
   10022 
   10023 
   10024 
   10025 xorg_testset_save_CFLAGS="$CFLAGS"
   10026 
   10027 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   10028 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10029 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   10030 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   10031 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   10032 then :
   10033   printf %s "(cached) " >&6
   10034 else $as_nop
   10035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10036 /* end confdefs.h.  */
   10037 int i;
   10038 _ACEOF
   10039 if ac_fn_c_try_compile "$LINENO"
   10040 then :
   10041   xorg_cv_cc_flag_unknown_warning_option=yes
   10042 else $as_nop
   10043   xorg_cv_cc_flag_unknown_warning_option=no
   10044 fi
   10045 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   10046 fi
   10047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   10048 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   10049 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   10050 	CFLAGS="$xorg_testset_save_CFLAGS"
   10051 fi
   10052 
   10053 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   10054 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10055 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10056 	fi
   10057 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10058 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   10059 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   10060 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   10061 then :
   10062   printf %s "(cached) " >&6
   10063 else $as_nop
   10064   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10065 /* end confdefs.h.  */
   10066 int i;
   10067 _ACEOF
   10068 if ac_fn_c_try_compile "$LINENO"
   10069 then :
   10070   xorg_cv_cc_flag_unused_command_line_argument=yes
   10071 else $as_nop
   10072   xorg_cv_cc_flag_unused_command_line_argument=no
   10073 fi
   10074 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   10075 fi
   10076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   10077 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   10078 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   10079 	CFLAGS="$xorg_testset_save_CFLAGS"
   10080 fi
   10081 
   10082 found="no"
   10083 
   10084 	if test $found = "no" ; then
   10085 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10086 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10087 		fi
   10088 
   10089 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   10090 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10091 		fi
   10092 
   10093 		CFLAGS="$CFLAGS -Warray-bounds"
   10094 
   10095 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
   10096 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
   10097 		cacheid=xorg_cv_cc_flag__Warray_bounds
   10098 		if eval test \${$cacheid+y}
   10099 then :
   10100   printf %s "(cached) " >&6
   10101 else $as_nop
   10102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10103 /* end confdefs.h.  */
   10104 int i;
   10105 int
   10106 main (void)
   10107 {
   10108 
   10109   ;
   10110   return 0;
   10111 }
   10112 _ACEOF
   10113 if ac_fn_c_try_link "$LINENO"
   10114 then :
   10115   eval $cacheid=yes
   10116 else $as_nop
   10117   eval $cacheid=no
   10118 fi
   10119 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   10120     conftest$ac_exeext conftest.$ac_ext
   10121 fi
   10122 
   10123 
   10124 		CFLAGS="$xorg_testset_save_CFLAGS"
   10125 
   10126 		eval supported=\$$cacheid
   10127 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   10128 printf "%s\n" "$supported" >&6; }
   10129 		if test "$supported" = "yes" ; then
   10130 			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
   10131 			found="yes"
   10132 		fi
   10133 	fi
   10134 
   10135 
   10136 
   10137 
   10138 
   10139 
   10140 
   10141 
   10142 
   10143 
   10144 
   10145 
   10146 
   10147 
   10148 
   10149 xorg_testset_save_CFLAGS="$CFLAGS"
   10150 
   10151 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   10152 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10153 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   10154 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   10155 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   10156 then :
   10157   printf %s "(cached) " >&6
   10158 else $as_nop
   10159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10160 /* end confdefs.h.  */
   10161 int i;
   10162 _ACEOF
   10163 if ac_fn_c_try_compile "$LINENO"
   10164 then :
   10165   xorg_cv_cc_flag_unknown_warning_option=yes
   10166 else $as_nop
   10167   xorg_cv_cc_flag_unknown_warning_option=no
   10168 fi
   10169 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   10170 fi
   10171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   10172 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   10173 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   10174 	CFLAGS="$xorg_testset_save_CFLAGS"
   10175 fi
   10176 
   10177 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   10178 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10179 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10180 	fi
   10181 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10182 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   10183 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   10184 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   10185 then :
   10186   printf %s "(cached) " >&6
   10187 else $as_nop
   10188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10189 /* end confdefs.h.  */
   10190 int i;
   10191 _ACEOF
   10192 if ac_fn_c_try_compile "$LINENO"
   10193 then :
   10194   xorg_cv_cc_flag_unused_command_line_argument=yes
   10195 else $as_nop
   10196   xorg_cv_cc_flag_unused_command_line_argument=no
   10197 fi
   10198 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   10199 fi
   10200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   10201 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   10202 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   10203 	CFLAGS="$xorg_testset_save_CFLAGS"
   10204 fi
   10205 
   10206 found="no"
   10207 
   10208 	if test $found = "no" ; then
   10209 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10210 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10211 		fi
   10212 
   10213 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   10214 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10215 		fi
   10216 
   10217 		CFLAGS="$CFLAGS -Wwrite-strings"
   10218 
   10219 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
   10220 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
   10221 		cacheid=xorg_cv_cc_flag__Wwrite_strings
   10222 		if eval test \${$cacheid+y}
   10223 then :
   10224   printf %s "(cached) " >&6
   10225 else $as_nop
   10226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10227 /* end confdefs.h.  */
   10228 int i;
   10229 int
   10230 main (void)
   10231 {
   10232 
   10233   ;
   10234   return 0;
   10235 }
   10236 _ACEOF
   10237 if ac_fn_c_try_link "$LINENO"
   10238 then :
   10239   eval $cacheid=yes
   10240 else $as_nop
   10241   eval $cacheid=no
   10242 fi
   10243 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   10244     conftest$ac_exeext conftest.$ac_ext
   10245 fi
   10246 
   10247 
   10248 		CFLAGS="$xorg_testset_save_CFLAGS"
   10249 
   10250 		eval supported=\$$cacheid
   10251 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   10252 printf "%s\n" "$supported" >&6; }
   10253 		if test "$supported" = "yes" ; then
   10254 			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
   10255 			found="yes"
   10256 		fi
   10257 	fi
   10258 
   10259 
   10260 
   10261 
   10262 
   10263 
   10264 
   10265 
   10266 
   10267 
   10268 
   10269 
   10270 
   10271 
   10272 
   10273 xorg_testset_save_CFLAGS="$CFLAGS"
   10274 
   10275 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   10276 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10277 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   10278 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   10279 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   10280 then :
   10281   printf %s "(cached) " >&6
   10282 else $as_nop
   10283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10284 /* end confdefs.h.  */
   10285 int i;
   10286 _ACEOF
   10287 if ac_fn_c_try_compile "$LINENO"
   10288 then :
   10289   xorg_cv_cc_flag_unknown_warning_option=yes
   10290 else $as_nop
   10291   xorg_cv_cc_flag_unknown_warning_option=no
   10292 fi
   10293 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   10294 fi
   10295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   10296 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   10297 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   10298 	CFLAGS="$xorg_testset_save_CFLAGS"
   10299 fi
   10300 
   10301 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   10302 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10303 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10304 	fi
   10305 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10306 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   10307 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   10308 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   10309 then :
   10310   printf %s "(cached) " >&6
   10311 else $as_nop
   10312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10313 /* end confdefs.h.  */
   10314 int i;
   10315 _ACEOF
   10316 if ac_fn_c_try_compile "$LINENO"
   10317 then :
   10318   xorg_cv_cc_flag_unused_command_line_argument=yes
   10319 else $as_nop
   10320   xorg_cv_cc_flag_unused_command_line_argument=no
   10321 fi
   10322 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   10323 fi
   10324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   10325 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   10326 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   10327 	CFLAGS="$xorg_testset_save_CFLAGS"
   10328 fi
   10329 
   10330 found="no"
   10331 
   10332 	if test $found = "no" ; then
   10333 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10334 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10335 		fi
   10336 
   10337 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   10338 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10339 		fi
   10340 
   10341 		CFLAGS="$CFLAGS -Waddress"
   10342 
   10343 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
   10344 printf %s "checking if $CC supports -Waddress... " >&6; }
   10345 		cacheid=xorg_cv_cc_flag__Waddress
   10346 		if eval test \${$cacheid+y}
   10347 then :
   10348   printf %s "(cached) " >&6
   10349 else $as_nop
   10350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10351 /* end confdefs.h.  */
   10352 int i;
   10353 int
   10354 main (void)
   10355 {
   10356 
   10357   ;
   10358   return 0;
   10359 }
   10360 _ACEOF
   10361 if ac_fn_c_try_link "$LINENO"
   10362 then :
   10363   eval $cacheid=yes
   10364 else $as_nop
   10365   eval $cacheid=no
   10366 fi
   10367 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   10368     conftest$ac_exeext conftest.$ac_ext
   10369 fi
   10370 
   10371 
   10372 		CFLAGS="$xorg_testset_save_CFLAGS"
   10373 
   10374 		eval supported=\$$cacheid
   10375 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   10376 printf "%s\n" "$supported" >&6; }
   10377 		if test "$supported" = "yes" ; then
   10378 			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
   10379 			found="yes"
   10380 		fi
   10381 	fi
   10382 
   10383 
   10384 
   10385 
   10386 
   10387 
   10388 
   10389 
   10390 
   10391 
   10392 
   10393 
   10394 
   10395 
   10396 
   10397 xorg_testset_save_CFLAGS="$CFLAGS"
   10398 
   10399 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   10400 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10401 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   10402 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   10403 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   10404 then :
   10405   printf %s "(cached) " >&6
   10406 else $as_nop
   10407   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10408 /* end confdefs.h.  */
   10409 int i;
   10410 _ACEOF
   10411 if ac_fn_c_try_compile "$LINENO"
   10412 then :
   10413   xorg_cv_cc_flag_unknown_warning_option=yes
   10414 else $as_nop
   10415   xorg_cv_cc_flag_unknown_warning_option=no
   10416 fi
   10417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   10418 fi
   10419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   10420 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   10421 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   10422 	CFLAGS="$xorg_testset_save_CFLAGS"
   10423 fi
   10424 
   10425 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   10426 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10427 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10428 	fi
   10429 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10430 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   10431 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   10432 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   10433 then :
   10434   printf %s "(cached) " >&6
   10435 else $as_nop
   10436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10437 /* end confdefs.h.  */
   10438 int i;
   10439 _ACEOF
   10440 if ac_fn_c_try_compile "$LINENO"
   10441 then :
   10442   xorg_cv_cc_flag_unused_command_line_argument=yes
   10443 else $as_nop
   10444   xorg_cv_cc_flag_unused_command_line_argument=no
   10445 fi
   10446 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   10447 fi
   10448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   10449 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   10450 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   10451 	CFLAGS="$xorg_testset_save_CFLAGS"
   10452 fi
   10453 
   10454 found="no"
   10455 
   10456 	if test $found = "no" ; then
   10457 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10458 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10459 		fi
   10460 
   10461 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   10462 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10463 		fi
   10464 
   10465 		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
   10466 
   10467 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
   10468 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
   10469 		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
   10470 		if eval test \${$cacheid+y}
   10471 then :
   10472   printf %s "(cached) " >&6
   10473 else $as_nop
   10474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10475 /* end confdefs.h.  */
   10476 int i;
   10477 int
   10478 main (void)
   10479 {
   10480 
   10481   ;
   10482   return 0;
   10483 }
   10484 _ACEOF
   10485 if ac_fn_c_try_link "$LINENO"
   10486 then :
   10487   eval $cacheid=yes
   10488 else $as_nop
   10489   eval $cacheid=no
   10490 fi
   10491 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   10492     conftest$ac_exeext conftest.$ac_ext
   10493 fi
   10494 
   10495 
   10496 		CFLAGS="$xorg_testset_save_CFLAGS"
   10497 
   10498 		eval supported=\$$cacheid
   10499 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   10500 printf "%s\n" "$supported" >&6; }
   10501 		if test "$supported" = "yes" ; then
   10502 			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
   10503 			found="yes"
   10504 		fi
   10505 	fi
   10506 
   10507 
   10508 
   10509 
   10510 
   10511 
   10512 
   10513 
   10514 
   10515 
   10516 
   10517 
   10518 
   10519 
   10520 
   10521 xorg_testset_save_CFLAGS="$CFLAGS"
   10522 
   10523 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   10524 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10525 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   10526 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   10527 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   10528 then :
   10529   printf %s "(cached) " >&6
   10530 else $as_nop
   10531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10532 /* end confdefs.h.  */
   10533 int i;
   10534 _ACEOF
   10535 if ac_fn_c_try_compile "$LINENO"
   10536 then :
   10537   xorg_cv_cc_flag_unknown_warning_option=yes
   10538 else $as_nop
   10539   xorg_cv_cc_flag_unknown_warning_option=no
   10540 fi
   10541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   10542 fi
   10543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   10544 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   10545 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   10546 	CFLAGS="$xorg_testset_save_CFLAGS"
   10547 fi
   10548 
   10549 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   10550 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10551 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10552 	fi
   10553 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10554 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   10555 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   10556 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   10557 then :
   10558   printf %s "(cached) " >&6
   10559 else $as_nop
   10560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10561 /* end confdefs.h.  */
   10562 int i;
   10563 _ACEOF
   10564 if ac_fn_c_try_compile "$LINENO"
   10565 then :
   10566   xorg_cv_cc_flag_unused_command_line_argument=yes
   10567 else $as_nop
   10568   xorg_cv_cc_flag_unused_command_line_argument=no
   10569 fi
   10570 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   10571 fi
   10572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   10573 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   10574 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   10575 	CFLAGS="$xorg_testset_save_CFLAGS"
   10576 fi
   10577 
   10578 found="no"
   10579 
   10580 	if test $found = "no" ; then
   10581 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10582 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10583 		fi
   10584 
   10585 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   10586 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10587 		fi
   10588 
   10589 		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
   10590 
   10591 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
   10592 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
   10593 		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
   10594 		if eval test \${$cacheid+y}
   10595 then :
   10596   printf %s "(cached) " >&6
   10597 else $as_nop
   10598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10599 /* end confdefs.h.  */
   10600 int i;
   10601 int
   10602 main (void)
   10603 {
   10604 
   10605   ;
   10606   return 0;
   10607 }
   10608 _ACEOF
   10609 if ac_fn_c_try_link "$LINENO"
   10610 then :
   10611   eval $cacheid=yes
   10612 else $as_nop
   10613   eval $cacheid=no
   10614 fi
   10615 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   10616     conftest$ac_exeext conftest.$ac_ext
   10617 fi
   10618 
   10619 
   10620 		CFLAGS="$xorg_testset_save_CFLAGS"
   10621 
   10622 		eval supported=\$$cacheid
   10623 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   10624 printf "%s\n" "$supported" >&6; }
   10625 		if test "$supported" = "yes" ; then
   10626 			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
   10627 			found="yes"
   10628 		fi
   10629 	fi
   10630 
   10631 
   10632 fi
   10633 
   10634 
   10635 
   10636 
   10637 
   10638 
   10639 
   10640 		CWARNFLAGS="$BASE_CFLAGS"
   10641 		if  test "x$GCC" = xyes ; then
   10642 		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
   10643 		fi
   10644 
   10645 
   10646 
   10647 
   10648 
   10649 
   10650 
   10651 
   10652 # Check whether --enable-strict-compilation was given.
   10653 if test ${enable_strict_compilation+y}
   10654 then :
   10655   enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
   10656 else $as_nop
   10657   STRICT_COMPILE=no
   10658 fi
   10659 
   10660 
   10661 
   10662 
   10663 
   10664 
   10665 STRICT_CFLAGS=""
   10666 
   10667 
   10668 
   10669 
   10670 
   10671 
   10672 
   10673 
   10674 
   10675 
   10676 
   10677 
   10678 
   10679 xorg_testset_save_CFLAGS="$CFLAGS"
   10680 
   10681 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   10682 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10683 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   10684 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   10685 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   10686 then :
   10687   printf %s "(cached) " >&6
   10688 else $as_nop
   10689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10690 /* end confdefs.h.  */
   10691 int i;
   10692 _ACEOF
   10693 if ac_fn_c_try_compile "$LINENO"
   10694 then :
   10695   xorg_cv_cc_flag_unknown_warning_option=yes
   10696 else $as_nop
   10697   xorg_cv_cc_flag_unknown_warning_option=no
   10698 fi
   10699 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   10700 fi
   10701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   10702 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   10703 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   10704 	CFLAGS="$xorg_testset_save_CFLAGS"
   10705 fi
   10706 
   10707 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   10708 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10709 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10710 	fi
   10711 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10712 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   10713 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   10714 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   10715 then :
   10716   printf %s "(cached) " >&6
   10717 else $as_nop
   10718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10719 /* end confdefs.h.  */
   10720 int i;
   10721 _ACEOF
   10722 if ac_fn_c_try_compile "$LINENO"
   10723 then :
   10724   xorg_cv_cc_flag_unused_command_line_argument=yes
   10725 else $as_nop
   10726   xorg_cv_cc_flag_unused_command_line_argument=no
   10727 fi
   10728 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   10729 fi
   10730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   10731 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   10732 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   10733 	CFLAGS="$xorg_testset_save_CFLAGS"
   10734 fi
   10735 
   10736 found="no"
   10737 
   10738 	if test $found = "no" ; then
   10739 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10740 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10741 		fi
   10742 
   10743 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   10744 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10745 		fi
   10746 
   10747 		CFLAGS="$CFLAGS -pedantic"
   10748 
   10749 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
   10750 printf %s "checking if $CC supports -pedantic... " >&6; }
   10751 		cacheid=xorg_cv_cc_flag__pedantic
   10752 		if eval test \${$cacheid+y}
   10753 then :
   10754   printf %s "(cached) " >&6
   10755 else $as_nop
   10756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10757 /* end confdefs.h.  */
   10758 int i;
   10759 int
   10760 main (void)
   10761 {
   10762 
   10763   ;
   10764   return 0;
   10765 }
   10766 _ACEOF
   10767 if ac_fn_c_try_link "$LINENO"
   10768 then :
   10769   eval $cacheid=yes
   10770 else $as_nop
   10771   eval $cacheid=no
   10772 fi
   10773 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   10774     conftest$ac_exeext conftest.$ac_ext
   10775 fi
   10776 
   10777 
   10778 		CFLAGS="$xorg_testset_save_CFLAGS"
   10779 
   10780 		eval supported=\$$cacheid
   10781 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   10782 printf "%s\n" "$supported" >&6; }
   10783 		if test "$supported" = "yes" ; then
   10784 			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
   10785 			found="yes"
   10786 		fi
   10787 	fi
   10788 
   10789 
   10790 
   10791 
   10792 
   10793 
   10794 
   10795 
   10796 
   10797 
   10798 
   10799 
   10800 
   10801 
   10802 
   10803 xorg_testset_save_CFLAGS="$CFLAGS"
   10804 
   10805 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   10806 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10807 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   10808 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   10809 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   10810 then :
   10811   printf %s "(cached) " >&6
   10812 else $as_nop
   10813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10814 /* end confdefs.h.  */
   10815 int i;
   10816 _ACEOF
   10817 if ac_fn_c_try_compile "$LINENO"
   10818 then :
   10819   xorg_cv_cc_flag_unknown_warning_option=yes
   10820 else $as_nop
   10821   xorg_cv_cc_flag_unknown_warning_option=no
   10822 fi
   10823 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   10824 fi
   10825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   10826 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   10827 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   10828 	CFLAGS="$xorg_testset_save_CFLAGS"
   10829 fi
   10830 
   10831 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   10832 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10833 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10834 	fi
   10835 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10836 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   10837 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   10838 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   10839 then :
   10840   printf %s "(cached) " >&6
   10841 else $as_nop
   10842   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10843 /* end confdefs.h.  */
   10844 int i;
   10845 _ACEOF
   10846 if ac_fn_c_try_compile "$LINENO"
   10847 then :
   10848   xorg_cv_cc_flag_unused_command_line_argument=yes
   10849 else $as_nop
   10850   xorg_cv_cc_flag_unused_command_line_argument=no
   10851 fi
   10852 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   10853 fi
   10854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   10855 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   10856 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   10857 	CFLAGS="$xorg_testset_save_CFLAGS"
   10858 fi
   10859 
   10860 found="no"
   10861 
   10862 	if test $found = "no" ; then
   10863 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10864 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10865 		fi
   10866 
   10867 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   10868 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10869 		fi
   10870 
   10871 		CFLAGS="$CFLAGS -Werror"
   10872 
   10873 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
   10874 printf %s "checking if $CC supports -Werror... " >&6; }
   10875 		cacheid=xorg_cv_cc_flag__Werror
   10876 		if eval test \${$cacheid+y}
   10877 then :
   10878   printf %s "(cached) " >&6
   10879 else $as_nop
   10880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10881 /* end confdefs.h.  */
   10882 int i;
   10883 int
   10884 main (void)
   10885 {
   10886 
   10887   ;
   10888   return 0;
   10889 }
   10890 _ACEOF
   10891 if ac_fn_c_try_link "$LINENO"
   10892 then :
   10893   eval $cacheid=yes
   10894 else $as_nop
   10895   eval $cacheid=no
   10896 fi
   10897 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   10898     conftest$ac_exeext conftest.$ac_ext
   10899 fi
   10900 
   10901 
   10902 		CFLAGS="$xorg_testset_save_CFLAGS"
   10903 
   10904 		eval supported=\$$cacheid
   10905 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   10906 printf "%s\n" "$supported" >&6; }
   10907 		if test "$supported" = "yes" ; then
   10908 			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
   10909 			found="yes"
   10910 		fi
   10911 	fi
   10912 
   10913 	if test $found = "no" ; then
   10914 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   10915 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10916 		fi
   10917 
   10918 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   10919 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   10920 		fi
   10921 
   10922 		CFLAGS="$CFLAGS -errwarn"
   10923 
   10924 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
   10925 printf %s "checking if $CC supports -errwarn... " >&6; }
   10926 		cacheid=xorg_cv_cc_flag__errwarn
   10927 		if eval test \${$cacheid+y}
   10928 then :
   10929   printf %s "(cached) " >&6
   10930 else $as_nop
   10931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10932 /* end confdefs.h.  */
   10933 int i;
   10934 int
   10935 main (void)
   10936 {
   10937 
   10938   ;
   10939   return 0;
   10940 }
   10941 _ACEOF
   10942 if ac_fn_c_try_link "$LINENO"
   10943 then :
   10944   eval $cacheid=yes
   10945 else $as_nop
   10946   eval $cacheid=no
   10947 fi
   10948 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   10949     conftest$ac_exeext conftest.$ac_ext
   10950 fi
   10951 
   10952 
   10953 		CFLAGS="$xorg_testset_save_CFLAGS"
   10954 
   10955 		eval supported=\$$cacheid
   10956 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   10957 printf "%s\n" "$supported" >&6; }
   10958 		if test "$supported" = "yes" ; then
   10959 			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
   10960 			found="yes"
   10961 		fi
   10962 	fi
   10963 
   10964 
   10965 
   10966 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
   10967 # activate it with -Werror, so we add it here explicitly.
   10968 
   10969 
   10970 
   10971 
   10972 
   10973 
   10974 
   10975 
   10976 
   10977 
   10978 
   10979 
   10980 
   10981 xorg_testset_save_CFLAGS="$CFLAGS"
   10982 
   10983 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   10984 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   10985 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   10986 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   10987 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   10988 then :
   10989   printf %s "(cached) " >&6
   10990 else $as_nop
   10991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10992 /* end confdefs.h.  */
   10993 int i;
   10994 _ACEOF
   10995 if ac_fn_c_try_compile "$LINENO"
   10996 then :
   10997   xorg_cv_cc_flag_unknown_warning_option=yes
   10998 else $as_nop
   10999   xorg_cv_cc_flag_unknown_warning_option=no
   11000 fi
   11001 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   11002 fi
   11003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   11004 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   11005 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   11006 	CFLAGS="$xorg_testset_save_CFLAGS"
   11007 fi
   11008 
   11009 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   11010 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   11011 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   11012 	fi
   11013 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   11014 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   11015 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   11016 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   11017 then :
   11018   printf %s "(cached) " >&6
   11019 else $as_nop
   11020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11021 /* end confdefs.h.  */
   11022 int i;
   11023 _ACEOF
   11024 if ac_fn_c_try_compile "$LINENO"
   11025 then :
   11026   xorg_cv_cc_flag_unused_command_line_argument=yes
   11027 else $as_nop
   11028   xorg_cv_cc_flag_unused_command_line_argument=no
   11029 fi
   11030 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   11031 fi
   11032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   11033 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   11034 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   11035 	CFLAGS="$xorg_testset_save_CFLAGS"
   11036 fi
   11037 
   11038 found="no"
   11039 
   11040 	if test $found = "no" ; then
   11041 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   11042 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   11043 		fi
   11044 
   11045 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   11046 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   11047 		fi
   11048 
   11049 		CFLAGS="$CFLAGS -Werror=attributes"
   11050 
   11051 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
   11052 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
   11053 		cacheid=xorg_cv_cc_flag__Werror_attributes
   11054 		if eval test \${$cacheid+y}
   11055 then :
   11056   printf %s "(cached) " >&6
   11057 else $as_nop
   11058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11059 /* end confdefs.h.  */
   11060 int i;
   11061 int
   11062 main (void)
   11063 {
   11064 
   11065   ;
   11066   return 0;
   11067 }
   11068 _ACEOF
   11069 if ac_fn_c_try_link "$LINENO"
   11070 then :
   11071   eval $cacheid=yes
   11072 else $as_nop
   11073   eval $cacheid=no
   11074 fi
   11075 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   11076     conftest$ac_exeext conftest.$ac_ext
   11077 fi
   11078 
   11079 
   11080 		CFLAGS="$xorg_testset_save_CFLAGS"
   11081 
   11082 		eval supported=\$$cacheid
   11083 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   11084 printf "%s\n" "$supported" >&6; }
   11085 		if test "$supported" = "yes" ; then
   11086 			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
   11087 			found="yes"
   11088 		fi
   11089 	fi
   11090 
   11091 
   11092 
   11093 if test "x$STRICT_COMPILE" = "xyes"; then
   11094     BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
   11095     CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
   11096 fi
   11097 
   11098 
   11099 
   11100 
   11101 
   11102 
   11103 cat >>confdefs.h <<_ACEOF
   11104 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
   11105 _ACEOF
   11106 
   11107 	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
   11108 	if test "x$PVM" = "x"; then
   11109 		PVM="0"
   11110 	fi
   11111 
   11112 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
   11113 
   11114 	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
   11115 	if test "x$PVP" = "x"; then
   11116 		PVP="0"
   11117 	fi
   11118 
   11119 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
   11120 
   11121 
   11122 
   11123 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
   11124 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
   11125 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
   11126 touch \$(top_srcdir)/ChangeLog; \
   11127 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
   11128 
   11129 
   11130 
   11131 
   11132 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
   11133 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
   11134 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
   11135 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
   11136 touch \$(top_srcdir)/INSTALL; \
   11137 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
   11138 
   11139 
   11140 
   11141 
   11142 
   11143 
   11144 case $host_os in
   11145     solaris*)
   11146         # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
   11147         # check for a man page file found in later versions that use
   11148         # traditional section numbers instead
   11149         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
   11150 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
   11151 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
   11152 then :
   11153   printf %s "(cached) " >&6
   11154 else $as_nop
   11155   test "$cross_compiling" = yes &&
   11156   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
   11157 if test -r "/usr/share/man/man7/attributes.7"; then
   11158   ac_cv_file__usr_share_man_man7_attributes_7=yes
   11159 else
   11160   ac_cv_file__usr_share_man_man7_attributes_7=no
   11161 fi
   11162 fi
   11163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
   11164 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
   11165 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
   11166 then :
   11167   SYSV_MAN_SECTIONS=false
   11168 else $as_nop
   11169   SYSV_MAN_SECTIONS=true
   11170 fi
   11171 
   11172         ;;
   11173     *) SYSV_MAN_SECTIONS=false ;;
   11174 esac
   11175 
   11176 if test x$APP_MAN_SUFFIX = x    ; then
   11177     APP_MAN_SUFFIX=1
   11178 fi
   11179 if test x$APP_MAN_DIR = x    ; then
   11180     APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
   11181 fi
   11182 
   11183 if test x$LIB_MAN_SUFFIX = x    ; then
   11184     LIB_MAN_SUFFIX=3
   11185 fi
   11186 if test x$LIB_MAN_DIR = x    ; then
   11187     LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
   11188 fi
   11189 
   11190 if test x$FILE_MAN_SUFFIX = x    ; then
   11191     case $SYSV_MAN_SECTIONS in
   11192 	true)				FILE_MAN_SUFFIX=4  ;;
   11193 	*)				FILE_MAN_SUFFIX=5  ;;
   11194     esac
   11195 fi
   11196 if test x$FILE_MAN_DIR = x    ; then
   11197     FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
   11198 fi
   11199 
   11200 if test x$MISC_MAN_SUFFIX = x    ; then
   11201     case $SYSV_MAN_SECTIONS in
   11202 	true)				MISC_MAN_SUFFIX=5  ;;
   11203 	*)				MISC_MAN_SUFFIX=7  ;;
   11204     esac
   11205 fi
   11206 if test x$MISC_MAN_DIR = x    ; then
   11207     MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
   11208 fi
   11209 
   11210 if test x$DRIVER_MAN_SUFFIX = x    ; then
   11211     case $SYSV_MAN_SECTIONS in
   11212 	true)				DRIVER_MAN_SUFFIX=7  ;;
   11213 	*)				DRIVER_MAN_SUFFIX=4  ;;
   11214     esac
   11215 fi
   11216 if test x$DRIVER_MAN_DIR = x    ; then
   11217     DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
   11218 fi
   11219 
   11220 if test x$ADMIN_MAN_SUFFIX = x    ; then
   11221     case $SYSV_MAN_SECTIONS in
   11222 	true)				ADMIN_MAN_SUFFIX=1m ;;
   11223 	*)				ADMIN_MAN_SUFFIX=8  ;;
   11224     esac
   11225 fi
   11226 if test x$ADMIN_MAN_DIR = x    ; then
   11227     ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
   11228 fi
   11229 
   11230 
   11231 
   11232 
   11233 
   11234 
   11235 
   11236 
   11237 
   11238 
   11239 
   11240 
   11241 
   11242 
   11243 
   11244 XORG_MAN_PAGE="X Version 11"
   11245 
   11246 MAN_SUBSTS="\
   11247 	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
   11248 	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
   11249 	-e 's|__xservername__|Xorg|g' \
   11250 	-e 's|__xconfigfile__|xorg.conf|g' \
   11251 	-e 's|__projectroot__|\$(prefix)|g' \
   11252 	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
   11253 	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
   11254 	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
   11255 	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
   11256 	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
   11257 	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
   11258 	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
   11259 
   11260 
   11261 
   11262 # Check whether --enable-silent-rules was given.
   11263 if test ${enable_silent_rules+y}
   11264 then :
   11265   enableval=$enable_silent_rules;
   11266 fi
   11267 
   11268 case $enable_silent_rules in # (((
   11269   yes) AM_DEFAULT_VERBOSITY=0;;
   11270    no) AM_DEFAULT_VERBOSITY=1;;
   11271     *) AM_DEFAULT_VERBOSITY=0;;
   11272 esac
   11273 am_make=${MAKE-make}
   11274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
   11275 printf %s "checking whether $am_make supports nested variables... " >&6; }
   11276 if test ${am_cv_make_support_nested_variables+y}
   11277 then :
   11278   printf %s "(cached) " >&6
   11279 else $as_nop
   11280   if printf "%s\n" 'TRUE=$(BAR$(V))
   11281 BAR0=false
   11282 BAR1=true
   11283 V=1
   11284 am__doit:
   11285 	@$(TRUE)
   11286 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
   11287   am_cv_make_support_nested_variables=yes
   11288 else
   11289   am_cv_make_support_nested_variables=no
   11290 fi
   11291 fi
   11292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
   11293 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
   11294 if test $am_cv_make_support_nested_variables = yes; then
   11295     AM_V='$(V)'
   11296   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
   11297 else
   11298   AM_V=$AM_DEFAULT_VERBOSITY
   11299   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
   11300 fi
   11301 AM_BACKSLASH='\'
   11302 
   11303 
   11304 
   11305 # Avoid stat() failures if a file has a size that doesn't fit in 32-bits
   11306 # Check whether --enable-largefile was given.
   11307 if test ${enable_largefile+y}
   11308 then :
   11309   enableval=$enable_largefile;
   11310 fi
   11311 
   11312 if test "$enable_largefile" != no; then
   11313 
   11314   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
   11315 printf %s "checking for special C compiler options needed for large files... " >&6; }
   11316 if test ${ac_cv_sys_largefile_CC+y}
   11317 then :
   11318   printf %s "(cached) " >&6
   11319 else $as_nop
   11320   ac_cv_sys_largefile_CC=no
   11321      if test "$GCC" != yes; then
   11322        ac_save_CC=$CC
   11323        while :; do
   11324 	 # IRIX 6.2 and later do not support large files by default,
   11325 	 # so use the C compiler's -n32 option if that helps.
   11326 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11327 /* end confdefs.h.  */
   11328 #include <sys/types.h>
   11329  /* Check that off_t can represent 2**63 - 1 correctly.
   11330     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   11331     since some C++ compilers masquerading as C compilers
   11332     incorrectly reject 9223372036854775807.  */
   11333 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
   11334   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   11335 		       && LARGE_OFF_T % 2147483647 == 1)
   11336 		      ? 1 : -1];
   11337 int
   11338 main (void)
   11339 {
   11340 
   11341   ;
   11342   return 0;
   11343 }
   11344 _ACEOF
   11345 	 if ac_fn_c_try_compile "$LINENO"
   11346 then :
   11347   break
   11348 fi
   11349 rm -f core conftest.err conftest.$ac_objext conftest.beam
   11350 	 CC="$CC -n32"
   11351 	 if ac_fn_c_try_compile "$LINENO"
   11352 then :
   11353   ac_cv_sys_largefile_CC=' -n32'; break
   11354 fi
   11355 rm -f core conftest.err conftest.$ac_objext conftest.beam
   11356 	 break
   11357        done
   11358        CC=$ac_save_CC
   11359        rm -f conftest.$ac_ext
   11360     fi
   11361 fi
   11362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
   11363 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
   11364   if test "$ac_cv_sys_largefile_CC" != no; then
   11365     CC=$CC$ac_cv_sys_largefile_CC
   11366   fi
   11367 
   11368   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
   11369 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
   11370 if test ${ac_cv_sys_file_offset_bits+y}
   11371 then :
   11372   printf %s "(cached) " >&6
   11373 else $as_nop
   11374   while :; do
   11375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11376 /* end confdefs.h.  */
   11377 #include <sys/types.h>
   11378  /* Check that off_t can represent 2**63 - 1 correctly.
   11379     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   11380     since some C++ compilers masquerading as C compilers
   11381     incorrectly reject 9223372036854775807.  */
   11382 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
   11383   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   11384 		       && LARGE_OFF_T % 2147483647 == 1)
   11385 		      ? 1 : -1];
   11386 int
   11387 main (void)
   11388 {
   11389 
   11390   ;
   11391   return 0;
   11392 }
   11393 _ACEOF
   11394 if ac_fn_c_try_compile "$LINENO"
   11395 then :
   11396   ac_cv_sys_file_offset_bits=no; break
   11397 fi
   11398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   11399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11400 /* end confdefs.h.  */
   11401 #define _FILE_OFFSET_BITS 64
   11402 #include <sys/types.h>
   11403  /* Check that off_t can represent 2**63 - 1 correctly.
   11404     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   11405     since some C++ compilers masquerading as C compilers
   11406     incorrectly reject 9223372036854775807.  */
   11407 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
   11408   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   11409 		       && LARGE_OFF_T % 2147483647 == 1)
   11410 		      ? 1 : -1];
   11411 int
   11412 main (void)
   11413 {
   11414 
   11415   ;
   11416   return 0;
   11417 }
   11418 _ACEOF
   11419 if ac_fn_c_try_compile "$LINENO"
   11420 then :
   11421   ac_cv_sys_file_offset_bits=64; break
   11422 fi
   11423 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   11424   ac_cv_sys_file_offset_bits=unknown
   11425   break
   11426 done
   11427 fi
   11428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
   11429 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
   11430 case $ac_cv_sys_file_offset_bits in #(
   11431   no | unknown) ;;
   11432   *)
   11433 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
   11434 ;;
   11435 esac
   11436 rm -rf conftest*
   11437   if test $ac_cv_sys_file_offset_bits = unknown; then
   11438     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
   11439 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
   11440 if test ${ac_cv_sys_large_files+y}
   11441 then :
   11442   printf %s "(cached) " >&6
   11443 else $as_nop
   11444   while :; do
   11445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11446 /* end confdefs.h.  */
   11447 #include <sys/types.h>
   11448  /* Check that off_t can represent 2**63 - 1 correctly.
   11449     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   11450     since some C++ compilers masquerading as C compilers
   11451     incorrectly reject 9223372036854775807.  */
   11452 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
   11453   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   11454 		       && LARGE_OFF_T % 2147483647 == 1)
   11455 		      ? 1 : -1];
   11456 int
   11457 main (void)
   11458 {
   11459 
   11460   ;
   11461   return 0;
   11462 }
   11463 _ACEOF
   11464 if ac_fn_c_try_compile "$LINENO"
   11465 then :
   11466   ac_cv_sys_large_files=no; break
   11467 fi
   11468 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   11469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11470 /* end confdefs.h.  */
   11471 #define _LARGE_FILES 1
   11472 #include <sys/types.h>
   11473  /* Check that off_t can represent 2**63 - 1 correctly.
   11474     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   11475     since some C++ compilers masquerading as C compilers
   11476     incorrectly reject 9223372036854775807.  */
   11477 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
   11478   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   11479 		       && LARGE_OFF_T % 2147483647 == 1)
   11480 		      ? 1 : -1];
   11481 int
   11482 main (void)
   11483 {
   11484 
   11485   ;
   11486   return 0;
   11487 }
   11488 _ACEOF
   11489 if ac_fn_c_try_compile "$LINENO"
   11490 then :
   11491   ac_cv_sys_large_files=1; break
   11492 fi
   11493 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   11494   ac_cv_sys_large_files=unknown
   11495   break
   11496 done
   11497 fi
   11498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
   11499 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
   11500 case $ac_cv_sys_large_files in #(
   11501   no | unknown) ;;
   11502   *)
   11503 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
   11504 ;;
   11505 esac
   11506 rm -rf conftest*
   11507   fi
   11508 fi
   11509 
   11510 
   11511 # Checks for pkg-config packages
   11512 
   11513 pkg_failed=no
   11514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XPROTO" >&5
   11515 printf %s "checking for XPROTO... " >&6; }
   11516 
   11517 if test -n "$XPROTO_CFLAGS"; then
   11518     pkg_cv_XPROTO_CFLAGS="$XPROTO_CFLAGS"
   11519  elif test -n "$PKG_CONFIG"; then
   11520     if test -n "$PKG_CONFIG" && \
   11521     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17\""; } >&5
   11522   ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17") 2>&5
   11523   ac_status=$?
   11524   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   11525   test $ac_status = 0; }; then
   11526   pkg_cv_XPROTO_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17" 2>/dev/null`
   11527 		      test "x$?" != "x0" && pkg_failed=yes
   11528 else
   11529   pkg_failed=yes
   11530 fi
   11531  else
   11532     pkg_failed=untried
   11533 fi
   11534 if test -n "$XPROTO_LIBS"; then
   11535     pkg_cv_XPROTO_LIBS="$XPROTO_LIBS"
   11536  elif test -n "$PKG_CONFIG"; then
   11537     if test -n "$PKG_CONFIG" && \
   11538     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17\""; } >&5
   11539   ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17") 2>&5
   11540   ac_status=$?
   11541   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   11542   test $ac_status = 0; }; then
   11543   pkg_cv_XPROTO_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17" 2>/dev/null`
   11544 		      test "x$?" != "x0" && pkg_failed=yes
   11545 else
   11546   pkg_failed=yes
   11547 fi
   11548  else
   11549     pkg_failed=untried
   11550 fi
   11551 
   11552 
   11553 
   11554 if test $pkg_failed = yes; then
   11555    	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11556 printf "%s\n" "no" >&6; }
   11557 
   11558 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   11559         _pkg_short_errors_supported=yes
   11560 else
   11561         _pkg_short_errors_supported=no
   11562 fi
   11563         if test $_pkg_short_errors_supported = yes; then
   11564 	        XPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.17" 2>&1`
   11565         else
   11566 	        XPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.17" 2>&1`
   11567         fi
   11568 	# Put the nasty error message in config.log where it belongs
   11569 	echo "$XPROTO_PKG_ERRORS" >&5
   11570 
   11571 	as_fn_error $? "Package requirements (xproto >= 7.0.17) were not met:
   11572 
   11573 $XPROTO_PKG_ERRORS
   11574 
   11575 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   11576 installed software in a non-standard prefix.
   11577 
   11578 Alternatively, you may set the environment variables XPROTO_CFLAGS
   11579 and XPROTO_LIBS to avoid the need to call pkg-config.
   11580 See the pkg-config man page for more details." "$LINENO" 5
   11581 elif test $pkg_failed = untried; then
   11582      	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11583 printf "%s\n" "no" >&6; }
   11584 	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   11585 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   11586 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   11587 is in your PATH or set the PKG_CONFIG environment variable to the full
   11588 path to pkg-config.
   11589 
   11590 Alternatively, you may set the environment variables XPROTO_CFLAGS
   11591 and XPROTO_LIBS to avoid the need to call pkg-config.
   11592 See the pkg-config man page for more details.
   11593 
   11594 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   11595 See \`config.log' for more details" "$LINENO" 5; }
   11596 else
   11597 	XPROTO_CFLAGS=$pkg_cv_XPROTO_CFLAGS
   11598 	XPROTO_LIBS=$pkg_cv_XPROTO_LIBS
   11599         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11600 printf "%s\n" "yes" >&6; }
   11601 
   11602 fi
   11603 
   11604 # Checks for non-standard functions and fallback to libbsd if we can
   11605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11606 /* end confdefs.h.  */
   11607 
   11608 /* Override any GCC internal prototype to avoid an error.
   11609    Use char because int might match the return type of a GCC
   11610    builtin and then its argument prototype would still apply.  */
   11611 char strlcpy ();
   11612 int
   11613 main (void)
   11614 {
   11615 return strlcpy ();
   11616   ;
   11617   return 0;
   11618 }
   11619 _ACEOF
   11620 if ac_fn_c_try_link "$LINENO"
   11621 then :
   11622   TRY_LIBBSD="no"
   11623 else $as_nop
   11624   TRY_LIBBSD="yes"
   11625 fi
   11626 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   11627     conftest$ac_exeext conftest.$ac_ext
   11628 if test "x$TRY_LIBBSD" = "xyes"
   11629 then :
   11630 
   11631 pkg_failed=no
   11632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBBSD" >&5
   11633 printf %s "checking for LIBBSD... " >&6; }
   11634 
   11635 if test -n "$LIBBSD_CFLAGS"; then
   11636     pkg_cv_LIBBSD_CFLAGS="$LIBBSD_CFLAGS"
   11637  elif test -n "$PKG_CONFIG"; then
   11638     if test -n "$PKG_CONFIG" && \
   11639     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5
   11640   ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5
   11641   ac_status=$?
   11642   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   11643   test $ac_status = 0; }; then
   11644   pkg_cv_LIBBSD_CFLAGS=`$PKG_CONFIG --cflags "libbsd-overlay" 2>/dev/null`
   11645 		      test "x$?" != "x0" && pkg_failed=yes
   11646 else
   11647   pkg_failed=yes
   11648 fi
   11649  else
   11650     pkg_failed=untried
   11651 fi
   11652 if test -n "$LIBBSD_LIBS"; then
   11653     pkg_cv_LIBBSD_LIBS="$LIBBSD_LIBS"
   11654  elif test -n "$PKG_CONFIG"; then
   11655     if test -n "$PKG_CONFIG" && \
   11656     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5
   11657   ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5
   11658   ac_status=$?
   11659   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   11660   test $ac_status = 0; }; then
   11661   pkg_cv_LIBBSD_LIBS=`$PKG_CONFIG --libs "libbsd-overlay" 2>/dev/null`
   11662 		      test "x$?" != "x0" && pkg_failed=yes
   11663 else
   11664   pkg_failed=yes
   11665 fi
   11666  else
   11667     pkg_failed=untried
   11668 fi
   11669 
   11670 
   11671 
   11672 if test $pkg_failed = yes; then
   11673    	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11674 printf "%s\n" "no" >&6; }
   11675 
   11676 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   11677         _pkg_short_errors_supported=yes
   11678 else
   11679         _pkg_short_errors_supported=no
   11680 fi
   11681         if test $_pkg_short_errors_supported = yes; then
   11682 	        LIBBSD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libbsd-overlay" 2>&1`
   11683         else
   11684 	        LIBBSD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libbsd-overlay" 2>&1`
   11685         fi
   11686 	# Put the nasty error message in config.log where it belongs
   11687 	echo "$LIBBSD_PKG_ERRORS" >&5
   11688 
   11689 	:
   11690 elif test $pkg_failed = untried; then
   11691      	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11692 printf "%s\n" "no" >&6; }
   11693 	:
   11694 else
   11695 	LIBBSD_CFLAGS=$pkg_cv_LIBBSD_CFLAGS
   11696 	LIBBSD_LIBS=$pkg_cv_LIBBSD_LIBS
   11697         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11698 printf "%s\n" "yes" >&6; }
   11699 	CFLAGS="$CFLAGS $LIBBSD_CFLAGS" ; LIBS="$LIBS $LIBBSD_LIBS"
   11700 fi
   11701 fi
   11702 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
   11703 if test "x$ac_cv_func_strlcat" = xyes
   11704 then :
   11705   printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
   11706 
   11707 fi
   11708 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
   11709 if test "x$ac_cv_func_strlcpy" = xyes
   11710 then :
   11711   printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
   11712 
   11713 fi
   11714 
   11715 
   11716 ac_config_files="$ac_config_files Makefile"
   11717 
   11718 cat >confcache <<\_ACEOF
   11719 # This file is a shell script that caches the results of configure
   11720 # tests run on this system so they can be shared between configure
   11721 # scripts and configure runs, see configure's option --config-cache.
   11722 # It is not useful on other systems.  If it contains results you don't
   11723 # want to keep, you may remove or edit it.
   11724 #
   11725 # config.status only pays attention to the cache file if you give it
   11726 # the --recheck option to rerun configure.
   11727 #
   11728 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   11729 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   11730 # following values.
   11731 
   11732 _ACEOF
   11733 
   11734 # The following way of writing the cache mishandles newlines in values,
   11735 # but we know of no workaround that is simple, portable, and efficient.
   11736 # So, we kill variables containing newlines.
   11737 # Ultrix sh set writes to stderr and can't be redirected directly,
   11738 # and sets the high bit in the cache file unless we assign to the vars.
   11739 (
   11740   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   11741     eval ac_val=\$$ac_var
   11742     case $ac_val in #(
   11743     *${as_nl}*)
   11744       case $ac_var in #(
   11745       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   11746 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   11747       esac
   11748       case $ac_var in #(
   11749       _ | IFS | as_nl) ;; #(
   11750       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   11751       *) { eval $ac_var=; unset $ac_var;} ;;
   11752       esac ;;
   11753     esac
   11754   done
   11755 
   11756   (set) 2>&1 |
   11757     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   11758     *${as_nl}ac_space=\ *)
   11759       # `set' does not quote correctly, so add quotes: double-quote
   11760       # substitution turns \\\\ into \\, and sed turns \\ into \.
   11761       sed -n \
   11762 	"s/'/'\\\\''/g;
   11763 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   11764       ;; #(
   11765     *)
   11766       # `set' quotes correctly as required by POSIX, so do not add quotes.
   11767       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   11768       ;;
   11769     esac |
   11770     sort
   11771 ) |
   11772   sed '
   11773      /^ac_cv_env_/b end
   11774      t clear
   11775      :clear
   11776      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
   11777      t end
   11778      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   11779      :end' >>confcache
   11780 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   11781   if test -w "$cache_file"; then
   11782     if test "x$cache_file" != "x/dev/null"; then
   11783       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   11784 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
   11785       if test ! -f "$cache_file" || test -h "$cache_file"; then
   11786 	cat confcache >"$cache_file"
   11787       else
   11788         case $cache_file in #(
   11789         */* | ?:*)
   11790 	  mv -f confcache "$cache_file"$$ &&
   11791 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   11792         *)
   11793 	  mv -f confcache "$cache_file" ;;
   11794 	esac
   11795       fi
   11796     fi
   11797   else
   11798     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   11799 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
   11800   fi
   11801 fi
   11802 rm -f confcache
   11803 
   11804 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   11805 # Let make expand exec_prefix.
   11806 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   11807 
   11808 DEFS=-DHAVE_CONFIG_H
   11809 
   11810 ac_libobjs=
   11811 ac_ltlibobjs=
   11812 U=
   11813 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   11814   # 1. Remove the extension, and $U if already installed.
   11815   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   11816   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
   11817   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   11818   #    will be set to the directory where LIBOBJS objects are built.
   11819   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   11820   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   11821 done
   11822 LIBOBJS=$ac_libobjs
   11823 
   11824 LTLIBOBJS=$ac_ltlibobjs
   11825 
   11826 
   11827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
   11828 printf %s "checking that generated files are newer than configure... " >&6; }
   11829    if test -n "$am_sleep_pid"; then
   11830      # Hide warnings about reused PIDs.
   11831      wait $am_sleep_pid 2>/dev/null
   11832    fi
   11833    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
   11834 printf "%s\n" "done" >&6; }
   11835 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
   11836   as_fn_error $? "conditional \"AMDEP\" was never defined.
   11837 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   11838 fi
   11839 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
   11840   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
   11841 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   11842 fi
   11843  if test -n "$EXEEXT"; then
   11844   am__EXEEXT_TRUE=
   11845   am__EXEEXT_FALSE='#'
   11846 else
   11847   am__EXEEXT_TRUE='#'
   11848   am__EXEEXT_FALSE=
   11849 fi
   11850 
   11851 
   11852 : "${CONFIG_STATUS=./config.status}"
   11853 ac_write_fail=0
   11854 ac_clean_files_save=$ac_clean_files
   11855 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   11856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   11857 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
   11858 as_write_fail=0
   11859 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   11860 #! $SHELL
   11861 # Generated by $as_me.
   11862 # Run this file to recreate the current configuration.
   11863 # Compiler output produced by configure, useful for debugging
   11864 # configure, is in config.log if it exists.
   11865 
   11866 debug=false
   11867 ac_cs_recheck=false
   11868 ac_cs_silent=false
   11869 
   11870 SHELL=\${CONFIG_SHELL-$SHELL}
   11871 export SHELL
   11872 _ASEOF
   11873 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   11874 ## -------------------- ##
   11875 ## M4sh Initialization. ##
   11876 ## -------------------- ##
   11877 
   11878 # Be more Bourne compatible
   11879 DUALCASE=1; export DUALCASE # for MKS sh
   11880 as_nop=:
   11881 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
   11882 then :
   11883   emulate sh
   11884   NULLCMD=:
   11885   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   11886   # is contrary to our usage.  Disable this feature.
   11887   alias -g '${1+"$@"}'='"$@"'
   11888   setopt NO_GLOB_SUBST
   11889 else $as_nop
   11890   case `(set -o) 2>/dev/null` in #(
   11891   *posix*) :
   11892     set -o posix ;; #(
   11893   *) :
   11894      ;;
   11895 esac
   11896 fi
   11897 
   11898 
   11899 
   11900 # Reset variables that may have inherited troublesome values from
   11901 # the environment.
   11902 
   11903 # IFS needs to be set, to space, tab, and newline, in precisely that order.
   11904 # (If _AS_PATH_WALK were called with IFS unset, it would have the
   11905 # side effect of setting IFS to empty, thus disabling word splitting.)
   11906 # Quoting is to prevent editors from complaining about space-tab.
   11907 as_nl='
   11908 '
   11909 export as_nl
   11910 IFS=" ""	$as_nl"
   11911 
   11912 PS1='$ '
   11913 PS2='> '
   11914 PS4='+ '
   11915 
   11916 # Ensure predictable behavior from utilities with locale-dependent output.
   11917 LC_ALL=C
   11918 export LC_ALL
   11919 LANGUAGE=C
   11920 export LANGUAGE
   11921 
   11922 # We cannot yet rely on "unset" to work, but we need these variables
   11923 # to be unset--not just set to an empty or harmless value--now, to
   11924 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
   11925 # also avoids known problems related to "unset" and subshell syntax
   11926 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
   11927 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
   11928 do eval test \${$as_var+y} \
   11929   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   11930 done
   11931 
   11932 # Ensure that fds 0, 1, and 2 are open.
   11933 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
   11934 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
   11935 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
   11936 
   11937 # The user is always right.
   11938 if ${PATH_SEPARATOR+false} :; then
   11939   PATH_SEPARATOR=:
   11940   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   11941     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   11942       PATH_SEPARATOR=';'
   11943   }
   11944 fi
   11945 
   11946 
   11947 # Find who we are.  Look in the path if we contain no directory separator.
   11948 as_myself=
   11949 case $0 in #((
   11950   *[\\/]* ) as_myself=$0 ;;
   11951   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11952 for as_dir in $PATH
   11953 do
   11954   IFS=$as_save_IFS
   11955   case $as_dir in #(((
   11956     '') as_dir=./ ;;
   11957     */) ;;
   11958     *) as_dir=$as_dir/ ;;
   11959   esac
   11960     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
   11961   done
   11962 IFS=$as_save_IFS
   11963 
   11964      ;;
   11965 esac
   11966 # We did not find ourselves, most probably we were run as `sh COMMAND'
   11967 # in which case we are not to be found in the path.
   11968 if test "x$as_myself" = x; then
   11969   as_myself=$0
   11970 fi
   11971 if test ! -f "$as_myself"; then
   11972   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   11973   exit 1
   11974 fi
   11975 
   11976 
   11977 
   11978 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   11979 # ----------------------------------------
   11980 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   11981 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   11982 # script with STATUS, using 1 if that was 0.
   11983 as_fn_error ()
   11984 {
   11985   as_status=$1; test $as_status -eq 0 && as_status=1
   11986   if test "$4"; then
   11987     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   11988     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   11989   fi
   11990   printf "%s\n" "$as_me: error: $2" >&2
   11991   as_fn_exit $as_status
   11992 } # as_fn_error
   11993 
   11994 
   11995 
   11996 # as_fn_set_status STATUS
   11997 # -----------------------
   11998 # Set $? to STATUS, without forking.
   11999 as_fn_set_status ()
   12000 {
   12001   return $1
   12002 } # as_fn_set_status
   12003 
   12004 # as_fn_exit STATUS
   12005 # -----------------
   12006 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   12007 as_fn_exit ()
   12008 {
   12009   set +e
   12010   as_fn_set_status $1
   12011   exit $1
   12012 } # as_fn_exit
   12013 
   12014 # as_fn_unset VAR
   12015 # ---------------
   12016 # Portably unset VAR.
   12017 as_fn_unset ()
   12018 {
   12019   { eval $1=; unset $1;}
   12020 }
   12021 as_unset=as_fn_unset
   12022 
   12023 # as_fn_append VAR VALUE
   12024 # ----------------------
   12025 # Append the text in VALUE to the end of the definition contained in VAR. Take
   12026 # advantage of any shell optimizations that allow amortized linear growth over
   12027 # repeated appends, instead of the typical quadratic growth present in naive
   12028 # implementations.
   12029 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
   12030 then :
   12031   eval 'as_fn_append ()
   12032   {
   12033     eval $1+=\$2
   12034   }'
   12035 else $as_nop
   12036   as_fn_append ()
   12037   {
   12038     eval $1=\$$1\$2
   12039   }
   12040 fi # as_fn_append
   12041 
   12042 # as_fn_arith ARG...
   12043 # ------------------
   12044 # Perform arithmetic evaluation on the ARGs, and store the result in the
   12045 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   12046 # must be portable across $(()) and expr.
   12047 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
   12048 then :
   12049   eval 'as_fn_arith ()
   12050   {
   12051     as_val=$(( $* ))
   12052   }'
   12053 else $as_nop
   12054   as_fn_arith ()
   12055   {
   12056     as_val=`expr "$@" || test $? -eq 1`
   12057   }
   12058 fi # as_fn_arith
   12059 
   12060 
   12061 if expr a : '\(a\)' >/dev/null 2>&1 &&
   12062    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   12063   as_expr=expr
   12064 else
   12065   as_expr=false
   12066 fi
   12067 
   12068 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   12069   as_basename=basename
   12070 else
   12071   as_basename=false
   12072 fi
   12073 
   12074 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   12075   as_dirname=dirname
   12076 else
   12077   as_dirname=false
   12078 fi
   12079 
   12080 as_me=`$as_basename -- "$0" ||
   12081 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   12082 	 X"$0" : 'X\(//\)$' \| \
   12083 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   12084 printf "%s\n" X/"$0" |
   12085     sed '/^.*\/\([^/][^/]*\)\/*$/{
   12086 	    s//\1/
   12087 	    q
   12088 	  }
   12089 	  /^X\/\(\/\/\)$/{
   12090 	    s//\1/
   12091 	    q
   12092 	  }
   12093 	  /^X\/\(\/\).*/{
   12094 	    s//\1/
   12095 	    q
   12096 	  }
   12097 	  s/.*/./; q'`
   12098 
   12099 # Avoid depending upon Character Ranges.
   12100 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   12101 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   12102 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   12103 as_cr_digits='0123456789'
   12104 as_cr_alnum=$as_cr_Letters$as_cr_digits
   12105 
   12106 
   12107 # Determine whether it's possible to make 'echo' print without a newline.
   12108 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
   12109 # for compatibility with existing Makefiles.
   12110 ECHO_C= ECHO_N= ECHO_T=
   12111 case `echo -n x` in #(((((
   12112 -n*)
   12113   case `echo 'xy\c'` in
   12114   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   12115   xy)  ECHO_C='\c';;
   12116   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   12117        ECHO_T='	';;
   12118   esac;;
   12119 *)
   12120   ECHO_N='-n';;
   12121 esac
   12122 
   12123 # For backward compatibility with old third-party macros, we provide
   12124 # the shell variables $as_echo and $as_echo_n.  New code should use
   12125 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
   12126 as_echo='printf %s\n'
   12127 as_echo_n='printf %s'
   12128 
   12129 rm -f conf$$ conf$$.exe conf$$.file
   12130 if test -d conf$$.dir; then
   12131   rm -f conf$$.dir/conf$$.file
   12132 else
   12133   rm -f conf$$.dir
   12134   mkdir conf$$.dir 2>/dev/null
   12135 fi
   12136 if (echo >conf$$.file) 2>/dev/null; then
   12137   if ln -s conf$$.file conf$$ 2>/dev/null; then
   12138     as_ln_s='ln -s'
   12139     # ... but there are two gotchas:
   12140     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   12141     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   12142     # In both cases, we have to default to `cp -pR'.
   12143     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   12144       as_ln_s='cp -pR'
   12145   elif ln conf$$.file conf$$ 2>/dev/null; then
   12146     as_ln_s=ln
   12147   else
   12148     as_ln_s='cp -pR'
   12149   fi
   12150 else
   12151   as_ln_s='cp -pR'
   12152 fi
   12153 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   12154 rmdir conf$$.dir 2>/dev/null
   12155 
   12156 
   12157 # as_fn_mkdir_p
   12158 # -------------
   12159 # Create "$as_dir" as a directory, including parents if necessary.
   12160 as_fn_mkdir_p ()
   12161 {
   12162 
   12163   case $as_dir in #(
   12164   -*) as_dir=./$as_dir;;
   12165   esac
   12166   test -d "$as_dir" || eval $as_mkdir_p || {
   12167     as_dirs=
   12168     while :; do
   12169       case $as_dir in #(
   12170       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   12171       *) as_qdir=$as_dir;;
   12172       esac
   12173       as_dirs="'$as_qdir' $as_dirs"
   12174       as_dir=`$as_dirname -- "$as_dir" ||
   12175 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   12176 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   12177 	 X"$as_dir" : 'X\(//\)$' \| \
   12178 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   12179 printf "%s\n" X"$as_dir" |
   12180     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   12181 	    s//\1/
   12182 	    q
   12183 	  }
   12184 	  /^X\(\/\/\)[^/].*/{
   12185 	    s//\1/
   12186 	    q
   12187 	  }
   12188 	  /^X\(\/\/\)$/{
   12189 	    s//\1/
   12190 	    q
   12191 	  }
   12192 	  /^X\(\/\).*/{
   12193 	    s//\1/
   12194 	    q
   12195 	  }
   12196 	  s/.*/./; q'`
   12197       test -d "$as_dir" && break
   12198     done
   12199     test -z "$as_dirs" || eval "mkdir $as_dirs"
   12200   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   12201 
   12202 
   12203 } # as_fn_mkdir_p
   12204 if mkdir -p . 2>/dev/null; then
   12205   as_mkdir_p='mkdir -p "$as_dir"'
   12206 else
   12207   test -d ./-p && rmdir ./-p
   12208   as_mkdir_p=false
   12209 fi
   12210 
   12211 
   12212 # as_fn_executable_p FILE
   12213 # -----------------------
   12214 # Test if FILE is an executable regular file.
   12215 as_fn_executable_p ()
   12216 {
   12217   test -f "$1" && test -x "$1"
   12218 } # as_fn_executable_p
   12219 as_test_x='test -x'
   12220 as_executable_p=as_fn_executable_p
   12221 
   12222 # Sed expression to map a string onto a valid CPP name.
   12223 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   12224 
   12225 # Sed expression to map a string onto a valid variable name.
   12226 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   12227 
   12228 
   12229 exec 6>&1
   12230 ## ----------------------------------- ##
   12231 ## Main body of $CONFIG_STATUS script. ##
   12232 ## ----------------------------------- ##
   12233 _ASEOF
   12234 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   12235 
   12236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   12237 # Save the log message, to keep $0 and so on meaningful, and to
   12238 # report actual input values of CONFIG_FILES etc. instead of their
   12239 # values after options handling.
   12240 ac_log="
   12241 This file was extended by lndir $as_me 1.0.4, which was
   12242 generated by GNU Autoconf 2.71.  Invocation command line was
   12243 
   12244   CONFIG_FILES    = $CONFIG_FILES
   12245   CONFIG_HEADERS  = $CONFIG_HEADERS
   12246   CONFIG_LINKS    = $CONFIG_LINKS
   12247   CONFIG_COMMANDS = $CONFIG_COMMANDS
   12248   $ $0 $@
   12249 
   12250 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   12251 "
   12252 
   12253 _ACEOF
   12254 
   12255 case $ac_config_files in *"
   12256 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   12257 esac
   12258 
   12259 case $ac_config_headers in *"
   12260 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   12261 esac
   12262 
   12263 
   12264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   12265 # Files that config.status was made for.
   12266 config_files="$ac_config_files"
   12267 config_headers="$ac_config_headers"
   12268 config_commands="$ac_config_commands"
   12269 
   12270 _ACEOF
   12271 
   12272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   12273 ac_cs_usage="\
   12274 \`$as_me' instantiates files and other configuration actions
   12275 from templates according to the current configuration.  Unless the files
   12276 and actions are specified as TAGs, all are instantiated by default.
   12277 
   12278 Usage: $0 [OPTION]... [TAG]...
   12279 
   12280   -h, --help       print this help, then exit
   12281   -V, --version    print version number and configuration settings, then exit
   12282       --config     print configuration, then exit
   12283   -q, --quiet, --silent
   12284                    do not print progress messages
   12285   -d, --debug      don't remove temporary files
   12286       --recheck    update $as_me by reconfiguring in the same conditions
   12287       --file=FILE[:TEMPLATE]
   12288                    instantiate the configuration file FILE
   12289       --header=FILE[:TEMPLATE]
   12290                    instantiate the configuration header FILE
   12291 
   12292 Configuration files:
   12293 $config_files
   12294 
   12295 Configuration headers:
   12296 $config_headers
   12297 
   12298 Configuration commands:
   12299 $config_commands
   12300 
   12301 Report bugs to <https://gitlab.freedesktop.org/xorg/util/lndir/-/issues>."
   12302 
   12303 _ACEOF
   12304 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
   12305 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
   12306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   12307 ac_cs_config='$ac_cs_config_escaped'
   12308 ac_cs_version="\\
   12309 lndir config.status 1.0.4
   12310 configured by $0, generated by GNU Autoconf 2.71,
   12311   with options \\"\$ac_cs_config\\"
   12312 
   12313 Copyright (C) 2021 Free Software Foundation, Inc.
   12314 This config.status script is free software; the Free Software Foundation
   12315 gives unlimited permission to copy, distribute and modify it."
   12316 
   12317 ac_pwd='$ac_pwd'
   12318 srcdir='$srcdir'
   12319 INSTALL='$INSTALL'
   12320 MKDIR_P='$MKDIR_P'
   12321 AWK='$AWK'
   12322 test -n "\$AWK" || AWK=awk
   12323 _ACEOF
   12324 
   12325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   12326 # The default lists apply if the user does not specify any file.
   12327 ac_need_defaults=:
   12328 while test $# != 0
   12329 do
   12330   case $1 in
   12331   --*=?*)
   12332     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   12333     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   12334     ac_shift=:
   12335     ;;
   12336   --*=)
   12337     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   12338     ac_optarg=
   12339     ac_shift=:
   12340     ;;
   12341   *)
   12342     ac_option=$1
   12343     ac_optarg=$2
   12344     ac_shift=shift
   12345     ;;
   12346   esac
   12347 
   12348   case $ac_option in
   12349   # Handling of the options.
   12350   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   12351     ac_cs_recheck=: ;;
   12352   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   12353     printf "%s\n" "$ac_cs_version"; exit ;;
   12354   --config | --confi | --conf | --con | --co | --c )
   12355     printf "%s\n" "$ac_cs_config"; exit ;;
   12356   --debug | --debu | --deb | --de | --d | -d )
   12357     debug=: ;;
   12358   --file | --fil | --fi | --f )
   12359     $ac_shift
   12360     case $ac_optarg in
   12361     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   12362     '') as_fn_error $? "missing file argument" ;;
   12363     esac
   12364     as_fn_append CONFIG_FILES " '$ac_optarg'"
   12365     ac_need_defaults=false;;
   12366   --header | --heade | --head | --hea )
   12367     $ac_shift
   12368     case $ac_optarg in
   12369     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   12370     esac
   12371     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   12372     ac_need_defaults=false;;
   12373   --he | --h)
   12374     # Conflict between --help and --header
   12375     as_fn_error $? "ambiguous option: \`$1'
   12376 Try \`$0 --help' for more information.";;
   12377   --help | --hel | -h )
   12378     printf "%s\n" "$ac_cs_usage"; exit ;;
   12379   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   12380   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   12381     ac_cs_silent=: ;;
   12382 
   12383   # This is an error.
   12384   -*) as_fn_error $? "unrecognized option: \`$1'
   12385 Try \`$0 --help' for more information." ;;
   12386 
   12387   *) as_fn_append ac_config_targets " $1"
   12388      ac_need_defaults=false ;;
   12389 
   12390   esac
   12391   shift
   12392 done
   12393 
   12394 ac_configure_extra_args=
   12395 
   12396 if $ac_cs_silent; then
   12397   exec 6>/dev/null
   12398   ac_configure_extra_args="$ac_configure_extra_args --silent"
   12399 fi
   12400 
   12401 _ACEOF
   12402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   12403 if \$ac_cs_recheck; then
   12404   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   12405   shift
   12406   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
   12407   CONFIG_SHELL='$SHELL'
   12408   export CONFIG_SHELL
   12409   exec "\$@"
   12410 fi
   12411 
   12412 _ACEOF
   12413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   12414 exec 5>>config.log
   12415 {
   12416   echo
   12417   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   12418 ## Running $as_me. ##
   12419 _ASBOX
   12420   printf "%s\n" "$ac_log"
   12421 } >&5
   12422 
   12423 _ACEOF
   12424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   12425 #
   12426 # INIT-COMMANDS
   12427 #
   12428 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
   12429 
   12430 _ACEOF
   12431 
   12432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   12433 
   12434 # Handling of arguments.
   12435 for ac_config_target in $ac_config_targets
   12436 do
   12437   case $ac_config_target in
   12438     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
   12439     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
   12440     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   12441 
   12442   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   12443   esac
   12444 done
   12445 
   12446 
   12447 # If the user did not use the arguments to specify the items to instantiate,
   12448 # then the envvar interface is used.  Set only those that are not.
   12449 # We use the long form for the default assignment because of an extremely
   12450 # bizarre bug on SunOS 4.1.3.
   12451 if $ac_need_defaults; then
   12452   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
   12453   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
   12454   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
   12455 fi
   12456 
   12457 # Have a temporary directory for convenience.  Make it in the build tree
   12458 # simply because there is no reason against having it here, and in addition,
   12459 # creating and moving files from /tmp can sometimes cause problems.
   12460 # Hook for its removal unless debugging.
   12461 # Note that there is a small window in which the directory will not be cleaned:
   12462 # after its creation but before its name has been assigned to `$tmp'.
   12463 $debug ||
   12464 {
   12465   tmp= ac_tmp=
   12466   trap 'exit_status=$?
   12467   : "${ac_tmp:=$tmp}"
   12468   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   12469 ' 0
   12470   trap 'as_fn_exit 1' 1 2 13 15
   12471 }
   12472 # Create a (secure) tmp directory for tmp files.
   12473 
   12474 {
   12475   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   12476   test -d "$tmp"
   12477 }  ||
   12478 {
   12479   tmp=./conf$$-$RANDOM
   12480   (umask 077 && mkdir "$tmp")
   12481 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   12482 ac_tmp=$tmp
   12483 
   12484 # Set up the scripts for CONFIG_FILES section.
   12485 # No need to generate them if there are no CONFIG_FILES.
   12486 # This happens for instance with `./config.status config.h'.
   12487 if test -n "$CONFIG_FILES"; then
   12488 
   12489 
   12490 ac_cr=`echo X | tr X '\015'`
   12491 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   12492 # But we know of no other shell where ac_cr would be empty at this
   12493 # point, so we can use a bashism as a fallback.
   12494 if test "x$ac_cr" = x; then
   12495   eval ac_cr=\$\'\\r\'
   12496 fi
   12497 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   12498 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   12499   ac_cs_awk_cr='\\r'
   12500 else
   12501   ac_cs_awk_cr=$ac_cr
   12502 fi
   12503 
   12504 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   12505 _ACEOF
   12506 
   12507 
   12508 {
   12509   echo "cat >conf$$subs.awk <<_ACEOF" &&
   12510   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   12511   echo "_ACEOF"
   12512 } >conf$$subs.sh ||
   12513   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   12514 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   12515 ac_delim='%!_!# '
   12516 for ac_last_try in false false false false false :; do
   12517   . ./conf$$subs.sh ||
   12518     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   12519 
   12520   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   12521   if test $ac_delim_n = $ac_delim_num; then
   12522     break
   12523   elif $ac_last_try; then
   12524     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   12525   else
   12526     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   12527   fi
   12528 done
   12529 rm -f conf$$subs.sh
   12530 
   12531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   12532 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   12533 _ACEOF
   12534 sed -n '
   12535 h
   12536 s/^/S["/; s/!.*/"]=/
   12537 p
   12538 g
   12539 s/^[^!]*!//
   12540 :repl
   12541 t repl
   12542 s/'"$ac_delim"'$//
   12543 t delim
   12544 :nl
   12545 h
   12546 s/\(.\{148\}\)..*/\1/
   12547 t more1
   12548 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   12549 p
   12550 n
   12551 b repl
   12552 :more1
   12553 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   12554 p
   12555 g
   12556 s/.\{148\}//
   12557 t nl
   12558 :delim
   12559 h
   12560 s/\(.\{148\}\)..*/\1/
   12561 t more2
   12562 s/["\\]/\\&/g; s/^/"/; s/$/"/
   12563 p
   12564 b
   12565 :more2
   12566 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   12567 p
   12568 g
   12569 s/.\{148\}//
   12570 t delim
   12571 ' <conf$$subs.awk | sed '
   12572 /^[^""]/{
   12573   N
   12574   s/\n//
   12575 }
   12576 ' >>$CONFIG_STATUS || ac_write_fail=1
   12577 rm -f conf$$subs.awk
   12578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   12579 _ACAWK
   12580 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   12581   for (key in S) S_is_set[key] = 1
   12582   FS = ""
   12583 
   12584 }
   12585 {
   12586   line = $ 0
   12587   nfields = split(line, field, "@")
   12588   substed = 0
   12589   len = length(field[1])
   12590   for (i = 2; i < nfields; i++) {
   12591     key = field[i]
   12592     keylen = length(key)
   12593     if (S_is_set[key]) {
   12594       value = S[key]
   12595       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   12596       len += length(value) + length(field[++i])
   12597       substed = 1
   12598     } else
   12599       len += 1 + keylen
   12600   }
   12601 
   12602   print line
   12603 }
   12604 
   12605 _ACAWK
   12606 _ACEOF
   12607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   12608 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   12609   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   12610 else
   12611   cat
   12612 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   12613   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   12614 _ACEOF
   12615 
   12616 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   12617 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   12618 # trailing colons and then remove the whole line if VPATH becomes empty
   12619 # (actually we leave an empty line to preserve line numbers).
   12620 if test "x$srcdir" = x.; then
   12621   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   12622 h
   12623 s///
   12624 s/^/:/
   12625 s/[	 ]*$/:/
   12626 s/:\$(srcdir):/:/g
   12627 s/:\${srcdir}:/:/g
   12628 s/:@srcdir@:/:/g
   12629 s/^:*//
   12630 s/:*$//
   12631 x
   12632 s/\(=[	 ]*\).*/\1/
   12633 G
   12634 s/\n//
   12635 s/^[^=]*=[	 ]*$//
   12636 }'
   12637 fi
   12638 
   12639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   12640 fi # test -n "$CONFIG_FILES"
   12641 
   12642 # Set up the scripts for CONFIG_HEADERS section.
   12643 # No need to generate them if there are no CONFIG_HEADERS.
   12644 # This happens for instance with `./config.status Makefile'.
   12645 if test -n "$CONFIG_HEADERS"; then
   12646 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   12647 BEGIN {
   12648 _ACEOF
   12649 
   12650 # Transform confdefs.h into an awk script `defines.awk', embedded as
   12651 # here-document in config.status, that substitutes the proper values into
   12652 # config.h.in to produce config.h.
   12653 
   12654 # Create a delimiter string that does not exist in confdefs.h, to ease
   12655 # handling of long lines.
   12656 ac_delim='%!_!# '
   12657 for ac_last_try in false false :; do
   12658   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   12659   if test -z "$ac_tt"; then
   12660     break
   12661   elif $ac_last_try; then
   12662     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   12663   else
   12664     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   12665   fi
   12666 done
   12667 
   12668 # For the awk script, D is an array of macro values keyed by name,
   12669 # likewise P contains macro parameters if any.  Preserve backslash
   12670 # newline sequences.
   12671 
   12672 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   12673 sed -n '
   12674 s/.\{148\}/&'"$ac_delim"'/g
   12675 t rset
   12676 :rset
   12677 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   12678 t def
   12679 d
   12680 :def
   12681 s/\\$//
   12682 t bsnl
   12683 s/["\\]/\\&/g
   12684 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   12685 D["\1"]=" \3"/p
   12686 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   12687 d
   12688 :bsnl
   12689 s/["\\]/\\&/g
   12690 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   12691 D["\1"]=" \3\\\\\\n"\\/p
   12692 t cont
   12693 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   12694 t cont
   12695 d
   12696 :cont
   12697 n
   12698 s/.\{148\}/&'"$ac_delim"'/g
   12699 t clear
   12700 :clear
   12701 s/\\$//
   12702 t bsnlc
   12703 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   12704 d
   12705 :bsnlc
   12706 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   12707 b cont
   12708 ' <confdefs.h | sed '
   12709 s/'"$ac_delim"'/"\\\
   12710 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   12711 
   12712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   12713   for (key in D) D_is_set[key] = 1
   12714   FS = ""
   12715 }
   12716 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   12717   line = \$ 0
   12718   split(line, arg, " ")
   12719   if (arg[1] == "#") {
   12720     defundef = arg[2]
   12721     mac1 = arg[3]
   12722   } else {
   12723     defundef = substr(arg[1], 2)
   12724     mac1 = arg[2]
   12725   }
   12726   split(mac1, mac2, "(") #)
   12727   macro = mac2[1]
   12728   prefix = substr(line, 1, index(line, defundef) - 1)
   12729   if (D_is_set[macro]) {
   12730     # Preserve the white space surrounding the "#".
   12731     print prefix "define", macro P[macro] D[macro]
   12732     next
   12733   } else {
   12734     # Replace #undef with comments.  This is necessary, for example,
   12735     # in the case of _POSIX_SOURCE, which is predefined and required
   12736     # on some systems where configure will not decide to define it.
   12737     if (defundef == "undef") {
   12738       print "/*", prefix defundef, macro, "*/"
   12739       next
   12740     }
   12741   }
   12742 }
   12743 { print }
   12744 _ACAWK
   12745 _ACEOF
   12746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   12747   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   12748 fi # test -n "$CONFIG_HEADERS"
   12749 
   12750 
   12751 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
   12752 shift
   12753 for ac_tag
   12754 do
   12755   case $ac_tag in
   12756   :[FHLC]) ac_mode=$ac_tag; continue;;
   12757   esac
   12758   case $ac_mode$ac_tag in
   12759   :[FHL]*:*);;
   12760   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   12761   :[FH]-) ac_tag=-:-;;
   12762   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   12763   esac
   12764   ac_save_IFS=$IFS
   12765   IFS=:
   12766   set x $ac_tag
   12767   IFS=$ac_save_IFS
   12768   shift
   12769   ac_file=$1
   12770   shift
   12771 
   12772   case $ac_mode in
   12773   :L) ac_source=$1;;
   12774   :[FH])
   12775     ac_file_inputs=
   12776     for ac_f
   12777     do
   12778       case $ac_f in
   12779       -) ac_f="$ac_tmp/stdin";;
   12780       *) # Look for the file first in the build tree, then in the source tree
   12781 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   12782 	 # because $ac_f cannot contain `:'.
   12783 	 test -f "$ac_f" ||
   12784 	   case $ac_f in
   12785 	   [\\/$]*) false;;
   12786 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   12787 	   esac ||
   12788 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   12789       esac
   12790       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   12791       as_fn_append ac_file_inputs " '$ac_f'"
   12792     done
   12793 
   12794     # Let's still pretend it is `configure' which instantiates (i.e., don't
   12795     # use $as_me), people would be surprised to read:
   12796     #    /* config.h.  Generated by config.status.  */
   12797     configure_input='Generated from '`
   12798 	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   12799 	`' by configure.'
   12800     if test x"$ac_file" != x-; then
   12801       configure_input="$ac_file.  $configure_input"
   12802       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   12803 printf "%s\n" "$as_me: creating $ac_file" >&6;}
   12804     fi
   12805     # Neutralize special characters interpreted by sed in replacement strings.
   12806     case $configure_input in #(
   12807     *\&* | *\|* | *\\* )
   12808        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
   12809        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   12810     *) ac_sed_conf_input=$configure_input;;
   12811     esac
   12812 
   12813     case $ac_tag in
   12814     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   12815       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   12816     esac
   12817     ;;
   12818   esac
   12819 
   12820   ac_dir=`$as_dirname -- "$ac_file" ||
   12821 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   12822 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   12823 	 X"$ac_file" : 'X\(//\)$' \| \
   12824 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   12825 printf "%s\n" X"$ac_file" |
   12826     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   12827 	    s//\1/
   12828 	    q
   12829 	  }
   12830 	  /^X\(\/\/\)[^/].*/{
   12831 	    s//\1/
   12832 	    q
   12833 	  }
   12834 	  /^X\(\/\/\)$/{
   12835 	    s//\1/
   12836 	    q
   12837 	  }
   12838 	  /^X\(\/\).*/{
   12839 	    s//\1/
   12840 	    q
   12841 	  }
   12842 	  s/.*/./; q'`
   12843   as_dir="$ac_dir"; as_fn_mkdir_p
   12844   ac_builddir=.
   12845 
   12846 case "$ac_dir" in
   12847 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   12848 *)
   12849   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
   12850   # A ".." for each directory in $ac_dir_suffix.
   12851   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   12852   case $ac_top_builddir_sub in
   12853   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   12854   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   12855   esac ;;
   12856 esac
   12857 ac_abs_top_builddir=$ac_pwd
   12858 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   12859 # for backward compatibility:
   12860 ac_top_builddir=$ac_top_build_prefix
   12861 
   12862 case $srcdir in
   12863   .)  # We are building in place.
   12864     ac_srcdir=.
   12865     ac_top_srcdir=$ac_top_builddir_sub
   12866     ac_abs_top_srcdir=$ac_pwd ;;
   12867   [\\/]* | ?:[\\/]* )  # Absolute name.
   12868     ac_srcdir=$srcdir$ac_dir_suffix;
   12869     ac_top_srcdir=$srcdir
   12870     ac_abs_top_srcdir=$srcdir ;;
   12871   *) # Relative name.
   12872     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   12873     ac_top_srcdir=$ac_top_build_prefix$srcdir
   12874     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   12875 esac
   12876 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   12877 
   12878 
   12879   case $ac_mode in
   12880   :F)
   12881   #
   12882   # CONFIG_FILE
   12883   #
   12884 
   12885   case $INSTALL in
   12886   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   12887   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   12888   esac
   12889   ac_MKDIR_P=$MKDIR_P
   12890   case $MKDIR_P in
   12891   [\\/$]* | ?:[\\/]* ) ;;
   12892   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
   12893   esac
   12894 _ACEOF
   12895 
   12896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   12897 # If the template does not know about datarootdir, expand it.
   12898 # FIXME: This hack should be removed a few years after 2.60.
   12899 ac_datarootdir_hack=; ac_datarootdir_seen=
   12900 ac_sed_dataroot='
   12901 /datarootdir/ {
   12902   p
   12903   q
   12904 }
   12905 /@datadir@/p
   12906 /@docdir@/p
   12907 /@infodir@/p
   12908 /@localedir@/p
   12909 /@mandir@/p'
   12910 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   12911 *datarootdir*) ac_datarootdir_seen=yes;;
   12912 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   12913   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   12914 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   12915 _ACEOF
   12916 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   12917   ac_datarootdir_hack='
   12918   s&@datadir@&$datadir&g
   12919   s&@docdir@&$docdir&g
   12920   s&@infodir@&$infodir&g
   12921   s&@localedir@&$localedir&g
   12922   s&@mandir@&$mandir&g
   12923   s&\\\${datarootdir}&$datarootdir&g' ;;
   12924 esac
   12925 _ACEOF
   12926 
   12927 # Neutralize VPATH when `$srcdir' = `.'.
   12928 # Shell code in configure.ac might set extrasub.
   12929 # FIXME: do we really want to maintain this feature?
   12930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   12931 ac_sed_extra="$ac_vpsub
   12932 $extrasub
   12933 _ACEOF
   12934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   12935 :t
   12936 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   12937 s|@configure_input@|$ac_sed_conf_input|;t t
   12938 s&@top_builddir@&$ac_top_builddir_sub&;t t
   12939 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   12940 s&@srcdir@&$ac_srcdir&;t t
   12941 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   12942 s&@top_srcdir@&$ac_top_srcdir&;t t
   12943 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   12944 s&@builddir@&$ac_builddir&;t t
   12945 s&@abs_builddir@&$ac_abs_builddir&;t t
   12946 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   12947 s&@INSTALL@&$ac_INSTALL&;t t
   12948 s&@MKDIR_P@&$ac_MKDIR_P&;t t
   12949 $ac_datarootdir_hack
   12950 "
   12951 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
   12952   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   12953 
   12954 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   12955   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   12956   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   12957       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   12958   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   12959 which seems to be undefined.  Please make sure it is defined" >&5
   12960 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   12961 which seems to be undefined.  Please make sure it is defined" >&2;}
   12962 
   12963   rm -f "$ac_tmp/stdin"
   12964   case $ac_file in
   12965   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   12966   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   12967   esac \
   12968   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   12969  ;;
   12970   :H)
   12971   #
   12972   # CONFIG_HEADER
   12973   #
   12974   if test x"$ac_file" != x-; then
   12975     {
   12976       printf "%s\n" "/* $configure_input  */" >&1 \
   12977       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   12978     } >"$ac_tmp/config.h" \
   12979       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   12980     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   12981       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   12982 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
   12983     else
   12984       rm -f "$ac_file"
   12985       mv "$ac_tmp/config.h" "$ac_file" \
   12986 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   12987     fi
   12988   else
   12989     printf "%s\n" "/* $configure_input  */" >&1 \
   12990       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   12991       || as_fn_error $? "could not create -" "$LINENO" 5
   12992   fi
   12993 # Compute "$ac_file"'s index in $config_headers.
   12994 _am_arg="$ac_file"
   12995 _am_stamp_count=1
   12996 for _am_header in $config_headers :; do
   12997   case $_am_header in
   12998     $_am_arg | $_am_arg:* )
   12999       break ;;
   13000     * )
   13001       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
   13002   esac
   13003 done
   13004 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
   13005 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   13006 	 X"$_am_arg" : 'X\(//\)[^/]' \| \
   13007 	 X"$_am_arg" : 'X\(//\)$' \| \
   13008 	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
   13009 printf "%s\n" X"$_am_arg" |
   13010     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   13011 	    s//\1/
   13012 	    q
   13013 	  }
   13014 	  /^X\(\/\/\)[^/].*/{
   13015 	    s//\1/
   13016 	    q
   13017 	  }
   13018 	  /^X\(\/\/\)$/{
   13019 	    s//\1/
   13020 	    q
   13021 	  }
   13022 	  /^X\(\/\).*/{
   13023 	    s//\1/
   13024 	    q
   13025 	  }
   13026 	  s/.*/./; q'`/stamp-h$_am_stamp_count
   13027  ;;
   13028 
   13029   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   13030 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
   13031  ;;
   13032   esac
   13033 
   13034 
   13035   case $ac_file$ac_mode in
   13036     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
   13037   # Older Autoconf quotes --file arguments for eval, but not when files
   13038   # are listed without --file.  Let's play safe and only enable the eval
   13039   # if we detect the quoting.
   13040   # TODO: see whether this extra hack can be removed once we start
   13041   # requiring Autoconf 2.70 or later.
   13042   case $CONFIG_FILES in #(
   13043   *\'*) :
   13044     eval set x "$CONFIG_FILES" ;; #(
   13045   *) :
   13046     set x $CONFIG_FILES ;; #(
   13047   *) :
   13048      ;;
   13049 esac
   13050   shift
   13051   # Used to flag and report bootstrapping failures.
   13052   am_rc=0
   13053   for am_mf
   13054   do
   13055     # Strip MF so we end up with the name of the file.
   13056     am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
   13057     # Check whether this is an Automake generated Makefile which includes
   13058     # dependency-tracking related rules and includes.
   13059     # Grep'ing the whole file directly is not great: AIX grep has a line
   13060     # limit of 2048, but all sed's we know have understand at least 4000.
   13061     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
   13062       || continue
   13063     am_dirpart=`$as_dirname -- "$am_mf" ||
   13064 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   13065 	 X"$am_mf" : 'X\(//\)[^/]' \| \
   13066 	 X"$am_mf" : 'X\(//\)$' \| \
   13067 	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
   13068 printf "%s\n" X"$am_mf" |
   13069     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   13070 	    s//\1/
   13071 	    q
   13072 	  }
   13073 	  /^X\(\/\/\)[^/].*/{
   13074 	    s//\1/
   13075 	    q
   13076 	  }
   13077 	  /^X\(\/\/\)$/{
   13078 	    s//\1/
   13079 	    q
   13080 	  }
   13081 	  /^X\(\/\).*/{
   13082 	    s//\1/
   13083 	    q
   13084 	  }
   13085 	  s/.*/./; q'`
   13086     am_filepart=`$as_basename -- "$am_mf" ||
   13087 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
   13088 	 X"$am_mf" : 'X\(//\)$' \| \
   13089 	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
   13090 printf "%s\n" X/"$am_mf" |
   13091     sed '/^.*\/\([^/][^/]*\)\/*$/{
   13092 	    s//\1/
   13093 	    q
   13094 	  }
   13095 	  /^X\/\(\/\/\)$/{
   13096 	    s//\1/
   13097 	    q
   13098 	  }
   13099 	  /^X\/\(\/\).*/{
   13100 	    s//\1/
   13101 	    q
   13102 	  }
   13103 	  s/.*/./; q'`
   13104     { echo "$as_me:$LINENO: cd "$am_dirpart" \
   13105       && sed -e '/# am--include-marker/d' "$am_filepart" \
   13106         | $MAKE -f - am--depfiles" >&5
   13107    (cd "$am_dirpart" \
   13108       && sed -e '/# am--include-marker/d' "$am_filepart" \
   13109         | $MAKE -f - am--depfiles) >&5 2>&5
   13110    ac_status=$?
   13111    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13112    (exit $ac_status); } || am_rc=$?
   13113   done
   13114   if test $am_rc -ne 0; then
   13115     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   13116 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   13117 as_fn_error $? "Something went wrong bootstrapping makefile fragments
   13118     for automatic dependency tracking.  If GNU make was not used, consider
   13119     re-running the configure script with MAKE=\"gmake\" (or whatever is
   13120     necessary).  You can also try re-running configure with the
   13121     '--disable-dependency-tracking' option to at least be able to build
   13122     the package (albeit without support for automatic dependency tracking).
   13123 See \`config.log' for more details" "$LINENO" 5; }
   13124   fi
   13125   { am_dirpart=; unset am_dirpart;}
   13126   { am_filepart=; unset am_filepart;}
   13127   { am_mf=; unset am_mf;}
   13128   { am_rc=; unset am_rc;}
   13129   rm -f conftest-deps.mk
   13130 }
   13131  ;;
   13132 
   13133   esac
   13134 done # for ac_tag
   13135 
   13136 
   13137 as_fn_exit 0
   13138 _ACEOF
   13139 ac_clean_files=$ac_clean_files_save
   13140 
   13141 test $ac_write_fail = 0 ||
   13142   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   13143 
   13144 
   13145 # configure is writing to config.log, and then calls config.status.
   13146 # config.status does its own redirection, appending to config.log.
   13147 # Unfortunately, on DOS this fails, as config.log is still kept open
   13148 # by configure, so config.status won't be able to write to it; its
   13149 # output is simply discarded.  So we exec the FD to /dev/null,
   13150 # effectively closing config.log, so it can be properly (re)opened and
   13151 # appended to by config.status.  When coming back to configure, we
   13152 # need to make the FD available again.
   13153 if test "$no_create" != yes; then
   13154   ac_cs_success=:
   13155   ac_config_status_args=
   13156   test "$silent" = yes &&
   13157     ac_config_status_args="$ac_config_status_args --quiet"
   13158   exec 5>/dev/null
   13159   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   13160   exec 5>>config.log
   13161   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   13162   # would make configure fail if this is the last instruction.
   13163   $ac_cs_success || as_fn_exit 1
   13164 fi
   13165 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   13166   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   13167 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   13168 fi
   13169 
   13170 
   13171