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 libxshmfence 1.3.1.
      4 #
      5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxshmfence/-/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 
    187   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
    188     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
    189     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    190     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    191     PATH=/empty FPATH=/empty; export PATH FPATH
    192     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
    193       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
    194 test \$(( 1 + 1 )) = 2 || exit 1"
    195   if (eval "$as_required") 2>/dev/null
    196 then :
    197   as_have_required=yes
    198 else $as_nop
    199   as_have_required=no
    200 fi
    201   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
    202 then :
    203 
    204 else $as_nop
    205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    206 as_found=false
    207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    208 do
    209   IFS=$as_save_IFS
    210   case $as_dir in #(((
    211     '') as_dir=./ ;;
    212     */) ;;
    213     *) as_dir=$as_dir/ ;;
    214   esac
    215   as_found=:
    216   case $as_dir in #(
    217 	 /*)
    218 	   for as_base in sh bash ksh sh5; do
    219 	     # Try only shells that exist, to save several forks.
    220 	     as_shell=$as_dir$as_base
    221 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    222 		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
    223 then :
    224   CONFIG_SHELL=$as_shell as_have_required=yes
    225 		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
    226 then :
    227   break 2
    228 fi
    229 fi
    230 	   done;;
    231        esac
    232   as_found=false
    233 done
    234 IFS=$as_save_IFS
    235 if $as_found
    236 then :
    237 
    238 else $as_nop
    239   if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    240 	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
    241 then :
    242   CONFIG_SHELL=$SHELL as_have_required=yes
    243 fi
    244 fi
    245 
    246 
    247       if test "x$CONFIG_SHELL" != x
    248 then :
    249   export CONFIG_SHELL
    250              # We cannot yet assume a decent shell, so we have to provide a
    251 # neutralization value for shells without unset; and this also
    252 # works around shells that cannot unset nonexistent variables.
    253 # Preserve -v and -x to the replacement shell.
    254 BASH_ENV=/dev/null
    255 ENV=/dev/null
    256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    257 case $- in # ((((
    258   *v*x* | *x*v* ) as_opts=-vx ;;
    259   *v* ) as_opts=-v ;;
    260   *x* ) as_opts=-x ;;
    261   * ) as_opts= ;;
    262 esac
    263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    264 # Admittedly, this is quite paranoid, since all the known shells bail
    265 # out after a failed `exec'.
    266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
    267 exit 255
    268 fi
    269 
    270     if test x$as_have_required = xno
    271 then :
    272   printf "%s\n" "$0: This script requires a shell more modern than all"
    273   printf "%s\n" "$0: the shells that I found on your system."
    274   if test ${ZSH_VERSION+y} ; then
    275     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    276     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
    277   else
    278     printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
    279 $0: https://gitlab.freedesktop.org/xorg/lib/libxshmfence/-/issues
    280 $0: about your system, including any error possibly output
    281 $0: before this message. Then install a modern shell, or
    282 $0: manually run the script under such a shell if you do
    283 $0: have one."
    284   fi
    285   exit 1
    286 fi
    287 fi
    288 fi
    289 SHELL=${CONFIG_SHELL-/bin/sh}
    290 export SHELL
    291 # Unset more variables known to interfere with behavior of common tools.
    292 CLICOLOR_FORCE= GREP_OPTIONS=
    293 unset CLICOLOR_FORCE GREP_OPTIONS
    294 
    295 ## --------------------- ##
    296 ## M4sh Shell Functions. ##
    297 ## --------------------- ##
    298 # as_fn_unset VAR
    299 # ---------------
    300 # Portably unset VAR.
    301 as_fn_unset ()
    302 {
    303   { eval $1=; unset $1;}
    304 }
    305 as_unset=as_fn_unset
    306 
    307 
    308 # as_fn_set_status STATUS
    309 # -----------------------
    310 # Set $? to STATUS, without forking.
    311 as_fn_set_status ()
    312 {
    313   return $1
    314 } # as_fn_set_status
    315 
    316 # as_fn_exit STATUS
    317 # -----------------
    318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    319 as_fn_exit ()
    320 {
    321   set +e
    322   as_fn_set_status $1
    323   exit $1
    324 } # as_fn_exit
    325 # as_fn_nop
    326 # ---------
    327 # Do nothing but, unlike ":", preserve the value of $?.
    328 as_fn_nop ()
    329 {
    330   return $?
    331 }
    332 as_nop=as_fn_nop
    333 
    334 # as_fn_mkdir_p
    335 # -------------
    336 # Create "$as_dir" as a directory, including parents if necessary.
    337 as_fn_mkdir_p ()
    338 {
    339 
    340   case $as_dir in #(
    341   -*) as_dir=./$as_dir;;
    342   esac
    343   test -d "$as_dir" || eval $as_mkdir_p || {
    344     as_dirs=
    345     while :; do
    346       case $as_dir in #(
    347       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    348       *) as_qdir=$as_dir;;
    349       esac
    350       as_dirs="'$as_qdir' $as_dirs"
    351       as_dir=`$as_dirname -- "$as_dir" ||
    352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    353 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    354 	 X"$as_dir" : 'X\(//\)$' \| \
    355 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    356 printf "%s\n" X"$as_dir" |
    357     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    358 	    s//\1/
    359 	    q
    360 	  }
    361 	  /^X\(\/\/\)[^/].*/{
    362 	    s//\1/
    363 	    q
    364 	  }
    365 	  /^X\(\/\/\)$/{
    366 	    s//\1/
    367 	    q
    368 	  }
    369 	  /^X\(\/\).*/{
    370 	    s//\1/
    371 	    q
    372 	  }
    373 	  s/.*/./; q'`
    374       test -d "$as_dir" && break
    375     done
    376     test -z "$as_dirs" || eval "mkdir $as_dirs"
    377   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    378 
    379 
    380 } # as_fn_mkdir_p
    381 
    382 # as_fn_executable_p FILE
    383 # -----------------------
    384 # Test if FILE is an executable regular file.
    385 as_fn_executable_p ()
    386 {
    387   test -f "$1" && test -x "$1"
    388 } # as_fn_executable_p
    389 # as_fn_append VAR VALUE
    390 # ----------------------
    391 # Append the text in VALUE to the end of the definition contained in VAR. Take
    392 # advantage of any shell optimizations that allow amortized linear growth over
    393 # repeated appends, instead of the typical quadratic growth present in naive
    394 # implementations.
    395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
    396 then :
    397   eval 'as_fn_append ()
    398   {
    399     eval $1+=\$2
    400   }'
    401 else $as_nop
    402   as_fn_append ()
    403   {
    404     eval $1=\$$1\$2
    405   }
    406 fi # as_fn_append
    407 
    408 # as_fn_arith ARG...
    409 # ------------------
    410 # Perform arithmetic evaluation on the ARGs, and store the result in the
    411 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    412 # must be portable across $(()) and expr.
    413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
    414 then :
    415   eval 'as_fn_arith ()
    416   {
    417     as_val=$(( $* ))
    418   }'
    419 else $as_nop
    420   as_fn_arith ()
    421   {
    422     as_val=`expr "$@" || test $? -eq 1`
    423   }
    424 fi # as_fn_arith
    425 
    426 # as_fn_nop
    427 # ---------
    428 # Do nothing but, unlike ":", preserve the value of $?.
    429 as_fn_nop ()
    430 {
    431   return $?
    432 }
    433 as_nop=as_fn_nop
    434 
    435 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    436 # ----------------------------------------
    437 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    438 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    439 # script with STATUS, using 1 if that was 0.
    440 as_fn_error ()
    441 {
    442   as_status=$1; test $as_status -eq 0 && as_status=1
    443   if test "$4"; then
    444     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    445     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    446   fi
    447   printf "%s\n" "$as_me: error: $2" >&2
    448   as_fn_exit $as_status
    449 } # as_fn_error
    450 
    451 if expr a : '\(a\)' >/dev/null 2>&1 &&
    452    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    453   as_expr=expr
    454 else
    455   as_expr=false
    456 fi
    457 
    458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    459   as_basename=basename
    460 else
    461   as_basename=false
    462 fi
    463 
    464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    465   as_dirname=dirname
    466 else
    467   as_dirname=false
    468 fi
    469 
    470 as_me=`$as_basename -- "$0" ||
    471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    472 	 X"$0" : 'X\(//\)$' \| \
    473 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    474 printf "%s\n" X/"$0" |
    475     sed '/^.*\/\([^/][^/]*\)\/*$/{
    476 	    s//\1/
    477 	    q
    478 	  }
    479 	  /^X\/\(\/\/\)$/{
    480 	    s//\1/
    481 	    q
    482 	  }
    483 	  /^X\/\(\/\).*/{
    484 	    s//\1/
    485 	    q
    486 	  }
    487 	  s/.*/./; q'`
    488 
    489 # Avoid depending upon Character Ranges.
    490 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    493 as_cr_digits='0123456789'
    494 as_cr_alnum=$as_cr_Letters$as_cr_digits
    495 
    496 
    497   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    498   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    499   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    500   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    501   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    502   sed -n '
    503     p
    504     /[$]LINENO/=
    505   ' <$as_myself |
    506     sed '
    507       s/[$]LINENO.*/&-/
    508       t lineno
    509       b
    510       :lineno
    511       N
    512       :loop
    513       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    514       t loop
    515       s/-\n.*//
    516     ' >$as_me.lineno &&
    517   chmod +x "$as_me.lineno" ||
    518     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    519 
    520   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
    521   # already done that, so ensure we don't try to do so again and fall
    522   # in an infinite loop.  This has already happened in practice.
    523   _as_can_reexec=no; export _as_can_reexec
    524   # Don't try to exec as it changes $[0], causing all sort of problems
    525   # (the dirname of $[0] is not the place where we might find the
    526   # original and so on.  Autoconf is especially sensitive to this).
    527   . "./$as_me.lineno"
    528   # Exit status is that of the last command.
    529   exit
    530 }
    531 
    532 
    533 # Determine whether it's possible to make 'echo' print without a newline.
    534 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
    535 # for compatibility with existing Makefiles.
    536 ECHO_C= ECHO_N= ECHO_T=
    537 case `echo -n x` in #(((((
    538 -n*)
    539   case `echo 'xy\c'` in
    540   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    541   xy)  ECHO_C='\c';;
    542   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    543        ECHO_T='	';;
    544   esac;;
    545 *)
    546   ECHO_N='-n';;
    547 esac
    548 
    549 # For backward compatibility with old third-party macros, we provide
    550 # the shell variables $as_echo and $as_echo_n.  New code should use
    551 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
    552 as_echo='printf %s\n'
    553 as_echo_n='printf %s'
    554 
    555 
    556 rm -f conf$$ conf$$.exe conf$$.file
    557 if test -d conf$$.dir; then
    558   rm -f conf$$.dir/conf$$.file
    559 else
    560   rm -f conf$$.dir
    561   mkdir conf$$.dir 2>/dev/null
    562 fi
    563 if (echo >conf$$.file) 2>/dev/null; then
    564   if ln -s conf$$.file conf$$ 2>/dev/null; then
    565     as_ln_s='ln -s'
    566     # ... but there are two gotchas:
    567     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    568     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    569     # In both cases, we have to default to `cp -pR'.
    570     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    571       as_ln_s='cp -pR'
    572   elif ln conf$$.file conf$$ 2>/dev/null; then
    573     as_ln_s=ln
    574   else
    575     as_ln_s='cp -pR'
    576   fi
    577 else
    578   as_ln_s='cp -pR'
    579 fi
    580 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    581 rmdir conf$$.dir 2>/dev/null
    582 
    583 if mkdir -p . 2>/dev/null; then
    584   as_mkdir_p='mkdir -p "$as_dir"'
    585 else
    586   test -d ./-p && rmdir ./-p
    587   as_mkdir_p=false
    588 fi
    589 
    590 as_test_x='test -x'
    591 as_executable_p=as_fn_executable_p
    592 
    593 # Sed expression to map a string onto a valid CPP name.
    594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    595 
    596 # Sed expression to map a string onto a valid variable name.
    597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    598 
    599 SHELL=${CONFIG_SHELL-/bin/sh}
    600 
    601 
    602 test -n "$DJDIR" || exec 7<&0 </dev/null
    603 exec 6>&1
    604 
    605 # Name of the host.
    606 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    607 # so uname gets run too.
    608 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    609 
    610 #
    611 # Initializations.
    612 #
    613 ac_default_prefix=/usr/local
    614 ac_clean_files=
    615 ac_config_libobj_dir=.
    616 LIBOBJS=
    617 cross_compiling=no
    618 subdirs=
    619 MFLAGS=
    620 MAKEFLAGS=
    621 
    622 # Identity of this package.
    623 PACKAGE_NAME='libxshmfence'
    624 PACKAGE_TARNAME='libxshmfence'
    625 PACKAGE_VERSION='1.3.1'
    626 PACKAGE_STRING='libxshmfence 1.3.1'
    627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxshmfence/-/issues'
    628 PACKAGE_URL=''
    629 
    630 ac_unique_file="Makefile.am"
    631 # Factoring default headers for most tests.
    632 ac_includes_default="\
    633 #include <stddef.h>
    634 #ifdef HAVE_STDIO_H
    635 # include <stdio.h>
    636 #endif
    637 #ifdef HAVE_STDLIB_H
    638 # include <stdlib.h>
    639 #endif
    640 #ifdef HAVE_STRING_H
    641 # include <string.h>
    642 #endif
    643 #ifdef HAVE_INTTYPES_H
    644 # include <inttypes.h>
    645 #endif
    646 #ifdef HAVE_STDINT_H
    647 # include <stdint.h>
    648 #endif
    649 #ifdef HAVE_STRINGS_H
    650 # include <strings.h>
    651 #endif
    652 #ifdef HAVE_SYS_TYPES_H
    653 # include <sys/types.h>
    654 #endif
    655 #ifdef HAVE_SYS_STAT_H
    656 # include <sys/stat.h>
    657 #endif
    658 #ifdef HAVE_UNISTD_H
    659 # include <unistd.h>
    660 #endif"
    661 
    662 ac_header_c_list=
    663 ac_subst_vars='am__EXEEXT_FALSE
    664 am__EXEEXT_TRUE
    665 LTLIBOBJS
    666 LIBOBJS
    667 XPROTO_LIBS
    668 XPROTO_CFLAGS
    669 PTHREAD_FALSE
    670 PTHREAD_TRUE
    671 FUTEX_FALSE
    672 FUTEX_TRUE
    673 PTHREAD_LIBS
    674 LINT_FALSE
    675 LINT_TRUE
    676 LINT_FLAGS
    677 LINT
    678 MAN_SUBSTS
    679 XORG_MAN_PAGE
    680 ADMIN_MAN_DIR
    681 DRIVER_MAN_DIR
    682 MISC_MAN_DIR
    683 FILE_MAN_DIR
    684 LIB_MAN_DIR
    685 APP_MAN_DIR
    686 ADMIN_MAN_SUFFIX
    687 DRIVER_MAN_SUFFIX
    688 MISC_MAN_SUFFIX
    689 FILE_MAN_SUFFIX
    690 LIB_MAN_SUFFIX
    691 APP_MAN_SUFFIX
    692 INSTALL_CMD
    693 PKG_CONFIG_LIBDIR
    694 PKG_CONFIG_PATH
    695 PKG_CONFIG
    696 CHANGELOG_CMD
    697 STRICT_CFLAGS
    698 CWARNFLAGS
    699 BASE_CFLAGS
    700 LT_SYS_LIBRARY_PATH
    701 OTOOL64
    702 OTOOL
    703 LIPO
    704 NMEDIT
    705 DSYMUTIL
    706 MANIFEST_TOOL
    707 RANLIB
    708 ac_ct_AR
    709 AR
    710 DLLTOOL
    711 OBJDUMP
    712 FILECMD
    713 LN_S
    714 NM
    715 ac_ct_DUMPBIN
    716 DUMPBIN
    717 LD
    718 FGREP
    719 EGREP
    720 GREP
    721 SED
    722 host_os
    723 host_vendor
    724 host_cpu
    725 host
    726 build_os
    727 build_vendor
    728 build_cpu
    729 build
    730 LIBTOOL
    731 AM_BACKSLASH
    732 AM_DEFAULT_VERBOSITY
    733 AM_DEFAULT_V
    734 AM_V
    735 CSCOPE
    736 ETAGS
    737 CTAGS
    738 am__fastdepCC_FALSE
    739 am__fastdepCC_TRUE
    740 CCDEPMODE
    741 am__nodep
    742 AMDEPBACKSLASH
    743 AMDEP_FALSE
    744 AMDEP_TRUE
    745 am__include
    746 DEPDIR
    747 am__untar
    748 am__tar
    749 AMTAR
    750 am__leading_dot
    751 SET_MAKE
    752 AWK
    753 mkdir_p
    754 MKDIR_P
    755 INSTALL_STRIP_PROGRAM
    756 STRIP
    757 install_sh
    758 MAKEINFO
    759 AUTOHEADER
    760 AUTOMAKE
    761 AUTOCONF
    762 ACLOCAL
    763 VERSION
    764 PACKAGE
    765 CYGPATH_W
    766 am__isrc
    767 INSTALL_DATA
    768 INSTALL_SCRIPT
    769 INSTALL_PROGRAM
    770 OBJEXT
    771 EXEEXT
    772 ac_ct_CC
    773 CPPFLAGS
    774 LDFLAGS
    775 CFLAGS
    776 CC
    777 target_alias
    778 host_alias
    779 build_alias
    780 LIBS
    781 ECHO_T
    782 ECHO_N
    783 ECHO_C
    784 DEFS
    785 mandir
    786 localedir
    787 libdir
    788 psdir
    789 pdfdir
    790 dvidir
    791 htmldir
    792 infodir
    793 docdir
    794 oldincludedir
    795 includedir
    796 runstatedir
    797 localstatedir
    798 sharedstatedir
    799 sysconfdir
    800 datadir
    801 datarootdir
    802 libexecdir
    803 sbindir
    804 bindir
    805 program_transform_name
    806 prefix
    807 exec_prefix
    808 PACKAGE_URL
    809 PACKAGE_BUGREPORT
    810 PACKAGE_STRING
    811 PACKAGE_VERSION
    812 PACKAGE_TARNAME
    813 PACKAGE_NAME
    814 PATH_SEPARATOR
    815 SHELL
    816 am__quote'
    817 ac_subst_files=''
    818 ac_user_opts='
    819 enable_option_checking
    820 enable_dependency_tracking
    821 enable_silent_rules
    822 enable_shared
    823 enable_static
    824 with_pic
    825 enable_fast_install
    826 with_aix_soname
    827 with_gnu_ld
    828 with_sysroot
    829 enable_libtool_lock
    830 enable_selective_werror
    831 enable_strict_compilation
    832 with_lint
    833 enable_futex
    834 enable_visibility
    835 with_shared_memory_dir
    836 '
    837       ac_precious_vars='build_alias
    838 host_alias
    839 target_alias
    840 CC
    841 CFLAGS
    842 LDFLAGS
    843 LIBS
    844 CPPFLAGS
    845 LT_SYS_LIBRARY_PATH
    846 PKG_CONFIG
    847 PKG_CONFIG_PATH
    848 PKG_CONFIG_LIBDIR
    849 LINT
    850 LINT_FLAGS
    851 XPROTO_CFLAGS
    852 XPROTO_LIBS'
    853 
    854 
    855 # Initialize some variables set by options.
    856 ac_init_help=
    857 ac_init_version=false
    858 ac_unrecognized_opts=
    859 ac_unrecognized_sep=
    860 # The variables have the same names as the options, with
    861 # dashes changed to underlines.
    862 cache_file=/dev/null
    863 exec_prefix=NONE
    864 no_create=
    865 no_recursion=
    866 prefix=NONE
    867 program_prefix=NONE
    868 program_suffix=NONE
    869 program_transform_name=s,x,x,
    870 silent=
    871 site=
    872 srcdir=
    873 verbose=
    874 x_includes=NONE
    875 x_libraries=NONE
    876 
    877 # Installation directory options.
    878 # These are left unexpanded so users can "make install exec_prefix=/foo"
    879 # and all the variables that are supposed to be based on exec_prefix
    880 # by default will actually change.
    881 # Use braces instead of parens because sh, perl, etc. also accept them.
    882 # (The list follows the same order as the GNU Coding Standards.)
    883 bindir='${exec_prefix}/bin'
    884 sbindir='${exec_prefix}/sbin'
    885 libexecdir='${exec_prefix}/libexec'
    886 datarootdir='${prefix}/share'
    887 datadir='${datarootdir}'
    888 sysconfdir='${prefix}/etc'
    889 sharedstatedir='${prefix}/com'
    890 localstatedir='${prefix}/var'
    891 runstatedir='${localstatedir}/run'
    892 includedir='${prefix}/include'
    893 oldincludedir='/usr/include'
    894 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    895 infodir='${datarootdir}/info'
    896 htmldir='${docdir}'
    897 dvidir='${docdir}'
    898 pdfdir='${docdir}'
    899 psdir='${docdir}'
    900 libdir='${exec_prefix}/lib'
    901 localedir='${datarootdir}/locale'
    902 mandir='${datarootdir}/man'
    903 
    904 ac_prev=
    905 ac_dashdash=
    906 for ac_option
    907 do
    908   # If the previous option needs an argument, assign it.
    909   if test -n "$ac_prev"; then
    910     eval $ac_prev=\$ac_option
    911     ac_prev=
    912     continue
    913   fi
    914 
    915   case $ac_option in
    916   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    917   *=)   ac_optarg= ;;
    918   *)    ac_optarg=yes ;;
    919   esac
    920 
    921   case $ac_dashdash$ac_option in
    922   --)
    923     ac_dashdash=yes ;;
    924 
    925   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    926     ac_prev=bindir ;;
    927   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    928     bindir=$ac_optarg ;;
    929 
    930   -build | --build | --buil | --bui | --bu)
    931     ac_prev=build_alias ;;
    932   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    933     build_alias=$ac_optarg ;;
    934 
    935   -cache-file | --cache-file | --cache-fil | --cache-fi \
    936   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    937     ac_prev=cache_file ;;
    938   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    939   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    940     cache_file=$ac_optarg ;;
    941 
    942   --config-cache | -C)
    943     cache_file=config.cache ;;
    944 
    945   -datadir | --datadir | --datadi | --datad)
    946     ac_prev=datadir ;;
    947   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    948     datadir=$ac_optarg ;;
    949 
    950   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    951   | --dataroo | --dataro | --datar)
    952     ac_prev=datarootdir ;;
    953   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    954   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    955     datarootdir=$ac_optarg ;;
    956 
    957   -disable-* | --disable-*)
    958     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    959     # Reject names that are not valid shell variable names.
    960     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    961       as_fn_error $? "invalid feature name: \`$ac_useropt'"
    962     ac_useropt_orig=$ac_useropt
    963     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
    964     case $ac_user_opts in
    965       *"
    966 "enable_$ac_useropt"
    967 "*) ;;
    968       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
    969 	 ac_unrecognized_sep=', ';;
    970     esac
    971     eval enable_$ac_useropt=no ;;
    972 
    973   -docdir | --docdir | --docdi | --doc | --do)
    974     ac_prev=docdir ;;
    975   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    976     docdir=$ac_optarg ;;
    977 
    978   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    979     ac_prev=dvidir ;;
    980   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    981     dvidir=$ac_optarg ;;
    982 
    983   -enable-* | --enable-*)
    984     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    985     # Reject names that are not valid shell variable names.
    986     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    987       as_fn_error $? "invalid feature name: \`$ac_useropt'"
    988     ac_useropt_orig=$ac_useropt
    989     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
    990     case $ac_user_opts in
    991       *"
    992 "enable_$ac_useropt"
    993 "*) ;;
    994       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
    995 	 ac_unrecognized_sep=', ';;
    996     esac
    997     eval enable_$ac_useropt=\$ac_optarg ;;
    998 
    999   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   1000   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   1001   | --exec | --exe | --ex)
   1002     ac_prev=exec_prefix ;;
   1003   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   1004   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   1005   | --exec=* | --exe=* | --ex=*)
   1006     exec_prefix=$ac_optarg ;;
   1007 
   1008   -gas | --gas | --ga | --g)
   1009     # Obsolete; use --with-gas.
   1010     with_gas=yes ;;
   1011 
   1012   -help | --help | --hel | --he | -h)
   1013     ac_init_help=long ;;
   1014   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   1015     ac_init_help=recursive ;;
   1016   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   1017     ac_init_help=short ;;
   1018 
   1019   -host | --host | --hos | --ho)
   1020     ac_prev=host_alias ;;
   1021   -host=* | --host=* | --hos=* | --ho=*)
   1022     host_alias=$ac_optarg ;;
   1023 
   1024   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   1025     ac_prev=htmldir ;;
   1026   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   1027   | --ht=*)
   1028     htmldir=$ac_optarg ;;
   1029 
   1030   -includedir | --includedir | --includedi | --included | --include \
   1031   | --includ | --inclu | --incl | --inc)
   1032     ac_prev=includedir ;;
   1033   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   1034   | --includ=* | --inclu=* | --incl=* | --inc=*)
   1035     includedir=$ac_optarg ;;
   1036 
   1037   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1038     ac_prev=infodir ;;
   1039   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1040     infodir=$ac_optarg ;;
   1041 
   1042   -libdir | --libdir | --libdi | --libd)
   1043     ac_prev=libdir ;;
   1044   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1045     libdir=$ac_optarg ;;
   1046 
   1047   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1048   | --libexe | --libex | --libe)
   1049     ac_prev=libexecdir ;;
   1050   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1051   | --libexe=* | --libex=* | --libe=*)
   1052     libexecdir=$ac_optarg ;;
   1053 
   1054   -localedir | --localedir | --localedi | --localed | --locale)
   1055     ac_prev=localedir ;;
   1056   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1057     localedir=$ac_optarg ;;
   1058 
   1059   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1060   | --localstate | --localstat | --localsta | --localst | --locals)
   1061     ac_prev=localstatedir ;;
   1062   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1063   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1064     localstatedir=$ac_optarg ;;
   1065 
   1066   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1067     ac_prev=mandir ;;
   1068   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1069     mandir=$ac_optarg ;;
   1070 
   1071   -nfp | --nfp | --nf)
   1072     # Obsolete; use --without-fp.
   1073     with_fp=no ;;
   1074 
   1075   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1076   | --no-cr | --no-c | -n)
   1077     no_create=yes ;;
   1078 
   1079   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1080   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1081     no_recursion=yes ;;
   1082 
   1083   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1084   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1085   | --oldin | --oldi | --old | --ol | --o)
   1086     ac_prev=oldincludedir ;;
   1087   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1088   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1089   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1090     oldincludedir=$ac_optarg ;;
   1091 
   1092   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1093     ac_prev=prefix ;;
   1094   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1095     prefix=$ac_optarg ;;
   1096 
   1097   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1098   | --program-pre | --program-pr | --program-p)
   1099     ac_prev=program_prefix ;;
   1100   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1101   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1102     program_prefix=$ac_optarg ;;
   1103 
   1104   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1105   | --program-suf | --program-su | --program-s)
   1106     ac_prev=program_suffix ;;
   1107   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1108   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1109     program_suffix=$ac_optarg ;;
   1110 
   1111   -program-transform-name | --program-transform-name \
   1112   | --program-transform-nam | --program-transform-na \
   1113   | --program-transform-n | --program-transform- \
   1114   | --program-transform | --program-transfor \
   1115   | --program-transfo | --program-transf \
   1116   | --program-trans | --program-tran \
   1117   | --progr-tra | --program-tr | --program-t)
   1118     ac_prev=program_transform_name ;;
   1119   -program-transform-name=* | --program-transform-name=* \
   1120   | --program-transform-nam=* | --program-transform-na=* \
   1121   | --program-transform-n=* | --program-transform-=* \
   1122   | --program-transform=* | --program-transfor=* \
   1123   | --program-transfo=* | --program-transf=* \
   1124   | --program-trans=* | --program-tran=* \
   1125   | --progr-tra=* | --program-tr=* | --program-t=*)
   1126     program_transform_name=$ac_optarg ;;
   1127 
   1128   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1129     ac_prev=pdfdir ;;
   1130   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1131     pdfdir=$ac_optarg ;;
   1132 
   1133   -psdir | --psdir | --psdi | --psd | --ps)
   1134     ac_prev=psdir ;;
   1135   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1136     psdir=$ac_optarg ;;
   1137 
   1138   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1139   | -silent | --silent | --silen | --sile | --sil)
   1140     silent=yes ;;
   1141 
   1142   -runstatedir | --runstatedir | --runstatedi | --runstated \
   1143   | --runstate | --runstat | --runsta | --runst | --runs \
   1144   | --run | --ru | --r)
   1145     ac_prev=runstatedir ;;
   1146   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
   1147   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
   1148   | --run=* | --ru=* | --r=*)
   1149     runstatedir=$ac_optarg ;;
   1150 
   1151   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1152     ac_prev=sbindir ;;
   1153   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1154   | --sbi=* | --sb=*)
   1155     sbindir=$ac_optarg ;;
   1156 
   1157   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1158   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1159   | --sharedst | --shareds | --shared | --share | --shar \
   1160   | --sha | --sh)
   1161     ac_prev=sharedstatedir ;;
   1162   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1163   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1164   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1165   | --sha=* | --sh=*)
   1166     sharedstatedir=$ac_optarg ;;
   1167 
   1168   -site | --site | --sit)
   1169     ac_prev=site ;;
   1170   -site=* | --site=* | --sit=*)
   1171     site=$ac_optarg ;;
   1172 
   1173   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1174     ac_prev=srcdir ;;
   1175   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1176     srcdir=$ac_optarg ;;
   1177 
   1178   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1179   | --syscon | --sysco | --sysc | --sys | --sy)
   1180     ac_prev=sysconfdir ;;
   1181   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1182   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1183     sysconfdir=$ac_optarg ;;
   1184 
   1185   -target | --target | --targe | --targ | --tar | --ta | --t)
   1186     ac_prev=target_alias ;;
   1187   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1188     target_alias=$ac_optarg ;;
   1189 
   1190   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1191     verbose=yes ;;
   1192 
   1193   -version | --version | --versio | --versi | --vers | -V)
   1194     ac_init_version=: ;;
   1195 
   1196   -with-* | --with-*)
   1197     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1198     # Reject names that are not valid shell variable names.
   1199     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1200       as_fn_error $? "invalid package name: \`$ac_useropt'"
   1201     ac_useropt_orig=$ac_useropt
   1202     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
   1203     case $ac_user_opts in
   1204       *"
   1205 "with_$ac_useropt"
   1206 "*) ;;
   1207       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1208 	 ac_unrecognized_sep=', ';;
   1209     esac
   1210     eval with_$ac_useropt=\$ac_optarg ;;
   1211 
   1212   -without-* | --without-*)
   1213     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1214     # Reject names that are not valid shell variable names.
   1215     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1216       as_fn_error $? "invalid package name: \`$ac_useropt'"
   1217     ac_useropt_orig=$ac_useropt
   1218     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
   1219     case $ac_user_opts in
   1220       *"
   1221 "with_$ac_useropt"
   1222 "*) ;;
   1223       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1224 	 ac_unrecognized_sep=', ';;
   1225     esac
   1226     eval with_$ac_useropt=no ;;
   1227 
   1228   --x)
   1229     # Obsolete; use --with-x.
   1230     with_x=yes ;;
   1231 
   1232   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1233   | --x-incl | --x-inc | --x-in | --x-i)
   1234     ac_prev=x_includes ;;
   1235   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1236   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1237     x_includes=$ac_optarg ;;
   1238 
   1239   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1240   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1241     ac_prev=x_libraries ;;
   1242   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1243   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1244     x_libraries=$ac_optarg ;;
   1245 
   1246   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1247 Try \`$0 --help' for more information"
   1248     ;;
   1249 
   1250   *=*)
   1251     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1252     # Reject names that are not valid shell variable names.
   1253     case $ac_envvar in #(
   1254       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1255       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1256     esac
   1257     eval $ac_envvar=\$ac_optarg
   1258     export $ac_envvar ;;
   1259 
   1260   *)
   1261     # FIXME: should be removed in autoconf 3.0.
   1262     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
   1263     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1264       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
   1265     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1266     ;;
   1267 
   1268   esac
   1269 done
   1270 
   1271 if test -n "$ac_prev"; then
   1272   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1273   as_fn_error $? "missing argument to $ac_option"
   1274 fi
   1275 
   1276 if test -n "$ac_unrecognized_opts"; then
   1277   case $enable_option_checking in
   1278     no) ;;
   1279     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1280     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1281   esac
   1282 fi
   1283 
   1284 # Check all directory arguments for consistency.
   1285 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1286 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1287 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1288 		libdir localedir mandir runstatedir
   1289 do
   1290   eval ac_val=\$$ac_var
   1291   # Remove trailing slashes.
   1292   case $ac_val in
   1293     */ )
   1294       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1295       eval $ac_var=\$ac_val;;
   1296   esac
   1297   # Be sure to have absolute directory names.
   1298   case $ac_val in
   1299     [\\/$]* | ?:[\\/]* )  continue;;
   1300     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1301   esac
   1302   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1303 done
   1304 
   1305 # There might be people who depend on the old broken behavior: `$host'
   1306 # used to hold the argument of --host etc.
   1307 # FIXME: To remove some day.
   1308 build=$build_alias
   1309 host=$host_alias
   1310 target=$target_alias
   1311 
   1312 # FIXME: To remove some day.
   1313 if test "x$host_alias" != x; then
   1314   if test "x$build_alias" = x; then
   1315     cross_compiling=maybe
   1316   elif test "x$build_alias" != "x$host_alias"; then
   1317     cross_compiling=yes
   1318   fi
   1319 fi
   1320 
   1321 ac_tool_prefix=
   1322 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1323 
   1324 test "$silent" = yes && exec 6>/dev/null
   1325 
   1326 
   1327 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1328 ac_ls_di=`ls -di .` &&
   1329 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1330   as_fn_error $? "working directory cannot be determined"
   1331 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1332   as_fn_error $? "pwd does not report name of working directory"
   1333 
   1334 
   1335 # Find the source files, if location was not specified.
   1336 if test -z "$srcdir"; then
   1337   ac_srcdir_defaulted=yes
   1338   # Try the directory containing this script, then the parent directory.
   1339   ac_confdir=`$as_dirname -- "$as_myself" ||
   1340 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1341 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1342 	 X"$as_myself" : 'X\(//\)$' \| \
   1343 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1344 printf "%s\n" X"$as_myself" |
   1345     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1346 	    s//\1/
   1347 	    q
   1348 	  }
   1349 	  /^X\(\/\/\)[^/].*/{
   1350 	    s//\1/
   1351 	    q
   1352 	  }
   1353 	  /^X\(\/\/\)$/{
   1354 	    s//\1/
   1355 	    q
   1356 	  }
   1357 	  /^X\(\/\).*/{
   1358 	    s//\1/
   1359 	    q
   1360 	  }
   1361 	  s/.*/./; q'`
   1362   srcdir=$ac_confdir
   1363   if test ! -r "$srcdir/$ac_unique_file"; then
   1364     srcdir=..
   1365   fi
   1366 else
   1367   ac_srcdir_defaulted=no
   1368 fi
   1369 if test ! -r "$srcdir/$ac_unique_file"; then
   1370   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1371   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1372 fi
   1373 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1374 ac_abs_confdir=`(
   1375 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1376 	pwd)`
   1377 # When building in place, set srcdir=.
   1378 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1379   srcdir=.
   1380 fi
   1381 # Remove unnecessary trailing slashes from srcdir.
   1382 # Double slashes in file names in object file debugging info
   1383 # mess up M-x gdb in Emacs.
   1384 case $srcdir in
   1385 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1386 esac
   1387 for ac_var in $ac_precious_vars; do
   1388   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1389   eval ac_env_${ac_var}_value=\$${ac_var}
   1390   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1391   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1392 done
   1393 
   1394 #
   1395 # Report the --help message.
   1396 #
   1397 if test "$ac_init_help" = "long"; then
   1398   # Omit some internal or obsolete options to make the list less imposing.
   1399   # This message is too long to be a string in the A/UX 3.1 sh.
   1400   cat <<_ACEOF
   1401 \`configure' configures libxshmfence 1.3.1 to adapt to many kinds of systems.
   1402 
   1403 Usage: $0 [OPTION]... [VAR=VALUE]...
   1404 
   1405 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1406 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1407 
   1408 Defaults for the options are specified in brackets.
   1409 
   1410 Configuration:
   1411   -h, --help              display this help and exit
   1412       --help=short        display options specific to this package
   1413       --help=recursive    display the short help of all the included packages
   1414   -V, --version           display version information and exit
   1415   -q, --quiet, --silent   do not print \`checking ...' messages
   1416       --cache-file=FILE   cache test results in FILE [disabled]
   1417   -C, --config-cache      alias for \`--cache-file=config.cache'
   1418   -n, --no-create         do not create output files
   1419       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1420 
   1421 Installation directories:
   1422   --prefix=PREFIX         install architecture-independent files in PREFIX
   1423                           [$ac_default_prefix]
   1424   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1425                           [PREFIX]
   1426 
   1427 By default, \`make install' will install all the files in
   1428 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1429 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1430 for instance \`--prefix=\$HOME'.
   1431 
   1432 For better control, use the options below.
   1433 
   1434 Fine tuning of the installation directories:
   1435   --bindir=DIR            user executables [EPREFIX/bin]
   1436   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1437   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1438   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1439   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1440   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1441   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
   1442   --libdir=DIR            object code libraries [EPREFIX/lib]
   1443   --includedir=DIR        C header files [PREFIX/include]
   1444   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1445   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1446   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1447   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1448   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1449   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1450   --docdir=DIR            documentation root [DATAROOTDIR/doc/libxshmfence]
   1451   --htmldir=DIR           html documentation [DOCDIR]
   1452   --dvidir=DIR            dvi documentation [DOCDIR]
   1453   --pdfdir=DIR            pdf documentation [DOCDIR]
   1454   --psdir=DIR             ps documentation [DOCDIR]
   1455 _ACEOF
   1456 
   1457   cat <<\_ACEOF
   1458 
   1459 Program names:
   1460   --program-prefix=PREFIX            prepend PREFIX to installed program names
   1461   --program-suffix=SUFFIX            append SUFFIX to installed program names
   1462   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
   1463 
   1464 System types:
   1465   --build=BUILD     configure for building on BUILD [guessed]
   1466   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1467 _ACEOF
   1468 fi
   1469 
   1470 if test -n "$ac_init_help"; then
   1471   case $ac_init_help in
   1472      short | recursive ) echo "Configuration of libxshmfence 1.3.1:";;
   1473    esac
   1474   cat <<\_ACEOF
   1475 
   1476 Optional Features:
   1477   --disable-option-checking  ignore unrecognized --enable/--with options
   1478   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1479   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1480   --enable-dependency-tracking
   1481                           do not reject slow dependency extractors
   1482   --disable-dependency-tracking
   1483                           speeds up one-time build
   1484   --enable-silent-rules   less verbose build output (undo: "make V=1")
   1485   --disable-silent-rules  verbose build output (undo: "make V=0")
   1486   --enable-shared[=PKGS]  build shared libraries [default=yes]
   1487   --enable-static[=PKGS]  build static libraries [default=yes]
   1488   --enable-fast-install[=PKGS]
   1489                           optimize for fast installation [default=yes]
   1490   --disable-libtool-lock  avoid locking (might break parallel builds)
   1491   --disable-selective-werror
   1492                           Turn off selective compiler errors. (default:
   1493                           enabled)
   1494   --enable-strict-compilation
   1495                           Enable all warnings from compiler and make them
   1496                           errors (default: disabled)
   1497   --enable-futex          Enable futexes (default: auto)
   1498   --enable-visibility     Enable symbol visibility (default: auto)
   1499 
   1500 Optional Packages:
   1501   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1502   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1503   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
   1504                           both]
   1505   --with-aix-soname=aix|svr4|both
   1506                           shared library versioning (aka "SONAME") variant to
   1507                           provide on AIX, [default=aix].
   1508   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
   1509   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
   1510                           compiler's sysroot if not specified).
   1511   --with-lint             Use a lint-style source code checker (default:
   1512                           disabled)
   1513   --with-shared-memory-dir=PATH
   1514                           Path to directory in a world-writable temporary
   1515                           directory for anonymous shared memory (default:
   1516                           auto)
   1517 
   1518 Some influential environment variables:
   1519   CC          C compiler command
   1520   CFLAGS      C compiler flags
   1521   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1522               nonstandard directory <lib dir>
   1523   LIBS        libraries to pass to the linker, e.g. -l<library>
   1524   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1525               you have headers in a nonstandard directory <include dir>
   1526   LT_SYS_LIBRARY_PATH
   1527               User-defined run-time library search path.
   1528   PKG_CONFIG  path to pkg-config utility
   1529   PKG_CONFIG_PATH
   1530               directories to add to pkg-config's search path
   1531   PKG_CONFIG_LIBDIR
   1532               path overriding pkg-config's built-in search path
   1533   LINT        Path to a lint-style command
   1534   LINT_FLAGS  Flags for the lint-style command
   1535   XPROTO_CFLAGS
   1536               C compiler flags for XPROTO, overriding pkg-config
   1537   XPROTO_LIBS linker flags for XPROTO, overriding pkg-config
   1538 
   1539 Use these variables to override the choices made by `configure' or to help
   1540 it to find libraries and programs with nonstandard names/locations.
   1541 
   1542 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxshmfence/-/issues>.
   1543 _ACEOF
   1544 ac_status=$?
   1545 fi
   1546 
   1547 if test "$ac_init_help" = "recursive"; then
   1548   # If there are subdirs, report their specific --help.
   1549   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1550     test -d "$ac_dir" ||
   1551       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1552       continue
   1553     ac_builddir=.
   1554 
   1555 case "$ac_dir" in
   1556 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1557 *)
   1558   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
   1559   # A ".." for each directory in $ac_dir_suffix.
   1560   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1561   case $ac_top_builddir_sub in
   1562   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1563   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1564   esac ;;
   1565 esac
   1566 ac_abs_top_builddir=$ac_pwd
   1567 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1568 # for backward compatibility:
   1569 ac_top_builddir=$ac_top_build_prefix
   1570 
   1571 case $srcdir in
   1572   .)  # We are building in place.
   1573     ac_srcdir=.
   1574     ac_top_srcdir=$ac_top_builddir_sub
   1575     ac_abs_top_srcdir=$ac_pwd ;;
   1576   [\\/]* | ?:[\\/]* )  # Absolute name.
   1577     ac_srcdir=$srcdir$ac_dir_suffix;
   1578     ac_top_srcdir=$srcdir
   1579     ac_abs_top_srcdir=$srcdir ;;
   1580   *) # Relative name.
   1581     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1582     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1583     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1584 esac
   1585 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1586 
   1587     cd "$ac_dir" || { ac_status=$?; continue; }
   1588     # Check for configure.gnu first; this name is used for a wrapper for
   1589     # Metaconfig's "Configure" on case-insensitive file systems.
   1590     if test -f "$ac_srcdir/configure.gnu"; then
   1591       echo &&
   1592       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1593     elif test -f "$ac_srcdir/configure"; then
   1594       echo &&
   1595       $SHELL "$ac_srcdir/configure" --help=recursive
   1596     else
   1597       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1598     fi || ac_status=$?
   1599     cd "$ac_pwd" || { ac_status=$?; break; }
   1600   done
   1601 fi
   1602 
   1603 test -n "$ac_init_help" && exit $ac_status
   1604 if $ac_init_version; then
   1605   cat <<\_ACEOF
   1606 libxshmfence configure 1.3.1
   1607 generated by GNU Autoconf 2.71
   1608 
   1609 Copyright (C) 2021 Free Software Foundation, Inc.
   1610 This configure script is free software; the Free Software Foundation
   1611 gives unlimited permission to copy, distribute and modify it.
   1612 _ACEOF
   1613   exit
   1614 fi
   1615 
   1616 ## ------------------------ ##
   1617 ## Autoconf initialization. ##
   1618 ## ------------------------ ##
   1619 
   1620 # ac_fn_c_try_compile LINENO
   1621 # --------------------------
   1622 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1623 ac_fn_c_try_compile ()
   1624 {
   1625   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1626   rm -f conftest.$ac_objext conftest.beam
   1627   if { { ac_try="$ac_compile"
   1628 case "(($ac_try" in
   1629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1630   *) ac_try_echo=$ac_try;;
   1631 esac
   1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1633 printf "%s\n" "$ac_try_echo"; } >&5
   1634   (eval "$ac_compile") 2>conftest.err
   1635   ac_status=$?
   1636   if test -s conftest.err; then
   1637     grep -v '^ *+' conftest.err >conftest.er1
   1638     cat conftest.er1 >&5
   1639     mv -f conftest.er1 conftest.err
   1640   fi
   1641   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1642   test $ac_status = 0; } && {
   1643 	 test -z "$ac_c_werror_flag" ||
   1644 	 test ! -s conftest.err
   1645        } && test -s conftest.$ac_objext
   1646 then :
   1647   ac_retval=0
   1648 else $as_nop
   1649   printf "%s\n" "$as_me: failed program was:" >&5
   1650 sed 's/^/| /' conftest.$ac_ext >&5
   1651 
   1652 	ac_retval=1
   1653 fi
   1654   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1655   as_fn_set_status $ac_retval
   1656 
   1657 } # ac_fn_c_try_compile
   1658 
   1659 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1660 # -------------------------------------------------------
   1661 # Tests whether HEADER exists and can be compiled using the include files in
   1662 # INCLUDES, setting the cache variable VAR accordingly.
   1663 ac_fn_c_check_header_compile ()
   1664 {
   1665   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1666   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1667 printf %s "checking for $2... " >&6; }
   1668 if eval test \${$3+y}
   1669 then :
   1670   printf %s "(cached) " >&6
   1671 else $as_nop
   1672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1673 /* end confdefs.h.  */
   1674 $4
   1675 #include <$2>
   1676 _ACEOF
   1677 if ac_fn_c_try_compile "$LINENO"
   1678 then :
   1679   eval "$3=yes"
   1680 else $as_nop
   1681   eval "$3=no"
   1682 fi
   1683 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   1684 fi
   1685 eval ac_res=\$$3
   1686 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1687 printf "%s\n" "$ac_res" >&6; }
   1688   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1689 
   1690 } # ac_fn_c_check_header_compile
   1691 
   1692 # ac_fn_c_try_link LINENO
   1693 # -----------------------
   1694 # Try to link conftest.$ac_ext, and return whether this succeeded.
   1695 ac_fn_c_try_link ()
   1696 {
   1697   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1698   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
   1699   if { { ac_try="$ac_link"
   1700 case "(($ac_try" in
   1701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1702   *) ac_try_echo=$ac_try;;
   1703 esac
   1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1705 printf "%s\n" "$ac_try_echo"; } >&5
   1706   (eval "$ac_link") 2>conftest.err
   1707   ac_status=$?
   1708   if test -s conftest.err; then
   1709     grep -v '^ *+' conftest.err >conftest.er1
   1710     cat conftest.er1 >&5
   1711     mv -f conftest.er1 conftest.err
   1712   fi
   1713   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1714   test $ac_status = 0; } && {
   1715 	 test -z "$ac_c_werror_flag" ||
   1716 	 test ! -s conftest.err
   1717        } && test -s conftest$ac_exeext && {
   1718 	 test "$cross_compiling" = yes ||
   1719 	 test -x conftest$ac_exeext
   1720        }
   1721 then :
   1722   ac_retval=0
   1723 else $as_nop
   1724   printf "%s\n" "$as_me: failed program was:" >&5
   1725 sed 's/^/| /' conftest.$ac_ext >&5
   1726 
   1727 	ac_retval=1
   1728 fi
   1729   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1730   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1731   # interfere with the next link command; also delete a directory that is
   1732   # left behind by Apple's compiler.  We do this before executing the actions.
   1733   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1734   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1735   as_fn_set_status $ac_retval
   1736 
   1737 } # ac_fn_c_try_link
   1738 
   1739 # ac_fn_c_check_func LINENO FUNC VAR
   1740 # ----------------------------------
   1741 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   1742 ac_fn_c_check_func ()
   1743 {
   1744   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1745   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1746 printf %s "checking for $2... " >&6; }
   1747 if eval test \${$3+y}
   1748 then :
   1749   printf %s "(cached) " >&6
   1750 else $as_nop
   1751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1752 /* end confdefs.h.  */
   1753 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   1754    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   1755 #define $2 innocuous_$2
   1756 
   1757 /* System header to define __stub macros and hopefully few prototypes,
   1758    which can conflict with char $2 (); below.  */
   1759 
   1760 #include <limits.h>
   1761 #undef $2
   1762 
   1763 /* Override any GCC internal prototype to avoid an error.
   1764    Use char because int might match the return type of a GCC
   1765    builtin and then its argument prototype would still apply.  */
   1766 #ifdef __cplusplus
   1767 extern "C"
   1768 #endif
   1769 char $2 ();
   1770 /* The GNU C library defines this for functions which it implements
   1771     to always fail with ENOSYS.  Some functions are actually named
   1772     something starting with __ and the normal name is an alias.  */
   1773 #if defined __stub_$2 || defined __stub___$2
   1774 choke me
   1775 #endif
   1776 
   1777 int
   1778 main (void)
   1779 {
   1780 return $2 ();
   1781   ;
   1782   return 0;
   1783 }
   1784 _ACEOF
   1785 if ac_fn_c_try_link "$LINENO"
   1786 then :
   1787   eval "$3=yes"
   1788 else $as_nop
   1789   eval "$3=no"
   1790 fi
   1791 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   1792     conftest$ac_exeext conftest.$ac_ext
   1793 fi
   1794 eval ac_res=\$$3
   1795 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1796 printf "%s\n" "$ac_res" >&6; }
   1797   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1798 
   1799 } # ac_fn_c_check_func
   1800 
   1801 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
   1802 # ------------------------------------------------------------------
   1803 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
   1804 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
   1805 ac_fn_check_decl ()
   1806 {
   1807   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1808   as_decl_name=`echo $2|sed 's/ *(.*//'`
   1809   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
   1810 printf %s "checking whether $as_decl_name is declared... " >&6; }
   1811 if eval test \${$3+y}
   1812 then :
   1813   printf %s "(cached) " >&6
   1814 else $as_nop
   1815   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
   1816   eval ac_save_FLAGS=\$$6
   1817   as_fn_append $6 " $5"
   1818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1819 /* end confdefs.h.  */
   1820 $4
   1821 int
   1822 main (void)
   1823 {
   1824 #ifndef $as_decl_name
   1825 #ifdef __cplusplus
   1826   (void) $as_decl_use;
   1827 #else
   1828   (void) $as_decl_name;
   1829 #endif
   1830 #endif
   1831 
   1832   ;
   1833   return 0;
   1834 }
   1835 _ACEOF
   1836 if ac_fn_c_try_compile "$LINENO"
   1837 then :
   1838   eval "$3=yes"
   1839 else $as_nop
   1840   eval "$3=no"
   1841 fi
   1842 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   1843   eval $6=\$ac_save_FLAGS
   1844 
   1845 fi
   1846 eval ac_res=\$$3
   1847 	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1848 printf "%s\n" "$ac_res" >&6; }
   1849   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1850 
   1851 } # ac_fn_check_decl
   1852 ac_configure_args_raw=
   1853 for ac_arg
   1854 do
   1855   case $ac_arg in
   1856   *\'*)
   1857     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   1858   esac
   1859   as_fn_append ac_configure_args_raw " '$ac_arg'"
   1860 done
   1861 
   1862 case $ac_configure_args_raw in
   1863   *$as_nl*)
   1864     ac_safe_unquote= ;;
   1865   *)
   1866     ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
   1867     ac_unsafe_a="$ac_unsafe_z#~"
   1868     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
   1869     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
   1870 esac
   1871 
   1872 cat >config.log <<_ACEOF
   1873 This file contains any messages produced by compilers while
   1874 running configure, to aid debugging if configure makes a mistake.
   1875 
   1876 It was created by libxshmfence $as_me 1.3.1, which was
   1877 generated by GNU Autoconf 2.71.  Invocation command line was
   1878 
   1879   $ $0$ac_configure_args_raw
   1880 
   1881 _ACEOF
   1882 exec 5>>config.log
   1883 {
   1884 cat <<_ASUNAME
   1885 ## --------- ##
   1886 ## Platform. ##
   1887 ## --------- ##
   1888 
   1889 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   1890 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   1891 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   1892 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   1893 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   1894 
   1895 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   1896 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   1897 
   1898 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   1899 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   1900 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   1901 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   1902 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   1903 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   1904 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   1905 
   1906 _ASUNAME
   1907 
   1908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1909 for as_dir in $PATH
   1910 do
   1911   IFS=$as_save_IFS
   1912   case $as_dir in #(((
   1913     '') as_dir=./ ;;
   1914     */) ;;
   1915     *) as_dir=$as_dir/ ;;
   1916   esac
   1917     printf "%s\n" "PATH: $as_dir"
   1918   done
   1919 IFS=$as_save_IFS
   1920 
   1921 } >&5
   1922 
   1923 cat >&5 <<_ACEOF
   1924 
   1925 
   1926 ## ----------- ##
   1927 ## Core tests. ##
   1928 ## ----------- ##
   1929 
   1930 _ACEOF
   1931 
   1932 
   1933 # Keep a trace of the command line.
   1934 # Strip out --no-create and --no-recursion so they do not pile up.
   1935 # Strip out --silent because we don't want to record it for future runs.
   1936 # Also quote any args containing shell meta-characters.
   1937 # Make two passes to allow for proper duplicate-argument suppression.
   1938 ac_configure_args=
   1939 ac_configure_args0=
   1940 ac_configure_args1=
   1941 ac_must_keep_next=false
   1942 for ac_pass in 1 2
   1943 do
   1944   for ac_arg
   1945   do
   1946     case $ac_arg in
   1947     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   1948     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1949     | -silent | --silent | --silen | --sile | --sil)
   1950       continue ;;
   1951     *\'*)
   1952       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   1953     esac
   1954     case $ac_pass in
   1955     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   1956     2)
   1957       as_fn_append ac_configure_args1 " '$ac_arg'"
   1958       if test $ac_must_keep_next = true; then
   1959 	ac_must_keep_next=false # Got value, back to normal.
   1960       else
   1961 	case $ac_arg in
   1962 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   1963 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   1964 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   1965 	  | -with-* | --with-* | -without-* | --without-* | --x)
   1966 	    case "$ac_configure_args0 " in
   1967 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   1968 	    esac
   1969 	    ;;
   1970 	  -* ) ac_must_keep_next=true ;;
   1971 	esac
   1972       fi
   1973       as_fn_append ac_configure_args " '$ac_arg'"
   1974       ;;
   1975     esac
   1976   done
   1977 done
   1978 { ac_configure_args0=; unset ac_configure_args0;}
   1979 { ac_configure_args1=; unset ac_configure_args1;}
   1980 
   1981 # When interrupted or exit'd, cleanup temporary files, and complete
   1982 # config.log.  We remove comments because anyway the quotes in there
   1983 # would cause problems or look ugly.
   1984 # WARNING: Use '\'' to represent an apostrophe within the trap.
   1985 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   1986 trap 'exit_status=$?
   1987   # Sanitize IFS.
   1988   IFS=" ""	$as_nl"
   1989   # Save into config.log some information that might help in debugging.
   1990   {
   1991     echo
   1992 
   1993     printf "%s\n" "## ---------------- ##
   1994 ## Cache variables. ##
   1995 ## ---------------- ##"
   1996     echo
   1997     # The following way of writing the cache mishandles newlines in values,
   1998 (
   1999   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2000     eval ac_val=\$$ac_var
   2001     case $ac_val in #(
   2002     *${as_nl}*)
   2003       case $ac_var in #(
   2004       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2005 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2006       esac
   2007       case $ac_var in #(
   2008       _ | IFS | as_nl) ;; #(
   2009       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2010       *) { eval $ac_var=; unset $ac_var;} ;;
   2011       esac ;;
   2012     esac
   2013   done
   2014   (set) 2>&1 |
   2015     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2016     *${as_nl}ac_space=\ *)
   2017       sed -n \
   2018 	"s/'\''/'\''\\\\'\'''\''/g;
   2019 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2020       ;; #(
   2021     *)
   2022       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2023       ;;
   2024     esac |
   2025     sort
   2026 )
   2027     echo
   2028 
   2029     printf "%s\n" "## ----------------- ##
   2030 ## Output variables. ##
   2031 ## ----------------- ##"
   2032     echo
   2033     for ac_var in $ac_subst_vars
   2034     do
   2035       eval ac_val=\$$ac_var
   2036       case $ac_val in
   2037       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2038       esac
   2039       printf "%s\n" "$ac_var='\''$ac_val'\''"
   2040     done | sort
   2041     echo
   2042 
   2043     if test -n "$ac_subst_files"; then
   2044       printf "%s\n" "## ------------------- ##
   2045 ## File substitutions. ##
   2046 ## ------------------- ##"
   2047       echo
   2048       for ac_var in $ac_subst_files
   2049       do
   2050 	eval ac_val=\$$ac_var
   2051 	case $ac_val in
   2052 	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2053 	esac
   2054 	printf "%s\n" "$ac_var='\''$ac_val'\''"
   2055       done | sort
   2056       echo
   2057     fi
   2058 
   2059     if test -s confdefs.h; then
   2060       printf "%s\n" "## ----------- ##
   2061 ## confdefs.h. ##
   2062 ## ----------- ##"
   2063       echo
   2064       cat confdefs.h
   2065       echo
   2066     fi
   2067     test "$ac_signal" != 0 &&
   2068       printf "%s\n" "$as_me: caught signal $ac_signal"
   2069     printf "%s\n" "$as_me: exit $exit_status"
   2070   } >&5
   2071   rm -f core *.core core.conftest.* &&
   2072     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2073     exit $exit_status
   2074 ' 0
   2075 for ac_signal in 1 2 13 15; do
   2076   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2077 done
   2078 ac_signal=0
   2079 
   2080 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2081 rm -f -r conftest* confdefs.h
   2082 
   2083 printf "%s\n" "/* confdefs.h */" > confdefs.h
   2084 
   2085 # Predefined preprocessor variables.
   2086 
   2087 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
   2088 
   2089 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
   2090 
   2091 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
   2092 
   2093 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
   2094 
   2095 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
   2096 
   2097 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
   2098 
   2099 
   2100 # Let the site file select an alternate cache file if it wants to.
   2101 # Prefer an explicitly selected file to automatically selected ones.
   2102 if test -n "$CONFIG_SITE"; then
   2103   ac_site_files="$CONFIG_SITE"
   2104 elif test "x$prefix" != xNONE; then
   2105   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
   2106 else
   2107   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
   2108 fi
   2109 
   2110 for ac_site_file in $ac_site_files
   2111 do
   2112   case $ac_site_file in #(
   2113   */*) :
   2114      ;; #(
   2115   *) :
   2116     ac_site_file=./$ac_site_file ;;
   2117 esac
   2118   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
   2119     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2120 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
   2121     sed 's/^/| /' "$ac_site_file" >&5
   2122     . "$ac_site_file" \
   2123       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2124 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   2125 as_fn_error $? "failed to load site script $ac_site_file
   2126 See \`config.log' for more details" "$LINENO" 5; }
   2127   fi
   2128 done
   2129 
   2130 if test -r "$cache_file"; then
   2131   # Some versions of bash will fail to source /dev/null (special files
   2132   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2133   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2134     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2135 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
   2136     case $cache_file in
   2137       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2138       *)                      . "./$cache_file";;
   2139     esac
   2140   fi
   2141 else
   2142   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2143 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
   2144   >$cache_file
   2145 fi
   2146 
   2147 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
   2148 # Test code for whether the C compiler supports C89 (global declarations)
   2149 ac_c_conftest_c89_globals='
   2150 /* Does the compiler advertise C89 conformance?
   2151    Do not test the value of __STDC__, because some compilers set it to 0
   2152    while being otherwise adequately conformant. */
   2153 #if !defined __STDC__
   2154 # error "Compiler does not advertise C89 conformance"
   2155 #endif
   2156 
   2157 #include <stddef.h>
   2158 #include <stdarg.h>
   2159 struct stat;
   2160 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
   2161 struct buf { int x; };
   2162 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
   2163 static char *e (p, i)
   2164      char **p;
   2165      int i;
   2166 {
   2167   return p[i];
   2168 }
   2169 static char *f (char * (*g) (char **, int), char **p, ...)
   2170 {
   2171   char *s;
   2172   va_list v;
   2173   va_start (v,p);
   2174   s = g (p, va_arg (v,int));
   2175   va_end (v);
   2176   return s;
   2177 }
   2178 
   2179 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   2180    function prototypes and stuff, but not \xHH hex character constants.
   2181    These do not provoke an error unfortunately, instead are silently treated
   2182    as an "x".  The following induces an error, until -std is added to get
   2183    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
   2184    array size at least.  It is necessary to write \x00 == 0 to get something
   2185    that is true only with -std.  */
   2186 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
   2187 
   2188 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   2189    inside strings and character constants.  */
   2190 #define FOO(x) '\''x'\''
   2191 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
   2192 
   2193 int test (int i, double x);
   2194 struct s1 {int (*f) (int a);};
   2195 struct s2 {int (*f) (double a);};
   2196 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
   2197                int, int);'
   2198 
   2199 # Test code for whether the C compiler supports C89 (body of main).
   2200 ac_c_conftest_c89_main='
   2201 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
   2202 '
   2203 
   2204 # Test code for whether the C compiler supports C99 (global declarations)
   2205 ac_c_conftest_c99_globals='
   2206 // Does the compiler advertise C99 conformance?
   2207 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
   2208 # error "Compiler does not advertise C99 conformance"
   2209 #endif
   2210 
   2211 #include <stdbool.h>
   2212 extern int puts (const char *);
   2213 extern int printf (const char *, ...);
   2214 extern int dprintf (int, const char *, ...);
   2215 extern void *malloc (size_t);
   2216 
   2217 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
   2218 // dprintf is used instead of fprintf to avoid needing to declare
   2219 // FILE and stderr.
   2220 #define debug(...) dprintf (2, __VA_ARGS__)
   2221 #define showlist(...) puts (#__VA_ARGS__)
   2222 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
   2223 static void
   2224 test_varargs_macros (void)
   2225 {
   2226   int x = 1234;
   2227   int y = 5678;
   2228   debug ("Flag");
   2229   debug ("X = %d\n", x);
   2230   showlist (The first, second, and third items.);
   2231   report (x>y, "x is %d but y is %d", x, y);
   2232 }
   2233 
   2234 // Check long long types.
   2235 #define BIG64 18446744073709551615ull
   2236 #define BIG32 4294967295ul
   2237 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
   2238 #if !BIG_OK
   2239   #error "your preprocessor is broken"
   2240 #endif
   2241 #if BIG_OK
   2242 #else
   2243   #error "your preprocessor is broken"
   2244 #endif
   2245 static long long int bignum = -9223372036854775807LL;
   2246 static unsigned long long int ubignum = BIG64;
   2247 
   2248 struct incomplete_array
   2249 {
   2250   int datasize;
   2251   double data[];
   2252 };
   2253 
   2254 struct named_init {
   2255   int number;
   2256   const wchar_t *name;
   2257   double average;
   2258 };
   2259 
   2260 typedef const char *ccp;
   2261 
   2262 static inline int
   2263 test_restrict (ccp restrict text)
   2264 {
   2265   // See if C++-style comments work.
   2266   // Iterate through items via the restricted pointer.
   2267   // Also check for declarations in for loops.
   2268   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
   2269     continue;
   2270   return 0;
   2271 }
   2272 
   2273 // Check varargs and va_copy.
   2274 static bool
   2275 test_varargs (const char *format, ...)
   2276 {
   2277   va_list args;
   2278   va_start (args, format);
   2279   va_list args_copy;
   2280   va_copy (args_copy, args);
   2281 
   2282   const char *str = "";
   2283   int number = 0;
   2284   float fnumber = 0;
   2285 
   2286   while (*format)
   2287     {
   2288       switch (*format++)
   2289 	{
   2290 	case '\''s'\'': // string
   2291 	  str = va_arg (args_copy, const char *);
   2292 	  break;
   2293 	case '\''d'\'': // int
   2294 	  number = va_arg (args_copy, int);
   2295 	  break;
   2296 	case '\''f'\'': // float
   2297 	  fnumber = va_arg (args_copy, double);
   2298 	  break;
   2299 	default:
   2300 	  break;
   2301 	}
   2302     }
   2303   va_end (args_copy);
   2304   va_end (args);
   2305 
   2306   return *str && number && fnumber;
   2307 }
   2308 '
   2309 
   2310 # Test code for whether the C compiler supports C99 (body of main).
   2311 ac_c_conftest_c99_main='
   2312   // Check bool.
   2313   _Bool success = false;
   2314   success |= (argc != 0);
   2315 
   2316   // Check restrict.
   2317   if (test_restrict ("String literal") == 0)
   2318     success = true;
   2319   char *restrict newvar = "Another string";
   2320 
   2321   // Check varargs.
   2322   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
   2323   test_varargs_macros ();
   2324 
   2325   // Check flexible array members.
   2326   struct incomplete_array *ia =
   2327     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
   2328   ia->datasize = 10;
   2329   for (int i = 0; i < ia->datasize; ++i)
   2330     ia->data[i] = i * 1.234;
   2331 
   2332   // Check named initializers.
   2333   struct named_init ni = {
   2334     .number = 34,
   2335     .name = L"Test wide string",
   2336     .average = 543.34343,
   2337   };
   2338 
   2339   ni.number = 58;
   2340 
   2341   int dynamic_array[ni.number];
   2342   dynamic_array[0] = argv[0][0];
   2343   dynamic_array[ni.number - 1] = 543;
   2344 
   2345   // work around unused variable warnings
   2346   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
   2347 	 || dynamic_array[ni.number - 1] != 543);
   2348 '
   2349 
   2350 # Test code for whether the C compiler supports C11 (global declarations)
   2351 ac_c_conftest_c11_globals='
   2352 // Does the compiler advertise C11 conformance?
   2353 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
   2354 # error "Compiler does not advertise C11 conformance"
   2355 #endif
   2356 
   2357 // Check _Alignas.
   2358 char _Alignas (double) aligned_as_double;
   2359 char _Alignas (0) no_special_alignment;
   2360 extern char aligned_as_int;
   2361 char _Alignas (0) _Alignas (int) aligned_as_int;
   2362 
   2363 // Check _Alignof.
   2364 enum
   2365 {
   2366   int_alignment = _Alignof (int),
   2367   int_array_alignment = _Alignof (int[100]),
   2368   char_alignment = _Alignof (char)
   2369 };
   2370 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
   2371 
   2372 // Check _Noreturn.
   2373 int _Noreturn does_not_return (void) { for (;;) continue; }
   2374 
   2375 // Check _Static_assert.
   2376 struct test_static_assert
   2377 {
   2378   int x;
   2379   _Static_assert (sizeof (int) <= sizeof (long int),
   2380                   "_Static_assert does not work in struct");
   2381   long int y;
   2382 };
   2383 
   2384 // Check UTF-8 literals.
   2385 #define u8 syntax error!
   2386 char const utf8_literal[] = u8"happens to be ASCII" "another string";
   2387 
   2388 // Check duplicate typedefs.
   2389 typedef long *long_ptr;
   2390 typedef long int *long_ptr;
   2391 typedef long_ptr long_ptr;
   2392 
   2393 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
   2394 struct anonymous
   2395 {
   2396   union {
   2397     struct { int i; int j; };
   2398     struct { int k; long int l; } w;
   2399   };
   2400   int m;
   2401 } v1;
   2402 '
   2403 
   2404 # Test code for whether the C compiler supports C11 (body of main).
   2405 ac_c_conftest_c11_main='
   2406   _Static_assert ((offsetof (struct anonymous, i)
   2407 		   == offsetof (struct anonymous, w.k)),
   2408 		  "Anonymous union alignment botch");
   2409   v1.i = 2;
   2410   v1.w.k = 5;
   2411   ok |= v1.i != 5;
   2412 '
   2413 
   2414 # Test code for whether the C compiler supports C11 (complete).
   2415 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
   2416 ${ac_c_conftest_c99_globals}
   2417 ${ac_c_conftest_c11_globals}
   2418 
   2419 int
   2420 main (int argc, char **argv)
   2421 {
   2422   int ok = 0;
   2423   ${ac_c_conftest_c89_main}
   2424   ${ac_c_conftest_c99_main}
   2425   ${ac_c_conftest_c11_main}
   2426   return ok;
   2427 }
   2428 "
   2429 
   2430 # Test code for whether the C compiler supports C99 (complete).
   2431 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
   2432 ${ac_c_conftest_c99_globals}
   2433 
   2434 int
   2435 main (int argc, char **argv)
   2436 {
   2437   int ok = 0;
   2438   ${ac_c_conftest_c89_main}
   2439   ${ac_c_conftest_c99_main}
   2440   return ok;
   2441 }
   2442 "
   2443 
   2444 # Test code for whether the C compiler supports C89 (complete).
   2445 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
   2446 
   2447 int
   2448 main (int argc, char **argv)
   2449 {
   2450   int ok = 0;
   2451   ${ac_c_conftest_c89_main}
   2452   return ok;
   2453 }
   2454 "
   2455 
   2456 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
   2457 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
   2458 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
   2459 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
   2460 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
   2461 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
   2462 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
   2463 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
   2464 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
   2465 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
   2466 
   2467 # Auxiliary files required by this configure script.
   2468 ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile"
   2469 
   2470 # Locations in which to look for auxiliary files.
   2471 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
   2472 
   2473 # Search for a directory containing all of the required auxiliary files,
   2474 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
   2475 # If we don't find one directory that contains all the files we need,
   2476 # we report the set of missing files from the *first* directory in
   2477 # $ac_aux_dir_candidates and give up.
   2478 ac_missing_aux_files=""
   2479 ac_first_candidate=:
   2480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
   2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2482 as_found=false
   2483 for as_dir in $ac_aux_dir_candidates
   2484 do
   2485   IFS=$as_save_IFS
   2486   case $as_dir in #(((
   2487     '') as_dir=./ ;;
   2488     */) ;;
   2489     *) as_dir=$as_dir/ ;;
   2490   esac
   2491   as_found=:
   2492 
   2493   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
   2494   ac_aux_dir_found=yes
   2495   ac_install_sh=
   2496   for ac_aux in $ac_aux_files
   2497   do
   2498     # As a special case, if "install-sh" is required, that requirement
   2499     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
   2500     # and $ac_install_sh is set appropriately for whichever one is found.
   2501     if test x"$ac_aux" = x"install-sh"
   2502     then
   2503       if test -f "${as_dir}install-sh"; then
   2504         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
   2505         ac_install_sh="${as_dir}install-sh -c"
   2506       elif test -f "${as_dir}install.sh"; then
   2507         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
   2508         ac_install_sh="${as_dir}install.sh -c"
   2509       elif test -f "${as_dir}shtool"; then
   2510         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
   2511         ac_install_sh="${as_dir}shtool install -c"
   2512       else
   2513         ac_aux_dir_found=no
   2514         if $ac_first_candidate; then
   2515           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
   2516         else
   2517           break
   2518         fi
   2519       fi
   2520     else
   2521       if test -f "${as_dir}${ac_aux}"; then
   2522         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
   2523       else
   2524         ac_aux_dir_found=no
   2525         if $ac_first_candidate; then
   2526           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
   2527         else
   2528           break
   2529         fi
   2530       fi
   2531     fi
   2532   done
   2533   if test "$ac_aux_dir_found" = yes; then
   2534     ac_aux_dir="$as_dir"
   2535     break
   2536   fi
   2537   ac_first_candidate=false
   2538 
   2539   as_found=false
   2540 done
   2541 IFS=$as_save_IFS
   2542 if $as_found
   2543 then :
   2544 
   2545 else $as_nop
   2546   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
   2547 fi
   2548 
   2549 
   2550 # These three variables are undocumented and unsupported,
   2551 # and are intended to be withdrawn in a future Autoconf release.
   2552 # They can cause serious problems if a builder's source tree is in a directory
   2553 # whose full name contains unusual characters.
   2554 if test -f "${ac_aux_dir}config.guess"; then
   2555   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
   2556 fi
   2557 if test -f "${ac_aux_dir}config.sub"; then
   2558   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
   2559 fi
   2560 if test -f "$ac_aux_dir/configure"; then
   2561   ac_configure="$SHELL ${ac_aux_dir}configure"
   2562 fi
   2563 
   2564 # Check that the precious variables saved in the cache have kept the same
   2565 # value.
   2566 ac_cache_corrupted=false
   2567 for ac_var in $ac_precious_vars; do
   2568   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2569   eval ac_new_set=\$ac_env_${ac_var}_set
   2570   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2571   eval ac_new_val=\$ac_env_${ac_var}_value
   2572   case $ac_old_set,$ac_new_set in
   2573     set,)
   2574       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2575 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2576       ac_cache_corrupted=: ;;
   2577     ,set)
   2578       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2579 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2580       ac_cache_corrupted=: ;;
   2581     ,);;
   2582     *)
   2583       if test "x$ac_old_val" != "x$ac_new_val"; then
   2584 	# differences in whitespace do not lead to failure.
   2585 	ac_old_val_w=`echo x $ac_old_val`
   2586 	ac_new_val_w=`echo x $ac_new_val`
   2587 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2588 	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2589 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2590 	  ac_cache_corrupted=:
   2591 	else
   2592 	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2593 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2594 	  eval $ac_var=\$ac_old_val
   2595 	fi
   2596 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2597 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2598 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2599 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
   2600       fi;;
   2601   esac
   2602   # Pass precious variables to config.status.
   2603   if test "$ac_new_set" = set; then
   2604     case $ac_new_val in
   2605     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2606     *) ac_arg=$ac_var=$ac_new_val ;;
   2607     esac
   2608     case " $ac_configure_args " in
   2609       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2610       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2611     esac
   2612   fi
   2613 done
   2614 if $ac_cache_corrupted; then
   2615   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2616 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   2617   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2618 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
   2619   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
   2620 	    and start over" "$LINENO" 5
   2621 fi
   2622 ## -------------------- ##
   2623 ## Main body of script. ##
   2624 ## -------------------- ##
   2625 
   2626 ac_ext=c
   2627 ac_cpp='$CPP $CPPFLAGS'
   2628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2631 
   2632 
   2633 
   2634 ac_config_headers="$ac_config_headers config.h"
   2635 
   2636 
   2637 
   2638 
   2639 
   2640 
   2641 
   2642 
   2643 
   2644 
   2645 
   2646 
   2647 
   2648 # Expand $ac_aux_dir to an absolute path.
   2649 am_aux_dir=`cd "$ac_aux_dir" && pwd`
   2650 
   2651 ac_ext=c
   2652 ac_cpp='$CPP $CPPFLAGS'
   2653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2656 if test -n "$ac_tool_prefix"; then
   2657   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   2658 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   2659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2660 printf %s "checking for $ac_word... " >&6; }
   2661 if test ${ac_cv_prog_CC+y}
   2662 then :
   2663   printf %s "(cached) " >&6
   2664 else $as_nop
   2665   if test -n "$CC"; then
   2666   ac_cv_prog_CC="$CC" # Let the user override the test.
   2667 else
   2668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2669 for as_dir in $PATH
   2670 do
   2671   IFS=$as_save_IFS
   2672   case $as_dir in #(((
   2673     '') as_dir=./ ;;
   2674     */) ;;
   2675     *) as_dir=$as_dir/ ;;
   2676   esac
   2677     for ac_exec_ext in '' $ac_executable_extensions; do
   2678   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2679     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   2680     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2681     break 2
   2682   fi
   2683 done
   2684   done
   2685 IFS=$as_save_IFS
   2686 
   2687 fi
   2688 fi
   2689 CC=$ac_cv_prog_CC
   2690 if test -n "$CC"; then
   2691   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2692 printf "%s\n" "$CC" >&6; }
   2693 else
   2694   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2695 printf "%s\n" "no" >&6; }
   2696 fi
   2697 
   2698 
   2699 fi
   2700 if test -z "$ac_cv_prog_CC"; then
   2701   ac_ct_CC=$CC
   2702   # Extract the first word of "gcc", so it can be a program name with args.
   2703 set dummy gcc; ac_word=$2
   2704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2705 printf %s "checking for $ac_word... " >&6; }
   2706 if test ${ac_cv_prog_ac_ct_CC+y}
   2707 then :
   2708   printf %s "(cached) " >&6
   2709 else $as_nop
   2710   if test -n "$ac_ct_CC"; then
   2711   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2712 else
   2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2714 for as_dir in $PATH
   2715 do
   2716   IFS=$as_save_IFS
   2717   case $as_dir in #(((
   2718     '') as_dir=./ ;;
   2719     */) ;;
   2720     *) as_dir=$as_dir/ ;;
   2721   esac
   2722     for ac_exec_ext in '' $ac_executable_extensions; do
   2723   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2724     ac_cv_prog_ac_ct_CC="gcc"
   2725     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2726     break 2
   2727   fi
   2728 done
   2729   done
   2730 IFS=$as_save_IFS
   2731 
   2732 fi
   2733 fi
   2734 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2735 if test -n "$ac_ct_CC"; then
   2736   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2737 printf "%s\n" "$ac_ct_CC" >&6; }
   2738 else
   2739   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2740 printf "%s\n" "no" >&6; }
   2741 fi
   2742 
   2743   if test "x$ac_ct_CC" = x; then
   2744     CC=""
   2745   else
   2746     case $cross_compiling:$ac_tool_warned in
   2747 yes:)
   2748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2749 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2750 ac_tool_warned=yes ;;
   2751 esac
   2752     CC=$ac_ct_CC
   2753   fi
   2754 else
   2755   CC="$ac_cv_prog_CC"
   2756 fi
   2757 
   2758 if test -z "$CC"; then
   2759           if test -n "$ac_tool_prefix"; then
   2760     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   2761 set dummy ${ac_tool_prefix}cc; ac_word=$2
   2762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2763 printf %s "checking for $ac_word... " >&6; }
   2764 if test ${ac_cv_prog_CC+y}
   2765 then :
   2766   printf %s "(cached) " >&6
   2767 else $as_nop
   2768   if test -n "$CC"; then
   2769   ac_cv_prog_CC="$CC" # Let the user override the test.
   2770 else
   2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2772 for as_dir in $PATH
   2773 do
   2774   IFS=$as_save_IFS
   2775   case $as_dir in #(((
   2776     '') as_dir=./ ;;
   2777     */) ;;
   2778     *) as_dir=$as_dir/ ;;
   2779   esac
   2780     for ac_exec_ext in '' $ac_executable_extensions; do
   2781   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2782     ac_cv_prog_CC="${ac_tool_prefix}cc"
   2783     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2784     break 2
   2785   fi
   2786 done
   2787   done
   2788 IFS=$as_save_IFS
   2789 
   2790 fi
   2791 fi
   2792 CC=$ac_cv_prog_CC
   2793 if test -n "$CC"; then
   2794   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2795 printf "%s\n" "$CC" >&6; }
   2796 else
   2797   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2798 printf "%s\n" "no" >&6; }
   2799 fi
   2800 
   2801 
   2802   fi
   2803 fi
   2804 if test -z "$CC"; then
   2805   # Extract the first word of "cc", so it can be a program name with args.
   2806 set dummy cc; ac_word=$2
   2807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2808 printf %s "checking for $ac_word... " >&6; }
   2809 if test ${ac_cv_prog_CC+y}
   2810 then :
   2811   printf %s "(cached) " >&6
   2812 else $as_nop
   2813   if test -n "$CC"; then
   2814   ac_cv_prog_CC="$CC" # Let the user override the test.
   2815 else
   2816   ac_prog_rejected=no
   2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2818 for as_dir in $PATH
   2819 do
   2820   IFS=$as_save_IFS
   2821   case $as_dir in #(((
   2822     '') as_dir=./ ;;
   2823     */) ;;
   2824     *) as_dir=$as_dir/ ;;
   2825   esac
   2826     for ac_exec_ext in '' $ac_executable_extensions; do
   2827   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2828     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   2829        ac_prog_rejected=yes
   2830        continue
   2831      fi
   2832     ac_cv_prog_CC="cc"
   2833     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2834     break 2
   2835   fi
   2836 done
   2837   done
   2838 IFS=$as_save_IFS
   2839 
   2840 if test $ac_prog_rejected = yes; then
   2841   # We found a bogon in the path, so make sure we never use it.
   2842   set dummy $ac_cv_prog_CC
   2843   shift
   2844   if test $# != 0; then
   2845     # We chose a different compiler from the bogus one.
   2846     # However, it has the same basename, so the bogon will be chosen
   2847     # first if we set CC to just the basename; use the full file name.
   2848     shift
   2849     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
   2850   fi
   2851 fi
   2852 fi
   2853 fi
   2854 CC=$ac_cv_prog_CC
   2855 if test -n "$CC"; then
   2856   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2857 printf "%s\n" "$CC" >&6; }
   2858 else
   2859   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2860 printf "%s\n" "no" >&6; }
   2861 fi
   2862 
   2863 
   2864 fi
   2865 if test -z "$CC"; then
   2866   if test -n "$ac_tool_prefix"; then
   2867   for ac_prog in cl.exe
   2868   do
   2869     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2870 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2872 printf %s "checking for $ac_word... " >&6; }
   2873 if test ${ac_cv_prog_CC+y}
   2874 then :
   2875   printf %s "(cached) " >&6
   2876 else $as_nop
   2877   if test -n "$CC"; then
   2878   ac_cv_prog_CC="$CC" # Let the user override the test.
   2879 else
   2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2881 for as_dir in $PATH
   2882 do
   2883   IFS=$as_save_IFS
   2884   case $as_dir in #(((
   2885     '') as_dir=./ ;;
   2886     */) ;;
   2887     *) as_dir=$as_dir/ ;;
   2888   esac
   2889     for ac_exec_ext in '' $ac_executable_extensions; do
   2890   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2891     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   2892     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2893     break 2
   2894   fi
   2895 done
   2896   done
   2897 IFS=$as_save_IFS
   2898 
   2899 fi
   2900 fi
   2901 CC=$ac_cv_prog_CC
   2902 if test -n "$CC"; then
   2903   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2904 printf "%s\n" "$CC" >&6; }
   2905 else
   2906   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2907 printf "%s\n" "no" >&6; }
   2908 fi
   2909 
   2910 
   2911     test -n "$CC" && break
   2912   done
   2913 fi
   2914 if test -z "$CC"; then
   2915   ac_ct_CC=$CC
   2916   for ac_prog in cl.exe
   2917 do
   2918   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2919 set dummy $ac_prog; ac_word=$2
   2920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2921 printf %s "checking for $ac_word... " >&6; }
   2922 if test ${ac_cv_prog_ac_ct_CC+y}
   2923 then :
   2924   printf %s "(cached) " >&6
   2925 else $as_nop
   2926   if test -n "$ac_ct_CC"; then
   2927   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2928 else
   2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2930 for as_dir in $PATH
   2931 do
   2932   IFS=$as_save_IFS
   2933   case $as_dir in #(((
   2934     '') as_dir=./ ;;
   2935     */) ;;
   2936     *) as_dir=$as_dir/ ;;
   2937   esac
   2938     for ac_exec_ext in '' $ac_executable_extensions; do
   2939   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   2940     ac_cv_prog_ac_ct_CC="$ac_prog"
   2941     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   2942     break 2
   2943   fi
   2944 done
   2945   done
   2946 IFS=$as_save_IFS
   2947 
   2948 fi
   2949 fi
   2950 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2951 if test -n "$ac_ct_CC"; then
   2952   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2953 printf "%s\n" "$ac_ct_CC" >&6; }
   2954 else
   2955   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2956 printf "%s\n" "no" >&6; }
   2957 fi
   2958 
   2959 
   2960   test -n "$ac_ct_CC" && break
   2961 done
   2962 
   2963   if test "x$ac_ct_CC" = x; then
   2964     CC=""
   2965   else
   2966     case $cross_compiling:$ac_tool_warned in
   2967 yes:)
   2968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2969 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2970 ac_tool_warned=yes ;;
   2971 esac
   2972     CC=$ac_ct_CC
   2973   fi
   2974 fi
   2975 
   2976 fi
   2977 if test -z "$CC"; then
   2978   if test -n "$ac_tool_prefix"; then
   2979   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
   2980 set dummy ${ac_tool_prefix}clang; ac_word=$2
   2981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2982 printf %s "checking for $ac_word... " >&6; }
   2983 if test ${ac_cv_prog_CC+y}
   2984 then :
   2985   printf %s "(cached) " >&6
   2986 else $as_nop
   2987   if test -n "$CC"; then
   2988   ac_cv_prog_CC="$CC" # Let the user override the test.
   2989 else
   2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2991 for as_dir in $PATH
   2992 do
   2993   IFS=$as_save_IFS
   2994   case $as_dir in #(((
   2995     '') as_dir=./ ;;
   2996     */) ;;
   2997     *) as_dir=$as_dir/ ;;
   2998   esac
   2999     for ac_exec_ext in '' $ac_executable_extensions; do
   3000   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3001     ac_cv_prog_CC="${ac_tool_prefix}clang"
   3002     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3003     break 2
   3004   fi
   3005 done
   3006   done
   3007 IFS=$as_save_IFS
   3008 
   3009 fi
   3010 fi
   3011 CC=$ac_cv_prog_CC
   3012 if test -n "$CC"; then
   3013   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3014 printf "%s\n" "$CC" >&6; }
   3015 else
   3016   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3017 printf "%s\n" "no" >&6; }
   3018 fi
   3019 
   3020 
   3021 fi
   3022 if test -z "$ac_cv_prog_CC"; then
   3023   ac_ct_CC=$CC
   3024   # Extract the first word of "clang", so it can be a program name with args.
   3025 set dummy clang; ac_word=$2
   3026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3027 printf %s "checking for $ac_word... " >&6; }
   3028 if test ${ac_cv_prog_ac_ct_CC+y}
   3029 then :
   3030   printf %s "(cached) " >&6
   3031 else $as_nop
   3032   if test -n "$ac_ct_CC"; then
   3033   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3034 else
   3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3036 for as_dir in $PATH
   3037 do
   3038   IFS=$as_save_IFS
   3039   case $as_dir in #(((
   3040     '') as_dir=./ ;;
   3041     */) ;;
   3042     *) as_dir=$as_dir/ ;;
   3043   esac
   3044     for ac_exec_ext in '' $ac_executable_extensions; do
   3045   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   3046     ac_cv_prog_ac_ct_CC="clang"
   3047     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   3048     break 2
   3049   fi
   3050 done
   3051   done
   3052 IFS=$as_save_IFS
   3053 
   3054 fi
   3055 fi
   3056 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3057 if test -n "$ac_ct_CC"; then
   3058   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3059 printf "%s\n" "$ac_ct_CC" >&6; }
   3060 else
   3061   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3062 printf "%s\n" "no" >&6; }
   3063 fi
   3064 
   3065   if test "x$ac_ct_CC" = x; then
   3066     CC=""
   3067   else
   3068     case $cross_compiling:$ac_tool_warned in
   3069 yes:)
   3070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3071 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3072 ac_tool_warned=yes ;;
   3073 esac
   3074     CC=$ac_ct_CC
   3075   fi
   3076 else
   3077   CC="$ac_cv_prog_CC"
   3078 fi
   3079 
   3080 fi
   3081 
   3082 
   3083 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3084 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   3085 as_fn_error $? "no acceptable C compiler found in \$PATH
   3086 See \`config.log' for more details" "$LINENO" 5; }
   3087 
   3088 # Provide some information about the compiler.
   3089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3090 set X $ac_compile
   3091 ac_compiler=$2
   3092 for ac_option in --version -v -V -qversion -version; do
   3093   { { ac_try="$ac_compiler $ac_option >&5"
   3094 case "(($ac_try" in
   3095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3096   *) ac_try_echo=$ac_try;;
   3097 esac
   3098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3099 printf "%s\n" "$ac_try_echo"; } >&5
   3100   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3101   ac_status=$?
   3102   if test -s conftest.err; then
   3103     sed '10a\
   3104 ... rest of stderr output deleted ...
   3105          10q' conftest.err >conftest.er1
   3106     cat conftest.er1 >&5
   3107   fi
   3108   rm -f conftest.er1 conftest.err
   3109   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3110   test $ac_status = 0; }
   3111 done
   3112 
   3113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3114 /* end confdefs.h.  */
   3115 
   3116 int
   3117 main (void)
   3118 {
   3119 
   3120   ;
   3121   return 0;
   3122 }
   3123 _ACEOF
   3124 ac_clean_files_save=$ac_clean_files
   3125 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   3126 # Try to create an executable without -o first, disregard a.out.
   3127 # It will help us diagnose broken compilers, and finding out an intuition
   3128 # of exeext.
   3129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3130 printf %s "checking whether the C compiler works... " >&6; }
   3131 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3132 
   3133 # The possible output files:
   3134 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3135 
   3136 ac_rmfiles=
   3137 for ac_file in $ac_files
   3138 do
   3139   case $ac_file in
   3140     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3141     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3142   esac
   3143 done
   3144 rm -f $ac_rmfiles
   3145 
   3146 if { { ac_try="$ac_link_default"
   3147 case "(($ac_try" in
   3148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3149   *) ac_try_echo=$ac_try;;
   3150 esac
   3151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3152 printf "%s\n" "$ac_try_echo"; } >&5
   3153   (eval "$ac_link_default") 2>&5
   3154   ac_status=$?
   3155   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3156   test $ac_status = 0; }
   3157 then :
   3158   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3159 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3160 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3161 # so that the user can short-circuit this test for compilers unknown to
   3162 # Autoconf.
   3163 for ac_file in $ac_files ''
   3164 do
   3165   test -f "$ac_file" || continue
   3166   case $ac_file in
   3167     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3168 	;;
   3169     [ab].out )
   3170 	# We found the default executable, but exeext='' is most
   3171 	# certainly right.
   3172 	break;;
   3173     *.* )
   3174 	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
   3175 	then :; else
   3176 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3177 	fi
   3178 	# We set ac_cv_exeext here because the later test for it is not
   3179 	# safe: cross compilers may not add the suffix if given an `-o'
   3180 	# argument, so we may need to know it at that point already.
   3181 	# Even if this section looks crufty: it has the advantage of
   3182 	# actually working.
   3183 	break;;
   3184     * )
   3185 	break;;
   3186   esac
   3187 done
   3188 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3189 
   3190 else $as_nop
   3191   ac_file=''
   3192 fi
   3193 if test -z "$ac_file"
   3194 then :
   3195   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3196 printf "%s\n" "no" >&6; }
   3197 printf "%s\n" "$as_me: failed program was:" >&5
   3198 sed 's/^/| /' conftest.$ac_ext >&5
   3199 
   3200 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3201 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   3202 as_fn_error 77 "C compiler cannot create executables
   3203 See \`config.log' for more details" "$LINENO" 5; }
   3204 else $as_nop
   3205   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3206 printf "%s\n" "yes" >&6; }
   3207 fi
   3208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3209 printf %s "checking for C compiler default output file name... " >&6; }
   3210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3211 printf "%s\n" "$ac_file" >&6; }
   3212 ac_exeext=$ac_cv_exeext
   3213 
   3214 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3215 ac_clean_files=$ac_clean_files_save
   3216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3217 printf %s "checking for suffix of executables... " >&6; }
   3218 if { { ac_try="$ac_link"
   3219 case "(($ac_try" in
   3220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3221   *) ac_try_echo=$ac_try;;
   3222 esac
   3223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3224 printf "%s\n" "$ac_try_echo"; } >&5
   3225   (eval "$ac_link") 2>&5
   3226   ac_status=$?
   3227   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3228   test $ac_status = 0; }
   3229 then :
   3230   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3231 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3232 # work properly (i.e., refer to `conftest.exe'), while it won't with
   3233 # `rm'.
   3234 for ac_file in conftest.exe conftest conftest.*; do
   3235   test -f "$ac_file" || continue
   3236   case $ac_file in
   3237     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3238     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3239 	  break;;
   3240     * ) break;;
   3241   esac
   3242 done
   3243 else $as_nop
   3244   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3245 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   3246 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   3247 See \`config.log' for more details" "$LINENO" 5; }
   3248 fi
   3249 rm -f conftest conftest$ac_cv_exeext
   3250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3251 printf "%s\n" "$ac_cv_exeext" >&6; }
   3252 
   3253 rm -f conftest.$ac_ext
   3254 EXEEXT=$ac_cv_exeext
   3255 ac_exeext=$EXEEXT
   3256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3257 /* end confdefs.h.  */
   3258 #include <stdio.h>
   3259 int
   3260 main (void)
   3261 {
   3262 FILE *f = fopen ("conftest.out", "w");
   3263  return ferror (f) || fclose (f) != 0;
   3264 
   3265   ;
   3266   return 0;
   3267 }
   3268 _ACEOF
   3269 ac_clean_files="$ac_clean_files conftest.out"
   3270 # Check that the compiler produces executables we can run.  If not, either
   3271 # the compiler is broken, or we cross compile.
   3272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3273 printf %s "checking whether we are cross compiling... " >&6; }
   3274 if test "$cross_compiling" != yes; then
   3275   { { ac_try="$ac_link"
   3276 case "(($ac_try" in
   3277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3278   *) ac_try_echo=$ac_try;;
   3279 esac
   3280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3281 printf "%s\n" "$ac_try_echo"; } >&5
   3282   (eval "$ac_link") 2>&5
   3283   ac_status=$?
   3284   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3285   test $ac_status = 0; }
   3286   if { ac_try='./conftest$ac_cv_exeext'
   3287   { { case "(($ac_try" in
   3288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3289   *) ac_try_echo=$ac_try;;
   3290 esac
   3291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3292 printf "%s\n" "$ac_try_echo"; } >&5
   3293   (eval "$ac_try") 2>&5
   3294   ac_status=$?
   3295   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3296   test $ac_status = 0; }; }; then
   3297     cross_compiling=no
   3298   else
   3299     if test "$cross_compiling" = maybe; then
   3300 	cross_compiling=yes
   3301     else
   3302 	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3303 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   3304 as_fn_error 77 "cannot run C compiled programs.
   3305 If you meant to cross compile, use \`--host'.
   3306 See \`config.log' for more details" "$LINENO" 5; }
   3307     fi
   3308   fi
   3309 fi
   3310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3311 printf "%s\n" "$cross_compiling" >&6; }
   3312 
   3313 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   3314 ac_clean_files=$ac_clean_files_save
   3315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3316 printf %s "checking for suffix of object files... " >&6; }
   3317 if test ${ac_cv_objext+y}
   3318 then :
   3319   printf %s "(cached) " >&6
   3320 else $as_nop
   3321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3322 /* end confdefs.h.  */
   3323 
   3324 int
   3325 main (void)
   3326 {
   3327 
   3328   ;
   3329   return 0;
   3330 }
   3331 _ACEOF
   3332 rm -f conftest.o conftest.obj
   3333 if { { ac_try="$ac_compile"
   3334 case "(($ac_try" in
   3335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3336   *) ac_try_echo=$ac_try;;
   3337 esac
   3338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3339 printf "%s\n" "$ac_try_echo"; } >&5
   3340   (eval "$ac_compile") 2>&5
   3341   ac_status=$?
   3342   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3343   test $ac_status = 0; }
   3344 then :
   3345   for ac_file in conftest.o conftest.obj conftest.*; do
   3346   test -f "$ac_file" || continue;
   3347   case $ac_file in
   3348     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3349     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3350        break;;
   3351   esac
   3352 done
   3353 else $as_nop
   3354   printf "%s\n" "$as_me: failed program was:" >&5
   3355 sed 's/^/| /' conftest.$ac_ext >&5
   3356 
   3357 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3358 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   3359 as_fn_error $? "cannot compute suffix of object files: cannot compile
   3360 See \`config.log' for more details" "$LINENO" 5; }
   3361 fi
   3362 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3363 fi
   3364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3365 printf "%s\n" "$ac_cv_objext" >&6; }
   3366 OBJEXT=$ac_cv_objext
   3367 ac_objext=$OBJEXT
   3368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
   3369 printf %s "checking whether the compiler supports GNU C... " >&6; }
   3370 if test ${ac_cv_c_compiler_gnu+y}
   3371 then :
   3372   printf %s "(cached) " >&6
   3373 else $as_nop
   3374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3375 /* end confdefs.h.  */
   3376 
   3377 int
   3378 main (void)
   3379 {
   3380 #ifndef __GNUC__
   3381        choke me
   3382 #endif
   3383 
   3384   ;
   3385   return 0;
   3386 }
   3387 _ACEOF
   3388 if ac_fn_c_try_compile "$LINENO"
   3389 then :
   3390   ac_compiler_gnu=yes
   3391 else $as_nop
   3392   ac_compiler_gnu=no
   3393 fi
   3394 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   3395 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3396 
   3397 fi
   3398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3399 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
   3400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3401 
   3402 if test $ac_compiler_gnu = yes; then
   3403   GCC=yes
   3404 else
   3405   GCC=
   3406 fi
   3407 ac_test_CFLAGS=${CFLAGS+y}
   3408 ac_save_CFLAGS=$CFLAGS
   3409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3410 printf %s "checking whether $CC accepts -g... " >&6; }
   3411 if test ${ac_cv_prog_cc_g+y}
   3412 then :
   3413   printf %s "(cached) " >&6
   3414 else $as_nop
   3415   ac_save_c_werror_flag=$ac_c_werror_flag
   3416    ac_c_werror_flag=yes
   3417    ac_cv_prog_cc_g=no
   3418    CFLAGS="-g"
   3419    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3420 /* end confdefs.h.  */
   3421 
   3422 int
   3423 main (void)
   3424 {
   3425 
   3426   ;
   3427   return 0;
   3428 }
   3429 _ACEOF
   3430 if ac_fn_c_try_compile "$LINENO"
   3431 then :
   3432   ac_cv_prog_cc_g=yes
   3433 else $as_nop
   3434   CFLAGS=""
   3435       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3436 /* end confdefs.h.  */
   3437 
   3438 int
   3439 main (void)
   3440 {
   3441 
   3442   ;
   3443   return 0;
   3444 }
   3445 _ACEOF
   3446 if ac_fn_c_try_compile "$LINENO"
   3447 then :
   3448 
   3449 else $as_nop
   3450   ac_c_werror_flag=$ac_save_c_werror_flag
   3451 	 CFLAGS="-g"
   3452 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3453 /* end confdefs.h.  */
   3454 
   3455 int
   3456 main (void)
   3457 {
   3458 
   3459   ;
   3460   return 0;
   3461 }
   3462 _ACEOF
   3463 if ac_fn_c_try_compile "$LINENO"
   3464 then :
   3465   ac_cv_prog_cc_g=yes
   3466 fi
   3467 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   3468 fi
   3469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   3470 fi
   3471 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   3472    ac_c_werror_flag=$ac_save_c_werror_flag
   3473 fi
   3474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3475 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
   3476 if test $ac_test_CFLAGS; then
   3477   CFLAGS=$ac_save_CFLAGS
   3478 elif test $ac_cv_prog_cc_g = yes; then
   3479   if test "$GCC" = yes; then
   3480     CFLAGS="-g -O2"
   3481   else
   3482     CFLAGS="-g"
   3483   fi
   3484 else
   3485   if test "$GCC" = yes; then
   3486     CFLAGS="-O2"
   3487   else
   3488     CFLAGS=
   3489   fi
   3490 fi
   3491 ac_prog_cc_stdc=no
   3492 if test x$ac_prog_cc_stdc = xno
   3493 then :
   3494   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
   3495 printf %s "checking for $CC option to enable C11 features... " >&6; }
   3496 if test ${ac_cv_prog_cc_c11+y}
   3497 then :
   3498   printf %s "(cached) " >&6
   3499 else $as_nop
   3500   ac_cv_prog_cc_c11=no
   3501 ac_save_CC=$CC
   3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3503 /* end confdefs.h.  */
   3504 $ac_c_conftest_c11_program
   3505 _ACEOF
   3506 for ac_arg in '' -std=gnu11
   3507 do
   3508   CC="$ac_save_CC $ac_arg"
   3509   if ac_fn_c_try_compile "$LINENO"
   3510 then :
   3511   ac_cv_prog_cc_c11=$ac_arg
   3512 fi
   3513 rm -f core conftest.err conftest.$ac_objext conftest.beam
   3514   test "x$ac_cv_prog_cc_c11" != "xno" && break
   3515 done
   3516 rm -f conftest.$ac_ext
   3517 CC=$ac_save_CC
   3518 fi
   3519 
   3520 if test "x$ac_cv_prog_cc_c11" = xno
   3521 then :
   3522   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3523 printf "%s\n" "unsupported" >&6; }
   3524 else $as_nop
   3525   if test "x$ac_cv_prog_cc_c11" = x
   3526 then :
   3527   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3528 printf "%s\n" "none needed" >&6; }
   3529 else $as_nop
   3530   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
   3531 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
   3532      CC="$CC $ac_cv_prog_cc_c11"
   3533 fi
   3534   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
   3535   ac_prog_cc_stdc=c11
   3536 fi
   3537 fi
   3538 if test x$ac_prog_cc_stdc = xno
   3539 then :
   3540   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
   3541 printf %s "checking for $CC option to enable C99 features... " >&6; }
   3542 if test ${ac_cv_prog_cc_c99+y}
   3543 then :
   3544   printf %s "(cached) " >&6
   3545 else $as_nop
   3546   ac_cv_prog_cc_c99=no
   3547 ac_save_CC=$CC
   3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3549 /* end confdefs.h.  */
   3550 $ac_c_conftest_c99_program
   3551 _ACEOF
   3552 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
   3553 do
   3554   CC="$ac_save_CC $ac_arg"
   3555   if ac_fn_c_try_compile "$LINENO"
   3556 then :
   3557   ac_cv_prog_cc_c99=$ac_arg
   3558 fi
   3559 rm -f core conftest.err conftest.$ac_objext conftest.beam
   3560   test "x$ac_cv_prog_cc_c99" != "xno" && break
   3561 done
   3562 rm -f conftest.$ac_ext
   3563 CC=$ac_save_CC
   3564 fi
   3565 
   3566 if test "x$ac_cv_prog_cc_c99" = xno
   3567 then :
   3568   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3569 printf "%s\n" "unsupported" >&6; }
   3570 else $as_nop
   3571   if test "x$ac_cv_prog_cc_c99" = x
   3572 then :
   3573   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3574 printf "%s\n" "none needed" >&6; }
   3575 else $as_nop
   3576   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
   3577 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
   3578      CC="$CC $ac_cv_prog_cc_c99"
   3579 fi
   3580   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
   3581   ac_prog_cc_stdc=c99
   3582 fi
   3583 fi
   3584 if test x$ac_prog_cc_stdc = xno
   3585 then :
   3586   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
   3587 printf %s "checking for $CC option to enable C89 features... " >&6; }
   3588 if test ${ac_cv_prog_cc_c89+y}
   3589 then :
   3590   printf %s "(cached) " >&6
   3591 else $as_nop
   3592   ac_cv_prog_cc_c89=no
   3593 ac_save_CC=$CC
   3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3595 /* end confdefs.h.  */
   3596 $ac_c_conftest_c89_program
   3597 _ACEOF
   3598 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3599 do
   3600   CC="$ac_save_CC $ac_arg"
   3601   if ac_fn_c_try_compile "$LINENO"
   3602 then :
   3603   ac_cv_prog_cc_c89=$ac_arg
   3604 fi
   3605 rm -f core conftest.err conftest.$ac_objext conftest.beam
   3606   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3607 done
   3608 rm -f conftest.$ac_ext
   3609 CC=$ac_save_CC
   3610 fi
   3611 
   3612 if test "x$ac_cv_prog_cc_c89" = xno
   3613 then :
   3614   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3615 printf "%s\n" "unsupported" >&6; }
   3616 else $as_nop
   3617   if test "x$ac_cv_prog_cc_c89" = x
   3618 then :
   3619   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3620 printf "%s\n" "none needed" >&6; }
   3621 else $as_nop
   3622   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   3623 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
   3624      CC="$CC $ac_cv_prog_cc_c89"
   3625 fi
   3626   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
   3627   ac_prog_cc_stdc=c89
   3628 fi
   3629 fi
   3630 
   3631 ac_ext=c
   3632 ac_cpp='$CPP $CPPFLAGS'
   3633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3636 
   3637 
   3638   ac_ext=c
   3639 ac_cpp='$CPP $CPPFLAGS'
   3640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
   3644 printf %s "checking whether $CC understands -c and -o together... " >&6; }
   3645 if test ${am_cv_prog_cc_c_o+y}
   3646 then :
   3647   printf %s "(cached) " >&6
   3648 else $as_nop
   3649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3650 /* end confdefs.h.  */
   3651 
   3652 int
   3653 main (void)
   3654 {
   3655 
   3656   ;
   3657   return 0;
   3658 }
   3659 _ACEOF
   3660   # Make sure it works both with $CC and with simple cc.
   3661   # Following AC_PROG_CC_C_O, we do the test twice because some
   3662   # compilers refuse to overwrite an existing .o file with -o,
   3663   # though they will create one.
   3664   am_cv_prog_cc_c_o=yes
   3665   for am_i in 1 2; do
   3666     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
   3667    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
   3668    ac_status=$?
   3669    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3670    (exit $ac_status); } \
   3671          && test -f conftest2.$ac_objext; then
   3672       : OK
   3673     else
   3674       am_cv_prog_cc_c_o=no
   3675       break
   3676     fi
   3677   done
   3678   rm -f core conftest*
   3679   unset am_i
   3680 fi
   3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
   3682 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
   3683 if test "$am_cv_prog_cc_c_o" != yes; then
   3684    # Losing compiler, so override with the script.
   3685    # FIXME: It is wrong to rewrite CC.
   3686    # But if we don't then we get into trouble of one sort or another.
   3687    # A longer-term fix would be to have automake use am__CC in this case,
   3688    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   3689    CC="$am_aux_dir/compile $CC"
   3690 fi
   3691 ac_ext=c
   3692 ac_cpp='$CPP $CPPFLAGS'
   3693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3696 
   3697 
   3698 
   3699 ac_header= ac_cache=
   3700 for ac_item in $ac_header_c_list
   3701 do
   3702   if test $ac_cache; then
   3703     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
   3704     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
   3705       printf "%s\n" "#define $ac_item 1" >> confdefs.h
   3706     fi
   3707     ac_header= ac_cache=
   3708   elif test $ac_header; then
   3709     ac_cache=$ac_item
   3710   else
   3711     ac_header=$ac_item
   3712   fi
   3713 done
   3714 
   3715 
   3716 
   3717 
   3718 
   3719 
   3720 
   3721 
   3722 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
   3723 then :
   3724 
   3725 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
   3726 
   3727 fi
   3728 
   3729 
   3730 
   3731 
   3732 
   3733 
   3734   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
   3735 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
   3736 if test ${ac_cv_safe_to_define___extensions__+y}
   3737 then :
   3738   printf %s "(cached) " >&6
   3739 else $as_nop
   3740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3741 /* end confdefs.h.  */
   3742 
   3743 #         define __EXTENSIONS__ 1
   3744           $ac_includes_default
   3745 int
   3746 main (void)
   3747 {
   3748 
   3749   ;
   3750   return 0;
   3751 }
   3752 _ACEOF
   3753 if ac_fn_c_try_compile "$LINENO"
   3754 then :
   3755   ac_cv_safe_to_define___extensions__=yes
   3756 else $as_nop
   3757   ac_cv_safe_to_define___extensions__=no
   3758 fi
   3759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   3760 fi
   3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
   3762 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
   3763 
   3764   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
   3765 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
   3766 if test ${ac_cv_should_define__xopen_source+y}
   3767 then :
   3768   printf %s "(cached) " >&6
   3769 else $as_nop
   3770   ac_cv_should_define__xopen_source=no
   3771     if test $ac_cv_header_wchar_h = yes
   3772 then :
   3773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3774 /* end confdefs.h.  */
   3775 
   3776           #include <wchar.h>
   3777           mbstate_t x;
   3778 int
   3779 main (void)
   3780 {
   3781 
   3782   ;
   3783   return 0;
   3784 }
   3785 _ACEOF
   3786 if ac_fn_c_try_compile "$LINENO"
   3787 then :
   3788 
   3789 else $as_nop
   3790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3791 /* end confdefs.h.  */
   3792 
   3793             #define _XOPEN_SOURCE 500
   3794             #include <wchar.h>
   3795             mbstate_t x;
   3796 int
   3797 main (void)
   3798 {
   3799 
   3800   ;
   3801   return 0;
   3802 }
   3803 _ACEOF
   3804 if ac_fn_c_try_compile "$LINENO"
   3805 then :
   3806   ac_cv_should_define__xopen_source=yes
   3807 fi
   3808 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   3809 fi
   3810 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   3811 fi
   3812 fi
   3813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
   3814 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
   3815 
   3816   printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
   3817 
   3818   printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
   3819 
   3820   printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
   3821 
   3822   printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
   3823 
   3824   printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
   3825 
   3826   printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
   3827 
   3828   printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
   3829 
   3830   printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
   3831 
   3832   printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
   3833 
   3834   printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
   3835 
   3836   printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
   3837 
   3838   printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
   3839 
   3840   printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
   3841 
   3842   printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
   3843 
   3844   printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
   3845 
   3846   if test $ac_cv_header_minix_config_h = yes
   3847 then :
   3848   MINIX=yes
   3849     printf "%s\n" "#define _MINIX 1" >>confdefs.h
   3850 
   3851     printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
   3852 
   3853     printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
   3854 
   3855 else $as_nop
   3856   MINIX=
   3857 fi
   3858   if test $ac_cv_safe_to_define___extensions__ = yes
   3859 then :
   3860   printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
   3861 
   3862 fi
   3863   if test $ac_cv_should_define__xopen_source = yes
   3864 then :
   3865   printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
   3866 
   3867 fi
   3868 
   3869 
   3870 # Initialize Automake
   3871 am__api_version='1.16'
   3872 
   3873 
   3874   # Find a good install program.  We prefer a C program (faster),
   3875 # so one script is as good as another.  But avoid the broken or
   3876 # incompatible versions:
   3877 # SysV /etc/install, /usr/sbin/install
   3878 # SunOS /usr/etc/install
   3879 # IRIX /sbin/install
   3880 # AIX /bin/install
   3881 # AmigaOS /C/install, which installs bootblocks on floppy discs
   3882 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   3883 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   3884 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   3885 # OS/2's system install, which has a completely different semantic
   3886 # ./install, which can be erroneously created by make from ./install.sh.
   3887 # Reject install programs that cannot install multiple files.
   3888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   3889 printf %s "checking for a BSD-compatible install... " >&6; }
   3890 if test -z "$INSTALL"; then
   3891 if test ${ac_cv_path_install+y}
   3892 then :
   3893   printf %s "(cached) " >&6
   3894 else $as_nop
   3895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3896 for as_dir in $PATH
   3897 do
   3898   IFS=$as_save_IFS
   3899   case $as_dir in #(((
   3900     '') as_dir=./ ;;
   3901     */) ;;
   3902     *) as_dir=$as_dir/ ;;
   3903   esac
   3904     # Account for fact that we put trailing slashes in our PATH walk.
   3905 case $as_dir in #((
   3906   ./ | /[cC]/* | \
   3907   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   3908   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   3909   /usr/ucb/* ) ;;
   3910   *)
   3911     # OSF1 and SCO ODT 3.0 have their own names for install.
   3912     # Don't use installbsd from OSF since it installs stuff as root
   3913     # by default.
   3914     for ac_prog in ginstall scoinst install; do
   3915       for ac_exec_ext in '' $ac_executable_extensions; do
   3916 	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
   3917 	  if test $ac_prog = install &&
   3918 	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   3919 	    # AIX install.  It has an incompatible calling convention.
   3920 	    :
   3921 	  elif test $ac_prog = install &&
   3922 	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   3923 	    # program-specific install script used by HP pwplus--don't use.
   3924 	    :
   3925 	  else
   3926 	    rm -rf conftest.one conftest.two conftest.dir
   3927 	    echo one > conftest.one
   3928 	    echo two > conftest.two
   3929 	    mkdir conftest.dir
   3930 	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
   3931 	      test -s conftest.one && test -s conftest.two &&
   3932 	      test -s conftest.dir/conftest.one &&
   3933 	      test -s conftest.dir/conftest.two
   3934 	    then
   3935 	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
   3936 	      break 3
   3937 	    fi
   3938 	  fi
   3939 	fi
   3940       done
   3941     done
   3942     ;;
   3943 esac
   3944 
   3945   done
   3946 IFS=$as_save_IFS
   3947 
   3948 rm -rf conftest.one conftest.two conftest.dir
   3949 
   3950 fi
   3951   if test ${ac_cv_path_install+y}; then
   3952     INSTALL=$ac_cv_path_install
   3953   else
   3954     # As a last resort, use the slow shell script.  Don't cache a
   3955     # value for INSTALL within a source directory, because that will
   3956     # break other packages using the cache if that directory is
   3957     # removed, or if the value is a relative name.
   3958     INSTALL=$ac_install_sh
   3959   fi
   3960 fi
   3961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   3962 printf "%s\n" "$INSTALL" >&6; }
   3963 
   3964 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   3965 # It thinks the first close brace ends the variable substitution.
   3966 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   3967 
   3968 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   3969 
   3970 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   3971 
   3972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
   3973 printf %s "checking whether build environment is sane... " >&6; }
   3974 # Reject unsafe characters in $srcdir or the absolute working directory
   3975 # name.  Accept space and tab only in the latter.
   3976 am_lf='
   3977 '
   3978 case `pwd` in
   3979   *[\\\"\#\$\&\'\`$am_lf]*)
   3980     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
   3981 esac
   3982 case $srcdir in
   3983   *[\\\"\#\$\&\'\`$am_lf\ \	]*)
   3984     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
   3985 esac
   3986 
   3987 # Do 'set' in a subshell so we don't clobber the current shell's
   3988 # arguments.  Must try -L first in case configure is actually a
   3989 # symlink; some systems play weird games with the mod time of symlinks
   3990 # (eg FreeBSD returns the mod time of the symlink's containing
   3991 # directory).
   3992 if (
   3993    am_has_slept=no
   3994    for am_try in 1 2; do
   3995      echo "timestamp, slept: $am_has_slept" > conftest.file
   3996      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
   3997      if test "$*" = "X"; then
   3998 	# -L didn't work.
   3999 	set X `ls -t "$srcdir/configure" conftest.file`
   4000      fi
   4001      if test "$*" != "X $srcdir/configure conftest.file" \
   4002 	&& test "$*" != "X conftest.file $srcdir/configure"; then
   4003 
   4004 	# If neither matched, then we have a broken ls.  This can happen
   4005 	# if, for instance, CONFIG_SHELL is bash and it inherits a
   4006 	# broken ls alias from the environment.  This has actually
   4007 	# happened.  Such a system could not be considered "sane".
   4008 	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
   4009   alias in your environment" "$LINENO" 5
   4010      fi
   4011      if test "$2" = conftest.file || test $am_try -eq 2; then
   4012        break
   4013      fi
   4014      # Just in case.
   4015      sleep 1
   4016      am_has_slept=yes
   4017    done
   4018    test "$2" = conftest.file
   4019    )
   4020 then
   4021    # Ok.
   4022    :
   4023 else
   4024    as_fn_error $? "newly created file is older than distributed files!
   4025 Check your system clock" "$LINENO" 5
   4026 fi
   4027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4028 printf "%s\n" "yes" >&6; }
   4029 # If we didn't sleep, we still need to ensure time stamps of config.status and
   4030 # generated files are strictly newer.
   4031 am_sleep_pid=
   4032 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
   4033   ( sleep 1 ) &
   4034   am_sleep_pid=$!
   4035 fi
   4036 
   4037 rm -f conftest.file
   4038 
   4039 test "$program_prefix" != NONE &&
   4040   program_transform_name="s&^&$program_prefix&;$program_transform_name"
   4041 # Use a double $ so make ignores it.
   4042 test "$program_suffix" != NONE &&
   4043   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
   4044 # Double any \ or $.
   4045 # By default was `s,x,x', remove it if useless.
   4046 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
   4047 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
   4048 
   4049 
   4050   if test x"${MISSING+set}" != xset; then
   4051   MISSING="\${SHELL} '$am_aux_dir/missing'"
   4052 fi
   4053 # Use eval to expand $SHELL
   4054 if eval "$MISSING --is-lightweight"; then
   4055   am_missing_run="$MISSING "
   4056 else
   4057   am_missing_run=
   4058   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
   4059 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
   4060 fi
   4061 
   4062 if test x"${install_sh+set}" != xset; then
   4063   case $am_aux_dir in
   4064   *\ * | *\	*)
   4065     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
   4066   *)
   4067     install_sh="\${SHELL} $am_aux_dir/install-sh"
   4068   esac
   4069 fi
   4070 
   4071 # Installed binaries are usually stripped using 'strip' when the user
   4072 # run "make install-strip".  However 'strip' might not be the right
   4073 # tool to use in cross-compilation environments, therefore Automake
   4074 # will honor the 'STRIP' environment variable to overrule this program.
   4075 if test "$cross_compiling" != no; then
   4076   if test -n "$ac_tool_prefix"; then
   4077   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   4078 set dummy ${ac_tool_prefix}strip; ac_word=$2
   4079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4080 printf %s "checking for $ac_word... " >&6; }
   4081 if test ${ac_cv_prog_STRIP+y}
   4082 then :
   4083   printf %s "(cached) " >&6
   4084 else $as_nop
   4085   if test -n "$STRIP"; then
   4086   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   4087 else
   4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4089 for as_dir in $PATH
   4090 do
   4091   IFS=$as_save_IFS
   4092   case $as_dir in #(((
   4093     '') as_dir=./ ;;
   4094     */) ;;
   4095     *) as_dir=$as_dir/ ;;
   4096   esac
   4097     for ac_exec_ext in '' $ac_executable_extensions; do
   4098   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   4099     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   4100     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   4101     break 2
   4102   fi
   4103 done
   4104   done
   4105 IFS=$as_save_IFS
   4106 
   4107 fi
   4108 fi
   4109 STRIP=$ac_cv_prog_STRIP
   4110 if test -n "$STRIP"; then
   4111   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   4112 printf "%s\n" "$STRIP" >&6; }
   4113 else
   4114   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4115 printf "%s\n" "no" >&6; }
   4116 fi
   4117 
   4118 
   4119 fi
   4120 if test -z "$ac_cv_prog_STRIP"; then
   4121   ac_ct_STRIP=$STRIP
   4122   # Extract the first word of "strip", so it can be a program name with args.
   4123 set dummy strip; ac_word=$2
   4124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4125 printf %s "checking for $ac_word... " >&6; }
   4126 if test ${ac_cv_prog_ac_ct_STRIP+y}
   4127 then :
   4128   printf %s "(cached) " >&6
   4129 else $as_nop
   4130   if test -n "$ac_ct_STRIP"; then
   4131   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   4132 else
   4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4134 for as_dir in $PATH
   4135 do
   4136   IFS=$as_save_IFS
   4137   case $as_dir in #(((
   4138     '') as_dir=./ ;;
   4139     */) ;;
   4140     *) as_dir=$as_dir/ ;;
   4141   esac
   4142     for ac_exec_ext in '' $ac_executable_extensions; do
   4143   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   4144     ac_cv_prog_ac_ct_STRIP="strip"
   4145     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   4146     break 2
   4147   fi
   4148 done
   4149   done
   4150 IFS=$as_save_IFS
   4151 
   4152 fi
   4153 fi
   4154 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   4155 if test -n "$ac_ct_STRIP"; then
   4156   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   4157 printf "%s\n" "$ac_ct_STRIP" >&6; }
   4158 else
   4159   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4160 printf "%s\n" "no" >&6; }
   4161 fi
   4162 
   4163   if test "x$ac_ct_STRIP" = x; then
   4164     STRIP=":"
   4165   else
   4166     case $cross_compiling:$ac_tool_warned in
   4167 yes:)
   4168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4169 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4170 ac_tool_warned=yes ;;
   4171 esac
   4172     STRIP=$ac_ct_STRIP
   4173   fi
   4174 else
   4175   STRIP="$ac_cv_prog_STRIP"
   4176 fi
   4177 
   4178 fi
   4179 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
   4180 
   4181 
   4182   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
   4183 printf %s "checking for a race-free mkdir -p... " >&6; }
   4184 if test -z "$MKDIR_P"; then
   4185   if test ${ac_cv_path_mkdir+y}
   4186 then :
   4187   printf %s "(cached) " >&6
   4188 else $as_nop
   4189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4190 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
   4191 do
   4192   IFS=$as_save_IFS
   4193   case $as_dir in #(((
   4194     '') as_dir=./ ;;
   4195     */) ;;
   4196     *) as_dir=$as_dir/ ;;
   4197   esac
   4198     for ac_prog in mkdir gmkdir; do
   4199 	 for ac_exec_ext in '' $ac_executable_extensions; do
   4200 	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
   4201 	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
   4202 	     'mkdir ('*'coreutils) '* | \
   4203 	     'BusyBox '* | \
   4204 	     'mkdir (fileutils) '4.1*)
   4205 	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
   4206 	       break 3;;
   4207 	   esac
   4208 	 done
   4209        done
   4210   done
   4211 IFS=$as_save_IFS
   4212 
   4213 fi
   4214 
   4215   test -d ./--version && rmdir ./--version
   4216   if test ${ac_cv_path_mkdir+y}; then
   4217     MKDIR_P="$ac_cv_path_mkdir -p"
   4218   else
   4219     # As a last resort, use the slow shell script.  Don't cache a
   4220     # value for MKDIR_P within a source directory, because that will
   4221     # break other packages using the cache if that directory is
   4222     # removed, or if the value is a relative name.
   4223     MKDIR_P="$ac_install_sh -d"
   4224   fi
   4225 fi
   4226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
   4227 printf "%s\n" "$MKDIR_P" >&6; }
   4228 
   4229 for ac_prog in gawk mawk nawk awk
   4230 do
   4231   # Extract the first word of "$ac_prog", so it can be a program name with args.
   4232 set dummy $ac_prog; ac_word=$2
   4233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4234 printf %s "checking for $ac_word... " >&6; }
   4235 if test ${ac_cv_prog_AWK+y}
   4236 then :
   4237   printf %s "(cached) " >&6
   4238 else $as_nop
   4239   if test -n "$AWK"; then
   4240   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   4241 else
   4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4243 for as_dir in $PATH
   4244 do
   4245   IFS=$as_save_IFS
   4246   case $as_dir in #(((
   4247     '') as_dir=./ ;;
   4248     */) ;;
   4249     *) as_dir=$as_dir/ ;;
   4250   esac
   4251     for ac_exec_ext in '' $ac_executable_extensions; do
   4252   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   4253     ac_cv_prog_AWK="$ac_prog"
   4254     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   4255     break 2
   4256   fi
   4257 done
   4258   done
   4259 IFS=$as_save_IFS
   4260 
   4261 fi
   4262 fi
   4263 AWK=$ac_cv_prog_AWK
   4264 if test -n "$AWK"; then
   4265   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   4266 printf "%s\n" "$AWK" >&6; }
   4267 else
   4268   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4269 printf "%s\n" "no" >&6; }
   4270 fi
   4271 
   4272 
   4273   test -n "$AWK" && break
   4274 done
   4275 
   4276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
   4277 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
   4278 set x ${MAKE-make}
   4279 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
   4280 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
   4281 then :
   4282   printf %s "(cached) " >&6
   4283 else $as_nop
   4284   cat >conftest.make <<\_ACEOF
   4285 SHELL = /bin/sh
   4286 all:
   4287 	@echo '@@@%%%=$(MAKE)=@@@%%%'
   4288 _ACEOF
   4289 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
   4290 case `${MAKE-make} -f conftest.make 2>/dev/null` in
   4291   *@@@%%%=?*=@@@%%%*)
   4292     eval ac_cv_prog_make_${ac_make}_set=yes;;
   4293   *)
   4294     eval ac_cv_prog_make_${ac_make}_set=no;;
   4295 esac
   4296 rm -f conftest.make
   4297 fi
   4298 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
   4299   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4300 printf "%s\n" "yes" >&6; }
   4301   SET_MAKE=
   4302 else
   4303   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4304 printf "%s\n" "no" >&6; }
   4305   SET_MAKE="MAKE=${MAKE-make}"
   4306 fi
   4307 
   4308 rm -rf .tst 2>/dev/null
   4309 mkdir .tst 2>/dev/null
   4310 if test -d .tst; then
   4311   am__leading_dot=.
   4312 else
   4313   am__leading_dot=_
   4314 fi
   4315 rmdir .tst 2>/dev/null
   4316 
   4317 DEPDIR="${am__leading_dot}deps"
   4318 
   4319 ac_config_commands="$ac_config_commands depfiles"
   4320 
   4321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
   4322 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
   4323 cat > confinc.mk << 'END'
   4324 am__doit:
   4325 	@echo this is the am__doit target >confinc.out
   4326 .PHONY: am__doit
   4327 END
   4328 am__include="#"
   4329 am__quote=
   4330 # BSD make does it like this.
   4331 echo '.include "confinc.mk" # ignored' > confmf.BSD
   4332 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
   4333 echo 'include confinc.mk # ignored' > confmf.GNU
   4334 _am_result=no
   4335 for s in GNU BSD; do
   4336   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
   4337    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
   4338    ac_status=$?
   4339    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4340    (exit $ac_status); }
   4341   case $?:`cat confinc.out 2>/dev/null` in #(
   4342   '0:this is the am__doit target') :
   4343     case $s in #(
   4344   BSD) :
   4345     am__include='.include' am__quote='"' ;; #(
   4346   *) :
   4347     am__include='include' am__quote='' ;;
   4348 esac ;; #(
   4349   *) :
   4350      ;;
   4351 esac
   4352   if test "$am__include" != "#"; then
   4353     _am_result="yes ($s style)"
   4354     break
   4355   fi
   4356 done
   4357 rm -f confinc.* confmf.*
   4358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
   4359 printf "%s\n" "${_am_result}" >&6; }
   4360 
   4361 # Check whether --enable-dependency-tracking was given.
   4362 if test ${enable_dependency_tracking+y}
   4363 then :
   4364   enableval=$enable_dependency_tracking;
   4365 fi
   4366 
   4367 if test "x$enable_dependency_tracking" != xno; then
   4368   am_depcomp="$ac_aux_dir/depcomp"
   4369   AMDEPBACKSLASH='\'
   4370   am__nodep='_no'
   4371 fi
   4372  if test "x$enable_dependency_tracking" != xno; then
   4373   AMDEP_TRUE=
   4374   AMDEP_FALSE='#'
   4375 else
   4376   AMDEP_TRUE='#'
   4377   AMDEP_FALSE=
   4378 fi
   4379 
   4380 
   4381 # Check whether --enable-silent-rules was given.
   4382 if test ${enable_silent_rules+y}
   4383 then :
   4384   enableval=$enable_silent_rules;
   4385 fi
   4386 
   4387 case $enable_silent_rules in # (((
   4388   yes) AM_DEFAULT_VERBOSITY=0;;
   4389    no) AM_DEFAULT_VERBOSITY=1;;
   4390     *) AM_DEFAULT_VERBOSITY=1;;
   4391 esac
   4392 am_make=${MAKE-make}
   4393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
   4394 printf %s "checking whether $am_make supports nested variables... " >&6; }
   4395 if test ${am_cv_make_support_nested_variables+y}
   4396 then :
   4397   printf %s "(cached) " >&6
   4398 else $as_nop
   4399   if printf "%s\n" 'TRUE=$(BAR$(V))
   4400 BAR0=false
   4401 BAR1=true
   4402 V=1
   4403 am__doit:
   4404 	@$(TRUE)
   4405 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
   4406   am_cv_make_support_nested_variables=yes
   4407 else
   4408   am_cv_make_support_nested_variables=no
   4409 fi
   4410 fi
   4411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
   4412 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
   4413 if test $am_cv_make_support_nested_variables = yes; then
   4414     AM_V='$(V)'
   4415   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
   4416 else
   4417   AM_V=$AM_DEFAULT_VERBOSITY
   4418   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
   4419 fi
   4420 AM_BACKSLASH='\'
   4421 
   4422 if test "`cd $srcdir && pwd`" != "`pwd`"; then
   4423   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
   4424   # is not polluted with repeated "-I."
   4425   am__isrc=' -I$(srcdir)'
   4426   # test to see if srcdir already configured
   4427   if test -f $srcdir/config.status; then
   4428     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
   4429   fi
   4430 fi
   4431 
   4432 # test whether we have cygpath
   4433 if test -z "$CYGPATH_W"; then
   4434   if (cygpath --version) >/dev/null 2>/dev/null; then
   4435     CYGPATH_W='cygpath -w'
   4436   else
   4437     CYGPATH_W=echo
   4438   fi
   4439 fi
   4440 
   4441 
   4442 # Define the identity of the package.
   4443  PACKAGE='libxshmfence'
   4444  VERSION='1.3.1'
   4445 
   4446 
   4447 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
   4448 
   4449 
   4450 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
   4451 
   4452 # Some tools Automake needs.
   4453 
   4454 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
   4455 
   4456 
   4457 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
   4458 
   4459 
   4460 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
   4461 
   4462 
   4463 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
   4464 
   4465 
   4466 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
   4467 
   4468 # For better backward compatibility.  To be removed once Automake 1.9.x
   4469 # dies out for good.  For more background, see:
   4470 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
   4471 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
   4472 mkdir_p='$(MKDIR_P)'
   4473 
   4474 # We need awk for the "check" target (and possibly the TAP driver).  The
   4475 # system "awk" is bad on some platforms.
   4476 # Always define AMTAR for backward compatibility.  Yes, it's still used
   4477 # in the wild :-(  We should find a proper way to deprecate it ...
   4478 AMTAR='$${TAR-tar}'
   4479 
   4480 
   4481 # We'll loop over all known methods to create a tar archive until one works.
   4482 _am_tools='gnutar  pax cpio none'
   4483 
   4484 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
   4485 
   4486 
   4487 
   4488 
   4489 
   4490 depcc="$CC"   am_compiler_list=
   4491 
   4492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
   4493 printf %s "checking dependency style of $depcc... " >&6; }
   4494 if test ${am_cv_CC_dependencies_compiler_type+y}
   4495 then :
   4496   printf %s "(cached) " >&6
   4497 else $as_nop
   4498   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
   4499   # We make a subdir and do the tests there.  Otherwise we can end up
   4500   # making bogus files that we don't know about and never remove.  For
   4501   # instance it was reported that on HP-UX the gcc test will end up
   4502   # making a dummy file named 'D' -- because '-MD' means "put the output
   4503   # in D".
   4504   rm -rf conftest.dir
   4505   mkdir conftest.dir
   4506   # Copy depcomp to subdir because otherwise we won't find it if we're
   4507   # using a relative directory.
   4508   cp "$am_depcomp" conftest.dir
   4509   cd conftest.dir
   4510   # We will build objects and dependencies in a subdirectory because
   4511   # it helps to detect inapplicable dependency modes.  For instance
   4512   # both Tru64's cc and ICC support -MD to output dependencies as a
   4513   # side effect of compilation, but ICC will put the dependencies in
   4514   # the current directory while Tru64 will put them in the object
   4515   # directory.
   4516   mkdir sub
   4517 
   4518   am_cv_CC_dependencies_compiler_type=none
   4519   if test "$am_compiler_list" = ""; then
   4520      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
   4521   fi
   4522   am__universal=false
   4523   case " $depcc " in #(
   4524      *\ -arch\ *\ -arch\ *) am__universal=true ;;
   4525      esac
   4526 
   4527   for depmode in $am_compiler_list; do
   4528     # Setup a source with many dependencies, because some compilers
   4529     # like to wrap large dependency lists on column 80 (with \), and
   4530     # we should not choose a depcomp mode which is confused by this.
   4531     #
   4532     # We need to recreate these files for each test, as the compiler may
   4533     # overwrite some of them when testing with obscure command lines.
   4534     # This happens at least with the AIX C compiler.
   4535     : > sub/conftest.c
   4536     for i in 1 2 3 4 5 6; do
   4537       echo '#include "conftst'$i'.h"' >> sub/conftest.c
   4538       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
   4539       # Solaris 10 /bin/sh.
   4540       echo '/* dummy */' > sub/conftst$i.h
   4541     done
   4542     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
   4543 
   4544     # We check with '-c' and '-o' for the sake of the "dashmstdout"
   4545     # mode.  It turns out that the SunPro C++ compiler does not properly
   4546     # handle '-M -o', and we need to detect this.  Also, some Intel
   4547     # versions had trouble with output in subdirs.
   4548     am__obj=sub/conftest.${OBJEXT-o}
   4549     am__minus_obj="-o $am__obj"
   4550     case $depmode in
   4551     gcc)
   4552       # This depmode causes a compiler race in universal mode.
   4553       test "$am__universal" = false || continue
   4554       ;;
   4555     nosideeffect)
   4556       # After this tag, mechanisms are not by side-effect, so they'll
   4557       # only be used when explicitly requested.
   4558       if test "x$enable_dependency_tracking" = xyes; then
   4559 	continue
   4560       else
   4561 	break
   4562       fi
   4563       ;;
   4564     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
   4565       # This compiler won't grok '-c -o', but also, the minuso test has
   4566       # not run yet.  These depmodes are late enough in the game, and
   4567       # so weak that their functioning should not be impacted.
   4568       am__obj=conftest.${OBJEXT-o}
   4569       am__minus_obj=
   4570       ;;
   4571     none) break ;;
   4572     esac
   4573     if depmode=$depmode \
   4574        source=sub/conftest.c object=$am__obj \
   4575        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
   4576        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
   4577          >/dev/null 2>conftest.err &&
   4578        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
   4579        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
   4580        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
   4581        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
   4582       # icc doesn't choke on unknown options, it will just issue warnings
   4583       # or remarks (even with -Werror).  So we grep stderr for any message
   4584       # that says an option was ignored or not supported.
   4585       # When given -MP, icc 7.0 and 7.1 complain thusly:
   4586       #   icc: Command line warning: ignoring option '-M'; no argument required
   4587       # The diagnosis changed in icc 8.0:
   4588       #   icc: Command line remark: option '-MP' not supported
   4589       if (grep 'ignoring option' conftest.err ||
   4590           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
   4591         am_cv_CC_dependencies_compiler_type=$depmode
   4592         break
   4593       fi
   4594     fi
   4595   done
   4596 
   4597   cd ..
   4598   rm -rf conftest.dir
   4599 else
   4600   am_cv_CC_dependencies_compiler_type=none
   4601 fi
   4602 
   4603 fi
   4604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
   4605 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
   4606 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
   4607 
   4608  if
   4609   test "x$enable_dependency_tracking" != xno \
   4610   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
   4611   am__fastdepCC_TRUE=
   4612   am__fastdepCC_FALSE='#'
   4613 else
   4614   am__fastdepCC_TRUE='#'
   4615   am__fastdepCC_FALSE=
   4616 fi
   4617 
   4618 
   4619 # Variables for tags utilities; see am/tags.am
   4620 if test -z "$CTAGS"; then
   4621   CTAGS=ctags
   4622 fi
   4623 
   4624 if test -z "$ETAGS"; then
   4625   ETAGS=etags
   4626 fi
   4627 
   4628 if test -z "$CSCOPE"; then
   4629   CSCOPE=cscope
   4630 fi
   4631 
   4632 
   4633 
   4634 # POSIX will say in a future version that running "rm -f" with no argument
   4635 # is OK; and we want to be able to make that assumption in our Makefile
   4636 # recipes.  So use an aggressive probe to check that the usage we want is
   4637 # actually supported "in the wild" to an acceptable degree.
   4638 # See automake bug#10828.
   4639 # To make any issue more visible, cause the running configure to be aborted
   4640 # by default if the 'rm' program in use doesn't match our expectations; the
   4641 # user can still override this though.
   4642 if rm -f && rm -fr && rm -rf; then : OK; else
   4643   cat >&2 <<'END'
   4644 Oops!
   4645 
   4646 Your 'rm' program seems unable to run without file operands specified
   4647 on the command line, even when the '-f' option is present.  This is contrary
   4648 to the behaviour of most rm programs out there, and not conforming with
   4649 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
   4650 
   4651 Please tell bug-automake@gnu.org about your system, including the value
   4652 of your $PATH and any error possibly output before this message.  This
   4653 can help us improve future automake versions.
   4654 
   4655 END
   4656   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
   4657     echo 'Configuration will proceed anyway, since you have set the' >&2
   4658     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
   4659     echo >&2
   4660   else
   4661     cat >&2 <<'END'
   4662 Aborting the configuration process, to ensure you take notice of the issue.
   4663 
   4664 You can download and install GNU coreutils to get an 'rm' implementation
   4665 that behaves properly: <https://www.gnu.org/software/coreutils/>.
   4666 
   4667 If you want to complete the configuration process using your problematic
   4668 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
   4669 to "yes", and re-run configure.
   4670 
   4671 END
   4672     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
   4673   fi
   4674 fi
   4675 
   4676 
   4677 # Initialize libtool
   4678 case `pwd` in
   4679   *\ * | *\	*)
   4680     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
   4681 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
   4682 esac
   4683 
   4684 
   4685 
   4686 macro_version='2.4.7'
   4687 macro_revision='2.4.7'
   4688 
   4689 
   4690 
   4691 
   4692 
   4693 
   4694 
   4695 
   4696 
   4697 
   4698 
   4699 
   4700 
   4701 
   4702 ltmain=$ac_aux_dir/ltmain.sh
   4703 
   4704 
   4705 
   4706   # Make sure we can run config.sub.
   4707 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
   4708   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
   4709 
   4710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   4711 printf %s "checking build system type... " >&6; }
   4712 if test ${ac_cv_build+y}
   4713 then :
   4714   printf %s "(cached) " >&6
   4715 else $as_nop
   4716   ac_build_alias=$build_alias
   4717 test "x$ac_build_alias" = x &&
   4718   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
   4719 test "x$ac_build_alias" = x &&
   4720   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   4721 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
   4722   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
   4723 
   4724 fi
   4725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   4726 printf "%s\n" "$ac_cv_build" >&6; }
   4727 case $ac_cv_build in
   4728 *-*-*) ;;
   4729 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   4730 esac
   4731 build=$ac_cv_build
   4732 ac_save_IFS=$IFS; IFS='-'
   4733 set x $ac_cv_build
   4734 shift
   4735 build_cpu=$1
   4736 build_vendor=$2
   4737 shift; shift
   4738 # Remember, the first character of IFS is used to create $*,
   4739 # except with old shells:
   4740 build_os=$*
   4741 IFS=$ac_save_IFS
   4742 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   4743 
   4744 
   4745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   4746 printf %s "checking host system type... " >&6; }
   4747 if test ${ac_cv_host+y}
   4748 then :
   4749   printf %s "(cached) " >&6
   4750 else $as_nop
   4751   if test "x$host_alias" = x; then
   4752   ac_cv_host=$ac_cv_build
   4753 else
   4754   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
   4755     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
   4756 fi
   4757 
   4758 fi
   4759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   4760 printf "%s\n" "$ac_cv_host" >&6; }
   4761 case $ac_cv_host in
   4762 *-*-*) ;;
   4763 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   4764 esac
   4765 host=$ac_cv_host
   4766 ac_save_IFS=$IFS; IFS='-'
   4767 set x $ac_cv_host
   4768 shift
   4769 host_cpu=$1
   4770 host_vendor=$2
   4771 shift; shift
   4772 # Remember, the first character of IFS is used to create $*,
   4773 # except with old shells:
   4774 host_os=$*
   4775 IFS=$ac_save_IFS
   4776 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   4777 
   4778 
   4779 # Backslashify metacharacters that are still active within
   4780 # double-quoted strings.
   4781 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
   4782 
   4783 # Same as above, but do not quote variable references.
   4784 double_quote_subst='s/\(["`\\]\)/\\\1/g'
   4785 
   4786 # Sed substitution to delay expansion of an escaped shell variable in a
   4787 # double_quote_subst'ed string.
   4788 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   4789 
   4790 # Sed substitution to delay expansion of an escaped single quote.
   4791 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
   4792 
   4793 # Sed substitution to avoid accidental globbing in evaled expressions
   4794 no_glob_subst='s/\*/\\\*/g'
   4795 
   4796 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   4797 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
   4798 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
   4799 
   4800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
   4801 printf %s "checking how to print strings... " >&6; }
   4802 # Test print first, because it will be a builtin if present.
   4803 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
   4804    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
   4805   ECHO='print -r --'
   4806 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
   4807   ECHO='printf %s\n'
   4808 else
   4809   # Use this function as a fallback that always works.
   4810   func_fallback_echo ()
   4811   {
   4812     eval 'cat <<_LTECHO_EOF
   4813 $1
   4814 _LTECHO_EOF'
   4815   }
   4816   ECHO='func_fallback_echo'
   4817 fi
   4818 
   4819 # func_echo_all arg...
   4820 # Invoke $ECHO with all args, space-separated.
   4821 func_echo_all ()
   4822 {
   4823     $ECHO ""
   4824 }
   4825 
   4826 case $ECHO in
   4827   printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
   4828 printf "%s\n" "printf" >&6; } ;;
   4829   print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
   4830 printf "%s\n" "print -r" >&6; } ;;
   4831   *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
   4832 printf "%s\n" "cat" >&6; } ;;
   4833 esac
   4834 
   4835 
   4836 
   4837 
   4838 
   4839 
   4840 
   4841 
   4842 
   4843 
   4844 
   4845 
   4846 
   4847 
   4848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
   4849 printf %s "checking for a sed that does not truncate output... " >&6; }
   4850 if test ${ac_cv_path_SED+y}
   4851 then :
   4852   printf %s "(cached) " >&6
   4853 else $as_nop
   4854             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
   4855      for ac_i in 1 2 3 4 5 6 7; do
   4856        ac_script="$ac_script$as_nl$ac_script"
   4857      done
   4858      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
   4859      { ac_script=; unset ac_script;}
   4860      if test -z "$SED"; then
   4861   ac_path_SED_found=false
   4862   # Loop through the user's path and test for each of PROGNAME-LIST
   4863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4864 for as_dir in $PATH
   4865 do
   4866   IFS=$as_save_IFS
   4867   case $as_dir in #(((
   4868     '') as_dir=./ ;;
   4869     */) ;;
   4870     *) as_dir=$as_dir/ ;;
   4871   esac
   4872     for ac_prog in sed gsed
   4873    do
   4874     for ac_exec_ext in '' $ac_executable_extensions; do
   4875       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
   4876       as_fn_executable_p "$ac_path_SED" || continue
   4877 # Check for GNU ac_path_SED and select it if it is found.
   4878   # Check for GNU $ac_path_SED
   4879 case `"$ac_path_SED" --version 2>&1` in
   4880 *GNU*)
   4881   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
   4882 *)
   4883   ac_count=0
   4884   printf %s 0123456789 >"conftest.in"
   4885   while :
   4886   do
   4887     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4888     mv "conftest.tmp" "conftest.in"
   4889     cp "conftest.in" "conftest.nl"
   4890     printf "%s\n" '' >> "conftest.nl"
   4891     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4892     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4893     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4894     if test $ac_count -gt ${ac_path_SED_max-0}; then
   4895       # Best one so far, save it but keep looking for a better one
   4896       ac_cv_path_SED="$ac_path_SED"
   4897       ac_path_SED_max=$ac_count
   4898     fi
   4899     # 10*(2^10) chars as input seems more than enough
   4900     test $ac_count -gt 10 && break
   4901   done
   4902   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4903 esac
   4904 
   4905       $ac_path_SED_found && break 3
   4906     done
   4907   done
   4908   done
   4909 IFS=$as_save_IFS
   4910   if test -z "$ac_cv_path_SED"; then
   4911     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
   4912   fi
   4913 else
   4914   ac_cv_path_SED=$SED
   4915 fi
   4916 
   4917 fi
   4918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
   4919 printf "%s\n" "$ac_cv_path_SED" >&6; }
   4920  SED="$ac_cv_path_SED"
   4921   rm -f conftest.sed
   4922 
   4923 test -z "$SED" && SED=sed
   4924 Xsed="$SED -e 1s/^X//"
   4925 
   4926 
   4927 
   4928 
   4929 
   4930 
   4931 
   4932 
   4933 
   4934 
   4935 
   4936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   4937 printf %s "checking for grep that handles long lines and -e... " >&6; }
   4938 if test ${ac_cv_path_GREP+y}
   4939 then :
   4940   printf %s "(cached) " >&6
   4941 else $as_nop
   4942   if test -z "$GREP"; then
   4943   ac_path_GREP_found=false
   4944   # Loop through the user's path and test for each of PROGNAME-LIST
   4945   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4946 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4947 do
   4948   IFS=$as_save_IFS
   4949   case $as_dir in #(((
   4950     '') as_dir=./ ;;
   4951     */) ;;
   4952     *) as_dir=$as_dir/ ;;
   4953   esac
   4954     for ac_prog in grep ggrep
   4955    do
   4956     for ac_exec_ext in '' $ac_executable_extensions; do
   4957       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
   4958       as_fn_executable_p "$ac_path_GREP" || continue
   4959 # Check for GNU ac_path_GREP and select it if it is found.
   4960   # Check for GNU $ac_path_GREP
   4961 case `"$ac_path_GREP" --version 2>&1` in
   4962 *GNU*)
   4963   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   4964 *)
   4965   ac_count=0
   4966   printf %s 0123456789 >"conftest.in"
   4967   while :
   4968   do
   4969     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4970     mv "conftest.tmp" "conftest.in"
   4971     cp "conftest.in" "conftest.nl"
   4972     printf "%s\n" 'GREP' >> "conftest.nl"
   4973     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4974     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4975     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4976     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   4977       # Best one so far, save it but keep looking for a better one
   4978       ac_cv_path_GREP="$ac_path_GREP"
   4979       ac_path_GREP_max=$ac_count
   4980     fi
   4981     # 10*(2^10) chars as input seems more than enough
   4982     test $ac_count -gt 10 && break
   4983   done
   4984   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4985 esac
   4986 
   4987       $ac_path_GREP_found && break 3
   4988     done
   4989   done
   4990   done
   4991 IFS=$as_save_IFS
   4992   if test -z "$ac_cv_path_GREP"; then
   4993     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4994   fi
   4995 else
   4996   ac_cv_path_GREP=$GREP
   4997 fi
   4998 
   4999 fi
   5000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   5001 printf "%s\n" "$ac_cv_path_GREP" >&6; }
   5002  GREP="$ac_cv_path_GREP"
   5003 
   5004 
   5005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   5006 printf %s "checking for egrep... " >&6; }
   5007 if test ${ac_cv_path_EGREP+y}
   5008 then :
   5009   printf %s "(cached) " >&6
   5010 else $as_nop
   5011   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   5012    then ac_cv_path_EGREP="$GREP -E"
   5013    else
   5014      if test -z "$EGREP"; then
   5015   ac_path_EGREP_found=false
   5016   # Loop through the user's path and test for each of PROGNAME-LIST
   5017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5018 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   5019 do
   5020   IFS=$as_save_IFS
   5021   case $as_dir in #(((
   5022     '') as_dir=./ ;;
   5023     */) ;;
   5024     *) as_dir=$as_dir/ ;;
   5025   esac
   5026     for ac_prog in egrep
   5027    do
   5028     for ac_exec_ext in '' $ac_executable_extensions; do
   5029       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
   5030       as_fn_executable_p "$ac_path_EGREP" || continue
   5031 # Check for GNU ac_path_EGREP and select it if it is found.
   5032   # Check for GNU $ac_path_EGREP
   5033 case `"$ac_path_EGREP" --version 2>&1` in
   5034 *GNU*)
   5035   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   5036 *)
   5037   ac_count=0
   5038   printf %s 0123456789 >"conftest.in"
   5039   while :
   5040   do
   5041     cat "conftest.in" "conftest.in" >"conftest.tmp"
   5042     mv "conftest.tmp" "conftest.in"
   5043     cp "conftest.in" "conftest.nl"
   5044     printf "%s\n" 'EGREP' >> "conftest.nl"
   5045     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   5046     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   5047     as_fn_arith $ac_count + 1 && ac_count=$as_val
   5048     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   5049       # Best one so far, save it but keep looking for a better one
   5050       ac_cv_path_EGREP="$ac_path_EGREP"
   5051       ac_path_EGREP_max=$ac_count
   5052     fi
   5053     # 10*(2^10) chars as input seems more than enough
   5054     test $ac_count -gt 10 && break
   5055   done
   5056   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   5057 esac
   5058 
   5059       $ac_path_EGREP_found && break 3
   5060     done
   5061   done
   5062   done
   5063 IFS=$as_save_IFS
   5064   if test -z "$ac_cv_path_EGREP"; then
   5065     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   5066   fi
   5067 else
   5068   ac_cv_path_EGREP=$EGREP
   5069 fi
   5070 
   5071    fi
   5072 fi
   5073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   5074 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
   5075  EGREP="$ac_cv_path_EGREP"
   5076 
   5077 
   5078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
   5079 printf %s "checking for fgrep... " >&6; }
   5080 if test ${ac_cv_path_FGREP+y}
   5081 then :
   5082   printf %s "(cached) " >&6
   5083 else $as_nop
   5084   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   5085    then ac_cv_path_FGREP="$GREP -F"
   5086    else
   5087      if test -z "$FGREP"; then
   5088   ac_path_FGREP_found=false
   5089   # Loop through the user's path and test for each of PROGNAME-LIST
   5090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5091 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   5092 do
   5093   IFS=$as_save_IFS
   5094   case $as_dir in #(((
   5095     '') as_dir=./ ;;
   5096     */) ;;
   5097     *) as_dir=$as_dir/ ;;
   5098   esac
   5099     for ac_prog in fgrep
   5100    do
   5101     for ac_exec_ext in '' $ac_executable_extensions; do
   5102       ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
   5103       as_fn_executable_p "$ac_path_FGREP" || continue
   5104 # Check for GNU ac_path_FGREP and select it if it is found.
   5105   # Check for GNU $ac_path_FGREP
   5106 case `"$ac_path_FGREP" --version 2>&1` in
   5107 *GNU*)
   5108   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
   5109 *)
   5110   ac_count=0
   5111   printf %s 0123456789 >"conftest.in"
   5112   while :
   5113   do
   5114     cat "conftest.in" "conftest.in" >"conftest.tmp"
   5115     mv "conftest.tmp" "conftest.in"
   5116     cp "conftest.in" "conftest.nl"
   5117     printf "%s\n" 'FGREP' >> "conftest.nl"
   5118     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
   5119     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   5120     as_fn_arith $ac_count + 1 && ac_count=$as_val
   5121     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
   5122       # Best one so far, save it but keep looking for a better one
   5123       ac_cv_path_FGREP="$ac_path_FGREP"
   5124       ac_path_FGREP_max=$ac_count
   5125     fi
   5126     # 10*(2^10) chars as input seems more than enough
   5127     test $ac_count -gt 10 && break
   5128   done
   5129   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   5130 esac
   5131 
   5132       $ac_path_FGREP_found && break 3
   5133     done
   5134   done
   5135   done
   5136 IFS=$as_save_IFS
   5137   if test -z "$ac_cv_path_FGREP"; then
   5138     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   5139   fi
   5140 else
   5141   ac_cv_path_FGREP=$FGREP
   5142 fi
   5143 
   5144    fi
   5145 fi
   5146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
   5147 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
   5148  FGREP="$ac_cv_path_FGREP"
   5149 
   5150 
   5151 test -z "$GREP" && GREP=grep
   5152 
   5153 
   5154 
   5155 
   5156 
   5157 
   5158 
   5159 
   5160 
   5161 
   5162 
   5163 
   5164 
   5165 
   5166 
   5167 
   5168 
   5169 
   5170 
   5171 # Check whether --with-gnu-ld was given.
   5172 if test ${with_gnu_ld+y}
   5173 then :
   5174   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
   5175 else $as_nop
   5176   with_gnu_ld=no
   5177 fi
   5178 
   5179 ac_prog=ld
   5180 if test yes = "$GCC"; then
   5181   # Check if gcc -print-prog-name=ld gives a path.
   5182   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
   5183 printf %s "checking for ld used by $CC... " >&6; }
   5184   case $host in
   5185   *-*-mingw*)
   5186     # gcc leaves a trailing carriage return, which upsets mingw
   5187     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   5188   *)
   5189     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   5190   esac
   5191   case $ac_prog in
   5192     # Accept absolute paths.
   5193     [\\/]* | ?:[\\/]*)
   5194       re_direlt='/[^/][^/]*/\.\./'
   5195       # Canonicalize the pathname of ld
   5196       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
   5197       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
   5198 	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
   5199       done
   5200       test -z "$LD" && LD=$ac_prog
   5201       ;;
   5202   "")
   5203     # If it fails, then pretend we aren't using GCC.
   5204     ac_prog=ld
   5205     ;;
   5206   *)
   5207     # If it is relative, then search for the first ld in PATH.
   5208     with_gnu_ld=unknown
   5209     ;;
   5210   esac
   5211 elif test yes = "$with_gnu_ld"; then
   5212   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
   5213 printf %s "checking for GNU ld... " >&6; }
   5214 else
   5215   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
   5216 printf %s "checking for non-GNU ld... " >&6; }
   5217 fi
   5218 if test ${lt_cv_path_LD+y}
   5219 then :
   5220   printf %s "(cached) " >&6
   5221 else $as_nop
   5222   if test -z "$LD"; then
   5223   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   5224   for ac_dir in $PATH; do
   5225     IFS=$lt_save_ifs
   5226     test -z "$ac_dir" && ac_dir=.
   5227     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   5228       lt_cv_path_LD=$ac_dir/$ac_prog
   5229       # Check to see if the program is GNU ld.  I'd rather use --version,
   5230       # but apparently some variants of GNU ld only accept -v.
   5231       # Break only if it was the GNU/non-GNU ld that we prefer.
   5232       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
   5233       *GNU* | *'with BFD'*)
   5234 	test no != "$with_gnu_ld" && break
   5235 	;;
   5236       *)
   5237 	test yes != "$with_gnu_ld" && break
   5238 	;;
   5239       esac
   5240     fi
   5241   done
   5242   IFS=$lt_save_ifs
   5243 else
   5244   lt_cv_path_LD=$LD # Let the user override the test with a path.
   5245 fi
   5246 fi
   5247 
   5248 LD=$lt_cv_path_LD
   5249 if test -n "$LD"; then
   5250   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   5251 printf "%s\n" "$LD" >&6; }
   5252 else
   5253   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5254 printf "%s\n" "no" >&6; }
   5255 fi
   5256 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
   5257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
   5258 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
   5259 if test ${lt_cv_prog_gnu_ld+y}
   5260 then :
   5261   printf %s "(cached) " >&6
   5262 else $as_nop
   5263   # I'd rather use --version here, but apparently some GNU lds only accept -v.
   5264 case `$LD -v 2>&1 </dev/null` in
   5265 *GNU* | *'with BFD'*)
   5266   lt_cv_prog_gnu_ld=yes
   5267   ;;
   5268 *)
   5269   lt_cv_prog_gnu_ld=no
   5270   ;;
   5271 esac
   5272 fi
   5273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
   5274 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
   5275 with_gnu_ld=$lt_cv_prog_gnu_ld
   5276 
   5277 
   5278 
   5279 
   5280 
   5281 
   5282 
   5283 
   5284 
   5285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
   5286 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
   5287 if test ${lt_cv_path_NM+y}
   5288 then :
   5289   printf %s "(cached) " >&6
   5290 else $as_nop
   5291   if test -n "$NM"; then
   5292   # Let the user override the test.
   5293   lt_cv_path_NM=$NM
   5294 else
   5295   lt_nm_to_check=${ac_tool_prefix}nm
   5296   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
   5297     lt_nm_to_check="$lt_nm_to_check nm"
   5298   fi
   5299   for lt_tmp_nm in $lt_nm_to_check; do
   5300     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   5301     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
   5302       IFS=$lt_save_ifs
   5303       test -z "$ac_dir" && ac_dir=.
   5304       tmp_nm=$ac_dir/$lt_tmp_nm
   5305       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
   5306 	# Check to see if the nm accepts a BSD-compat flag.
   5307 	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
   5308 	#   nm: unknown option "B" ignored
   5309 	# Tru64's nm complains that /dev/null is an invalid object file
   5310 	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
   5311 	case $build_os in
   5312 	mingw*) lt_bad_file=conftest.nm/nofile ;;
   5313 	*) lt_bad_file=/dev/null ;;
   5314 	esac
   5315 	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
   5316 	*$lt_bad_file* | *'Invalid file or object type'*)
   5317 	  lt_cv_path_NM="$tmp_nm -B"
   5318 	  break 2
   5319 	  ;;
   5320 	*)
   5321 	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
   5322 	  */dev/null*)
   5323 	    lt_cv_path_NM="$tmp_nm -p"
   5324 	    break 2
   5325 	    ;;
   5326 	  *)
   5327 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
   5328 	    continue # so that we can try to find one that supports BSD flags
   5329 	    ;;
   5330 	  esac
   5331 	  ;;
   5332 	esac
   5333       fi
   5334     done
   5335     IFS=$lt_save_ifs
   5336   done
   5337   : ${lt_cv_path_NM=no}
   5338 fi
   5339 fi
   5340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
   5341 printf "%s\n" "$lt_cv_path_NM" >&6; }
   5342 if test no != "$lt_cv_path_NM"; then
   5343   NM=$lt_cv_path_NM
   5344 else
   5345   # Didn't find any BSD compatible name lister, look for dumpbin.
   5346   if test -n "$DUMPBIN"; then :
   5347     # Let the user override the test.
   5348   else
   5349     if test -n "$ac_tool_prefix"; then
   5350   for ac_prog in dumpbin "link -dump"
   5351   do
   5352     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   5353 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   5354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5355 printf %s "checking for $ac_word... " >&6; }
   5356 if test ${ac_cv_prog_DUMPBIN+y}
   5357 then :
   5358   printf %s "(cached) " >&6
   5359 else $as_nop
   5360   if test -n "$DUMPBIN"; then
   5361   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
   5362 else
   5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5364 for as_dir in $PATH
   5365 do
   5366   IFS=$as_save_IFS
   5367   case $as_dir in #(((
   5368     '') as_dir=./ ;;
   5369     */) ;;
   5370     *) as_dir=$as_dir/ ;;
   5371   esac
   5372     for ac_exec_ext in '' $ac_executable_extensions; do
   5373   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   5374     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
   5375     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   5376     break 2
   5377   fi
   5378 done
   5379   done
   5380 IFS=$as_save_IFS
   5381 
   5382 fi
   5383 fi
   5384 DUMPBIN=$ac_cv_prog_DUMPBIN
   5385 if test -n "$DUMPBIN"; then
   5386   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
   5387 printf "%s\n" "$DUMPBIN" >&6; }
   5388 else
   5389   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5390 printf "%s\n" "no" >&6; }
   5391 fi
   5392 
   5393 
   5394     test -n "$DUMPBIN" && break
   5395   done
   5396 fi
   5397 if test -z "$DUMPBIN"; then
   5398   ac_ct_DUMPBIN=$DUMPBIN
   5399   for ac_prog in dumpbin "link -dump"
   5400 do
   5401   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5402 set dummy $ac_prog; ac_word=$2
   5403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5404 printf %s "checking for $ac_word... " >&6; }
   5405 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
   5406 then :
   5407   printf %s "(cached) " >&6
   5408 else $as_nop
   5409   if test -n "$ac_ct_DUMPBIN"; then
   5410   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
   5411 else
   5412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5413 for as_dir in $PATH
   5414 do
   5415   IFS=$as_save_IFS
   5416   case $as_dir in #(((
   5417     '') as_dir=./ ;;
   5418     */) ;;
   5419     *) as_dir=$as_dir/ ;;
   5420   esac
   5421     for ac_exec_ext in '' $ac_executable_extensions; do
   5422   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   5423     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
   5424     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   5425     break 2
   5426   fi
   5427 done
   5428   done
   5429 IFS=$as_save_IFS
   5430 
   5431 fi
   5432 fi
   5433 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
   5434 if test -n "$ac_ct_DUMPBIN"; then
   5435   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
   5436 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
   5437 else
   5438   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5439 printf "%s\n" "no" >&6; }
   5440 fi
   5441 
   5442 
   5443   test -n "$ac_ct_DUMPBIN" && break
   5444 done
   5445 
   5446   if test "x$ac_ct_DUMPBIN" = x; then
   5447     DUMPBIN=":"
   5448   else
   5449     case $cross_compiling:$ac_tool_warned in
   5450 yes:)
   5451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5452 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5453 ac_tool_warned=yes ;;
   5454 esac
   5455     DUMPBIN=$ac_ct_DUMPBIN
   5456   fi
   5457 fi
   5458 
   5459     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
   5460     *COFF*)
   5461       DUMPBIN="$DUMPBIN -symbols -headers"
   5462       ;;
   5463     *)
   5464       DUMPBIN=:
   5465       ;;
   5466     esac
   5467   fi
   5468 
   5469   if test : != "$DUMPBIN"; then
   5470     NM=$DUMPBIN
   5471   fi
   5472 fi
   5473 test -z "$NM" && NM=nm
   5474 
   5475 
   5476 
   5477 
   5478 
   5479 
   5480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
   5481 printf %s "checking the name lister ($NM) interface... " >&6; }
   5482 if test ${lt_cv_nm_interface+y}
   5483 then :
   5484   printf %s "(cached) " >&6
   5485 else $as_nop
   5486   lt_cv_nm_interface="BSD nm"
   5487   echo "int some_variable = 0;" > conftest.$ac_ext
   5488   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
   5489   (eval "$ac_compile" 2>conftest.err)
   5490   cat conftest.err >&5
   5491   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
   5492   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
   5493   cat conftest.err >&5
   5494   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
   5495   cat conftest.out >&5
   5496   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
   5497     lt_cv_nm_interface="MS dumpbin"
   5498   fi
   5499   rm -f conftest*
   5500 fi
   5501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
   5502 printf "%s\n" "$lt_cv_nm_interface" >&6; }
   5503 
   5504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   5505 printf %s "checking whether ln -s works... " >&6; }
   5506 LN_S=$as_ln_s
   5507 if test "$LN_S" = "ln -s"; then
   5508   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5509 printf "%s\n" "yes" >&6; }
   5510 else
   5511   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   5512 printf "%s\n" "no, using $LN_S" >&6; }
   5513 fi
   5514 
   5515 # find the maximum length of command line arguments
   5516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
   5517 printf %s "checking the maximum length of command line arguments... " >&6; }
   5518 if test ${lt_cv_sys_max_cmd_len+y}
   5519 then :
   5520   printf %s "(cached) " >&6
   5521 else $as_nop
   5522     i=0
   5523   teststring=ABCD
   5524 
   5525   case $build_os in
   5526   msdosdjgpp*)
   5527     # On DJGPP, this test can blow up pretty badly due to problems in libc
   5528     # (any single argument exceeding 2000 bytes causes a buffer overrun
   5529     # during glob expansion).  Even if it were fixed, the result of this
   5530     # check would be larger than it should be.
   5531     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
   5532     ;;
   5533 
   5534   gnu*)
   5535     # Under GNU Hurd, this test is not required because there is
   5536     # no limit to the length of command line arguments.
   5537     # Libtool will interpret -1 as no limit whatsoever
   5538     lt_cv_sys_max_cmd_len=-1;
   5539     ;;
   5540 
   5541   cygwin* | mingw* | cegcc*)
   5542     # On Win9x/ME, this test blows up -- it succeeds, but takes
   5543     # about 5 minutes as the teststring grows exponentially.
   5544     # Worse, since 9x/ME are not pre-emptively multitasking,
   5545     # you end up with a "frozen" computer, even though with patience
   5546     # the test eventually succeeds (with a max line length of 256k).
   5547     # Instead, let's just punt: use the minimum linelength reported by
   5548     # all of the supported platforms: 8192 (on NT/2K/XP).
   5549     lt_cv_sys_max_cmd_len=8192;
   5550     ;;
   5551 
   5552   mint*)
   5553     # On MiNT this can take a long time and run out of memory.
   5554     lt_cv_sys_max_cmd_len=8192;
   5555     ;;
   5556 
   5557   amigaos*)
   5558     # On AmigaOS with pdksh, this test takes hours, literally.
   5559     # So we just punt and use a minimum line length of 8192.
   5560     lt_cv_sys_max_cmd_len=8192;
   5561     ;;
   5562 
   5563   bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
   5564     # This has been around since 386BSD, at least.  Likely further.
   5565     if test -x /sbin/sysctl; then
   5566       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
   5567     elif test -x /usr/sbin/sysctl; then
   5568       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
   5569     else
   5570       lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
   5571     fi
   5572     # And add a safety zone
   5573     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   5574     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   5575     ;;
   5576 
   5577   interix*)
   5578     # We know the value 262144 and hardcode it with a safety zone (like BSD)
   5579     lt_cv_sys_max_cmd_len=196608
   5580     ;;
   5581 
   5582   os2*)
   5583     # The test takes a long time on OS/2.
   5584     lt_cv_sys_max_cmd_len=8192
   5585     ;;
   5586 
   5587   osf*)
   5588     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
   5589     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
   5590     # nice to cause kernel panics so lets avoid the loop below.
   5591     # First set a reasonable default.
   5592     lt_cv_sys_max_cmd_len=16384
   5593     #
   5594     if test -x /sbin/sysconfig; then
   5595       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
   5596         *1*) lt_cv_sys_max_cmd_len=-1 ;;
   5597       esac
   5598     fi
   5599     ;;
   5600   sco3.2v5*)
   5601     lt_cv_sys_max_cmd_len=102400
   5602     ;;
   5603   sysv5* | sco5v6* | sysv4.2uw2*)
   5604     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
   5605     if test -n "$kargmax"; then
   5606       lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
   5607     else
   5608       lt_cv_sys_max_cmd_len=32768
   5609     fi
   5610     ;;
   5611   *)
   5612     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
   5613     if test -n "$lt_cv_sys_max_cmd_len" && \
   5614        test undefined != "$lt_cv_sys_max_cmd_len"; then
   5615       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   5616       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   5617     else
   5618       # Make teststring a little bigger before we do anything with it.
   5619       # a 1K string should be a reasonable start.
   5620       for i in 1 2 3 4 5 6 7 8; do
   5621         teststring=$teststring$teststring
   5622       done
   5623       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
   5624       # If test is not a shell built-in, we'll probably end up computing a
   5625       # maximum length that is only half of the actual maximum length, but
   5626       # we can't tell.
   5627       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
   5628 	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
   5629 	      test 17 != "$i" # 1/2 MB should be enough
   5630       do
   5631         i=`expr $i + 1`
   5632         teststring=$teststring$teststring
   5633       done
   5634       # Only check the string length outside the loop.
   5635       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
   5636       teststring=
   5637       # Add a significant safety factor because C++ compilers can tack on
   5638       # massive amounts of additional arguments before passing them to the
   5639       # linker.  It appears as though 1/2 is a usable value.
   5640       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
   5641     fi
   5642     ;;
   5643   esac
   5644 
   5645 fi
   5646 
   5647 if test -n "$lt_cv_sys_max_cmd_len"; then
   5648   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
   5649 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
   5650 else
   5651   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
   5652 printf "%s\n" "none" >&6; }
   5653 fi
   5654 max_cmd_len=$lt_cv_sys_max_cmd_len
   5655 
   5656 
   5657 
   5658 
   5659 
   5660 
   5661 : ${CP="cp -f"}
   5662 : ${MV="mv -f"}
   5663 : ${RM="rm -f"}
   5664 
   5665 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   5666   lt_unset=unset
   5667 else
   5668   lt_unset=false
   5669 fi
   5670 
   5671 
   5672 
   5673 
   5674 
   5675 # test EBCDIC or ASCII
   5676 case `echo X|tr X '\101'` in
   5677  A) # ASCII based system
   5678     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
   5679   lt_SP2NL='tr \040 \012'
   5680   lt_NL2SP='tr \015\012 \040\040'
   5681   ;;
   5682  *) # EBCDIC based system
   5683   lt_SP2NL='tr \100 \n'
   5684   lt_NL2SP='tr \r\n \100\100'
   5685   ;;
   5686 esac
   5687 
   5688 
   5689 
   5690 
   5691 
   5692 
   5693 
   5694 
   5695 
   5696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
   5697 printf %s "checking how to convert $build file names to $host format... " >&6; }
   5698 if test ${lt_cv_to_host_file_cmd+y}
   5699 then :
   5700   printf %s "(cached) " >&6
   5701 else $as_nop
   5702   case $host in
   5703   *-*-mingw* )
   5704     case $build in
   5705       *-*-mingw* ) # actually msys
   5706         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
   5707         ;;
   5708       *-*-cygwin* )
   5709         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
   5710         ;;
   5711       * ) # otherwise, assume *nix
   5712         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
   5713         ;;
   5714     esac
   5715     ;;
   5716   *-*-cygwin* )
   5717     case $build in
   5718       *-*-mingw* ) # actually msys
   5719         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
   5720         ;;
   5721       *-*-cygwin* )
   5722         lt_cv_to_host_file_cmd=func_convert_file_noop
   5723         ;;
   5724       * ) # otherwise, assume *nix
   5725         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
   5726         ;;
   5727     esac
   5728     ;;
   5729   * ) # unhandled hosts (and "normal" native builds)
   5730     lt_cv_to_host_file_cmd=func_convert_file_noop
   5731     ;;
   5732 esac
   5733 
   5734 fi
   5735 
   5736 to_host_file_cmd=$lt_cv_to_host_file_cmd
   5737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
   5738 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
   5739 
   5740 
   5741 
   5742 
   5743 
   5744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
   5745 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
   5746 if test ${lt_cv_to_tool_file_cmd+y}
   5747 then :
   5748   printf %s "(cached) " >&6
   5749 else $as_nop
   5750   #assume ordinary cross tools, or native build.
   5751 lt_cv_to_tool_file_cmd=func_convert_file_noop
   5752 case $host in
   5753   *-*-mingw* )
   5754     case $build in
   5755       *-*-mingw* ) # actually msys
   5756         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
   5757         ;;
   5758     esac
   5759     ;;
   5760 esac
   5761 
   5762 fi
   5763 
   5764 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
   5766 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
   5767 
   5768 
   5769 
   5770 
   5771 
   5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
   5773 printf %s "checking for $LD option to reload object files... " >&6; }
   5774 if test ${lt_cv_ld_reload_flag+y}
   5775 then :
   5776   printf %s "(cached) " >&6
   5777 else $as_nop
   5778   lt_cv_ld_reload_flag='-r'
   5779 fi
   5780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
   5781 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
   5782 reload_flag=$lt_cv_ld_reload_flag
   5783 case $reload_flag in
   5784 "" | " "*) ;;
   5785 *) reload_flag=" $reload_flag" ;;
   5786 esac
   5787 reload_cmds='$LD$reload_flag -o $output$reload_objs'
   5788 case $host_os in
   5789   cygwin* | mingw* | pw32* | cegcc*)
   5790     if test yes != "$GCC"; then
   5791       reload_cmds=false
   5792     fi
   5793     ;;
   5794   darwin*)
   5795     if test yes = "$GCC"; then
   5796       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
   5797     else
   5798       reload_cmds='$LD$reload_flag -o $output$reload_objs'
   5799     fi
   5800     ;;
   5801 esac
   5802 
   5803 
   5804 
   5805 
   5806 
   5807 
   5808 
   5809 
   5810 
   5811 if test -n "$ac_tool_prefix"; then
   5812   # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
   5813 set dummy ${ac_tool_prefix}file; ac_word=$2
   5814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5815 printf %s "checking for $ac_word... " >&6; }
   5816 if test ${ac_cv_prog_FILECMD+y}
   5817 then :
   5818   printf %s "(cached) " >&6
   5819 else $as_nop
   5820   if test -n "$FILECMD"; then
   5821   ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
   5822 else
   5823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5824 for as_dir in $PATH
   5825 do
   5826   IFS=$as_save_IFS
   5827   case $as_dir in #(((
   5828     '') as_dir=./ ;;
   5829     */) ;;
   5830     *) as_dir=$as_dir/ ;;
   5831   esac
   5832     for ac_exec_ext in '' $ac_executable_extensions; do
   5833   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   5834     ac_cv_prog_FILECMD="${ac_tool_prefix}file"
   5835     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   5836     break 2
   5837   fi
   5838 done
   5839   done
   5840 IFS=$as_save_IFS
   5841 
   5842 fi
   5843 fi
   5844 FILECMD=$ac_cv_prog_FILECMD
   5845 if test -n "$FILECMD"; then
   5846   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
   5847 printf "%s\n" "$FILECMD" >&6; }
   5848 else
   5849   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5850 printf "%s\n" "no" >&6; }
   5851 fi
   5852 
   5853 
   5854 fi
   5855 if test -z "$ac_cv_prog_FILECMD"; then
   5856   ac_ct_FILECMD=$FILECMD
   5857   # Extract the first word of "file", so it can be a program name with args.
   5858 set dummy file; ac_word=$2
   5859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5860 printf %s "checking for $ac_word... " >&6; }
   5861 if test ${ac_cv_prog_ac_ct_FILECMD+y}
   5862 then :
   5863   printf %s "(cached) " >&6
   5864 else $as_nop
   5865   if test -n "$ac_ct_FILECMD"; then
   5866   ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
   5867 else
   5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5869 for as_dir in $PATH
   5870 do
   5871   IFS=$as_save_IFS
   5872   case $as_dir in #(((
   5873     '') as_dir=./ ;;
   5874     */) ;;
   5875     *) as_dir=$as_dir/ ;;
   5876   esac
   5877     for ac_exec_ext in '' $ac_executable_extensions; do
   5878   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   5879     ac_cv_prog_ac_ct_FILECMD="file"
   5880     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   5881     break 2
   5882   fi
   5883 done
   5884   done
   5885 IFS=$as_save_IFS
   5886 
   5887 fi
   5888 fi
   5889 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
   5890 if test -n "$ac_ct_FILECMD"; then
   5891   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
   5892 printf "%s\n" "$ac_ct_FILECMD" >&6; }
   5893 else
   5894   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5895 printf "%s\n" "no" >&6; }
   5896 fi
   5897 
   5898   if test "x$ac_ct_FILECMD" = x; then
   5899     FILECMD=":"
   5900   else
   5901     case $cross_compiling:$ac_tool_warned in
   5902 yes:)
   5903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5904 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5905 ac_tool_warned=yes ;;
   5906 esac
   5907     FILECMD=$ac_ct_FILECMD
   5908   fi
   5909 else
   5910   FILECMD="$ac_cv_prog_FILECMD"
   5911 fi
   5912 
   5913 
   5914 
   5915 
   5916 
   5917 
   5918 
   5919 if test -n "$ac_tool_prefix"; then
   5920   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
   5921 set dummy ${ac_tool_prefix}objdump; ac_word=$2
   5922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5923 printf %s "checking for $ac_word... " >&6; }
   5924 if test ${ac_cv_prog_OBJDUMP+y}
   5925 then :
   5926   printf %s "(cached) " >&6
   5927 else $as_nop
   5928   if test -n "$OBJDUMP"; then
   5929   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
   5930 else
   5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5932 for as_dir in $PATH
   5933 do
   5934   IFS=$as_save_IFS
   5935   case $as_dir in #(((
   5936     '') as_dir=./ ;;
   5937     */) ;;
   5938     *) as_dir=$as_dir/ ;;
   5939   esac
   5940     for ac_exec_ext in '' $ac_executable_extensions; do
   5941   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   5942     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
   5943     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   5944     break 2
   5945   fi
   5946 done
   5947   done
   5948 IFS=$as_save_IFS
   5949 
   5950 fi
   5951 fi
   5952 OBJDUMP=$ac_cv_prog_OBJDUMP
   5953 if test -n "$OBJDUMP"; then
   5954   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
   5955 printf "%s\n" "$OBJDUMP" >&6; }
   5956 else
   5957   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5958 printf "%s\n" "no" >&6; }
   5959 fi
   5960 
   5961 
   5962 fi
   5963 if test -z "$ac_cv_prog_OBJDUMP"; then
   5964   ac_ct_OBJDUMP=$OBJDUMP
   5965   # Extract the first word of "objdump", so it can be a program name with args.
   5966 set dummy objdump; ac_word=$2
   5967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5968 printf %s "checking for $ac_word... " >&6; }
   5969 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
   5970 then :
   5971   printf %s "(cached) " >&6
   5972 else $as_nop
   5973   if test -n "$ac_ct_OBJDUMP"; then
   5974   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
   5975 else
   5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5977 for as_dir in $PATH
   5978 do
   5979   IFS=$as_save_IFS
   5980   case $as_dir in #(((
   5981     '') as_dir=./ ;;
   5982     */) ;;
   5983     *) as_dir=$as_dir/ ;;
   5984   esac
   5985     for ac_exec_ext in '' $ac_executable_extensions; do
   5986   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   5987     ac_cv_prog_ac_ct_OBJDUMP="objdump"
   5988     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   5989     break 2
   5990   fi
   5991 done
   5992   done
   5993 IFS=$as_save_IFS
   5994 
   5995 fi
   5996 fi
   5997 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
   5998 if test -n "$ac_ct_OBJDUMP"; then
   5999   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
   6000 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
   6001 else
   6002   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6003 printf "%s\n" "no" >&6; }
   6004 fi
   6005 
   6006   if test "x$ac_ct_OBJDUMP" = x; then
   6007     OBJDUMP="false"
   6008   else
   6009     case $cross_compiling:$ac_tool_warned in
   6010 yes:)
   6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6012 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6013 ac_tool_warned=yes ;;
   6014 esac
   6015     OBJDUMP=$ac_ct_OBJDUMP
   6016   fi
   6017 else
   6018   OBJDUMP="$ac_cv_prog_OBJDUMP"
   6019 fi
   6020 
   6021 test -z "$OBJDUMP" && OBJDUMP=objdump
   6022 
   6023 
   6024 
   6025 
   6026 
   6027 
   6028 
   6029 
   6030 
   6031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
   6032 printf %s "checking how to recognize dependent libraries... " >&6; }
   6033 if test ${lt_cv_deplibs_check_method+y}
   6034 then :
   6035   printf %s "(cached) " >&6
   6036 else $as_nop
   6037   lt_cv_file_magic_cmd='$MAGIC_CMD'
   6038 lt_cv_file_magic_test_file=
   6039 lt_cv_deplibs_check_method='unknown'
   6040 # Need to set the preceding variable on all platforms that support
   6041 # interlibrary dependencies.
   6042 # 'none' -- dependencies not supported.
   6043 # 'unknown' -- same as none, but documents that we really don't know.
   6044 # 'pass_all' -- all dependencies passed with no checks.
   6045 # 'test_compile' -- check by making test program.
   6046 # 'file_magic [[regex]]' -- check by looking for files in library path
   6047 # that responds to the $file_magic_cmd with a given extended regex.
   6048 # If you have 'file' or equivalent on your system and you're not sure
   6049 # whether 'pass_all' will *always* work, you probably want this one.
   6050 
   6051 case $host_os in
   6052 aix[4-9]*)
   6053   lt_cv_deplibs_check_method=pass_all
   6054   ;;
   6055 
   6056 beos*)
   6057   lt_cv_deplibs_check_method=pass_all
   6058   ;;
   6059 
   6060 bsdi[45]*)
   6061   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
   6062   lt_cv_file_magic_cmd='$FILECMD -L'
   6063   lt_cv_file_magic_test_file=/shlib/libc.so
   6064   ;;
   6065 
   6066 cygwin*)
   6067   # func_win32_libid is a shell function defined in ltmain.sh
   6068   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   6069   lt_cv_file_magic_cmd='func_win32_libid'
   6070   ;;
   6071 
   6072 mingw* | pw32*)
   6073   # Base MSYS/MinGW do not provide the 'file' command needed by
   6074   # func_win32_libid shell function, so use a weaker test based on 'objdump',
   6075   # unless we find 'file', for example because we are cross-compiling.
   6076   if ( file / ) >/dev/null 2>&1; then
   6077     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   6078     lt_cv_file_magic_cmd='func_win32_libid'
   6079   else
   6080     # Keep this pattern in sync with the one in func_win32_libid.
   6081     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
   6082     lt_cv_file_magic_cmd='$OBJDUMP -f'
   6083   fi
   6084   ;;
   6085 
   6086 cegcc*)
   6087   # use the weaker test based on 'objdump'. See mingw*.
   6088   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
   6089   lt_cv_file_magic_cmd='$OBJDUMP -f'
   6090   ;;
   6091 
   6092 darwin* | rhapsody*)
   6093   lt_cv_deplibs_check_method=pass_all
   6094   ;;
   6095 
   6096 freebsd* | dragonfly* | midnightbsd*)
   6097   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   6098     case $host_cpu in
   6099     i*86 )
   6100       # Not sure whether the presence of OpenBSD here was a mistake.
   6101       # Let's accept both of them until this is cleared up.
   6102       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
   6103       lt_cv_file_magic_cmd=$FILECMD
   6104       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
   6105       ;;
   6106     esac
   6107   else
   6108     lt_cv_deplibs_check_method=pass_all
   6109   fi
   6110   ;;
   6111 
   6112 haiku*)
   6113   lt_cv_deplibs_check_method=pass_all
   6114   ;;
   6115 
   6116 hpux10.20* | hpux11*)
   6117   lt_cv_file_magic_cmd=$FILECMD
   6118   case $host_cpu in
   6119   ia64*)
   6120     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
   6121     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
   6122     ;;
   6123   hppa*64*)
   6124     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
   6125     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
   6126     ;;
   6127   *)
   6128     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
   6129     lt_cv_file_magic_test_file=/usr/lib/libc.sl
   6130     ;;
   6131   esac
   6132   ;;
   6133 
   6134 interix[3-9]*)
   6135   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
   6136   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
   6137   ;;
   6138 
   6139 irix5* | irix6* | nonstopux*)
   6140   case $LD in
   6141   *-32|*"-32 ") libmagic=32-bit;;
   6142   *-n32|*"-n32 ") libmagic=N32;;
   6143   *-64|*"-64 ") libmagic=64-bit;;
   6144   *) libmagic=never-match;;
   6145   esac
   6146   lt_cv_deplibs_check_method=pass_all
   6147   ;;
   6148 
   6149 # This must be glibc/ELF.
   6150 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   6151   lt_cv_deplibs_check_method=pass_all
   6152   ;;
   6153 
   6154 netbsd*)
   6155   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   6156     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   6157   else
   6158     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
   6159   fi
   6160   ;;
   6161 
   6162 newos6*)
   6163   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
   6164   lt_cv_file_magic_cmd=$FILECMD
   6165   lt_cv_file_magic_test_file=/usr/lib/libnls.so
   6166   ;;
   6167 
   6168 *nto* | *qnx*)
   6169   lt_cv_deplibs_check_method=pass_all
   6170   ;;
   6171 
   6172 openbsd* | bitrig*)
   6173   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   6174     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
   6175   else
   6176     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   6177   fi
   6178   ;;
   6179 
   6180 osf3* | osf4* | osf5*)
   6181   lt_cv_deplibs_check_method=pass_all
   6182   ;;
   6183 
   6184 rdos*)
   6185   lt_cv_deplibs_check_method=pass_all
   6186   ;;
   6187 
   6188 solaris*)
   6189   lt_cv_deplibs_check_method=pass_all
   6190   ;;
   6191 
   6192 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   6193   lt_cv_deplibs_check_method=pass_all
   6194   ;;
   6195 
   6196 sysv4 | sysv4.3*)
   6197   case $host_vendor in
   6198   motorola)
   6199     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
   6200     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
   6201     ;;
   6202   ncr)
   6203     lt_cv_deplibs_check_method=pass_all
   6204     ;;
   6205   sequent)
   6206     lt_cv_file_magic_cmd='/bin/file'
   6207     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
   6208     ;;
   6209   sni)
   6210     lt_cv_file_magic_cmd='/bin/file'
   6211     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
   6212     lt_cv_file_magic_test_file=/lib/libc.so
   6213     ;;
   6214   siemens)
   6215     lt_cv_deplibs_check_method=pass_all
   6216     ;;
   6217   pc)
   6218     lt_cv_deplibs_check_method=pass_all
   6219     ;;
   6220   esac
   6221   ;;
   6222 
   6223 tpf*)
   6224   lt_cv_deplibs_check_method=pass_all
   6225   ;;
   6226 os2*)
   6227   lt_cv_deplibs_check_method=pass_all
   6228   ;;
   6229 esac
   6230 
   6231 fi
   6232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
   6233 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
   6234 
   6235 file_magic_glob=
   6236 want_nocaseglob=no
   6237 if test "$build" = "$host"; then
   6238   case $host_os in
   6239   mingw* | pw32*)
   6240     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
   6241       want_nocaseglob=yes
   6242     else
   6243       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
   6244     fi
   6245     ;;
   6246   esac
   6247 fi
   6248 
   6249 file_magic_cmd=$lt_cv_file_magic_cmd
   6250 deplibs_check_method=$lt_cv_deplibs_check_method
   6251 test -z "$deplibs_check_method" && deplibs_check_method=unknown
   6252 
   6253 
   6254 
   6255 
   6256 
   6257 
   6258 
   6259 
   6260 
   6261 
   6262 
   6263 
   6264 
   6265 
   6266 
   6267 
   6268 
   6269 
   6270 
   6271 
   6272 
   6273 
   6274 if test -n "$ac_tool_prefix"; then
   6275   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
   6276 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
   6277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6278 printf %s "checking for $ac_word... " >&6; }
   6279 if test ${ac_cv_prog_DLLTOOL+y}
   6280 then :
   6281   printf %s "(cached) " >&6
   6282 else $as_nop
   6283   if test -n "$DLLTOOL"; then
   6284   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
   6285 else
   6286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6287 for as_dir in $PATH
   6288 do
   6289   IFS=$as_save_IFS
   6290   case $as_dir in #(((
   6291     '') as_dir=./ ;;
   6292     */) ;;
   6293     *) as_dir=$as_dir/ ;;
   6294   esac
   6295     for ac_exec_ext in '' $ac_executable_extensions; do
   6296   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   6297     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
   6298     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   6299     break 2
   6300   fi
   6301 done
   6302   done
   6303 IFS=$as_save_IFS
   6304 
   6305 fi
   6306 fi
   6307 DLLTOOL=$ac_cv_prog_DLLTOOL
   6308 if test -n "$DLLTOOL"; then
   6309   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
   6310 printf "%s\n" "$DLLTOOL" >&6; }
   6311 else
   6312   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6313 printf "%s\n" "no" >&6; }
   6314 fi
   6315 
   6316 
   6317 fi
   6318 if test -z "$ac_cv_prog_DLLTOOL"; then
   6319   ac_ct_DLLTOOL=$DLLTOOL
   6320   # Extract the first word of "dlltool", so it can be a program name with args.
   6321 set dummy dlltool; ac_word=$2
   6322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6323 printf %s "checking for $ac_word... " >&6; }
   6324 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
   6325 then :
   6326   printf %s "(cached) " >&6
   6327 else $as_nop
   6328   if test -n "$ac_ct_DLLTOOL"; then
   6329   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
   6330 else
   6331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6332 for as_dir in $PATH
   6333 do
   6334   IFS=$as_save_IFS
   6335   case $as_dir in #(((
   6336     '') as_dir=./ ;;
   6337     */) ;;
   6338     *) as_dir=$as_dir/ ;;
   6339   esac
   6340     for ac_exec_ext in '' $ac_executable_extensions; do
   6341   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   6342     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
   6343     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   6344     break 2
   6345   fi
   6346 done
   6347   done
   6348 IFS=$as_save_IFS
   6349 
   6350 fi
   6351 fi
   6352 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
   6353 if test -n "$ac_ct_DLLTOOL"; then
   6354   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
   6355 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
   6356 else
   6357   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6358 printf "%s\n" "no" >&6; }
   6359 fi
   6360 
   6361   if test "x$ac_ct_DLLTOOL" = x; then
   6362     DLLTOOL="false"
   6363   else
   6364     case $cross_compiling:$ac_tool_warned in
   6365 yes:)
   6366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6367 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6368 ac_tool_warned=yes ;;
   6369 esac
   6370     DLLTOOL=$ac_ct_DLLTOOL
   6371   fi
   6372 else
   6373   DLLTOOL="$ac_cv_prog_DLLTOOL"
   6374 fi
   6375 
   6376 test -z "$DLLTOOL" && DLLTOOL=dlltool
   6377 
   6378 
   6379 
   6380 
   6381 
   6382 
   6383 
   6384 
   6385 
   6386 
   6387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
   6388 printf %s "checking how to associate runtime and link libraries... " >&6; }
   6389 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
   6390 then :
   6391   printf %s "(cached) " >&6
   6392 else $as_nop
   6393   lt_cv_sharedlib_from_linklib_cmd='unknown'
   6394 
   6395 case $host_os in
   6396 cygwin* | mingw* | pw32* | cegcc*)
   6397   # two different shell functions defined in ltmain.sh;
   6398   # decide which one to use based on capabilities of $DLLTOOL
   6399   case `$DLLTOOL --help 2>&1` in
   6400   *--identify-strict*)
   6401     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
   6402     ;;
   6403   *)
   6404     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
   6405     ;;
   6406   esac
   6407   ;;
   6408 *)
   6409   # fallback: assume linklib IS sharedlib
   6410   lt_cv_sharedlib_from_linklib_cmd=$ECHO
   6411   ;;
   6412 esac
   6413 
   6414 fi
   6415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
   6416 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
   6417 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
   6418 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
   6419 
   6420 
   6421 
   6422 
   6423 
   6424 
   6425 
   6426 if test -n "$ac_tool_prefix"; then
   6427   for ac_prog in ar
   6428   do
   6429     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   6430 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   6431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6432 printf %s "checking for $ac_word... " >&6; }
   6433 if test ${ac_cv_prog_AR+y}
   6434 then :
   6435   printf %s "(cached) " >&6
   6436 else $as_nop
   6437   if test -n "$AR"; then
   6438   ac_cv_prog_AR="$AR" # Let the user override the test.
   6439 else
   6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6441 for as_dir in $PATH
   6442 do
   6443   IFS=$as_save_IFS
   6444   case $as_dir in #(((
   6445     '') as_dir=./ ;;
   6446     */) ;;
   6447     *) as_dir=$as_dir/ ;;
   6448   esac
   6449     for ac_exec_ext in '' $ac_executable_extensions; do
   6450   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   6451     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
   6452     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   6453     break 2
   6454   fi
   6455 done
   6456   done
   6457 IFS=$as_save_IFS
   6458 
   6459 fi
   6460 fi
   6461 AR=$ac_cv_prog_AR
   6462 if test -n "$AR"; then
   6463   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   6464 printf "%s\n" "$AR" >&6; }
   6465 else
   6466   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6467 printf "%s\n" "no" >&6; }
   6468 fi
   6469 
   6470 
   6471     test -n "$AR" && break
   6472   done
   6473 fi
   6474 if test -z "$AR"; then
   6475   ac_ct_AR=$AR
   6476   for ac_prog in ar
   6477 do
   6478   # Extract the first word of "$ac_prog", so it can be a program name with args.
   6479 set dummy $ac_prog; ac_word=$2
   6480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6481 printf %s "checking for $ac_word... " >&6; }
   6482 if test ${ac_cv_prog_ac_ct_AR+y}
   6483 then :
   6484   printf %s "(cached) " >&6
   6485 else $as_nop
   6486   if test -n "$ac_ct_AR"; then
   6487   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   6488 else
   6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6490 for as_dir in $PATH
   6491 do
   6492   IFS=$as_save_IFS
   6493   case $as_dir in #(((
   6494     '') as_dir=./ ;;
   6495     */) ;;
   6496     *) as_dir=$as_dir/ ;;
   6497   esac
   6498     for ac_exec_ext in '' $ac_executable_extensions; do
   6499   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   6500     ac_cv_prog_ac_ct_AR="$ac_prog"
   6501     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   6502     break 2
   6503   fi
   6504 done
   6505   done
   6506 IFS=$as_save_IFS
   6507 
   6508 fi
   6509 fi
   6510 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   6511 if test -n "$ac_ct_AR"; then
   6512   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   6513 printf "%s\n" "$ac_ct_AR" >&6; }
   6514 else
   6515   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6516 printf "%s\n" "no" >&6; }
   6517 fi
   6518 
   6519 
   6520   test -n "$ac_ct_AR" && break
   6521 done
   6522 
   6523   if test "x$ac_ct_AR" = x; then
   6524     AR="false"
   6525   else
   6526     case $cross_compiling:$ac_tool_warned in
   6527 yes:)
   6528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6529 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6530 ac_tool_warned=yes ;;
   6531 esac
   6532     AR=$ac_ct_AR
   6533   fi
   6534 fi
   6535 
   6536 : ${AR=ar}
   6537 
   6538 
   6539 
   6540 
   6541 
   6542 
   6543 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
   6544 # Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
   6545 # higher priority because thats what people were doing historically (setting
   6546 # ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
   6547 # variable obsoleted/removed.
   6548 
   6549 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
   6550 lt_ar_flags=$AR_FLAGS
   6551 
   6552 
   6553 
   6554 
   6555 
   6556 
   6557 # Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
   6558 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
   6559 
   6560 
   6561 
   6562 
   6563 
   6564 
   6565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
   6566 printf %s "checking for archiver @FILE support... " >&6; }
   6567 if test ${lt_cv_ar_at_file+y}
   6568 then :
   6569   printf %s "(cached) " >&6
   6570 else $as_nop
   6571   lt_cv_ar_at_file=no
   6572    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6573 /* end confdefs.h.  */
   6574 
   6575 int
   6576 main (void)
   6577 {
   6578 
   6579   ;
   6580   return 0;
   6581 }
   6582 _ACEOF
   6583 if ac_fn_c_try_compile "$LINENO"
   6584 then :
   6585   echo conftest.$ac_objext > conftest.lst
   6586       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
   6587       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
   6588   (eval $lt_ar_try) 2>&5
   6589   ac_status=$?
   6590   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6591   test $ac_status = 0; }
   6592       if test 0 -eq "$ac_status"; then
   6593 	# Ensure the archiver fails upon bogus file names.
   6594 	rm -f conftest.$ac_objext libconftest.a
   6595 	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
   6596   (eval $lt_ar_try) 2>&5
   6597   ac_status=$?
   6598   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6599   test $ac_status = 0; }
   6600 	if test 0 -ne "$ac_status"; then
   6601           lt_cv_ar_at_file=@
   6602         fi
   6603       fi
   6604       rm -f conftest.* libconftest.a
   6605 
   6606 fi
   6607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   6608 
   6609 fi
   6610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
   6611 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
   6612 
   6613 if test no = "$lt_cv_ar_at_file"; then
   6614   archiver_list_spec=
   6615 else
   6616   archiver_list_spec=$lt_cv_ar_at_file
   6617 fi
   6618 
   6619 
   6620 
   6621 
   6622 
   6623 
   6624 
   6625 if test -n "$ac_tool_prefix"; then
   6626   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   6627 set dummy ${ac_tool_prefix}strip; ac_word=$2
   6628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6629 printf %s "checking for $ac_word... " >&6; }
   6630 if test ${ac_cv_prog_STRIP+y}
   6631 then :
   6632   printf %s "(cached) " >&6
   6633 else $as_nop
   6634   if test -n "$STRIP"; then
   6635   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   6636 else
   6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6638 for as_dir in $PATH
   6639 do
   6640   IFS=$as_save_IFS
   6641   case $as_dir in #(((
   6642     '') as_dir=./ ;;
   6643     */) ;;
   6644     *) as_dir=$as_dir/ ;;
   6645   esac
   6646     for ac_exec_ext in '' $ac_executable_extensions; do
   6647   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   6648     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   6649     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   6650     break 2
   6651   fi
   6652 done
   6653   done
   6654 IFS=$as_save_IFS
   6655 
   6656 fi
   6657 fi
   6658 STRIP=$ac_cv_prog_STRIP
   6659 if test -n "$STRIP"; then
   6660   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   6661 printf "%s\n" "$STRIP" >&6; }
   6662 else
   6663   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6664 printf "%s\n" "no" >&6; }
   6665 fi
   6666 
   6667 
   6668 fi
   6669 if test -z "$ac_cv_prog_STRIP"; then
   6670   ac_ct_STRIP=$STRIP
   6671   # Extract the first word of "strip", so it can be a program name with args.
   6672 set dummy strip; ac_word=$2
   6673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6674 printf %s "checking for $ac_word... " >&6; }
   6675 if test ${ac_cv_prog_ac_ct_STRIP+y}
   6676 then :
   6677   printf %s "(cached) " >&6
   6678 else $as_nop
   6679   if test -n "$ac_ct_STRIP"; then
   6680   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   6681 else
   6682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6683 for as_dir in $PATH
   6684 do
   6685   IFS=$as_save_IFS
   6686   case $as_dir in #(((
   6687     '') as_dir=./ ;;
   6688     */) ;;
   6689     *) as_dir=$as_dir/ ;;
   6690   esac
   6691     for ac_exec_ext in '' $ac_executable_extensions; do
   6692   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   6693     ac_cv_prog_ac_ct_STRIP="strip"
   6694     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   6695     break 2
   6696   fi
   6697 done
   6698   done
   6699 IFS=$as_save_IFS
   6700 
   6701 fi
   6702 fi
   6703 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   6704 if test -n "$ac_ct_STRIP"; then
   6705   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   6706 printf "%s\n" "$ac_ct_STRIP" >&6; }
   6707 else
   6708   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6709 printf "%s\n" "no" >&6; }
   6710 fi
   6711 
   6712   if test "x$ac_ct_STRIP" = x; then
   6713     STRIP=":"
   6714   else
   6715     case $cross_compiling:$ac_tool_warned in
   6716 yes:)
   6717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6718 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6719 ac_tool_warned=yes ;;
   6720 esac
   6721     STRIP=$ac_ct_STRIP
   6722   fi
   6723 else
   6724   STRIP="$ac_cv_prog_STRIP"
   6725 fi
   6726 
   6727 test -z "$STRIP" && STRIP=:
   6728 
   6729 
   6730 
   6731 
   6732 
   6733 
   6734 if test -n "$ac_tool_prefix"; then
   6735   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   6736 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   6737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6738 printf %s "checking for $ac_word... " >&6; }
   6739 if test ${ac_cv_prog_RANLIB+y}
   6740 then :
   6741   printf %s "(cached) " >&6
   6742 else $as_nop
   6743   if test -n "$RANLIB"; then
   6744   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   6745 else
   6746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6747 for as_dir in $PATH
   6748 do
   6749   IFS=$as_save_IFS
   6750   case $as_dir in #(((
   6751     '') as_dir=./ ;;
   6752     */) ;;
   6753     *) as_dir=$as_dir/ ;;
   6754   esac
   6755     for ac_exec_ext in '' $ac_executable_extensions; do
   6756   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   6757     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   6758     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   6759     break 2
   6760   fi
   6761 done
   6762   done
   6763 IFS=$as_save_IFS
   6764 
   6765 fi
   6766 fi
   6767 RANLIB=$ac_cv_prog_RANLIB
   6768 if test -n "$RANLIB"; then
   6769   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   6770 printf "%s\n" "$RANLIB" >&6; }
   6771 else
   6772   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6773 printf "%s\n" "no" >&6; }
   6774 fi
   6775 
   6776 
   6777 fi
   6778 if test -z "$ac_cv_prog_RANLIB"; then
   6779   ac_ct_RANLIB=$RANLIB
   6780   # Extract the first word of "ranlib", so it can be a program name with args.
   6781 set dummy ranlib; ac_word=$2
   6782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6783 printf %s "checking for $ac_word... " >&6; }
   6784 if test ${ac_cv_prog_ac_ct_RANLIB+y}
   6785 then :
   6786   printf %s "(cached) " >&6
   6787 else $as_nop
   6788   if test -n "$ac_ct_RANLIB"; then
   6789   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   6790 else
   6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6792 for as_dir in $PATH
   6793 do
   6794   IFS=$as_save_IFS
   6795   case $as_dir in #(((
   6796     '') as_dir=./ ;;
   6797     */) ;;
   6798     *) as_dir=$as_dir/ ;;
   6799   esac
   6800     for ac_exec_ext in '' $ac_executable_extensions; do
   6801   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   6802     ac_cv_prog_ac_ct_RANLIB="ranlib"
   6803     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   6804     break 2
   6805   fi
   6806 done
   6807   done
   6808 IFS=$as_save_IFS
   6809 
   6810 fi
   6811 fi
   6812 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   6813 if test -n "$ac_ct_RANLIB"; then
   6814   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   6815 printf "%s\n" "$ac_ct_RANLIB" >&6; }
   6816 else
   6817   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6818 printf "%s\n" "no" >&6; }
   6819 fi
   6820 
   6821   if test "x$ac_ct_RANLIB" = x; then
   6822     RANLIB=":"
   6823   else
   6824     case $cross_compiling:$ac_tool_warned in
   6825 yes:)
   6826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6827 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6828 ac_tool_warned=yes ;;
   6829 esac
   6830     RANLIB=$ac_ct_RANLIB
   6831   fi
   6832 else
   6833   RANLIB="$ac_cv_prog_RANLIB"
   6834 fi
   6835 
   6836 test -z "$RANLIB" && RANLIB=:
   6837 
   6838 
   6839 
   6840 
   6841 
   6842 
   6843 # Determine commands to create old-style static archives.
   6844 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
   6845 old_postinstall_cmds='chmod 644 $oldlib'
   6846 old_postuninstall_cmds=
   6847 
   6848 if test -n "$RANLIB"; then
   6849   case $host_os in
   6850   bitrig* | openbsd*)
   6851     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
   6852     ;;
   6853   *)
   6854     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
   6855     ;;
   6856   esac
   6857   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
   6858 fi
   6859 
   6860 case $host_os in
   6861   darwin*)
   6862     lock_old_archive_extraction=yes ;;
   6863   *)
   6864     lock_old_archive_extraction=no ;;
   6865 esac
   6866 
   6867 
   6868 
   6869 
   6870 
   6871 
   6872 
   6873 
   6874 
   6875 
   6876 
   6877 
   6878 
   6879 
   6880 
   6881 
   6882 
   6883 
   6884 
   6885 
   6886 
   6887 
   6888 
   6889 
   6890 
   6891 
   6892 
   6893 
   6894 
   6895 
   6896 
   6897 
   6898 
   6899 
   6900 
   6901 
   6902 
   6903 
   6904 
   6905 # If no C compiler was specified, use CC.
   6906 LTCC=${LTCC-"$CC"}
   6907 
   6908 # If no C compiler flags were specified, use CFLAGS.
   6909 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   6910 
   6911 # Allow CC to be a program name with arguments.
   6912 compiler=$CC
   6913 
   6914 
   6915 # Check for command to grab the raw symbol name followed by C symbol from nm.
   6916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
   6917 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
   6918 if test ${lt_cv_sys_global_symbol_pipe+y}
   6919 then :
   6920   printf %s "(cached) " >&6
   6921 else $as_nop
   6922 
   6923 # These are sane defaults that work on at least a few old systems.
   6924 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
   6925 
   6926 # Character class describing NM global symbol codes.
   6927 symcode='[BCDEGRST]'
   6928 
   6929 # Regexp to match symbols that can be accessed directly from C.
   6930 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
   6931 
   6932 # Define system-specific variables.
   6933 case $host_os in
   6934 aix*)
   6935   symcode='[BCDT]'
   6936   ;;
   6937 cygwin* | mingw* | pw32* | cegcc*)
   6938   symcode='[ABCDGISTW]'
   6939   ;;
   6940 hpux*)
   6941   if test ia64 = "$host_cpu"; then
   6942     symcode='[ABCDEGRST]'
   6943   fi
   6944   ;;
   6945 irix* | nonstopux*)
   6946   symcode='[BCDEGRST]'
   6947   ;;
   6948 osf*)
   6949   symcode='[BCDEGQRST]'
   6950   ;;
   6951 solaris*)
   6952   symcode='[BDRT]'
   6953   ;;
   6954 sco3.2v5*)
   6955   symcode='[DT]'
   6956   ;;
   6957 sysv4.2uw2*)
   6958   symcode='[DT]'
   6959   ;;
   6960 sysv5* | sco5v6* | unixware* | OpenUNIX*)
   6961   symcode='[ABDT]'
   6962   ;;
   6963 sysv4)
   6964   symcode='[DFNSTU]'
   6965   ;;
   6966 esac
   6967 
   6968 # If we're using GNU nm, then use its standard symbol codes.
   6969 case `$NM -V 2>&1` in
   6970 *GNU* | *'with BFD'*)
   6971   symcode='[ABCDGIRSTW]' ;;
   6972 esac
   6973 
   6974 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   6975   # Gets list of data symbols to import.
   6976   lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
   6977   # Adjust the below global symbol transforms to fixup imported variables.
   6978   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
   6979   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
   6980   lt_c_name_lib_hook="\
   6981   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
   6982   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
   6983 else
   6984   # Disable hooks by default.
   6985   lt_cv_sys_global_symbol_to_import=
   6986   lt_cdecl_hook=
   6987   lt_c_name_hook=
   6988   lt_c_name_lib_hook=
   6989 fi
   6990 
   6991 # Transform an extracted symbol line into a proper C declaration.
   6992 # Some systems (esp. on ia64) link data and code symbols differently,
   6993 # so use this general approach.
   6994 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
   6995 $lt_cdecl_hook\
   6996 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
   6997 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
   6998 
   6999 # Transform an extracted symbol line into symbol name and symbol address
   7000 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
   7001 $lt_c_name_hook\
   7002 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
   7003 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
   7004 
   7005 # Transform an extracted symbol line into symbol name with lib prefix and
   7006 # symbol address.
   7007 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
   7008 $lt_c_name_lib_hook\
   7009 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
   7010 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
   7011 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
   7012 
   7013 # Handle CRLF in mingw tool chain
   7014 opt_cr=
   7015 case $build_os in
   7016 mingw*)
   7017   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
   7018   ;;
   7019 esac
   7020 
   7021 # Try without a prefix underscore, then with it.
   7022 for ac_symprfx in "" "_"; do
   7023 
   7024   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
   7025   symxfrm="\\1 $ac_symprfx\\2 \\2"
   7026 
   7027   # Write the raw and C identifiers.
   7028   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   7029     # Fake it for dumpbin and say T for any non-static function,
   7030     # D for any global variable and I for any imported variable.
   7031     # Also find C++ and __fastcall symbols from MSVC++ or ICC,
   7032     # which start with @ or ?.
   7033     lt_cv_sys_global_symbol_pipe="$AWK '"\
   7034 "     {last_section=section; section=\$ 3};"\
   7035 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
   7036 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
   7037 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
   7038 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
   7039 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
   7040 "     \$ 0!~/External *\|/{next};"\
   7041 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
   7042 "     {if(hide[section]) next};"\
   7043 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
   7044 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
   7045 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
   7046 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
   7047 "     ' prfx=^$ac_symprfx"
   7048   else
   7049     lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
   7050   fi
   7051   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
   7052 
   7053   # Check to see that the pipe works correctly.
   7054   pipe_works=no
   7055 
   7056   rm -f conftest*
   7057   cat > conftest.$ac_ext <<_LT_EOF
   7058 #ifdef __cplusplus
   7059 extern "C" {
   7060 #endif
   7061 char nm_test_var;
   7062 void nm_test_func(void);
   7063 void nm_test_func(void){}
   7064 #ifdef __cplusplus
   7065 }
   7066 #endif
   7067 int main(){nm_test_var='a';nm_test_func();return(0);}
   7068 _LT_EOF
   7069 
   7070   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   7071   (eval $ac_compile) 2>&5
   7072   ac_status=$?
   7073   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   7074   test $ac_status = 0; }; then
   7075     # Now try to grab the symbols.
   7076     nlist=conftest.nm
   7077     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
   7078   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
   7079   ac_status=$?
   7080   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   7081   test $ac_status = 0; } && test -s "$nlist"; then
   7082       # Try sorting and uniquifying the output.
   7083       if sort "$nlist" | uniq > "$nlist"T; then
   7084 	mv -f "$nlist"T "$nlist"
   7085       else
   7086 	rm -f "$nlist"T
   7087       fi
   7088 
   7089       # Make sure that we snagged all the symbols we need.
   7090       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
   7091 	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
   7092 	  cat <<_LT_EOF > conftest.$ac_ext
   7093 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
   7094 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
   7095 /* DATA imports from DLLs on WIN32 can't be const, because runtime
   7096    relocations are performed -- see ld's documentation on pseudo-relocs.  */
   7097 # define LT_DLSYM_CONST
   7098 #elif defined __osf__
   7099 /* This system does not cope well with relocations in const data.  */
   7100 # define LT_DLSYM_CONST
   7101 #else
   7102 # define LT_DLSYM_CONST const
   7103 #endif
   7104 
   7105 #ifdef __cplusplus
   7106 extern "C" {
   7107 #endif
   7108 
   7109 _LT_EOF
   7110 	  # Now generate the symbol file.
   7111 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
   7112 
   7113 	  cat <<_LT_EOF >> conftest.$ac_ext
   7114 
   7115 /* The mapping between symbol names and symbols.  */
   7116 LT_DLSYM_CONST struct {
   7117   const char *name;
   7118   void       *address;
   7119 }
   7120 lt__PROGRAM__LTX_preloaded_symbols[] =
   7121 {
   7122   { "@PROGRAM@", (void *) 0 },
   7123 _LT_EOF
   7124 	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
   7125 	  cat <<\_LT_EOF >> conftest.$ac_ext
   7126   {0, (void *) 0}
   7127 };
   7128 
   7129 /* This works around a problem in FreeBSD linker */
   7130 #ifdef FREEBSD_WORKAROUND
   7131 static const void *lt_preloaded_setup() {
   7132   return lt__PROGRAM__LTX_preloaded_symbols;
   7133 }
   7134 #endif
   7135 
   7136 #ifdef __cplusplus
   7137 }
   7138 #endif
   7139 _LT_EOF
   7140 	  # Now try linking the two files.
   7141 	  mv conftest.$ac_objext conftstm.$ac_objext
   7142 	  lt_globsym_save_LIBS=$LIBS
   7143 	  lt_globsym_save_CFLAGS=$CFLAGS
   7144 	  LIBS=conftstm.$ac_objext
   7145 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
   7146 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   7147   (eval $ac_link) 2>&5
   7148   ac_status=$?
   7149   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   7150   test $ac_status = 0; } && test -s conftest$ac_exeext; then
   7151 	    pipe_works=yes
   7152 	  fi
   7153 	  LIBS=$lt_globsym_save_LIBS
   7154 	  CFLAGS=$lt_globsym_save_CFLAGS
   7155 	else
   7156 	  echo "cannot find nm_test_func in $nlist" >&5
   7157 	fi
   7158       else
   7159 	echo "cannot find nm_test_var in $nlist" >&5
   7160       fi
   7161     else
   7162       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
   7163     fi
   7164   else
   7165     echo "$progname: failed program was:" >&5
   7166     cat conftest.$ac_ext >&5
   7167   fi
   7168   rm -rf conftest* conftst*
   7169 
   7170   # Do not use the global_symbol_pipe unless it works.
   7171   if test yes = "$pipe_works"; then
   7172     break
   7173   else
   7174     lt_cv_sys_global_symbol_pipe=
   7175   fi
   7176 done
   7177 
   7178 fi
   7179 
   7180 if test -z "$lt_cv_sys_global_symbol_pipe"; then
   7181   lt_cv_sys_global_symbol_to_cdecl=
   7182 fi
   7183 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
   7184   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   7185 printf "%s\n" "failed" >&6; }
   7186 else
   7187   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
   7188 printf "%s\n" "ok" >&6; }
   7189 fi
   7190 
   7191 # Response file support.
   7192 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   7193   nm_file_list_spec='@'
   7194 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
   7195   nm_file_list_spec='@'
   7196 fi
   7197 
   7198 
   7199 
   7200 
   7201 
   7202 
   7203 
   7204 
   7205 
   7206 
   7207 
   7208 
   7209 
   7210 
   7211 
   7212 
   7213 
   7214 
   7215 
   7216 
   7217 
   7218 
   7219 
   7220 
   7221 
   7222 
   7223 
   7224 
   7225 
   7226 
   7227 
   7228 
   7229 
   7230 
   7231 
   7232 
   7233 
   7234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
   7235 printf %s "checking for sysroot... " >&6; }
   7236 
   7237 # Check whether --with-sysroot was given.
   7238 if test ${with_sysroot+y}
   7239 then :
   7240   withval=$with_sysroot;
   7241 else $as_nop
   7242   with_sysroot=no
   7243 fi
   7244 
   7245 
   7246 lt_sysroot=
   7247 case $with_sysroot in #(
   7248  yes)
   7249    if test yes = "$GCC"; then
   7250      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
   7251    fi
   7252    ;; #(
   7253  /*)
   7254    lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
   7255    ;; #(
   7256  no|'')
   7257    ;; #(
   7258  *)
   7259    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
   7260 printf "%s\n" "$with_sysroot" >&6; }
   7261    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
   7262    ;;
   7263 esac
   7264 
   7265  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
   7266 printf "%s\n" "${lt_sysroot:-no}" >&6; }
   7267 
   7268 
   7269 
   7270 
   7271 
   7272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
   7273 printf %s "checking for a working dd... " >&6; }
   7274 if test ${ac_cv_path_lt_DD+y}
   7275 then :
   7276   printf %s "(cached) " >&6
   7277 else $as_nop
   7278   printf 0123456789abcdef0123456789abcdef >conftest.i
   7279 cat conftest.i conftest.i >conftest2.i
   7280 : ${lt_DD:=$DD}
   7281 if test -z "$lt_DD"; then
   7282   ac_path_lt_DD_found=false
   7283   # Loop through the user's path and test for each of PROGNAME-LIST
   7284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7285 for as_dir in $PATH
   7286 do
   7287   IFS=$as_save_IFS
   7288   case $as_dir in #(((
   7289     '') as_dir=./ ;;
   7290     */) ;;
   7291     *) as_dir=$as_dir/ ;;
   7292   esac
   7293     for ac_prog in dd
   7294    do
   7295     for ac_exec_ext in '' $ac_executable_extensions; do
   7296       ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
   7297       as_fn_executable_p "$ac_path_lt_DD" || continue
   7298 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
   7299   cmp -s conftest.i conftest.out \
   7300   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
   7301 fi
   7302       $ac_path_lt_DD_found && break 3
   7303     done
   7304   done
   7305   done
   7306 IFS=$as_save_IFS
   7307   if test -z "$ac_cv_path_lt_DD"; then
   7308     :
   7309   fi
   7310 else
   7311   ac_cv_path_lt_DD=$lt_DD
   7312 fi
   7313 
   7314 rm -f conftest.i conftest2.i conftest.out
   7315 fi
   7316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
   7317 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
   7318 
   7319 
   7320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
   7321 printf %s "checking how to truncate binary pipes... " >&6; }
   7322 if test ${lt_cv_truncate_bin+y}
   7323 then :
   7324   printf %s "(cached) " >&6
   7325 else $as_nop
   7326   printf 0123456789abcdef0123456789abcdef >conftest.i
   7327 cat conftest.i conftest.i >conftest2.i
   7328 lt_cv_truncate_bin=
   7329 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
   7330   cmp -s conftest.i conftest.out \
   7331   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
   7332 fi
   7333 rm -f conftest.i conftest2.i conftest.out
   7334 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
   7335 fi
   7336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
   7337 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
   7338 
   7339 
   7340 
   7341 
   7342 
   7343 
   7344 
   7345 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   7346 func_cc_basename ()
   7347 {
   7348     for cc_temp in $*""; do
   7349       case $cc_temp in
   7350         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   7351         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   7352         \-*) ;;
   7353         *) break;;
   7354       esac
   7355     done
   7356     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   7357 }
   7358 
   7359 # Check whether --enable-libtool-lock was given.
   7360 if test ${enable_libtool_lock+y}
   7361 then :
   7362   enableval=$enable_libtool_lock;
   7363 fi
   7364 
   7365 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
   7366 
   7367 # Some flags need to be propagated to the compiler or linker for good
   7368 # libtool support.
   7369 case $host in
   7370 ia64-*-hpux*)
   7371   # Find out what ABI is being produced by ac_compile, and set mode
   7372   # options accordingly.
   7373   echo 'int i;' > conftest.$ac_ext
   7374   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   7375   (eval $ac_compile) 2>&5
   7376   ac_status=$?
   7377   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   7378   test $ac_status = 0; }; then
   7379     case `$FILECMD conftest.$ac_objext` in
   7380       *ELF-32*)
   7381 	HPUX_IA64_MODE=32
   7382 	;;
   7383       *ELF-64*)
   7384 	HPUX_IA64_MODE=64
   7385 	;;
   7386     esac
   7387   fi
   7388   rm -rf conftest*
   7389   ;;
   7390 *-*-irix6*)
   7391   # Find out what ABI is being produced by ac_compile, and set linker
   7392   # options accordingly.
   7393   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
   7394   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   7395   (eval $ac_compile) 2>&5
   7396   ac_status=$?
   7397   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   7398   test $ac_status = 0; }; then
   7399     if test yes = "$lt_cv_prog_gnu_ld"; then
   7400       case `$FILECMD conftest.$ac_objext` in
   7401 	*32-bit*)
   7402 	  LD="${LD-ld} -melf32bsmip"
   7403 	  ;;
   7404 	*N32*)
   7405 	  LD="${LD-ld} -melf32bmipn32"
   7406 	  ;;
   7407 	*64-bit*)
   7408 	  LD="${LD-ld} -melf64bmip"
   7409 	;;
   7410       esac
   7411     else
   7412       case `$FILECMD conftest.$ac_objext` in
   7413 	*32-bit*)
   7414 	  LD="${LD-ld} -32"
   7415 	  ;;
   7416 	*N32*)
   7417 	  LD="${LD-ld} -n32"
   7418 	  ;;
   7419 	*64-bit*)
   7420 	  LD="${LD-ld} -64"
   7421 	  ;;
   7422       esac
   7423     fi
   7424   fi
   7425   rm -rf conftest*
   7426   ;;
   7427 
   7428 mips64*-*linux*)
   7429   # Find out what ABI is being produced by ac_compile, and set linker
   7430   # options accordingly.
   7431   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
   7432   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   7433   (eval $ac_compile) 2>&5
   7434   ac_status=$?
   7435   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   7436   test $ac_status = 0; }; then
   7437     emul=elf
   7438     case `$FILECMD conftest.$ac_objext` in
   7439       *32-bit*)
   7440 	emul="${emul}32"
   7441 	;;
   7442       *64-bit*)
   7443 	emul="${emul}64"
   7444 	;;
   7445     esac
   7446     case `$FILECMD conftest.$ac_objext` in
   7447       *MSB*)
   7448 	emul="${emul}btsmip"
   7449 	;;
   7450       *LSB*)
   7451 	emul="${emul}ltsmip"
   7452 	;;
   7453     esac
   7454     case `$FILECMD conftest.$ac_objext` in
   7455       *N32*)
   7456 	emul="${emul}n32"
   7457 	;;
   7458     esac
   7459     LD="${LD-ld} -m $emul"
   7460   fi
   7461   rm -rf conftest*
   7462   ;;
   7463 
   7464 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
   7465 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
   7466   # Find out what ABI is being produced by ac_compile, and set linker
   7467   # options accordingly.  Note that the listed cases only cover the
   7468   # situations where additional linker options are needed (such as when
   7469   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
   7470   # vice versa); the common cases where no linker options are needed do
   7471   # not appear in the list.
   7472   echo 'int i;' > conftest.$ac_ext
   7473   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   7474   (eval $ac_compile) 2>&5
   7475   ac_status=$?
   7476   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   7477   test $ac_status = 0; }; then
   7478     case `$FILECMD conftest.o` in
   7479       *32-bit*)
   7480 	case $host in
   7481 	  x86_64-*kfreebsd*-gnu)
   7482 	    LD="${LD-ld} -m elf_i386_fbsd"
   7483 	    ;;
   7484 	  x86_64-*linux*)
   7485 	    case `$FILECMD conftest.o` in
   7486 	      *x86-64*)
   7487 		LD="${LD-ld} -m elf32_x86_64"
   7488 		;;
   7489 	      *)
   7490 		LD="${LD-ld} -m elf_i386"
   7491 		;;
   7492 	    esac
   7493 	    ;;
   7494 	  powerpc64le-*linux*)
   7495 	    LD="${LD-ld} -m elf32lppclinux"
   7496 	    ;;
   7497 	  powerpc64-*linux*)
   7498 	    LD="${LD-ld} -m elf32ppclinux"
   7499 	    ;;
   7500 	  s390x-*linux*)
   7501 	    LD="${LD-ld} -m elf_s390"
   7502 	    ;;
   7503 	  sparc64-*linux*)
   7504 	    LD="${LD-ld} -m elf32_sparc"
   7505 	    ;;
   7506 	esac
   7507 	;;
   7508       *64-bit*)
   7509 	case $host in
   7510 	  x86_64-*kfreebsd*-gnu)
   7511 	    LD="${LD-ld} -m elf_x86_64_fbsd"
   7512 	    ;;
   7513 	  x86_64-*linux*)
   7514 	    LD="${LD-ld} -m elf_x86_64"
   7515 	    ;;
   7516 	  powerpcle-*linux*)
   7517 	    LD="${LD-ld} -m elf64lppc"
   7518 	    ;;
   7519 	  powerpc-*linux*)
   7520 	    LD="${LD-ld} -m elf64ppc"
   7521 	    ;;
   7522 	  s390*-*linux*|s390*-*tpf*)
   7523 	    LD="${LD-ld} -m elf64_s390"
   7524 	    ;;
   7525 	  sparc*-*linux*)
   7526 	    LD="${LD-ld} -m elf64_sparc"
   7527 	    ;;
   7528 	esac
   7529 	;;
   7530     esac
   7531   fi
   7532   rm -rf conftest*
   7533   ;;
   7534 
   7535 *-*-sco3.2v5*)
   7536   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
   7537   SAVE_CFLAGS=$CFLAGS
   7538   CFLAGS="$CFLAGS -belf"
   7539   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
   7540 printf %s "checking whether the C compiler needs -belf... " >&6; }
   7541 if test ${lt_cv_cc_needs_belf+y}
   7542 then :
   7543   printf %s "(cached) " >&6
   7544 else $as_nop
   7545   ac_ext=c
   7546 ac_cpp='$CPP $CPPFLAGS'
   7547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7550 
   7551      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7552 /* end confdefs.h.  */
   7553 
   7554 int
   7555 main (void)
   7556 {
   7557 
   7558   ;
   7559   return 0;
   7560 }
   7561 _ACEOF
   7562 if ac_fn_c_try_link "$LINENO"
   7563 then :
   7564   lt_cv_cc_needs_belf=yes
   7565 else $as_nop
   7566   lt_cv_cc_needs_belf=no
   7567 fi
   7568 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   7569     conftest$ac_exeext conftest.$ac_ext
   7570      ac_ext=c
   7571 ac_cpp='$CPP $CPPFLAGS'
   7572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7575 
   7576 fi
   7577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
   7578 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
   7579   if test yes != "$lt_cv_cc_needs_belf"; then
   7580     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
   7581     CFLAGS=$SAVE_CFLAGS
   7582   fi
   7583   ;;
   7584 *-*solaris*)
   7585   # Find out what ABI is being produced by ac_compile, and set linker
   7586   # options accordingly.
   7587   echo 'int i;' > conftest.$ac_ext
   7588   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   7589   (eval $ac_compile) 2>&5
   7590   ac_status=$?
   7591   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   7592   test $ac_status = 0; }; then
   7593     case `$FILECMD conftest.o` in
   7594     *64-bit*)
   7595       case $lt_cv_prog_gnu_ld in
   7596       yes*)
   7597         case $host in
   7598         i?86-*-solaris*|x86_64-*-solaris*)
   7599           LD="${LD-ld} -m elf_x86_64"
   7600           ;;
   7601         sparc*-*-solaris*)
   7602           LD="${LD-ld} -m elf64_sparc"
   7603           ;;
   7604         esac
   7605         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
   7606         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
   7607           LD=${LD-ld}_sol2
   7608         fi
   7609         ;;
   7610       *)
   7611 	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
   7612 	  LD="${LD-ld} -64"
   7613 	fi
   7614 	;;
   7615       esac
   7616       ;;
   7617     esac
   7618   fi
   7619   rm -rf conftest*
   7620   ;;
   7621 esac
   7622 
   7623 need_locks=$enable_libtool_lock
   7624 
   7625 if test -n "$ac_tool_prefix"; then
   7626   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
   7627 set dummy ${ac_tool_prefix}mt; ac_word=$2
   7628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7629 printf %s "checking for $ac_word... " >&6; }
   7630 if test ${ac_cv_prog_MANIFEST_TOOL+y}
   7631 then :
   7632   printf %s "(cached) " >&6
   7633 else $as_nop
   7634   if test -n "$MANIFEST_TOOL"; then
   7635   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
   7636 else
   7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7638 for as_dir in $PATH
   7639 do
   7640   IFS=$as_save_IFS
   7641   case $as_dir in #(((
   7642     '') as_dir=./ ;;
   7643     */) ;;
   7644     *) as_dir=$as_dir/ ;;
   7645   esac
   7646     for ac_exec_ext in '' $ac_executable_extensions; do
   7647   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   7648     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
   7649     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   7650     break 2
   7651   fi
   7652 done
   7653   done
   7654 IFS=$as_save_IFS
   7655 
   7656 fi
   7657 fi
   7658 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
   7659 if test -n "$MANIFEST_TOOL"; then
   7660   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
   7661 printf "%s\n" "$MANIFEST_TOOL" >&6; }
   7662 else
   7663   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7664 printf "%s\n" "no" >&6; }
   7665 fi
   7666 
   7667 
   7668 fi
   7669 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
   7670   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
   7671   # Extract the first word of "mt", so it can be a program name with args.
   7672 set dummy mt; ac_word=$2
   7673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7674 printf %s "checking for $ac_word... " >&6; }
   7675 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
   7676 then :
   7677   printf %s "(cached) " >&6
   7678 else $as_nop
   7679   if test -n "$ac_ct_MANIFEST_TOOL"; then
   7680   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
   7681 else
   7682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7683 for as_dir in $PATH
   7684 do
   7685   IFS=$as_save_IFS
   7686   case $as_dir in #(((
   7687     '') as_dir=./ ;;
   7688     */) ;;
   7689     *) as_dir=$as_dir/ ;;
   7690   esac
   7691     for ac_exec_ext in '' $ac_executable_extensions; do
   7692   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   7693     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
   7694     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   7695     break 2
   7696   fi
   7697 done
   7698   done
   7699 IFS=$as_save_IFS
   7700 
   7701 fi
   7702 fi
   7703 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
   7704 if test -n "$ac_ct_MANIFEST_TOOL"; then
   7705   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
   7706 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
   7707 else
   7708   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7709 printf "%s\n" "no" >&6; }
   7710 fi
   7711 
   7712   if test "x$ac_ct_MANIFEST_TOOL" = x; then
   7713     MANIFEST_TOOL=":"
   7714   else
   7715     case $cross_compiling:$ac_tool_warned in
   7716 yes:)
   7717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7718 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7719 ac_tool_warned=yes ;;
   7720 esac
   7721     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
   7722   fi
   7723 else
   7724   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
   7725 fi
   7726 
   7727 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
   7728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
   7729 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
   7730 if test ${lt_cv_path_mainfest_tool+y}
   7731 then :
   7732   printf %s "(cached) " >&6
   7733 else $as_nop
   7734   lt_cv_path_mainfest_tool=no
   7735   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
   7736   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
   7737   cat conftest.err >&5
   7738   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
   7739     lt_cv_path_mainfest_tool=yes
   7740   fi
   7741   rm -f conftest*
   7742 fi
   7743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
   7744 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
   7745 if test yes != "$lt_cv_path_mainfest_tool"; then
   7746   MANIFEST_TOOL=:
   7747 fi
   7748 
   7749 
   7750 
   7751 
   7752 
   7753 
   7754   case $host_os in
   7755     rhapsody* | darwin*)
   7756     if test -n "$ac_tool_prefix"; then
   7757   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
   7758 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
   7759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7760 printf %s "checking for $ac_word... " >&6; }
   7761 if test ${ac_cv_prog_DSYMUTIL+y}
   7762 then :
   7763   printf %s "(cached) " >&6
   7764 else $as_nop
   7765   if test -n "$DSYMUTIL"; then
   7766   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
   7767 else
   7768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7769 for as_dir in $PATH
   7770 do
   7771   IFS=$as_save_IFS
   7772   case $as_dir in #(((
   7773     '') as_dir=./ ;;
   7774     */) ;;
   7775     *) as_dir=$as_dir/ ;;
   7776   esac
   7777     for ac_exec_ext in '' $ac_executable_extensions; do
   7778   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   7779     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
   7780     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   7781     break 2
   7782   fi
   7783 done
   7784   done
   7785 IFS=$as_save_IFS
   7786 
   7787 fi
   7788 fi
   7789 DSYMUTIL=$ac_cv_prog_DSYMUTIL
   7790 if test -n "$DSYMUTIL"; then
   7791   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
   7792 printf "%s\n" "$DSYMUTIL" >&6; }
   7793 else
   7794   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7795 printf "%s\n" "no" >&6; }
   7796 fi
   7797 
   7798 
   7799 fi
   7800 if test -z "$ac_cv_prog_DSYMUTIL"; then
   7801   ac_ct_DSYMUTIL=$DSYMUTIL
   7802   # Extract the first word of "dsymutil", so it can be a program name with args.
   7803 set dummy dsymutil; ac_word=$2
   7804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7805 printf %s "checking for $ac_word... " >&6; }
   7806 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
   7807 then :
   7808   printf %s "(cached) " >&6
   7809 else $as_nop
   7810   if test -n "$ac_ct_DSYMUTIL"; then
   7811   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
   7812 else
   7813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7814 for as_dir in $PATH
   7815 do
   7816   IFS=$as_save_IFS
   7817   case $as_dir in #(((
   7818     '') as_dir=./ ;;
   7819     */) ;;
   7820     *) as_dir=$as_dir/ ;;
   7821   esac
   7822     for ac_exec_ext in '' $ac_executable_extensions; do
   7823   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   7824     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
   7825     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   7826     break 2
   7827   fi
   7828 done
   7829   done
   7830 IFS=$as_save_IFS
   7831 
   7832 fi
   7833 fi
   7834 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
   7835 if test -n "$ac_ct_DSYMUTIL"; then
   7836   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
   7837 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
   7838 else
   7839   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7840 printf "%s\n" "no" >&6; }
   7841 fi
   7842 
   7843   if test "x$ac_ct_DSYMUTIL" = x; then
   7844     DSYMUTIL=":"
   7845   else
   7846     case $cross_compiling:$ac_tool_warned in
   7847 yes:)
   7848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7849 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7850 ac_tool_warned=yes ;;
   7851 esac
   7852     DSYMUTIL=$ac_ct_DSYMUTIL
   7853   fi
   7854 else
   7855   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
   7856 fi
   7857 
   7858     if test -n "$ac_tool_prefix"; then
   7859   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
   7860 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
   7861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7862 printf %s "checking for $ac_word... " >&6; }
   7863 if test ${ac_cv_prog_NMEDIT+y}
   7864 then :
   7865   printf %s "(cached) " >&6
   7866 else $as_nop
   7867   if test -n "$NMEDIT"; then
   7868   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
   7869 else
   7870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7871 for as_dir in $PATH
   7872 do
   7873   IFS=$as_save_IFS
   7874   case $as_dir in #(((
   7875     '') as_dir=./ ;;
   7876     */) ;;
   7877     *) as_dir=$as_dir/ ;;
   7878   esac
   7879     for ac_exec_ext in '' $ac_executable_extensions; do
   7880   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   7881     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
   7882     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   7883     break 2
   7884   fi
   7885 done
   7886   done
   7887 IFS=$as_save_IFS
   7888 
   7889 fi
   7890 fi
   7891 NMEDIT=$ac_cv_prog_NMEDIT
   7892 if test -n "$NMEDIT"; then
   7893   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
   7894 printf "%s\n" "$NMEDIT" >&6; }
   7895 else
   7896   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7897 printf "%s\n" "no" >&6; }
   7898 fi
   7899 
   7900 
   7901 fi
   7902 if test -z "$ac_cv_prog_NMEDIT"; then
   7903   ac_ct_NMEDIT=$NMEDIT
   7904   # Extract the first word of "nmedit", so it can be a program name with args.
   7905 set dummy nmedit; ac_word=$2
   7906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7907 printf %s "checking for $ac_word... " >&6; }
   7908 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
   7909 then :
   7910   printf %s "(cached) " >&6
   7911 else $as_nop
   7912   if test -n "$ac_ct_NMEDIT"; then
   7913   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
   7914 else
   7915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7916 for as_dir in $PATH
   7917 do
   7918   IFS=$as_save_IFS
   7919   case $as_dir in #(((
   7920     '') as_dir=./ ;;
   7921     */) ;;
   7922     *) as_dir=$as_dir/ ;;
   7923   esac
   7924     for ac_exec_ext in '' $ac_executable_extensions; do
   7925   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   7926     ac_cv_prog_ac_ct_NMEDIT="nmedit"
   7927     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   7928     break 2
   7929   fi
   7930 done
   7931   done
   7932 IFS=$as_save_IFS
   7933 
   7934 fi
   7935 fi
   7936 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
   7937 if test -n "$ac_ct_NMEDIT"; then
   7938   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
   7939 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
   7940 else
   7941   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7942 printf "%s\n" "no" >&6; }
   7943 fi
   7944 
   7945   if test "x$ac_ct_NMEDIT" = x; then
   7946     NMEDIT=":"
   7947   else
   7948     case $cross_compiling:$ac_tool_warned in
   7949 yes:)
   7950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7951 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7952 ac_tool_warned=yes ;;
   7953 esac
   7954     NMEDIT=$ac_ct_NMEDIT
   7955   fi
   7956 else
   7957   NMEDIT="$ac_cv_prog_NMEDIT"
   7958 fi
   7959 
   7960     if test -n "$ac_tool_prefix"; then
   7961   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
   7962 set dummy ${ac_tool_prefix}lipo; ac_word=$2
   7963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7964 printf %s "checking for $ac_word... " >&6; }
   7965 if test ${ac_cv_prog_LIPO+y}
   7966 then :
   7967   printf %s "(cached) " >&6
   7968 else $as_nop
   7969   if test -n "$LIPO"; then
   7970   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
   7971 else
   7972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7973 for as_dir in $PATH
   7974 do
   7975   IFS=$as_save_IFS
   7976   case $as_dir in #(((
   7977     '') as_dir=./ ;;
   7978     */) ;;
   7979     *) as_dir=$as_dir/ ;;
   7980   esac
   7981     for ac_exec_ext in '' $ac_executable_extensions; do
   7982   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   7983     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
   7984     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   7985     break 2
   7986   fi
   7987 done
   7988   done
   7989 IFS=$as_save_IFS
   7990 
   7991 fi
   7992 fi
   7993 LIPO=$ac_cv_prog_LIPO
   7994 if test -n "$LIPO"; then
   7995   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
   7996 printf "%s\n" "$LIPO" >&6; }
   7997 else
   7998   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7999 printf "%s\n" "no" >&6; }
   8000 fi
   8001 
   8002 
   8003 fi
   8004 if test -z "$ac_cv_prog_LIPO"; then
   8005   ac_ct_LIPO=$LIPO
   8006   # Extract the first word of "lipo", so it can be a program name with args.
   8007 set dummy lipo; ac_word=$2
   8008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8009 printf %s "checking for $ac_word... " >&6; }
   8010 if test ${ac_cv_prog_ac_ct_LIPO+y}
   8011 then :
   8012   printf %s "(cached) " >&6
   8013 else $as_nop
   8014   if test -n "$ac_ct_LIPO"; then
   8015   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
   8016 else
   8017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8018 for as_dir in $PATH
   8019 do
   8020   IFS=$as_save_IFS
   8021   case $as_dir in #(((
   8022     '') as_dir=./ ;;
   8023     */) ;;
   8024     *) as_dir=$as_dir/ ;;
   8025   esac
   8026     for ac_exec_ext in '' $ac_executable_extensions; do
   8027   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   8028     ac_cv_prog_ac_ct_LIPO="lipo"
   8029     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   8030     break 2
   8031   fi
   8032 done
   8033   done
   8034 IFS=$as_save_IFS
   8035 
   8036 fi
   8037 fi
   8038 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
   8039 if test -n "$ac_ct_LIPO"; then
   8040   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
   8041 printf "%s\n" "$ac_ct_LIPO" >&6; }
   8042 else
   8043   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8044 printf "%s\n" "no" >&6; }
   8045 fi
   8046 
   8047   if test "x$ac_ct_LIPO" = x; then
   8048     LIPO=":"
   8049   else
   8050     case $cross_compiling:$ac_tool_warned in
   8051 yes:)
   8052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   8053 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   8054 ac_tool_warned=yes ;;
   8055 esac
   8056     LIPO=$ac_ct_LIPO
   8057   fi
   8058 else
   8059   LIPO="$ac_cv_prog_LIPO"
   8060 fi
   8061 
   8062     if test -n "$ac_tool_prefix"; then
   8063   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
   8064 set dummy ${ac_tool_prefix}otool; ac_word=$2
   8065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8066 printf %s "checking for $ac_word... " >&6; }
   8067 if test ${ac_cv_prog_OTOOL+y}
   8068 then :
   8069   printf %s "(cached) " >&6
   8070 else $as_nop
   8071   if test -n "$OTOOL"; then
   8072   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
   8073 else
   8074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8075 for as_dir in $PATH
   8076 do
   8077   IFS=$as_save_IFS
   8078   case $as_dir in #(((
   8079     '') as_dir=./ ;;
   8080     */) ;;
   8081     *) as_dir=$as_dir/ ;;
   8082   esac
   8083     for ac_exec_ext in '' $ac_executable_extensions; do
   8084   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   8085     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
   8086     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   8087     break 2
   8088   fi
   8089 done
   8090   done
   8091 IFS=$as_save_IFS
   8092 
   8093 fi
   8094 fi
   8095 OTOOL=$ac_cv_prog_OTOOL
   8096 if test -n "$OTOOL"; then
   8097   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
   8098 printf "%s\n" "$OTOOL" >&6; }
   8099 else
   8100   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8101 printf "%s\n" "no" >&6; }
   8102 fi
   8103 
   8104 
   8105 fi
   8106 if test -z "$ac_cv_prog_OTOOL"; then
   8107   ac_ct_OTOOL=$OTOOL
   8108   # Extract the first word of "otool", so it can be a program name with args.
   8109 set dummy otool; ac_word=$2
   8110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8111 printf %s "checking for $ac_word... " >&6; }
   8112 if test ${ac_cv_prog_ac_ct_OTOOL+y}
   8113 then :
   8114   printf %s "(cached) " >&6
   8115 else $as_nop
   8116   if test -n "$ac_ct_OTOOL"; then
   8117   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
   8118 else
   8119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8120 for as_dir in $PATH
   8121 do
   8122   IFS=$as_save_IFS
   8123   case $as_dir in #(((
   8124     '') as_dir=./ ;;
   8125     */) ;;
   8126     *) as_dir=$as_dir/ ;;
   8127   esac
   8128     for ac_exec_ext in '' $ac_executable_extensions; do
   8129   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   8130     ac_cv_prog_ac_ct_OTOOL="otool"
   8131     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   8132     break 2
   8133   fi
   8134 done
   8135   done
   8136 IFS=$as_save_IFS
   8137 
   8138 fi
   8139 fi
   8140 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
   8141 if test -n "$ac_ct_OTOOL"; then
   8142   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
   8143 printf "%s\n" "$ac_ct_OTOOL" >&6; }
   8144 else
   8145   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8146 printf "%s\n" "no" >&6; }
   8147 fi
   8148 
   8149   if test "x$ac_ct_OTOOL" = x; then
   8150     OTOOL=":"
   8151   else
   8152     case $cross_compiling:$ac_tool_warned in
   8153 yes:)
   8154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   8155 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   8156 ac_tool_warned=yes ;;
   8157 esac
   8158     OTOOL=$ac_ct_OTOOL
   8159   fi
   8160 else
   8161   OTOOL="$ac_cv_prog_OTOOL"
   8162 fi
   8163 
   8164     if test -n "$ac_tool_prefix"; then
   8165   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
   8166 set dummy ${ac_tool_prefix}otool64; ac_word=$2
   8167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8168 printf %s "checking for $ac_word... " >&6; }
   8169 if test ${ac_cv_prog_OTOOL64+y}
   8170 then :
   8171   printf %s "(cached) " >&6
   8172 else $as_nop
   8173   if test -n "$OTOOL64"; then
   8174   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
   8175 else
   8176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8177 for as_dir in $PATH
   8178 do
   8179   IFS=$as_save_IFS
   8180   case $as_dir in #(((
   8181     '') as_dir=./ ;;
   8182     */) ;;
   8183     *) as_dir=$as_dir/ ;;
   8184   esac
   8185     for ac_exec_ext in '' $ac_executable_extensions; do
   8186   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   8187     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
   8188     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   8189     break 2
   8190   fi
   8191 done
   8192   done
   8193 IFS=$as_save_IFS
   8194 
   8195 fi
   8196 fi
   8197 OTOOL64=$ac_cv_prog_OTOOL64
   8198 if test -n "$OTOOL64"; then
   8199   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
   8200 printf "%s\n" "$OTOOL64" >&6; }
   8201 else
   8202   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8203 printf "%s\n" "no" >&6; }
   8204 fi
   8205 
   8206 
   8207 fi
   8208 if test -z "$ac_cv_prog_OTOOL64"; then
   8209   ac_ct_OTOOL64=$OTOOL64
   8210   # Extract the first word of "otool64", so it can be a program name with args.
   8211 set dummy otool64; ac_word=$2
   8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8213 printf %s "checking for $ac_word... " >&6; }
   8214 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
   8215 then :
   8216   printf %s "(cached) " >&6
   8217 else $as_nop
   8218   if test -n "$ac_ct_OTOOL64"; then
   8219   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
   8220 else
   8221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8222 for as_dir in $PATH
   8223 do
   8224   IFS=$as_save_IFS
   8225   case $as_dir in #(((
   8226     '') as_dir=./ ;;
   8227     */) ;;
   8228     *) as_dir=$as_dir/ ;;
   8229   esac
   8230     for ac_exec_ext in '' $ac_executable_extensions; do
   8231   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   8232     ac_cv_prog_ac_ct_OTOOL64="otool64"
   8233     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   8234     break 2
   8235   fi
   8236 done
   8237   done
   8238 IFS=$as_save_IFS
   8239 
   8240 fi
   8241 fi
   8242 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
   8243 if test -n "$ac_ct_OTOOL64"; then
   8244   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
   8245 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
   8246 else
   8247   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8248 printf "%s\n" "no" >&6; }
   8249 fi
   8250 
   8251   if test "x$ac_ct_OTOOL64" = x; then
   8252     OTOOL64=":"
   8253   else
   8254     case $cross_compiling:$ac_tool_warned in
   8255 yes:)
   8256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   8257 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   8258 ac_tool_warned=yes ;;
   8259 esac
   8260     OTOOL64=$ac_ct_OTOOL64
   8261   fi
   8262 else
   8263   OTOOL64="$ac_cv_prog_OTOOL64"
   8264 fi
   8265 
   8266 
   8267 
   8268 
   8269 
   8270 
   8271 
   8272 
   8273 
   8274 
   8275 
   8276 
   8277 
   8278 
   8279 
   8280 
   8281 
   8282 
   8283 
   8284 
   8285 
   8286 
   8287 
   8288 
   8289 
   8290 
   8291 
   8292     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
   8293 printf %s "checking for -single_module linker flag... " >&6; }
   8294 if test ${lt_cv_apple_cc_single_mod+y}
   8295 then :
   8296   printf %s "(cached) " >&6
   8297 else $as_nop
   8298   lt_cv_apple_cc_single_mod=no
   8299       if test -z "$LT_MULTI_MODULE"; then
   8300 	# By default we will add the -single_module flag. You can override
   8301 	# by either setting the environment variable LT_MULTI_MODULE
   8302 	# non-empty at configure time, or by adding -multi_module to the
   8303 	# link flags.
   8304 	rm -rf libconftest.dylib*
   8305 	echo "int foo(void){return 1;}" > conftest.c
   8306 	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   8307 -dynamiclib -Wl,-single_module conftest.c" >&5
   8308 	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   8309 	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
   8310         _lt_result=$?
   8311 	# If there is a non-empty error log, and "single_module"
   8312 	# appears in it, assume the flag caused a linker warning
   8313         if test -s conftest.err && $GREP single_module conftest.err; then
   8314 	  cat conftest.err >&5
   8315 	# Otherwise, if the output was created with a 0 exit code from
   8316 	# the compiler, it worked.
   8317 	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
   8318 	  lt_cv_apple_cc_single_mod=yes
   8319 	else
   8320 	  cat conftest.err >&5
   8321 	fi
   8322 	rm -rf libconftest.dylib*
   8323 	rm -f conftest.*
   8324       fi
   8325 fi
   8326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
   8327 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
   8328 
   8329     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
   8330 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
   8331 if test ${lt_cv_ld_exported_symbols_list+y}
   8332 then :
   8333   printf %s "(cached) " >&6
   8334 else $as_nop
   8335   lt_cv_ld_exported_symbols_list=no
   8336       save_LDFLAGS=$LDFLAGS
   8337       echo "_main" > conftest.sym
   8338       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
   8339       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8340 /* end confdefs.h.  */
   8341 
   8342 int
   8343 main (void)
   8344 {
   8345 
   8346   ;
   8347   return 0;
   8348 }
   8349 _ACEOF
   8350 if ac_fn_c_try_link "$LINENO"
   8351 then :
   8352   lt_cv_ld_exported_symbols_list=yes
   8353 else $as_nop
   8354   lt_cv_ld_exported_symbols_list=no
   8355 fi
   8356 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   8357     conftest$ac_exeext conftest.$ac_ext
   8358 	LDFLAGS=$save_LDFLAGS
   8359 
   8360 fi
   8361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
   8362 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
   8363 
   8364     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
   8365 printf %s "checking for -force_load linker flag... " >&6; }
   8366 if test ${lt_cv_ld_force_load+y}
   8367 then :
   8368   printf %s "(cached) " >&6
   8369 else $as_nop
   8370   lt_cv_ld_force_load=no
   8371       cat > conftest.c << _LT_EOF
   8372 int forced_loaded() { return 2;}
   8373 _LT_EOF
   8374       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
   8375       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
   8376       echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
   8377       $AR $AR_FLAGS libconftest.a conftest.o 2>&5
   8378       echo "$RANLIB libconftest.a" >&5
   8379       $RANLIB libconftest.a 2>&5
   8380       cat > conftest.c << _LT_EOF
   8381 int main() { return 0;}
   8382 _LT_EOF
   8383       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
   8384       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
   8385       _lt_result=$?
   8386       if test -s conftest.err && $GREP force_load conftest.err; then
   8387 	cat conftest.err >&5
   8388       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
   8389 	lt_cv_ld_force_load=yes
   8390       else
   8391 	cat conftest.err >&5
   8392       fi
   8393         rm -f conftest.err libconftest.a conftest conftest.c
   8394         rm -rf conftest.dSYM
   8395 
   8396 fi
   8397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
   8398 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
   8399     case $host_os in
   8400     rhapsody* | darwin1.[012])
   8401       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
   8402     darwin1.*)
   8403       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
   8404     darwin*)
   8405       case $MACOSX_DEPLOYMENT_TARGET,$host in
   8406         10.[012],*|,*powerpc*-darwin[5-8]*)
   8407           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
   8408         *)
   8409           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
   8410       esac
   8411     ;;
   8412   esac
   8413     if test yes = "$lt_cv_apple_cc_single_mod"; then
   8414       _lt_dar_single_mod='$single_module'
   8415     fi
   8416     if test yes = "$lt_cv_ld_exported_symbols_list"; then
   8417       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
   8418     else
   8419       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
   8420     fi
   8421     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
   8422       _lt_dsymutil='~$DSYMUTIL $lib || :'
   8423     else
   8424       _lt_dsymutil=
   8425     fi
   8426     ;;
   8427   esac
   8428 
   8429 # func_munge_path_list VARIABLE PATH
   8430 # -----------------------------------
   8431 # VARIABLE is name of variable containing _space_ separated list of
   8432 # directories to be munged by the contents of PATH, which is string
   8433 # having a format:
   8434 # "DIR[:DIR]:"
   8435 #       string "DIR[ DIR]" will be prepended to VARIABLE
   8436 # ":DIR[:DIR]"
   8437 #       string "DIR[ DIR]" will be appended to VARIABLE
   8438 # "DIRP[:DIRP]::[DIRA:]DIRA"
   8439 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
   8440 #       "DIRA[ DIRA]" will be appended to VARIABLE
   8441 # "DIR[:DIR]"
   8442 #       VARIABLE will be replaced by "DIR[ DIR]"
   8443 func_munge_path_list ()
   8444 {
   8445     case x$2 in
   8446     x)
   8447         ;;
   8448     *:)
   8449         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
   8450         ;;
   8451     x:*)
   8452         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
   8453         ;;
   8454     *::*)
   8455         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
   8456         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
   8457         ;;
   8458     *)
   8459         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
   8460         ;;
   8461     esac
   8462 }
   8463 
   8464 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
   8465 "
   8466 if test "x$ac_cv_header_dlfcn_h" = xyes
   8467 then :
   8468   printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
   8469 
   8470 fi
   8471 
   8472 
   8473 
   8474 
   8475 
   8476 # Set options
   8477 
   8478 
   8479 
   8480         enable_dlopen=no
   8481 
   8482 
   8483   enable_win32_dll=no
   8484 
   8485 
   8486             # Check whether --enable-shared was given.
   8487 if test ${enable_shared+y}
   8488 then :
   8489   enableval=$enable_shared; p=${PACKAGE-default}
   8490     case $enableval in
   8491     yes) enable_shared=yes ;;
   8492     no) enable_shared=no ;;
   8493     *)
   8494       enable_shared=no
   8495       # Look at the argument we got.  We use all the common list separators.
   8496       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   8497       for pkg in $enableval; do
   8498 	IFS=$lt_save_ifs
   8499 	if test "X$pkg" = "X$p"; then
   8500 	  enable_shared=yes
   8501 	fi
   8502       done
   8503       IFS=$lt_save_ifs
   8504       ;;
   8505     esac
   8506 else $as_nop
   8507   enable_shared=yes
   8508 fi
   8509 
   8510 
   8511 
   8512 
   8513 
   8514 
   8515 
   8516 
   8517 
   8518   # Check whether --enable-static was given.
   8519 if test ${enable_static+y}
   8520 then :
   8521   enableval=$enable_static; p=${PACKAGE-default}
   8522     case $enableval in
   8523     yes) enable_static=yes ;;
   8524     no) enable_static=no ;;
   8525     *)
   8526      enable_static=no
   8527       # Look at the argument we got.  We use all the common list separators.
   8528       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   8529       for pkg in $enableval; do
   8530 	IFS=$lt_save_ifs
   8531 	if test "X$pkg" = "X$p"; then
   8532 	  enable_static=yes
   8533 	fi
   8534       done
   8535       IFS=$lt_save_ifs
   8536       ;;
   8537     esac
   8538 else $as_nop
   8539   enable_static=yes
   8540 fi
   8541 
   8542 
   8543 
   8544 
   8545 
   8546 
   8547 
   8548 
   8549 
   8550 
   8551 # Check whether --with-pic was given.
   8552 if test ${with_pic+y}
   8553 then :
   8554   withval=$with_pic; lt_p=${PACKAGE-default}
   8555     case $withval in
   8556     yes|no) pic_mode=$withval ;;
   8557     *)
   8558       pic_mode=default
   8559       # Look at the argument we got.  We use all the common list separators.
   8560       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   8561       for lt_pkg in $withval; do
   8562 	IFS=$lt_save_ifs
   8563 	if test "X$lt_pkg" = "X$lt_p"; then
   8564 	  pic_mode=yes
   8565 	fi
   8566       done
   8567       IFS=$lt_save_ifs
   8568       ;;
   8569     esac
   8570 else $as_nop
   8571   pic_mode=default
   8572 fi
   8573 
   8574 
   8575 
   8576 
   8577 
   8578 
   8579 
   8580 
   8581   # Check whether --enable-fast-install was given.
   8582 if test ${enable_fast_install+y}
   8583 then :
   8584   enableval=$enable_fast_install; p=${PACKAGE-default}
   8585     case $enableval in
   8586     yes) enable_fast_install=yes ;;
   8587     no) enable_fast_install=no ;;
   8588     *)
   8589       enable_fast_install=no
   8590       # Look at the argument we got.  We use all the common list separators.
   8591       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   8592       for pkg in $enableval; do
   8593 	IFS=$lt_save_ifs
   8594 	if test "X$pkg" = "X$p"; then
   8595 	  enable_fast_install=yes
   8596 	fi
   8597       done
   8598       IFS=$lt_save_ifs
   8599       ;;
   8600     esac
   8601 else $as_nop
   8602   enable_fast_install=yes
   8603 fi
   8604 
   8605 
   8606 
   8607 
   8608 
   8609 
   8610 
   8611 
   8612   shared_archive_member_spec=
   8613 case $host,$enable_shared in
   8614 power*-*-aix[5-9]*,yes)
   8615   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
   8616 printf %s "checking which variant of shared library versioning to provide... " >&6; }
   8617 
   8618 # Check whether --with-aix-soname was given.
   8619 if test ${with_aix_soname+y}
   8620 then :
   8621   withval=$with_aix_soname; case $withval in
   8622     aix|svr4|both)
   8623       ;;
   8624     *)
   8625       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
   8626       ;;
   8627     esac
   8628     lt_cv_with_aix_soname=$with_aix_soname
   8629 else $as_nop
   8630   if test ${lt_cv_with_aix_soname+y}
   8631 then :
   8632   printf %s "(cached) " >&6
   8633 else $as_nop
   8634   lt_cv_with_aix_soname=aix
   8635 fi
   8636 
   8637     with_aix_soname=$lt_cv_with_aix_soname
   8638 fi
   8639 
   8640   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
   8641 printf "%s\n" "$with_aix_soname" >&6; }
   8642   if test aix != "$with_aix_soname"; then
   8643     # For the AIX way of multilib, we name the shared archive member
   8644     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
   8645     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
   8646     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
   8647     # the AIX toolchain works better with OBJECT_MODE set (default 32).
   8648     if test 64 = "${OBJECT_MODE-32}"; then
   8649       shared_archive_member_spec=shr_64
   8650     else
   8651       shared_archive_member_spec=shr
   8652     fi
   8653   fi
   8654   ;;
   8655 *)
   8656   with_aix_soname=aix
   8657   ;;
   8658 esac
   8659 
   8660 
   8661 
   8662 
   8663 
   8664 
   8665 
   8666 
   8667 
   8668 
   8669 # This can be used to rebuild libtool when needed
   8670 LIBTOOL_DEPS=$ltmain
   8671 
   8672 # Always use our own libtool.
   8673 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
   8674 
   8675 
   8676 
   8677 
   8678 
   8679 
   8680 
   8681 
   8682 
   8683 
   8684 
   8685 
   8686 
   8687 
   8688 
   8689 
   8690 
   8691 
   8692 
   8693 
   8694 
   8695 
   8696 
   8697 
   8698 
   8699 
   8700 
   8701 
   8702 
   8703 
   8704 test -z "$LN_S" && LN_S="ln -s"
   8705 
   8706 
   8707 
   8708 
   8709 
   8710 
   8711 
   8712 
   8713 
   8714 
   8715 
   8716 
   8717 
   8718 
   8719 if test -n "${ZSH_VERSION+set}"; then
   8720    setopt NO_GLOB_SUBST
   8721 fi
   8722 
   8723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
   8724 printf %s "checking for objdir... " >&6; }
   8725 if test ${lt_cv_objdir+y}
   8726 then :
   8727   printf %s "(cached) " >&6
   8728 else $as_nop
   8729   rm -f .libs 2>/dev/null
   8730 mkdir .libs 2>/dev/null
   8731 if test -d .libs; then
   8732   lt_cv_objdir=.libs
   8733 else
   8734   # MS-DOS does not allow filenames that begin with a dot.
   8735   lt_cv_objdir=_libs
   8736 fi
   8737 rmdir .libs 2>/dev/null
   8738 fi
   8739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
   8740 printf "%s\n" "$lt_cv_objdir" >&6; }
   8741 objdir=$lt_cv_objdir
   8742 
   8743 
   8744 
   8745 
   8746 
   8747 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
   8748 
   8749 
   8750 
   8751 
   8752 case $host_os in
   8753 aix3*)
   8754   # AIX sometimes has problems with the GCC collect2 program.  For some
   8755   # reason, if we set the COLLECT_NAMES environment variable, the problems
   8756   # vanish in a puff of smoke.
   8757   if test set != "${COLLECT_NAMES+set}"; then
   8758     COLLECT_NAMES=
   8759     export COLLECT_NAMES
   8760   fi
   8761   ;;
   8762 esac
   8763 
   8764 # Global variables:
   8765 ofile=libtool
   8766 can_build_shared=yes
   8767 
   8768 # All known linkers require a '.a' archive for static linking (except MSVC and
   8769 # ICC, which need '.lib').
   8770 libext=a
   8771 
   8772 with_gnu_ld=$lt_cv_prog_gnu_ld
   8773 
   8774 old_CC=$CC
   8775 old_CFLAGS=$CFLAGS
   8776 
   8777 # Set sane defaults for various variables
   8778 test -z "$CC" && CC=cc
   8779 test -z "$LTCC" && LTCC=$CC
   8780 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
   8781 test -z "$LD" && LD=ld
   8782 test -z "$ac_objext" && ac_objext=o
   8783 
   8784 func_cc_basename $compiler
   8785 cc_basename=$func_cc_basename_result
   8786 
   8787 
   8788 # Only perform the check for file, if the check method requires it
   8789 test -z "$MAGIC_CMD" && MAGIC_CMD=file
   8790 case $deplibs_check_method in
   8791 file_magic*)
   8792   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
   8793     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
   8794 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
   8795 if test ${lt_cv_path_MAGIC_CMD+y}
   8796 then :
   8797   printf %s "(cached) " >&6
   8798 else $as_nop
   8799   case $MAGIC_CMD in
   8800 [\\/*] |  ?:[\\/]*)
   8801   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
   8802   ;;
   8803 *)
   8804   lt_save_MAGIC_CMD=$MAGIC_CMD
   8805   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   8806   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   8807   for ac_dir in $ac_dummy; do
   8808     IFS=$lt_save_ifs
   8809     test -z "$ac_dir" && ac_dir=.
   8810     if test -f "$ac_dir/${ac_tool_prefix}file"; then
   8811       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
   8812       if test -n "$file_magic_test_file"; then
   8813 	case $deplibs_check_method in
   8814 	"file_magic "*)
   8815 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   8816 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   8817 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   8818 	    $EGREP "$file_magic_regex" > /dev/null; then
   8819 	    :
   8820 	  else
   8821 	    cat <<_LT_EOF 1>&2
   8822 
   8823 *** Warning: the command libtool uses to detect shared libraries,
   8824 *** $file_magic_cmd, produces output that libtool cannot recognize.
   8825 *** The result is that libtool may fail to recognize shared libraries
   8826 *** as such.  This will affect the creation of libtool libraries that
   8827 *** depend on shared libraries, but programs linked with such libtool
   8828 *** libraries will work regardless of this problem.  Nevertheless, you
   8829 *** may want to report the problem to your system manager and/or to
   8830 *** bug-libtool@gnu.org
   8831 
   8832 _LT_EOF
   8833 	  fi ;;
   8834 	esac
   8835       fi
   8836       break
   8837     fi
   8838   done
   8839   IFS=$lt_save_ifs
   8840   MAGIC_CMD=$lt_save_MAGIC_CMD
   8841   ;;
   8842 esac
   8843 fi
   8844 
   8845 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   8846 if test -n "$MAGIC_CMD"; then
   8847   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   8848 printf "%s\n" "$MAGIC_CMD" >&6; }
   8849 else
   8850   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8851 printf "%s\n" "no" >&6; }
   8852 fi
   8853 
   8854 
   8855 
   8856 
   8857 
   8858 if test -z "$lt_cv_path_MAGIC_CMD"; then
   8859   if test -n "$ac_tool_prefix"; then
   8860     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
   8861 printf %s "checking for file... " >&6; }
   8862 if test ${lt_cv_path_MAGIC_CMD+y}
   8863 then :
   8864   printf %s "(cached) " >&6
   8865 else $as_nop
   8866   case $MAGIC_CMD in
   8867 [\\/*] |  ?:[\\/]*)
   8868   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
   8869   ;;
   8870 *)
   8871   lt_save_MAGIC_CMD=$MAGIC_CMD
   8872   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   8873   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   8874   for ac_dir in $ac_dummy; do
   8875     IFS=$lt_save_ifs
   8876     test -z "$ac_dir" && ac_dir=.
   8877     if test -f "$ac_dir/file"; then
   8878       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
   8879       if test -n "$file_magic_test_file"; then
   8880 	case $deplibs_check_method in
   8881 	"file_magic "*)
   8882 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   8883 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   8884 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   8885 	    $EGREP "$file_magic_regex" > /dev/null; then
   8886 	    :
   8887 	  else
   8888 	    cat <<_LT_EOF 1>&2
   8889 
   8890 *** Warning: the command libtool uses to detect shared libraries,
   8891 *** $file_magic_cmd, produces output that libtool cannot recognize.
   8892 *** The result is that libtool may fail to recognize shared libraries
   8893 *** as such.  This will affect the creation of libtool libraries that
   8894 *** depend on shared libraries, but programs linked with such libtool
   8895 *** libraries will work regardless of this problem.  Nevertheless, you
   8896 *** may want to report the problem to your system manager and/or to
   8897 *** bug-libtool@gnu.org
   8898 
   8899 _LT_EOF
   8900 	  fi ;;
   8901 	esac
   8902       fi
   8903       break
   8904     fi
   8905   done
   8906   IFS=$lt_save_ifs
   8907   MAGIC_CMD=$lt_save_MAGIC_CMD
   8908   ;;
   8909 esac
   8910 fi
   8911 
   8912 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   8913 if test -n "$MAGIC_CMD"; then
   8914   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   8915 printf "%s\n" "$MAGIC_CMD" >&6; }
   8916 else
   8917   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8918 printf "%s\n" "no" >&6; }
   8919 fi
   8920 
   8921 
   8922   else
   8923     MAGIC_CMD=:
   8924   fi
   8925 fi
   8926 
   8927   fi
   8928   ;;
   8929 esac
   8930 
   8931 # Use C for the default configuration in the libtool script
   8932 
   8933 lt_save_CC=$CC
   8934 ac_ext=c
   8935 ac_cpp='$CPP $CPPFLAGS'
   8936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8939 
   8940 
   8941 # Source file extension for C test sources.
   8942 ac_ext=c
   8943 
   8944 # Object file extension for compiled C test sources.
   8945 objext=o
   8946 objext=$objext
   8947 
   8948 # Code to be used in simple compile tests
   8949 lt_simple_compile_test_code="int some_variable = 0;"
   8950 
   8951 # Code to be used in simple link tests
   8952 lt_simple_link_test_code='int main(){return(0);}'
   8953 
   8954 
   8955 
   8956 
   8957 
   8958 
   8959 
   8960 # If no C compiler was specified, use CC.
   8961 LTCC=${LTCC-"$CC"}
   8962 
   8963 # If no C compiler flags were specified, use CFLAGS.
   8964 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   8965 
   8966 # Allow CC to be a program name with arguments.
   8967 compiler=$CC
   8968 
   8969 # Save the default compiler, since it gets overwritten when the other
   8970 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
   8971 compiler_DEFAULT=$CC
   8972 
   8973 # save warnings/boilerplate of simple test code
   8974 ac_outfile=conftest.$ac_objext
   8975 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
   8976 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   8977 _lt_compiler_boilerplate=`cat conftest.err`
   8978 $RM conftest*
   8979 
   8980 ac_outfile=conftest.$ac_objext
   8981 echo "$lt_simple_link_test_code" >conftest.$ac_ext
   8982 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   8983 _lt_linker_boilerplate=`cat conftest.err`
   8984 $RM -r conftest*
   8985 
   8986 
   8987 if test -n "$compiler"; then
   8988 
   8989 lt_prog_compiler_no_builtin_flag=
   8990 
   8991 if test yes = "$GCC"; then
   8992   case $cc_basename in
   8993   nvcc*)
   8994     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
   8995   *)
   8996     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
   8997   esac
   8998 
   8999   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
   9000 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
   9001 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
   9002 then :
   9003   printf %s "(cached) " >&6
   9004 else $as_nop
   9005   lt_cv_prog_compiler_rtti_exceptions=no
   9006    ac_outfile=conftest.$ac_objext
   9007    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   9008    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
   9009    # Insert the option either (1) after the last *FLAGS variable, or
   9010    # (2) before a word containing "conftest.", or (3) at the end.
   9011    # Note that $ac_compile itself does not contain backslashes and begins
   9012    # with a dollar sign (not a hyphen), so the echo should work correctly.
   9013    # The option is referenced via a variable to avoid confusing sed.
   9014    lt_compile=`echo "$ac_compile" | $SED \
   9015    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   9016    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   9017    -e 's:$: $lt_compiler_flag:'`
   9018    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   9019    (eval "$lt_compile" 2>conftest.err)
   9020    ac_status=$?
   9021    cat conftest.err >&5
   9022    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9023    if (exit $ac_status) && test -s "$ac_outfile"; then
   9024      # The compiler can only warn and ignore the option if not recognized
   9025      # So say no if there are warnings other than the usual output.
   9026      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   9027      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   9028      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   9029        lt_cv_prog_compiler_rtti_exceptions=yes
   9030      fi
   9031    fi
   9032    $RM conftest*
   9033 
   9034 fi
   9035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
   9036 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
   9037 
   9038 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
   9039     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
   9040 else
   9041     :
   9042 fi
   9043 
   9044 fi
   9045 
   9046 
   9047 
   9048 
   9049 
   9050 
   9051   lt_prog_compiler_wl=
   9052 lt_prog_compiler_pic=
   9053 lt_prog_compiler_static=
   9054 
   9055 
   9056   if test yes = "$GCC"; then
   9057     lt_prog_compiler_wl='-Wl,'
   9058     lt_prog_compiler_static='-static'
   9059 
   9060     case $host_os in
   9061       aix*)
   9062       # All AIX code is PIC.
   9063       if test ia64 = "$host_cpu"; then
   9064 	# AIX 5 now supports IA64 processor
   9065 	lt_prog_compiler_static='-Bstatic'
   9066       fi
   9067       lt_prog_compiler_pic='-fPIC'
   9068       ;;
   9069 
   9070     amigaos*)
   9071       case $host_cpu in
   9072       powerpc)
   9073             # see comment about AmigaOS4 .so support
   9074             lt_prog_compiler_pic='-fPIC'
   9075         ;;
   9076       m68k)
   9077             # FIXME: we need at least 68020 code to build shared libraries, but
   9078             # adding the '-m68020' flag to GCC prevents building anything better,
   9079             # like '-m68040'.
   9080             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
   9081         ;;
   9082       esac
   9083       ;;
   9084 
   9085     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
   9086       # PIC is the default for these OSes.
   9087       ;;
   9088 
   9089     mingw* | cygwin* | pw32* | os2* | cegcc*)
   9090       # This hack is so that the source file can tell whether it is being
   9091       # built for inclusion in a dll (and should export symbols for example).
   9092       # Although the cygwin gcc ignores -fPIC, still need this for old-style
   9093       # (--disable-auto-import) libraries
   9094       lt_prog_compiler_pic='-DDLL_EXPORT'
   9095       case $host_os in
   9096       os2*)
   9097 	lt_prog_compiler_static='$wl-static'
   9098 	;;
   9099       esac
   9100       ;;
   9101 
   9102     darwin* | rhapsody*)
   9103       # PIC is the default on this platform
   9104       # Common symbols not allowed in MH_DYLIB files
   9105       lt_prog_compiler_pic='-fno-common'
   9106       ;;
   9107 
   9108     haiku*)
   9109       # PIC is the default for Haiku.
   9110       # The "-static" flag exists, but is broken.
   9111       lt_prog_compiler_static=
   9112       ;;
   9113 
   9114     hpux*)
   9115       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
   9116       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
   9117       # sets the default TLS model and affects inlining.
   9118       case $host_cpu in
   9119       hppa*64*)
   9120 	# +Z the default
   9121 	;;
   9122       *)
   9123 	lt_prog_compiler_pic='-fPIC'
   9124 	;;
   9125       esac
   9126       ;;
   9127 
   9128     interix[3-9]*)
   9129       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
   9130       # Instead, we relocate shared libraries at runtime.
   9131       ;;
   9132 
   9133     msdosdjgpp*)
   9134       # Just because we use GCC doesn't mean we suddenly get shared libraries
   9135       # on systems that don't support them.
   9136       lt_prog_compiler_can_build_shared=no
   9137       enable_shared=no
   9138       ;;
   9139 
   9140     *nto* | *qnx*)
   9141       # QNX uses GNU C++, but need to define -shared option too, otherwise
   9142       # it will coredump.
   9143       lt_prog_compiler_pic='-fPIC -shared'
   9144       ;;
   9145 
   9146     sysv4*MP*)
   9147       if test -d /usr/nec; then
   9148 	lt_prog_compiler_pic=-Kconform_pic
   9149       fi
   9150       ;;
   9151 
   9152     *)
   9153       lt_prog_compiler_pic='-fPIC'
   9154       ;;
   9155     esac
   9156 
   9157     case $cc_basename in
   9158     nvcc*) # Cuda Compiler Driver 2.2
   9159       lt_prog_compiler_wl='-Xlinker '
   9160       if test -n "$lt_prog_compiler_pic"; then
   9161         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
   9162       fi
   9163       ;;
   9164     esac
   9165   else
   9166     # PORTME Check for flag to pass linker flags through the system compiler.
   9167     case $host_os in
   9168     aix*)
   9169       lt_prog_compiler_wl='-Wl,'
   9170       if test ia64 = "$host_cpu"; then
   9171 	# AIX 5 now supports IA64 processor
   9172 	lt_prog_compiler_static='-Bstatic'
   9173       else
   9174 	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
   9175       fi
   9176       ;;
   9177 
   9178     darwin* | rhapsody*)
   9179       # PIC is the default on this platform
   9180       # Common symbols not allowed in MH_DYLIB files
   9181       lt_prog_compiler_pic='-fno-common'
   9182       case $cc_basename in
   9183       nagfor*)
   9184         # NAG Fortran compiler
   9185         lt_prog_compiler_wl='-Wl,-Wl,,'
   9186         lt_prog_compiler_pic='-PIC'
   9187         lt_prog_compiler_static='-Bstatic'
   9188         ;;
   9189       esac
   9190       ;;
   9191 
   9192     mingw* | cygwin* | pw32* | os2* | cegcc*)
   9193       # This hack is so that the source file can tell whether it is being
   9194       # built for inclusion in a dll (and should export symbols for example).
   9195       lt_prog_compiler_pic='-DDLL_EXPORT'
   9196       case $host_os in
   9197       os2*)
   9198 	lt_prog_compiler_static='$wl-static'
   9199 	;;
   9200       esac
   9201       ;;
   9202 
   9203     hpux9* | hpux10* | hpux11*)
   9204       lt_prog_compiler_wl='-Wl,'
   9205       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   9206       # not for PA HP-UX.
   9207       case $host_cpu in
   9208       hppa*64*|ia64*)
   9209 	# +Z the default
   9210 	;;
   9211       *)
   9212 	lt_prog_compiler_pic='+Z'
   9213 	;;
   9214       esac
   9215       # Is there a better lt_prog_compiler_static that works with the bundled CC?
   9216       lt_prog_compiler_static='$wl-a ${wl}archive'
   9217       ;;
   9218 
   9219     irix5* | irix6* | nonstopux*)
   9220       lt_prog_compiler_wl='-Wl,'
   9221       # PIC (with -KPIC) is the default.
   9222       lt_prog_compiler_static='-non_shared'
   9223       ;;
   9224 
   9225     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   9226       case $cc_basename in
   9227       # old Intel for x86_64, which still supported -KPIC.
   9228       ecc*)
   9229 	lt_prog_compiler_wl='-Wl,'
   9230 	lt_prog_compiler_pic='-KPIC'
   9231 	lt_prog_compiler_static='-static'
   9232         ;;
   9233       # icc used to be incompatible with GCC.
   9234       # ICC 10 doesn't accept -KPIC any more.
   9235       icc* | ifort*)
   9236 	lt_prog_compiler_wl='-Wl,'
   9237 	lt_prog_compiler_pic='-fPIC'
   9238 	lt_prog_compiler_static='-static'
   9239         ;;
   9240       # Lahey Fortran 8.1.
   9241       lf95*)
   9242 	lt_prog_compiler_wl='-Wl,'
   9243 	lt_prog_compiler_pic='--shared'
   9244 	lt_prog_compiler_static='--static'
   9245 	;;
   9246       nagfor*)
   9247 	# NAG Fortran compiler
   9248 	lt_prog_compiler_wl='-Wl,-Wl,,'
   9249 	lt_prog_compiler_pic='-PIC'
   9250 	lt_prog_compiler_static='-Bstatic'
   9251 	;;
   9252       tcc*)
   9253 	# Fabrice Bellard et al's Tiny C Compiler
   9254 	lt_prog_compiler_wl='-Wl,'
   9255 	lt_prog_compiler_pic='-fPIC'
   9256 	lt_prog_compiler_static='-static'
   9257 	;;
   9258       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
   9259         # Portland Group compilers (*not* the Pentium gcc compiler,
   9260 	# which looks to be a dead project)
   9261 	lt_prog_compiler_wl='-Wl,'
   9262 	lt_prog_compiler_pic='-fpic'
   9263 	lt_prog_compiler_static='-Bstatic'
   9264         ;;
   9265       ccc*)
   9266         lt_prog_compiler_wl='-Wl,'
   9267         # All Alpha code is PIC.
   9268         lt_prog_compiler_static='-non_shared'
   9269         ;;
   9270       xl* | bgxl* | bgf* | mpixl*)
   9271 	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
   9272 	lt_prog_compiler_wl='-Wl,'
   9273 	lt_prog_compiler_pic='-qpic'
   9274 	lt_prog_compiler_static='-qstaticlink'
   9275 	;;
   9276       *)
   9277 	case `$CC -V 2>&1 | $SED 5q` in
   9278 	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
   9279 	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
   9280 	  lt_prog_compiler_pic='-KPIC'
   9281 	  lt_prog_compiler_static='-Bstatic'
   9282 	  lt_prog_compiler_wl=''
   9283 	  ;;
   9284 	*Sun\ F* | *Sun*Fortran*)
   9285 	  lt_prog_compiler_pic='-KPIC'
   9286 	  lt_prog_compiler_static='-Bstatic'
   9287 	  lt_prog_compiler_wl='-Qoption ld '
   9288 	  ;;
   9289 	*Sun\ C*)
   9290 	  # Sun C 5.9
   9291 	  lt_prog_compiler_pic='-KPIC'
   9292 	  lt_prog_compiler_static='-Bstatic'
   9293 	  lt_prog_compiler_wl='-Wl,'
   9294 	  ;;
   9295         *Intel*\ [CF]*Compiler*)
   9296 	  lt_prog_compiler_wl='-Wl,'
   9297 	  lt_prog_compiler_pic='-fPIC'
   9298 	  lt_prog_compiler_static='-static'
   9299 	  ;;
   9300 	*Portland\ Group*)
   9301 	  lt_prog_compiler_wl='-Wl,'
   9302 	  lt_prog_compiler_pic='-fpic'
   9303 	  lt_prog_compiler_static='-Bstatic'
   9304 	  ;;
   9305 	esac
   9306 	;;
   9307       esac
   9308       ;;
   9309 
   9310     newsos6)
   9311       lt_prog_compiler_pic='-KPIC'
   9312       lt_prog_compiler_static='-Bstatic'
   9313       ;;
   9314 
   9315     *nto* | *qnx*)
   9316       # QNX uses GNU C++, but need to define -shared option too, otherwise
   9317       # it will coredump.
   9318       lt_prog_compiler_pic='-fPIC -shared'
   9319       ;;
   9320 
   9321     osf3* | osf4* | osf5*)
   9322       lt_prog_compiler_wl='-Wl,'
   9323       # All OSF/1 code is PIC.
   9324       lt_prog_compiler_static='-non_shared'
   9325       ;;
   9326 
   9327     rdos*)
   9328       lt_prog_compiler_static='-non_shared'
   9329       ;;
   9330 
   9331     solaris*)
   9332       lt_prog_compiler_pic='-KPIC'
   9333       lt_prog_compiler_static='-Bstatic'
   9334       case $cc_basename in
   9335       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
   9336 	lt_prog_compiler_wl='-Qoption ld ';;
   9337       *)
   9338 	lt_prog_compiler_wl='-Wl,';;
   9339       esac
   9340       ;;
   9341 
   9342     sunos4*)
   9343       lt_prog_compiler_wl='-Qoption ld '
   9344       lt_prog_compiler_pic='-PIC'
   9345       lt_prog_compiler_static='-Bstatic'
   9346       ;;
   9347 
   9348     sysv4 | sysv4.2uw2* | sysv4.3*)
   9349       lt_prog_compiler_wl='-Wl,'
   9350       lt_prog_compiler_pic='-KPIC'
   9351       lt_prog_compiler_static='-Bstatic'
   9352       ;;
   9353 
   9354     sysv4*MP*)
   9355       if test -d /usr/nec; then
   9356 	lt_prog_compiler_pic='-Kconform_pic'
   9357 	lt_prog_compiler_static='-Bstatic'
   9358       fi
   9359       ;;
   9360 
   9361     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
   9362       lt_prog_compiler_wl='-Wl,'
   9363       lt_prog_compiler_pic='-KPIC'
   9364       lt_prog_compiler_static='-Bstatic'
   9365       ;;
   9366 
   9367     unicos*)
   9368       lt_prog_compiler_wl='-Wl,'
   9369       lt_prog_compiler_can_build_shared=no
   9370       ;;
   9371 
   9372     uts4*)
   9373       lt_prog_compiler_pic='-pic'
   9374       lt_prog_compiler_static='-Bstatic'
   9375       ;;
   9376 
   9377     *)
   9378       lt_prog_compiler_can_build_shared=no
   9379       ;;
   9380     esac
   9381   fi
   9382 
   9383 case $host_os in
   9384   # For platforms that do not support PIC, -DPIC is meaningless:
   9385   *djgpp*)
   9386     lt_prog_compiler_pic=
   9387     ;;
   9388   *)
   9389     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
   9390     ;;
   9391 esac
   9392 
   9393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
   9394 printf %s "checking for $compiler option to produce PIC... " >&6; }
   9395 if test ${lt_cv_prog_compiler_pic+y}
   9396 then :
   9397   printf %s "(cached) " >&6
   9398 else $as_nop
   9399   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
   9400 fi
   9401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
   9402 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
   9403 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
   9404 
   9405 #
   9406 # Check to make sure the PIC flag actually works.
   9407 #
   9408 if test -n "$lt_prog_compiler_pic"; then
   9409   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
   9410 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
   9411 if test ${lt_cv_prog_compiler_pic_works+y}
   9412 then :
   9413   printf %s "(cached) " >&6
   9414 else $as_nop
   9415   lt_cv_prog_compiler_pic_works=no
   9416    ac_outfile=conftest.$ac_objext
   9417    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   9418    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
   9419    # Insert the option either (1) after the last *FLAGS variable, or
   9420    # (2) before a word containing "conftest.", or (3) at the end.
   9421    # Note that $ac_compile itself does not contain backslashes and begins
   9422    # with a dollar sign (not a hyphen), so the echo should work correctly.
   9423    # The option is referenced via a variable to avoid confusing sed.
   9424    lt_compile=`echo "$ac_compile" | $SED \
   9425    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   9426    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   9427    -e 's:$: $lt_compiler_flag:'`
   9428    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   9429    (eval "$lt_compile" 2>conftest.err)
   9430    ac_status=$?
   9431    cat conftest.err >&5
   9432    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9433    if (exit $ac_status) && test -s "$ac_outfile"; then
   9434      # The compiler can only warn and ignore the option if not recognized
   9435      # So say no if there are warnings other than the usual output.
   9436      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   9437      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   9438      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   9439        lt_cv_prog_compiler_pic_works=yes
   9440      fi
   9441    fi
   9442    $RM conftest*
   9443 
   9444 fi
   9445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
   9446 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
   9447 
   9448 if test yes = "$lt_cv_prog_compiler_pic_works"; then
   9449     case $lt_prog_compiler_pic in
   9450      "" | " "*) ;;
   9451      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
   9452      esac
   9453 else
   9454     lt_prog_compiler_pic=
   9455      lt_prog_compiler_can_build_shared=no
   9456 fi
   9457 
   9458 fi
   9459 
   9460 
   9461 
   9462 
   9463 
   9464 
   9465 
   9466 
   9467 
   9468 
   9469 
   9470 #
   9471 # Check to make sure the static flag actually works.
   9472 #
   9473 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
   9474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
   9475 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
   9476 if test ${lt_cv_prog_compiler_static_works+y}
   9477 then :
   9478   printf %s "(cached) " >&6
   9479 else $as_nop
   9480   lt_cv_prog_compiler_static_works=no
   9481    save_LDFLAGS=$LDFLAGS
   9482    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   9483    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   9484    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   9485      # The linker can only warn and ignore the option if not recognized
   9486      # So say no if there are warnings
   9487      if test -s conftest.err; then
   9488        # Append any errors to the config.log.
   9489        cat conftest.err 1>&5
   9490        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   9491        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   9492        if diff conftest.exp conftest.er2 >/dev/null; then
   9493          lt_cv_prog_compiler_static_works=yes
   9494        fi
   9495      else
   9496        lt_cv_prog_compiler_static_works=yes
   9497      fi
   9498    fi
   9499    $RM -r conftest*
   9500    LDFLAGS=$save_LDFLAGS
   9501 
   9502 fi
   9503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
   9504 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
   9505 
   9506 if test yes = "$lt_cv_prog_compiler_static_works"; then
   9507     :
   9508 else
   9509     lt_prog_compiler_static=
   9510 fi
   9511 
   9512 
   9513 
   9514 
   9515 
   9516 
   9517 
   9518   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   9519 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   9520 if test ${lt_cv_prog_compiler_c_o+y}
   9521 then :
   9522   printf %s "(cached) " >&6
   9523 else $as_nop
   9524   lt_cv_prog_compiler_c_o=no
   9525    $RM -r conftest 2>/dev/null
   9526    mkdir conftest
   9527    cd conftest
   9528    mkdir out
   9529    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   9530 
   9531    lt_compiler_flag="-o out/conftest2.$ac_objext"
   9532    # Insert the option either (1) after the last *FLAGS variable, or
   9533    # (2) before a word containing "conftest.", or (3) at the end.
   9534    # Note that $ac_compile itself does not contain backslashes and begins
   9535    # with a dollar sign (not a hyphen), so the echo should work correctly.
   9536    lt_compile=`echo "$ac_compile" | $SED \
   9537    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   9538    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   9539    -e 's:$: $lt_compiler_flag:'`
   9540    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   9541    (eval "$lt_compile" 2>out/conftest.err)
   9542    ac_status=$?
   9543    cat out/conftest.err >&5
   9544    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9545    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   9546    then
   9547      # The compiler can only warn and ignore the option if not recognized
   9548      # So say no if there are warnings
   9549      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   9550      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   9551      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   9552        lt_cv_prog_compiler_c_o=yes
   9553      fi
   9554    fi
   9555    chmod u+w . 2>&5
   9556    $RM conftest*
   9557    # SGI C++ compiler will create directory out/ii_files/ for
   9558    # template instantiation
   9559    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   9560    $RM out/* && rmdir out
   9561    cd ..
   9562    $RM -r conftest
   9563    $RM conftest*
   9564 
   9565 fi
   9566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   9567 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
   9568 
   9569 
   9570 
   9571 
   9572 
   9573 
   9574   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   9575 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   9576 if test ${lt_cv_prog_compiler_c_o+y}
   9577 then :
   9578   printf %s "(cached) " >&6
   9579 else $as_nop
   9580   lt_cv_prog_compiler_c_o=no
   9581    $RM -r conftest 2>/dev/null
   9582    mkdir conftest
   9583    cd conftest
   9584    mkdir out
   9585    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   9586 
   9587    lt_compiler_flag="-o out/conftest2.$ac_objext"
   9588    # Insert the option either (1) after the last *FLAGS variable, or
   9589    # (2) before a word containing "conftest.", or (3) at the end.
   9590    # Note that $ac_compile itself does not contain backslashes and begins
   9591    # with a dollar sign (not a hyphen), so the echo should work correctly.
   9592    lt_compile=`echo "$ac_compile" | $SED \
   9593    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   9594    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   9595    -e 's:$: $lt_compiler_flag:'`
   9596    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   9597    (eval "$lt_compile" 2>out/conftest.err)
   9598    ac_status=$?
   9599    cat out/conftest.err >&5
   9600    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9601    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   9602    then
   9603      # The compiler can only warn and ignore the option if not recognized
   9604      # So say no if there are warnings
   9605      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   9606      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   9607      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   9608        lt_cv_prog_compiler_c_o=yes
   9609      fi
   9610    fi
   9611    chmod u+w . 2>&5
   9612    $RM conftest*
   9613    # SGI C++ compiler will create directory out/ii_files/ for
   9614    # template instantiation
   9615    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   9616    $RM out/* && rmdir out
   9617    cd ..
   9618    $RM -r conftest
   9619    $RM conftest*
   9620 
   9621 fi
   9622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   9623 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
   9624 
   9625 
   9626 
   9627 
   9628 hard_links=nottested
   9629 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
   9630   # do not overwrite the value of need_locks provided by the user
   9631   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
   9632 printf %s "checking if we can lock with hard links... " >&6; }
   9633   hard_links=yes
   9634   $RM conftest*
   9635   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   9636   touch conftest.a
   9637   ln conftest.a conftest.b 2>&5 || hard_links=no
   9638   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   9639   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
   9640 printf "%s\n" "$hard_links" >&6; }
   9641   if test no = "$hard_links"; then
   9642     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
   9643 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
   9644     need_locks=warn
   9645   fi
   9646 else
   9647   need_locks=no
   9648 fi
   9649 
   9650 
   9651 
   9652 
   9653 
   9654 
   9655   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   9656 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
   9657 
   9658   runpath_var=
   9659   allow_undefined_flag=
   9660   always_export_symbols=no
   9661   archive_cmds=
   9662   archive_expsym_cmds=
   9663   compiler_needs_object=no
   9664   enable_shared_with_static_runtimes=no
   9665   export_dynamic_flag_spec=
   9666   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   9667   hardcode_automatic=no
   9668   hardcode_direct=no
   9669   hardcode_direct_absolute=no
   9670   hardcode_libdir_flag_spec=
   9671   hardcode_libdir_separator=
   9672   hardcode_minus_L=no
   9673   hardcode_shlibpath_var=unsupported
   9674   inherit_rpath=no
   9675   link_all_deplibs=unknown
   9676   module_cmds=
   9677   module_expsym_cmds=
   9678   old_archive_from_new_cmds=
   9679   old_archive_from_expsyms_cmds=
   9680   thread_safe_flag_spec=
   9681   whole_archive_flag_spec=
   9682   # include_expsyms should be a list of space-separated symbols to be *always*
   9683   # included in the symbol list
   9684   include_expsyms=
   9685   # exclude_expsyms can be an extended regexp of symbols to exclude
   9686   # it will be wrapped by ' (' and ')$', so one must not match beginning or
   9687   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
   9688   # as well as any symbol that contains 'd'.
   9689   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
   9690   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
   9691   # platforms (ab)use it in PIC code, but their linkers get confused if
   9692   # the symbol is explicitly referenced.  Since portable code cannot
   9693   # rely on this symbol name, it's probably fine to never include it in
   9694   # preloaded symbol tables.
   9695   # Exclude shared library initialization/finalization symbols.
   9696   extract_expsyms_cmds=
   9697 
   9698   case $host_os in
   9699   cygwin* | mingw* | pw32* | cegcc*)
   9700     # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
   9701     # When not using gcc, we currently assume that we are using
   9702     # Microsoft Visual C++ or Intel C++ Compiler.
   9703     if test yes != "$GCC"; then
   9704       with_gnu_ld=no
   9705     fi
   9706     ;;
   9707   interix*)
   9708     # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
   9709     with_gnu_ld=yes
   9710     ;;
   9711   openbsd* | bitrig*)
   9712     with_gnu_ld=no
   9713     ;;
   9714   esac
   9715 
   9716   ld_shlibs=yes
   9717 
   9718   # On some targets, GNU ld is compatible enough with the native linker
   9719   # that we're better off using the native interface for both.
   9720   lt_use_gnu_ld_interface=no
   9721   if test yes = "$with_gnu_ld"; then
   9722     case $host_os in
   9723       aix*)
   9724 	# The AIX port of GNU ld has always aspired to compatibility
   9725 	# with the native linker.  However, as the warning in the GNU ld
   9726 	# block says, versions before 2.19.5* couldn't really create working
   9727 	# shared libraries, regardless of the interface used.
   9728 	case `$LD -v 2>&1` in
   9729 	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
   9730 	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
   9731 	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
   9732 	  *)
   9733 	    lt_use_gnu_ld_interface=yes
   9734 	    ;;
   9735 	esac
   9736 	;;
   9737       *)
   9738 	lt_use_gnu_ld_interface=yes
   9739 	;;
   9740     esac
   9741   fi
   9742 
   9743   if test yes = "$lt_use_gnu_ld_interface"; then
   9744     # If archive_cmds runs LD, not CC, wlarc should be empty
   9745     wlarc='$wl'
   9746 
   9747     # Set some defaults for GNU ld with shared library support. These
   9748     # are reset later if shared libraries are not supported. Putting them
   9749     # here allows them to be overridden if necessary.
   9750     runpath_var=LD_RUN_PATH
   9751     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9752     export_dynamic_flag_spec='$wl--export-dynamic'
   9753     # ancient GNU ld didn't support --whole-archive et. al.
   9754     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
   9755       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
   9756     else
   9757       whole_archive_flag_spec=
   9758     fi
   9759     supports_anon_versioning=no
   9760     case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
   9761       *GNU\ gold*) supports_anon_versioning=yes ;;
   9762       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
   9763       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
   9764       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
   9765       *\ 2.11.*) ;; # other 2.11 versions
   9766       *) supports_anon_versioning=yes ;;
   9767     esac
   9768 
   9769     # See if GNU ld supports shared libraries.
   9770     case $host_os in
   9771     aix[3-9]*)
   9772       # On AIX/PPC, the GNU linker is very broken
   9773       if test ia64 != "$host_cpu"; then
   9774 	ld_shlibs=no
   9775 	cat <<_LT_EOF 1>&2
   9776 
   9777 *** Warning: the GNU linker, at least up to release 2.19, is reported
   9778 *** to be unable to reliably create shared libraries on AIX.
   9779 *** Therefore, libtool is disabling shared libraries support.  If you
   9780 *** really care for shared libraries, you may want to install binutils
   9781 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
   9782 *** You will then need to restart the configuration process.
   9783 
   9784 _LT_EOF
   9785       fi
   9786       ;;
   9787 
   9788     amigaos*)
   9789       case $host_cpu in
   9790       powerpc)
   9791             # see comment about AmigaOS4 .so support
   9792             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9793             archive_expsym_cmds=''
   9794         ;;
   9795       m68k)
   9796             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
   9797             hardcode_libdir_flag_spec='-L$libdir'
   9798             hardcode_minus_L=yes
   9799         ;;
   9800       esac
   9801       ;;
   9802 
   9803     beos*)
   9804       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   9805 	allow_undefined_flag=unsupported
   9806 	# Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
   9807 	# support --undefined.  This deserves some investigation.  FIXME
   9808 	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9809       else
   9810 	ld_shlibs=no
   9811       fi
   9812       ;;
   9813 
   9814     cygwin* | mingw* | pw32* | cegcc*)
   9815       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
   9816       # as there is no search path for DLLs.
   9817       hardcode_libdir_flag_spec='-L$libdir'
   9818       export_dynamic_flag_spec='$wl--export-all-symbols'
   9819       allow_undefined_flag=unsupported
   9820       always_export_symbols=no
   9821       enable_shared_with_static_runtimes=yes
   9822       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
   9823       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
   9824 
   9825       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
   9826         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   9827 	# If the export-symbols file already is a .def file, use it as
   9828 	# is; otherwise, prepend EXPORTS...
   9829 	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
   9830           cp $export_symbols $output_objdir/$soname.def;
   9831         else
   9832           echo EXPORTS > $output_objdir/$soname.def;
   9833           cat $export_symbols >> $output_objdir/$soname.def;
   9834         fi~
   9835         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   9836       else
   9837 	ld_shlibs=no
   9838       fi
   9839       ;;
   9840 
   9841     haiku*)
   9842       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9843       link_all_deplibs=yes
   9844       ;;
   9845 
   9846     os2*)
   9847       hardcode_libdir_flag_spec='-L$libdir'
   9848       hardcode_minus_L=yes
   9849       allow_undefined_flag=unsupported
   9850       shrext_cmds=.dll
   9851       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   9852 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   9853 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   9854 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   9855 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
   9856 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   9857 	emximp -o $lib $output_objdir/$libname.def'
   9858       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   9859 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   9860 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   9861 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   9862 	prefix_cmds="$SED"~
   9863 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
   9864 	  prefix_cmds="$prefix_cmds -e 1d";
   9865 	fi~
   9866 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
   9867 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
   9868 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   9869 	emximp -o $lib $output_objdir/$libname.def'
   9870       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
   9871       enable_shared_with_static_runtimes=yes
   9872       file_list_spec='@'
   9873       ;;
   9874 
   9875     interix[3-9]*)
   9876       hardcode_direct=no
   9877       hardcode_shlibpath_var=no
   9878       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   9879       export_dynamic_flag_spec='$wl-E'
   9880       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
   9881       # Instead, shared libraries are loaded at an image base (0x10000000 by
   9882       # default) and relocated if they conflict, which is a slow very memory
   9883       # consuming and fragmenting process.  To avoid this, we pick a random,
   9884       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
   9885       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
   9886       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
   9887       archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
   9888       ;;
   9889 
   9890     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
   9891       tmp_diet=no
   9892       if test linux-dietlibc = "$host_os"; then
   9893 	case $cc_basename in
   9894 	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
   9895 	esac
   9896       fi
   9897       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
   9898 	 && test no = "$tmp_diet"
   9899       then
   9900 	tmp_addflag=' $pic_flag'
   9901 	tmp_sharedflag='-shared'
   9902 	case $cc_basename,$host_cpu in
   9903         pgcc*)				# Portland Group C compiler
   9904 	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
   9905 	  tmp_addflag=' $pic_flag'
   9906 	  ;;
   9907 	pgf77* | pgf90* | pgf95* | pgfortran*)
   9908 					# Portland Group f77 and f90 compilers
   9909 	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
   9910 	  tmp_addflag=' $pic_flag -Mnomain' ;;
   9911 	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
   9912 	  tmp_addflag=' -i_dynamic' ;;
   9913 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
   9914 	  tmp_addflag=' -i_dynamic -nofor_main' ;;
   9915 	ifc* | ifort*)			# Intel Fortran compiler
   9916 	  tmp_addflag=' -nofor_main' ;;
   9917 	lf95*)				# Lahey Fortran 8.1
   9918 	  whole_archive_flag_spec=
   9919 	  tmp_sharedflag='--shared' ;;
   9920         nagfor*)                        # NAGFOR 5.3
   9921           tmp_sharedflag='-Wl,-shared' ;;
   9922 	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
   9923 	  tmp_sharedflag='-qmkshrobj'
   9924 	  tmp_addflag= ;;
   9925 	nvcc*)	# Cuda Compiler Driver 2.2
   9926 	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
   9927 	  compiler_needs_object=yes
   9928 	  ;;
   9929 	esac
   9930 	case `$CC -V 2>&1 | $SED 5q` in
   9931 	*Sun\ C*)			# Sun C 5.9
   9932 	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
   9933 	  compiler_needs_object=yes
   9934 	  tmp_sharedflag='-G' ;;
   9935 	*Sun\ F*)			# Sun Fortran 8.3
   9936 	  tmp_sharedflag='-G' ;;
   9937 	esac
   9938 	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9939 
   9940         if test yes = "$supports_anon_versioning"; then
   9941           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   9942             cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   9943             echo "local: *; };" >> $output_objdir/$libname.ver~
   9944             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
   9945         fi
   9946 
   9947 	case $cc_basename in
   9948 	tcc*)
   9949 	  export_dynamic_flag_spec='-rdynamic'
   9950 	  ;;
   9951 	xlf* | bgf* | bgxlf* | mpixlf*)
   9952 	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
   9953 	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
   9954 	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9955 	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
   9956 	  if test yes = "$supports_anon_versioning"; then
   9957 	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   9958               cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   9959               echo "local: *; };" >> $output_objdir/$libname.ver~
   9960               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
   9961 	  fi
   9962 	  ;;
   9963 	esac
   9964       else
   9965         ld_shlibs=no
   9966       fi
   9967       ;;
   9968 
   9969     netbsd*)
   9970       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   9971 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
   9972 	wlarc=
   9973       else
   9974 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9975 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   9976       fi
   9977       ;;
   9978 
   9979     solaris*)
   9980       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
   9981 	ld_shlibs=no
   9982 	cat <<_LT_EOF 1>&2
   9983 
   9984 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
   9985 *** create shared libraries on Solaris systems.  Therefore, libtool
   9986 *** is disabling shared libraries support.  We urge you to upgrade GNU
   9987 *** binutils to release 2.9.1 or newer.  Another option is to modify
   9988 *** your PATH or compiler configuration so that the native linker is
   9989 *** used, and then restart.
   9990 
   9991 _LT_EOF
   9992       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   9993 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9994 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   9995       else
   9996 	ld_shlibs=no
   9997       fi
   9998       ;;
   9999 
   10000     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
   10001       case `$LD -v 2>&1` in
   10002         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
   10003 	ld_shlibs=no
   10004 	cat <<_LT_EOF 1>&2
   10005 
   10006 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
   10007 *** reliably create shared libraries on SCO systems.  Therefore, libtool
   10008 *** is disabling shared libraries support.  We urge you to upgrade GNU
   10009 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
   10010 *** your PATH or compiler configuration so that the native linker is
   10011 *** used, and then restart.
   10012 
   10013 _LT_EOF
   10014 	;;
   10015 	*)
   10016 	  # For security reasons, it is highly recommended that you always
   10017 	  # use absolute paths for naming shared libraries, and exclude the
   10018 	  # DT_RUNPATH tag from executables and libraries.  But doing so
   10019 	  # requires that you compile everything twice, which is a pain.
   10020 	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   10021 	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   10022 	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   10023 	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   10024 	  else
   10025 	    ld_shlibs=no
   10026 	  fi
   10027 	;;
   10028       esac
   10029       ;;
   10030 
   10031     sunos4*)
   10032       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   10033       wlarc=
   10034       hardcode_direct=yes
   10035       hardcode_shlibpath_var=no
   10036       ;;
   10037 
   10038     *)
   10039       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   10040 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   10041 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   10042       else
   10043 	ld_shlibs=no
   10044       fi
   10045       ;;
   10046     esac
   10047 
   10048     if test no = "$ld_shlibs"; then
   10049       runpath_var=
   10050       hardcode_libdir_flag_spec=
   10051       export_dynamic_flag_spec=
   10052       whole_archive_flag_spec=
   10053     fi
   10054   else
   10055     # PORTME fill in a description of your system's linker (not GNU ld)
   10056     case $host_os in
   10057     aix3*)
   10058       allow_undefined_flag=unsupported
   10059       always_export_symbols=yes
   10060       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
   10061       # Note: this linker hardcodes the directories in LIBPATH if there
   10062       # are no directories specified by -L.
   10063       hardcode_minus_L=yes
   10064       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
   10065 	# Neither direct hardcoding nor static linking is supported with a
   10066 	# broken collect2.
   10067 	hardcode_direct=unsupported
   10068       fi
   10069       ;;
   10070 
   10071     aix[4-9]*)
   10072       if test ia64 = "$host_cpu"; then
   10073 	# On IA64, the linker does run time linking by default, so we don't
   10074 	# have to do anything special.
   10075 	aix_use_runtimelinking=no
   10076 	exp_sym_flag='-Bexport'
   10077 	no_entry_flag=
   10078       else
   10079 	# If we're using GNU nm, then we don't want the "-C" option.
   10080 	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
   10081 	# Without the "-l" option, or with the "-B" option, AIX nm treats
   10082 	# weak defined symbols like other global defined symbols, whereas
   10083 	# GNU nm marks them as "W".
   10084 	# While the 'weak' keyword is ignored in the Export File, we need
   10085 	# it in the Import File for the 'aix-soname' feature, so we have
   10086 	# to replace the "-B" option with "-P" for AIX nm.
   10087 	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
   10088 	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
   10089 	else
   10090 	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
   10091 	fi
   10092 	aix_use_runtimelinking=no
   10093 
   10094 	# Test if we are trying to use run time linking or normal
   10095 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
   10096 	# have runtime linking enabled, and use it for executables.
   10097 	# For shared libraries, we enable/disable runtime linking
   10098 	# depending on the kind of the shared library created -
   10099 	# when "with_aix_soname,aix_use_runtimelinking" is:
   10100 	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
   10101 	# "aix,yes"  lib.so          shared, rtl:yes, for executables
   10102 	#            lib.a           static archive
   10103 	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
   10104 	#            lib.a(lib.so.V) shared, rtl:no,  for executables
   10105 	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
   10106 	#            lib.a(lib.so.V) shared, rtl:no
   10107 	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
   10108 	#            lib.a           static archive
   10109 	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
   10110 	  for ld_flag in $LDFLAGS; do
   10111 	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
   10112 	    aix_use_runtimelinking=yes
   10113 	    break
   10114 	  fi
   10115 	  done
   10116 	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
   10117 	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
   10118 	    # so we don't have lib.a shared libs to link our executables.
   10119 	    # We have to force runtime linking in this case.
   10120 	    aix_use_runtimelinking=yes
   10121 	    LDFLAGS="$LDFLAGS -Wl,-brtl"
   10122 	  fi
   10123 	  ;;
   10124 	esac
   10125 
   10126 	exp_sym_flag='-bexport'
   10127 	no_entry_flag='-bnoentry'
   10128       fi
   10129 
   10130       # When large executables or shared objects are built, AIX ld can
   10131       # have problems creating the table of contents.  If linking a library
   10132       # or program results in "error TOC overflow" add -mminimal-toc to
   10133       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
   10134       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
   10135 
   10136       archive_cmds=''
   10137       hardcode_direct=yes
   10138       hardcode_direct_absolute=yes
   10139       hardcode_libdir_separator=':'
   10140       link_all_deplibs=yes
   10141       file_list_spec='$wl-f,'
   10142       case $with_aix_soname,$aix_use_runtimelinking in
   10143       aix,*) ;; # traditional, no import file
   10144       svr4,* | *,yes) # use import file
   10145 	# The Import File defines what to hardcode.
   10146 	hardcode_direct=no
   10147 	hardcode_direct_absolute=no
   10148 	;;
   10149       esac
   10150 
   10151       if test yes = "$GCC"; then
   10152 	case $host_os in aix4.[012]|aix4.[012].*)
   10153 	# We only want to do this on AIX 4.2 and lower, the check
   10154 	# below for broken collect2 doesn't work under 4.3+
   10155 	  collect2name=`$CC -print-prog-name=collect2`
   10156 	  if test -f "$collect2name" &&
   10157 	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
   10158 	  then
   10159 	  # We have reworked collect2
   10160 	  :
   10161 	  else
   10162 	  # We have old collect2
   10163 	  hardcode_direct=unsupported
   10164 	  # It fails to find uninstalled libraries when the uninstalled
   10165 	  # path is not listed in the libpath.  Setting hardcode_minus_L
   10166 	  # to unsupported forces relinking
   10167 	  hardcode_minus_L=yes
   10168 	  hardcode_libdir_flag_spec='-L$libdir'
   10169 	  hardcode_libdir_separator=
   10170 	  fi
   10171 	  ;;
   10172 	esac
   10173 	shared_flag='-shared'
   10174 	if test yes = "$aix_use_runtimelinking"; then
   10175 	  shared_flag="$shared_flag "'$wl-G'
   10176 	fi
   10177 	# Need to ensure runtime linking is disabled for the traditional
   10178 	# shared library, or the linker may eventually find shared libraries
   10179 	# /with/ Import File - we do not want to mix them.
   10180 	shared_flag_aix='-shared'
   10181 	shared_flag_svr4='-shared $wl-G'
   10182       else
   10183 	# not using gcc
   10184 	if test ia64 = "$host_cpu"; then
   10185 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
   10186 	# chokes on -Wl,-G. The following line is correct:
   10187 	  shared_flag='-G'
   10188 	else
   10189 	  if test yes = "$aix_use_runtimelinking"; then
   10190 	    shared_flag='$wl-G'
   10191 	  else
   10192 	    shared_flag='$wl-bM:SRE'
   10193 	  fi
   10194 	  shared_flag_aix='$wl-bM:SRE'
   10195 	  shared_flag_svr4='$wl-G'
   10196 	fi
   10197       fi
   10198 
   10199       export_dynamic_flag_spec='$wl-bexpall'
   10200       # It seems that -bexpall does not export symbols beginning with
   10201       # underscore (_), so it is better to generate a list of symbols to export.
   10202       always_export_symbols=yes
   10203       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
   10204 	# Warning - without using the other runtime loading flags (-brtl),
   10205 	# -berok will link without error, but may produce a broken library.
   10206 	allow_undefined_flag='-berok'
   10207         # Determine the default libpath from the value encoded in an
   10208         # empty executable.
   10209         if test set = "${lt_cv_aix_libpath+set}"; then
   10210   aix_libpath=$lt_cv_aix_libpath
   10211 else
   10212   if test ${lt_cv_aix_libpath_+y}
   10213 then :
   10214   printf %s "(cached) " >&6
   10215 else $as_nop
   10216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10217 /* end confdefs.h.  */
   10218 
   10219 int
   10220 main (void)
   10221 {
   10222 
   10223   ;
   10224   return 0;
   10225 }
   10226 _ACEOF
   10227 if ac_fn_c_try_link "$LINENO"
   10228 then :
   10229 
   10230   lt_aix_libpath_sed='
   10231       /Import File Strings/,/^$/ {
   10232 	  /^0/ {
   10233 	      s/^0  *\([^ ]*\) *$/\1/
   10234 	      p
   10235 	  }
   10236       }'
   10237   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   10238   # Check for a 64-bit object if we didn't find anything.
   10239   if test -z "$lt_cv_aix_libpath_"; then
   10240     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   10241   fi
   10242 fi
   10243 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   10244     conftest$ac_exeext conftest.$ac_ext
   10245   if test -z "$lt_cv_aix_libpath_"; then
   10246     lt_cv_aix_libpath_=/usr/lib:/lib
   10247   fi
   10248 
   10249 fi
   10250 
   10251   aix_libpath=$lt_cv_aix_libpath_
   10252 fi
   10253 
   10254         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
   10255         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
   10256       else
   10257 	if test ia64 = "$host_cpu"; then
   10258 	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
   10259 	  allow_undefined_flag="-z nodefs"
   10260 	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
   10261 	else
   10262 	 # Determine the default libpath from the value encoded in an
   10263 	 # empty executable.
   10264 	 if test set = "${lt_cv_aix_libpath+set}"; then
   10265   aix_libpath=$lt_cv_aix_libpath
   10266 else
   10267   if test ${lt_cv_aix_libpath_+y}
   10268 then :
   10269   printf %s "(cached) " >&6
   10270 else $as_nop
   10271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10272 /* end confdefs.h.  */
   10273 
   10274 int
   10275 main (void)
   10276 {
   10277 
   10278   ;
   10279   return 0;
   10280 }
   10281 _ACEOF
   10282 if ac_fn_c_try_link "$LINENO"
   10283 then :
   10284 
   10285   lt_aix_libpath_sed='
   10286       /Import File Strings/,/^$/ {
   10287 	  /^0/ {
   10288 	      s/^0  *\([^ ]*\) *$/\1/
   10289 	      p
   10290 	  }
   10291       }'
   10292   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   10293   # Check for a 64-bit object if we didn't find anything.
   10294   if test -z "$lt_cv_aix_libpath_"; then
   10295     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   10296   fi
   10297 fi
   10298 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   10299     conftest$ac_exeext conftest.$ac_ext
   10300   if test -z "$lt_cv_aix_libpath_"; then
   10301     lt_cv_aix_libpath_=/usr/lib:/lib
   10302   fi
   10303 
   10304 fi
   10305 
   10306   aix_libpath=$lt_cv_aix_libpath_
   10307 fi
   10308 
   10309 	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
   10310 	  # Warning - without using the other run time loading flags,
   10311 	  # -berok will link without error, but may produce a broken library.
   10312 	  no_undefined_flag=' $wl-bernotok'
   10313 	  allow_undefined_flag=' $wl-berok'
   10314 	  if test yes = "$with_gnu_ld"; then
   10315 	    # We only use this code for GNU lds that support --whole-archive.
   10316 	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
   10317 	  else
   10318 	    # Exported symbols can be pulled into shared objects from archives
   10319 	    whole_archive_flag_spec='$convenience'
   10320 	  fi
   10321 	  archive_cmds_need_lc=yes
   10322 	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
   10323 	  # -brtl affects multiple linker settings, -berok does not and is overridden later
   10324 	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
   10325 	  if test svr4 != "$with_aix_soname"; then
   10326 	    # This is similar to how AIX traditionally builds its shared libraries.
   10327 	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
   10328 	  fi
   10329 	  if test aix != "$with_aix_soname"; then
   10330 	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
   10331 	  else
   10332 	    # used by -dlpreopen to get the symbols
   10333 	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
   10334 	  fi
   10335 	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
   10336 	fi
   10337       fi
   10338       ;;
   10339 
   10340     amigaos*)
   10341       case $host_cpu in
   10342       powerpc)
   10343             # see comment about AmigaOS4 .so support
   10344             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   10345             archive_expsym_cmds=''
   10346         ;;
   10347       m68k)
   10348             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
   10349             hardcode_libdir_flag_spec='-L$libdir'
   10350             hardcode_minus_L=yes
   10351         ;;
   10352       esac
   10353       ;;
   10354 
   10355     bsdi[45]*)
   10356       export_dynamic_flag_spec=-rdynamic
   10357       ;;
   10358 
   10359     cygwin* | mingw* | pw32* | cegcc*)
   10360       # When not using gcc, we currently assume that we are using
   10361       # Microsoft Visual C++ or Intel C++ Compiler.
   10362       # hardcode_libdir_flag_spec is actually meaningless, as there is
   10363       # no search path for DLLs.
   10364       case $cc_basename in
   10365       cl* | icl*)
   10366 	# Native MSVC or ICC
   10367 	hardcode_libdir_flag_spec=' '
   10368 	allow_undefined_flag=unsupported
   10369 	always_export_symbols=yes
   10370 	file_list_spec='@'
   10371 	# Tell ltmain to make .lib files, not .a files.
   10372 	libext=lib
   10373 	# Tell ltmain to make .dll files, not .so files.
   10374 	shrext_cmds=.dll
   10375 	# FIXME: Setting linknames here is a bad hack.
   10376 	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
   10377 	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
   10378             cp "$export_symbols" "$output_objdir/$soname.def";
   10379             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
   10380           else
   10381             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
   10382           fi~
   10383           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
   10384           linknames='
   10385 	# The linker will not automatically build a static lib if we build a DLL.
   10386 	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
   10387 	enable_shared_with_static_runtimes=yes
   10388 	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
   10389 	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
   10390 	# Don't use ranlib
   10391 	old_postinstall_cmds='chmod 644 $oldlib'
   10392 	postlink_cmds='lt_outputfile="@OUTPUT@"~
   10393           lt_tool_outputfile="@TOOL_OUTPUT@"~
   10394           case $lt_outputfile in
   10395             *.exe|*.EXE) ;;
   10396             *)
   10397               lt_outputfile=$lt_outputfile.exe
   10398               lt_tool_outputfile=$lt_tool_outputfile.exe
   10399               ;;
   10400           esac~
   10401           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
   10402             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
   10403             $RM "$lt_outputfile.manifest";
   10404           fi'
   10405 	;;
   10406       *)
   10407 	# Assume MSVC and ICC wrapper
   10408 	hardcode_libdir_flag_spec=' '
   10409 	allow_undefined_flag=unsupported
   10410 	# Tell ltmain to make .lib files, not .a files.
   10411 	libext=lib
   10412 	# Tell ltmain to make .dll files, not .so files.
   10413 	shrext_cmds=.dll
   10414 	# FIXME: Setting linknames here is a bad hack.
   10415 	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
   10416 	# The linker will automatically build a .lib file if we build a DLL.
   10417 	old_archive_from_new_cmds='true'
   10418 	# FIXME: Should let the user specify the lib program.
   10419 	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
   10420 	enable_shared_with_static_runtimes=yes
   10421 	;;
   10422       esac
   10423       ;;
   10424 
   10425     darwin* | rhapsody*)
   10426 
   10427 
   10428   archive_cmds_need_lc=no
   10429   hardcode_direct=no
   10430   hardcode_automatic=yes
   10431   hardcode_shlibpath_var=unsupported
   10432   if test yes = "$lt_cv_ld_force_load"; then
   10433     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
   10434 
   10435   else
   10436     whole_archive_flag_spec=''
   10437   fi
   10438   link_all_deplibs=yes
   10439   allow_undefined_flag=$_lt_dar_allow_undefined
   10440   case $cc_basename in
   10441      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
   10442      *) _lt_dar_can_shared=$GCC ;;
   10443   esac
   10444   if test yes = "$_lt_dar_can_shared"; then
   10445     output_verbose_link_cmd=func_echo_all
   10446     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
   10447     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
   10448     archive_expsym_cmds="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
   10449     module_expsym_cmds="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
   10450 
   10451   else
   10452   ld_shlibs=no
   10453   fi
   10454 
   10455       ;;
   10456 
   10457     dgux*)
   10458       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10459       hardcode_libdir_flag_spec='-L$libdir'
   10460       hardcode_shlibpath_var=no
   10461       ;;
   10462 
   10463     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
   10464     # support.  Future versions do this automatically, but an explicit c++rt0.o
   10465     # does not break anything, and helps significantly (at the cost of a little
   10466     # extra space).
   10467     freebsd2.2*)
   10468       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
   10469       hardcode_libdir_flag_spec='-R$libdir'
   10470       hardcode_direct=yes
   10471       hardcode_shlibpath_var=no
   10472       ;;
   10473 
   10474     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
   10475     freebsd2.*)
   10476       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   10477       hardcode_direct=yes
   10478       hardcode_minus_L=yes
   10479       hardcode_shlibpath_var=no
   10480       ;;
   10481 
   10482     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
   10483     freebsd* | dragonfly* | midnightbsd*)
   10484       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   10485       hardcode_libdir_flag_spec='-R$libdir'
   10486       hardcode_direct=yes
   10487       hardcode_shlibpath_var=no
   10488       ;;
   10489 
   10490     hpux9*)
   10491       if test yes = "$GCC"; then
   10492 	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
   10493       else
   10494 	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
   10495       fi
   10496       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   10497       hardcode_libdir_separator=:
   10498       hardcode_direct=yes
   10499 
   10500       # hardcode_minus_L: Not really in the search PATH,
   10501       # but as the default location of the library.
   10502       hardcode_minus_L=yes
   10503       export_dynamic_flag_spec='$wl-E'
   10504       ;;
   10505 
   10506     hpux10*)
   10507       if test yes,no = "$GCC,$with_gnu_ld"; then
   10508 	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   10509       else
   10510 	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   10511       fi
   10512       if test no = "$with_gnu_ld"; then
   10513 	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   10514 	hardcode_libdir_separator=:
   10515 	hardcode_direct=yes
   10516 	hardcode_direct_absolute=yes
   10517 	export_dynamic_flag_spec='$wl-E'
   10518 	# hardcode_minus_L: Not really in the search PATH,
   10519 	# but as the default location of the library.
   10520 	hardcode_minus_L=yes
   10521       fi
   10522       ;;
   10523 
   10524     hpux11*)
   10525       if test yes,no = "$GCC,$with_gnu_ld"; then
   10526 	case $host_cpu in
   10527 	hppa*64*)
   10528 	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   10529 	  ;;
   10530 	ia64*)
   10531 	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   10532 	  ;;
   10533 	*)
   10534 	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   10535 	  ;;
   10536 	esac
   10537       else
   10538 	case $host_cpu in
   10539 	hppa*64*)
   10540 	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   10541 	  ;;
   10542 	ia64*)
   10543 	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   10544 	  ;;
   10545 	*)
   10546 
   10547 	  # Older versions of the 11.00 compiler do not understand -b yet
   10548 	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
   10549 	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
   10550 printf %s "checking if $CC understands -b... " >&6; }
   10551 if test ${lt_cv_prog_compiler__b+y}
   10552 then :
   10553   printf %s "(cached) " >&6
   10554 else $as_nop
   10555   lt_cv_prog_compiler__b=no
   10556    save_LDFLAGS=$LDFLAGS
   10557    LDFLAGS="$LDFLAGS -b"
   10558    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   10559    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   10560      # The linker can only warn and ignore the option if not recognized
   10561      # So say no if there are warnings
   10562      if test -s conftest.err; then
   10563        # Append any errors to the config.log.
   10564        cat conftest.err 1>&5
   10565        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   10566        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   10567        if diff conftest.exp conftest.er2 >/dev/null; then
   10568          lt_cv_prog_compiler__b=yes
   10569        fi
   10570      else
   10571        lt_cv_prog_compiler__b=yes
   10572      fi
   10573    fi
   10574    $RM -r conftest*
   10575    LDFLAGS=$save_LDFLAGS
   10576 
   10577 fi
   10578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
   10579 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
   10580 
   10581 if test yes = "$lt_cv_prog_compiler__b"; then
   10582     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   10583 else
   10584     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   10585 fi
   10586 
   10587 	  ;;
   10588 	esac
   10589       fi
   10590       if test no = "$with_gnu_ld"; then
   10591 	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   10592 	hardcode_libdir_separator=:
   10593 
   10594 	case $host_cpu in
   10595 	hppa*64*|ia64*)
   10596 	  hardcode_direct=no
   10597 	  hardcode_shlibpath_var=no
   10598 	  ;;
   10599 	*)
   10600 	  hardcode_direct=yes
   10601 	  hardcode_direct_absolute=yes
   10602 	  export_dynamic_flag_spec='$wl-E'
   10603 
   10604 	  # hardcode_minus_L: Not really in the search PATH,
   10605 	  # but as the default location of the library.
   10606 	  hardcode_minus_L=yes
   10607 	  ;;
   10608 	esac
   10609       fi
   10610       ;;
   10611 
   10612     irix5* | irix6* | nonstopux*)
   10613       if test yes = "$GCC"; then
   10614 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
   10615 	# Try to use the -exported_symbol ld option, if it does not
   10616 	# work, assume that -exports_file does not work either and
   10617 	# implicitly export all symbols.
   10618 	# This should be the same for all languages, so no per-tag cache variable.
   10619 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
   10620 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
   10621 if test ${lt_cv_irix_exported_symbol+y}
   10622 then :
   10623   printf %s "(cached) " >&6
   10624 else $as_nop
   10625   save_LDFLAGS=$LDFLAGS
   10626 	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
   10627 	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10628 /* end confdefs.h.  */
   10629 int foo (void) { return 0; }
   10630 _ACEOF
   10631 if ac_fn_c_try_link "$LINENO"
   10632 then :
   10633   lt_cv_irix_exported_symbol=yes
   10634 else $as_nop
   10635   lt_cv_irix_exported_symbol=no
   10636 fi
   10637 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   10638     conftest$ac_exeext conftest.$ac_ext
   10639            LDFLAGS=$save_LDFLAGS
   10640 fi
   10641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
   10642 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
   10643 	if test yes = "$lt_cv_irix_exported_symbol"; then
   10644           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
   10645 	fi
   10646       else
   10647 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
   10648 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
   10649       fi
   10650       archive_cmds_need_lc='no'
   10651       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   10652       hardcode_libdir_separator=:
   10653       inherit_rpath=yes
   10654       link_all_deplibs=yes
   10655       ;;
   10656 
   10657     linux*)
   10658       case $cc_basename in
   10659       tcc*)
   10660 	# Fabrice Bellard et al's Tiny C Compiler
   10661 	ld_shlibs=yes
   10662 	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   10663 	;;
   10664       esac
   10665       ;;
   10666 
   10667     netbsd*)
   10668       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   10669 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
   10670       else
   10671 	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
   10672       fi
   10673       hardcode_libdir_flag_spec='-R$libdir'
   10674       hardcode_direct=yes
   10675       hardcode_shlibpath_var=no
   10676       ;;
   10677 
   10678     newsos6)
   10679       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10680       hardcode_direct=yes
   10681       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   10682       hardcode_libdir_separator=:
   10683       hardcode_shlibpath_var=no
   10684       ;;
   10685 
   10686     *nto* | *qnx*)
   10687       ;;
   10688 
   10689     openbsd* | bitrig*)
   10690       if test -f /usr/libexec/ld.so; then
   10691 	hardcode_direct=yes
   10692 	hardcode_shlibpath_var=no
   10693 	hardcode_direct_absolute=yes
   10694 	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   10695 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   10696 	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
   10697 	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   10698 	  export_dynamic_flag_spec='$wl-E'
   10699 	else
   10700 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   10701 	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   10702 	fi
   10703       else
   10704 	ld_shlibs=no
   10705       fi
   10706       ;;
   10707 
   10708     os2*)
   10709       hardcode_libdir_flag_spec='-L$libdir'
   10710       hardcode_minus_L=yes
   10711       allow_undefined_flag=unsupported
   10712       shrext_cmds=.dll
   10713       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   10714 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   10715 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   10716 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   10717 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
   10718 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   10719 	emximp -o $lib $output_objdir/$libname.def'
   10720       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   10721 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   10722 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   10723 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   10724 	prefix_cmds="$SED"~
   10725 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
   10726 	  prefix_cmds="$prefix_cmds -e 1d";
   10727 	fi~
   10728 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
   10729 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
   10730 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   10731 	emximp -o $lib $output_objdir/$libname.def'
   10732       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
   10733       enable_shared_with_static_runtimes=yes
   10734       file_list_spec='@'
   10735       ;;
   10736 
   10737     osf3*)
   10738       if test yes = "$GCC"; then
   10739 	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
   10740 	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
   10741       else
   10742 	allow_undefined_flag=' -expect_unresolved \*'
   10743 	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
   10744       fi
   10745       archive_cmds_need_lc='no'
   10746       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   10747       hardcode_libdir_separator=:
   10748       ;;
   10749 
   10750     osf4* | osf5*)	# as osf3* with the addition of -msym flag
   10751       if test yes = "$GCC"; then
   10752 	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
   10753 	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
   10754 	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   10755       else
   10756 	allow_undefined_flag=' -expect_unresolved \*'
   10757 	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
   10758 	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
   10759           $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
   10760 
   10761 	# Both c and cxx compiler support -rpath directly
   10762 	hardcode_libdir_flag_spec='-rpath $libdir'
   10763       fi
   10764       archive_cmds_need_lc='no'
   10765       hardcode_libdir_separator=:
   10766       ;;
   10767 
   10768     solaris*)
   10769       no_undefined_flag=' -z defs'
   10770       if test yes = "$GCC"; then
   10771 	wlarc='$wl'
   10772 	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   10773 	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   10774           $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
   10775       else
   10776 	case `$CC -V 2>&1` in
   10777 	*"Compilers 5.0"*)
   10778 	  wlarc=''
   10779 	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10780 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   10781             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
   10782 	  ;;
   10783 	*)
   10784 	  wlarc='$wl'
   10785 	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
   10786 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   10787             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
   10788 	  ;;
   10789 	esac
   10790       fi
   10791       hardcode_libdir_flag_spec='-R$libdir'
   10792       hardcode_shlibpath_var=no
   10793       case $host_os in
   10794       solaris2.[0-5] | solaris2.[0-5].*) ;;
   10795       *)
   10796 	# The compiler driver will combine and reorder linker options,
   10797 	# but understands '-z linker_flag'.  GCC discards it without '$wl',
   10798 	# but is careful enough not to reorder.
   10799 	# Supported since Solaris 2.6 (maybe 2.5.1?)
   10800 	if test yes = "$GCC"; then
   10801 	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
   10802 	else
   10803 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
   10804 	fi
   10805 	;;
   10806       esac
   10807       link_all_deplibs=yes
   10808       ;;
   10809 
   10810     sunos4*)
   10811       if test sequent = "$host_vendor"; then
   10812 	# Use $CC to link under sequent, because it throws in some extra .o
   10813 	# files that make .init and .fini sections work.
   10814 	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
   10815       else
   10816 	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
   10817       fi
   10818       hardcode_libdir_flag_spec='-L$libdir'
   10819       hardcode_direct=yes
   10820       hardcode_minus_L=yes
   10821       hardcode_shlibpath_var=no
   10822       ;;
   10823 
   10824     sysv4)
   10825       case $host_vendor in
   10826 	sni)
   10827 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10828 	  hardcode_direct=yes # is this really true???
   10829 	;;
   10830 	siemens)
   10831 	  ## LD is ld it makes a PLAMLIB
   10832 	  ## CC just makes a GrossModule.
   10833 	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
   10834 	  reload_cmds='$CC -r -o $output$reload_objs'
   10835 	  hardcode_direct=no
   10836         ;;
   10837 	motorola)
   10838 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10839 	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
   10840 	;;
   10841       esac
   10842       runpath_var='LD_RUN_PATH'
   10843       hardcode_shlibpath_var=no
   10844       ;;
   10845 
   10846     sysv4.3*)
   10847       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10848       hardcode_shlibpath_var=no
   10849       export_dynamic_flag_spec='-Bexport'
   10850       ;;
   10851 
   10852     sysv4*MP*)
   10853       if test -d /usr/nec; then
   10854 	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10855 	hardcode_shlibpath_var=no
   10856 	runpath_var=LD_RUN_PATH
   10857 	hardcode_runpath_var=yes
   10858 	ld_shlibs=yes
   10859       fi
   10860       ;;
   10861 
   10862     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
   10863       no_undefined_flag='$wl-z,text'
   10864       archive_cmds_need_lc=no
   10865       hardcode_shlibpath_var=no
   10866       runpath_var='LD_RUN_PATH'
   10867 
   10868       if test yes = "$GCC"; then
   10869 	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10870 	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10871       else
   10872 	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10873 	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10874       fi
   10875       ;;
   10876 
   10877     sysv5* | sco3.2v5* | sco5v6*)
   10878       # Note: We CANNOT use -z defs as we might desire, because we do not
   10879       # link with -lc, and that would cause any symbols used from libc to
   10880       # always be unresolved, which means just about no library would
   10881       # ever link correctly.  If we're not using GNU ld we use -z text
   10882       # though, which does catch some bad symbols but isn't as heavy-handed
   10883       # as -z defs.
   10884       no_undefined_flag='$wl-z,text'
   10885       allow_undefined_flag='$wl-z,nodefs'
   10886       archive_cmds_need_lc=no
   10887       hardcode_shlibpath_var=no
   10888       hardcode_libdir_flag_spec='$wl-R,$libdir'
   10889       hardcode_libdir_separator=':'
   10890       link_all_deplibs=yes
   10891       export_dynamic_flag_spec='$wl-Bexport'
   10892       runpath_var='LD_RUN_PATH'
   10893 
   10894       if test yes = "$GCC"; then
   10895 	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10896 	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10897       else
   10898 	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10899 	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10900       fi
   10901       ;;
   10902 
   10903     uts4*)
   10904       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10905       hardcode_libdir_flag_spec='-L$libdir'
   10906       hardcode_shlibpath_var=no
   10907       ;;
   10908 
   10909     *)
   10910       ld_shlibs=no
   10911       ;;
   10912     esac
   10913 
   10914     if test sni = "$host_vendor"; then
   10915       case $host in
   10916       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   10917 	export_dynamic_flag_spec='$wl-Blargedynsym'
   10918 	;;
   10919       esac
   10920     fi
   10921   fi
   10922 
   10923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
   10924 printf "%s\n" "$ld_shlibs" >&6; }
   10925 test no = "$ld_shlibs" && can_build_shared=no
   10926 
   10927 with_gnu_ld=$with_gnu_ld
   10928 
   10929 
   10930 
   10931 
   10932 
   10933 
   10934 
   10935 
   10936 
   10937 
   10938 
   10939 
   10940 
   10941 
   10942 
   10943 #
   10944 # Do we need to explicitly link libc?
   10945 #
   10946 case "x$archive_cmds_need_lc" in
   10947 x|xyes)
   10948   # Assume -lc should be added
   10949   archive_cmds_need_lc=yes
   10950 
   10951   if test yes,yes = "$GCC,$enable_shared"; then
   10952     case $archive_cmds in
   10953     *'~'*)
   10954       # FIXME: we may have to deal with multi-command sequences.
   10955       ;;
   10956     '$CC '*)
   10957       # Test whether the compiler implicitly links with -lc since on some
   10958       # systems, -lgcc has to come before -lc. If gcc already passes -lc
   10959       # to ld, don't add -lc before -lgcc.
   10960       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
   10961 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
   10962 if test ${lt_cv_archive_cmds_need_lc+y}
   10963 then :
   10964   printf %s "(cached) " >&6
   10965 else $as_nop
   10966   $RM conftest*
   10967 	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   10968 
   10969 	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   10970   (eval $ac_compile) 2>&5
   10971   ac_status=$?
   10972   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   10973   test $ac_status = 0; } 2>conftest.err; then
   10974 	  soname=conftest
   10975 	  lib=conftest
   10976 	  libobjs=conftest.$ac_objext
   10977 	  deplibs=
   10978 	  wl=$lt_prog_compiler_wl
   10979 	  pic_flag=$lt_prog_compiler_pic
   10980 	  compiler_flags=-v
   10981 	  linker_flags=-v
   10982 	  verstring=
   10983 	  output_objdir=.
   10984 	  libname=conftest
   10985 	  lt_save_allow_undefined_flag=$allow_undefined_flag
   10986 	  allow_undefined_flag=
   10987 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
   10988   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
   10989   ac_status=$?
   10990   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   10991   test $ac_status = 0; }
   10992 	  then
   10993 	    lt_cv_archive_cmds_need_lc=no
   10994 	  else
   10995 	    lt_cv_archive_cmds_need_lc=yes
   10996 	  fi
   10997 	  allow_undefined_flag=$lt_save_allow_undefined_flag
   10998 	else
   10999 	  cat conftest.err 1>&5
   11000 	fi
   11001 	$RM conftest*
   11002 
   11003 fi
   11004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
   11005 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
   11006       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
   11007       ;;
   11008     esac
   11009   fi
   11010   ;;
   11011 esac
   11012 
   11013 
   11014 
   11015 
   11016 
   11017 
   11018 
   11019 
   11020 
   11021 
   11022 
   11023 
   11024 
   11025 
   11026 
   11027 
   11028 
   11029 
   11030 
   11031 
   11032 
   11033 
   11034 
   11035 
   11036 
   11037 
   11038 
   11039 
   11040 
   11041 
   11042 
   11043 
   11044 
   11045 
   11046 
   11047 
   11048 
   11049 
   11050 
   11051 
   11052 
   11053 
   11054 
   11055 
   11056 
   11057 
   11058 
   11059 
   11060 
   11061 
   11062 
   11063 
   11064 
   11065 
   11066 
   11067 
   11068 
   11069 
   11070 
   11071 
   11072 
   11073 
   11074 
   11075 
   11076 
   11077 
   11078 
   11079 
   11080 
   11081 
   11082 
   11083 
   11084 
   11085 
   11086 
   11087 
   11088 
   11089 
   11090 
   11091 
   11092 
   11093 
   11094 
   11095 
   11096 
   11097 
   11098 
   11099 
   11100 
   11101 
   11102 
   11103 
   11104 
   11105 
   11106 
   11107 
   11108 
   11109 
   11110 
   11111 
   11112 
   11113 
   11114 
   11115 
   11116 
   11117 
   11118 
   11119 
   11120 
   11121 
   11122 
   11123 
   11124 
   11125 
   11126 
   11127 
   11128 
   11129 
   11130 
   11131 
   11132 
   11133 
   11134 
   11135 
   11136 
   11137 
   11138 
   11139 
   11140 
   11141 
   11142 
   11143 
   11144 
   11145 
   11146 
   11147 
   11148 
   11149 
   11150 
   11151 
   11152 
   11153 
   11154 
   11155 
   11156 
   11157 
   11158 
   11159 
   11160 
   11161 
   11162 
   11163 
   11164   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
   11165 printf %s "checking dynamic linker characteristics... " >&6; }
   11166 
   11167 if test yes = "$GCC"; then
   11168   case $host_os in
   11169     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
   11170     *) lt_awk_arg='/^libraries:/' ;;
   11171   esac
   11172   case $host_os in
   11173     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
   11174     *) lt_sed_strip_eq='s|=/|/|g' ;;
   11175   esac
   11176   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
   11177   case $lt_search_path_spec in
   11178   *\;*)
   11179     # if the path contains ";" then we assume it to be the separator
   11180     # otherwise default to the standard path separator (i.e. ":") - it is
   11181     # assumed that no part of a normal pathname contains ";" but that should
   11182     # okay in the real world where ";" in dirpaths is itself problematic.
   11183     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
   11184     ;;
   11185   *)
   11186     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
   11187     ;;
   11188   esac
   11189   # Ok, now we have the path, separated by spaces, we can step through it
   11190   # and add multilib dir if necessary...
   11191   lt_tmp_lt_search_path_spec=
   11192   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
   11193   # ...but if some path component already ends with the multilib dir we assume
   11194   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
   11195   case "$lt_multi_os_dir; $lt_search_path_spec " in
   11196   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
   11197     lt_multi_os_dir=
   11198     ;;
   11199   esac
   11200   for lt_sys_path in $lt_search_path_spec; do
   11201     if test -d "$lt_sys_path$lt_multi_os_dir"; then
   11202       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
   11203     elif test -n "$lt_multi_os_dir"; then
   11204       test -d "$lt_sys_path" && \
   11205 	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
   11206     fi
   11207   done
   11208   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
   11209 BEGIN {RS = " "; FS = "/|\n";} {
   11210   lt_foo = "";
   11211   lt_count = 0;
   11212   for (lt_i = NF; lt_i > 0; lt_i--) {
   11213     if ($lt_i != "" && $lt_i != ".") {
   11214       if ($lt_i == "..") {
   11215         lt_count++;
   11216       } else {
   11217         if (lt_count == 0) {
   11218           lt_foo = "/" $lt_i lt_foo;
   11219         } else {
   11220           lt_count--;
   11221         }
   11222       }
   11223     }
   11224   }
   11225   if (lt_foo != "") { lt_freq[lt_foo]++; }
   11226   if (lt_freq[lt_foo] == 1) { print lt_foo; }
   11227 }'`
   11228   # AWK program above erroneously prepends '/' to C:/dos/paths
   11229   # for these hosts.
   11230   case $host_os in
   11231     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
   11232       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
   11233   esac
   11234   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
   11235 else
   11236   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   11237 fi
   11238 library_names_spec=
   11239 libname_spec='lib$name'
   11240 soname_spec=
   11241 shrext_cmds=.so
   11242 postinstall_cmds=
   11243 postuninstall_cmds=
   11244 finish_cmds=
   11245 finish_eval=
   11246 shlibpath_var=
   11247 shlibpath_overrides_runpath=unknown
   11248 version_type=none
   11249 dynamic_linker="$host_os ld.so"
   11250 sys_lib_dlsearch_path_spec="/lib /usr/lib"
   11251 need_lib_prefix=unknown
   11252 hardcode_into_libs=no
   11253 
   11254 # when you set need_version to no, make sure it does not cause -set_version
   11255 # flags to be left without arguments
   11256 need_version=unknown
   11257 
   11258 
   11259 
   11260 case $host_os in
   11261 aix3*)
   11262   version_type=linux # correct to gnu/linux during the next big refactor
   11263   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
   11264   shlibpath_var=LIBPATH
   11265 
   11266   # AIX 3 has no versioning support, so we append a major version to the name.
   11267   soname_spec='$libname$release$shared_ext$major'
   11268   ;;
   11269 
   11270 aix[4-9]*)
   11271   version_type=linux # correct to gnu/linux during the next big refactor
   11272   need_lib_prefix=no
   11273   need_version=no
   11274   hardcode_into_libs=yes
   11275   if test ia64 = "$host_cpu"; then
   11276     # AIX 5 supports IA64
   11277     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
   11278     shlibpath_var=LD_LIBRARY_PATH
   11279   else
   11280     # With GCC up to 2.95.x, collect2 would create an import file
   11281     # for dependence libraries.  The import file would start with
   11282     # the line '#! .'.  This would cause the generated library to
   11283     # depend on '.', always an invalid library.  This was fixed in
   11284     # development snapshots of GCC prior to 3.0.
   11285     case $host_os in
   11286       aix4 | aix4.[01] | aix4.[01].*)
   11287       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   11288 	   echo ' yes '
   11289 	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
   11290 	:
   11291       else
   11292 	can_build_shared=no
   11293       fi
   11294       ;;
   11295     esac
   11296     # Using Import Files as archive members, it is possible to support
   11297     # filename-based versioning of shared library archives on AIX. While
   11298     # this would work for both with and without runtime linking, it will
   11299     # prevent static linking of such archives. So we do filename-based
   11300     # shared library versioning with .so extension only, which is used
   11301     # when both runtime linking and shared linking is enabled.
   11302     # Unfortunately, runtime linking may impact performance, so we do
   11303     # not want this to be the default eventually. Also, we use the
   11304     # versioned .so libs for executables only if there is the -brtl
   11305     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
   11306     # To allow for filename-based versioning support, we need to create
   11307     # libNAME.so.V as an archive file, containing:
   11308     # *) an Import File, referring to the versioned filename of the
   11309     #    archive as well as the shared archive member, telling the
   11310     #    bitwidth (32 or 64) of that shared object, and providing the
   11311     #    list of exported symbols of that shared object, eventually
   11312     #    decorated with the 'weak' keyword
   11313     # *) the shared object with the F_LOADONLY flag set, to really avoid
   11314     #    it being seen by the linker.
   11315     # At run time we better use the real file rather than another symlink,
   11316     # but for link time we create the symlink libNAME.so -> libNAME.so.V
   11317 
   11318     case $with_aix_soname,$aix_use_runtimelinking in
   11319     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
   11320     # soname into executable. Probably we can add versioning support to
   11321     # collect2, so additional links can be useful in future.
   11322     aix,yes) # traditional libtool
   11323       dynamic_linker='AIX unversionable lib.so'
   11324       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
   11325       # instead of lib<name>.a to let people know that these are not
   11326       # typical AIX shared libraries.
   11327       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11328       ;;
   11329     aix,no) # traditional AIX only
   11330       dynamic_linker='AIX lib.a(lib.so.V)'
   11331       # We preserve .a as extension for shared libraries through AIX4.2
   11332       # and later when we are not doing run time linking.
   11333       library_names_spec='$libname$release.a $libname.a'
   11334       soname_spec='$libname$release$shared_ext$major'
   11335       ;;
   11336     svr4,*) # full svr4 only
   11337       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
   11338       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
   11339       # We do not specify a path in Import Files, so LIBPATH fires.
   11340       shlibpath_overrides_runpath=yes
   11341       ;;
   11342     *,yes) # both, prefer svr4
   11343       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
   11344       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
   11345       # unpreferred sharedlib libNAME.a needs extra handling
   11346       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
   11347       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
   11348       # We do not specify a path in Import Files, so LIBPATH fires.
   11349       shlibpath_overrides_runpath=yes
   11350       ;;
   11351     *,no) # both, prefer aix
   11352       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
   11353       library_names_spec='$libname$release.a $libname.a'
   11354       soname_spec='$libname$release$shared_ext$major'
   11355       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
   11356       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
   11357       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
   11358       ;;
   11359     esac
   11360     shlibpath_var=LIBPATH
   11361   fi
   11362   ;;
   11363 
   11364 amigaos*)
   11365   case $host_cpu in
   11366   powerpc)
   11367     # Since July 2007 AmigaOS4 officially supports .so libraries.
   11368     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
   11369     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11370     ;;
   11371   m68k)
   11372     library_names_spec='$libname.ixlibrary $libname.a'
   11373     # Create ${libname}_ixlibrary.a entries in /sys/libs.
   11374     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
   11375     ;;
   11376   esac
   11377   ;;
   11378 
   11379 beos*)
   11380   library_names_spec='$libname$shared_ext'
   11381   dynamic_linker="$host_os ld.so"
   11382   shlibpath_var=LIBRARY_PATH
   11383   ;;
   11384 
   11385 bsdi[45]*)
   11386   version_type=linux # correct to gnu/linux during the next big refactor
   11387   need_version=no
   11388   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11389   soname_spec='$libname$release$shared_ext$major'
   11390   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   11391   shlibpath_var=LD_LIBRARY_PATH
   11392   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   11393   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   11394   # the default ld.so.conf also contains /usr/contrib/lib and
   11395   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   11396   # libtool to hard-code these into programs
   11397   ;;
   11398 
   11399 cygwin* | mingw* | pw32* | cegcc*)
   11400   version_type=windows
   11401   shrext_cmds=.dll
   11402   need_version=no
   11403   need_lib_prefix=no
   11404 
   11405   case $GCC,$cc_basename in
   11406   yes,*)
   11407     # gcc
   11408     library_names_spec='$libname.dll.a'
   11409     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   11410     postinstall_cmds='base_file=`basename \$file`~
   11411       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
   11412       dldir=$destdir/`dirname \$dlpath`~
   11413       test -d \$dldir || mkdir -p \$dldir~
   11414       $install_prog $dir/$dlname \$dldir/$dlname~
   11415       chmod a+x \$dldir/$dlname~
   11416       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   11417         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   11418       fi'
   11419     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   11420       dlpath=$dir/\$dldll~
   11421        $RM \$dlpath'
   11422     shlibpath_overrides_runpath=yes
   11423 
   11424     case $host_os in
   11425     cygwin*)
   11426       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   11427       soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   11428 
   11429       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
   11430       ;;
   11431     mingw* | cegcc*)
   11432       # MinGW DLLs use traditional 'lib' prefix
   11433       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   11434       ;;
   11435     pw32*)
   11436       # pw32 DLLs use 'pw' prefix rather than 'lib'
   11437       library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   11438       ;;
   11439     esac
   11440     dynamic_linker='Win32 ld.exe'
   11441     ;;
   11442 
   11443   *,cl* | *,icl*)
   11444     # Native MSVC or ICC
   11445     libname_spec='$name'
   11446     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   11447     library_names_spec='$libname.dll.lib'
   11448 
   11449     case $build_os in
   11450     mingw*)
   11451       sys_lib_search_path_spec=
   11452       lt_save_ifs=$IFS
   11453       IFS=';'
   11454       for lt_path in $LIB
   11455       do
   11456         IFS=$lt_save_ifs
   11457         # Let DOS variable expansion print the short 8.3 style file name.
   11458         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
   11459         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
   11460       done
   11461       IFS=$lt_save_ifs
   11462       # Convert to MSYS style.
   11463       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
   11464       ;;
   11465     cygwin*)
   11466       # Convert to unix form, then to dos form, then back to unix form
   11467       # but this time dos style (no spaces!) so that the unix form looks
   11468       # like /cygdrive/c/PROGRA~1:/cygdr...
   11469       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
   11470       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
   11471       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   11472       ;;
   11473     *)
   11474       sys_lib_search_path_spec=$LIB
   11475       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
   11476         # It is most probably a Windows format PATH.
   11477         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   11478       else
   11479         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   11480       fi
   11481       # FIXME: find the short name or the path components, as spaces are
   11482       # common. (e.g. "Program Files" -> "PROGRA~1")
   11483       ;;
   11484     esac
   11485 
   11486     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   11487     postinstall_cmds='base_file=`basename \$file`~
   11488       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
   11489       dldir=$destdir/`dirname \$dlpath`~
   11490       test -d \$dldir || mkdir -p \$dldir~
   11491       $install_prog $dir/$dlname \$dldir/$dlname'
   11492     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   11493       dlpath=$dir/\$dldll~
   11494        $RM \$dlpath'
   11495     shlibpath_overrides_runpath=yes
   11496     dynamic_linker='Win32 link.exe'
   11497     ;;
   11498 
   11499   *)
   11500     # Assume MSVC and ICC wrapper
   11501     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
   11502     dynamic_linker='Win32 ld.exe'
   11503     ;;
   11504   esac
   11505   # FIXME: first we should search . and the directory the executable is in
   11506   shlibpath_var=PATH
   11507   ;;
   11508 
   11509 darwin* | rhapsody*)
   11510   dynamic_linker="$host_os dyld"
   11511   version_type=darwin
   11512   need_lib_prefix=no
   11513   need_version=no
   11514   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
   11515   soname_spec='$libname$release$major$shared_ext'
   11516   shlibpath_overrides_runpath=yes
   11517   shlibpath_var=DYLD_LIBRARY_PATH
   11518   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
   11519 
   11520   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
   11521   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   11522   ;;
   11523 
   11524 dgux*)
   11525   version_type=linux # correct to gnu/linux during the next big refactor
   11526   need_lib_prefix=no
   11527   need_version=no
   11528   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11529   soname_spec='$libname$release$shared_ext$major'
   11530   shlibpath_var=LD_LIBRARY_PATH
   11531   ;;
   11532 
   11533 freebsd* | dragonfly* | midnightbsd*)
   11534   # DragonFly does not have aout.  When/if they implement a new
   11535   # versioning mechanism, adjust this.
   11536   if test -x /usr/bin/objformat; then
   11537     objformat=`/usr/bin/objformat`
   11538   else
   11539     case $host_os in
   11540     freebsd[23].*) objformat=aout ;;
   11541     *) objformat=elf ;;
   11542     esac
   11543   fi
   11544   version_type=freebsd-$objformat
   11545   case $version_type in
   11546     freebsd-elf*)
   11547       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11548       soname_spec='$libname$release$shared_ext$major'
   11549       need_version=no
   11550       need_lib_prefix=no
   11551       ;;
   11552     freebsd-*)
   11553       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   11554       need_version=yes
   11555       ;;
   11556   esac
   11557   shlibpath_var=LD_LIBRARY_PATH
   11558   case $host_os in
   11559   freebsd2.*)
   11560     shlibpath_overrides_runpath=yes
   11561     ;;
   11562   freebsd3.[01]* | freebsdelf3.[01]*)
   11563     shlibpath_overrides_runpath=yes
   11564     hardcode_into_libs=yes
   11565     ;;
   11566   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
   11567   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
   11568     shlibpath_overrides_runpath=no
   11569     hardcode_into_libs=yes
   11570     ;;
   11571   *) # from 4.6 on, and DragonFly
   11572     shlibpath_overrides_runpath=yes
   11573     hardcode_into_libs=yes
   11574     ;;
   11575   esac
   11576   ;;
   11577 
   11578 haiku*)
   11579   version_type=linux # correct to gnu/linux during the next big refactor
   11580   need_lib_prefix=no
   11581   need_version=no
   11582   dynamic_linker="$host_os runtime_loader"
   11583   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11584   soname_spec='$libname$release$shared_ext$major'
   11585   shlibpath_var=LIBRARY_PATH
   11586   shlibpath_overrides_runpath=no
   11587   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
   11588   hardcode_into_libs=yes
   11589   ;;
   11590 
   11591 hpux9* | hpux10* | hpux11*)
   11592   # Give a soname corresponding to the major version so that dld.sl refuses to
   11593   # link against other versions.
   11594   version_type=sunos
   11595   need_lib_prefix=no
   11596   need_version=no
   11597   case $host_cpu in
   11598   ia64*)
   11599     shrext_cmds='.so'
   11600     hardcode_into_libs=yes
   11601     dynamic_linker="$host_os dld.so"
   11602     shlibpath_var=LD_LIBRARY_PATH
   11603     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   11604     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11605     soname_spec='$libname$release$shared_ext$major'
   11606     if test 32 = "$HPUX_IA64_MODE"; then
   11607       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   11608       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
   11609     else
   11610       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   11611       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
   11612     fi
   11613     ;;
   11614   hppa*64*)
   11615     shrext_cmds='.sl'
   11616     hardcode_into_libs=yes
   11617     dynamic_linker="$host_os dld.sl"
   11618     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   11619     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   11620     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11621     soname_spec='$libname$release$shared_ext$major'
   11622     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   11623     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   11624     ;;
   11625   *)
   11626     shrext_cmds='.sl'
   11627     dynamic_linker="$host_os dld.sl"
   11628     shlibpath_var=SHLIB_PATH
   11629     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   11630     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11631     soname_spec='$libname$release$shared_ext$major'
   11632     ;;
   11633   esac
   11634   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
   11635   postinstall_cmds='chmod 555 $lib'
   11636   # or fails outright, so override atomically:
   11637   install_override_mode=555
   11638   ;;
   11639 
   11640 interix[3-9]*)
   11641   version_type=linux # correct to gnu/linux during the next big refactor
   11642   need_lib_prefix=no
   11643   need_version=no
   11644   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11645   soname_spec='$libname$release$shared_ext$major'
   11646   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
   11647   shlibpath_var=LD_LIBRARY_PATH
   11648   shlibpath_overrides_runpath=no
   11649   hardcode_into_libs=yes
   11650   ;;
   11651 
   11652 irix5* | irix6* | nonstopux*)
   11653   case $host_os in
   11654     nonstopux*) version_type=nonstopux ;;
   11655     *)
   11656 	if test yes = "$lt_cv_prog_gnu_ld"; then
   11657 		version_type=linux # correct to gnu/linux during the next big refactor
   11658 	else
   11659 		version_type=irix
   11660 	fi ;;
   11661   esac
   11662   need_lib_prefix=no
   11663   need_version=no
   11664   soname_spec='$libname$release$shared_ext$major'
   11665   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
   11666   case $host_os in
   11667   irix5* | nonstopux*)
   11668     libsuff= shlibsuff=
   11669     ;;
   11670   *)
   11671     case $LD in # libtool.m4 will add one of these switches to LD
   11672     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   11673       libsuff= shlibsuff= libmagic=32-bit;;
   11674     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   11675       libsuff=32 shlibsuff=N32 libmagic=N32;;
   11676     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   11677       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   11678     *) libsuff= shlibsuff= libmagic=never-match;;
   11679     esac
   11680     ;;
   11681   esac
   11682   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   11683   shlibpath_overrides_runpath=no
   11684   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
   11685   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
   11686   hardcode_into_libs=yes
   11687   ;;
   11688 
   11689 # No shared lib support for Linux oldld, aout, or coff.
   11690 linux*oldld* | linux*aout* | linux*coff*)
   11691   dynamic_linker=no
   11692   ;;
   11693 
   11694 linux*android*)
   11695   version_type=none # Android doesn't support versioned libraries.
   11696   need_lib_prefix=no
   11697   need_version=no
   11698   library_names_spec='$libname$release$shared_ext'
   11699   soname_spec='$libname$release$shared_ext'
   11700   finish_cmds=
   11701   shlibpath_var=LD_LIBRARY_PATH
   11702   shlibpath_overrides_runpath=yes
   11703 
   11704   # This implies no fast_install, which is unacceptable.
   11705   # Some rework will be needed to allow for fast_install
   11706   # before this can be enabled.
   11707   hardcode_into_libs=yes
   11708 
   11709   dynamic_linker='Android linker'
   11710   # Don't embed -rpath directories since the linker doesn't support them.
   11711   hardcode_libdir_flag_spec='-L$libdir'
   11712   ;;
   11713 
   11714 # This must be glibc/ELF.
   11715 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   11716   version_type=linux # correct to gnu/linux during the next big refactor
   11717   need_lib_prefix=no
   11718   need_version=no
   11719   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11720   soname_spec='$libname$release$shared_ext$major'
   11721   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   11722   shlibpath_var=LD_LIBRARY_PATH
   11723   shlibpath_overrides_runpath=no
   11724 
   11725   # Some binutils ld are patched to set DT_RUNPATH
   11726   if test ${lt_cv_shlibpath_overrides_runpath+y}
   11727 then :
   11728   printf %s "(cached) " >&6
   11729 else $as_nop
   11730   lt_cv_shlibpath_overrides_runpath=no
   11731     save_LDFLAGS=$LDFLAGS
   11732     save_libdir=$libdir
   11733     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
   11734 	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
   11735     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11736 /* end confdefs.h.  */
   11737 
   11738 int
   11739 main (void)
   11740 {
   11741 
   11742   ;
   11743   return 0;
   11744 }
   11745 _ACEOF
   11746 if ac_fn_c_try_link "$LINENO"
   11747 then :
   11748   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
   11749 then :
   11750   lt_cv_shlibpath_overrides_runpath=yes
   11751 fi
   11752 fi
   11753 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   11754     conftest$ac_exeext conftest.$ac_ext
   11755     LDFLAGS=$save_LDFLAGS
   11756     libdir=$save_libdir
   11757 
   11758 fi
   11759 
   11760   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
   11761 
   11762   # This implies no fast_install, which is unacceptable.
   11763   # Some rework will be needed to allow for fast_install
   11764   # before this can be enabled.
   11765   hardcode_into_libs=yes
   11766 
   11767   # Ideally, we could use ldconfig to report *all* directores which are
   11768   # searched for libraries, however this is still not possible.  Aside from not
   11769   # being certain /sbin/ldconfig is available, command
   11770   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
   11771   # even though it is searched at run-time.  Try to do the best guess by
   11772   # appending ld.so.conf contents (and includes) to the search path.
   11773   if test -f /etc/ld.so.conf; then
   11774     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
   11775     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
   11776   fi
   11777 
   11778   # We used to test for /lib/ld.so.1 and disable shared libraries on
   11779   # powerpc, because MkLinux only supported shared libraries with the
   11780   # GNU dynamic linker.  Since this was broken with cross compilers,
   11781   # most powerpc-linux boxes support dynamic linking these days and
   11782   # people can always --disable-shared, the test was removed, and we
   11783   # assume the GNU/Linux dynamic linker is in use.
   11784   dynamic_linker='GNU/Linux ld.so'
   11785   ;;
   11786 
   11787 netbsd*)
   11788   version_type=sunos
   11789   need_lib_prefix=no
   11790   need_version=no
   11791   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   11792     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   11793     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   11794     dynamic_linker='NetBSD (a.out) ld.so'
   11795   else
   11796     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11797     soname_spec='$libname$release$shared_ext$major'
   11798     dynamic_linker='NetBSD ld.elf_so'
   11799   fi
   11800   shlibpath_var=LD_LIBRARY_PATH
   11801   shlibpath_overrides_runpath=yes
   11802   hardcode_into_libs=yes
   11803   ;;
   11804 
   11805 newsos6)
   11806   version_type=linux # correct to gnu/linux during the next big refactor
   11807   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11808   shlibpath_var=LD_LIBRARY_PATH
   11809   shlibpath_overrides_runpath=yes
   11810   ;;
   11811 
   11812 *nto* | *qnx*)
   11813   version_type=qnx
   11814   need_lib_prefix=no
   11815   need_version=no
   11816   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11817   soname_spec='$libname$release$shared_ext$major'
   11818   shlibpath_var=LD_LIBRARY_PATH
   11819   shlibpath_overrides_runpath=no
   11820   hardcode_into_libs=yes
   11821   dynamic_linker='ldqnx.so'
   11822   ;;
   11823 
   11824 openbsd* | bitrig*)
   11825   version_type=sunos
   11826   sys_lib_dlsearch_path_spec=/usr/lib
   11827   need_lib_prefix=no
   11828   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   11829     need_version=no
   11830   else
   11831     need_version=yes
   11832   fi
   11833   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   11834   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   11835   shlibpath_var=LD_LIBRARY_PATH
   11836   shlibpath_overrides_runpath=yes
   11837   ;;
   11838 
   11839 os2*)
   11840   libname_spec='$name'
   11841   version_type=windows
   11842   shrext_cmds=.dll
   11843   need_version=no
   11844   need_lib_prefix=no
   11845   # OS/2 can only load a DLL with a base name of 8 characters or less.
   11846   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
   11847     v=$($ECHO $release$versuffix | tr -d .-);
   11848     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
   11849     $ECHO $n$v`$shared_ext'
   11850   library_names_spec='${libname}_dll.$libext'
   11851   dynamic_linker='OS/2 ld.exe'
   11852   shlibpath_var=BEGINLIBPATH
   11853   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   11854   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   11855   postinstall_cmds='base_file=`basename \$file`~
   11856     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
   11857     dldir=$destdir/`dirname \$dlpath`~
   11858     test -d \$dldir || mkdir -p \$dldir~
   11859     $install_prog $dir/$dlname \$dldir/$dlname~
   11860     chmod a+x \$dldir/$dlname~
   11861     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   11862       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   11863     fi'
   11864   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
   11865     dlpath=$dir/\$dldll~
   11866     $RM \$dlpath'
   11867   ;;
   11868 
   11869 osf3* | osf4* | osf5*)
   11870   version_type=osf
   11871   need_lib_prefix=no
   11872   need_version=no
   11873   soname_spec='$libname$release$shared_ext$major'
   11874   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11875   shlibpath_var=LD_LIBRARY_PATH
   11876   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   11877   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   11878   ;;
   11879 
   11880 rdos*)
   11881   dynamic_linker=no
   11882   ;;
   11883 
   11884 solaris*)
   11885   version_type=linux # correct to gnu/linux during the next big refactor
   11886   need_lib_prefix=no
   11887   need_version=no
   11888   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11889   soname_spec='$libname$release$shared_ext$major'
   11890   shlibpath_var=LD_LIBRARY_PATH
   11891   shlibpath_overrides_runpath=yes
   11892   hardcode_into_libs=yes
   11893   # ldd complains unless libraries are executable
   11894   postinstall_cmds='chmod +x $lib'
   11895   ;;
   11896 
   11897 sunos4*)
   11898   version_type=sunos
   11899   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   11900   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   11901   shlibpath_var=LD_LIBRARY_PATH
   11902   shlibpath_overrides_runpath=yes
   11903   if test yes = "$with_gnu_ld"; then
   11904     need_lib_prefix=no
   11905   fi
   11906   need_version=yes
   11907   ;;
   11908 
   11909 sysv4 | sysv4.3*)
   11910   version_type=linux # correct to gnu/linux during the next big refactor
   11911   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11912   soname_spec='$libname$release$shared_ext$major'
   11913   shlibpath_var=LD_LIBRARY_PATH
   11914   case $host_vendor in
   11915     sni)
   11916       shlibpath_overrides_runpath=no
   11917       need_lib_prefix=no
   11918       runpath_var=LD_RUN_PATH
   11919       ;;
   11920     siemens)
   11921       need_lib_prefix=no
   11922       ;;
   11923     motorola)
   11924       need_lib_prefix=no
   11925       need_version=no
   11926       shlibpath_overrides_runpath=no
   11927       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   11928       ;;
   11929   esac
   11930   ;;
   11931 
   11932 sysv4*MP*)
   11933   if test -d /usr/nec; then
   11934     version_type=linux # correct to gnu/linux during the next big refactor
   11935     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
   11936     soname_spec='$libname$shared_ext.$major'
   11937     shlibpath_var=LD_LIBRARY_PATH
   11938   fi
   11939   ;;
   11940 
   11941 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   11942   version_type=sco
   11943   need_lib_prefix=no
   11944   need_version=no
   11945   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
   11946   soname_spec='$libname$release$shared_ext$major'
   11947   shlibpath_var=LD_LIBRARY_PATH
   11948   shlibpath_overrides_runpath=yes
   11949   hardcode_into_libs=yes
   11950   if test yes = "$with_gnu_ld"; then
   11951     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
   11952   else
   11953     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
   11954     case $host_os in
   11955       sco3.2v5*)
   11956         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
   11957 	;;
   11958     esac
   11959   fi
   11960   sys_lib_dlsearch_path_spec='/usr/lib'
   11961   ;;
   11962 
   11963 tpf*)
   11964   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
   11965   version_type=linux # correct to gnu/linux during the next big refactor
   11966   need_lib_prefix=no
   11967   need_version=no
   11968   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11969   shlibpath_var=LD_LIBRARY_PATH
   11970   shlibpath_overrides_runpath=no
   11971   hardcode_into_libs=yes
   11972   ;;
   11973 
   11974 uts4*)
   11975   version_type=linux # correct to gnu/linux during the next big refactor
   11976   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11977   soname_spec='$libname$release$shared_ext$major'
   11978   shlibpath_var=LD_LIBRARY_PATH
   11979   ;;
   11980 
   11981 *)
   11982   dynamic_linker=no
   11983   ;;
   11984 esac
   11985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
   11986 printf "%s\n" "$dynamic_linker" >&6; }
   11987 test no = "$dynamic_linker" && can_build_shared=no
   11988 
   11989 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   11990 if test yes = "$GCC"; then
   11991   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   11992 fi
   11993 
   11994 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
   11995   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
   11996 fi
   11997 
   11998 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
   11999   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
   12000 fi
   12001 
   12002 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
   12003 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
   12004 
   12005 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
   12006 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
   12007 
   12008 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
   12009 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
   12010 
   12011 
   12012 
   12013 
   12014 
   12015 
   12016 
   12017 
   12018 
   12019 
   12020 
   12021 
   12022 
   12023 
   12024 
   12025 
   12026 
   12027 
   12028 
   12029 
   12030 
   12031 
   12032 
   12033 
   12034 
   12035 
   12036 
   12037 
   12038 
   12039 
   12040 
   12041 
   12042 
   12043 
   12044 
   12045 
   12046 
   12047 
   12048 
   12049 
   12050 
   12051 
   12052 
   12053 
   12054 
   12055 
   12056 
   12057 
   12058 
   12059 
   12060 
   12061 
   12062 
   12063 
   12064 
   12065 
   12066 
   12067 
   12068 
   12069 
   12070 
   12071 
   12072 
   12073 
   12074 
   12075 
   12076 
   12077 
   12078 
   12079 
   12080 
   12081 
   12082 
   12083 
   12084 
   12085 
   12086 
   12087 
   12088 
   12089 
   12090 
   12091 
   12092 
   12093 
   12094 
   12095 
   12096 
   12097 
   12098 
   12099 
   12100 
   12101 
   12102 
   12103 
   12104 
   12105 
   12106 
   12107   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
   12108 printf %s "checking how to hardcode library paths into programs... " >&6; }
   12109 hardcode_action=
   12110 if test -n "$hardcode_libdir_flag_spec" ||
   12111    test -n "$runpath_var" ||
   12112    test yes = "$hardcode_automatic"; then
   12113 
   12114   # We can hardcode non-existent directories.
   12115   if test no != "$hardcode_direct" &&
   12116      # If the only mechanism to avoid hardcoding is shlibpath_var, we
   12117      # have to relink, otherwise we might link with an installed library
   12118      # when we should be linking with a yet-to-be-installed one
   12119      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
   12120      test no != "$hardcode_minus_L"; then
   12121     # Linking always hardcodes the temporary library directory.
   12122     hardcode_action=relink
   12123   else
   12124     # We can link without hardcoding, and we can hardcode nonexisting dirs.
   12125     hardcode_action=immediate
   12126   fi
   12127 else
   12128   # We cannot hardcode anything, or else we can only hardcode existing
   12129   # directories.
   12130   hardcode_action=unsupported
   12131 fi
   12132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
   12133 printf "%s\n" "$hardcode_action" >&6; }
   12134 
   12135 if test relink = "$hardcode_action" ||
   12136    test yes = "$inherit_rpath"; then
   12137   # Fast installation is not supported
   12138   enable_fast_install=no
   12139 elif test yes = "$shlibpath_overrides_runpath" ||
   12140      test no = "$enable_shared"; then
   12141   # Fast installation is not necessary
   12142   enable_fast_install=needless
   12143 fi
   12144 
   12145 
   12146 
   12147 
   12148 
   12149 
   12150   if test yes != "$enable_dlopen"; then
   12151   enable_dlopen=unknown
   12152   enable_dlopen_self=unknown
   12153   enable_dlopen_self_static=unknown
   12154 else
   12155   lt_cv_dlopen=no
   12156   lt_cv_dlopen_libs=
   12157 
   12158   case $host_os in
   12159   beos*)
   12160     lt_cv_dlopen=load_add_on
   12161     lt_cv_dlopen_libs=
   12162     lt_cv_dlopen_self=yes
   12163     ;;
   12164 
   12165   mingw* | pw32* | cegcc*)
   12166     lt_cv_dlopen=LoadLibrary
   12167     lt_cv_dlopen_libs=
   12168     ;;
   12169 
   12170   cygwin*)
   12171     lt_cv_dlopen=dlopen
   12172     lt_cv_dlopen_libs=
   12173     ;;
   12174 
   12175   darwin*)
   12176     # if libdl is installed we need to link against it
   12177     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   12178 printf %s "checking for dlopen in -ldl... " >&6; }
   12179 if test ${ac_cv_lib_dl_dlopen+y}
   12180 then :
   12181   printf %s "(cached) " >&6
   12182 else $as_nop
   12183   ac_check_lib_save_LIBS=$LIBS
   12184 LIBS="-ldl  $LIBS"
   12185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12186 /* end confdefs.h.  */
   12187 
   12188 /* Override any GCC internal prototype to avoid an error.
   12189    Use char because int might match the return type of a GCC
   12190    builtin and then its argument prototype would still apply.  */
   12191 char dlopen ();
   12192 int
   12193 main (void)
   12194 {
   12195 return dlopen ();
   12196   ;
   12197   return 0;
   12198 }
   12199 _ACEOF
   12200 if ac_fn_c_try_link "$LINENO"
   12201 then :
   12202   ac_cv_lib_dl_dlopen=yes
   12203 else $as_nop
   12204   ac_cv_lib_dl_dlopen=no
   12205 fi
   12206 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   12207     conftest$ac_exeext conftest.$ac_ext
   12208 LIBS=$ac_check_lib_save_LIBS
   12209 fi
   12210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   12211 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
   12212 if test "x$ac_cv_lib_dl_dlopen" = xyes
   12213 then :
   12214   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
   12215 else $as_nop
   12216 
   12217     lt_cv_dlopen=dyld
   12218     lt_cv_dlopen_libs=
   12219     lt_cv_dlopen_self=yes
   12220 
   12221 fi
   12222 
   12223     ;;
   12224 
   12225   tpf*)
   12226     # Don't try to run any link tests for TPF.  We know it's impossible
   12227     # because TPF is a cross-compiler, and we know how we open DSOs.
   12228     lt_cv_dlopen=dlopen
   12229     lt_cv_dlopen_libs=
   12230     lt_cv_dlopen_self=no
   12231     ;;
   12232 
   12233   *)
   12234     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
   12235 if test "x$ac_cv_func_shl_load" = xyes
   12236 then :
   12237   lt_cv_dlopen=shl_load
   12238 else $as_nop
   12239   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
   12240 printf %s "checking for shl_load in -ldld... " >&6; }
   12241 if test ${ac_cv_lib_dld_shl_load+y}
   12242 then :
   12243   printf %s "(cached) " >&6
   12244 else $as_nop
   12245   ac_check_lib_save_LIBS=$LIBS
   12246 LIBS="-ldld  $LIBS"
   12247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12248 /* end confdefs.h.  */
   12249 
   12250 /* Override any GCC internal prototype to avoid an error.
   12251    Use char because int might match the return type of a GCC
   12252    builtin and then its argument prototype would still apply.  */
   12253 char shl_load ();
   12254 int
   12255 main (void)
   12256 {
   12257 return shl_load ();
   12258   ;
   12259   return 0;
   12260 }
   12261 _ACEOF
   12262 if ac_fn_c_try_link "$LINENO"
   12263 then :
   12264   ac_cv_lib_dld_shl_load=yes
   12265 else $as_nop
   12266   ac_cv_lib_dld_shl_load=no
   12267 fi
   12268 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   12269     conftest$ac_exeext conftest.$ac_ext
   12270 LIBS=$ac_check_lib_save_LIBS
   12271 fi
   12272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
   12273 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
   12274 if test "x$ac_cv_lib_dld_shl_load" = xyes
   12275 then :
   12276   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
   12277 else $as_nop
   12278   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
   12279 if test "x$ac_cv_func_dlopen" = xyes
   12280 then :
   12281   lt_cv_dlopen=dlopen
   12282 else $as_nop
   12283   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   12284 printf %s "checking for dlopen in -ldl... " >&6; }
   12285 if test ${ac_cv_lib_dl_dlopen+y}
   12286 then :
   12287   printf %s "(cached) " >&6
   12288 else $as_nop
   12289   ac_check_lib_save_LIBS=$LIBS
   12290 LIBS="-ldl  $LIBS"
   12291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12292 /* end confdefs.h.  */
   12293 
   12294 /* Override any GCC internal prototype to avoid an error.
   12295    Use char because int might match the return type of a GCC
   12296    builtin and then its argument prototype would still apply.  */
   12297 char dlopen ();
   12298 int
   12299 main (void)
   12300 {
   12301 return dlopen ();
   12302   ;
   12303   return 0;
   12304 }
   12305 _ACEOF
   12306 if ac_fn_c_try_link "$LINENO"
   12307 then :
   12308   ac_cv_lib_dl_dlopen=yes
   12309 else $as_nop
   12310   ac_cv_lib_dl_dlopen=no
   12311 fi
   12312 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   12313     conftest$ac_exeext conftest.$ac_ext
   12314 LIBS=$ac_check_lib_save_LIBS
   12315 fi
   12316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   12317 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
   12318 if test "x$ac_cv_lib_dl_dlopen" = xyes
   12319 then :
   12320   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
   12321 else $as_nop
   12322   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
   12323 printf %s "checking for dlopen in -lsvld... " >&6; }
   12324 if test ${ac_cv_lib_svld_dlopen+y}
   12325 then :
   12326   printf %s "(cached) " >&6
   12327 else $as_nop
   12328   ac_check_lib_save_LIBS=$LIBS
   12329 LIBS="-lsvld  $LIBS"
   12330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12331 /* end confdefs.h.  */
   12332 
   12333 /* Override any GCC internal prototype to avoid an error.
   12334    Use char because int might match the return type of a GCC
   12335    builtin and then its argument prototype would still apply.  */
   12336 char dlopen ();
   12337 int
   12338 main (void)
   12339 {
   12340 return dlopen ();
   12341   ;
   12342   return 0;
   12343 }
   12344 _ACEOF
   12345 if ac_fn_c_try_link "$LINENO"
   12346 then :
   12347   ac_cv_lib_svld_dlopen=yes
   12348 else $as_nop
   12349   ac_cv_lib_svld_dlopen=no
   12350 fi
   12351 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   12352     conftest$ac_exeext conftest.$ac_ext
   12353 LIBS=$ac_check_lib_save_LIBS
   12354 fi
   12355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
   12356 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
   12357 if test "x$ac_cv_lib_svld_dlopen" = xyes
   12358 then :
   12359   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
   12360 else $as_nop
   12361   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
   12362 printf %s "checking for dld_link in -ldld... " >&6; }
   12363 if test ${ac_cv_lib_dld_dld_link+y}
   12364 then :
   12365   printf %s "(cached) " >&6
   12366 else $as_nop
   12367   ac_check_lib_save_LIBS=$LIBS
   12368 LIBS="-ldld  $LIBS"
   12369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12370 /* end confdefs.h.  */
   12371 
   12372 /* Override any GCC internal prototype to avoid an error.
   12373    Use char because int might match the return type of a GCC
   12374    builtin and then its argument prototype would still apply.  */
   12375 char dld_link ();
   12376 int
   12377 main (void)
   12378 {
   12379 return dld_link ();
   12380   ;
   12381   return 0;
   12382 }
   12383 _ACEOF
   12384 if ac_fn_c_try_link "$LINENO"
   12385 then :
   12386   ac_cv_lib_dld_dld_link=yes
   12387 else $as_nop
   12388   ac_cv_lib_dld_dld_link=no
   12389 fi
   12390 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   12391     conftest$ac_exeext conftest.$ac_ext
   12392 LIBS=$ac_check_lib_save_LIBS
   12393 fi
   12394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
   12395 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
   12396 if test "x$ac_cv_lib_dld_dld_link" = xyes
   12397 then :
   12398   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
   12399 fi
   12400 
   12401 
   12402 fi
   12403 
   12404 
   12405 fi
   12406 
   12407 
   12408 fi
   12409 
   12410 
   12411 fi
   12412 
   12413 
   12414 fi
   12415 
   12416     ;;
   12417   esac
   12418 
   12419   if test no = "$lt_cv_dlopen"; then
   12420     enable_dlopen=no
   12421   else
   12422     enable_dlopen=yes
   12423   fi
   12424 
   12425   case $lt_cv_dlopen in
   12426   dlopen)
   12427     save_CPPFLAGS=$CPPFLAGS
   12428     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
   12429 
   12430     save_LDFLAGS=$LDFLAGS
   12431     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
   12432 
   12433     save_LIBS=$LIBS
   12434     LIBS="$lt_cv_dlopen_libs $LIBS"
   12435 
   12436     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
   12437 printf %s "checking whether a program can dlopen itself... " >&6; }
   12438 if test ${lt_cv_dlopen_self+y}
   12439 then :
   12440   printf %s "(cached) " >&6
   12441 else $as_nop
   12442   	  if test yes = "$cross_compiling"; then :
   12443   lt_cv_dlopen_self=cross
   12444 else
   12445   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   12446   lt_status=$lt_dlunknown
   12447   cat > conftest.$ac_ext <<_LT_EOF
   12448 #line $LINENO "configure"
   12449 #include "confdefs.h"
   12450 
   12451 #if HAVE_DLFCN_H
   12452 #include <dlfcn.h>
   12453 #endif
   12454 
   12455 #include <stdio.h>
   12456 
   12457 #ifdef RTLD_GLOBAL
   12458 #  define LT_DLGLOBAL		RTLD_GLOBAL
   12459 #else
   12460 #  ifdef DL_GLOBAL
   12461 #    define LT_DLGLOBAL		DL_GLOBAL
   12462 #  else
   12463 #    define LT_DLGLOBAL		0
   12464 #  endif
   12465 #endif
   12466 
   12467 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   12468    find out it does not work in some platform. */
   12469 #ifndef LT_DLLAZY_OR_NOW
   12470 #  ifdef RTLD_LAZY
   12471 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   12472 #  else
   12473 #    ifdef DL_LAZY
   12474 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   12475 #    else
   12476 #      ifdef RTLD_NOW
   12477 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   12478 #      else
   12479 #        ifdef DL_NOW
   12480 #          define LT_DLLAZY_OR_NOW	DL_NOW
   12481 #        else
   12482 #          define LT_DLLAZY_OR_NOW	0
   12483 #        endif
   12484 #      endif
   12485 #    endif
   12486 #  endif
   12487 #endif
   12488 
   12489 /* When -fvisibility=hidden is used, assume the code has been annotated
   12490    correspondingly for the symbols needed.  */
   12491 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   12492 int fnord () __attribute__((visibility("default")));
   12493 #endif
   12494 
   12495 int fnord () { return 42; }
   12496 int main ()
   12497 {
   12498   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   12499   int status = $lt_dlunknown;
   12500 
   12501   if (self)
   12502     {
   12503       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   12504       else
   12505         {
   12506 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   12507           else puts (dlerror ());
   12508 	}
   12509       /* dlclose (self); */
   12510     }
   12511   else
   12512     puts (dlerror ());
   12513 
   12514   return status;
   12515 }
   12516 _LT_EOF
   12517   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   12518   (eval $ac_link) 2>&5
   12519   ac_status=$?
   12520   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   12521   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
   12522     (./conftest; exit; ) >&5 2>/dev/null
   12523     lt_status=$?
   12524     case x$lt_status in
   12525       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
   12526       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
   12527       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
   12528     esac
   12529   else :
   12530     # compilation failed
   12531     lt_cv_dlopen_self=no
   12532   fi
   12533 fi
   12534 rm -fr conftest*
   12535 
   12536 
   12537 fi
   12538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
   12539 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
   12540 
   12541     if test yes = "$lt_cv_dlopen_self"; then
   12542       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
   12543       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
   12544 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
   12545 if test ${lt_cv_dlopen_self_static+y}
   12546 then :
   12547   printf %s "(cached) " >&6
   12548 else $as_nop
   12549   	  if test yes = "$cross_compiling"; then :
   12550   lt_cv_dlopen_self_static=cross
   12551 else
   12552   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   12553   lt_status=$lt_dlunknown
   12554   cat > conftest.$ac_ext <<_LT_EOF
   12555 #line $LINENO "configure"
   12556 #include "confdefs.h"
   12557 
   12558 #if HAVE_DLFCN_H
   12559 #include <dlfcn.h>
   12560 #endif
   12561 
   12562 #include <stdio.h>
   12563 
   12564 #ifdef RTLD_GLOBAL
   12565 #  define LT_DLGLOBAL		RTLD_GLOBAL
   12566 #else
   12567 #  ifdef DL_GLOBAL
   12568 #    define LT_DLGLOBAL		DL_GLOBAL
   12569 #  else
   12570 #    define LT_DLGLOBAL		0
   12571 #  endif
   12572 #endif
   12573 
   12574 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   12575    find out it does not work in some platform. */
   12576 #ifndef LT_DLLAZY_OR_NOW
   12577 #  ifdef RTLD_LAZY
   12578 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   12579 #  else
   12580 #    ifdef DL_LAZY
   12581 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   12582 #    else
   12583 #      ifdef RTLD_NOW
   12584 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   12585 #      else
   12586 #        ifdef DL_NOW
   12587 #          define LT_DLLAZY_OR_NOW	DL_NOW
   12588 #        else
   12589 #          define LT_DLLAZY_OR_NOW	0
   12590 #        endif
   12591 #      endif
   12592 #    endif
   12593 #  endif
   12594 #endif
   12595 
   12596 /* When -fvisibility=hidden is used, assume the code has been annotated
   12597    correspondingly for the symbols needed.  */
   12598 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   12599 int fnord () __attribute__((visibility("default")));
   12600 #endif
   12601 
   12602 int fnord () { return 42; }
   12603 int main ()
   12604 {
   12605   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   12606   int status = $lt_dlunknown;
   12607 
   12608   if (self)
   12609     {
   12610       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   12611       else
   12612         {
   12613 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   12614           else puts (dlerror ());
   12615 	}
   12616       /* dlclose (self); */
   12617     }
   12618   else
   12619     puts (dlerror ());
   12620 
   12621   return status;
   12622 }
   12623 _LT_EOF
   12624   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   12625   (eval $ac_link) 2>&5
   12626   ac_status=$?
   12627   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   12628   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
   12629     (./conftest; exit; ) >&5 2>/dev/null
   12630     lt_status=$?
   12631     case x$lt_status in
   12632       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
   12633       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
   12634       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
   12635     esac
   12636   else :
   12637     # compilation failed
   12638     lt_cv_dlopen_self_static=no
   12639   fi
   12640 fi
   12641 rm -fr conftest*
   12642 
   12643 
   12644 fi
   12645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
   12646 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
   12647     fi
   12648 
   12649     CPPFLAGS=$save_CPPFLAGS
   12650     LDFLAGS=$save_LDFLAGS
   12651     LIBS=$save_LIBS
   12652     ;;
   12653   esac
   12654 
   12655   case $lt_cv_dlopen_self in
   12656   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
   12657   *) enable_dlopen_self=unknown ;;
   12658   esac
   12659 
   12660   case $lt_cv_dlopen_self_static in
   12661   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
   12662   *) enable_dlopen_self_static=unknown ;;
   12663   esac
   12664 fi
   12665 
   12666 
   12667 
   12668 
   12669 
   12670 
   12671 
   12672 
   12673 
   12674 
   12675 
   12676 
   12677 
   12678 
   12679 
   12680 
   12681 
   12682 striplib=
   12683 old_striplib=
   12684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
   12685 printf %s "checking whether stripping libraries is possible... " >&6; }
   12686 if test -z "$STRIP"; then
   12687   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12688 printf "%s\n" "no" >&6; }
   12689 else
   12690   if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
   12691     old_striplib="$STRIP --strip-debug"
   12692     striplib="$STRIP --strip-unneeded"
   12693     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12694 printf "%s\n" "yes" >&6; }
   12695   else
   12696     case $host_os in
   12697     darwin*)
   12698       # FIXME - insert some real tests, host_os isn't really good enough
   12699       striplib="$STRIP -x"
   12700       old_striplib="$STRIP -S"
   12701       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12702 printf "%s\n" "yes" >&6; }
   12703       ;;
   12704     freebsd*)
   12705       if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
   12706         old_striplib="$STRIP --strip-debug"
   12707         striplib="$STRIP --strip-unneeded"
   12708         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12709 printf "%s\n" "yes" >&6; }
   12710       else
   12711         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12712 printf "%s\n" "no" >&6; }
   12713       fi
   12714       ;;
   12715     *)
   12716       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12717 printf "%s\n" "no" >&6; }
   12718       ;;
   12719     esac
   12720   fi
   12721 fi
   12722 
   12723 
   12724 
   12725 
   12726 
   12727 
   12728 
   12729 
   12730 
   12731 
   12732 
   12733 
   12734   # Report what library types will actually be built
   12735   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
   12736 printf %s "checking if libtool supports shared libraries... " >&6; }
   12737   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
   12738 printf "%s\n" "$can_build_shared" >&6; }
   12739 
   12740   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
   12741 printf %s "checking whether to build shared libraries... " >&6; }
   12742   test no = "$can_build_shared" && enable_shared=no
   12743 
   12744   # On AIX, shared libraries and static libraries use the same namespace, and
   12745   # are all built from PIC.
   12746   case $host_os in
   12747   aix3*)
   12748     test yes = "$enable_shared" && enable_static=no
   12749     if test -n "$RANLIB"; then
   12750       archive_cmds="$archive_cmds~\$RANLIB \$lib"
   12751       postinstall_cmds='$RANLIB $lib'
   12752     fi
   12753     ;;
   12754 
   12755   aix[4-9]*)
   12756     if test ia64 != "$host_cpu"; then
   12757       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
   12758       yes,aix,yes) ;;			# shared object as lib.so file only
   12759       yes,svr4,*) ;;			# shared object as lib.so archive member only
   12760       yes,*) enable_static=no ;;	# shared object in lib.a archive as well
   12761       esac
   12762     fi
   12763     ;;
   12764   esac
   12765   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
   12766 printf "%s\n" "$enable_shared" >&6; }
   12767 
   12768   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
   12769 printf %s "checking whether to build static libraries... " >&6; }
   12770   # Make sure either enable_shared or enable_static is yes.
   12771   test yes = "$enable_shared" || enable_static=yes
   12772   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
   12773 printf "%s\n" "$enable_static" >&6; }
   12774 
   12775 
   12776 
   12777 
   12778 fi
   12779 ac_ext=c
   12780 ac_cpp='$CPP $CPPFLAGS'
   12781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   12782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   12783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   12784 
   12785 CC=$lt_save_CC
   12786 
   12787 
   12788 
   12789 
   12790 
   12791 
   12792 
   12793 
   12794 
   12795 
   12796 
   12797 
   12798 
   12799 
   12800 
   12801         ac_config_commands="$ac_config_commands libtool"
   12802 
   12803 
   12804 
   12805 
   12806 # Only expand once:
   12807 
   12808 
   12809 
   12810 # Require xorg-macros: XORG_DEFAULT_OPTIONS, XORG_WITH_LINT
   12811 
   12812 
   12813 
   12814 
   12815 
   12816 
   12817 
   12818 
   12819 
   12820 
   12821 
   12822 
   12823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
   12824 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
   12825 if test ${ac_cv_c_undeclared_builtin_options+y}
   12826 then :
   12827   printf %s "(cached) " >&6
   12828 else $as_nop
   12829   ac_save_CFLAGS=$CFLAGS
   12830    ac_cv_c_undeclared_builtin_options='cannot detect'
   12831    for ac_arg in '' -fno-builtin; do
   12832      CFLAGS="$ac_save_CFLAGS $ac_arg"
   12833      # This test program should *not* compile successfully.
   12834      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12835 /* end confdefs.h.  */
   12836 
   12837 int
   12838 main (void)
   12839 {
   12840 (void) strchr;
   12841   ;
   12842   return 0;
   12843 }
   12844 _ACEOF
   12845 if ac_fn_c_try_compile "$LINENO"
   12846 then :
   12847 
   12848 else $as_nop
   12849   # This test program should compile successfully.
   12850         # No library function is consistently available on
   12851         # freestanding implementations, so test against a dummy
   12852         # declaration.  Include always-available headers on the
   12853         # off chance that they somehow elicit warnings.
   12854         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12855 /* end confdefs.h.  */
   12856 #include <float.h>
   12857 #include <limits.h>
   12858 #include <stdarg.h>
   12859 #include <stddef.h>
   12860 extern void ac_decl (int, char *);
   12861 
   12862 int
   12863 main (void)
   12864 {
   12865 (void) ac_decl (0, (char *) 0);
   12866   (void) ac_decl;
   12867 
   12868   ;
   12869   return 0;
   12870 }
   12871 _ACEOF
   12872 if ac_fn_c_try_compile "$LINENO"
   12873 then :
   12874   if test x"$ac_arg" = x
   12875 then :
   12876   ac_cv_c_undeclared_builtin_options='none needed'
   12877 else $as_nop
   12878   ac_cv_c_undeclared_builtin_options=$ac_arg
   12879 fi
   12880           break
   12881 fi
   12882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   12883 fi
   12884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   12885     done
   12886     CFLAGS=$ac_save_CFLAGS
   12887 
   12888 fi
   12889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
   12890 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
   12891   case $ac_cv_c_undeclared_builtin_options in #(
   12892   'cannot detect') :
   12893     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   12894 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   12895 as_fn_error $? "cannot make $CC report undeclared builtins
   12896 See \`config.log' for more details" "$LINENO" 5; } ;; #(
   12897   'none needed') :
   12898     ac_c_undeclared_builtin_options='' ;; #(
   12899   *) :
   12900     ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
   12901 esac
   12902 
   12903 
   12904 
   12905 
   12906 
   12907 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
   12908 if test "x$ac_cv_have_decl___clang__" = xyes
   12909 then :
   12910   CLANGCC="yes"
   12911 else $as_nop
   12912   CLANGCC="no"
   12913 fi
   12914 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
   12915 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
   12916 then :
   12917   INTELCC="yes"
   12918 else $as_nop
   12919   INTELCC="no"
   12920 fi
   12921 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
   12922 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
   12923 then :
   12924   SUNCC="yes"
   12925 else $as_nop
   12926   SUNCC="no"
   12927 fi
   12928 
   12929 
   12930 
   12931 
   12932 
   12933 
   12934 
   12935 
   12936 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
   12937 	if test -n "$ac_tool_prefix"; then
   12938   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
   12939 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
   12940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12941 printf %s "checking for $ac_word... " >&6; }
   12942 if test ${ac_cv_path_PKG_CONFIG+y}
   12943 then :
   12944   printf %s "(cached) " >&6
   12945 else $as_nop
   12946   case $PKG_CONFIG in
   12947   [\\/]* | ?:[\\/]*)
   12948   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
   12949   ;;
   12950   *)
   12951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12952 for as_dir in $PATH
   12953 do
   12954   IFS=$as_save_IFS
   12955   case $as_dir in #(((
   12956     '') as_dir=./ ;;
   12957     */) ;;
   12958     *) as_dir=$as_dir/ ;;
   12959   esac
   12960     for ac_exec_ext in '' $ac_executable_extensions; do
   12961   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   12962     ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
   12963     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   12964     break 2
   12965   fi
   12966 done
   12967   done
   12968 IFS=$as_save_IFS
   12969 
   12970   ;;
   12971 esac
   12972 fi
   12973 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
   12974 if test -n "$PKG_CONFIG"; then
   12975   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
   12976 printf "%s\n" "$PKG_CONFIG" >&6; }
   12977 else
   12978   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12979 printf "%s\n" "no" >&6; }
   12980 fi
   12981 
   12982 
   12983 fi
   12984 if test -z "$ac_cv_path_PKG_CONFIG"; then
   12985   ac_pt_PKG_CONFIG=$PKG_CONFIG
   12986   # Extract the first word of "pkg-config", so it can be a program name with args.
   12987 set dummy pkg-config; ac_word=$2
   12988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12989 printf %s "checking for $ac_word... " >&6; }
   12990 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
   12991 then :
   12992   printf %s "(cached) " >&6
   12993 else $as_nop
   12994   case $ac_pt_PKG_CONFIG in
   12995   [\\/]* | ?:[\\/]*)
   12996   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
   12997   ;;
   12998   *)
   12999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13000 for as_dir in $PATH
   13001 do
   13002   IFS=$as_save_IFS
   13003   case $as_dir in #(((
   13004     '') as_dir=./ ;;
   13005     */) ;;
   13006     *) as_dir=$as_dir/ ;;
   13007   esac
   13008     for ac_exec_ext in '' $ac_executable_extensions; do
   13009   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   13010     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
   13011     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   13012     break 2
   13013   fi
   13014 done
   13015   done
   13016 IFS=$as_save_IFS
   13017 
   13018   ;;
   13019 esac
   13020 fi
   13021 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
   13022 if test -n "$ac_pt_PKG_CONFIG"; then
   13023   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
   13024 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
   13025 else
   13026   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13027 printf "%s\n" "no" >&6; }
   13028 fi
   13029 
   13030   if test "x$ac_pt_PKG_CONFIG" = x; then
   13031     PKG_CONFIG=""
   13032   else
   13033     case $cross_compiling:$ac_tool_warned in
   13034 yes:)
   13035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   13036 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   13037 ac_tool_warned=yes ;;
   13038 esac
   13039     PKG_CONFIG=$ac_pt_PKG_CONFIG
   13040   fi
   13041 else
   13042   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
   13043 fi
   13044 
   13045 fi
   13046 if test -n "$PKG_CONFIG"; then
   13047 	_pkg_min_version=0.9.0
   13048 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
   13049 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
   13050 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
   13051 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13052 printf "%s\n" "yes" >&6; }
   13053 	else
   13054 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13055 printf "%s\n" "no" >&6; }
   13056 		PKG_CONFIG=""
   13057 	fi
   13058 fi
   13059 
   13060 
   13061 
   13062 
   13063 
   13064 # Check whether --enable-selective-werror was given.
   13065 if test ${enable_selective_werror+y}
   13066 then :
   13067   enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
   13068 else $as_nop
   13069   SELECTIVE_WERROR=yes
   13070 fi
   13071 
   13072 
   13073 
   13074 
   13075 
   13076 # -v is too short to test reliably with XORG_TESTSET_CFLAG
   13077 if test "x$SUNCC" = "xyes"; then
   13078     BASE_CFLAGS="-v"
   13079 else
   13080     BASE_CFLAGS=""
   13081 fi
   13082 
   13083 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
   13084 
   13085 
   13086 
   13087 
   13088 
   13089 
   13090 
   13091 
   13092 
   13093 
   13094 
   13095 
   13096 
   13097 xorg_testset_save_CFLAGS="$CFLAGS"
   13098 
   13099 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   13100 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   13101 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   13102 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   13103 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   13104 then :
   13105   printf %s "(cached) " >&6
   13106 else $as_nop
   13107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13108 /* end confdefs.h.  */
   13109 int i;
   13110 _ACEOF
   13111 if ac_fn_c_try_compile "$LINENO"
   13112 then :
   13113   xorg_cv_cc_flag_unknown_warning_option=yes
   13114 else $as_nop
   13115   xorg_cv_cc_flag_unknown_warning_option=no
   13116 fi
   13117 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   13118 fi
   13119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   13120 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   13121 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   13122 	CFLAGS="$xorg_testset_save_CFLAGS"
   13123 fi
   13124 
   13125 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   13126 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   13127 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   13128 	fi
   13129 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   13130 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   13131 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   13132 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   13133 then :
   13134   printf %s "(cached) " >&6
   13135 else $as_nop
   13136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13137 /* end confdefs.h.  */
   13138 int i;
   13139 _ACEOF
   13140 if ac_fn_c_try_compile "$LINENO"
   13141 then :
   13142   xorg_cv_cc_flag_unused_command_line_argument=yes
   13143 else $as_nop
   13144   xorg_cv_cc_flag_unused_command_line_argument=no
   13145 fi
   13146 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   13147 fi
   13148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   13149 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   13150 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   13151 	CFLAGS="$xorg_testset_save_CFLAGS"
   13152 fi
   13153 
   13154 found="no"
   13155 
   13156 	if test $found = "no" ; then
   13157 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   13158 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   13159 		fi
   13160 
   13161 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   13162 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   13163 		fi
   13164 
   13165 		CFLAGS="$CFLAGS -Wall"
   13166 
   13167 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
   13168 printf %s "checking if $CC supports -Wall... " >&6; }
   13169 		cacheid=xorg_cv_cc_flag__Wall
   13170 		if eval test \${$cacheid+y}
   13171 then :
   13172   printf %s "(cached) " >&6
   13173 else $as_nop
   13174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13175 /* end confdefs.h.  */
   13176 int i;
   13177 int
   13178 main (void)
   13179 {
   13180 
   13181   ;
   13182   return 0;
   13183 }
   13184 _ACEOF
   13185 if ac_fn_c_try_link "$LINENO"
   13186 then :
   13187   eval $cacheid=yes
   13188 else $as_nop
   13189   eval $cacheid=no
   13190 fi
   13191 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   13192     conftest$ac_exeext conftest.$ac_ext
   13193 fi
   13194 
   13195 
   13196 		CFLAGS="$xorg_testset_save_CFLAGS"
   13197 
   13198 		eval supported=\$$cacheid
   13199 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   13200 printf "%s\n" "$supported" >&6; }
   13201 		if test "$supported" = "yes" ; then
   13202 			BASE_CFLAGS="$BASE_CFLAGS -Wall"
   13203 			found="yes"
   13204 		fi
   13205 	fi
   13206 
   13207 
   13208 
   13209 
   13210 
   13211 
   13212 
   13213 
   13214 
   13215 
   13216 
   13217 
   13218 
   13219 
   13220 
   13221 xorg_testset_save_CFLAGS="$CFLAGS"
   13222 
   13223 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   13224 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   13225 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   13226 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   13227 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   13228 then :
   13229   printf %s "(cached) " >&6
   13230 else $as_nop
   13231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13232 /* end confdefs.h.  */
   13233 int i;
   13234 _ACEOF
   13235 if ac_fn_c_try_compile "$LINENO"
   13236 then :
   13237   xorg_cv_cc_flag_unknown_warning_option=yes
   13238 else $as_nop
   13239   xorg_cv_cc_flag_unknown_warning_option=no
   13240 fi
   13241 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   13242 fi
   13243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   13244 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   13245 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   13246 	CFLAGS="$xorg_testset_save_CFLAGS"
   13247 fi
   13248 
   13249 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   13250 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   13251 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   13252 	fi
   13253 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   13254 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   13255 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   13256 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   13257 then :
   13258   printf %s "(cached) " >&6
   13259 else $as_nop
   13260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13261 /* end confdefs.h.  */
   13262 int i;
   13263 _ACEOF
   13264 if ac_fn_c_try_compile "$LINENO"
   13265 then :
   13266   xorg_cv_cc_flag_unused_command_line_argument=yes
   13267 else $as_nop
   13268   xorg_cv_cc_flag_unused_command_line_argument=no
   13269 fi
   13270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   13271 fi
   13272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   13273 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   13274 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   13275 	CFLAGS="$xorg_testset_save_CFLAGS"
   13276 fi
   13277 
   13278 found="no"
   13279 
   13280 	if test $found = "no" ; then
   13281 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   13282 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   13283 		fi
   13284 
   13285 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   13286 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   13287 		fi
   13288 
   13289 		CFLAGS="$CFLAGS -Wpointer-arith"
   13290 
   13291 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
   13292 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
   13293 		cacheid=xorg_cv_cc_flag__Wpointer_arith
   13294 		if eval test \${$cacheid+y}
   13295 then :
   13296   printf %s "(cached) " >&6
   13297 else $as_nop
   13298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13299 /* end confdefs.h.  */
   13300 int i;
   13301 int
   13302 main (void)
   13303 {
   13304 
   13305   ;
   13306   return 0;
   13307 }
   13308 _ACEOF
   13309 if ac_fn_c_try_link "$LINENO"
   13310 then :
   13311   eval $cacheid=yes
   13312 else $as_nop
   13313   eval $cacheid=no
   13314 fi
   13315 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   13316     conftest$ac_exeext conftest.$ac_ext
   13317 fi
   13318 
   13319 
   13320 		CFLAGS="$xorg_testset_save_CFLAGS"
   13321 
   13322 		eval supported=\$$cacheid
   13323 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   13324 printf "%s\n" "$supported" >&6; }
   13325 		if test "$supported" = "yes" ; then
   13326 			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
   13327 			found="yes"
   13328 		fi
   13329 	fi
   13330 
   13331 
   13332 
   13333 
   13334 
   13335 
   13336 
   13337 
   13338 
   13339 
   13340 
   13341 
   13342 
   13343 
   13344 
   13345 xorg_testset_save_CFLAGS="$CFLAGS"
   13346 
   13347 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   13348 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   13349 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   13350 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   13351 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   13352 then :
   13353   printf %s "(cached) " >&6
   13354 else $as_nop
   13355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13356 /* end confdefs.h.  */
   13357 int i;
   13358 _ACEOF
   13359 if ac_fn_c_try_compile "$LINENO"
   13360 then :
   13361   xorg_cv_cc_flag_unknown_warning_option=yes
   13362 else $as_nop
   13363   xorg_cv_cc_flag_unknown_warning_option=no
   13364 fi
   13365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   13366 fi
   13367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   13368 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   13369 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   13370 	CFLAGS="$xorg_testset_save_CFLAGS"
   13371 fi
   13372 
   13373 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   13374 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   13375 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   13376 	fi
   13377 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   13378 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   13379 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   13380 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   13381 then :
   13382   printf %s "(cached) " >&6
   13383 else $as_nop
   13384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13385 /* end confdefs.h.  */
   13386 int i;
   13387 _ACEOF
   13388 if ac_fn_c_try_compile "$LINENO"
   13389 then :
   13390   xorg_cv_cc_flag_unused_command_line_argument=yes
   13391 else $as_nop
   13392   xorg_cv_cc_flag_unused_command_line_argument=no
   13393 fi
   13394 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   13395 fi
   13396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   13397 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   13398 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   13399 	CFLAGS="$xorg_testset_save_CFLAGS"
   13400 fi
   13401 
   13402 found="no"
   13403 
   13404 	if test $found = "no" ; then
   13405 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   13406 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   13407 		fi
   13408 
   13409 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   13410 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   13411 		fi
   13412 
   13413 		CFLAGS="$CFLAGS -Wmissing-declarations"
   13414 
   13415 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
   13416 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
   13417 		cacheid=xorg_cv_cc_flag__Wmissing_declarations
   13418 		if eval test \${$cacheid+y}
   13419 then :
   13420   printf %s "(cached) " >&6
   13421 else $as_nop
   13422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13423 /* end confdefs.h.  */
   13424 int i;
   13425 int
   13426 main (void)
   13427 {
   13428 
   13429   ;
   13430   return 0;
   13431 }
   13432 _ACEOF
   13433 if ac_fn_c_try_link "$LINENO"
   13434 then :
   13435   eval $cacheid=yes
   13436 else $as_nop
   13437   eval $cacheid=no
   13438 fi
   13439 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   13440     conftest$ac_exeext conftest.$ac_ext
   13441 fi
   13442 
   13443 
   13444 		CFLAGS="$xorg_testset_save_CFLAGS"
   13445 
   13446 		eval supported=\$$cacheid
   13447 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   13448 printf "%s\n" "$supported" >&6; }
   13449 		if test "$supported" = "yes" ; then
   13450 			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
   13451 			found="yes"
   13452 		fi
   13453 	fi
   13454 
   13455 
   13456 
   13457 
   13458 
   13459 
   13460 
   13461 
   13462 
   13463 
   13464 
   13465 
   13466 
   13467 
   13468 
   13469 xorg_testset_save_CFLAGS="$CFLAGS"
   13470 
   13471 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   13472 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   13473 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   13474 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   13475 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   13476 then :
   13477   printf %s "(cached) " >&6
   13478 else $as_nop
   13479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13480 /* end confdefs.h.  */
   13481 int i;
   13482 _ACEOF
   13483 if ac_fn_c_try_compile "$LINENO"
   13484 then :
   13485   xorg_cv_cc_flag_unknown_warning_option=yes
   13486 else $as_nop
   13487   xorg_cv_cc_flag_unknown_warning_option=no
   13488 fi
   13489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   13490 fi
   13491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   13492 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   13493 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   13494 	CFLAGS="$xorg_testset_save_CFLAGS"
   13495 fi
   13496 
   13497 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   13498 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   13499 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   13500 	fi
   13501 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   13502 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   13503 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   13504 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   13505 then :
   13506   printf %s "(cached) " >&6
   13507 else $as_nop
   13508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13509 /* end confdefs.h.  */
   13510 int i;
   13511 _ACEOF
   13512 if ac_fn_c_try_compile "$LINENO"
   13513 then :
   13514   xorg_cv_cc_flag_unused_command_line_argument=yes
   13515 else $as_nop
   13516   xorg_cv_cc_flag_unused_command_line_argument=no
   13517 fi
   13518 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   13519 fi
   13520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   13521 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   13522 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   13523 	CFLAGS="$xorg_testset_save_CFLAGS"
   13524 fi
   13525 
   13526 found="no"
   13527 
   13528 	if test $found = "no" ; then
   13529 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   13530 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   13531 		fi
   13532 
   13533 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   13534 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   13535 		fi
   13536 
   13537 		CFLAGS="$CFLAGS -Wformat=2"
   13538 
   13539 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
   13540 printf %s "checking if $CC supports -Wformat=2... " >&6; }
   13541 		cacheid=xorg_cv_cc_flag__Wformat_2
   13542 		if eval test \${$cacheid+y}
   13543 then :
   13544   printf %s "(cached) " >&6
   13545 else $as_nop
   13546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13547 /* end confdefs.h.  */
   13548 int i;
   13549 int
   13550 main (void)
   13551 {
   13552 
   13553   ;
   13554   return 0;
   13555 }
   13556 _ACEOF
   13557 if ac_fn_c_try_link "$LINENO"
   13558 then :
   13559   eval $cacheid=yes
   13560 else $as_nop
   13561   eval $cacheid=no
   13562 fi
   13563 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   13564     conftest$ac_exeext conftest.$ac_ext
   13565 fi
   13566 
   13567 
   13568 		CFLAGS="$xorg_testset_save_CFLAGS"
   13569 
   13570 		eval supported=\$$cacheid
   13571 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   13572 printf "%s\n" "$supported" >&6; }
   13573 		if test "$supported" = "yes" ; then
   13574 			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
   13575 			found="yes"
   13576 		fi
   13577 	fi
   13578 
   13579 	if test $found = "no" ; then
   13580 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   13581 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   13582 		fi
   13583 
   13584 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   13585 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   13586 		fi
   13587 
   13588 		CFLAGS="$CFLAGS -Wformat"
   13589 
   13590 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
   13591 printf %s "checking if $CC supports -Wformat... " >&6; }
   13592 		cacheid=xorg_cv_cc_flag__Wformat
   13593 		if eval test \${$cacheid+y}
   13594 then :
   13595   printf %s "(cached) " >&6
   13596 else $as_nop
   13597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13598 /* end confdefs.h.  */
   13599 int i;
   13600 int
   13601 main (void)
   13602 {
   13603 
   13604   ;
   13605   return 0;
   13606 }
   13607 _ACEOF
   13608 if ac_fn_c_try_link "$LINENO"
   13609 then :
   13610   eval $cacheid=yes
   13611 else $as_nop
   13612   eval $cacheid=no
   13613 fi
   13614 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   13615     conftest$ac_exeext conftest.$ac_ext
   13616 fi
   13617 
   13618 
   13619 		CFLAGS="$xorg_testset_save_CFLAGS"
   13620 
   13621 		eval supported=\$$cacheid
   13622 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   13623 printf "%s\n" "$supported" >&6; }
   13624 		if test "$supported" = "yes" ; then
   13625 			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
   13626 			found="yes"
   13627 		fi
   13628 	fi
   13629 
   13630 
   13631 
   13632 
   13633 
   13634 
   13635 
   13636 
   13637 
   13638 
   13639 
   13640 
   13641 
   13642 
   13643 
   13644 
   13645 
   13646 xorg_testset_save_CFLAGS="$CFLAGS"
   13647 
   13648 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   13649 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   13650 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   13651 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   13652 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   13653 then :
   13654   printf %s "(cached) " >&6
   13655 else $as_nop
   13656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13657 /* end confdefs.h.  */
   13658 int i;
   13659 _ACEOF
   13660 if ac_fn_c_try_compile "$LINENO"
   13661 then :
   13662   xorg_cv_cc_flag_unknown_warning_option=yes
   13663 else $as_nop
   13664   xorg_cv_cc_flag_unknown_warning_option=no
   13665 fi
   13666 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   13667 fi
   13668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   13669 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   13670 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   13671 	CFLAGS="$xorg_testset_save_CFLAGS"
   13672 fi
   13673 
   13674 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   13675 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   13676 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   13677 	fi
   13678 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   13679 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   13680 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   13681 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   13682 then :
   13683   printf %s "(cached) " >&6
   13684 else $as_nop
   13685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13686 /* end confdefs.h.  */
   13687 int i;
   13688 _ACEOF
   13689 if ac_fn_c_try_compile "$LINENO"
   13690 then :
   13691   xorg_cv_cc_flag_unused_command_line_argument=yes
   13692 else $as_nop
   13693   xorg_cv_cc_flag_unused_command_line_argument=no
   13694 fi
   13695 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   13696 fi
   13697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   13698 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   13699 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   13700 	CFLAGS="$xorg_testset_save_CFLAGS"
   13701 fi
   13702 
   13703 found="no"
   13704 
   13705 	if test $found = "no" ; then
   13706 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   13707 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   13708 		fi
   13709 
   13710 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   13711 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   13712 		fi
   13713 
   13714 		CFLAGS="$CFLAGS -Wstrict-prototypes"
   13715 
   13716 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
   13717 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
   13718 		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
   13719 		if eval test \${$cacheid+y}
   13720 then :
   13721   printf %s "(cached) " >&6
   13722 else $as_nop
   13723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13724 /* end confdefs.h.  */
   13725 int i;
   13726 int
   13727 main (void)
   13728 {
   13729 
   13730   ;
   13731   return 0;
   13732 }
   13733 _ACEOF
   13734 if ac_fn_c_try_link "$LINENO"
   13735 then :
   13736   eval $cacheid=yes
   13737 else $as_nop
   13738   eval $cacheid=no
   13739 fi
   13740 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   13741     conftest$ac_exeext conftest.$ac_ext
   13742 fi
   13743 
   13744 
   13745 		CFLAGS="$xorg_testset_save_CFLAGS"
   13746 
   13747 		eval supported=\$$cacheid
   13748 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   13749 printf "%s\n" "$supported" >&6; }
   13750 		if test "$supported" = "yes" ; then
   13751 			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
   13752 			found="yes"
   13753 		fi
   13754 	fi
   13755 
   13756 
   13757 
   13758 
   13759 
   13760 
   13761 
   13762 
   13763 
   13764 
   13765 
   13766 
   13767 
   13768 
   13769 
   13770 xorg_testset_save_CFLAGS="$CFLAGS"
   13771 
   13772 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   13773 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   13774 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   13775 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   13776 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   13777 then :
   13778   printf %s "(cached) " >&6
   13779 else $as_nop
   13780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13781 /* end confdefs.h.  */
   13782 int i;
   13783 _ACEOF
   13784 if ac_fn_c_try_compile "$LINENO"
   13785 then :
   13786   xorg_cv_cc_flag_unknown_warning_option=yes
   13787 else $as_nop
   13788   xorg_cv_cc_flag_unknown_warning_option=no
   13789 fi
   13790 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   13791 fi
   13792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   13793 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   13794 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   13795 	CFLAGS="$xorg_testset_save_CFLAGS"
   13796 fi
   13797 
   13798 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   13799 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   13800 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   13801 	fi
   13802 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   13803 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   13804 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   13805 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   13806 then :
   13807   printf %s "(cached) " >&6
   13808 else $as_nop
   13809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13810 /* end confdefs.h.  */
   13811 int i;
   13812 _ACEOF
   13813 if ac_fn_c_try_compile "$LINENO"
   13814 then :
   13815   xorg_cv_cc_flag_unused_command_line_argument=yes
   13816 else $as_nop
   13817   xorg_cv_cc_flag_unused_command_line_argument=no
   13818 fi
   13819 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   13820 fi
   13821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   13822 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   13823 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   13824 	CFLAGS="$xorg_testset_save_CFLAGS"
   13825 fi
   13826 
   13827 found="no"
   13828 
   13829 	if test $found = "no" ; then
   13830 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   13831 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   13832 		fi
   13833 
   13834 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   13835 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   13836 		fi
   13837 
   13838 		CFLAGS="$CFLAGS -Wmissing-prototypes"
   13839 
   13840 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
   13841 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
   13842 		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
   13843 		if eval test \${$cacheid+y}
   13844 then :
   13845   printf %s "(cached) " >&6
   13846 else $as_nop
   13847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13848 /* end confdefs.h.  */
   13849 int i;
   13850 int
   13851 main (void)
   13852 {
   13853 
   13854   ;
   13855   return 0;
   13856 }
   13857 _ACEOF
   13858 if ac_fn_c_try_link "$LINENO"
   13859 then :
   13860   eval $cacheid=yes
   13861 else $as_nop
   13862   eval $cacheid=no
   13863 fi
   13864 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   13865     conftest$ac_exeext conftest.$ac_ext
   13866 fi
   13867 
   13868 
   13869 		CFLAGS="$xorg_testset_save_CFLAGS"
   13870 
   13871 		eval supported=\$$cacheid
   13872 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   13873 printf "%s\n" "$supported" >&6; }
   13874 		if test "$supported" = "yes" ; then
   13875 			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
   13876 			found="yes"
   13877 		fi
   13878 	fi
   13879 
   13880 
   13881 
   13882 
   13883 
   13884 
   13885 
   13886 
   13887 
   13888 
   13889 
   13890 
   13891 
   13892 
   13893 
   13894 xorg_testset_save_CFLAGS="$CFLAGS"
   13895 
   13896 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   13897 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   13898 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   13899 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   13900 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   13901 then :
   13902   printf %s "(cached) " >&6
   13903 else $as_nop
   13904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13905 /* end confdefs.h.  */
   13906 int i;
   13907 _ACEOF
   13908 if ac_fn_c_try_compile "$LINENO"
   13909 then :
   13910   xorg_cv_cc_flag_unknown_warning_option=yes
   13911 else $as_nop
   13912   xorg_cv_cc_flag_unknown_warning_option=no
   13913 fi
   13914 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   13915 fi
   13916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   13917 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   13918 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   13919 	CFLAGS="$xorg_testset_save_CFLAGS"
   13920 fi
   13921 
   13922 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   13923 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   13924 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   13925 	fi
   13926 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   13927 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   13928 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   13929 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   13930 then :
   13931   printf %s "(cached) " >&6
   13932 else $as_nop
   13933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13934 /* end confdefs.h.  */
   13935 int i;
   13936 _ACEOF
   13937 if ac_fn_c_try_compile "$LINENO"
   13938 then :
   13939   xorg_cv_cc_flag_unused_command_line_argument=yes
   13940 else $as_nop
   13941   xorg_cv_cc_flag_unused_command_line_argument=no
   13942 fi
   13943 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   13944 fi
   13945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   13946 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   13947 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   13948 	CFLAGS="$xorg_testset_save_CFLAGS"
   13949 fi
   13950 
   13951 found="no"
   13952 
   13953 	if test $found = "no" ; then
   13954 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   13955 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   13956 		fi
   13957 
   13958 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   13959 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   13960 		fi
   13961 
   13962 		CFLAGS="$CFLAGS -Wnested-externs"
   13963 
   13964 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
   13965 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
   13966 		cacheid=xorg_cv_cc_flag__Wnested_externs
   13967 		if eval test \${$cacheid+y}
   13968 then :
   13969   printf %s "(cached) " >&6
   13970 else $as_nop
   13971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13972 /* end confdefs.h.  */
   13973 int i;
   13974 int
   13975 main (void)
   13976 {
   13977 
   13978   ;
   13979   return 0;
   13980 }
   13981 _ACEOF
   13982 if ac_fn_c_try_link "$LINENO"
   13983 then :
   13984   eval $cacheid=yes
   13985 else $as_nop
   13986   eval $cacheid=no
   13987 fi
   13988 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   13989     conftest$ac_exeext conftest.$ac_ext
   13990 fi
   13991 
   13992 
   13993 		CFLAGS="$xorg_testset_save_CFLAGS"
   13994 
   13995 		eval supported=\$$cacheid
   13996 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   13997 printf "%s\n" "$supported" >&6; }
   13998 		if test "$supported" = "yes" ; then
   13999 			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
   14000 			found="yes"
   14001 		fi
   14002 	fi
   14003 
   14004 
   14005 
   14006 
   14007 
   14008 
   14009 
   14010 
   14011 
   14012 
   14013 
   14014 
   14015 
   14016 
   14017 
   14018 xorg_testset_save_CFLAGS="$CFLAGS"
   14019 
   14020 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   14021 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   14022 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   14023 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   14024 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   14025 then :
   14026   printf %s "(cached) " >&6
   14027 else $as_nop
   14028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14029 /* end confdefs.h.  */
   14030 int i;
   14031 _ACEOF
   14032 if ac_fn_c_try_compile "$LINENO"
   14033 then :
   14034   xorg_cv_cc_flag_unknown_warning_option=yes
   14035 else $as_nop
   14036   xorg_cv_cc_flag_unknown_warning_option=no
   14037 fi
   14038 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   14039 fi
   14040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   14041 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   14042 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   14043 	CFLAGS="$xorg_testset_save_CFLAGS"
   14044 fi
   14045 
   14046 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   14047 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   14048 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   14049 	fi
   14050 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   14051 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   14052 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   14053 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   14054 then :
   14055   printf %s "(cached) " >&6
   14056 else $as_nop
   14057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14058 /* end confdefs.h.  */
   14059 int i;
   14060 _ACEOF
   14061 if ac_fn_c_try_compile "$LINENO"
   14062 then :
   14063   xorg_cv_cc_flag_unused_command_line_argument=yes
   14064 else $as_nop
   14065   xorg_cv_cc_flag_unused_command_line_argument=no
   14066 fi
   14067 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   14068 fi
   14069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   14070 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   14071 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   14072 	CFLAGS="$xorg_testset_save_CFLAGS"
   14073 fi
   14074 
   14075 found="no"
   14076 
   14077 	if test $found = "no" ; then
   14078 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   14079 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   14080 		fi
   14081 
   14082 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   14083 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   14084 		fi
   14085 
   14086 		CFLAGS="$CFLAGS -Wbad-function-cast"
   14087 
   14088 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
   14089 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
   14090 		cacheid=xorg_cv_cc_flag__Wbad_function_cast
   14091 		if eval test \${$cacheid+y}
   14092 then :
   14093   printf %s "(cached) " >&6
   14094 else $as_nop
   14095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14096 /* end confdefs.h.  */
   14097 int i;
   14098 int
   14099 main (void)
   14100 {
   14101 
   14102   ;
   14103   return 0;
   14104 }
   14105 _ACEOF
   14106 if ac_fn_c_try_link "$LINENO"
   14107 then :
   14108   eval $cacheid=yes
   14109 else $as_nop
   14110   eval $cacheid=no
   14111 fi
   14112 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   14113     conftest$ac_exeext conftest.$ac_ext
   14114 fi
   14115 
   14116 
   14117 		CFLAGS="$xorg_testset_save_CFLAGS"
   14118 
   14119 		eval supported=\$$cacheid
   14120 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   14121 printf "%s\n" "$supported" >&6; }
   14122 		if test "$supported" = "yes" ; then
   14123 			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
   14124 			found="yes"
   14125 		fi
   14126 	fi
   14127 
   14128 
   14129 
   14130 
   14131 
   14132 
   14133 
   14134 
   14135 
   14136 
   14137 
   14138 
   14139 
   14140 
   14141 
   14142 xorg_testset_save_CFLAGS="$CFLAGS"
   14143 
   14144 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   14145 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   14146 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   14147 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   14148 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   14149 then :
   14150   printf %s "(cached) " >&6
   14151 else $as_nop
   14152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14153 /* end confdefs.h.  */
   14154 int i;
   14155 _ACEOF
   14156 if ac_fn_c_try_compile "$LINENO"
   14157 then :
   14158   xorg_cv_cc_flag_unknown_warning_option=yes
   14159 else $as_nop
   14160   xorg_cv_cc_flag_unknown_warning_option=no
   14161 fi
   14162 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   14163 fi
   14164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   14165 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   14166 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   14167 	CFLAGS="$xorg_testset_save_CFLAGS"
   14168 fi
   14169 
   14170 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   14171 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   14172 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   14173 	fi
   14174 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   14175 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   14176 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   14177 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   14178 then :
   14179   printf %s "(cached) " >&6
   14180 else $as_nop
   14181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14182 /* end confdefs.h.  */
   14183 int i;
   14184 _ACEOF
   14185 if ac_fn_c_try_compile "$LINENO"
   14186 then :
   14187   xorg_cv_cc_flag_unused_command_line_argument=yes
   14188 else $as_nop
   14189   xorg_cv_cc_flag_unused_command_line_argument=no
   14190 fi
   14191 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   14192 fi
   14193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   14194 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   14195 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   14196 	CFLAGS="$xorg_testset_save_CFLAGS"
   14197 fi
   14198 
   14199 found="no"
   14200 
   14201 	if test $found = "no" ; then
   14202 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   14203 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   14204 		fi
   14205 
   14206 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   14207 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   14208 		fi
   14209 
   14210 		CFLAGS="$CFLAGS -Wold-style-definition"
   14211 
   14212 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
   14213 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
   14214 		cacheid=xorg_cv_cc_flag__Wold_style_definition
   14215 		if eval test \${$cacheid+y}
   14216 then :
   14217   printf %s "(cached) " >&6
   14218 else $as_nop
   14219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14220 /* end confdefs.h.  */
   14221 int i;
   14222 int
   14223 main (void)
   14224 {
   14225 
   14226   ;
   14227   return 0;
   14228 }
   14229 _ACEOF
   14230 if ac_fn_c_try_link "$LINENO"
   14231 then :
   14232   eval $cacheid=yes
   14233 else $as_nop
   14234   eval $cacheid=no
   14235 fi
   14236 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   14237     conftest$ac_exeext conftest.$ac_ext
   14238 fi
   14239 
   14240 
   14241 		CFLAGS="$xorg_testset_save_CFLAGS"
   14242 
   14243 		eval supported=\$$cacheid
   14244 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   14245 printf "%s\n" "$supported" >&6; }
   14246 		if test "$supported" = "yes" ; then
   14247 			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
   14248 			found="yes"
   14249 		fi
   14250 	fi
   14251 
   14252 	if test $found = "no" ; then
   14253 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   14254 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   14255 		fi
   14256 
   14257 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   14258 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   14259 		fi
   14260 
   14261 		CFLAGS="$CFLAGS -fd"
   14262 
   14263 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
   14264 printf %s "checking if $CC supports -fd... " >&6; }
   14265 		cacheid=xorg_cv_cc_flag__fd
   14266 		if eval test \${$cacheid+y}
   14267 then :
   14268   printf %s "(cached) " >&6
   14269 else $as_nop
   14270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14271 /* end confdefs.h.  */
   14272 int i;
   14273 int
   14274 main (void)
   14275 {
   14276 
   14277   ;
   14278   return 0;
   14279 }
   14280 _ACEOF
   14281 if ac_fn_c_try_link "$LINENO"
   14282 then :
   14283   eval $cacheid=yes
   14284 else $as_nop
   14285   eval $cacheid=no
   14286 fi
   14287 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   14288     conftest$ac_exeext conftest.$ac_ext
   14289 fi
   14290 
   14291 
   14292 		CFLAGS="$xorg_testset_save_CFLAGS"
   14293 
   14294 		eval supported=\$$cacheid
   14295 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   14296 printf "%s\n" "$supported" >&6; }
   14297 		if test "$supported" = "yes" ; then
   14298 			BASE_CFLAGS="$BASE_CFLAGS -fd"
   14299 			found="yes"
   14300 		fi
   14301 	fi
   14302 
   14303 
   14304 
   14305 
   14306 
   14307 
   14308 
   14309 
   14310 
   14311 
   14312 
   14313 
   14314 
   14315 
   14316 
   14317 xorg_testset_save_CFLAGS="$CFLAGS"
   14318 
   14319 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   14320 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   14321 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   14322 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   14323 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   14324 then :
   14325   printf %s "(cached) " >&6
   14326 else $as_nop
   14327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14328 /* end confdefs.h.  */
   14329 int i;
   14330 _ACEOF
   14331 if ac_fn_c_try_compile "$LINENO"
   14332 then :
   14333   xorg_cv_cc_flag_unknown_warning_option=yes
   14334 else $as_nop
   14335   xorg_cv_cc_flag_unknown_warning_option=no
   14336 fi
   14337 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   14338 fi
   14339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   14340 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   14341 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   14342 	CFLAGS="$xorg_testset_save_CFLAGS"
   14343 fi
   14344 
   14345 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   14346 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   14347 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   14348 	fi
   14349 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   14350 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   14351 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   14352 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   14353 then :
   14354   printf %s "(cached) " >&6
   14355 else $as_nop
   14356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14357 /* end confdefs.h.  */
   14358 int i;
   14359 _ACEOF
   14360 if ac_fn_c_try_compile "$LINENO"
   14361 then :
   14362   xorg_cv_cc_flag_unused_command_line_argument=yes
   14363 else $as_nop
   14364   xorg_cv_cc_flag_unused_command_line_argument=no
   14365 fi
   14366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   14367 fi
   14368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   14369 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   14370 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   14371 	CFLAGS="$xorg_testset_save_CFLAGS"
   14372 fi
   14373 
   14374 found="no"
   14375 
   14376 	if test $found = "no" ; then
   14377 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   14378 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   14379 		fi
   14380 
   14381 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   14382 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   14383 		fi
   14384 
   14385 		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
   14386 
   14387 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
   14388 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
   14389 		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
   14390 		if eval test \${$cacheid+y}
   14391 then :
   14392   printf %s "(cached) " >&6
   14393 else $as_nop
   14394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14395 /* end confdefs.h.  */
   14396 int i;
   14397 int
   14398 main (void)
   14399 {
   14400 
   14401   ;
   14402   return 0;
   14403 }
   14404 _ACEOF
   14405 if ac_fn_c_try_link "$LINENO"
   14406 then :
   14407   eval $cacheid=yes
   14408 else $as_nop
   14409   eval $cacheid=no
   14410 fi
   14411 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   14412     conftest$ac_exeext conftest.$ac_ext
   14413 fi
   14414 
   14415 
   14416 		CFLAGS="$xorg_testset_save_CFLAGS"
   14417 
   14418 		eval supported=\$$cacheid
   14419 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   14420 printf "%s\n" "$supported" >&6; }
   14421 		if test "$supported" = "yes" ; then
   14422 			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
   14423 			found="yes"
   14424 		fi
   14425 	fi
   14426 
   14427 
   14428 
   14429 
   14430 
   14431 # This chunk adds additional warnings that could catch undesired effects.
   14432 
   14433 
   14434 
   14435 
   14436 
   14437 
   14438 
   14439 
   14440 
   14441 
   14442 
   14443 
   14444 
   14445 xorg_testset_save_CFLAGS="$CFLAGS"
   14446 
   14447 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   14448 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   14449 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   14450 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   14451 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   14452 then :
   14453   printf %s "(cached) " >&6
   14454 else $as_nop
   14455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14456 /* end confdefs.h.  */
   14457 int i;
   14458 _ACEOF
   14459 if ac_fn_c_try_compile "$LINENO"
   14460 then :
   14461   xorg_cv_cc_flag_unknown_warning_option=yes
   14462 else $as_nop
   14463   xorg_cv_cc_flag_unknown_warning_option=no
   14464 fi
   14465 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   14466 fi
   14467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   14468 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   14469 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   14470 	CFLAGS="$xorg_testset_save_CFLAGS"
   14471 fi
   14472 
   14473 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   14474 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   14475 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   14476 	fi
   14477 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   14478 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   14479 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   14480 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   14481 then :
   14482   printf %s "(cached) " >&6
   14483 else $as_nop
   14484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14485 /* end confdefs.h.  */
   14486 int i;
   14487 _ACEOF
   14488 if ac_fn_c_try_compile "$LINENO"
   14489 then :
   14490   xorg_cv_cc_flag_unused_command_line_argument=yes
   14491 else $as_nop
   14492   xorg_cv_cc_flag_unused_command_line_argument=no
   14493 fi
   14494 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   14495 fi
   14496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   14497 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   14498 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   14499 	CFLAGS="$xorg_testset_save_CFLAGS"
   14500 fi
   14501 
   14502 found="no"
   14503 
   14504 	if test $found = "no" ; then
   14505 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   14506 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   14507 		fi
   14508 
   14509 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   14510 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   14511 		fi
   14512 
   14513 		CFLAGS="$CFLAGS -Wunused"
   14514 
   14515 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
   14516 printf %s "checking if $CC supports -Wunused... " >&6; }
   14517 		cacheid=xorg_cv_cc_flag__Wunused
   14518 		if eval test \${$cacheid+y}
   14519 then :
   14520   printf %s "(cached) " >&6
   14521 else $as_nop
   14522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14523 /* end confdefs.h.  */
   14524 int i;
   14525 int
   14526 main (void)
   14527 {
   14528 
   14529   ;
   14530   return 0;
   14531 }
   14532 _ACEOF
   14533 if ac_fn_c_try_link "$LINENO"
   14534 then :
   14535   eval $cacheid=yes
   14536 else $as_nop
   14537   eval $cacheid=no
   14538 fi
   14539 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   14540     conftest$ac_exeext conftest.$ac_ext
   14541 fi
   14542 
   14543 
   14544 		CFLAGS="$xorg_testset_save_CFLAGS"
   14545 
   14546 		eval supported=\$$cacheid
   14547 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   14548 printf "%s\n" "$supported" >&6; }
   14549 		if test "$supported" = "yes" ; then
   14550 			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
   14551 			found="yes"
   14552 		fi
   14553 	fi
   14554 
   14555 
   14556 
   14557 
   14558 
   14559 
   14560 
   14561 
   14562 
   14563 
   14564 
   14565 
   14566 
   14567 
   14568 
   14569 xorg_testset_save_CFLAGS="$CFLAGS"
   14570 
   14571 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   14572 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   14573 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   14574 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   14575 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   14576 then :
   14577   printf %s "(cached) " >&6
   14578 else $as_nop
   14579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14580 /* end confdefs.h.  */
   14581 int i;
   14582 _ACEOF
   14583 if ac_fn_c_try_compile "$LINENO"
   14584 then :
   14585   xorg_cv_cc_flag_unknown_warning_option=yes
   14586 else $as_nop
   14587   xorg_cv_cc_flag_unknown_warning_option=no
   14588 fi
   14589 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   14590 fi
   14591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   14592 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   14593 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   14594 	CFLAGS="$xorg_testset_save_CFLAGS"
   14595 fi
   14596 
   14597 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   14598 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   14599 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   14600 	fi
   14601 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   14602 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   14603 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   14604 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   14605 then :
   14606   printf %s "(cached) " >&6
   14607 else $as_nop
   14608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14609 /* end confdefs.h.  */
   14610 int i;
   14611 _ACEOF
   14612 if ac_fn_c_try_compile "$LINENO"
   14613 then :
   14614   xorg_cv_cc_flag_unused_command_line_argument=yes
   14615 else $as_nop
   14616   xorg_cv_cc_flag_unused_command_line_argument=no
   14617 fi
   14618 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   14619 fi
   14620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   14621 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   14622 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   14623 	CFLAGS="$xorg_testset_save_CFLAGS"
   14624 fi
   14625 
   14626 found="no"
   14627 
   14628 	if test $found = "no" ; then
   14629 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   14630 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   14631 		fi
   14632 
   14633 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   14634 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   14635 		fi
   14636 
   14637 		CFLAGS="$CFLAGS -Wuninitialized"
   14638 
   14639 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
   14640 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
   14641 		cacheid=xorg_cv_cc_flag__Wuninitialized
   14642 		if eval test \${$cacheid+y}
   14643 then :
   14644   printf %s "(cached) " >&6
   14645 else $as_nop
   14646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14647 /* end confdefs.h.  */
   14648 int i;
   14649 int
   14650 main (void)
   14651 {
   14652 
   14653   ;
   14654   return 0;
   14655 }
   14656 _ACEOF
   14657 if ac_fn_c_try_link "$LINENO"
   14658 then :
   14659   eval $cacheid=yes
   14660 else $as_nop
   14661   eval $cacheid=no
   14662 fi
   14663 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   14664     conftest$ac_exeext conftest.$ac_ext
   14665 fi
   14666 
   14667 
   14668 		CFLAGS="$xorg_testset_save_CFLAGS"
   14669 
   14670 		eval supported=\$$cacheid
   14671 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   14672 printf "%s\n" "$supported" >&6; }
   14673 		if test "$supported" = "yes" ; then
   14674 			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
   14675 			found="yes"
   14676 		fi
   14677 	fi
   14678 
   14679 
   14680 
   14681 
   14682 
   14683 
   14684 
   14685 
   14686 
   14687 
   14688 
   14689 
   14690 
   14691 
   14692 
   14693 xorg_testset_save_CFLAGS="$CFLAGS"
   14694 
   14695 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   14696 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   14697 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   14698 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   14699 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   14700 then :
   14701   printf %s "(cached) " >&6
   14702 else $as_nop
   14703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14704 /* end confdefs.h.  */
   14705 int i;
   14706 _ACEOF
   14707 if ac_fn_c_try_compile "$LINENO"
   14708 then :
   14709   xorg_cv_cc_flag_unknown_warning_option=yes
   14710 else $as_nop
   14711   xorg_cv_cc_flag_unknown_warning_option=no
   14712 fi
   14713 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   14714 fi
   14715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   14716 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   14717 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   14718 	CFLAGS="$xorg_testset_save_CFLAGS"
   14719 fi
   14720 
   14721 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   14722 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   14723 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   14724 	fi
   14725 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   14726 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   14727 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   14728 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   14729 then :
   14730   printf %s "(cached) " >&6
   14731 else $as_nop
   14732   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14733 /* end confdefs.h.  */
   14734 int i;
   14735 _ACEOF
   14736 if ac_fn_c_try_compile "$LINENO"
   14737 then :
   14738   xorg_cv_cc_flag_unused_command_line_argument=yes
   14739 else $as_nop
   14740   xorg_cv_cc_flag_unused_command_line_argument=no
   14741 fi
   14742 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   14743 fi
   14744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   14745 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   14746 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   14747 	CFLAGS="$xorg_testset_save_CFLAGS"
   14748 fi
   14749 
   14750 found="no"
   14751 
   14752 	if test $found = "no" ; then
   14753 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   14754 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   14755 		fi
   14756 
   14757 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   14758 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   14759 		fi
   14760 
   14761 		CFLAGS="$CFLAGS -Wshadow"
   14762 
   14763 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
   14764 printf %s "checking if $CC supports -Wshadow... " >&6; }
   14765 		cacheid=xorg_cv_cc_flag__Wshadow
   14766 		if eval test \${$cacheid+y}
   14767 then :
   14768   printf %s "(cached) " >&6
   14769 else $as_nop
   14770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14771 /* end confdefs.h.  */
   14772 int i;
   14773 int
   14774 main (void)
   14775 {
   14776 
   14777   ;
   14778   return 0;
   14779 }
   14780 _ACEOF
   14781 if ac_fn_c_try_link "$LINENO"
   14782 then :
   14783   eval $cacheid=yes
   14784 else $as_nop
   14785   eval $cacheid=no
   14786 fi
   14787 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   14788     conftest$ac_exeext conftest.$ac_ext
   14789 fi
   14790 
   14791 
   14792 		CFLAGS="$xorg_testset_save_CFLAGS"
   14793 
   14794 		eval supported=\$$cacheid
   14795 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   14796 printf "%s\n" "$supported" >&6; }
   14797 		if test "$supported" = "yes" ; then
   14798 			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
   14799 			found="yes"
   14800 		fi
   14801 	fi
   14802 
   14803 
   14804 
   14805 
   14806 
   14807 
   14808 
   14809 
   14810 
   14811 
   14812 
   14813 
   14814 
   14815 
   14816 
   14817 xorg_testset_save_CFLAGS="$CFLAGS"
   14818 
   14819 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   14820 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   14821 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   14822 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   14823 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   14824 then :
   14825   printf %s "(cached) " >&6
   14826 else $as_nop
   14827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14828 /* end confdefs.h.  */
   14829 int i;
   14830 _ACEOF
   14831 if ac_fn_c_try_compile "$LINENO"
   14832 then :
   14833   xorg_cv_cc_flag_unknown_warning_option=yes
   14834 else $as_nop
   14835   xorg_cv_cc_flag_unknown_warning_option=no
   14836 fi
   14837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   14838 fi
   14839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   14840 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   14841 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   14842 	CFLAGS="$xorg_testset_save_CFLAGS"
   14843 fi
   14844 
   14845 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   14846 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   14847 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   14848 	fi
   14849 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   14850 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   14851 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   14852 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   14853 then :
   14854   printf %s "(cached) " >&6
   14855 else $as_nop
   14856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14857 /* end confdefs.h.  */
   14858 int i;
   14859 _ACEOF
   14860 if ac_fn_c_try_compile "$LINENO"
   14861 then :
   14862   xorg_cv_cc_flag_unused_command_line_argument=yes
   14863 else $as_nop
   14864   xorg_cv_cc_flag_unused_command_line_argument=no
   14865 fi
   14866 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   14867 fi
   14868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   14869 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   14870 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   14871 	CFLAGS="$xorg_testset_save_CFLAGS"
   14872 fi
   14873 
   14874 found="no"
   14875 
   14876 	if test $found = "no" ; then
   14877 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   14878 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   14879 		fi
   14880 
   14881 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   14882 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   14883 		fi
   14884 
   14885 		CFLAGS="$CFLAGS -Wmissing-noreturn"
   14886 
   14887 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
   14888 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
   14889 		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
   14890 		if eval test \${$cacheid+y}
   14891 then :
   14892   printf %s "(cached) " >&6
   14893 else $as_nop
   14894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14895 /* end confdefs.h.  */
   14896 int i;
   14897 int
   14898 main (void)
   14899 {
   14900 
   14901   ;
   14902   return 0;
   14903 }
   14904 _ACEOF
   14905 if ac_fn_c_try_link "$LINENO"
   14906 then :
   14907   eval $cacheid=yes
   14908 else $as_nop
   14909   eval $cacheid=no
   14910 fi
   14911 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   14912     conftest$ac_exeext conftest.$ac_ext
   14913 fi
   14914 
   14915 
   14916 		CFLAGS="$xorg_testset_save_CFLAGS"
   14917 
   14918 		eval supported=\$$cacheid
   14919 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   14920 printf "%s\n" "$supported" >&6; }
   14921 		if test "$supported" = "yes" ; then
   14922 			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
   14923 			found="yes"
   14924 		fi
   14925 	fi
   14926 
   14927 
   14928 
   14929 
   14930 
   14931 
   14932 
   14933 
   14934 
   14935 
   14936 
   14937 
   14938 
   14939 
   14940 
   14941 xorg_testset_save_CFLAGS="$CFLAGS"
   14942 
   14943 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   14944 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   14945 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   14946 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   14947 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   14948 then :
   14949   printf %s "(cached) " >&6
   14950 else $as_nop
   14951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14952 /* end confdefs.h.  */
   14953 int i;
   14954 _ACEOF
   14955 if ac_fn_c_try_compile "$LINENO"
   14956 then :
   14957   xorg_cv_cc_flag_unknown_warning_option=yes
   14958 else $as_nop
   14959   xorg_cv_cc_flag_unknown_warning_option=no
   14960 fi
   14961 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   14962 fi
   14963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   14964 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   14965 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   14966 	CFLAGS="$xorg_testset_save_CFLAGS"
   14967 fi
   14968 
   14969 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   14970 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   14971 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   14972 	fi
   14973 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   14974 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   14975 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   14976 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   14977 then :
   14978   printf %s "(cached) " >&6
   14979 else $as_nop
   14980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14981 /* end confdefs.h.  */
   14982 int i;
   14983 _ACEOF
   14984 if ac_fn_c_try_compile "$LINENO"
   14985 then :
   14986   xorg_cv_cc_flag_unused_command_line_argument=yes
   14987 else $as_nop
   14988   xorg_cv_cc_flag_unused_command_line_argument=no
   14989 fi
   14990 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   14991 fi
   14992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   14993 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   14994 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   14995 	CFLAGS="$xorg_testset_save_CFLAGS"
   14996 fi
   14997 
   14998 found="no"
   14999 
   15000 	if test $found = "no" ; then
   15001 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   15002 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   15003 		fi
   15004 
   15005 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   15006 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   15007 		fi
   15008 
   15009 		CFLAGS="$CFLAGS -Wmissing-format-attribute"
   15010 
   15011 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
   15012 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
   15013 		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
   15014 		if eval test \${$cacheid+y}
   15015 then :
   15016   printf %s "(cached) " >&6
   15017 else $as_nop
   15018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15019 /* end confdefs.h.  */
   15020 int i;
   15021 int
   15022 main (void)
   15023 {
   15024 
   15025   ;
   15026   return 0;
   15027 }
   15028 _ACEOF
   15029 if ac_fn_c_try_link "$LINENO"
   15030 then :
   15031   eval $cacheid=yes
   15032 else $as_nop
   15033   eval $cacheid=no
   15034 fi
   15035 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   15036     conftest$ac_exeext conftest.$ac_ext
   15037 fi
   15038 
   15039 
   15040 		CFLAGS="$xorg_testset_save_CFLAGS"
   15041 
   15042 		eval supported=\$$cacheid
   15043 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   15044 printf "%s\n" "$supported" >&6; }
   15045 		if test "$supported" = "yes" ; then
   15046 			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
   15047 			found="yes"
   15048 		fi
   15049 	fi
   15050 
   15051 
   15052 
   15053 
   15054 
   15055 
   15056 
   15057 
   15058 
   15059 
   15060 
   15061 
   15062 
   15063 
   15064 
   15065 xorg_testset_save_CFLAGS="$CFLAGS"
   15066 
   15067 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   15068 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   15069 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   15070 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   15071 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   15072 then :
   15073   printf %s "(cached) " >&6
   15074 else $as_nop
   15075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15076 /* end confdefs.h.  */
   15077 int i;
   15078 _ACEOF
   15079 if ac_fn_c_try_compile "$LINENO"
   15080 then :
   15081   xorg_cv_cc_flag_unknown_warning_option=yes
   15082 else $as_nop
   15083   xorg_cv_cc_flag_unknown_warning_option=no
   15084 fi
   15085 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   15086 fi
   15087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   15088 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   15089 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   15090 	CFLAGS="$xorg_testset_save_CFLAGS"
   15091 fi
   15092 
   15093 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   15094 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   15095 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   15096 	fi
   15097 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   15098 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   15099 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   15100 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   15101 then :
   15102   printf %s "(cached) " >&6
   15103 else $as_nop
   15104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15105 /* end confdefs.h.  */
   15106 int i;
   15107 _ACEOF
   15108 if ac_fn_c_try_compile "$LINENO"
   15109 then :
   15110   xorg_cv_cc_flag_unused_command_line_argument=yes
   15111 else $as_nop
   15112   xorg_cv_cc_flag_unused_command_line_argument=no
   15113 fi
   15114 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   15115 fi
   15116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   15117 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   15118 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   15119 	CFLAGS="$xorg_testset_save_CFLAGS"
   15120 fi
   15121 
   15122 found="no"
   15123 
   15124 	if test $found = "no" ; then
   15125 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   15126 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   15127 		fi
   15128 
   15129 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   15130 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   15131 		fi
   15132 
   15133 		CFLAGS="$CFLAGS -Wredundant-decls"
   15134 
   15135 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
   15136 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
   15137 		cacheid=xorg_cv_cc_flag__Wredundant_decls
   15138 		if eval test \${$cacheid+y}
   15139 then :
   15140   printf %s "(cached) " >&6
   15141 else $as_nop
   15142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15143 /* end confdefs.h.  */
   15144 int i;
   15145 int
   15146 main (void)
   15147 {
   15148 
   15149   ;
   15150   return 0;
   15151 }
   15152 _ACEOF
   15153 if ac_fn_c_try_link "$LINENO"
   15154 then :
   15155   eval $cacheid=yes
   15156 else $as_nop
   15157   eval $cacheid=no
   15158 fi
   15159 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   15160     conftest$ac_exeext conftest.$ac_ext
   15161 fi
   15162 
   15163 
   15164 		CFLAGS="$xorg_testset_save_CFLAGS"
   15165 
   15166 		eval supported=\$$cacheid
   15167 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   15168 printf "%s\n" "$supported" >&6; }
   15169 		if test "$supported" = "yes" ; then
   15170 			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
   15171 			found="yes"
   15172 		fi
   15173 	fi
   15174 
   15175 
   15176 
   15177 
   15178 
   15179 
   15180 
   15181 
   15182 
   15183 
   15184 
   15185 
   15186 
   15187 
   15188 
   15189 xorg_testset_save_CFLAGS="$CFLAGS"
   15190 
   15191 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   15192 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   15193 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   15194 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   15195 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   15196 then :
   15197   printf %s "(cached) " >&6
   15198 else $as_nop
   15199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15200 /* end confdefs.h.  */
   15201 int i;
   15202 _ACEOF
   15203 if ac_fn_c_try_compile "$LINENO"
   15204 then :
   15205   xorg_cv_cc_flag_unknown_warning_option=yes
   15206 else $as_nop
   15207   xorg_cv_cc_flag_unknown_warning_option=no
   15208 fi
   15209 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   15210 fi
   15211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   15212 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   15213 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   15214 	CFLAGS="$xorg_testset_save_CFLAGS"
   15215 fi
   15216 
   15217 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   15218 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   15219 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   15220 	fi
   15221 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   15222 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   15223 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   15224 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   15225 then :
   15226   printf %s "(cached) " >&6
   15227 else $as_nop
   15228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15229 /* end confdefs.h.  */
   15230 int i;
   15231 _ACEOF
   15232 if ac_fn_c_try_compile "$LINENO"
   15233 then :
   15234   xorg_cv_cc_flag_unused_command_line_argument=yes
   15235 else $as_nop
   15236   xorg_cv_cc_flag_unused_command_line_argument=no
   15237 fi
   15238 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   15239 fi
   15240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   15241 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   15242 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   15243 	CFLAGS="$xorg_testset_save_CFLAGS"
   15244 fi
   15245 
   15246 found="no"
   15247 
   15248 	if test $found = "no" ; then
   15249 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   15250 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   15251 		fi
   15252 
   15253 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   15254 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   15255 		fi
   15256 
   15257 		CFLAGS="$CFLAGS -Wlogical-op"
   15258 
   15259 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
   15260 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
   15261 		cacheid=xorg_cv_cc_flag__Wlogical_op
   15262 		if eval test \${$cacheid+y}
   15263 then :
   15264   printf %s "(cached) " >&6
   15265 else $as_nop
   15266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15267 /* end confdefs.h.  */
   15268 int i;
   15269 int
   15270 main (void)
   15271 {
   15272 
   15273   ;
   15274   return 0;
   15275 }
   15276 _ACEOF
   15277 if ac_fn_c_try_link "$LINENO"
   15278 then :
   15279   eval $cacheid=yes
   15280 else $as_nop
   15281   eval $cacheid=no
   15282 fi
   15283 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   15284     conftest$ac_exeext conftest.$ac_ext
   15285 fi
   15286 
   15287 
   15288 		CFLAGS="$xorg_testset_save_CFLAGS"
   15289 
   15290 		eval supported=\$$cacheid
   15291 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   15292 printf "%s\n" "$supported" >&6; }
   15293 		if test "$supported" = "yes" ; then
   15294 			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
   15295 			found="yes"
   15296 		fi
   15297 	fi
   15298 
   15299 
   15300 
   15301 # These are currently disabled because they are noisy.  They will be enabled
   15302 # in the future once the codebase is sufficiently modernized to silence
   15303 # them.  For now, I don't want them to drown out the other warnings.
   15304 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
   15305 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
   15306 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
   15307 
   15308 # Turn some warnings into errors, so we don't accidently get successful builds
   15309 # when there are problems that should be fixed.
   15310 
   15311 if test "x$SELECTIVE_WERROR" = "xyes" ; then
   15312 
   15313 
   15314 
   15315 
   15316 
   15317 
   15318 
   15319 
   15320 
   15321 
   15322 
   15323 
   15324 
   15325 xorg_testset_save_CFLAGS="$CFLAGS"
   15326 
   15327 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   15328 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   15329 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   15330 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   15331 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   15332 then :
   15333   printf %s "(cached) " >&6
   15334 else $as_nop
   15335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15336 /* end confdefs.h.  */
   15337 int i;
   15338 _ACEOF
   15339 if ac_fn_c_try_compile "$LINENO"
   15340 then :
   15341   xorg_cv_cc_flag_unknown_warning_option=yes
   15342 else $as_nop
   15343   xorg_cv_cc_flag_unknown_warning_option=no
   15344 fi
   15345 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   15346 fi
   15347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   15348 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   15349 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   15350 	CFLAGS="$xorg_testset_save_CFLAGS"
   15351 fi
   15352 
   15353 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   15354 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   15355 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   15356 	fi
   15357 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   15358 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   15359 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   15360 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   15361 then :
   15362   printf %s "(cached) " >&6
   15363 else $as_nop
   15364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15365 /* end confdefs.h.  */
   15366 int i;
   15367 _ACEOF
   15368 if ac_fn_c_try_compile "$LINENO"
   15369 then :
   15370   xorg_cv_cc_flag_unused_command_line_argument=yes
   15371 else $as_nop
   15372   xorg_cv_cc_flag_unused_command_line_argument=no
   15373 fi
   15374 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   15375 fi
   15376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   15377 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   15378 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   15379 	CFLAGS="$xorg_testset_save_CFLAGS"
   15380 fi
   15381 
   15382 found="no"
   15383 
   15384 	if test $found = "no" ; then
   15385 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   15386 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   15387 		fi
   15388 
   15389 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   15390 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   15391 		fi
   15392 
   15393 		CFLAGS="$CFLAGS -Werror=implicit"
   15394 
   15395 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
   15396 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
   15397 		cacheid=xorg_cv_cc_flag__Werror_implicit
   15398 		if eval test \${$cacheid+y}
   15399 then :
   15400   printf %s "(cached) " >&6
   15401 else $as_nop
   15402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15403 /* end confdefs.h.  */
   15404 int i;
   15405 int
   15406 main (void)
   15407 {
   15408 
   15409   ;
   15410   return 0;
   15411 }
   15412 _ACEOF
   15413 if ac_fn_c_try_link "$LINENO"
   15414 then :
   15415   eval $cacheid=yes
   15416 else $as_nop
   15417   eval $cacheid=no
   15418 fi
   15419 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   15420     conftest$ac_exeext conftest.$ac_ext
   15421 fi
   15422 
   15423 
   15424 		CFLAGS="$xorg_testset_save_CFLAGS"
   15425 
   15426 		eval supported=\$$cacheid
   15427 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   15428 printf "%s\n" "$supported" >&6; }
   15429 		if test "$supported" = "yes" ; then
   15430 			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
   15431 			found="yes"
   15432 		fi
   15433 	fi
   15434 
   15435 	if test $found = "no" ; then
   15436 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   15437 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   15438 		fi
   15439 
   15440 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   15441 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   15442 		fi
   15443 
   15444 		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
   15445 
   15446 		{ 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
   15447 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
   15448 		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
   15449 		if eval test \${$cacheid+y}
   15450 then :
   15451   printf %s "(cached) " >&6
   15452 else $as_nop
   15453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15454 /* end confdefs.h.  */
   15455 int i;
   15456 int
   15457 main (void)
   15458 {
   15459 
   15460   ;
   15461   return 0;
   15462 }
   15463 _ACEOF
   15464 if ac_fn_c_try_link "$LINENO"
   15465 then :
   15466   eval $cacheid=yes
   15467 else $as_nop
   15468   eval $cacheid=no
   15469 fi
   15470 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   15471     conftest$ac_exeext conftest.$ac_ext
   15472 fi
   15473 
   15474 
   15475 		CFLAGS="$xorg_testset_save_CFLAGS"
   15476 
   15477 		eval supported=\$$cacheid
   15478 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   15479 printf "%s\n" "$supported" >&6; }
   15480 		if test "$supported" = "yes" ; then
   15481 			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
   15482 			found="yes"
   15483 		fi
   15484 	fi
   15485 
   15486 
   15487 
   15488 
   15489 
   15490 
   15491 
   15492 
   15493 
   15494 
   15495 
   15496 
   15497 
   15498 
   15499 
   15500 xorg_testset_save_CFLAGS="$CFLAGS"
   15501 
   15502 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   15503 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   15504 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   15505 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   15506 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   15507 then :
   15508   printf %s "(cached) " >&6
   15509 else $as_nop
   15510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15511 /* end confdefs.h.  */
   15512 int i;
   15513 _ACEOF
   15514 if ac_fn_c_try_compile "$LINENO"
   15515 then :
   15516   xorg_cv_cc_flag_unknown_warning_option=yes
   15517 else $as_nop
   15518   xorg_cv_cc_flag_unknown_warning_option=no
   15519 fi
   15520 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   15521 fi
   15522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   15523 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   15524 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   15525 	CFLAGS="$xorg_testset_save_CFLAGS"
   15526 fi
   15527 
   15528 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   15529 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   15530 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   15531 	fi
   15532 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   15533 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   15534 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   15535 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   15536 then :
   15537   printf %s "(cached) " >&6
   15538 else $as_nop
   15539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15540 /* end confdefs.h.  */
   15541 int i;
   15542 _ACEOF
   15543 if ac_fn_c_try_compile "$LINENO"
   15544 then :
   15545   xorg_cv_cc_flag_unused_command_line_argument=yes
   15546 else $as_nop
   15547   xorg_cv_cc_flag_unused_command_line_argument=no
   15548 fi
   15549 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   15550 fi
   15551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   15552 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   15553 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   15554 	CFLAGS="$xorg_testset_save_CFLAGS"
   15555 fi
   15556 
   15557 found="no"
   15558 
   15559 	if test $found = "no" ; then
   15560 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   15561 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   15562 		fi
   15563 
   15564 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   15565 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   15566 		fi
   15567 
   15568 		CFLAGS="$CFLAGS -Werror=nonnull"
   15569 
   15570 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
   15571 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
   15572 		cacheid=xorg_cv_cc_flag__Werror_nonnull
   15573 		if eval test \${$cacheid+y}
   15574 then :
   15575   printf %s "(cached) " >&6
   15576 else $as_nop
   15577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15578 /* end confdefs.h.  */
   15579 int i;
   15580 int
   15581 main (void)
   15582 {
   15583 
   15584   ;
   15585   return 0;
   15586 }
   15587 _ACEOF
   15588 if ac_fn_c_try_link "$LINENO"
   15589 then :
   15590   eval $cacheid=yes
   15591 else $as_nop
   15592   eval $cacheid=no
   15593 fi
   15594 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   15595     conftest$ac_exeext conftest.$ac_ext
   15596 fi
   15597 
   15598 
   15599 		CFLAGS="$xorg_testset_save_CFLAGS"
   15600 
   15601 		eval supported=\$$cacheid
   15602 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   15603 printf "%s\n" "$supported" >&6; }
   15604 		if test "$supported" = "yes" ; then
   15605 			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
   15606 			found="yes"
   15607 		fi
   15608 	fi
   15609 
   15610 
   15611 
   15612 
   15613 
   15614 
   15615 
   15616 
   15617 
   15618 
   15619 
   15620 
   15621 
   15622 
   15623 
   15624 xorg_testset_save_CFLAGS="$CFLAGS"
   15625 
   15626 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   15627 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   15628 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   15629 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   15630 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   15631 then :
   15632   printf %s "(cached) " >&6
   15633 else $as_nop
   15634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15635 /* end confdefs.h.  */
   15636 int i;
   15637 _ACEOF
   15638 if ac_fn_c_try_compile "$LINENO"
   15639 then :
   15640   xorg_cv_cc_flag_unknown_warning_option=yes
   15641 else $as_nop
   15642   xorg_cv_cc_flag_unknown_warning_option=no
   15643 fi
   15644 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   15645 fi
   15646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   15647 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   15648 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   15649 	CFLAGS="$xorg_testset_save_CFLAGS"
   15650 fi
   15651 
   15652 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   15653 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   15654 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   15655 	fi
   15656 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   15657 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   15658 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   15659 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   15660 then :
   15661   printf %s "(cached) " >&6
   15662 else $as_nop
   15663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15664 /* end confdefs.h.  */
   15665 int i;
   15666 _ACEOF
   15667 if ac_fn_c_try_compile "$LINENO"
   15668 then :
   15669   xorg_cv_cc_flag_unused_command_line_argument=yes
   15670 else $as_nop
   15671   xorg_cv_cc_flag_unused_command_line_argument=no
   15672 fi
   15673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   15674 fi
   15675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   15676 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   15677 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   15678 	CFLAGS="$xorg_testset_save_CFLAGS"
   15679 fi
   15680 
   15681 found="no"
   15682 
   15683 	if test $found = "no" ; then
   15684 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   15685 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   15686 		fi
   15687 
   15688 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   15689 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   15690 		fi
   15691 
   15692 		CFLAGS="$CFLAGS -Werror=init-self"
   15693 
   15694 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
   15695 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
   15696 		cacheid=xorg_cv_cc_flag__Werror_init_self
   15697 		if eval test \${$cacheid+y}
   15698 then :
   15699   printf %s "(cached) " >&6
   15700 else $as_nop
   15701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15702 /* end confdefs.h.  */
   15703 int i;
   15704 int
   15705 main (void)
   15706 {
   15707 
   15708   ;
   15709   return 0;
   15710 }
   15711 _ACEOF
   15712 if ac_fn_c_try_link "$LINENO"
   15713 then :
   15714   eval $cacheid=yes
   15715 else $as_nop
   15716   eval $cacheid=no
   15717 fi
   15718 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   15719     conftest$ac_exeext conftest.$ac_ext
   15720 fi
   15721 
   15722 
   15723 		CFLAGS="$xorg_testset_save_CFLAGS"
   15724 
   15725 		eval supported=\$$cacheid
   15726 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   15727 printf "%s\n" "$supported" >&6; }
   15728 		if test "$supported" = "yes" ; then
   15729 			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
   15730 			found="yes"
   15731 		fi
   15732 	fi
   15733 
   15734 
   15735 
   15736 
   15737 
   15738 
   15739 
   15740 
   15741 
   15742 
   15743 
   15744 
   15745 
   15746 
   15747 
   15748 xorg_testset_save_CFLAGS="$CFLAGS"
   15749 
   15750 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   15751 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   15752 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   15753 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   15754 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   15755 then :
   15756   printf %s "(cached) " >&6
   15757 else $as_nop
   15758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15759 /* end confdefs.h.  */
   15760 int i;
   15761 _ACEOF
   15762 if ac_fn_c_try_compile "$LINENO"
   15763 then :
   15764   xorg_cv_cc_flag_unknown_warning_option=yes
   15765 else $as_nop
   15766   xorg_cv_cc_flag_unknown_warning_option=no
   15767 fi
   15768 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   15769 fi
   15770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   15771 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   15772 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   15773 	CFLAGS="$xorg_testset_save_CFLAGS"
   15774 fi
   15775 
   15776 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   15777 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   15778 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   15779 	fi
   15780 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   15781 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   15782 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   15783 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   15784 then :
   15785   printf %s "(cached) " >&6
   15786 else $as_nop
   15787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15788 /* end confdefs.h.  */
   15789 int i;
   15790 _ACEOF
   15791 if ac_fn_c_try_compile "$LINENO"
   15792 then :
   15793   xorg_cv_cc_flag_unused_command_line_argument=yes
   15794 else $as_nop
   15795   xorg_cv_cc_flag_unused_command_line_argument=no
   15796 fi
   15797 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   15798 fi
   15799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   15800 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   15801 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   15802 	CFLAGS="$xorg_testset_save_CFLAGS"
   15803 fi
   15804 
   15805 found="no"
   15806 
   15807 	if test $found = "no" ; then
   15808 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   15809 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   15810 		fi
   15811 
   15812 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   15813 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   15814 		fi
   15815 
   15816 		CFLAGS="$CFLAGS -Werror=main"
   15817 
   15818 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
   15819 printf %s "checking if $CC supports -Werror=main... " >&6; }
   15820 		cacheid=xorg_cv_cc_flag__Werror_main
   15821 		if eval test \${$cacheid+y}
   15822 then :
   15823   printf %s "(cached) " >&6
   15824 else $as_nop
   15825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15826 /* end confdefs.h.  */
   15827 int i;
   15828 int
   15829 main (void)
   15830 {
   15831 
   15832   ;
   15833   return 0;
   15834 }
   15835 _ACEOF
   15836 if ac_fn_c_try_link "$LINENO"
   15837 then :
   15838   eval $cacheid=yes
   15839 else $as_nop
   15840   eval $cacheid=no
   15841 fi
   15842 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   15843     conftest$ac_exeext conftest.$ac_ext
   15844 fi
   15845 
   15846 
   15847 		CFLAGS="$xorg_testset_save_CFLAGS"
   15848 
   15849 		eval supported=\$$cacheid
   15850 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   15851 printf "%s\n" "$supported" >&6; }
   15852 		if test "$supported" = "yes" ; then
   15853 			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
   15854 			found="yes"
   15855 		fi
   15856 	fi
   15857 
   15858 
   15859 
   15860 
   15861 
   15862 
   15863 
   15864 
   15865 
   15866 
   15867 
   15868 
   15869 
   15870 
   15871 
   15872 xorg_testset_save_CFLAGS="$CFLAGS"
   15873 
   15874 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   15875 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   15876 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   15877 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   15878 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   15879 then :
   15880   printf %s "(cached) " >&6
   15881 else $as_nop
   15882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15883 /* end confdefs.h.  */
   15884 int i;
   15885 _ACEOF
   15886 if ac_fn_c_try_compile "$LINENO"
   15887 then :
   15888   xorg_cv_cc_flag_unknown_warning_option=yes
   15889 else $as_nop
   15890   xorg_cv_cc_flag_unknown_warning_option=no
   15891 fi
   15892 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   15893 fi
   15894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   15895 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   15896 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   15897 	CFLAGS="$xorg_testset_save_CFLAGS"
   15898 fi
   15899 
   15900 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   15901 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   15902 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   15903 	fi
   15904 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   15905 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   15906 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   15907 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   15908 then :
   15909   printf %s "(cached) " >&6
   15910 else $as_nop
   15911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15912 /* end confdefs.h.  */
   15913 int i;
   15914 _ACEOF
   15915 if ac_fn_c_try_compile "$LINENO"
   15916 then :
   15917   xorg_cv_cc_flag_unused_command_line_argument=yes
   15918 else $as_nop
   15919   xorg_cv_cc_flag_unused_command_line_argument=no
   15920 fi
   15921 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   15922 fi
   15923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   15924 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   15925 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   15926 	CFLAGS="$xorg_testset_save_CFLAGS"
   15927 fi
   15928 
   15929 found="no"
   15930 
   15931 	if test $found = "no" ; then
   15932 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   15933 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   15934 		fi
   15935 
   15936 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   15937 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   15938 		fi
   15939 
   15940 		CFLAGS="$CFLAGS -Werror=missing-braces"
   15941 
   15942 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
   15943 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
   15944 		cacheid=xorg_cv_cc_flag__Werror_missing_braces
   15945 		if eval test \${$cacheid+y}
   15946 then :
   15947   printf %s "(cached) " >&6
   15948 else $as_nop
   15949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15950 /* end confdefs.h.  */
   15951 int i;
   15952 int
   15953 main (void)
   15954 {
   15955 
   15956   ;
   15957   return 0;
   15958 }
   15959 _ACEOF
   15960 if ac_fn_c_try_link "$LINENO"
   15961 then :
   15962   eval $cacheid=yes
   15963 else $as_nop
   15964   eval $cacheid=no
   15965 fi
   15966 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   15967     conftest$ac_exeext conftest.$ac_ext
   15968 fi
   15969 
   15970 
   15971 		CFLAGS="$xorg_testset_save_CFLAGS"
   15972 
   15973 		eval supported=\$$cacheid
   15974 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   15975 printf "%s\n" "$supported" >&6; }
   15976 		if test "$supported" = "yes" ; then
   15977 			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
   15978 			found="yes"
   15979 		fi
   15980 	fi
   15981 
   15982 
   15983 
   15984 
   15985 
   15986 
   15987 
   15988 
   15989 
   15990 
   15991 
   15992 
   15993 
   15994 
   15995 
   15996 xorg_testset_save_CFLAGS="$CFLAGS"
   15997 
   15998 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   15999 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   16000 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   16001 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   16002 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   16003 then :
   16004   printf %s "(cached) " >&6
   16005 else $as_nop
   16006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16007 /* end confdefs.h.  */
   16008 int i;
   16009 _ACEOF
   16010 if ac_fn_c_try_compile "$LINENO"
   16011 then :
   16012   xorg_cv_cc_flag_unknown_warning_option=yes
   16013 else $as_nop
   16014   xorg_cv_cc_flag_unknown_warning_option=no
   16015 fi
   16016 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   16017 fi
   16018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   16019 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   16020 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   16021 	CFLAGS="$xorg_testset_save_CFLAGS"
   16022 fi
   16023 
   16024 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   16025 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   16026 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   16027 	fi
   16028 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   16029 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   16030 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   16031 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   16032 then :
   16033   printf %s "(cached) " >&6
   16034 else $as_nop
   16035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16036 /* end confdefs.h.  */
   16037 int i;
   16038 _ACEOF
   16039 if ac_fn_c_try_compile "$LINENO"
   16040 then :
   16041   xorg_cv_cc_flag_unused_command_line_argument=yes
   16042 else $as_nop
   16043   xorg_cv_cc_flag_unused_command_line_argument=no
   16044 fi
   16045 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   16046 fi
   16047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   16048 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   16049 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   16050 	CFLAGS="$xorg_testset_save_CFLAGS"
   16051 fi
   16052 
   16053 found="no"
   16054 
   16055 	if test $found = "no" ; then
   16056 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   16057 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   16058 		fi
   16059 
   16060 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   16061 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   16062 		fi
   16063 
   16064 		CFLAGS="$CFLAGS -Werror=sequence-point"
   16065 
   16066 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
   16067 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
   16068 		cacheid=xorg_cv_cc_flag__Werror_sequence_point
   16069 		if eval test \${$cacheid+y}
   16070 then :
   16071   printf %s "(cached) " >&6
   16072 else $as_nop
   16073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16074 /* end confdefs.h.  */
   16075 int i;
   16076 int
   16077 main (void)
   16078 {
   16079 
   16080   ;
   16081   return 0;
   16082 }
   16083 _ACEOF
   16084 if ac_fn_c_try_link "$LINENO"
   16085 then :
   16086   eval $cacheid=yes
   16087 else $as_nop
   16088   eval $cacheid=no
   16089 fi
   16090 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   16091     conftest$ac_exeext conftest.$ac_ext
   16092 fi
   16093 
   16094 
   16095 		CFLAGS="$xorg_testset_save_CFLAGS"
   16096 
   16097 		eval supported=\$$cacheid
   16098 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   16099 printf "%s\n" "$supported" >&6; }
   16100 		if test "$supported" = "yes" ; then
   16101 			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
   16102 			found="yes"
   16103 		fi
   16104 	fi
   16105 
   16106 
   16107 
   16108 
   16109 
   16110 
   16111 
   16112 
   16113 
   16114 
   16115 
   16116 
   16117 
   16118 
   16119 
   16120 xorg_testset_save_CFLAGS="$CFLAGS"
   16121 
   16122 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   16123 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   16124 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   16125 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   16126 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   16127 then :
   16128   printf %s "(cached) " >&6
   16129 else $as_nop
   16130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16131 /* end confdefs.h.  */
   16132 int i;
   16133 _ACEOF
   16134 if ac_fn_c_try_compile "$LINENO"
   16135 then :
   16136   xorg_cv_cc_flag_unknown_warning_option=yes
   16137 else $as_nop
   16138   xorg_cv_cc_flag_unknown_warning_option=no
   16139 fi
   16140 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   16141 fi
   16142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   16143 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   16144 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   16145 	CFLAGS="$xorg_testset_save_CFLAGS"
   16146 fi
   16147 
   16148 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   16149 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   16150 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   16151 	fi
   16152 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   16153 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   16154 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   16155 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   16156 then :
   16157   printf %s "(cached) " >&6
   16158 else $as_nop
   16159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16160 /* end confdefs.h.  */
   16161 int i;
   16162 _ACEOF
   16163 if ac_fn_c_try_compile "$LINENO"
   16164 then :
   16165   xorg_cv_cc_flag_unused_command_line_argument=yes
   16166 else $as_nop
   16167   xorg_cv_cc_flag_unused_command_line_argument=no
   16168 fi
   16169 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   16170 fi
   16171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   16172 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   16173 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   16174 	CFLAGS="$xorg_testset_save_CFLAGS"
   16175 fi
   16176 
   16177 found="no"
   16178 
   16179 	if test $found = "no" ; then
   16180 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   16181 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   16182 		fi
   16183 
   16184 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   16185 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   16186 		fi
   16187 
   16188 		CFLAGS="$CFLAGS -Werror=return-type"
   16189 
   16190 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
   16191 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
   16192 		cacheid=xorg_cv_cc_flag__Werror_return_type
   16193 		if eval test \${$cacheid+y}
   16194 then :
   16195   printf %s "(cached) " >&6
   16196 else $as_nop
   16197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16198 /* end confdefs.h.  */
   16199 int i;
   16200 int
   16201 main (void)
   16202 {
   16203 
   16204   ;
   16205   return 0;
   16206 }
   16207 _ACEOF
   16208 if ac_fn_c_try_link "$LINENO"
   16209 then :
   16210   eval $cacheid=yes
   16211 else $as_nop
   16212   eval $cacheid=no
   16213 fi
   16214 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   16215     conftest$ac_exeext conftest.$ac_ext
   16216 fi
   16217 
   16218 
   16219 		CFLAGS="$xorg_testset_save_CFLAGS"
   16220 
   16221 		eval supported=\$$cacheid
   16222 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   16223 printf "%s\n" "$supported" >&6; }
   16224 		if test "$supported" = "yes" ; then
   16225 			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
   16226 			found="yes"
   16227 		fi
   16228 	fi
   16229 
   16230 	if test $found = "no" ; then
   16231 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   16232 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   16233 		fi
   16234 
   16235 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   16236 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   16237 		fi
   16238 
   16239 		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
   16240 
   16241 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
   16242 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
   16243 		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
   16244 		if eval test \${$cacheid+y}
   16245 then :
   16246   printf %s "(cached) " >&6
   16247 else $as_nop
   16248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16249 /* end confdefs.h.  */
   16250 int i;
   16251 int
   16252 main (void)
   16253 {
   16254 
   16255   ;
   16256   return 0;
   16257 }
   16258 _ACEOF
   16259 if ac_fn_c_try_link "$LINENO"
   16260 then :
   16261   eval $cacheid=yes
   16262 else $as_nop
   16263   eval $cacheid=no
   16264 fi
   16265 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   16266     conftest$ac_exeext conftest.$ac_ext
   16267 fi
   16268 
   16269 
   16270 		CFLAGS="$xorg_testset_save_CFLAGS"
   16271 
   16272 		eval supported=\$$cacheid
   16273 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   16274 printf "%s\n" "$supported" >&6; }
   16275 		if test "$supported" = "yes" ; then
   16276 			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
   16277 			found="yes"
   16278 		fi
   16279 	fi
   16280 
   16281 
   16282 
   16283 
   16284 
   16285 
   16286 
   16287 
   16288 
   16289 
   16290 
   16291 
   16292 
   16293 
   16294 
   16295 xorg_testset_save_CFLAGS="$CFLAGS"
   16296 
   16297 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   16298 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   16299 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   16300 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   16301 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   16302 then :
   16303   printf %s "(cached) " >&6
   16304 else $as_nop
   16305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16306 /* end confdefs.h.  */
   16307 int i;
   16308 _ACEOF
   16309 if ac_fn_c_try_compile "$LINENO"
   16310 then :
   16311   xorg_cv_cc_flag_unknown_warning_option=yes
   16312 else $as_nop
   16313   xorg_cv_cc_flag_unknown_warning_option=no
   16314 fi
   16315 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   16316 fi
   16317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   16318 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   16319 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   16320 	CFLAGS="$xorg_testset_save_CFLAGS"
   16321 fi
   16322 
   16323 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   16324 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   16325 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   16326 	fi
   16327 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   16328 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   16329 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   16330 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   16331 then :
   16332   printf %s "(cached) " >&6
   16333 else $as_nop
   16334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16335 /* end confdefs.h.  */
   16336 int i;
   16337 _ACEOF
   16338 if ac_fn_c_try_compile "$LINENO"
   16339 then :
   16340   xorg_cv_cc_flag_unused_command_line_argument=yes
   16341 else $as_nop
   16342   xorg_cv_cc_flag_unused_command_line_argument=no
   16343 fi
   16344 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   16345 fi
   16346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   16347 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   16348 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   16349 	CFLAGS="$xorg_testset_save_CFLAGS"
   16350 fi
   16351 
   16352 found="no"
   16353 
   16354 	if test $found = "no" ; then
   16355 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   16356 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   16357 		fi
   16358 
   16359 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   16360 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   16361 		fi
   16362 
   16363 		CFLAGS="$CFLAGS -Werror=trigraphs"
   16364 
   16365 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
   16366 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
   16367 		cacheid=xorg_cv_cc_flag__Werror_trigraphs
   16368 		if eval test \${$cacheid+y}
   16369 then :
   16370   printf %s "(cached) " >&6
   16371 else $as_nop
   16372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16373 /* end confdefs.h.  */
   16374 int i;
   16375 int
   16376 main (void)
   16377 {
   16378 
   16379   ;
   16380   return 0;
   16381 }
   16382 _ACEOF
   16383 if ac_fn_c_try_link "$LINENO"
   16384 then :
   16385   eval $cacheid=yes
   16386 else $as_nop
   16387   eval $cacheid=no
   16388 fi
   16389 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   16390     conftest$ac_exeext conftest.$ac_ext
   16391 fi
   16392 
   16393 
   16394 		CFLAGS="$xorg_testset_save_CFLAGS"
   16395 
   16396 		eval supported=\$$cacheid
   16397 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   16398 printf "%s\n" "$supported" >&6; }
   16399 		if test "$supported" = "yes" ; then
   16400 			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
   16401 			found="yes"
   16402 		fi
   16403 	fi
   16404 
   16405 
   16406 
   16407 
   16408 
   16409 
   16410 
   16411 
   16412 
   16413 
   16414 
   16415 
   16416 
   16417 
   16418 
   16419 xorg_testset_save_CFLAGS="$CFLAGS"
   16420 
   16421 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   16422 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   16423 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   16424 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   16425 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   16426 then :
   16427   printf %s "(cached) " >&6
   16428 else $as_nop
   16429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16430 /* end confdefs.h.  */
   16431 int i;
   16432 _ACEOF
   16433 if ac_fn_c_try_compile "$LINENO"
   16434 then :
   16435   xorg_cv_cc_flag_unknown_warning_option=yes
   16436 else $as_nop
   16437   xorg_cv_cc_flag_unknown_warning_option=no
   16438 fi
   16439 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   16440 fi
   16441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   16442 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   16443 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   16444 	CFLAGS="$xorg_testset_save_CFLAGS"
   16445 fi
   16446 
   16447 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   16448 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   16449 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   16450 	fi
   16451 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   16452 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   16453 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   16454 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   16455 then :
   16456   printf %s "(cached) " >&6
   16457 else $as_nop
   16458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16459 /* end confdefs.h.  */
   16460 int i;
   16461 _ACEOF
   16462 if ac_fn_c_try_compile "$LINENO"
   16463 then :
   16464   xorg_cv_cc_flag_unused_command_line_argument=yes
   16465 else $as_nop
   16466   xorg_cv_cc_flag_unused_command_line_argument=no
   16467 fi
   16468 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   16469 fi
   16470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   16471 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   16472 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   16473 	CFLAGS="$xorg_testset_save_CFLAGS"
   16474 fi
   16475 
   16476 found="no"
   16477 
   16478 	if test $found = "no" ; then
   16479 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   16480 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   16481 		fi
   16482 
   16483 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   16484 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   16485 		fi
   16486 
   16487 		CFLAGS="$CFLAGS -Werror=array-bounds"
   16488 
   16489 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
   16490 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
   16491 		cacheid=xorg_cv_cc_flag__Werror_array_bounds
   16492 		if eval test \${$cacheid+y}
   16493 then :
   16494   printf %s "(cached) " >&6
   16495 else $as_nop
   16496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16497 /* end confdefs.h.  */
   16498 int i;
   16499 int
   16500 main (void)
   16501 {
   16502 
   16503   ;
   16504   return 0;
   16505 }
   16506 _ACEOF
   16507 if ac_fn_c_try_link "$LINENO"
   16508 then :
   16509   eval $cacheid=yes
   16510 else $as_nop
   16511   eval $cacheid=no
   16512 fi
   16513 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   16514     conftest$ac_exeext conftest.$ac_ext
   16515 fi
   16516 
   16517 
   16518 		CFLAGS="$xorg_testset_save_CFLAGS"
   16519 
   16520 		eval supported=\$$cacheid
   16521 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   16522 printf "%s\n" "$supported" >&6; }
   16523 		if test "$supported" = "yes" ; then
   16524 			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
   16525 			found="yes"
   16526 		fi
   16527 	fi
   16528 
   16529 
   16530 
   16531 
   16532 
   16533 
   16534 
   16535 
   16536 
   16537 
   16538 
   16539 
   16540 
   16541 
   16542 
   16543 xorg_testset_save_CFLAGS="$CFLAGS"
   16544 
   16545 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   16546 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   16547 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   16548 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   16549 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   16550 then :
   16551   printf %s "(cached) " >&6
   16552 else $as_nop
   16553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16554 /* end confdefs.h.  */
   16555 int i;
   16556 _ACEOF
   16557 if ac_fn_c_try_compile "$LINENO"
   16558 then :
   16559   xorg_cv_cc_flag_unknown_warning_option=yes
   16560 else $as_nop
   16561   xorg_cv_cc_flag_unknown_warning_option=no
   16562 fi
   16563 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   16564 fi
   16565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   16566 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   16567 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   16568 	CFLAGS="$xorg_testset_save_CFLAGS"
   16569 fi
   16570 
   16571 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   16572 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   16573 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   16574 	fi
   16575 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   16576 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   16577 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   16578 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   16579 then :
   16580   printf %s "(cached) " >&6
   16581 else $as_nop
   16582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16583 /* end confdefs.h.  */
   16584 int i;
   16585 _ACEOF
   16586 if ac_fn_c_try_compile "$LINENO"
   16587 then :
   16588   xorg_cv_cc_flag_unused_command_line_argument=yes
   16589 else $as_nop
   16590   xorg_cv_cc_flag_unused_command_line_argument=no
   16591 fi
   16592 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   16593 fi
   16594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   16595 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   16596 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   16597 	CFLAGS="$xorg_testset_save_CFLAGS"
   16598 fi
   16599 
   16600 found="no"
   16601 
   16602 	if test $found = "no" ; then
   16603 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   16604 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   16605 		fi
   16606 
   16607 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   16608 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   16609 		fi
   16610 
   16611 		CFLAGS="$CFLAGS -Werror=write-strings"
   16612 
   16613 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
   16614 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
   16615 		cacheid=xorg_cv_cc_flag__Werror_write_strings
   16616 		if eval test \${$cacheid+y}
   16617 then :
   16618   printf %s "(cached) " >&6
   16619 else $as_nop
   16620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16621 /* end confdefs.h.  */
   16622 int i;
   16623 int
   16624 main (void)
   16625 {
   16626 
   16627   ;
   16628   return 0;
   16629 }
   16630 _ACEOF
   16631 if ac_fn_c_try_link "$LINENO"
   16632 then :
   16633   eval $cacheid=yes
   16634 else $as_nop
   16635   eval $cacheid=no
   16636 fi
   16637 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   16638     conftest$ac_exeext conftest.$ac_ext
   16639 fi
   16640 
   16641 
   16642 		CFLAGS="$xorg_testset_save_CFLAGS"
   16643 
   16644 		eval supported=\$$cacheid
   16645 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   16646 printf "%s\n" "$supported" >&6; }
   16647 		if test "$supported" = "yes" ; then
   16648 			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
   16649 			found="yes"
   16650 		fi
   16651 	fi
   16652 
   16653 
   16654 
   16655 
   16656 
   16657 
   16658 
   16659 
   16660 
   16661 
   16662 
   16663 
   16664 
   16665 
   16666 
   16667 xorg_testset_save_CFLAGS="$CFLAGS"
   16668 
   16669 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   16670 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   16671 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   16672 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   16673 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   16674 then :
   16675   printf %s "(cached) " >&6
   16676 else $as_nop
   16677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16678 /* end confdefs.h.  */
   16679 int i;
   16680 _ACEOF
   16681 if ac_fn_c_try_compile "$LINENO"
   16682 then :
   16683   xorg_cv_cc_flag_unknown_warning_option=yes
   16684 else $as_nop
   16685   xorg_cv_cc_flag_unknown_warning_option=no
   16686 fi
   16687 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   16688 fi
   16689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   16690 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   16691 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   16692 	CFLAGS="$xorg_testset_save_CFLAGS"
   16693 fi
   16694 
   16695 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   16696 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   16697 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   16698 	fi
   16699 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   16700 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   16701 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   16702 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   16703 then :
   16704   printf %s "(cached) " >&6
   16705 else $as_nop
   16706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16707 /* end confdefs.h.  */
   16708 int i;
   16709 _ACEOF
   16710 if ac_fn_c_try_compile "$LINENO"
   16711 then :
   16712   xorg_cv_cc_flag_unused_command_line_argument=yes
   16713 else $as_nop
   16714   xorg_cv_cc_flag_unused_command_line_argument=no
   16715 fi
   16716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   16717 fi
   16718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   16719 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   16720 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   16721 	CFLAGS="$xorg_testset_save_CFLAGS"
   16722 fi
   16723 
   16724 found="no"
   16725 
   16726 	if test $found = "no" ; then
   16727 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   16728 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   16729 		fi
   16730 
   16731 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   16732 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   16733 		fi
   16734 
   16735 		CFLAGS="$CFLAGS -Werror=address"
   16736 
   16737 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
   16738 printf %s "checking if $CC supports -Werror=address... " >&6; }
   16739 		cacheid=xorg_cv_cc_flag__Werror_address
   16740 		if eval test \${$cacheid+y}
   16741 then :
   16742   printf %s "(cached) " >&6
   16743 else $as_nop
   16744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16745 /* end confdefs.h.  */
   16746 int i;
   16747 int
   16748 main (void)
   16749 {
   16750 
   16751   ;
   16752   return 0;
   16753 }
   16754 _ACEOF
   16755 if ac_fn_c_try_link "$LINENO"
   16756 then :
   16757   eval $cacheid=yes
   16758 else $as_nop
   16759   eval $cacheid=no
   16760 fi
   16761 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   16762     conftest$ac_exeext conftest.$ac_ext
   16763 fi
   16764 
   16765 
   16766 		CFLAGS="$xorg_testset_save_CFLAGS"
   16767 
   16768 		eval supported=\$$cacheid
   16769 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   16770 printf "%s\n" "$supported" >&6; }
   16771 		if test "$supported" = "yes" ; then
   16772 			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
   16773 			found="yes"
   16774 		fi
   16775 	fi
   16776 
   16777 
   16778 
   16779 
   16780 
   16781 
   16782 
   16783 
   16784 
   16785 
   16786 
   16787 
   16788 
   16789 
   16790 
   16791 xorg_testset_save_CFLAGS="$CFLAGS"
   16792 
   16793 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   16794 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   16795 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   16796 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   16797 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   16798 then :
   16799   printf %s "(cached) " >&6
   16800 else $as_nop
   16801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16802 /* end confdefs.h.  */
   16803 int i;
   16804 _ACEOF
   16805 if ac_fn_c_try_compile "$LINENO"
   16806 then :
   16807   xorg_cv_cc_flag_unknown_warning_option=yes
   16808 else $as_nop
   16809   xorg_cv_cc_flag_unknown_warning_option=no
   16810 fi
   16811 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   16812 fi
   16813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   16814 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   16815 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   16816 	CFLAGS="$xorg_testset_save_CFLAGS"
   16817 fi
   16818 
   16819 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   16820 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   16821 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   16822 	fi
   16823 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   16824 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   16825 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   16826 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   16827 then :
   16828   printf %s "(cached) " >&6
   16829 else $as_nop
   16830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16831 /* end confdefs.h.  */
   16832 int i;
   16833 _ACEOF
   16834 if ac_fn_c_try_compile "$LINENO"
   16835 then :
   16836   xorg_cv_cc_flag_unused_command_line_argument=yes
   16837 else $as_nop
   16838   xorg_cv_cc_flag_unused_command_line_argument=no
   16839 fi
   16840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   16841 fi
   16842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   16843 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   16844 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   16845 	CFLAGS="$xorg_testset_save_CFLAGS"
   16846 fi
   16847 
   16848 found="no"
   16849 
   16850 	if test $found = "no" ; then
   16851 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   16852 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   16853 		fi
   16854 
   16855 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   16856 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   16857 		fi
   16858 
   16859 		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
   16860 
   16861 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
   16862 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
   16863 		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
   16864 		if eval test \${$cacheid+y}
   16865 then :
   16866   printf %s "(cached) " >&6
   16867 else $as_nop
   16868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16869 /* end confdefs.h.  */
   16870 int i;
   16871 int
   16872 main (void)
   16873 {
   16874 
   16875   ;
   16876   return 0;
   16877 }
   16878 _ACEOF
   16879 if ac_fn_c_try_link "$LINENO"
   16880 then :
   16881   eval $cacheid=yes
   16882 else $as_nop
   16883   eval $cacheid=no
   16884 fi
   16885 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   16886     conftest$ac_exeext conftest.$ac_ext
   16887 fi
   16888 
   16889 
   16890 		CFLAGS="$xorg_testset_save_CFLAGS"
   16891 
   16892 		eval supported=\$$cacheid
   16893 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   16894 printf "%s\n" "$supported" >&6; }
   16895 		if test "$supported" = "yes" ; then
   16896 			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
   16897 			found="yes"
   16898 		fi
   16899 	fi
   16900 
   16901 	if test $found = "no" ; then
   16902 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   16903 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   16904 		fi
   16905 
   16906 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   16907 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   16908 		fi
   16909 
   16910 		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
   16911 
   16912 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
   16913 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
   16914 		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
   16915 		if eval test \${$cacheid+y}
   16916 then :
   16917   printf %s "(cached) " >&6
   16918 else $as_nop
   16919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16920 /* end confdefs.h.  */
   16921 int i;
   16922 int
   16923 main (void)
   16924 {
   16925 
   16926   ;
   16927   return 0;
   16928 }
   16929 _ACEOF
   16930 if ac_fn_c_try_link "$LINENO"
   16931 then :
   16932   eval $cacheid=yes
   16933 else $as_nop
   16934   eval $cacheid=no
   16935 fi
   16936 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   16937     conftest$ac_exeext conftest.$ac_ext
   16938 fi
   16939 
   16940 
   16941 		CFLAGS="$xorg_testset_save_CFLAGS"
   16942 
   16943 		eval supported=\$$cacheid
   16944 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   16945 printf "%s\n" "$supported" >&6; }
   16946 		if test "$supported" = "yes" ; then
   16947 			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
   16948 			found="yes"
   16949 		fi
   16950 	fi
   16951 
   16952 
   16953 
   16954 
   16955 
   16956 
   16957 
   16958 
   16959 
   16960 
   16961 
   16962 
   16963 
   16964 
   16965 
   16966 xorg_testset_save_CFLAGS="$CFLAGS"
   16967 
   16968 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   16969 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   16970 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   16971 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   16972 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   16973 then :
   16974   printf %s "(cached) " >&6
   16975 else $as_nop
   16976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16977 /* end confdefs.h.  */
   16978 int i;
   16979 _ACEOF
   16980 if ac_fn_c_try_compile "$LINENO"
   16981 then :
   16982   xorg_cv_cc_flag_unknown_warning_option=yes
   16983 else $as_nop
   16984   xorg_cv_cc_flag_unknown_warning_option=no
   16985 fi
   16986 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   16987 fi
   16988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   16989 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   16990 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   16991 	CFLAGS="$xorg_testset_save_CFLAGS"
   16992 fi
   16993 
   16994 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   16995 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   16996 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   16997 	fi
   16998 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   16999 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   17000 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   17001 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   17002 then :
   17003   printf %s "(cached) " >&6
   17004 else $as_nop
   17005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17006 /* end confdefs.h.  */
   17007 int i;
   17008 _ACEOF
   17009 if ac_fn_c_try_compile "$LINENO"
   17010 then :
   17011   xorg_cv_cc_flag_unused_command_line_argument=yes
   17012 else $as_nop
   17013   xorg_cv_cc_flag_unused_command_line_argument=no
   17014 fi
   17015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   17016 fi
   17017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   17018 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   17019 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   17020 	CFLAGS="$xorg_testset_save_CFLAGS"
   17021 fi
   17022 
   17023 found="no"
   17024 
   17025 	if test $found = "no" ; then
   17026 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   17027 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   17028 		fi
   17029 
   17030 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   17031 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   17032 		fi
   17033 
   17034 		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
   17035 
   17036 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
   17037 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
   17038 		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
   17039 		if eval test \${$cacheid+y}
   17040 then :
   17041   printf %s "(cached) " >&6
   17042 else $as_nop
   17043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17044 /* end confdefs.h.  */
   17045 int i;
   17046 int
   17047 main (void)
   17048 {
   17049 
   17050   ;
   17051   return 0;
   17052 }
   17053 _ACEOF
   17054 if ac_fn_c_try_link "$LINENO"
   17055 then :
   17056   eval $cacheid=yes
   17057 else $as_nop
   17058   eval $cacheid=no
   17059 fi
   17060 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   17061     conftest$ac_exeext conftest.$ac_ext
   17062 fi
   17063 
   17064 
   17065 		CFLAGS="$xorg_testset_save_CFLAGS"
   17066 
   17067 		eval supported=\$$cacheid
   17068 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   17069 printf "%s\n" "$supported" >&6; }
   17070 		if test "$supported" = "yes" ; then
   17071 			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
   17072 			found="yes"
   17073 		fi
   17074 	fi
   17075 
   17076  # Also -errwarn=E_BAD_PTR_INT_COMBINATION
   17077 else
   17078 { 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
   17079 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;}
   17080 
   17081 
   17082 
   17083 
   17084 
   17085 
   17086 
   17087 
   17088 
   17089 
   17090 
   17091 
   17092 
   17093 xorg_testset_save_CFLAGS="$CFLAGS"
   17094 
   17095 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   17096 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   17097 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   17098 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   17099 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   17100 then :
   17101   printf %s "(cached) " >&6
   17102 else $as_nop
   17103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17104 /* end confdefs.h.  */
   17105 int i;
   17106 _ACEOF
   17107 if ac_fn_c_try_compile "$LINENO"
   17108 then :
   17109   xorg_cv_cc_flag_unknown_warning_option=yes
   17110 else $as_nop
   17111   xorg_cv_cc_flag_unknown_warning_option=no
   17112 fi
   17113 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   17114 fi
   17115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   17116 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   17117 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   17118 	CFLAGS="$xorg_testset_save_CFLAGS"
   17119 fi
   17120 
   17121 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   17122 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   17123 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   17124 	fi
   17125 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   17126 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   17127 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   17128 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   17129 then :
   17130   printf %s "(cached) " >&6
   17131 else $as_nop
   17132   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17133 /* end confdefs.h.  */
   17134 int i;
   17135 _ACEOF
   17136 if ac_fn_c_try_compile "$LINENO"
   17137 then :
   17138   xorg_cv_cc_flag_unused_command_line_argument=yes
   17139 else $as_nop
   17140   xorg_cv_cc_flag_unused_command_line_argument=no
   17141 fi
   17142 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   17143 fi
   17144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   17145 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   17146 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   17147 	CFLAGS="$xorg_testset_save_CFLAGS"
   17148 fi
   17149 
   17150 found="no"
   17151 
   17152 	if test $found = "no" ; then
   17153 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   17154 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   17155 		fi
   17156 
   17157 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   17158 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   17159 		fi
   17160 
   17161 		CFLAGS="$CFLAGS -Wimplicit"
   17162 
   17163 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
   17164 printf %s "checking if $CC supports -Wimplicit... " >&6; }
   17165 		cacheid=xorg_cv_cc_flag__Wimplicit
   17166 		if eval test \${$cacheid+y}
   17167 then :
   17168   printf %s "(cached) " >&6
   17169 else $as_nop
   17170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17171 /* end confdefs.h.  */
   17172 int i;
   17173 int
   17174 main (void)
   17175 {
   17176 
   17177   ;
   17178   return 0;
   17179 }
   17180 _ACEOF
   17181 if ac_fn_c_try_link "$LINENO"
   17182 then :
   17183   eval $cacheid=yes
   17184 else $as_nop
   17185   eval $cacheid=no
   17186 fi
   17187 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   17188     conftest$ac_exeext conftest.$ac_ext
   17189 fi
   17190 
   17191 
   17192 		CFLAGS="$xorg_testset_save_CFLAGS"
   17193 
   17194 		eval supported=\$$cacheid
   17195 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   17196 printf "%s\n" "$supported" >&6; }
   17197 		if test "$supported" = "yes" ; then
   17198 			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
   17199 			found="yes"
   17200 		fi
   17201 	fi
   17202 
   17203 
   17204 
   17205 
   17206 
   17207 
   17208 
   17209 
   17210 
   17211 
   17212 
   17213 
   17214 
   17215 
   17216 
   17217 xorg_testset_save_CFLAGS="$CFLAGS"
   17218 
   17219 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   17220 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   17221 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   17222 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   17223 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   17224 then :
   17225   printf %s "(cached) " >&6
   17226 else $as_nop
   17227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17228 /* end confdefs.h.  */
   17229 int i;
   17230 _ACEOF
   17231 if ac_fn_c_try_compile "$LINENO"
   17232 then :
   17233   xorg_cv_cc_flag_unknown_warning_option=yes
   17234 else $as_nop
   17235   xorg_cv_cc_flag_unknown_warning_option=no
   17236 fi
   17237 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   17238 fi
   17239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   17240 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   17241 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   17242 	CFLAGS="$xorg_testset_save_CFLAGS"
   17243 fi
   17244 
   17245 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   17246 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   17247 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   17248 	fi
   17249 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   17250 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   17251 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   17252 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   17253 then :
   17254   printf %s "(cached) " >&6
   17255 else $as_nop
   17256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17257 /* end confdefs.h.  */
   17258 int i;
   17259 _ACEOF
   17260 if ac_fn_c_try_compile "$LINENO"
   17261 then :
   17262   xorg_cv_cc_flag_unused_command_line_argument=yes
   17263 else $as_nop
   17264   xorg_cv_cc_flag_unused_command_line_argument=no
   17265 fi
   17266 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   17267 fi
   17268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   17269 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   17270 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   17271 	CFLAGS="$xorg_testset_save_CFLAGS"
   17272 fi
   17273 
   17274 found="no"
   17275 
   17276 	if test $found = "no" ; then
   17277 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   17278 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   17279 		fi
   17280 
   17281 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   17282 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   17283 		fi
   17284 
   17285 		CFLAGS="$CFLAGS -Wnonnull"
   17286 
   17287 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
   17288 printf %s "checking if $CC supports -Wnonnull... " >&6; }
   17289 		cacheid=xorg_cv_cc_flag__Wnonnull
   17290 		if eval test \${$cacheid+y}
   17291 then :
   17292   printf %s "(cached) " >&6
   17293 else $as_nop
   17294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17295 /* end confdefs.h.  */
   17296 int i;
   17297 int
   17298 main (void)
   17299 {
   17300 
   17301   ;
   17302   return 0;
   17303 }
   17304 _ACEOF
   17305 if ac_fn_c_try_link "$LINENO"
   17306 then :
   17307   eval $cacheid=yes
   17308 else $as_nop
   17309   eval $cacheid=no
   17310 fi
   17311 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   17312     conftest$ac_exeext conftest.$ac_ext
   17313 fi
   17314 
   17315 
   17316 		CFLAGS="$xorg_testset_save_CFLAGS"
   17317 
   17318 		eval supported=\$$cacheid
   17319 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   17320 printf "%s\n" "$supported" >&6; }
   17321 		if test "$supported" = "yes" ; then
   17322 			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
   17323 			found="yes"
   17324 		fi
   17325 	fi
   17326 
   17327 
   17328 
   17329 
   17330 
   17331 
   17332 
   17333 
   17334 
   17335 
   17336 
   17337 
   17338 
   17339 
   17340 
   17341 xorg_testset_save_CFLAGS="$CFLAGS"
   17342 
   17343 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   17344 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   17345 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   17346 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   17347 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   17348 then :
   17349   printf %s "(cached) " >&6
   17350 else $as_nop
   17351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17352 /* end confdefs.h.  */
   17353 int i;
   17354 _ACEOF
   17355 if ac_fn_c_try_compile "$LINENO"
   17356 then :
   17357   xorg_cv_cc_flag_unknown_warning_option=yes
   17358 else $as_nop
   17359   xorg_cv_cc_flag_unknown_warning_option=no
   17360 fi
   17361 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   17362 fi
   17363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   17364 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   17365 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   17366 	CFLAGS="$xorg_testset_save_CFLAGS"
   17367 fi
   17368 
   17369 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   17370 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   17371 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   17372 	fi
   17373 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   17374 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   17375 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   17376 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   17377 then :
   17378   printf %s "(cached) " >&6
   17379 else $as_nop
   17380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17381 /* end confdefs.h.  */
   17382 int i;
   17383 _ACEOF
   17384 if ac_fn_c_try_compile "$LINENO"
   17385 then :
   17386   xorg_cv_cc_flag_unused_command_line_argument=yes
   17387 else $as_nop
   17388   xorg_cv_cc_flag_unused_command_line_argument=no
   17389 fi
   17390 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   17391 fi
   17392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   17393 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   17394 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   17395 	CFLAGS="$xorg_testset_save_CFLAGS"
   17396 fi
   17397 
   17398 found="no"
   17399 
   17400 	if test $found = "no" ; then
   17401 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   17402 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   17403 		fi
   17404 
   17405 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   17406 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   17407 		fi
   17408 
   17409 		CFLAGS="$CFLAGS -Winit-self"
   17410 
   17411 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
   17412 printf %s "checking if $CC supports -Winit-self... " >&6; }
   17413 		cacheid=xorg_cv_cc_flag__Winit_self
   17414 		if eval test \${$cacheid+y}
   17415 then :
   17416   printf %s "(cached) " >&6
   17417 else $as_nop
   17418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17419 /* end confdefs.h.  */
   17420 int i;
   17421 int
   17422 main (void)
   17423 {
   17424 
   17425   ;
   17426   return 0;
   17427 }
   17428 _ACEOF
   17429 if ac_fn_c_try_link "$LINENO"
   17430 then :
   17431   eval $cacheid=yes
   17432 else $as_nop
   17433   eval $cacheid=no
   17434 fi
   17435 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   17436     conftest$ac_exeext conftest.$ac_ext
   17437 fi
   17438 
   17439 
   17440 		CFLAGS="$xorg_testset_save_CFLAGS"
   17441 
   17442 		eval supported=\$$cacheid
   17443 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   17444 printf "%s\n" "$supported" >&6; }
   17445 		if test "$supported" = "yes" ; then
   17446 			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
   17447 			found="yes"
   17448 		fi
   17449 	fi
   17450 
   17451 
   17452 
   17453 
   17454 
   17455 
   17456 
   17457 
   17458 
   17459 
   17460 
   17461 
   17462 
   17463 
   17464 
   17465 xorg_testset_save_CFLAGS="$CFLAGS"
   17466 
   17467 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   17468 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   17469 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   17470 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   17471 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   17472 then :
   17473   printf %s "(cached) " >&6
   17474 else $as_nop
   17475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17476 /* end confdefs.h.  */
   17477 int i;
   17478 _ACEOF
   17479 if ac_fn_c_try_compile "$LINENO"
   17480 then :
   17481   xorg_cv_cc_flag_unknown_warning_option=yes
   17482 else $as_nop
   17483   xorg_cv_cc_flag_unknown_warning_option=no
   17484 fi
   17485 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   17486 fi
   17487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   17488 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   17489 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   17490 	CFLAGS="$xorg_testset_save_CFLAGS"
   17491 fi
   17492 
   17493 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   17494 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   17495 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   17496 	fi
   17497 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   17498 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   17499 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   17500 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   17501 then :
   17502   printf %s "(cached) " >&6
   17503 else $as_nop
   17504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17505 /* end confdefs.h.  */
   17506 int i;
   17507 _ACEOF
   17508 if ac_fn_c_try_compile "$LINENO"
   17509 then :
   17510   xorg_cv_cc_flag_unused_command_line_argument=yes
   17511 else $as_nop
   17512   xorg_cv_cc_flag_unused_command_line_argument=no
   17513 fi
   17514 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   17515 fi
   17516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   17517 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   17518 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   17519 	CFLAGS="$xorg_testset_save_CFLAGS"
   17520 fi
   17521 
   17522 found="no"
   17523 
   17524 	if test $found = "no" ; then
   17525 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   17526 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   17527 		fi
   17528 
   17529 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   17530 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   17531 		fi
   17532 
   17533 		CFLAGS="$CFLAGS -Wmain"
   17534 
   17535 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
   17536 printf %s "checking if $CC supports -Wmain... " >&6; }
   17537 		cacheid=xorg_cv_cc_flag__Wmain
   17538 		if eval test \${$cacheid+y}
   17539 then :
   17540   printf %s "(cached) " >&6
   17541 else $as_nop
   17542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17543 /* end confdefs.h.  */
   17544 int i;
   17545 int
   17546 main (void)
   17547 {
   17548 
   17549   ;
   17550   return 0;
   17551 }
   17552 _ACEOF
   17553 if ac_fn_c_try_link "$LINENO"
   17554 then :
   17555   eval $cacheid=yes
   17556 else $as_nop
   17557   eval $cacheid=no
   17558 fi
   17559 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   17560     conftest$ac_exeext conftest.$ac_ext
   17561 fi
   17562 
   17563 
   17564 		CFLAGS="$xorg_testset_save_CFLAGS"
   17565 
   17566 		eval supported=\$$cacheid
   17567 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   17568 printf "%s\n" "$supported" >&6; }
   17569 		if test "$supported" = "yes" ; then
   17570 			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
   17571 			found="yes"
   17572 		fi
   17573 	fi
   17574 
   17575 
   17576 
   17577 
   17578 
   17579 
   17580 
   17581 
   17582 
   17583 
   17584 
   17585 
   17586 
   17587 
   17588 
   17589 xorg_testset_save_CFLAGS="$CFLAGS"
   17590 
   17591 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   17592 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   17593 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   17594 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   17595 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   17596 then :
   17597   printf %s "(cached) " >&6
   17598 else $as_nop
   17599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17600 /* end confdefs.h.  */
   17601 int i;
   17602 _ACEOF
   17603 if ac_fn_c_try_compile "$LINENO"
   17604 then :
   17605   xorg_cv_cc_flag_unknown_warning_option=yes
   17606 else $as_nop
   17607   xorg_cv_cc_flag_unknown_warning_option=no
   17608 fi
   17609 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   17610 fi
   17611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   17612 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   17613 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   17614 	CFLAGS="$xorg_testset_save_CFLAGS"
   17615 fi
   17616 
   17617 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   17618 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   17619 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   17620 	fi
   17621 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   17622 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   17623 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   17624 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   17625 then :
   17626   printf %s "(cached) " >&6
   17627 else $as_nop
   17628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17629 /* end confdefs.h.  */
   17630 int i;
   17631 _ACEOF
   17632 if ac_fn_c_try_compile "$LINENO"
   17633 then :
   17634   xorg_cv_cc_flag_unused_command_line_argument=yes
   17635 else $as_nop
   17636   xorg_cv_cc_flag_unused_command_line_argument=no
   17637 fi
   17638 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   17639 fi
   17640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   17641 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   17642 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   17643 	CFLAGS="$xorg_testset_save_CFLAGS"
   17644 fi
   17645 
   17646 found="no"
   17647 
   17648 	if test $found = "no" ; then
   17649 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   17650 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   17651 		fi
   17652 
   17653 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   17654 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   17655 		fi
   17656 
   17657 		CFLAGS="$CFLAGS -Wmissing-braces"
   17658 
   17659 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
   17660 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
   17661 		cacheid=xorg_cv_cc_flag__Wmissing_braces
   17662 		if eval test \${$cacheid+y}
   17663 then :
   17664   printf %s "(cached) " >&6
   17665 else $as_nop
   17666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17667 /* end confdefs.h.  */
   17668 int i;
   17669 int
   17670 main (void)
   17671 {
   17672 
   17673   ;
   17674   return 0;
   17675 }
   17676 _ACEOF
   17677 if ac_fn_c_try_link "$LINENO"
   17678 then :
   17679   eval $cacheid=yes
   17680 else $as_nop
   17681   eval $cacheid=no
   17682 fi
   17683 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   17684     conftest$ac_exeext conftest.$ac_ext
   17685 fi
   17686 
   17687 
   17688 		CFLAGS="$xorg_testset_save_CFLAGS"
   17689 
   17690 		eval supported=\$$cacheid
   17691 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   17692 printf "%s\n" "$supported" >&6; }
   17693 		if test "$supported" = "yes" ; then
   17694 			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
   17695 			found="yes"
   17696 		fi
   17697 	fi
   17698 
   17699 
   17700 
   17701 
   17702 
   17703 
   17704 
   17705 
   17706 
   17707 
   17708 
   17709 
   17710 
   17711 
   17712 
   17713 xorg_testset_save_CFLAGS="$CFLAGS"
   17714 
   17715 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   17716 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   17717 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   17718 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   17719 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   17720 then :
   17721   printf %s "(cached) " >&6
   17722 else $as_nop
   17723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17724 /* end confdefs.h.  */
   17725 int i;
   17726 _ACEOF
   17727 if ac_fn_c_try_compile "$LINENO"
   17728 then :
   17729   xorg_cv_cc_flag_unknown_warning_option=yes
   17730 else $as_nop
   17731   xorg_cv_cc_flag_unknown_warning_option=no
   17732 fi
   17733 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   17734 fi
   17735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   17736 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   17737 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   17738 	CFLAGS="$xorg_testset_save_CFLAGS"
   17739 fi
   17740 
   17741 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   17742 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   17743 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   17744 	fi
   17745 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   17746 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   17747 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   17748 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   17749 then :
   17750   printf %s "(cached) " >&6
   17751 else $as_nop
   17752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17753 /* end confdefs.h.  */
   17754 int i;
   17755 _ACEOF
   17756 if ac_fn_c_try_compile "$LINENO"
   17757 then :
   17758   xorg_cv_cc_flag_unused_command_line_argument=yes
   17759 else $as_nop
   17760   xorg_cv_cc_flag_unused_command_line_argument=no
   17761 fi
   17762 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   17763 fi
   17764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   17765 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   17766 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   17767 	CFLAGS="$xorg_testset_save_CFLAGS"
   17768 fi
   17769 
   17770 found="no"
   17771 
   17772 	if test $found = "no" ; then
   17773 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   17774 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   17775 		fi
   17776 
   17777 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   17778 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   17779 		fi
   17780 
   17781 		CFLAGS="$CFLAGS -Wsequence-point"
   17782 
   17783 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
   17784 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
   17785 		cacheid=xorg_cv_cc_flag__Wsequence_point
   17786 		if eval test \${$cacheid+y}
   17787 then :
   17788   printf %s "(cached) " >&6
   17789 else $as_nop
   17790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17791 /* end confdefs.h.  */
   17792 int i;
   17793 int
   17794 main (void)
   17795 {
   17796 
   17797   ;
   17798   return 0;
   17799 }
   17800 _ACEOF
   17801 if ac_fn_c_try_link "$LINENO"
   17802 then :
   17803   eval $cacheid=yes
   17804 else $as_nop
   17805   eval $cacheid=no
   17806 fi
   17807 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   17808     conftest$ac_exeext conftest.$ac_ext
   17809 fi
   17810 
   17811 
   17812 		CFLAGS="$xorg_testset_save_CFLAGS"
   17813 
   17814 		eval supported=\$$cacheid
   17815 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   17816 printf "%s\n" "$supported" >&6; }
   17817 		if test "$supported" = "yes" ; then
   17818 			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
   17819 			found="yes"
   17820 		fi
   17821 	fi
   17822 
   17823 
   17824 
   17825 
   17826 
   17827 
   17828 
   17829 
   17830 
   17831 
   17832 
   17833 
   17834 
   17835 
   17836 
   17837 xorg_testset_save_CFLAGS="$CFLAGS"
   17838 
   17839 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   17840 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   17841 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   17842 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   17843 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   17844 then :
   17845   printf %s "(cached) " >&6
   17846 else $as_nop
   17847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17848 /* end confdefs.h.  */
   17849 int i;
   17850 _ACEOF
   17851 if ac_fn_c_try_compile "$LINENO"
   17852 then :
   17853   xorg_cv_cc_flag_unknown_warning_option=yes
   17854 else $as_nop
   17855   xorg_cv_cc_flag_unknown_warning_option=no
   17856 fi
   17857 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   17858 fi
   17859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   17860 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   17861 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   17862 	CFLAGS="$xorg_testset_save_CFLAGS"
   17863 fi
   17864 
   17865 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   17866 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   17867 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   17868 	fi
   17869 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   17870 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   17871 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   17872 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   17873 then :
   17874   printf %s "(cached) " >&6
   17875 else $as_nop
   17876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17877 /* end confdefs.h.  */
   17878 int i;
   17879 _ACEOF
   17880 if ac_fn_c_try_compile "$LINENO"
   17881 then :
   17882   xorg_cv_cc_flag_unused_command_line_argument=yes
   17883 else $as_nop
   17884   xorg_cv_cc_flag_unused_command_line_argument=no
   17885 fi
   17886 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   17887 fi
   17888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   17889 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   17890 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   17891 	CFLAGS="$xorg_testset_save_CFLAGS"
   17892 fi
   17893 
   17894 found="no"
   17895 
   17896 	if test $found = "no" ; then
   17897 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   17898 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   17899 		fi
   17900 
   17901 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   17902 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   17903 		fi
   17904 
   17905 		CFLAGS="$CFLAGS -Wreturn-type"
   17906 
   17907 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
   17908 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
   17909 		cacheid=xorg_cv_cc_flag__Wreturn_type
   17910 		if eval test \${$cacheid+y}
   17911 then :
   17912   printf %s "(cached) " >&6
   17913 else $as_nop
   17914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17915 /* end confdefs.h.  */
   17916 int i;
   17917 int
   17918 main (void)
   17919 {
   17920 
   17921   ;
   17922   return 0;
   17923 }
   17924 _ACEOF
   17925 if ac_fn_c_try_link "$LINENO"
   17926 then :
   17927   eval $cacheid=yes
   17928 else $as_nop
   17929   eval $cacheid=no
   17930 fi
   17931 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   17932     conftest$ac_exeext conftest.$ac_ext
   17933 fi
   17934 
   17935 
   17936 		CFLAGS="$xorg_testset_save_CFLAGS"
   17937 
   17938 		eval supported=\$$cacheid
   17939 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   17940 printf "%s\n" "$supported" >&6; }
   17941 		if test "$supported" = "yes" ; then
   17942 			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
   17943 			found="yes"
   17944 		fi
   17945 	fi
   17946 
   17947 
   17948 
   17949 
   17950 
   17951 
   17952 
   17953 
   17954 
   17955 
   17956 
   17957 
   17958 
   17959 
   17960 
   17961 xorg_testset_save_CFLAGS="$CFLAGS"
   17962 
   17963 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   17964 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   17965 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   17966 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   17967 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   17968 then :
   17969   printf %s "(cached) " >&6
   17970 else $as_nop
   17971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17972 /* end confdefs.h.  */
   17973 int i;
   17974 _ACEOF
   17975 if ac_fn_c_try_compile "$LINENO"
   17976 then :
   17977   xorg_cv_cc_flag_unknown_warning_option=yes
   17978 else $as_nop
   17979   xorg_cv_cc_flag_unknown_warning_option=no
   17980 fi
   17981 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   17982 fi
   17983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   17984 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   17985 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   17986 	CFLAGS="$xorg_testset_save_CFLAGS"
   17987 fi
   17988 
   17989 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   17990 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   17991 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   17992 	fi
   17993 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   17994 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   17995 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   17996 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   17997 then :
   17998   printf %s "(cached) " >&6
   17999 else $as_nop
   18000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18001 /* end confdefs.h.  */
   18002 int i;
   18003 _ACEOF
   18004 if ac_fn_c_try_compile "$LINENO"
   18005 then :
   18006   xorg_cv_cc_flag_unused_command_line_argument=yes
   18007 else $as_nop
   18008   xorg_cv_cc_flag_unused_command_line_argument=no
   18009 fi
   18010 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   18011 fi
   18012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   18013 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   18014 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   18015 	CFLAGS="$xorg_testset_save_CFLAGS"
   18016 fi
   18017 
   18018 found="no"
   18019 
   18020 	if test $found = "no" ; then
   18021 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   18022 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   18023 		fi
   18024 
   18025 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   18026 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   18027 		fi
   18028 
   18029 		CFLAGS="$CFLAGS -Wtrigraphs"
   18030 
   18031 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
   18032 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
   18033 		cacheid=xorg_cv_cc_flag__Wtrigraphs
   18034 		if eval test \${$cacheid+y}
   18035 then :
   18036   printf %s "(cached) " >&6
   18037 else $as_nop
   18038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18039 /* end confdefs.h.  */
   18040 int i;
   18041 int
   18042 main (void)
   18043 {
   18044 
   18045   ;
   18046   return 0;
   18047 }
   18048 _ACEOF
   18049 if ac_fn_c_try_link "$LINENO"
   18050 then :
   18051   eval $cacheid=yes
   18052 else $as_nop
   18053   eval $cacheid=no
   18054 fi
   18055 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   18056     conftest$ac_exeext conftest.$ac_ext
   18057 fi
   18058 
   18059 
   18060 		CFLAGS="$xorg_testset_save_CFLAGS"
   18061 
   18062 		eval supported=\$$cacheid
   18063 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   18064 printf "%s\n" "$supported" >&6; }
   18065 		if test "$supported" = "yes" ; then
   18066 			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
   18067 			found="yes"
   18068 		fi
   18069 	fi
   18070 
   18071 
   18072 
   18073 
   18074 
   18075 
   18076 
   18077 
   18078 
   18079 
   18080 
   18081 
   18082 
   18083 
   18084 
   18085 xorg_testset_save_CFLAGS="$CFLAGS"
   18086 
   18087 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   18088 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   18089 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   18090 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   18091 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   18092 then :
   18093   printf %s "(cached) " >&6
   18094 else $as_nop
   18095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18096 /* end confdefs.h.  */
   18097 int i;
   18098 _ACEOF
   18099 if ac_fn_c_try_compile "$LINENO"
   18100 then :
   18101   xorg_cv_cc_flag_unknown_warning_option=yes
   18102 else $as_nop
   18103   xorg_cv_cc_flag_unknown_warning_option=no
   18104 fi
   18105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   18106 fi
   18107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   18108 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   18109 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   18110 	CFLAGS="$xorg_testset_save_CFLAGS"
   18111 fi
   18112 
   18113 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   18114 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   18115 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   18116 	fi
   18117 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   18118 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   18119 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   18120 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   18121 then :
   18122   printf %s "(cached) " >&6
   18123 else $as_nop
   18124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18125 /* end confdefs.h.  */
   18126 int i;
   18127 _ACEOF
   18128 if ac_fn_c_try_compile "$LINENO"
   18129 then :
   18130   xorg_cv_cc_flag_unused_command_line_argument=yes
   18131 else $as_nop
   18132   xorg_cv_cc_flag_unused_command_line_argument=no
   18133 fi
   18134 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   18135 fi
   18136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   18137 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   18138 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   18139 	CFLAGS="$xorg_testset_save_CFLAGS"
   18140 fi
   18141 
   18142 found="no"
   18143 
   18144 	if test $found = "no" ; then
   18145 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   18146 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   18147 		fi
   18148 
   18149 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   18150 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   18151 		fi
   18152 
   18153 		CFLAGS="$CFLAGS -Warray-bounds"
   18154 
   18155 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
   18156 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
   18157 		cacheid=xorg_cv_cc_flag__Warray_bounds
   18158 		if eval test \${$cacheid+y}
   18159 then :
   18160   printf %s "(cached) " >&6
   18161 else $as_nop
   18162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18163 /* end confdefs.h.  */
   18164 int i;
   18165 int
   18166 main (void)
   18167 {
   18168 
   18169   ;
   18170   return 0;
   18171 }
   18172 _ACEOF
   18173 if ac_fn_c_try_link "$LINENO"
   18174 then :
   18175   eval $cacheid=yes
   18176 else $as_nop
   18177   eval $cacheid=no
   18178 fi
   18179 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   18180     conftest$ac_exeext conftest.$ac_ext
   18181 fi
   18182 
   18183 
   18184 		CFLAGS="$xorg_testset_save_CFLAGS"
   18185 
   18186 		eval supported=\$$cacheid
   18187 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   18188 printf "%s\n" "$supported" >&6; }
   18189 		if test "$supported" = "yes" ; then
   18190 			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
   18191 			found="yes"
   18192 		fi
   18193 	fi
   18194 
   18195 
   18196 
   18197 
   18198 
   18199 
   18200 
   18201 
   18202 
   18203 
   18204 
   18205 
   18206 
   18207 
   18208 
   18209 xorg_testset_save_CFLAGS="$CFLAGS"
   18210 
   18211 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   18212 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   18213 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   18214 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   18215 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   18216 then :
   18217   printf %s "(cached) " >&6
   18218 else $as_nop
   18219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18220 /* end confdefs.h.  */
   18221 int i;
   18222 _ACEOF
   18223 if ac_fn_c_try_compile "$LINENO"
   18224 then :
   18225   xorg_cv_cc_flag_unknown_warning_option=yes
   18226 else $as_nop
   18227   xorg_cv_cc_flag_unknown_warning_option=no
   18228 fi
   18229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   18230 fi
   18231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   18232 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   18233 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   18234 	CFLAGS="$xorg_testset_save_CFLAGS"
   18235 fi
   18236 
   18237 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   18238 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   18239 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   18240 	fi
   18241 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   18242 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   18243 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   18244 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   18245 then :
   18246   printf %s "(cached) " >&6
   18247 else $as_nop
   18248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18249 /* end confdefs.h.  */
   18250 int i;
   18251 _ACEOF
   18252 if ac_fn_c_try_compile "$LINENO"
   18253 then :
   18254   xorg_cv_cc_flag_unused_command_line_argument=yes
   18255 else $as_nop
   18256   xorg_cv_cc_flag_unused_command_line_argument=no
   18257 fi
   18258 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   18259 fi
   18260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   18261 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   18262 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   18263 	CFLAGS="$xorg_testset_save_CFLAGS"
   18264 fi
   18265 
   18266 found="no"
   18267 
   18268 	if test $found = "no" ; then
   18269 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   18270 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   18271 		fi
   18272 
   18273 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   18274 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   18275 		fi
   18276 
   18277 		CFLAGS="$CFLAGS -Wwrite-strings"
   18278 
   18279 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
   18280 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
   18281 		cacheid=xorg_cv_cc_flag__Wwrite_strings
   18282 		if eval test \${$cacheid+y}
   18283 then :
   18284   printf %s "(cached) " >&6
   18285 else $as_nop
   18286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18287 /* end confdefs.h.  */
   18288 int i;
   18289 int
   18290 main (void)
   18291 {
   18292 
   18293   ;
   18294   return 0;
   18295 }
   18296 _ACEOF
   18297 if ac_fn_c_try_link "$LINENO"
   18298 then :
   18299   eval $cacheid=yes
   18300 else $as_nop
   18301   eval $cacheid=no
   18302 fi
   18303 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   18304     conftest$ac_exeext conftest.$ac_ext
   18305 fi
   18306 
   18307 
   18308 		CFLAGS="$xorg_testset_save_CFLAGS"
   18309 
   18310 		eval supported=\$$cacheid
   18311 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   18312 printf "%s\n" "$supported" >&6; }
   18313 		if test "$supported" = "yes" ; then
   18314 			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
   18315 			found="yes"
   18316 		fi
   18317 	fi
   18318 
   18319 
   18320 
   18321 
   18322 
   18323 
   18324 
   18325 
   18326 
   18327 
   18328 
   18329 
   18330 
   18331 
   18332 
   18333 xorg_testset_save_CFLAGS="$CFLAGS"
   18334 
   18335 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   18336 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   18337 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   18338 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   18339 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   18340 then :
   18341   printf %s "(cached) " >&6
   18342 else $as_nop
   18343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18344 /* end confdefs.h.  */
   18345 int i;
   18346 _ACEOF
   18347 if ac_fn_c_try_compile "$LINENO"
   18348 then :
   18349   xorg_cv_cc_flag_unknown_warning_option=yes
   18350 else $as_nop
   18351   xorg_cv_cc_flag_unknown_warning_option=no
   18352 fi
   18353 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   18354 fi
   18355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   18356 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   18357 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   18358 	CFLAGS="$xorg_testset_save_CFLAGS"
   18359 fi
   18360 
   18361 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   18362 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   18363 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   18364 	fi
   18365 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   18366 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   18367 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   18368 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   18369 then :
   18370   printf %s "(cached) " >&6
   18371 else $as_nop
   18372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18373 /* end confdefs.h.  */
   18374 int i;
   18375 _ACEOF
   18376 if ac_fn_c_try_compile "$LINENO"
   18377 then :
   18378   xorg_cv_cc_flag_unused_command_line_argument=yes
   18379 else $as_nop
   18380   xorg_cv_cc_flag_unused_command_line_argument=no
   18381 fi
   18382 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   18383 fi
   18384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   18385 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   18386 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   18387 	CFLAGS="$xorg_testset_save_CFLAGS"
   18388 fi
   18389 
   18390 found="no"
   18391 
   18392 	if test $found = "no" ; then
   18393 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   18394 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   18395 		fi
   18396 
   18397 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   18398 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   18399 		fi
   18400 
   18401 		CFLAGS="$CFLAGS -Waddress"
   18402 
   18403 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
   18404 printf %s "checking if $CC supports -Waddress... " >&6; }
   18405 		cacheid=xorg_cv_cc_flag__Waddress
   18406 		if eval test \${$cacheid+y}
   18407 then :
   18408   printf %s "(cached) " >&6
   18409 else $as_nop
   18410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18411 /* end confdefs.h.  */
   18412 int i;
   18413 int
   18414 main (void)
   18415 {
   18416 
   18417   ;
   18418   return 0;
   18419 }
   18420 _ACEOF
   18421 if ac_fn_c_try_link "$LINENO"
   18422 then :
   18423   eval $cacheid=yes
   18424 else $as_nop
   18425   eval $cacheid=no
   18426 fi
   18427 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   18428     conftest$ac_exeext conftest.$ac_ext
   18429 fi
   18430 
   18431 
   18432 		CFLAGS="$xorg_testset_save_CFLAGS"
   18433 
   18434 		eval supported=\$$cacheid
   18435 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   18436 printf "%s\n" "$supported" >&6; }
   18437 		if test "$supported" = "yes" ; then
   18438 			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
   18439 			found="yes"
   18440 		fi
   18441 	fi
   18442 
   18443 
   18444 
   18445 
   18446 
   18447 
   18448 
   18449 
   18450 
   18451 
   18452 
   18453 
   18454 
   18455 
   18456 
   18457 xorg_testset_save_CFLAGS="$CFLAGS"
   18458 
   18459 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   18460 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   18461 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   18462 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   18463 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   18464 then :
   18465   printf %s "(cached) " >&6
   18466 else $as_nop
   18467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18468 /* end confdefs.h.  */
   18469 int i;
   18470 _ACEOF
   18471 if ac_fn_c_try_compile "$LINENO"
   18472 then :
   18473   xorg_cv_cc_flag_unknown_warning_option=yes
   18474 else $as_nop
   18475   xorg_cv_cc_flag_unknown_warning_option=no
   18476 fi
   18477 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   18478 fi
   18479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   18480 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   18481 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   18482 	CFLAGS="$xorg_testset_save_CFLAGS"
   18483 fi
   18484 
   18485 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   18486 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   18487 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   18488 	fi
   18489 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   18490 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   18491 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   18492 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   18493 then :
   18494   printf %s "(cached) " >&6
   18495 else $as_nop
   18496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18497 /* end confdefs.h.  */
   18498 int i;
   18499 _ACEOF
   18500 if ac_fn_c_try_compile "$LINENO"
   18501 then :
   18502   xorg_cv_cc_flag_unused_command_line_argument=yes
   18503 else $as_nop
   18504   xorg_cv_cc_flag_unused_command_line_argument=no
   18505 fi
   18506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   18507 fi
   18508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   18509 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   18510 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   18511 	CFLAGS="$xorg_testset_save_CFLAGS"
   18512 fi
   18513 
   18514 found="no"
   18515 
   18516 	if test $found = "no" ; then
   18517 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   18518 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   18519 		fi
   18520 
   18521 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   18522 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   18523 		fi
   18524 
   18525 		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
   18526 
   18527 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
   18528 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
   18529 		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
   18530 		if eval test \${$cacheid+y}
   18531 then :
   18532   printf %s "(cached) " >&6
   18533 else $as_nop
   18534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18535 /* end confdefs.h.  */
   18536 int i;
   18537 int
   18538 main (void)
   18539 {
   18540 
   18541   ;
   18542   return 0;
   18543 }
   18544 _ACEOF
   18545 if ac_fn_c_try_link "$LINENO"
   18546 then :
   18547   eval $cacheid=yes
   18548 else $as_nop
   18549   eval $cacheid=no
   18550 fi
   18551 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   18552     conftest$ac_exeext conftest.$ac_ext
   18553 fi
   18554 
   18555 
   18556 		CFLAGS="$xorg_testset_save_CFLAGS"
   18557 
   18558 		eval supported=\$$cacheid
   18559 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   18560 printf "%s\n" "$supported" >&6; }
   18561 		if test "$supported" = "yes" ; then
   18562 			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
   18563 			found="yes"
   18564 		fi
   18565 	fi
   18566 
   18567 
   18568 
   18569 
   18570 
   18571 
   18572 
   18573 
   18574 
   18575 
   18576 
   18577 
   18578 
   18579 
   18580 
   18581 xorg_testset_save_CFLAGS="$CFLAGS"
   18582 
   18583 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   18584 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   18585 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   18586 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   18587 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   18588 then :
   18589   printf %s "(cached) " >&6
   18590 else $as_nop
   18591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18592 /* end confdefs.h.  */
   18593 int i;
   18594 _ACEOF
   18595 if ac_fn_c_try_compile "$LINENO"
   18596 then :
   18597   xorg_cv_cc_flag_unknown_warning_option=yes
   18598 else $as_nop
   18599   xorg_cv_cc_flag_unknown_warning_option=no
   18600 fi
   18601 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   18602 fi
   18603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   18604 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   18605 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   18606 	CFLAGS="$xorg_testset_save_CFLAGS"
   18607 fi
   18608 
   18609 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   18610 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   18611 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   18612 	fi
   18613 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   18614 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   18615 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   18616 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   18617 then :
   18618   printf %s "(cached) " >&6
   18619 else $as_nop
   18620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18621 /* end confdefs.h.  */
   18622 int i;
   18623 _ACEOF
   18624 if ac_fn_c_try_compile "$LINENO"
   18625 then :
   18626   xorg_cv_cc_flag_unused_command_line_argument=yes
   18627 else $as_nop
   18628   xorg_cv_cc_flag_unused_command_line_argument=no
   18629 fi
   18630 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   18631 fi
   18632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   18633 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   18634 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   18635 	CFLAGS="$xorg_testset_save_CFLAGS"
   18636 fi
   18637 
   18638 found="no"
   18639 
   18640 	if test $found = "no" ; then
   18641 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   18642 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   18643 		fi
   18644 
   18645 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   18646 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   18647 		fi
   18648 
   18649 		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
   18650 
   18651 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
   18652 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
   18653 		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
   18654 		if eval test \${$cacheid+y}
   18655 then :
   18656   printf %s "(cached) " >&6
   18657 else $as_nop
   18658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18659 /* end confdefs.h.  */
   18660 int i;
   18661 int
   18662 main (void)
   18663 {
   18664 
   18665   ;
   18666   return 0;
   18667 }
   18668 _ACEOF
   18669 if ac_fn_c_try_link "$LINENO"
   18670 then :
   18671   eval $cacheid=yes
   18672 else $as_nop
   18673   eval $cacheid=no
   18674 fi
   18675 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   18676     conftest$ac_exeext conftest.$ac_ext
   18677 fi
   18678 
   18679 
   18680 		CFLAGS="$xorg_testset_save_CFLAGS"
   18681 
   18682 		eval supported=\$$cacheid
   18683 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   18684 printf "%s\n" "$supported" >&6; }
   18685 		if test "$supported" = "yes" ; then
   18686 			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
   18687 			found="yes"
   18688 		fi
   18689 	fi
   18690 
   18691 
   18692 fi
   18693 
   18694 
   18695 
   18696 
   18697 
   18698 
   18699 
   18700 		CWARNFLAGS="$BASE_CFLAGS"
   18701 		if  test "x$GCC" = xyes ; then
   18702 		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
   18703 		fi
   18704 
   18705 
   18706 
   18707 
   18708 
   18709 
   18710 
   18711 
   18712 # Check whether --enable-strict-compilation was given.
   18713 if test ${enable_strict_compilation+y}
   18714 then :
   18715   enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
   18716 else $as_nop
   18717   STRICT_COMPILE=no
   18718 fi
   18719 
   18720 
   18721 
   18722 
   18723 
   18724 
   18725 STRICT_CFLAGS=""
   18726 
   18727 
   18728 
   18729 
   18730 
   18731 
   18732 
   18733 
   18734 
   18735 
   18736 
   18737 
   18738 
   18739 xorg_testset_save_CFLAGS="$CFLAGS"
   18740 
   18741 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   18742 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   18743 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   18744 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   18745 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   18746 then :
   18747   printf %s "(cached) " >&6
   18748 else $as_nop
   18749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18750 /* end confdefs.h.  */
   18751 int i;
   18752 _ACEOF
   18753 if ac_fn_c_try_compile "$LINENO"
   18754 then :
   18755   xorg_cv_cc_flag_unknown_warning_option=yes
   18756 else $as_nop
   18757   xorg_cv_cc_flag_unknown_warning_option=no
   18758 fi
   18759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   18760 fi
   18761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   18762 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   18763 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   18764 	CFLAGS="$xorg_testset_save_CFLAGS"
   18765 fi
   18766 
   18767 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   18768 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   18769 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   18770 	fi
   18771 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   18772 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   18773 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   18774 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   18775 then :
   18776   printf %s "(cached) " >&6
   18777 else $as_nop
   18778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18779 /* end confdefs.h.  */
   18780 int i;
   18781 _ACEOF
   18782 if ac_fn_c_try_compile "$LINENO"
   18783 then :
   18784   xorg_cv_cc_flag_unused_command_line_argument=yes
   18785 else $as_nop
   18786   xorg_cv_cc_flag_unused_command_line_argument=no
   18787 fi
   18788 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   18789 fi
   18790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   18791 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   18792 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   18793 	CFLAGS="$xorg_testset_save_CFLAGS"
   18794 fi
   18795 
   18796 found="no"
   18797 
   18798 	if test $found = "no" ; then
   18799 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   18800 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   18801 		fi
   18802 
   18803 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   18804 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   18805 		fi
   18806 
   18807 		CFLAGS="$CFLAGS -pedantic"
   18808 
   18809 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
   18810 printf %s "checking if $CC supports -pedantic... " >&6; }
   18811 		cacheid=xorg_cv_cc_flag__pedantic
   18812 		if eval test \${$cacheid+y}
   18813 then :
   18814   printf %s "(cached) " >&6
   18815 else $as_nop
   18816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18817 /* end confdefs.h.  */
   18818 int i;
   18819 int
   18820 main (void)
   18821 {
   18822 
   18823   ;
   18824   return 0;
   18825 }
   18826 _ACEOF
   18827 if ac_fn_c_try_link "$LINENO"
   18828 then :
   18829   eval $cacheid=yes
   18830 else $as_nop
   18831   eval $cacheid=no
   18832 fi
   18833 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   18834     conftest$ac_exeext conftest.$ac_ext
   18835 fi
   18836 
   18837 
   18838 		CFLAGS="$xorg_testset_save_CFLAGS"
   18839 
   18840 		eval supported=\$$cacheid
   18841 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   18842 printf "%s\n" "$supported" >&6; }
   18843 		if test "$supported" = "yes" ; then
   18844 			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
   18845 			found="yes"
   18846 		fi
   18847 	fi
   18848 
   18849 
   18850 
   18851 
   18852 
   18853 
   18854 
   18855 
   18856 
   18857 
   18858 
   18859 
   18860 
   18861 
   18862 
   18863 xorg_testset_save_CFLAGS="$CFLAGS"
   18864 
   18865 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   18866 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   18867 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   18868 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   18869 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   18870 then :
   18871   printf %s "(cached) " >&6
   18872 else $as_nop
   18873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18874 /* end confdefs.h.  */
   18875 int i;
   18876 _ACEOF
   18877 if ac_fn_c_try_compile "$LINENO"
   18878 then :
   18879   xorg_cv_cc_flag_unknown_warning_option=yes
   18880 else $as_nop
   18881   xorg_cv_cc_flag_unknown_warning_option=no
   18882 fi
   18883 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   18884 fi
   18885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   18886 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   18887 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   18888 	CFLAGS="$xorg_testset_save_CFLAGS"
   18889 fi
   18890 
   18891 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   18892 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   18893 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   18894 	fi
   18895 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   18896 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   18897 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   18898 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   18899 then :
   18900   printf %s "(cached) " >&6
   18901 else $as_nop
   18902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18903 /* end confdefs.h.  */
   18904 int i;
   18905 _ACEOF
   18906 if ac_fn_c_try_compile "$LINENO"
   18907 then :
   18908   xorg_cv_cc_flag_unused_command_line_argument=yes
   18909 else $as_nop
   18910   xorg_cv_cc_flag_unused_command_line_argument=no
   18911 fi
   18912 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   18913 fi
   18914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   18915 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   18916 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   18917 	CFLAGS="$xorg_testset_save_CFLAGS"
   18918 fi
   18919 
   18920 found="no"
   18921 
   18922 	if test $found = "no" ; then
   18923 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   18924 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   18925 		fi
   18926 
   18927 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   18928 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   18929 		fi
   18930 
   18931 		CFLAGS="$CFLAGS -Werror"
   18932 
   18933 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
   18934 printf %s "checking if $CC supports -Werror... " >&6; }
   18935 		cacheid=xorg_cv_cc_flag__Werror
   18936 		if eval test \${$cacheid+y}
   18937 then :
   18938   printf %s "(cached) " >&6
   18939 else $as_nop
   18940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18941 /* end confdefs.h.  */
   18942 int i;
   18943 int
   18944 main (void)
   18945 {
   18946 
   18947   ;
   18948   return 0;
   18949 }
   18950 _ACEOF
   18951 if ac_fn_c_try_link "$LINENO"
   18952 then :
   18953   eval $cacheid=yes
   18954 else $as_nop
   18955   eval $cacheid=no
   18956 fi
   18957 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   18958     conftest$ac_exeext conftest.$ac_ext
   18959 fi
   18960 
   18961 
   18962 		CFLAGS="$xorg_testset_save_CFLAGS"
   18963 
   18964 		eval supported=\$$cacheid
   18965 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   18966 printf "%s\n" "$supported" >&6; }
   18967 		if test "$supported" = "yes" ; then
   18968 			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
   18969 			found="yes"
   18970 		fi
   18971 	fi
   18972 
   18973 	if test $found = "no" ; then
   18974 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   18975 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   18976 		fi
   18977 
   18978 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   18979 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   18980 		fi
   18981 
   18982 		CFLAGS="$CFLAGS -errwarn"
   18983 
   18984 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
   18985 printf %s "checking if $CC supports -errwarn... " >&6; }
   18986 		cacheid=xorg_cv_cc_flag__errwarn
   18987 		if eval test \${$cacheid+y}
   18988 then :
   18989   printf %s "(cached) " >&6
   18990 else $as_nop
   18991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18992 /* end confdefs.h.  */
   18993 int i;
   18994 int
   18995 main (void)
   18996 {
   18997 
   18998   ;
   18999   return 0;
   19000 }
   19001 _ACEOF
   19002 if ac_fn_c_try_link "$LINENO"
   19003 then :
   19004   eval $cacheid=yes
   19005 else $as_nop
   19006   eval $cacheid=no
   19007 fi
   19008 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   19009     conftest$ac_exeext conftest.$ac_ext
   19010 fi
   19011 
   19012 
   19013 		CFLAGS="$xorg_testset_save_CFLAGS"
   19014 
   19015 		eval supported=\$$cacheid
   19016 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   19017 printf "%s\n" "$supported" >&6; }
   19018 		if test "$supported" = "yes" ; then
   19019 			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
   19020 			found="yes"
   19021 		fi
   19022 	fi
   19023 
   19024 
   19025 
   19026 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
   19027 # activate it with -Werror, so we add it here explicitly.
   19028 
   19029 
   19030 
   19031 
   19032 
   19033 
   19034 
   19035 
   19036 
   19037 
   19038 
   19039 
   19040 
   19041 xorg_testset_save_CFLAGS="$CFLAGS"
   19042 
   19043 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
   19044 	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   19045 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
   19046 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
   19047 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
   19048 then :
   19049   printf %s "(cached) " >&6
   19050 else $as_nop
   19051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19052 /* end confdefs.h.  */
   19053 int i;
   19054 _ACEOF
   19055 if ac_fn_c_try_compile "$LINENO"
   19056 then :
   19057   xorg_cv_cc_flag_unknown_warning_option=yes
   19058 else $as_nop
   19059   xorg_cv_cc_flag_unknown_warning_option=no
   19060 fi
   19061 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   19062 fi
   19063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
   19064 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
   19065 	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
   19066 	CFLAGS="$xorg_testset_save_CFLAGS"
   19067 fi
   19068 
   19069 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
   19070 	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   19071 		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   19072 	fi
   19073 	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   19074 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
   19075 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
   19076 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
   19077 then :
   19078   printf %s "(cached) " >&6
   19079 else $as_nop
   19080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19081 /* end confdefs.h.  */
   19082 int i;
   19083 _ACEOF
   19084 if ac_fn_c_try_compile "$LINENO"
   19085 then :
   19086   xorg_cv_cc_flag_unused_command_line_argument=yes
   19087 else $as_nop
   19088   xorg_cv_cc_flag_unused_command_line_argument=no
   19089 fi
   19090 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   19091 fi
   19092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
   19093 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
   19094 	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
   19095 	CFLAGS="$xorg_testset_save_CFLAGS"
   19096 fi
   19097 
   19098 found="no"
   19099 
   19100 	if test $found = "no" ; then
   19101 		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
   19102 			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
   19103 		fi
   19104 
   19105 		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
   19106 			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
   19107 		fi
   19108 
   19109 		CFLAGS="$CFLAGS -Werror=attributes"
   19110 
   19111 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
   19112 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
   19113 		cacheid=xorg_cv_cc_flag__Werror_attributes
   19114 		if eval test \${$cacheid+y}
   19115 then :
   19116   printf %s "(cached) " >&6
   19117 else $as_nop
   19118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19119 /* end confdefs.h.  */
   19120 int i;
   19121 int
   19122 main (void)
   19123 {
   19124 
   19125   ;
   19126   return 0;
   19127 }
   19128 _ACEOF
   19129 if ac_fn_c_try_link "$LINENO"
   19130 then :
   19131   eval $cacheid=yes
   19132 else $as_nop
   19133   eval $cacheid=no
   19134 fi
   19135 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   19136     conftest$ac_exeext conftest.$ac_ext
   19137 fi
   19138 
   19139 
   19140 		CFLAGS="$xorg_testset_save_CFLAGS"
   19141 
   19142 		eval supported=\$$cacheid
   19143 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
   19144 printf "%s\n" "$supported" >&6; }
   19145 		if test "$supported" = "yes" ; then
   19146 			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
   19147 			found="yes"
   19148 		fi
   19149 	fi
   19150 
   19151 
   19152 
   19153 if test "x$STRICT_COMPILE" = "xyes"; then
   19154     BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
   19155     CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
   19156 fi
   19157 
   19158 
   19159 
   19160 
   19161 
   19162 
   19163 cat >>confdefs.h <<_ACEOF
   19164 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
   19165 _ACEOF
   19166 
   19167 	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
   19168 	if test "x$PVM" = "x"; then
   19169 		PVM="0"
   19170 	fi
   19171 
   19172 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
   19173 
   19174 	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
   19175 	if test "x$PVP" = "x"; then
   19176 		PVP="0"
   19177 	fi
   19178 
   19179 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
   19180 
   19181 
   19182 
   19183 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
   19184 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
   19185 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
   19186 touch \$(top_srcdir)/ChangeLog; \
   19187 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
   19188 
   19189 
   19190 
   19191 
   19192 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
   19193 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
   19194 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
   19195 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
   19196 touch \$(top_srcdir)/INSTALL; \
   19197 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
   19198 
   19199 
   19200 
   19201 
   19202 
   19203 
   19204 case $host_os in
   19205     solaris*)
   19206         # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
   19207         # check for a man page file found in later versions that use
   19208         # traditional section numbers instead
   19209         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
   19210 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
   19211 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
   19212 then :
   19213   printf %s "(cached) " >&6
   19214 else $as_nop
   19215   test "$cross_compiling" = yes &&
   19216   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
   19217 if test -r "/usr/share/man/man7/attributes.7"; then
   19218   ac_cv_file__usr_share_man_man7_attributes_7=yes
   19219 else
   19220   ac_cv_file__usr_share_man_man7_attributes_7=no
   19221 fi
   19222 fi
   19223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
   19224 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
   19225 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
   19226 then :
   19227   SYSV_MAN_SECTIONS=false
   19228 else $as_nop
   19229   SYSV_MAN_SECTIONS=true
   19230 fi
   19231 
   19232         ;;
   19233     *) SYSV_MAN_SECTIONS=false ;;
   19234 esac
   19235 
   19236 if test x$APP_MAN_SUFFIX = x    ; then
   19237     APP_MAN_SUFFIX=1
   19238 fi
   19239 if test x$APP_MAN_DIR = x    ; then
   19240     APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
   19241 fi
   19242 
   19243 if test x$LIB_MAN_SUFFIX = x    ; then
   19244     LIB_MAN_SUFFIX=3
   19245 fi
   19246 if test x$LIB_MAN_DIR = x    ; then
   19247     LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
   19248 fi
   19249 
   19250 if test x$FILE_MAN_SUFFIX = x    ; then
   19251     case $SYSV_MAN_SECTIONS in
   19252 	true)				FILE_MAN_SUFFIX=4  ;;
   19253 	*)				FILE_MAN_SUFFIX=5  ;;
   19254     esac
   19255 fi
   19256 if test x$FILE_MAN_DIR = x    ; then
   19257     FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
   19258 fi
   19259 
   19260 if test x$MISC_MAN_SUFFIX = x    ; then
   19261     case $SYSV_MAN_SECTIONS in
   19262 	true)				MISC_MAN_SUFFIX=5  ;;
   19263 	*)				MISC_MAN_SUFFIX=7  ;;
   19264     esac
   19265 fi
   19266 if test x$MISC_MAN_DIR = x    ; then
   19267     MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
   19268 fi
   19269 
   19270 if test x$DRIVER_MAN_SUFFIX = x    ; then
   19271     case $SYSV_MAN_SECTIONS in
   19272 	true)				DRIVER_MAN_SUFFIX=7  ;;
   19273 	*)				DRIVER_MAN_SUFFIX=4  ;;
   19274     esac
   19275 fi
   19276 if test x$DRIVER_MAN_DIR = x    ; then
   19277     DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
   19278 fi
   19279 
   19280 if test x$ADMIN_MAN_SUFFIX = x    ; then
   19281     case $SYSV_MAN_SECTIONS in
   19282 	true)				ADMIN_MAN_SUFFIX=1m ;;
   19283 	*)				ADMIN_MAN_SUFFIX=8  ;;
   19284     esac
   19285 fi
   19286 if test x$ADMIN_MAN_DIR = x    ; then
   19287     ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
   19288 fi
   19289 
   19290 
   19291 
   19292 
   19293 
   19294 
   19295 
   19296 
   19297 
   19298 
   19299 
   19300 
   19301 
   19302 
   19303 
   19304 XORG_MAN_PAGE="X Version 11"
   19305 
   19306 MAN_SUBSTS="\
   19307 	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
   19308 	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
   19309 	-e 's|__xservername__|Xorg|g' \
   19310 	-e 's|__xconfigfile__|xorg.conf|g' \
   19311 	-e 's|__projectroot__|\$(prefix)|g' \
   19312 	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
   19313 	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
   19314 	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
   19315 	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
   19316 	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
   19317 	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
   19318 	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
   19319 
   19320 
   19321 
   19322 # Check whether --enable-silent-rules was given.
   19323 if test ${enable_silent_rules+y}
   19324 then :
   19325   enableval=$enable_silent_rules;
   19326 fi
   19327 
   19328 case $enable_silent_rules in # (((
   19329   yes) AM_DEFAULT_VERBOSITY=0;;
   19330    no) AM_DEFAULT_VERBOSITY=1;;
   19331     *) AM_DEFAULT_VERBOSITY=0;;
   19332 esac
   19333 am_make=${MAKE-make}
   19334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
   19335 printf %s "checking whether $am_make supports nested variables... " >&6; }
   19336 if test ${am_cv_make_support_nested_variables+y}
   19337 then :
   19338   printf %s "(cached) " >&6
   19339 else $as_nop
   19340   if printf "%s\n" 'TRUE=$(BAR$(V))
   19341 BAR0=false
   19342 BAR1=true
   19343 V=1
   19344 am__doit:
   19345 	@$(TRUE)
   19346 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
   19347   am_cv_make_support_nested_variables=yes
   19348 else
   19349   am_cv_make_support_nested_variables=no
   19350 fi
   19351 fi
   19352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
   19353 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
   19354 if test $am_cv_make_support_nested_variables = yes; then
   19355     AM_V='$(V)'
   19356   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
   19357 else
   19358   AM_V=$AM_DEFAULT_VERBOSITY
   19359   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
   19360 fi
   19361 AM_BACKSLASH='\'
   19362 
   19363 
   19364 
   19365 
   19366 
   19367 
   19368 
   19369 
   19370 # Check whether --with-lint was given.
   19371 if test ${with_lint+y}
   19372 then :
   19373   withval=$with_lint; use_lint=$withval
   19374 else $as_nop
   19375   use_lint=no
   19376 fi
   19377 
   19378 
   19379 # Obtain platform specific info like program name and options
   19380 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
   19381 case $host_os in
   19382   *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
   19383 	lint_name=splint
   19384 	lint_options="-badflag"
   19385 	;;
   19386   *freebsd* | *netbsd*)
   19387 	lint_name=lint
   19388 	lint_options="-u -b"
   19389 	;;
   19390   *solaris*)
   19391 	lint_name=lint
   19392 	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
   19393 	;;
   19394 esac
   19395 
   19396 # Test for the presence of the program (either guessed by the code or spelled out by the user)
   19397 if test "x$use_lint" = x"yes" ; then
   19398    # Extract the first word of "$lint_name", so it can be a program name with args.
   19399 set dummy $lint_name; ac_word=$2
   19400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   19401 printf %s "checking for $ac_word... " >&6; }
   19402 if test ${ac_cv_path_LINT+y}
   19403 then :
   19404   printf %s "(cached) " >&6
   19405 else $as_nop
   19406   case $LINT in
   19407   [\\/]* | ?:[\\/]*)
   19408   ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
   19409   ;;
   19410   *)
   19411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   19412 for as_dir in $PATH
   19413 do
   19414   IFS=$as_save_IFS
   19415   case $as_dir in #(((
   19416     '') as_dir=./ ;;
   19417     */) ;;
   19418     *) as_dir=$as_dir/ ;;
   19419   esac
   19420     for ac_exec_ext in '' $ac_executable_extensions; do
   19421   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
   19422     ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
   19423     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
   19424     break 2
   19425   fi
   19426 done
   19427   done
   19428 IFS=$as_save_IFS
   19429 
   19430   ;;
   19431 esac
   19432 fi
   19433 LINT=$ac_cv_path_LINT
   19434 if test -n "$LINT"; then
   19435   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
   19436 printf "%s\n" "$LINT" >&6; }
   19437 else
   19438   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19439 printf "%s\n" "no" >&6; }
   19440 fi
   19441 
   19442 
   19443    if test "x$LINT" = "x"; then
   19444         as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
   19445    fi
   19446 elif test "x$use_lint" = x"no" ; then
   19447    if test "x$LINT" != "x"; then
   19448       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
   19449 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
   19450    fi
   19451 else
   19452    as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
   19453 fi
   19454 
   19455 # User supplied flags override default flags
   19456 if test "x$LINT_FLAGS" != "x"; then
   19457    lint_options=$LINT_FLAGS
   19458 fi
   19459 
   19460 LINT_FLAGS=$lint_options
   19461 
   19462  if test "x$LINT" != x; then
   19463   LINT_TRUE=
   19464   LINT_FALSE='#'
   19465 else
   19466   LINT_TRUE='#'
   19467   LINT_FALSE=
   19468 fi
   19469 
   19470 
   19471 
   19472 LINT_FLAGS="${LINT_FLAGS} ${FONTENC_CFLAGS}"
   19473 
   19474 
   19475 
   19476 # Check whether --enable-futex was given.
   19477 if test ${enable_futex+y}
   19478 then :
   19479   enableval=$enable_futex; FUTEX=$enableval
   19480 else $as_nop
   19481   FUTEX=auto
   19482 fi
   19483 
   19484 
   19485 if test "x$FUTEX" = "xauto"; then
   19486 	ac_fn_c_check_header_compile "$LINENO" "linux/futex.h" "ac_cv_header_linux_futex_h" "$ac_includes_default"
   19487 if test "x$ac_cv_header_linux_futex_h" = xyes
   19488 then :
   19489   FUTEX=yes
   19490 fi
   19491 
   19492 fi
   19493 
   19494 if test "x$FUTEX" = "xauto"; then
   19495 	ac_fn_c_check_header_compile "$LINENO" "sys/umtx.h" "ac_cv_header_sys_umtx_h" "#include <errno.h>
   19496 	     #include <sys/types.h>
   19497 "
   19498 if test "x$ac_cv_header_sys_umtx_h" = xyes
   19499 then :
   19500   FUTEX=yes
   19501 else $as_nop
   19502   FUTEX=no
   19503 fi
   19504 
   19505 	if test "x$FUTEX" = "xyes"; then
   19506 
   19507 printf "%s\n" "#define HAVE_UMTX 1" >>confdefs.h
   19508 
   19509 	fi
   19510 fi
   19511 
   19512 if test "x$FUTEX" = "xyes"; then
   19513 	PTHREAD=no
   19514 
   19515 printf "%s\n" "#define HAVE_FUTEX 1" >>confdefs.h
   19516 
   19517 else
   19518 	PTHREAD=yes
   19519 
   19520 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
   19521 
   19522 fi
   19523 
   19524 PTHREAD_LIBS=
   19525 if test "x$PTHREAD" = "xyes"; then
   19526 	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
   19527 printf %s "checking for pthread_create in -lpthread... " >&6; }
   19528 if test ${ac_cv_lib_pthread_pthread_create+y}
   19529 then :
   19530   printf %s "(cached) " >&6
   19531 else $as_nop
   19532   ac_check_lib_save_LIBS=$LIBS
   19533 LIBS="-lpthread  $LIBS"
   19534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19535 /* end confdefs.h.  */
   19536 
   19537 /* Override any GCC internal prototype to avoid an error.
   19538    Use char because int might match the return type of a GCC
   19539    builtin and then its argument prototype would still apply.  */
   19540 char pthread_create ();
   19541 int
   19542 main (void)
   19543 {
   19544 return pthread_create ();
   19545   ;
   19546   return 0;
   19547 }
   19548 _ACEOF
   19549 if ac_fn_c_try_link "$LINENO"
   19550 then :
   19551   ac_cv_lib_pthread_pthread_create=yes
   19552 else $as_nop
   19553   ac_cv_lib_pthread_pthread_create=no
   19554 fi
   19555 rm -f core conftest.err conftest.$ac_objext conftest.beam \
   19556     conftest$ac_exeext conftest.$ac_ext
   19557 LIBS=$ac_check_lib_save_LIBS
   19558 fi
   19559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
   19560 printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; }
   19561 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
   19562 then :
   19563   PTHREAD_LIBS=-lpthread
   19564 else $as_nop
   19565   PTHREAD_LIBS=
   19566 fi
   19567 
   19568 fi
   19569 
   19570 
   19571 
   19572  if test x"$FUTEX" = xyes; then
   19573   FUTEX_TRUE=
   19574   FUTEX_FALSE='#'
   19575 else
   19576   FUTEX_TRUE='#'
   19577   FUTEX_FALSE=
   19578 fi
   19579 
   19580  if test x"$PTHREAD" = xyes; then
   19581   PTHREAD_TRUE=
   19582   PTHREAD_FALSE='#'
   19583 else
   19584   PTHREAD_TRUE='#'
   19585   PTHREAD_FALSE=
   19586 fi
   19587 
   19588 
   19589 
   19590 pkg_failed=no
   19591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XPROTO" >&5
   19592 printf %s "checking for XPROTO... " >&6; }
   19593 
   19594 if test -n "$XPROTO_CFLAGS"; then
   19595     pkg_cv_XPROTO_CFLAGS="$XPROTO_CFLAGS"
   19596  elif test -n "$PKG_CONFIG"; then
   19597     if test -n "$PKG_CONFIG" && \
   19598     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
   19599   ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
   19600   ac_status=$?
   19601   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   19602   test $ac_status = 0; }; then
   19603   pkg_cv_XPROTO_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
   19604 		      test "x$?" != "x0" && pkg_failed=yes
   19605 else
   19606   pkg_failed=yes
   19607 fi
   19608  else
   19609     pkg_failed=untried
   19610 fi
   19611 if test -n "$XPROTO_LIBS"; then
   19612     pkg_cv_XPROTO_LIBS="$XPROTO_LIBS"
   19613  elif test -n "$PKG_CONFIG"; then
   19614     if test -n "$PKG_CONFIG" && \
   19615     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
   19616   ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
   19617   ac_status=$?
   19618   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   19619   test $ac_status = 0; }; then
   19620   pkg_cv_XPROTO_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
   19621 		      test "x$?" != "x0" && pkg_failed=yes
   19622 else
   19623   pkg_failed=yes
   19624 fi
   19625  else
   19626     pkg_failed=untried
   19627 fi
   19628 
   19629 
   19630 
   19631 if test $pkg_failed = yes; then
   19632    	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19633 printf "%s\n" "no" >&6; }
   19634 
   19635 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   19636         _pkg_short_errors_supported=yes
   19637 else
   19638         _pkg_short_errors_supported=no
   19639 fi
   19640         if test $_pkg_short_errors_supported = yes; then
   19641 	        XPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto" 2>&1`
   19642         else
   19643 	        XPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto" 2>&1`
   19644         fi
   19645 	# Put the nasty error message in config.log where it belongs
   19646 	echo "$XPROTO_PKG_ERRORS" >&5
   19647 
   19648 	as_fn_error $? "Package requirements (xproto) were not met:
   19649 
   19650 $XPROTO_PKG_ERRORS
   19651 
   19652 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   19653 installed software in a non-standard prefix.
   19654 
   19655 Alternatively, you may set the environment variables XPROTO_CFLAGS
   19656 and XPROTO_LIBS to avoid the need to call pkg-config.
   19657 See the pkg-config man page for more details." "$LINENO" 5
   19658 elif test $pkg_failed = untried; then
   19659      	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19660 printf "%s\n" "no" >&6; }
   19661 	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   19662 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   19663 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   19664 is in your PATH or set the PKG_CONFIG environment variable to the full
   19665 path to pkg-config.
   19666 
   19667 Alternatively, you may set the environment variables XPROTO_CFLAGS
   19668 and XPROTO_LIBS to avoid the need to call pkg-config.
   19669 See the pkg-config man page for more details.
   19670 
   19671 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   19672 See \`config.log' for more details" "$LINENO" 5; }
   19673 else
   19674 	XPROTO_CFLAGS=$pkg_cv_XPROTO_CFLAGS
   19675 	XPROTO_LIBS=$pkg_cv_XPROTO_LIBS
   19676         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19677 printf "%s\n" "yes" >&6; }
   19678 
   19679 fi
   19680 
   19681 
   19682 
   19683 CFLAGS="$CFLAGS $XPROTO_CFLAGS"
   19684 
   19685 ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create"
   19686 if test "x$ac_cv_func_memfd_create" = xyes
   19687 then :
   19688   printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
   19689 
   19690 fi
   19691 ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp"
   19692 if test "x$ac_cv_func_mkostemp" = xyes
   19693 then :
   19694   printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h
   19695 
   19696 fi
   19697 
   19698 
   19699 ac_fn_check_decl "$LINENO" "__NR_memfd_create" "ac_cv_have_decl___NR_memfd_create" "#include <asm/unistd.h>
   19700 " "$ac_c_undeclared_builtin_options" "CFLAGS"
   19701 if test "x$ac_cv_have_decl___NR_memfd_create" = xyes
   19702 then :
   19703   ac_have_decl=1
   19704 else $as_nop
   19705   ac_have_decl=0
   19706 fi
   19707 printf "%s\n" "#define HAVE_DECL___NR_MEMFD_CREATE $ac_have_decl" >>confdefs.h
   19708 
   19709 
   19710        for ac_header in sys/memfd.h
   19711 do :
   19712   ac_fn_c_check_header_compile "$LINENO" "sys/memfd.h" "ac_cv_header_sys_memfd_h" "$ac_includes_default"
   19713 if test "x$ac_cv_header_sys_memfd_h" = xyes
   19714 then :
   19715   printf "%s\n" "#define HAVE_SYS_MEMFD_H 1" >>confdefs.h
   19716 
   19717 printf "%s\n" "#define HAVE_MEMFD_H 1" >>confdefs.h
   19718 
   19719 fi
   19720 
   19721 done
   19722 
   19723 # Check whether --enable-visibility was given.
   19724 if test ${enable_visibility+y}
   19725 then :
   19726   enableval=$enable_visibility; SYMBOL_VISIBILITY=$enableval
   19727 else $as_nop
   19728   SYMBOL_VISIBILITY=auto
   19729 fi
   19730 
   19731 
   19732 symbol_visibility=
   19733 have_visibility=disabled
   19734 if test x$SYMBOL_VISIBILITY != xno; then
   19735     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for symbol visibility support" >&5
   19736 printf %s "checking for symbol visibility support... " >&6; }
   19737     if test x$GCC = xyes; then
   19738 	VISIBILITY_CFLAGS="-fvisibility=hidden"
   19739     else
   19740 	if test x$SUNCC = xyes; then
   19741 	    VISIBILITY_CFLAGS="-xldscope=hidden"
   19742 	else
   19743 	    have_visibility=no
   19744 	fi
   19745     fi
   19746     if test x$have_visibility != xno; then
   19747 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19748 /* end confdefs.h.  */
   19749 #include <X11/Xfuncproto.h>
   19750 	     extern _X_HIDDEN int hidden_int;
   19751 	     extern _X_EXPORT int public_int;
   19752 	     extern _X_HIDDEN int hidden_int_func(void);
   19753 	     extern _X_EXPORT int public_int_func(void);
   19754 int
   19755 main (void)
   19756 {
   19757 
   19758   ;
   19759   return 0;
   19760 }
   19761 _ACEOF
   19762 if ac_fn_c_try_compile "$LINENO"
   19763 then :
   19764   have_visibility=yes
   19765 else $as_nop
   19766   have_visibility=no
   19767 fi
   19768 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   19769     fi
   19770     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_visibility" >&5
   19771 printf "%s\n" "$have_visibility" >&6; }
   19772     if test x$have_visibility != xno; then
   19773 	symbol_visibility=$VISIBILITY_CFLAGS
   19774 	CFLAGS="$CFLAGS $VISIBILITY_CFLAGS"
   19775     fi
   19776 fi
   19777 
   19778 
   19779 # Check whether --with-shared-memory-dir was given.
   19780 if test ${with_shared_memory_dir+y}
   19781 then :
   19782   withval=$with_shared_memory_dir;
   19783 else $as_nop
   19784   with_shared_memory_dir=yes
   19785 fi
   19786 
   19787 
   19788 shmdirs="/run/shm /dev/shm /var/tmp /tmp"
   19789 
   19790 case x"$with_shared_memory_dir" in
   19791 xyes)
   19792 	for dir in $shmdirs; do
   19793 		case x"$with_shared_memory_dir" in
   19794 		xyes)
   19795 			echo Checking temp dir "$dir"
   19796 			if test -d "$dir"; then
   19797 				with_shared_memory_dir="$dir"
   19798 			fi
   19799 			;;
   19800 		esac
   19801 	done
   19802 	;;
   19803 x/*)
   19804 	;;
   19805 xno)
   19806 	;;
   19807 *)
   19808 	as_fn_error $? "Invalid directory specified for --with-shared-memory-dir: $with_shared_memory_dir" "$LINENO" 5
   19809 	;;
   19810 esac
   19811 
   19812 case x"$with_shared_memory_dir" in
   19813 xyes)
   19814 	as_fn_error $? "No directory found for shared memory temp files." "$LINENO" 5
   19815 	;;
   19816 xno)
   19817 	;;
   19818 *)
   19819 
   19820 printf "%s\n" "#define SHMDIR \"$with_shared_memory_dir\"" >>confdefs.h
   19821 
   19822 	;;
   19823 esac
   19824 
   19825 ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile xshmfence.pc"
   19826 
   19827 cat >confcache <<\_ACEOF
   19828 # This file is a shell script that caches the results of configure
   19829 # tests run on this system so they can be shared between configure
   19830 # scripts and configure runs, see configure's option --config-cache.
   19831 # It is not useful on other systems.  If it contains results you don't
   19832 # want to keep, you may remove or edit it.
   19833 #
   19834 # config.status only pays attention to the cache file if you give it
   19835 # the --recheck option to rerun configure.
   19836 #
   19837 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   19838 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   19839 # following values.
   19840 
   19841 _ACEOF
   19842 
   19843 # The following way of writing the cache mishandles newlines in values,
   19844 # but we know of no workaround that is simple, portable, and efficient.
   19845 # So, we kill variables containing newlines.
   19846 # Ultrix sh set writes to stderr and can't be redirected directly,
   19847 # and sets the high bit in the cache file unless we assign to the vars.
   19848 (
   19849   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   19850     eval ac_val=\$$ac_var
   19851     case $ac_val in #(
   19852     *${as_nl}*)
   19853       case $ac_var in #(
   19854       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   19855 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   19856       esac
   19857       case $ac_var in #(
   19858       _ | IFS | as_nl) ;; #(
   19859       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   19860       *) { eval $ac_var=; unset $ac_var;} ;;
   19861       esac ;;
   19862     esac
   19863   done
   19864 
   19865   (set) 2>&1 |
   19866     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   19867     *${as_nl}ac_space=\ *)
   19868       # `set' does not quote correctly, so add quotes: double-quote
   19869       # substitution turns \\\\ into \\, and sed turns \\ into \.
   19870       sed -n \
   19871 	"s/'/'\\\\''/g;
   19872 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   19873       ;; #(
   19874     *)
   19875       # `set' quotes correctly as required by POSIX, so do not add quotes.
   19876       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   19877       ;;
   19878     esac |
   19879     sort
   19880 ) |
   19881   sed '
   19882      /^ac_cv_env_/b end
   19883      t clear
   19884      :clear
   19885      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
   19886      t end
   19887      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   19888      :end' >>confcache
   19889 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   19890   if test -w "$cache_file"; then
   19891     if test "x$cache_file" != "x/dev/null"; then
   19892       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   19893 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
   19894       if test ! -f "$cache_file" || test -h "$cache_file"; then
   19895 	cat confcache >"$cache_file"
   19896       else
   19897         case $cache_file in #(
   19898         */* | ?:*)
   19899 	  mv -f confcache "$cache_file"$$ &&
   19900 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   19901         *)
   19902 	  mv -f confcache "$cache_file" ;;
   19903 	esac
   19904       fi
   19905     fi
   19906   else
   19907     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   19908 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
   19909   fi
   19910 fi
   19911 rm -f confcache
   19912 
   19913 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   19914 # Let make expand exec_prefix.
   19915 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   19916 
   19917 DEFS=-DHAVE_CONFIG_H
   19918 
   19919 ac_libobjs=
   19920 ac_ltlibobjs=
   19921 U=
   19922 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   19923   # 1. Remove the extension, and $U if already installed.
   19924   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   19925   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
   19926   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   19927   #    will be set to the directory where LIBOBJS objects are built.
   19928   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   19929   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   19930 done
   19931 LIBOBJS=$ac_libobjs
   19932 
   19933 LTLIBOBJS=$ac_ltlibobjs
   19934 
   19935 
   19936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
   19937 printf %s "checking that generated files are newer than configure... " >&6; }
   19938    if test -n "$am_sleep_pid"; then
   19939      # Hide warnings about reused PIDs.
   19940      wait $am_sleep_pid 2>/dev/null
   19941    fi
   19942    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
   19943 printf "%s\n" "done" >&6; }
   19944 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
   19945   as_fn_error $? "conditional \"AMDEP\" was never defined.
   19946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   19947 fi
   19948 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
   19949   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
   19950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   19951 fi
   19952  if test -n "$EXEEXT"; then
   19953   am__EXEEXT_TRUE=
   19954   am__EXEEXT_FALSE='#'
   19955 else
   19956   am__EXEEXT_TRUE='#'
   19957   am__EXEEXT_FALSE=
   19958 fi
   19959 
   19960 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
   19961   as_fn_error $? "conditional \"LINT\" was never defined.
   19962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   19963 fi
   19964 if test -z "${FUTEX_TRUE}" && test -z "${FUTEX_FALSE}"; then
   19965   as_fn_error $? "conditional \"FUTEX\" was never defined.
   19966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   19967 fi
   19968 if test -z "${PTHREAD_TRUE}" && test -z "${PTHREAD_FALSE}"; then
   19969   as_fn_error $? "conditional \"PTHREAD\" was never defined.
   19970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   19971 fi
   19972 
   19973 : "${CONFIG_STATUS=./config.status}"
   19974 ac_write_fail=0
   19975 ac_clean_files_save=$ac_clean_files
   19976 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   19977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   19978 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
   19979 as_write_fail=0
   19980 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   19981 #! $SHELL
   19982 # Generated by $as_me.
   19983 # Run this file to recreate the current configuration.
   19984 # Compiler output produced by configure, useful for debugging
   19985 # configure, is in config.log if it exists.
   19986 
   19987 debug=false
   19988 ac_cs_recheck=false
   19989 ac_cs_silent=false
   19990 
   19991 SHELL=\${CONFIG_SHELL-$SHELL}
   19992 export SHELL
   19993 _ASEOF
   19994 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   19995 ## -------------------- ##
   19996 ## M4sh Initialization. ##
   19997 ## -------------------- ##
   19998 
   19999 # Be more Bourne compatible
   20000 DUALCASE=1; export DUALCASE # for MKS sh
   20001 as_nop=:
   20002 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
   20003 then :
   20004   emulate sh
   20005   NULLCMD=:
   20006   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   20007   # is contrary to our usage.  Disable this feature.
   20008   alias -g '${1+"$@"}'='"$@"'
   20009   setopt NO_GLOB_SUBST
   20010 else $as_nop
   20011   case `(set -o) 2>/dev/null` in #(
   20012   *posix*) :
   20013     set -o posix ;; #(
   20014   *) :
   20015      ;;
   20016 esac
   20017 fi
   20018 
   20019 
   20020 
   20021 # Reset variables that may have inherited troublesome values from
   20022 # the environment.
   20023 
   20024 # IFS needs to be set, to space, tab, and newline, in precisely that order.
   20025 # (If _AS_PATH_WALK were called with IFS unset, it would have the
   20026 # side effect of setting IFS to empty, thus disabling word splitting.)
   20027 # Quoting is to prevent editors from complaining about space-tab.
   20028 as_nl='
   20029 '
   20030 export as_nl
   20031 IFS=" ""	$as_nl"
   20032 
   20033 PS1='$ '
   20034 PS2='> '
   20035 PS4='+ '
   20036 
   20037 # Ensure predictable behavior from utilities with locale-dependent output.
   20038 LC_ALL=C
   20039 export LC_ALL
   20040 LANGUAGE=C
   20041 export LANGUAGE
   20042 
   20043 # We cannot yet rely on "unset" to work, but we need these variables
   20044 # to be unset--not just set to an empty or harmless value--now, to
   20045 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
   20046 # also avoids known problems related to "unset" and subshell syntax
   20047 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
   20048 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
   20049 do eval test \${$as_var+y} \
   20050   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   20051 done
   20052 
   20053 # Ensure that fds 0, 1, and 2 are open.
   20054 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
   20055 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
   20056 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
   20057 
   20058 # The user is always right.
   20059 if ${PATH_SEPARATOR+false} :; then
   20060   PATH_SEPARATOR=:
   20061   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   20062     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   20063       PATH_SEPARATOR=';'
   20064   }
   20065 fi
   20066 
   20067 
   20068 # Find who we are.  Look in the path if we contain no directory separator.
   20069 as_myself=
   20070 case $0 in #((
   20071   *[\\/]* ) as_myself=$0 ;;
   20072   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20073 for as_dir in $PATH
   20074 do
   20075   IFS=$as_save_IFS
   20076   case $as_dir in #(((
   20077     '') as_dir=./ ;;
   20078     */) ;;
   20079     *) as_dir=$as_dir/ ;;
   20080   esac
   20081     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
   20082   done
   20083 IFS=$as_save_IFS
   20084 
   20085      ;;
   20086 esac
   20087 # We did not find ourselves, most probably we were run as `sh COMMAND'
   20088 # in which case we are not to be found in the path.
   20089 if test "x$as_myself" = x; then
   20090   as_myself=$0
   20091 fi
   20092 if test ! -f "$as_myself"; then
   20093   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   20094   exit 1
   20095 fi
   20096 
   20097 
   20098 
   20099 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   20100 # ----------------------------------------
   20101 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   20102 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   20103 # script with STATUS, using 1 if that was 0.
   20104 as_fn_error ()
   20105 {
   20106   as_status=$1; test $as_status -eq 0 && as_status=1
   20107   if test "$4"; then
   20108     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   20109     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   20110   fi
   20111   printf "%s\n" "$as_me: error: $2" >&2
   20112   as_fn_exit $as_status
   20113 } # as_fn_error
   20114 
   20115 
   20116 
   20117 # as_fn_set_status STATUS
   20118 # -----------------------
   20119 # Set $? to STATUS, without forking.
   20120 as_fn_set_status ()
   20121 {
   20122   return $1
   20123 } # as_fn_set_status
   20124 
   20125 # as_fn_exit STATUS
   20126 # -----------------
   20127 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   20128 as_fn_exit ()
   20129 {
   20130   set +e
   20131   as_fn_set_status $1
   20132   exit $1
   20133 } # as_fn_exit
   20134 
   20135 # as_fn_unset VAR
   20136 # ---------------
   20137 # Portably unset VAR.
   20138 as_fn_unset ()
   20139 {
   20140   { eval $1=; unset $1;}
   20141 }
   20142 as_unset=as_fn_unset
   20143 
   20144 # as_fn_append VAR VALUE
   20145 # ----------------------
   20146 # Append the text in VALUE to the end of the definition contained in VAR. Take
   20147 # advantage of any shell optimizations that allow amortized linear growth over
   20148 # repeated appends, instead of the typical quadratic growth present in naive
   20149 # implementations.
   20150 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
   20151 then :
   20152   eval 'as_fn_append ()
   20153   {
   20154     eval $1+=\$2
   20155   }'
   20156 else $as_nop
   20157   as_fn_append ()
   20158   {
   20159     eval $1=\$$1\$2
   20160   }
   20161 fi # as_fn_append
   20162 
   20163 # as_fn_arith ARG...
   20164 # ------------------
   20165 # Perform arithmetic evaluation on the ARGs, and store the result in the
   20166 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   20167 # must be portable across $(()) and expr.
   20168 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
   20169 then :
   20170   eval 'as_fn_arith ()
   20171   {
   20172     as_val=$(( $* ))
   20173   }'
   20174 else $as_nop
   20175   as_fn_arith ()
   20176   {
   20177     as_val=`expr "$@" || test $? -eq 1`
   20178   }
   20179 fi # as_fn_arith
   20180 
   20181 
   20182 if expr a : '\(a\)' >/dev/null 2>&1 &&
   20183    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   20184   as_expr=expr
   20185 else
   20186   as_expr=false
   20187 fi
   20188 
   20189 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   20190   as_basename=basename
   20191 else
   20192   as_basename=false
   20193 fi
   20194 
   20195 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   20196   as_dirname=dirname
   20197 else
   20198   as_dirname=false
   20199 fi
   20200 
   20201 as_me=`$as_basename -- "$0" ||
   20202 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   20203 	 X"$0" : 'X\(//\)$' \| \
   20204 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   20205 printf "%s\n" X/"$0" |
   20206     sed '/^.*\/\([^/][^/]*\)\/*$/{
   20207 	    s//\1/
   20208 	    q
   20209 	  }
   20210 	  /^X\/\(\/\/\)$/{
   20211 	    s//\1/
   20212 	    q
   20213 	  }
   20214 	  /^X\/\(\/\).*/{
   20215 	    s//\1/
   20216 	    q
   20217 	  }
   20218 	  s/.*/./; q'`
   20219 
   20220 # Avoid depending upon Character Ranges.
   20221 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   20222 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   20223 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   20224 as_cr_digits='0123456789'
   20225 as_cr_alnum=$as_cr_Letters$as_cr_digits
   20226 
   20227 
   20228 # Determine whether it's possible to make 'echo' print without a newline.
   20229 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
   20230 # for compatibility with existing Makefiles.
   20231 ECHO_C= ECHO_N= ECHO_T=
   20232 case `echo -n x` in #(((((
   20233 -n*)
   20234   case `echo 'xy\c'` in
   20235   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   20236   xy)  ECHO_C='\c';;
   20237   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   20238        ECHO_T='	';;
   20239   esac;;
   20240 *)
   20241   ECHO_N='-n';;
   20242 esac
   20243 
   20244 # For backward compatibility with old third-party macros, we provide
   20245 # the shell variables $as_echo and $as_echo_n.  New code should use
   20246 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
   20247 as_echo='printf %s\n'
   20248 as_echo_n='printf %s'
   20249 
   20250 rm -f conf$$ conf$$.exe conf$$.file
   20251 if test -d conf$$.dir; then
   20252   rm -f conf$$.dir/conf$$.file
   20253 else
   20254   rm -f conf$$.dir
   20255   mkdir conf$$.dir 2>/dev/null
   20256 fi
   20257 if (echo >conf$$.file) 2>/dev/null; then
   20258   if ln -s conf$$.file conf$$ 2>/dev/null; then
   20259     as_ln_s='ln -s'
   20260     # ... but there are two gotchas:
   20261     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   20262     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   20263     # In both cases, we have to default to `cp -pR'.
   20264     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   20265       as_ln_s='cp -pR'
   20266   elif ln conf$$.file conf$$ 2>/dev/null; then
   20267     as_ln_s=ln
   20268   else
   20269     as_ln_s='cp -pR'
   20270   fi
   20271 else
   20272   as_ln_s='cp -pR'
   20273 fi
   20274 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   20275 rmdir conf$$.dir 2>/dev/null
   20276 
   20277 
   20278 # as_fn_mkdir_p
   20279 # -------------
   20280 # Create "$as_dir" as a directory, including parents if necessary.
   20281 as_fn_mkdir_p ()
   20282 {
   20283 
   20284   case $as_dir in #(
   20285   -*) as_dir=./$as_dir;;
   20286   esac
   20287   test -d "$as_dir" || eval $as_mkdir_p || {
   20288     as_dirs=
   20289     while :; do
   20290       case $as_dir in #(
   20291       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   20292       *) as_qdir=$as_dir;;
   20293       esac
   20294       as_dirs="'$as_qdir' $as_dirs"
   20295       as_dir=`$as_dirname -- "$as_dir" ||
   20296 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   20297 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   20298 	 X"$as_dir" : 'X\(//\)$' \| \
   20299 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   20300 printf "%s\n" X"$as_dir" |
   20301     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   20302 	    s//\1/
   20303 	    q
   20304 	  }
   20305 	  /^X\(\/\/\)[^/].*/{
   20306 	    s//\1/
   20307 	    q
   20308 	  }
   20309 	  /^X\(\/\/\)$/{
   20310 	    s//\1/
   20311 	    q
   20312 	  }
   20313 	  /^X\(\/\).*/{
   20314 	    s//\1/
   20315 	    q
   20316 	  }
   20317 	  s/.*/./; q'`
   20318       test -d "$as_dir" && break
   20319     done
   20320     test -z "$as_dirs" || eval "mkdir $as_dirs"
   20321   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   20322 
   20323 
   20324 } # as_fn_mkdir_p
   20325 if mkdir -p . 2>/dev/null; then
   20326   as_mkdir_p='mkdir -p "$as_dir"'
   20327 else
   20328   test -d ./-p && rmdir ./-p
   20329   as_mkdir_p=false
   20330 fi
   20331 
   20332 
   20333 # as_fn_executable_p FILE
   20334 # -----------------------
   20335 # Test if FILE is an executable regular file.
   20336 as_fn_executable_p ()
   20337 {
   20338   test -f "$1" && test -x "$1"
   20339 } # as_fn_executable_p
   20340 as_test_x='test -x'
   20341 as_executable_p=as_fn_executable_p
   20342 
   20343 # Sed expression to map a string onto a valid CPP name.
   20344 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   20345 
   20346 # Sed expression to map a string onto a valid variable name.
   20347 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   20348 
   20349 
   20350 exec 6>&1
   20351 ## ----------------------------------- ##
   20352 ## Main body of $CONFIG_STATUS script. ##
   20353 ## ----------------------------------- ##
   20354 _ASEOF
   20355 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   20356 
   20357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   20358 # Save the log message, to keep $0 and so on meaningful, and to
   20359 # report actual input values of CONFIG_FILES etc. instead of their
   20360 # values after options handling.
   20361 ac_log="
   20362 This file was extended by libxshmfence $as_me 1.3.1, which was
   20363 generated by GNU Autoconf 2.71.  Invocation command line was
   20364 
   20365   CONFIG_FILES    = $CONFIG_FILES
   20366   CONFIG_HEADERS  = $CONFIG_HEADERS
   20367   CONFIG_LINKS    = $CONFIG_LINKS
   20368   CONFIG_COMMANDS = $CONFIG_COMMANDS
   20369   $ $0 $@
   20370 
   20371 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   20372 "
   20373 
   20374 _ACEOF
   20375 
   20376 case $ac_config_files in *"
   20377 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   20378 esac
   20379 
   20380 case $ac_config_headers in *"
   20381 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   20382 esac
   20383 
   20384 
   20385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   20386 # Files that config.status was made for.
   20387 config_files="$ac_config_files"
   20388 config_headers="$ac_config_headers"
   20389 config_commands="$ac_config_commands"
   20390 
   20391 _ACEOF
   20392 
   20393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   20394 ac_cs_usage="\
   20395 \`$as_me' instantiates files and other configuration actions
   20396 from templates according to the current configuration.  Unless the files
   20397 and actions are specified as TAGs, all are instantiated by default.
   20398 
   20399 Usage: $0 [OPTION]... [TAG]...
   20400 
   20401   -h, --help       print this help, then exit
   20402   -V, --version    print version number and configuration settings, then exit
   20403       --config     print configuration, then exit
   20404   -q, --quiet, --silent
   20405                    do not print progress messages
   20406   -d, --debug      don't remove temporary files
   20407       --recheck    update $as_me by reconfiguring in the same conditions
   20408       --file=FILE[:TEMPLATE]
   20409                    instantiate the configuration file FILE
   20410       --header=FILE[:TEMPLATE]
   20411                    instantiate the configuration header FILE
   20412 
   20413 Configuration files:
   20414 $config_files
   20415 
   20416 Configuration headers:
   20417 $config_headers
   20418 
   20419 Configuration commands:
   20420 $config_commands
   20421 
   20422 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxshmfence/-/issues>."
   20423 
   20424 _ACEOF
   20425 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
   20426 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
   20427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   20428 ac_cs_config='$ac_cs_config_escaped'
   20429 ac_cs_version="\\
   20430 libxshmfence config.status 1.3.1
   20431 configured by $0, generated by GNU Autoconf 2.71,
   20432   with options \\"\$ac_cs_config\\"
   20433 
   20434 Copyright (C) 2021 Free Software Foundation, Inc.
   20435 This config.status script is free software; the Free Software Foundation
   20436 gives unlimited permission to copy, distribute and modify it."
   20437 
   20438 ac_pwd='$ac_pwd'
   20439 srcdir='$srcdir'
   20440 INSTALL='$INSTALL'
   20441 MKDIR_P='$MKDIR_P'
   20442 AWK='$AWK'
   20443 test -n "\$AWK" || AWK=awk
   20444 _ACEOF
   20445 
   20446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   20447 # The default lists apply if the user does not specify any file.
   20448 ac_need_defaults=:
   20449 while test $# != 0
   20450 do
   20451   case $1 in
   20452   --*=?*)
   20453     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   20454     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   20455     ac_shift=:
   20456     ;;
   20457   --*=)
   20458     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   20459     ac_optarg=
   20460     ac_shift=:
   20461     ;;
   20462   *)
   20463     ac_option=$1
   20464     ac_optarg=$2
   20465     ac_shift=shift
   20466     ;;
   20467   esac
   20468 
   20469   case $ac_option in
   20470   # Handling of the options.
   20471   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   20472     ac_cs_recheck=: ;;
   20473   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   20474     printf "%s\n" "$ac_cs_version"; exit ;;
   20475   --config | --confi | --conf | --con | --co | --c )
   20476     printf "%s\n" "$ac_cs_config"; exit ;;
   20477   --debug | --debu | --deb | --de | --d | -d )
   20478     debug=: ;;
   20479   --file | --fil | --fi | --f )
   20480     $ac_shift
   20481     case $ac_optarg in
   20482     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   20483     '') as_fn_error $? "missing file argument" ;;
   20484     esac
   20485     as_fn_append CONFIG_FILES " '$ac_optarg'"
   20486     ac_need_defaults=false;;
   20487   --header | --heade | --head | --hea )
   20488     $ac_shift
   20489     case $ac_optarg in
   20490     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   20491     esac
   20492     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   20493     ac_need_defaults=false;;
   20494   --he | --h)
   20495     # Conflict between --help and --header
   20496     as_fn_error $? "ambiguous option: \`$1'
   20497 Try \`$0 --help' for more information.";;
   20498   --help | --hel | -h )
   20499     printf "%s\n" "$ac_cs_usage"; exit ;;
   20500   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   20501   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   20502     ac_cs_silent=: ;;
   20503 
   20504   # This is an error.
   20505   -*) as_fn_error $? "unrecognized option: \`$1'
   20506 Try \`$0 --help' for more information." ;;
   20507 
   20508   *) as_fn_append ac_config_targets " $1"
   20509      ac_need_defaults=false ;;
   20510 
   20511   esac
   20512   shift
   20513 done
   20514 
   20515 ac_configure_extra_args=
   20516 
   20517 if $ac_cs_silent; then
   20518   exec 6>/dev/null
   20519   ac_configure_extra_args="$ac_configure_extra_args --silent"
   20520 fi
   20521 
   20522 _ACEOF
   20523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   20524 if \$ac_cs_recheck; then
   20525   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   20526   shift
   20527   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
   20528   CONFIG_SHELL='$SHELL'
   20529   export CONFIG_SHELL
   20530   exec "\$@"
   20531 fi
   20532 
   20533 _ACEOF
   20534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   20535 exec 5>>config.log
   20536 {
   20537   echo
   20538   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   20539 ## Running $as_me. ##
   20540 _ASBOX
   20541   printf "%s\n" "$ac_log"
   20542 } >&5
   20543 
   20544 _ACEOF
   20545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   20546 #
   20547 # INIT-COMMANDS
   20548 #
   20549 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
   20550 
   20551 
   20552 # The HP-UX ksh and POSIX shell print the target directory to stdout
   20553 # if CDPATH is set.
   20554 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   20555 
   20556 sed_quote_subst='$sed_quote_subst'
   20557 double_quote_subst='$double_quote_subst'
   20558 delay_variable_subst='$delay_variable_subst'
   20559 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
   20560 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
   20561 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
   20562 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
   20563 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
   20564 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
   20565 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
   20566 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
   20567 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
   20568 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
   20569 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
   20570 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
   20571 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
   20572 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
   20573 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
   20574 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
   20575 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
   20576 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
   20577 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
   20578 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
   20579 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
   20580 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
   20581 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
   20582 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
   20583 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
   20584 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
   20585 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
   20586 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
   20587 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
   20588 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
   20589 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
   20590 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
   20591 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
   20592 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
   20593 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
   20594 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
   20595 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
   20596 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
   20597 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
   20598 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
   20599 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
   20600 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
   20601 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
   20602 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
   20603 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
   20604 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
   20605 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
   20606 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
   20607 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
   20608 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
   20609 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
   20610 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
   20611 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
   20612 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
   20613 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
   20614 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
   20615 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
   20616 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
   20617 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
   20618 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
   20619 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
   20620 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
   20621 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
   20622 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
   20623 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
   20624 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
   20625 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
   20626 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
   20627 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
   20628 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
   20629 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
   20630 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
   20631 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
   20632 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
   20633 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
   20634 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
   20635 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
   20636 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
   20637 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
   20638 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
   20639 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
   20640 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
   20641 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
   20642 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
   20643 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
   20644 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
   20645 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
   20646 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
   20647 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
   20648 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
   20649 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
   20650 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
   20651 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
   20652 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
   20653 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
   20654 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
   20655 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
   20656 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
   20657 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
   20658 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
   20659 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
   20660 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
   20661 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
   20662 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
   20663 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
   20664 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
   20665 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
   20666 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
   20667 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
   20668 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
   20669 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
   20670 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
   20671 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
   20672 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
   20673 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
   20674 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
   20675 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
   20676 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
   20677 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
   20678 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
   20679 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
   20680 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
   20681 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
   20682 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
   20683 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
   20684 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
   20685 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
   20686 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
   20687 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
   20688 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
   20689 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
   20690 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
   20691 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
   20692 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
   20693 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
   20694 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
   20695 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
   20696 
   20697 LTCC='$LTCC'
   20698 LTCFLAGS='$LTCFLAGS'
   20699 compiler='$compiler_DEFAULT'
   20700 
   20701 # A function that is used when there is no print builtin or printf.
   20702 func_fallback_echo ()
   20703 {
   20704   eval 'cat <<_LTECHO_EOF
   20705 \$1
   20706 _LTECHO_EOF'
   20707 }
   20708 
   20709 # Quote evaled strings.
   20710 for var in SHELL \
   20711 ECHO \
   20712 PATH_SEPARATOR \
   20713 SED \
   20714 GREP \
   20715 EGREP \
   20716 FGREP \
   20717 LD \
   20718 NM \
   20719 LN_S \
   20720 lt_SP2NL \
   20721 lt_NL2SP \
   20722 reload_flag \
   20723 FILECMD \
   20724 OBJDUMP \
   20725 deplibs_check_method \
   20726 file_magic_cmd \
   20727 file_magic_glob \
   20728 want_nocaseglob \
   20729 DLLTOOL \
   20730 sharedlib_from_linklib_cmd \
   20731 AR \
   20732 archiver_list_spec \
   20733 STRIP \
   20734 RANLIB \
   20735 CC \
   20736 CFLAGS \
   20737 compiler \
   20738 lt_cv_sys_global_symbol_pipe \
   20739 lt_cv_sys_global_symbol_to_cdecl \
   20740 lt_cv_sys_global_symbol_to_import \
   20741 lt_cv_sys_global_symbol_to_c_name_address \
   20742 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
   20743 lt_cv_nm_interface \
   20744 nm_file_list_spec \
   20745 lt_cv_truncate_bin \
   20746 lt_prog_compiler_no_builtin_flag \
   20747 lt_prog_compiler_pic \
   20748 lt_prog_compiler_wl \
   20749 lt_prog_compiler_static \
   20750 lt_cv_prog_compiler_c_o \
   20751 need_locks \
   20752 MANIFEST_TOOL \
   20753 DSYMUTIL \
   20754 NMEDIT \
   20755 LIPO \
   20756 OTOOL \
   20757 OTOOL64 \
   20758 shrext_cmds \
   20759 export_dynamic_flag_spec \
   20760 whole_archive_flag_spec \
   20761 compiler_needs_object \
   20762 with_gnu_ld \
   20763 allow_undefined_flag \
   20764 no_undefined_flag \
   20765 hardcode_libdir_flag_spec \
   20766 hardcode_libdir_separator \
   20767 exclude_expsyms \
   20768 include_expsyms \
   20769 file_list_spec \
   20770 variables_saved_for_relink \
   20771 libname_spec \
   20772 library_names_spec \
   20773 soname_spec \
   20774 install_override_mode \
   20775 finish_eval \
   20776 old_striplib \
   20777 striplib; do
   20778     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   20779     *[\\\\\\\`\\"\\\$]*)
   20780       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
   20781       ;;
   20782     *)
   20783       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   20784       ;;
   20785     esac
   20786 done
   20787 
   20788 # Double-quote double-evaled strings.
   20789 for var in reload_cmds \
   20790 old_postinstall_cmds \
   20791 old_postuninstall_cmds \
   20792 old_archive_cmds \
   20793 extract_expsyms_cmds \
   20794 old_archive_from_new_cmds \
   20795 old_archive_from_expsyms_cmds \
   20796 archive_cmds \
   20797 archive_expsym_cmds \
   20798 module_cmds \
   20799 module_expsym_cmds \
   20800 export_symbols_cmds \
   20801 prelink_cmds \
   20802 postlink_cmds \
   20803 postinstall_cmds \
   20804 postuninstall_cmds \
   20805 finish_cmds \
   20806 sys_lib_search_path_spec \
   20807 configure_time_dlsearch_path \
   20808 configure_time_lt_sys_library_path; do
   20809     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   20810     *[\\\\\\\`\\"\\\$]*)
   20811       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
   20812       ;;
   20813     *)
   20814       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   20815       ;;
   20816     esac
   20817 done
   20818 
   20819 ac_aux_dir='$ac_aux_dir'
   20820 
   20821 # See if we are running on zsh, and set the options that allow our
   20822 # commands through without removal of \ escapes INIT.
   20823 if test -n "\${ZSH_VERSION+set}"; then
   20824    setopt NO_GLOB_SUBST
   20825 fi
   20826 
   20827 
   20828     PACKAGE='$PACKAGE'
   20829     VERSION='$VERSION'
   20830     RM='$RM'
   20831     ofile='$ofile'
   20832 
   20833 
   20834 
   20835 
   20836 _ACEOF
   20837 
   20838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   20839 
   20840 # Handling of arguments.
   20841 for ac_config_target in $ac_config_targets
   20842 do
   20843   case $ac_config_target in
   20844     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
   20845     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
   20846     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
   20847     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   20848     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
   20849     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
   20850     "xshmfence.pc") CONFIG_FILES="$CONFIG_FILES xshmfence.pc" ;;
   20851 
   20852   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   20853   esac
   20854 done
   20855 
   20856 
   20857 # If the user did not use the arguments to specify the items to instantiate,
   20858 # then the envvar interface is used.  Set only those that are not.
   20859 # We use the long form for the default assignment because of an extremely
   20860 # bizarre bug on SunOS 4.1.3.
   20861 if $ac_need_defaults; then
   20862   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
   20863   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
   20864   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
   20865 fi
   20866 
   20867 # Have a temporary directory for convenience.  Make it in the build tree
   20868 # simply because there is no reason against having it here, and in addition,
   20869 # creating and moving files from /tmp can sometimes cause problems.
   20870 # Hook for its removal unless debugging.
   20871 # Note that there is a small window in which the directory will not be cleaned:
   20872 # after its creation but before its name has been assigned to `$tmp'.
   20873 $debug ||
   20874 {
   20875   tmp= ac_tmp=
   20876   trap 'exit_status=$?
   20877   : "${ac_tmp:=$tmp}"
   20878   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   20879 ' 0
   20880   trap 'as_fn_exit 1' 1 2 13 15
   20881 }
   20882 # Create a (secure) tmp directory for tmp files.
   20883 
   20884 {
   20885   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   20886   test -d "$tmp"
   20887 }  ||
   20888 {
   20889   tmp=./conf$$-$RANDOM
   20890   (umask 077 && mkdir "$tmp")
   20891 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   20892 ac_tmp=$tmp
   20893 
   20894 # Set up the scripts for CONFIG_FILES section.
   20895 # No need to generate them if there are no CONFIG_FILES.
   20896 # This happens for instance with `./config.status config.h'.
   20897 if test -n "$CONFIG_FILES"; then
   20898 
   20899 
   20900 ac_cr=`echo X | tr X '\015'`
   20901 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   20902 # But we know of no other shell where ac_cr would be empty at this
   20903 # point, so we can use a bashism as a fallback.
   20904 if test "x$ac_cr" = x; then
   20905   eval ac_cr=\$\'\\r\'
   20906 fi
   20907 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   20908 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   20909   ac_cs_awk_cr='\\r'
   20910 else
   20911   ac_cs_awk_cr=$ac_cr
   20912 fi
   20913 
   20914 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   20915 _ACEOF
   20916 
   20917 
   20918 {
   20919   echo "cat >conf$$subs.awk <<_ACEOF" &&
   20920   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   20921   echo "_ACEOF"
   20922 } >conf$$subs.sh ||
   20923   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   20924 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   20925 ac_delim='%!_!# '
   20926 for ac_last_try in false false false false false :; do
   20927   . ./conf$$subs.sh ||
   20928     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   20929 
   20930   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   20931   if test $ac_delim_n = $ac_delim_num; then
   20932     break
   20933   elif $ac_last_try; then
   20934     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   20935   else
   20936     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   20937   fi
   20938 done
   20939 rm -f conf$$subs.sh
   20940 
   20941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   20942 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   20943 _ACEOF
   20944 sed -n '
   20945 h
   20946 s/^/S["/; s/!.*/"]=/
   20947 p
   20948 g
   20949 s/^[^!]*!//
   20950 :repl
   20951 t repl
   20952 s/'"$ac_delim"'$//
   20953 t delim
   20954 :nl
   20955 h
   20956 s/\(.\{148\}\)..*/\1/
   20957 t more1
   20958 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   20959 p
   20960 n
   20961 b repl
   20962 :more1
   20963 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   20964 p
   20965 g
   20966 s/.\{148\}//
   20967 t nl
   20968 :delim
   20969 h
   20970 s/\(.\{148\}\)..*/\1/
   20971 t more2
   20972 s/["\\]/\\&/g; s/^/"/; s/$/"/
   20973 p
   20974 b
   20975 :more2
   20976 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   20977 p
   20978 g
   20979 s/.\{148\}//
   20980 t delim
   20981 ' <conf$$subs.awk | sed '
   20982 /^[^""]/{
   20983   N
   20984   s/\n//
   20985 }
   20986 ' >>$CONFIG_STATUS || ac_write_fail=1
   20987 rm -f conf$$subs.awk
   20988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   20989 _ACAWK
   20990 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   20991   for (key in S) S_is_set[key] = 1
   20992   FS = ""
   20993 
   20994 }
   20995 {
   20996   line = $ 0
   20997   nfields = split(line, field, "@")
   20998   substed = 0
   20999   len = length(field[1])
   21000   for (i = 2; i < nfields; i++) {
   21001     key = field[i]
   21002     keylen = length(key)
   21003     if (S_is_set[key]) {
   21004       value = S[key]
   21005       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   21006       len += length(value) + length(field[++i])
   21007       substed = 1
   21008     } else
   21009       len += 1 + keylen
   21010   }
   21011 
   21012   print line
   21013 }
   21014 
   21015 _ACAWK
   21016 _ACEOF
   21017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   21018 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   21019   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   21020 else
   21021   cat
   21022 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   21023   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   21024 _ACEOF
   21025 
   21026 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   21027 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   21028 # trailing colons and then remove the whole line if VPATH becomes empty
   21029 # (actually we leave an empty line to preserve line numbers).
   21030 if test "x$srcdir" = x.; then
   21031   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   21032 h
   21033 s///
   21034 s/^/:/
   21035 s/[	 ]*$/:/
   21036 s/:\$(srcdir):/:/g
   21037 s/:\${srcdir}:/:/g
   21038 s/:@srcdir@:/:/g
   21039 s/^:*//
   21040 s/:*$//
   21041 x
   21042 s/\(=[	 ]*\).*/\1/
   21043 G
   21044 s/\n//
   21045 s/^[^=]*=[	 ]*$//
   21046 }'
   21047 fi
   21048 
   21049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   21050 fi # test -n "$CONFIG_FILES"
   21051 
   21052 # Set up the scripts for CONFIG_HEADERS section.
   21053 # No need to generate them if there are no CONFIG_HEADERS.
   21054 # This happens for instance with `./config.status Makefile'.
   21055 if test -n "$CONFIG_HEADERS"; then
   21056 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   21057 BEGIN {
   21058 _ACEOF
   21059 
   21060 # Transform confdefs.h into an awk script `defines.awk', embedded as
   21061 # here-document in config.status, that substitutes the proper values into
   21062 # config.h.in to produce config.h.
   21063 
   21064 # Create a delimiter string that does not exist in confdefs.h, to ease
   21065 # handling of long lines.
   21066 ac_delim='%!_!# '
   21067 for ac_last_try in false false :; do
   21068   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   21069   if test -z "$ac_tt"; then
   21070     break
   21071   elif $ac_last_try; then
   21072     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   21073   else
   21074     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   21075   fi
   21076 done
   21077 
   21078 # For the awk script, D is an array of macro values keyed by name,
   21079 # likewise P contains macro parameters if any.  Preserve backslash
   21080 # newline sequences.
   21081 
   21082 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   21083 sed -n '
   21084 s/.\{148\}/&'"$ac_delim"'/g
   21085 t rset
   21086 :rset
   21087 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   21088 t def
   21089 d
   21090 :def
   21091 s/\\$//
   21092 t bsnl
   21093 s/["\\]/\\&/g
   21094 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   21095 D["\1"]=" \3"/p
   21096 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   21097 d
   21098 :bsnl
   21099 s/["\\]/\\&/g
   21100 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   21101 D["\1"]=" \3\\\\\\n"\\/p
   21102 t cont
   21103 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   21104 t cont
   21105 d
   21106 :cont
   21107 n
   21108 s/.\{148\}/&'"$ac_delim"'/g
   21109 t clear
   21110 :clear
   21111 s/\\$//
   21112 t bsnlc
   21113 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   21114 d
   21115 :bsnlc
   21116 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   21117 b cont
   21118 ' <confdefs.h | sed '
   21119 s/'"$ac_delim"'/"\\\
   21120 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   21121 
   21122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   21123   for (key in D) D_is_set[key] = 1
   21124   FS = ""
   21125 }
   21126 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   21127   line = \$ 0
   21128   split(line, arg, " ")
   21129   if (arg[1] == "#") {
   21130     defundef = arg[2]
   21131     mac1 = arg[3]
   21132   } else {
   21133     defundef = substr(arg[1], 2)
   21134     mac1 = arg[2]
   21135   }
   21136   split(mac1, mac2, "(") #)
   21137   macro = mac2[1]
   21138   prefix = substr(line, 1, index(line, defundef) - 1)
   21139   if (D_is_set[macro]) {
   21140     # Preserve the white space surrounding the "#".
   21141     print prefix "define", macro P[macro] D[macro]
   21142     next
   21143   } else {
   21144     # Replace #undef with comments.  This is necessary, for example,
   21145     # in the case of _POSIX_SOURCE, which is predefined and required
   21146     # on some systems where configure will not decide to define it.
   21147     if (defundef == "undef") {
   21148       print "/*", prefix defundef, macro, "*/"
   21149       next
   21150     }
   21151   }
   21152 }
   21153 { print }
   21154 _ACAWK
   21155 _ACEOF
   21156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   21157   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   21158 fi # test -n "$CONFIG_HEADERS"
   21159 
   21160 
   21161 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
   21162 shift
   21163 for ac_tag
   21164 do
   21165   case $ac_tag in
   21166   :[FHLC]) ac_mode=$ac_tag; continue;;
   21167   esac
   21168   case $ac_mode$ac_tag in
   21169   :[FHL]*:*);;
   21170   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   21171   :[FH]-) ac_tag=-:-;;
   21172   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   21173   esac
   21174   ac_save_IFS=$IFS
   21175   IFS=:
   21176   set x $ac_tag
   21177   IFS=$ac_save_IFS
   21178   shift
   21179   ac_file=$1
   21180   shift
   21181 
   21182   case $ac_mode in
   21183   :L) ac_source=$1;;
   21184   :[FH])
   21185     ac_file_inputs=
   21186     for ac_f
   21187     do
   21188       case $ac_f in
   21189       -) ac_f="$ac_tmp/stdin";;
   21190       *) # Look for the file first in the build tree, then in the source tree
   21191 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   21192 	 # because $ac_f cannot contain `:'.
   21193 	 test -f "$ac_f" ||
   21194 	   case $ac_f in
   21195 	   [\\/$]*) false;;
   21196 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   21197 	   esac ||
   21198 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   21199       esac
   21200       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   21201       as_fn_append ac_file_inputs " '$ac_f'"
   21202     done
   21203 
   21204     # Let's still pretend it is `configure' which instantiates (i.e., don't
   21205     # use $as_me), people would be surprised to read:
   21206     #    /* config.h.  Generated by config.status.  */
   21207     configure_input='Generated from '`
   21208 	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   21209 	`' by configure.'
   21210     if test x"$ac_file" != x-; then
   21211       configure_input="$ac_file.  $configure_input"
   21212       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   21213 printf "%s\n" "$as_me: creating $ac_file" >&6;}
   21214     fi
   21215     # Neutralize special characters interpreted by sed in replacement strings.
   21216     case $configure_input in #(
   21217     *\&* | *\|* | *\\* )
   21218        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
   21219        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   21220     *) ac_sed_conf_input=$configure_input;;
   21221     esac
   21222 
   21223     case $ac_tag in
   21224     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   21225       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   21226     esac
   21227     ;;
   21228   esac
   21229 
   21230   ac_dir=`$as_dirname -- "$ac_file" ||
   21231 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   21232 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   21233 	 X"$ac_file" : 'X\(//\)$' \| \
   21234 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   21235 printf "%s\n" X"$ac_file" |
   21236     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   21237 	    s//\1/
   21238 	    q
   21239 	  }
   21240 	  /^X\(\/\/\)[^/].*/{
   21241 	    s//\1/
   21242 	    q
   21243 	  }
   21244 	  /^X\(\/\/\)$/{
   21245 	    s//\1/
   21246 	    q
   21247 	  }
   21248 	  /^X\(\/\).*/{
   21249 	    s//\1/
   21250 	    q
   21251 	  }
   21252 	  s/.*/./; q'`
   21253   as_dir="$ac_dir"; as_fn_mkdir_p
   21254   ac_builddir=.
   21255 
   21256 case "$ac_dir" in
   21257 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   21258 *)
   21259   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
   21260   # A ".." for each directory in $ac_dir_suffix.
   21261   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   21262   case $ac_top_builddir_sub in
   21263   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   21264   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   21265   esac ;;
   21266 esac
   21267 ac_abs_top_builddir=$ac_pwd
   21268 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   21269 # for backward compatibility:
   21270 ac_top_builddir=$ac_top_build_prefix
   21271 
   21272 case $srcdir in
   21273   .)  # We are building in place.
   21274     ac_srcdir=.
   21275     ac_top_srcdir=$ac_top_builddir_sub
   21276     ac_abs_top_srcdir=$ac_pwd ;;
   21277   [\\/]* | ?:[\\/]* )  # Absolute name.
   21278     ac_srcdir=$srcdir$ac_dir_suffix;
   21279     ac_top_srcdir=$srcdir
   21280     ac_abs_top_srcdir=$srcdir ;;
   21281   *) # Relative name.
   21282     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   21283     ac_top_srcdir=$ac_top_build_prefix$srcdir
   21284     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   21285 esac
   21286 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   21287 
   21288 
   21289   case $ac_mode in
   21290   :F)
   21291   #
   21292   # CONFIG_FILE
   21293   #
   21294 
   21295   case $INSTALL in
   21296   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   21297   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   21298   esac
   21299   ac_MKDIR_P=$MKDIR_P
   21300   case $MKDIR_P in
   21301   [\\/$]* | ?:[\\/]* ) ;;
   21302   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
   21303   esac
   21304 _ACEOF
   21305 
   21306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   21307 # If the template does not know about datarootdir, expand it.
   21308 # FIXME: This hack should be removed a few years after 2.60.
   21309 ac_datarootdir_hack=; ac_datarootdir_seen=
   21310 ac_sed_dataroot='
   21311 /datarootdir/ {
   21312   p
   21313   q
   21314 }
   21315 /@datadir@/p
   21316 /@docdir@/p
   21317 /@infodir@/p
   21318 /@localedir@/p
   21319 /@mandir@/p'
   21320 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   21321 *datarootdir*) ac_datarootdir_seen=yes;;
   21322 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   21323   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   21324 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   21325 _ACEOF
   21326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   21327   ac_datarootdir_hack='
   21328   s&@datadir@&$datadir&g
   21329   s&@docdir@&$docdir&g
   21330   s&@infodir@&$infodir&g
   21331   s&@localedir@&$localedir&g
   21332   s&@mandir@&$mandir&g
   21333   s&\\\${datarootdir}&$datarootdir&g' ;;
   21334 esac
   21335 _ACEOF
   21336 
   21337 # Neutralize VPATH when `$srcdir' = `.'.
   21338 # Shell code in configure.ac might set extrasub.
   21339 # FIXME: do we really want to maintain this feature?
   21340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   21341 ac_sed_extra="$ac_vpsub
   21342 $extrasub
   21343 _ACEOF
   21344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   21345 :t
   21346 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   21347 s|@configure_input@|$ac_sed_conf_input|;t t
   21348 s&@top_builddir@&$ac_top_builddir_sub&;t t
   21349 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   21350 s&@srcdir@&$ac_srcdir&;t t
   21351 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   21352 s&@top_srcdir@&$ac_top_srcdir&;t t
   21353 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   21354 s&@builddir@&$ac_builddir&;t t
   21355 s&@abs_builddir@&$ac_abs_builddir&;t t
   21356 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   21357 s&@INSTALL@&$ac_INSTALL&;t t
   21358 s&@MKDIR_P@&$ac_MKDIR_P&;t t
   21359 $ac_datarootdir_hack
   21360 "
   21361 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
   21362   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   21363 
   21364 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   21365   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   21366   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   21367       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   21368   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   21369 which seems to be undefined.  Please make sure it is defined" >&5
   21370 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   21371 which seems to be undefined.  Please make sure it is defined" >&2;}
   21372 
   21373   rm -f "$ac_tmp/stdin"
   21374   case $ac_file in
   21375   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   21376   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   21377   esac \
   21378   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   21379  ;;
   21380   :H)
   21381   #
   21382   # CONFIG_HEADER
   21383   #
   21384   if test x"$ac_file" != x-; then
   21385     {
   21386       printf "%s\n" "/* $configure_input  */" >&1 \
   21387       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   21388     } >"$ac_tmp/config.h" \
   21389       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   21390     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   21391       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   21392 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
   21393     else
   21394       rm -f "$ac_file"
   21395       mv "$ac_tmp/config.h" "$ac_file" \
   21396 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   21397     fi
   21398   else
   21399     printf "%s\n" "/* $configure_input  */" >&1 \
   21400       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   21401       || as_fn_error $? "could not create -" "$LINENO" 5
   21402   fi
   21403 # Compute "$ac_file"'s index in $config_headers.
   21404 _am_arg="$ac_file"
   21405 _am_stamp_count=1
   21406 for _am_header in $config_headers :; do
   21407   case $_am_header in
   21408     $_am_arg | $_am_arg:* )
   21409       break ;;
   21410     * )
   21411       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
   21412   esac
   21413 done
   21414 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
   21415 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   21416 	 X"$_am_arg" : 'X\(//\)[^/]' \| \
   21417 	 X"$_am_arg" : 'X\(//\)$' \| \
   21418 	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
   21419 printf "%s\n" X"$_am_arg" |
   21420     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   21421 	    s//\1/
   21422 	    q
   21423 	  }
   21424 	  /^X\(\/\/\)[^/].*/{
   21425 	    s//\1/
   21426 	    q
   21427 	  }
   21428 	  /^X\(\/\/\)$/{
   21429 	    s//\1/
   21430 	    q
   21431 	  }
   21432 	  /^X\(\/\).*/{
   21433 	    s//\1/
   21434 	    q
   21435 	  }
   21436 	  s/.*/./; q'`/stamp-h$_am_stamp_count
   21437  ;;
   21438 
   21439   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   21440 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
   21441  ;;
   21442   esac
   21443 
   21444 
   21445   case $ac_file$ac_mode in
   21446     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
   21447   # Older Autoconf quotes --file arguments for eval, but not when files
   21448   # are listed without --file.  Let's play safe and only enable the eval
   21449   # if we detect the quoting.
   21450   # TODO: see whether this extra hack can be removed once we start
   21451   # requiring Autoconf 2.70 or later.
   21452   case $CONFIG_FILES in #(
   21453   *\'*) :
   21454     eval set x "$CONFIG_FILES" ;; #(
   21455   *) :
   21456     set x $CONFIG_FILES ;; #(
   21457   *) :
   21458      ;;
   21459 esac
   21460   shift
   21461   # Used to flag and report bootstrapping failures.
   21462   am_rc=0
   21463   for am_mf
   21464   do
   21465     # Strip MF so we end up with the name of the file.
   21466     am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
   21467     # Check whether this is an Automake generated Makefile which includes
   21468     # dependency-tracking related rules and includes.
   21469     # Grep'ing the whole file directly is not great: AIX grep has a line
   21470     # limit of 2048, but all sed's we know have understand at least 4000.
   21471     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
   21472       || continue
   21473     am_dirpart=`$as_dirname -- "$am_mf" ||
   21474 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   21475 	 X"$am_mf" : 'X\(//\)[^/]' \| \
   21476 	 X"$am_mf" : 'X\(//\)$' \| \
   21477 	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
   21478 printf "%s\n" X"$am_mf" |
   21479     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   21480 	    s//\1/
   21481 	    q
   21482 	  }
   21483 	  /^X\(\/\/\)[^/].*/{
   21484 	    s//\1/
   21485 	    q
   21486 	  }
   21487 	  /^X\(\/\/\)$/{
   21488 	    s//\1/
   21489 	    q
   21490 	  }
   21491 	  /^X\(\/\).*/{
   21492 	    s//\1/
   21493 	    q
   21494 	  }
   21495 	  s/.*/./; q'`
   21496     am_filepart=`$as_basename -- "$am_mf" ||
   21497 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
   21498 	 X"$am_mf" : 'X\(//\)$' \| \
   21499 	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
   21500 printf "%s\n" X/"$am_mf" |
   21501     sed '/^.*\/\([^/][^/]*\)\/*$/{
   21502 	    s//\1/
   21503 	    q
   21504 	  }
   21505 	  /^X\/\(\/\/\)$/{
   21506 	    s//\1/
   21507 	    q
   21508 	  }
   21509 	  /^X\/\(\/\).*/{
   21510 	    s//\1/
   21511 	    q
   21512 	  }
   21513 	  s/.*/./; q'`
   21514     { echo "$as_me:$LINENO: cd "$am_dirpart" \
   21515       && sed -e '/# am--include-marker/d' "$am_filepart" \
   21516         | $MAKE -f - am--depfiles" >&5
   21517    (cd "$am_dirpart" \
   21518       && sed -e '/# am--include-marker/d' "$am_filepart" \
   21519         | $MAKE -f - am--depfiles) >&5 2>&5
   21520    ac_status=$?
   21521    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21522    (exit $ac_status); } || am_rc=$?
   21523   done
   21524   if test $am_rc -ne 0; then
   21525     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   21526 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
   21527 as_fn_error $? "Something went wrong bootstrapping makefile fragments
   21528     for automatic dependency tracking.  If GNU make was not used, consider
   21529     re-running the configure script with MAKE=\"gmake\" (or whatever is
   21530     necessary).  You can also try re-running configure with the
   21531     '--disable-dependency-tracking' option to at least be able to build
   21532     the package (albeit without support for automatic dependency tracking).
   21533 See \`config.log' for more details" "$LINENO" 5; }
   21534   fi
   21535   { am_dirpart=; unset am_dirpart;}
   21536   { am_filepart=; unset am_filepart;}
   21537   { am_mf=; unset am_mf;}
   21538   { am_rc=; unset am_rc;}
   21539   rm -f conftest-deps.mk
   21540 }
   21541  ;;
   21542     "libtool":C)
   21543 
   21544     # See if we are running on zsh, and set the options that allow our
   21545     # commands through without removal of \ escapes.
   21546     if test -n "${ZSH_VERSION+set}"; then
   21547       setopt NO_GLOB_SUBST
   21548     fi
   21549 
   21550     cfgfile=${ofile}T
   21551     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
   21552     $RM "$cfgfile"
   21553 
   21554     cat <<_LT_EOF >> "$cfgfile"
   21555 #! $SHELL
   21556 # Generated automatically by $as_me ($PACKAGE) $VERSION
   21557 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
   21558 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
   21559 
   21560 # Provide generalized library-building support services.
   21561 # Written by Gordon Matzigkeit, 1996
   21562 
   21563 # Copyright (C) 2014 Free Software Foundation, Inc.
   21564 # This is free software; see the source for copying conditions.  There is NO
   21565 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   21566 
   21567 # GNU Libtool is free software; you can redistribute it and/or modify
   21568 # it under the terms of the GNU General Public License as published by
   21569 # the Free Software Foundation; either version 2 of of the License, or
   21570 # (at your option) any later version.
   21571 #
   21572 # As a special exception to the GNU General Public License, if you
   21573 # distribute this file as part of a program or library that is built
   21574 # using GNU Libtool, you may include this file under the  same
   21575 # distribution terms that you use for the rest of that program.
   21576 #
   21577 # GNU Libtool is distributed in the hope that it will be useful, but
   21578 # WITHOUT ANY WARRANTY; without even the implied warranty of
   21579 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   21580 # GNU General Public License for more details.
   21581 #
   21582 # You should have received a copy of the GNU General Public License
   21583 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
   21584 
   21585 
   21586 # The names of the tagged configurations supported by this script.
   21587 available_tags=''
   21588 
   21589 # Configured defaults for sys_lib_dlsearch_path munging.
   21590 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
   21591 
   21592 # ### BEGIN LIBTOOL CONFIG
   21593 
   21594 # Which release of libtool.m4 was used?
   21595 macro_version=$macro_version
   21596 macro_revision=$macro_revision
   21597 
   21598 # Whether or not to build shared libraries.
   21599 build_libtool_libs=$enable_shared
   21600 
   21601 # Whether or not to build static libraries.
   21602 build_old_libs=$enable_static
   21603 
   21604 # What type of objects to build.
   21605 pic_mode=$pic_mode
   21606 
   21607 # Whether or not to optimize for fast installation.
   21608 fast_install=$enable_fast_install
   21609 
   21610 # Shared archive member basename,for filename based shared library versioning on AIX.
   21611 shared_archive_member_spec=$shared_archive_member_spec
   21612 
   21613 # Shell to use when invoking shell scripts.
   21614 SHELL=$lt_SHELL
   21615 
   21616 # An echo program that protects backslashes.
   21617 ECHO=$lt_ECHO
   21618 
   21619 # The PATH separator for the build system.
   21620 PATH_SEPARATOR=$lt_PATH_SEPARATOR
   21621 
   21622 # The host system.
   21623 host_alias=$host_alias
   21624 host=$host
   21625 host_os=$host_os
   21626 
   21627 # The build system.
   21628 build_alias=$build_alias
   21629 build=$build
   21630 build_os=$build_os
   21631 
   21632 # A sed program that does not truncate output.
   21633 SED=$lt_SED
   21634 
   21635 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
   21636 Xsed="\$SED -e 1s/^X//"
   21637 
   21638 # A grep program that handles long lines.
   21639 GREP=$lt_GREP
   21640 
   21641 # An ERE matcher.
   21642 EGREP=$lt_EGREP
   21643 
   21644 # A literal string matcher.
   21645 FGREP=$lt_FGREP
   21646 
   21647 # A BSD- or MS-compatible name lister.
   21648 NM=$lt_NM
   21649 
   21650 # Whether we need soft or hard links.
   21651 LN_S=$lt_LN_S
   21652 
   21653 # What is the maximum length of a command?
   21654 max_cmd_len=$max_cmd_len
   21655 
   21656 # Object file suffix (normally "o").
   21657 objext=$ac_objext
   21658 
   21659 # Executable file suffix (normally "").
   21660 exeext=$exeext
   21661 
   21662 # whether the shell understands "unset".
   21663 lt_unset=$lt_unset
   21664 
   21665 # turn spaces into newlines.
   21666 SP2NL=$lt_lt_SP2NL
   21667 
   21668 # turn newlines into spaces.
   21669 NL2SP=$lt_lt_NL2SP
   21670 
   21671 # convert \$build file names to \$host format.
   21672 to_host_file_cmd=$lt_cv_to_host_file_cmd
   21673 
   21674 # convert \$build files to toolchain format.
   21675 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   21676 
   21677 # A file(cmd) program that detects file types.
   21678 FILECMD=$lt_FILECMD
   21679 
   21680 # An object symbol dumper.
   21681 OBJDUMP=$lt_OBJDUMP
   21682 
   21683 # Method to check whether dependent libraries are shared objects.
   21684 deplibs_check_method=$lt_deplibs_check_method
   21685 
   21686 # Command to use when deplibs_check_method = "file_magic".
   21687 file_magic_cmd=$lt_file_magic_cmd
   21688 
   21689 # How to find potential files when deplibs_check_method = "file_magic".
   21690 file_magic_glob=$lt_file_magic_glob
   21691 
   21692 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
   21693 want_nocaseglob=$lt_want_nocaseglob
   21694 
   21695 # DLL creation program.
   21696 DLLTOOL=$lt_DLLTOOL
   21697 
   21698 # Command to associate shared and link libraries.
   21699 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
   21700 
   21701 # The archiver.
   21702 AR=$lt_AR
   21703 
   21704 # Flags to create an archive (by configure).
   21705 lt_ar_flags=$lt_ar_flags
   21706 
   21707 # Flags to create an archive.
   21708 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
   21709 
   21710 # How to feed a file listing to the archiver.
   21711 archiver_list_spec=$lt_archiver_list_spec
   21712 
   21713 # A symbol stripping program.
   21714 STRIP=$lt_STRIP
   21715 
   21716 # Commands used to install an old-style archive.
   21717 RANLIB=$lt_RANLIB
   21718 old_postinstall_cmds=$lt_old_postinstall_cmds
   21719 old_postuninstall_cmds=$lt_old_postuninstall_cmds
   21720 
   21721 # Whether to use a lock for old archive extraction.
   21722 lock_old_archive_extraction=$lock_old_archive_extraction
   21723 
   21724 # A C compiler.
   21725 LTCC=$lt_CC
   21726 
   21727 # LTCC compiler flags.
   21728 LTCFLAGS=$lt_CFLAGS
   21729 
   21730 # Take the output of nm and produce a listing of raw symbols and C names.
   21731 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
   21732 
   21733 # Transform the output of nm in a proper C declaration.
   21734 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
   21735 
   21736 # Transform the output of nm into a list of symbols to manually relocate.
   21737 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
   21738 
   21739 # Transform the output of nm in a C name address pair.
   21740 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
   21741 
   21742 # Transform the output of nm in a C name address pair when lib prefix is needed.
   21743 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
   21744 
   21745 # The name lister interface.
   21746 nm_interface=$lt_lt_cv_nm_interface
   21747 
   21748 # Specify filename containing input files for \$NM.
   21749 nm_file_list_spec=$lt_nm_file_list_spec
   21750 
   21751 # The root where to search for dependent libraries,and where our libraries should be installed.
   21752 lt_sysroot=$lt_sysroot
   21753 
   21754 # Command to truncate a binary pipe.
   21755 lt_truncate_bin=$lt_lt_cv_truncate_bin
   21756 
   21757 # The name of the directory that contains temporary libtool files.
   21758 objdir=$objdir
   21759 
   21760 # Used to examine libraries when file_magic_cmd begins with "file".
   21761 MAGIC_CMD=$MAGIC_CMD
   21762 
   21763 # Must we lock files when doing compilation?
   21764 need_locks=$lt_need_locks
   21765 
   21766 # Manifest tool.
   21767 MANIFEST_TOOL=$lt_MANIFEST_TOOL
   21768 
   21769 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
   21770 DSYMUTIL=$lt_DSYMUTIL
   21771 
   21772 # Tool to change global to local symbols on Mac OS X.
   21773 NMEDIT=$lt_NMEDIT
   21774 
   21775 # Tool to manipulate fat objects and archives on Mac OS X.
   21776 LIPO=$lt_LIPO
   21777 
   21778 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
   21779 OTOOL=$lt_OTOOL
   21780 
   21781 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
   21782 OTOOL64=$lt_OTOOL64
   21783 
   21784 # Old archive suffix (normally "a").
   21785 libext=$libext
   21786 
   21787 # Shared library suffix (normally ".so").
   21788 shrext_cmds=$lt_shrext_cmds
   21789 
   21790 # The commands to extract the exported symbol list from a shared archive.
   21791 extract_expsyms_cmds=$lt_extract_expsyms_cmds
   21792 
   21793 # Variables whose values should be saved in libtool wrapper scripts and
   21794 # restored at link time.
   21795 variables_saved_for_relink=$lt_variables_saved_for_relink
   21796 
   21797 # Do we need the "lib" prefix for modules?
   21798 need_lib_prefix=$need_lib_prefix
   21799 
   21800 # Do we need a version for libraries?
   21801 need_version=$need_version
   21802 
   21803 # Library versioning type.
   21804 version_type=$version_type
   21805 
   21806 # Shared library runtime path variable.
   21807 runpath_var=$runpath_var
   21808 
   21809 # Shared library path variable.
   21810 shlibpath_var=$shlibpath_var
   21811 
   21812 # Is shlibpath searched before the hard-coded library search path?
   21813 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
   21814 
   21815 # Format of library name prefix.
   21816 libname_spec=$lt_libname_spec
   21817 
   21818 # List of archive names.  First name is the real one, the rest are links.
   21819 # The last name is the one that the linker finds with -lNAME
   21820 library_names_spec=$lt_library_names_spec
   21821 
   21822 # The coded name of the library, if different from the real name.
   21823 soname_spec=$lt_soname_spec
   21824 
   21825 # Permission mode override for installation of shared libraries.
   21826 install_override_mode=$lt_install_override_mode
   21827 
   21828 # Command to use after installation of a shared archive.
   21829 postinstall_cmds=$lt_postinstall_cmds
   21830 
   21831 # Command to use after uninstallation of a shared archive.
   21832 postuninstall_cmds=$lt_postuninstall_cmds
   21833 
   21834 # Commands used to finish a libtool library installation in a directory.
   21835 finish_cmds=$lt_finish_cmds
   21836 
   21837 # As "finish_cmds", except a single script fragment to be evaled but
   21838 # not shown.
   21839 finish_eval=$lt_finish_eval
   21840 
   21841 # Whether we should hardcode library paths into libraries.
   21842 hardcode_into_libs=$hardcode_into_libs
   21843 
   21844 # Compile-time system search path for libraries.
   21845 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
   21846 
   21847 # Detected run-time system search path for libraries.
   21848 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
   21849 
   21850 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
   21851 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
   21852 
   21853 # Whether dlopen is supported.
   21854 dlopen_support=$enable_dlopen
   21855 
   21856 # Whether dlopen of programs is supported.
   21857 dlopen_self=$enable_dlopen_self
   21858 
   21859 # Whether dlopen of statically linked programs is supported.
   21860 dlopen_self_static=$enable_dlopen_self_static
   21861 
   21862 # Commands to strip libraries.
   21863 old_striplib=$lt_old_striplib
   21864 striplib=$lt_striplib
   21865 
   21866 
   21867 # The linker used to build libraries.
   21868 LD=$lt_LD
   21869 
   21870 # How to create reloadable object files.
   21871 reload_flag=$lt_reload_flag
   21872 reload_cmds=$lt_reload_cmds
   21873 
   21874 # Commands used to build an old-style archive.
   21875 old_archive_cmds=$lt_old_archive_cmds
   21876 
   21877 # A language specific compiler.
   21878 CC=$lt_compiler
   21879 
   21880 # Is the compiler the GNU compiler?
   21881 with_gcc=$GCC
   21882 
   21883 # Compiler flag to turn off builtin functions.
   21884 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
   21885 
   21886 # Additional compiler flags for building library objects.
   21887 pic_flag=$lt_lt_prog_compiler_pic
   21888 
   21889 # How to pass a linker flag through the compiler.
   21890 wl=$lt_lt_prog_compiler_wl
   21891 
   21892 # Compiler flag to prevent dynamic linking.
   21893 link_static_flag=$lt_lt_prog_compiler_static
   21894 
   21895 # Does compiler simultaneously support -c and -o options?
   21896 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
   21897 
   21898 # Whether or not to add -lc for building shared libraries.
   21899 build_libtool_need_lc=$archive_cmds_need_lc
   21900 
   21901 # Whether or not to disallow shared libs when runtime libs are static.
   21902 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
   21903 
   21904 # Compiler flag to allow reflexive dlopens.
   21905 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
   21906 
   21907 # Compiler flag to generate shared objects directly from archives.
   21908 whole_archive_flag_spec=$lt_whole_archive_flag_spec
   21909 
   21910 # Whether the compiler copes with passing no objects directly.
   21911 compiler_needs_object=$lt_compiler_needs_object
   21912 
   21913 # Create an old-style archive from a shared archive.
   21914 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
   21915 
   21916 # Create a temporary old-style archive to link instead of a shared archive.
   21917 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
   21918 
   21919 # Commands used to build a shared archive.
   21920 archive_cmds=$lt_archive_cmds
   21921 archive_expsym_cmds=$lt_archive_expsym_cmds
   21922 
   21923 # Commands used to build a loadable module if different from building
   21924 # a shared archive.
   21925 module_cmds=$lt_module_cmds
   21926 module_expsym_cmds=$lt_module_expsym_cmds
   21927 
   21928 # Whether we are building with GNU ld or not.
   21929 with_gnu_ld=$lt_with_gnu_ld
   21930 
   21931 # Flag that allows shared libraries with undefined symbols to be built.
   21932 allow_undefined_flag=$lt_allow_undefined_flag
   21933 
   21934 # Flag that enforces no undefined symbols.
   21935 no_undefined_flag=$lt_no_undefined_flag
   21936 
   21937 # Flag to hardcode \$libdir into a binary during linking.
   21938 # This must work even if \$libdir does not exist
   21939 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
   21940 
   21941 # Whether we need a single "-rpath" flag with a separated argument.
   21942 hardcode_libdir_separator=$lt_hardcode_libdir_separator
   21943 
   21944 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
   21945 # DIR into the resulting binary.
   21946 hardcode_direct=$hardcode_direct
   21947 
   21948 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
   21949 # DIR into the resulting binary and the resulting library dependency is
   21950 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
   21951 # library is relocated.
   21952 hardcode_direct_absolute=$hardcode_direct_absolute
   21953 
   21954 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
   21955 # into the resulting binary.
   21956 hardcode_minus_L=$hardcode_minus_L
   21957 
   21958 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
   21959 # into the resulting binary.
   21960 hardcode_shlibpath_var=$hardcode_shlibpath_var
   21961 
   21962 # Set to "yes" if building a shared library automatically hardcodes DIR
   21963 # into the library and all subsequent libraries and executables linked
   21964 # against it.
   21965 hardcode_automatic=$hardcode_automatic
   21966 
   21967 # Set to yes if linker adds runtime paths of dependent libraries
   21968 # to runtime path list.
   21969 inherit_rpath=$inherit_rpath
   21970 
   21971 # Whether libtool must link a program against all its dependency libraries.
   21972 link_all_deplibs=$link_all_deplibs
   21973 
   21974 # Set to "yes" if exported symbols are required.
   21975 always_export_symbols=$always_export_symbols
   21976 
   21977 # The commands to list exported symbols.
   21978 export_symbols_cmds=$lt_export_symbols_cmds
   21979 
   21980 # Symbols that should not be listed in the preloaded symbols.
   21981 exclude_expsyms=$lt_exclude_expsyms
   21982 
   21983 # Symbols that must always be exported.
   21984 include_expsyms=$lt_include_expsyms
   21985 
   21986 # Commands necessary for linking programs (against libraries) with templates.
   21987 prelink_cmds=$lt_prelink_cmds
   21988 
   21989 # Commands necessary for finishing linking programs.
   21990 postlink_cmds=$lt_postlink_cmds
   21991 
   21992 # Specify filename containing input files.
   21993 file_list_spec=$lt_file_list_spec
   21994 
   21995 # How to hardcode a shared library path into an executable.
   21996 hardcode_action=$hardcode_action
   21997 
   21998 # ### END LIBTOOL CONFIG
   21999 
   22000 _LT_EOF
   22001 
   22002     cat <<'_LT_EOF' >> "$cfgfile"
   22003 
   22004 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
   22005 
   22006 # func_munge_path_list VARIABLE PATH
   22007 # -----------------------------------
   22008 # VARIABLE is name of variable containing _space_ separated list of
   22009 # directories to be munged by the contents of PATH, which is string
   22010 # having a format:
   22011 # "DIR[:DIR]:"
   22012 #       string "DIR[ DIR]" will be prepended to VARIABLE
   22013 # ":DIR[:DIR]"
   22014 #       string "DIR[ DIR]" will be appended to VARIABLE
   22015 # "DIRP[:DIRP]::[DIRA:]DIRA"
   22016 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
   22017 #       "DIRA[ DIRA]" will be appended to VARIABLE
   22018 # "DIR[:DIR]"
   22019 #       VARIABLE will be replaced by "DIR[ DIR]"
   22020 func_munge_path_list ()
   22021 {
   22022     case x$2 in
   22023     x)
   22024         ;;
   22025     *:)
   22026         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
   22027         ;;
   22028     x:*)
   22029         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
   22030         ;;
   22031     *::*)
   22032         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
   22033         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
   22034         ;;
   22035     *)
   22036         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
   22037         ;;
   22038     esac
   22039 }
   22040 
   22041 
   22042 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   22043 func_cc_basename ()
   22044 {
   22045     for cc_temp in $*""; do
   22046       case $cc_temp in
   22047         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   22048         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   22049         \-*) ;;
   22050         *) break;;
   22051       esac
   22052     done
   22053     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   22054 }
   22055 
   22056 
   22057 # ### END FUNCTIONS SHARED WITH CONFIGURE
   22058 
   22059 _LT_EOF
   22060 
   22061   case $host_os in
   22062   aix3*)
   22063     cat <<\_LT_EOF >> "$cfgfile"
   22064 # AIX sometimes has problems with the GCC collect2 program.  For some
   22065 # reason, if we set the COLLECT_NAMES environment variable, the problems
   22066 # vanish in a puff of smoke.
   22067 if test set != "${COLLECT_NAMES+set}"; then
   22068   COLLECT_NAMES=
   22069   export COLLECT_NAMES
   22070 fi
   22071 _LT_EOF
   22072     ;;
   22073   esac
   22074 
   22075 
   22076 
   22077 ltmain=$ac_aux_dir/ltmain.sh
   22078 
   22079 
   22080   # We use sed instead of cat because bash on DJGPP gets confused if
   22081   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
   22082   # text mode, it properly converts lines to CR/LF.  This bash problem
   22083   # is reportedly fixed, but why not run on old versions too?
   22084   $SED '$q' "$ltmain" >> "$cfgfile" \
   22085      || (rm -f "$cfgfile"; exit 1)
   22086 
   22087    mv -f "$cfgfile" "$ofile" ||
   22088     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
   22089   chmod +x "$ofile"
   22090 
   22091  ;;
   22092 
   22093   esac
   22094 done # for ac_tag
   22095 
   22096 
   22097 as_fn_exit 0
   22098 _ACEOF
   22099 ac_clean_files=$ac_clean_files_save
   22100 
   22101 test $ac_write_fail = 0 ||
   22102   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   22103 
   22104 
   22105 # configure is writing to config.log, and then calls config.status.
   22106 # config.status does its own redirection, appending to config.log.
   22107 # Unfortunately, on DOS this fails, as config.log is still kept open
   22108 # by configure, so config.status won't be able to write to it; its
   22109 # output is simply discarded.  So we exec the FD to /dev/null,
   22110 # effectively closing config.log, so it can be properly (re)opened and
   22111 # appended to by config.status.  When coming back to configure, we
   22112 # need to make the FD available again.
   22113 if test "$no_create" != yes; then
   22114   ac_cs_success=:
   22115   ac_config_status_args=
   22116   test "$silent" = yes &&
   22117     ac_config_status_args="$ac_config_status_args --quiet"
   22118   exec 5>/dev/null
   22119   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   22120   exec 5>>config.log
   22121   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   22122   # would make configure fail if this is the last instruction.
   22123   $ac_cs_success || as_fn_exit 1
   22124 fi
   22125 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   22126   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   22127 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   22128 fi
   22129 
   22130 
   22131