configure revision b40a6198
11.1Stsutsui#! /bin/sh
21.1Stsutsui# Guess values for system-dependent variables and create Makefiles.
31.1Stsutsui# Generated by GNU Autoconf 2.68 for xf86-video-vesa 2.3.2.
41.1Stsutsui#
51.1Stsutsui# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
61.1Stsutsui#
71.1Stsutsui#
81.1Stsutsui# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
91.1Stsutsui# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
101.1Stsutsui# Foundation, Inc.
111.1Stsutsui#
121.1Stsutsui#
131.1Stsutsui# This configure script is free software; the Free Software Foundation
141.1Stsutsui# gives unlimited permission to copy, distribute and modify it.
151.1Stsutsui## -------------------- ##
161.1Stsutsui## M4sh Initialization. ##
171.1Stsutsui## -------------------- ##
181.1Stsutsui
191.1Stsutsui# Be more Bourne compatible
201.1StsutsuiDUALCASE=1; export DUALCASE # for MKS sh
211.1Stsutsuiif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
221.1Stsutsui  emulate sh
231.1Stsutsui  NULLCMD=:
241.1Stsutsui  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
251.1Stsutsui  # is contrary to our usage.  Disable this feature.
261.1Stsutsui  alias -g '${1+"$@"}'='"$@"'
271.1Stsutsui  setopt NO_GLOB_SUBST
281.1Stsutsuielse
291.1Stsutsui  case `(set -o) 2>/dev/null` in #(
301.1Stsutsui  *posix*) :
311.1Stsutsui    set -o posix ;; #(
321.1Stsutsui  *) :
331.1Stsutsui     ;;
341.1Stsutsuiesac
351.1Stsutsuifi
361.1Stsutsui
371.1Stsutsui
381.1Stsutsuias_nl='
391.1Stsutsui'
401.1Stsutsuiexport as_nl
411.1Stsutsui# Printing a long string crashes Solaris 7 /usr/bin/printf.
421.1Stsutsuias_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
431.1Stsutsuias_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
441.1Stsutsuias_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
451.1Stsutsui# Prefer a ksh shell builtin over an external printf program on Solaris,
461.1Stsutsui# but without wasting forks for bash or zsh.
471.1Stsutsuiif test -z "$BASH_VERSION$ZSH_VERSION" \
481.1Stsutsui    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
491.1Stsutsui  as_echo='print -r --'
501.1Stsutsui  as_echo_n='print -rn --'
511.1Stsutsuielif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
521.1Stsutsui  as_echo='printf %s\n'
531.1Stsutsui  as_echo_n='printf %s'
541.1Stsutsuielse
551.1Stsutsui  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
561.1Stsutsui    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
571.1Stsutsui    as_echo_n='/usr/ucb/echo -n'
581.1Stsutsui  else
591.1Stsutsui    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
601.1Stsutsui    as_echo_n_body='eval
611.1Stsutsui      arg=$1;
621.1Stsutsui      case $arg in #(
631.1Stsutsui      *"$as_nl"*)
641.1Stsutsui	expr "X$arg" : "X\\(.*\\)$as_nl";
651.1Stsutsui	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
661.1Stsutsui      esac;
671.1Stsutsui      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
681.1Stsutsui    '
691.1Stsutsui    export as_echo_n_body
701.1Stsutsui    as_echo_n='sh -c $as_echo_n_body as_echo'
711.1Stsutsui  fi
721.1Stsutsui  export as_echo_body
731.1Stsutsui  as_echo='sh -c $as_echo_body as_echo'
741.1Stsutsuifi
751.1Stsutsui
761.1Stsutsui# The user is always right.
771.1Stsutsuiif test "${PATH_SEPARATOR+set}" != set; then
781.1Stsutsui  PATH_SEPARATOR=:
791.1Stsutsui  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
801.1Stsutsui    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
811.1Stsutsui      PATH_SEPARATOR=';'
821.1Stsutsui  }
831.1Stsutsuifi
841.1Stsutsui
851.1Stsutsui
861.1Stsutsui# IFS
871.1Stsutsui# We need space, tab and new line, in precisely that order.  Quoting is
881.1Stsutsui# there to prevent editors from complaining about space-tab.
891.1Stsutsui# (If _AS_PATH_WALK were called with IFS unset, it would disable word
901.1Stsutsui# splitting by setting IFS to empty value.)
911.1StsutsuiIFS=" ""	$as_nl"
921.1Stsutsui
931.1Stsutsui# Find who we are.  Look in the path if we contain no directory separator.
941.1Stsutsuias_myself=
951.1Stsutsuicase $0 in #((
961.1Stsutsui  *[\\/]* ) as_myself=$0 ;;
971.1Stsutsui  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
981.1Stsutsuifor as_dir in $PATH
991.1Stsutsuido
1001.1Stsutsui  IFS=$as_save_IFS
1011.1Stsutsui  test -z "$as_dir" && as_dir=.
1021.1Stsutsui    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1031.1Stsutsui  done
1041.1StsutsuiIFS=$as_save_IFS
1051.1Stsutsui
1061.1Stsutsui     ;;
1071.1Stsutsuiesac
1081.1Stsutsui# We did not find ourselves, most probably we were run as `sh COMMAND'
1091.1Stsutsui# in which case we are not to be found in the path.
1101.1Stsutsuiif test "x$as_myself" = x; then
1111.1Stsutsui  as_myself=$0
1121.1Stsutsuifi
1131.1Stsutsuiif test ! -f "$as_myself"; then
1141.1Stsutsui  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1151.1Stsutsui  exit 1
1161.1Stsutsuifi
1171.1Stsutsui
1181.1Stsutsui# Unset variables that we do not need and which cause bugs (e.g. in
1191.1Stsutsui# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
1201.1Stsutsui# suppresses any "Segmentation fault" message there.  '((' could
1211.1Stsutsui# trigger a bug in pdksh 5.2.14.
1221.1Stsutsuifor as_var in BASH_ENV ENV MAIL MAILPATH
1231.1Stsutsuido eval test x\${$as_var+set} = xset \
1241.1Stsutsui  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1251.1Stsutsuidone
1261.1StsutsuiPS1='$ '
1271.1StsutsuiPS2='> '
1281.1StsutsuiPS4='+ '
1291.1Stsutsui
1301.1Stsutsui# NLS nuisances.
1311.1StsutsuiLC_ALL=C
1321.1Stsutsuiexport LC_ALL
1331.1StsutsuiLANGUAGE=C
1341.1Stsutsuiexport LANGUAGE
1351.1Stsutsui
1361.1Stsutsui# CDPATH.
1371.1Stsutsui(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1381.1Stsutsui
1391.1Stsutsuiif test "x$CONFIG_SHELL" = x; then
1401.1Stsutsui  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
1411.1Stsutsui  emulate sh
1421.1Stsutsui  NULLCMD=:
1431.1Stsutsui  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
1441.1Stsutsui  # is contrary to our usage.  Disable this feature.
1451.1Stsutsui  alias -g '\${1+\"\$@\"}'='\"\$@\"'
1461.1Stsutsui  setopt NO_GLOB_SUBST
1471.1Stsutsuielse
1481.1Stsutsui  case \`(set -o) 2>/dev/null\` in #(
1491.1Stsutsui  *posix*) :
1501.1Stsutsui    set -o posix ;; #(
1511.1Stsutsui  *) :
1521.1Stsutsui     ;;
1531.1Stsutsuiesac
1541.1Stsutsuifi
1551.1Stsutsui"
1561.1Stsutsui  as_required="as_fn_return () { (exit \$1); }
1571.1Stsutsuias_fn_success () { as_fn_return 0; }
1581.1Stsutsuias_fn_failure () { as_fn_return 1; }
1591.1Stsutsuias_fn_ret_success () { return 0; }
1601.1Stsutsuias_fn_ret_failure () { return 1; }
1611.1Stsutsui
1621.1Stsutsuiexitcode=0
1631.1Stsutsuias_fn_success || { exitcode=1; echo as_fn_success failed.; }
1641.1Stsutsuias_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
1651.1Stsutsuias_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
1661.1Stsutsuias_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1671.1Stsutsuiif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
1681.1Stsutsui
1691.1Stsutsuielse
1701.1Stsutsui  exitcode=1; echo positional parameters were not saved.
1711.1Stsutsuifi
1721.1Stsutsuitest x\$exitcode = x0 || exit 1"
1731.1Stsutsui  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
1741.1Stsutsui  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
1751.1Stsutsui  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
1761.1Stsutsui  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
1771.1Stsutsuitest \$(( 1 + 1 )) = 2 || exit 1
1781.1Stsutsui
1791.1Stsutsui  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
1801.1Stsutsui    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1811.1Stsutsui    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
1821.1Stsutsui    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
1831.1Stsutsui    PATH=/empty FPATH=/empty; export PATH FPATH
1841.1Stsutsui    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
1851.1Stsutsui      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
1861.1Stsutsui  if (eval "$as_required") 2>/dev/null; then :
1871.1Stsutsui  as_have_required=yes
1881.1Stsutsuielse
1891.1Stsutsui  as_have_required=no
1901.1Stsutsuifi
1911.1Stsutsui  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
1921.1Stsutsui
1931.1Stsutsuielse
1941.1Stsutsui  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951.1Stsutsuias_found=false
1961.1Stsutsuifor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1971.1Stsutsuido
1981.1Stsutsui  IFS=$as_save_IFS
1991.1Stsutsui  test -z "$as_dir" && as_dir=.
2001.1Stsutsui  as_found=:
2011.1Stsutsui  case $as_dir in #(
2021.1Stsutsui	 /*)
2031.1Stsutsui	   for as_base in sh bash ksh sh5; do
2041.1Stsutsui	     # Try only shells that exist, to save several forks.
2051.1Stsutsui	     as_shell=$as_dir/$as_base
2061.1Stsutsui	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
2071.1Stsutsui		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
2081.1Stsutsui  CONFIG_SHELL=$as_shell as_have_required=yes
2091.1Stsutsui		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
2101.1Stsutsui  break 2
2111.1Stsutsuifi
2121.1Stsutsuifi
2131.1Stsutsui	   done;;
2141.1Stsutsui       esac
2151.1Stsutsui  as_found=false
2161.1Stsutsuidone
2171.1Stsutsui$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
2181.1Stsutsui	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
2191.1Stsutsui  CONFIG_SHELL=$SHELL as_have_required=yes
2201.1Stsutsuifi; }
2211.1StsutsuiIFS=$as_save_IFS
2221.1Stsutsui
2231.1Stsutsui
2241.1Stsutsui      if test "x$CONFIG_SHELL" != x; then :
2251.1Stsutsui  # We cannot yet assume a decent shell, so we have to provide a
2261.1Stsutsui	# neutralization value for shells without unset; and this also
2271.1Stsutsui	# works around shells that cannot unset nonexistent variables.
2281.1Stsutsui	# Preserve -v and -x to the replacement shell.
2291.1Stsutsui	BASH_ENV=/dev/null
2301.1Stsutsui	ENV=/dev/null
2311.1Stsutsui	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
2321.1Stsutsui	export CONFIG_SHELL
2331.1Stsutsui	case $- in # ((((
2341.1Stsutsui	  *v*x* | *x*v* ) as_opts=-vx ;;
2351.1Stsutsui	  *v* ) as_opts=-v ;;
2361.1Stsutsui	  *x* ) as_opts=-x ;;
2371.1Stsutsui	  * ) as_opts= ;;
2381.1Stsutsui	esac
2391.1Stsutsui	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
2401.1Stsutsuifi
2411.1Stsutsui
2421.1Stsutsui    if test x$as_have_required = xno; then :
2431.1Stsutsui  $as_echo "$0: This script requires a shell more modern than all"
2441.1Stsutsui  $as_echo "$0: the shells that I found on your system."
2451.1Stsutsui  if test x${ZSH_VERSION+set} = xset ; then
2461.1Stsutsui    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
2471.1Stsutsui    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
2481.1Stsutsui  else
2491.1Stsutsui    $as_echo "$0: Please tell bug-autoconf@gnu.org and
2501.1Stsutsui$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
2511.1Stsutsui$0: about your system, including any error possibly output
2521.1Stsutsui$0: before this message. Then install a modern shell, or
2531.1Stsutsui$0: manually run the script under such a shell if you do
2541.1Stsutsui$0: have one."
2551.1Stsutsui  fi
2561.1Stsutsui  exit 1
2571.1Stsutsuifi
2581.1Stsutsuifi
2591.1Stsutsuifi
2601.1StsutsuiSHELL=${CONFIG_SHELL-/bin/sh}
2611.1Stsutsuiexport SHELL
2621.1Stsutsui# Unset more variables known to interfere with behavior of common tools.
2631.1StsutsuiCLICOLOR_FORCE= GREP_OPTIONS=
2641.1Stsutsuiunset CLICOLOR_FORCE GREP_OPTIONS
2651.1Stsutsui
2661.1Stsutsui## --------------------- ##
2671.1Stsutsui## M4sh Shell Functions. ##
2681.1Stsutsui## --------------------- ##
2691.1Stsutsui# as_fn_unset VAR
2701.1Stsutsui# ---------------
2711.1Stsutsui# Portably unset VAR.
2721.1Stsutsuias_fn_unset ()
2731.1Stsutsui{
2741.1Stsutsui  { eval $1=; unset $1;}
2751.1Stsutsui}
2761.1Stsutsuias_unset=as_fn_unset
2771.1Stsutsui
2781.1Stsutsui# as_fn_set_status STATUS
2791.1Stsutsui# -----------------------
2801.1Stsutsui# Set $? to STATUS, without forking.
2811.1Stsutsuias_fn_set_status ()
2821.1Stsutsui{
2831.1Stsutsui  return $1
2841.1Stsutsui} # as_fn_set_status
2851.1Stsutsui
286# as_fn_exit STATUS
287# -----------------
288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289as_fn_exit ()
290{
291  set +e
292  as_fn_set_status $1
293  exit $1
294} # as_fn_exit
295
296# as_fn_mkdir_p
297# -------------
298# Create "$as_dir" as a directory, including parents if necessary.
299as_fn_mkdir_p ()
300{
301
302  case $as_dir in #(
303  -*) as_dir=./$as_dir;;
304  esac
305  test -d "$as_dir" || eval $as_mkdir_p || {
306    as_dirs=
307    while :; do
308      case $as_dir in #(
309      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310      *) as_qdir=$as_dir;;
311      esac
312      as_dirs="'$as_qdir' $as_dirs"
313      as_dir=`$as_dirname -- "$as_dir" ||
314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315	 X"$as_dir" : 'X\(//\)[^/]' \| \
316	 X"$as_dir" : 'X\(//\)$' \| \
317	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318$as_echo X"$as_dir" |
319    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\/\)[^/].*/{
324	    s//\1/
325	    q
326	  }
327	  /^X\(\/\/\)$/{
328	    s//\1/
329	    q
330	  }
331	  /^X\(\/\).*/{
332	    s//\1/
333	    q
334	  }
335	  s/.*/./; q'`
336      test -d "$as_dir" && break
337    done
338    test -z "$as_dirs" || eval "mkdir $as_dirs"
339  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342} # as_fn_mkdir_p
343# as_fn_append VAR VALUE
344# ----------------------
345# Append the text in VALUE to the end of the definition contained in VAR. Take
346# advantage of any shell optimizations that allow amortized linear growth over
347# repeated appends, instead of the typical quadratic growth present in naive
348# implementations.
349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350  eval 'as_fn_append ()
351  {
352    eval $1+=\$2
353  }'
354else
355  as_fn_append ()
356  {
357    eval $1=\$$1\$2
358  }
359fi # as_fn_append
360
361# as_fn_arith ARG...
362# ------------------
363# Perform arithmetic evaluation on the ARGs, and store the result in the
364# global $as_val. Take advantage of shells that can avoid forks. The arguments
365# must be portable across $(()) and expr.
366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367  eval 'as_fn_arith ()
368  {
369    as_val=$(( $* ))
370  }'
371else
372  as_fn_arith ()
373  {
374    as_val=`expr "$@" || test $? -eq 1`
375  }
376fi # as_fn_arith
377
378
379# as_fn_error STATUS ERROR [LINENO LOG_FD]
380# ----------------------------------------
381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383# script with STATUS, using 1 if that was 0.
384as_fn_error ()
385{
386  as_status=$1; test $as_status -eq 0 && as_status=1
387  if test "$4"; then
388    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390  fi
391  $as_echo "$as_me: error: $2" >&2
392  as_fn_exit $as_status
393} # as_fn_error
394
395if expr a : '\(a\)' >/dev/null 2>&1 &&
396   test "X`expr 00001 : '.*\(...\)'`" = X001; then
397  as_expr=expr
398else
399  as_expr=false
400fi
401
402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403  as_basename=basename
404else
405  as_basename=false
406fi
407
408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409  as_dirname=dirname
410else
411  as_dirname=false
412fi
413
414as_me=`$as_basename -- "$0" ||
415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416	 X"$0" : 'X\(//\)$' \| \
417	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418$as_echo X/"$0" |
419    sed '/^.*\/\([^/][^/]*\)\/*$/{
420	    s//\1/
421	    q
422	  }
423	  /^X\/\(\/\/\)$/{
424	    s//\1/
425	    q
426	  }
427	  /^X\/\(\/\).*/{
428	    s//\1/
429	    q
430	  }
431	  s/.*/./; q'`
432
433# Avoid depending upon Character Ranges.
434as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437as_cr_digits='0123456789'
438as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441  as_lineno_1=$LINENO as_lineno_1a=$LINENO
442  as_lineno_2=$LINENO as_lineno_2a=$LINENO
443  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446  sed -n '
447    p
448    /[$]LINENO/=
449  ' <$as_myself |
450    sed '
451      s/[$]LINENO.*/&-/
452      t lineno
453      b
454      :lineno
455      N
456      :loop
457      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458      t loop
459      s/-\n.*//
460    ' >$as_me.lineno &&
461  chmod +x "$as_me.lineno" ||
462    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464  # Don't try to exec as it changes $[0], causing all sort of problems
465  # (the dirname of $[0] is not the place where we might find the
466  # original and so on.  Autoconf is especially sensitive to this).
467  . "./$as_me.lineno"
468  # Exit status is that of the last command.
469  exit
470}
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in #(((((
474-n*)
475  case `echo 'xy\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  xy)  ECHO_C='\c';;
478  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479       ECHO_T='	';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485rm -f conf$$ conf$$.exe conf$$.file
486if test -d conf$$.dir; then
487  rm -f conf$$.dir/conf$$.file
488else
489  rm -f conf$$.dir
490  mkdir conf$$.dir 2>/dev/null
491fi
492if (echo >conf$$.file) 2>/dev/null; then
493  if ln -s conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s='ln -s'
495    # ... but there are two gotchas:
496    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498    # In both cases, we have to default to `cp -p'.
499    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500      as_ln_s='cp -p'
501  elif ln conf$$.file conf$$ 2>/dev/null; then
502    as_ln_s=ln
503  else
504    as_ln_s='cp -p'
505  fi
506else
507  as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
513  as_mkdir_p='mkdir -p "$as_dir"'
514else
515  test -d ./-p && rmdir ./-p
516  as_mkdir_p=false
517fi
518
519if test -x / >/dev/null 2>&1; then
520  as_test_x='test -x'
521else
522  if ls -dL / >/dev/null 2>&1; then
523    as_ls_L_option=L
524  else
525    as_ls_L_option=
526  fi
527  as_test_x='
528    eval sh -c '\''
529      if test -d "$1"; then
530	test -d "$1/.";
531      else
532	case $1 in #(
533	-*)set "./$1";;
534	esac;
535	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536	???[sx]*):;;*)false;;esac;fi
537    '\'' sh
538  '
539fi
540as_executable_p=$as_test_x
541
542# Sed expression to map a string onto a valid CPP name.
543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545# Sed expression to map a string onto a valid variable name.
546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551test -n "$DJDIR" || exec 7<&0 </dev/null
552exec 6>&1
553
554# Name of the host.
555# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
563ac_clean_files=
564ac_config_libobj_dir=.
565LIBOBJS=
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570
571# Identity of this package.
572PACKAGE_NAME='xf86-video-vesa'
573PACKAGE_TARNAME='xf86-video-vesa'
574PACKAGE_VERSION='2.3.2'
575PACKAGE_STRING='xf86-video-vesa 2.3.2'
576PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577PACKAGE_URL=''
578
579ac_unique_file="Makefile.am"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
583#ifdef HAVE_SYS_TYPES_H
584# include <sys/types.h>
585#endif
586#ifdef HAVE_SYS_STAT_H
587# include <sys/stat.h>
588#endif
589#ifdef STDC_HEADERS
590# include <stdlib.h>
591# include <stddef.h>
592#else
593# ifdef HAVE_STDLIB_H
594#  include <stdlib.h>
595# endif
596#endif
597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599#  include <memory.h>
600# endif
601# include <string.h>
602#endif
603#ifdef HAVE_STRINGS_H
604# include <strings.h>
605#endif
606#ifdef HAVE_INTTYPES_H
607# include <inttypes.h>
608#endif
609#ifdef HAVE_STDINT_H
610# include <stdint.h>
611#endif
612#ifdef HAVE_UNISTD_H
613# include <unistd.h>
614#endif"
615
616ac_subst_vars='am__EXEEXT_FALSE
617am__EXEEXT_TRUE
618LTLIBOBJS
619LIBOBJS
620DRIVER_NAME
621XSERVER_LIBPCIACCESS_FALSE
622XSERVER_LIBPCIACCESS_TRUE
623PCIACCESS_LIBS
624PCIACCESS_CFLAGS
625HAVE_XEXTPROTO_71_FALSE
626HAVE_XEXTPROTO_71_TRUE
627XEXT_LIBS
628XEXT_CFLAGS
629XORG_LIBS
630XORG_CFLAGS
631moduledir
632OTOOL64
633OTOOL
634LIPO
635NMEDIT
636DSYMUTIL
637MANIFEST_TOOL
638RANLIB
639ac_ct_AR
640AR
641DLLTOOL
642OBJDUMP
643LN_S
644NM
645ac_ct_DUMPBIN
646DUMPBIN
647LD
648FGREP
649LIBTOOL
650AM_BACKSLASH
651AM_DEFAULT_VERBOSITY
652AM_DEFAULT_V
653AM_V
654MAN_SUBSTS
655XORG_MAN_PAGE
656ADMIN_MAN_DIR
657DRIVER_MAN_DIR
658MISC_MAN_DIR
659FILE_MAN_DIR
660LIB_MAN_DIR
661APP_MAN_DIR
662ADMIN_MAN_SUFFIX
663DRIVER_MAN_SUFFIX
664MISC_MAN_SUFFIX
665FILE_MAN_SUFFIX
666LIB_MAN_SUFFIX
667APP_MAN_SUFFIX
668SED
669host_os
670host_vendor
671host_cpu
672host
673build_os
674build_vendor
675build_cpu
676build
677INSTALL_CMD
678PKG_CONFIG_LIBDIR
679PKG_CONFIG_PATH
680PKG_CONFIG
681CHANGELOG_CMD
682STRICT_CFLAGS
683CWARNFLAGS
684BASE_CFLAGS
685EGREP
686GREP
687CPP
688am__fastdepCC_FALSE
689am__fastdepCC_TRUE
690CCDEPMODE
691am__nodep
692AMDEPBACKSLASH
693AMDEP_FALSE
694AMDEP_TRUE
695am__quote
696am__include
697DEPDIR
698OBJEXT
699EXEEXT
700ac_ct_CC
701CPPFLAGS
702LDFLAGS
703CFLAGS
704CC
705MAINT
706MAINTAINER_MODE_FALSE
707MAINTAINER_MODE_TRUE
708am__untar
709am__tar
710AMTAR
711am__leading_dot
712SET_MAKE
713AWK
714mkdir_p
715MKDIR_P
716INSTALL_STRIP_PROGRAM
717STRIP
718install_sh
719MAKEINFO
720AUTOHEADER
721AUTOMAKE
722AUTOCONF
723ACLOCAL
724VERSION
725PACKAGE
726CYGPATH_W
727am__isrc
728INSTALL_DATA
729INSTALL_SCRIPT
730INSTALL_PROGRAM
731target_alias
732host_alias
733build_alias
734LIBS
735ECHO_T
736ECHO_N
737ECHO_C
738DEFS
739mandir
740localedir
741libdir
742psdir
743pdfdir
744dvidir
745htmldir
746infodir
747docdir
748oldincludedir
749includedir
750localstatedir
751sharedstatedir
752sysconfdir
753datadir
754datarootdir
755libexecdir
756sbindir
757bindir
758program_transform_name
759prefix
760exec_prefix
761PACKAGE_URL
762PACKAGE_BUGREPORT
763PACKAGE_STRING
764PACKAGE_VERSION
765PACKAGE_TARNAME
766PACKAGE_NAME
767PATH_SEPARATOR
768SHELL'
769ac_subst_files=''
770ac_user_opts='
771enable_option_checking
772enable_maintainer_mode
773enable_dependency_tracking
774enable_selective_werror
775enable_strict_compilation
776enable_silent_rules
777enable_static
778enable_shared
779with_pic
780enable_fast_install
781with_gnu_ld
782with_sysroot
783enable_libtool_lock
784with_xorg_module_dir
785'
786      ac_precious_vars='build_alias
787host_alias
788target_alias
789CC
790CFLAGS
791LDFLAGS
792LIBS
793CPPFLAGS
794CPP
795PKG_CONFIG
796PKG_CONFIG_PATH
797PKG_CONFIG_LIBDIR
798XORG_CFLAGS
799XORG_LIBS
800XEXT_CFLAGS
801XEXT_LIBS
802PCIACCESS_CFLAGS
803PCIACCESS_LIBS'
804
805
806# Initialize some variables set by options.
807ac_init_help=
808ac_init_version=false
809ac_unrecognized_opts=
810ac_unrecognized_sep=
811# The variables have the same names as the options, with
812# dashes changed to underlines.
813cache_file=/dev/null
814exec_prefix=NONE
815no_create=
816no_recursion=
817prefix=NONE
818program_prefix=NONE
819program_suffix=NONE
820program_transform_name=s,x,x,
821silent=
822site=
823srcdir=
824verbose=
825x_includes=NONE
826x_libraries=NONE
827
828# Installation directory options.
829# These are left unexpanded so users can "make install exec_prefix=/foo"
830# and all the variables that are supposed to be based on exec_prefix
831# by default will actually change.
832# Use braces instead of parens because sh, perl, etc. also accept them.
833# (The list follows the same order as the GNU Coding Standards.)
834bindir='${exec_prefix}/bin'
835sbindir='${exec_prefix}/sbin'
836libexecdir='${exec_prefix}/libexec'
837datarootdir='${prefix}/share'
838datadir='${datarootdir}'
839sysconfdir='${prefix}/etc'
840sharedstatedir='${prefix}/com'
841localstatedir='${prefix}/var'
842includedir='${prefix}/include'
843oldincludedir='/usr/include'
844docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
845infodir='${datarootdir}/info'
846htmldir='${docdir}'
847dvidir='${docdir}'
848pdfdir='${docdir}'
849psdir='${docdir}'
850libdir='${exec_prefix}/lib'
851localedir='${datarootdir}/locale'
852mandir='${datarootdir}/man'
853
854ac_prev=
855ac_dashdash=
856for ac_option
857do
858  # If the previous option needs an argument, assign it.
859  if test -n "$ac_prev"; then
860    eval $ac_prev=\$ac_option
861    ac_prev=
862    continue
863  fi
864
865  case $ac_option in
866  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
867  *=)   ac_optarg= ;;
868  *)    ac_optarg=yes ;;
869  esac
870
871  # Accept the important Cygnus configure options, so we can diagnose typos.
872
873  case $ac_dashdash$ac_option in
874  --)
875    ac_dashdash=yes ;;
876
877  -bindir | --bindir | --bindi | --bind | --bin | --bi)
878    ac_prev=bindir ;;
879  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
880    bindir=$ac_optarg ;;
881
882  -build | --build | --buil | --bui | --bu)
883    ac_prev=build_alias ;;
884  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
885    build_alias=$ac_optarg ;;
886
887  -cache-file | --cache-file | --cache-fil | --cache-fi \
888  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
889    ac_prev=cache_file ;;
890  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
891  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
892    cache_file=$ac_optarg ;;
893
894  --config-cache | -C)
895    cache_file=config.cache ;;
896
897  -datadir | --datadir | --datadi | --datad)
898    ac_prev=datadir ;;
899  -datadir=* | --datadir=* | --datadi=* | --datad=*)
900    datadir=$ac_optarg ;;
901
902  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
903  | --dataroo | --dataro | --datar)
904    ac_prev=datarootdir ;;
905  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
906  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
907    datarootdir=$ac_optarg ;;
908
909  -disable-* | --disable-*)
910    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
911    # Reject names that are not valid shell variable names.
912    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913      as_fn_error $? "invalid feature name: $ac_useropt"
914    ac_useropt_orig=$ac_useropt
915    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916    case $ac_user_opts in
917      *"
918"enable_$ac_useropt"
919"*) ;;
920      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921	 ac_unrecognized_sep=', ';;
922    esac
923    eval enable_$ac_useropt=no ;;
924
925  -docdir | --docdir | --docdi | --doc | --do)
926    ac_prev=docdir ;;
927  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928    docdir=$ac_optarg ;;
929
930  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931    ac_prev=dvidir ;;
932  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933    dvidir=$ac_optarg ;;
934
935  -enable-* | --enable-*)
936    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937    # Reject names that are not valid shell variable names.
938    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939      as_fn_error $? "invalid feature name: $ac_useropt"
940    ac_useropt_orig=$ac_useropt
941    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942    case $ac_user_opts in
943      *"
944"enable_$ac_useropt"
945"*) ;;
946      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947	 ac_unrecognized_sep=', ';;
948    esac
949    eval enable_$ac_useropt=\$ac_optarg ;;
950
951  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953  | --exec | --exe | --ex)
954    ac_prev=exec_prefix ;;
955  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957  | --exec=* | --exe=* | --ex=*)
958    exec_prefix=$ac_optarg ;;
959
960  -gas | --gas | --ga | --g)
961    # Obsolete; use --with-gas.
962    with_gas=yes ;;
963
964  -help | --help | --hel | --he | -h)
965    ac_init_help=long ;;
966  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967    ac_init_help=recursive ;;
968  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969    ac_init_help=short ;;
970
971  -host | --host | --hos | --ho)
972    ac_prev=host_alias ;;
973  -host=* | --host=* | --hos=* | --ho=*)
974    host_alias=$ac_optarg ;;
975
976  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977    ac_prev=htmldir ;;
978  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979  | --ht=*)
980    htmldir=$ac_optarg ;;
981
982  -includedir | --includedir | --includedi | --included | --include \
983  | --includ | --inclu | --incl | --inc)
984    ac_prev=includedir ;;
985  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986  | --includ=* | --inclu=* | --incl=* | --inc=*)
987    includedir=$ac_optarg ;;
988
989  -infodir | --infodir | --infodi | --infod | --info | --inf)
990    ac_prev=infodir ;;
991  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992    infodir=$ac_optarg ;;
993
994  -libdir | --libdir | --libdi | --libd)
995    ac_prev=libdir ;;
996  -libdir=* | --libdir=* | --libdi=* | --libd=*)
997    libdir=$ac_optarg ;;
998
999  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000  | --libexe | --libex | --libe)
1001    ac_prev=libexecdir ;;
1002  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003  | --libexe=* | --libex=* | --libe=*)
1004    libexecdir=$ac_optarg ;;
1005
1006  -localedir | --localedir | --localedi | --localed | --locale)
1007    ac_prev=localedir ;;
1008  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009    localedir=$ac_optarg ;;
1010
1011  -localstatedir | --localstatedir | --localstatedi | --localstated \
1012  | --localstate | --localstat | --localsta | --localst | --locals)
1013    ac_prev=localstatedir ;;
1014  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016    localstatedir=$ac_optarg ;;
1017
1018  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019    ac_prev=mandir ;;
1020  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021    mandir=$ac_optarg ;;
1022
1023  -nfp | --nfp | --nf)
1024    # Obsolete; use --without-fp.
1025    with_fp=no ;;
1026
1027  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028  | --no-cr | --no-c | -n)
1029    no_create=yes ;;
1030
1031  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033    no_recursion=yes ;;
1034
1035  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037  | --oldin | --oldi | --old | --ol | --o)
1038    ac_prev=oldincludedir ;;
1039  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042    oldincludedir=$ac_optarg ;;
1043
1044  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045    ac_prev=prefix ;;
1046  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047    prefix=$ac_optarg ;;
1048
1049  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050  | --program-pre | --program-pr | --program-p)
1051    ac_prev=program_prefix ;;
1052  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054    program_prefix=$ac_optarg ;;
1055
1056  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057  | --program-suf | --program-su | --program-s)
1058    ac_prev=program_suffix ;;
1059  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061    program_suffix=$ac_optarg ;;
1062
1063  -program-transform-name | --program-transform-name \
1064  | --program-transform-nam | --program-transform-na \
1065  | --program-transform-n | --program-transform- \
1066  | --program-transform | --program-transfor \
1067  | --program-transfo | --program-transf \
1068  | --program-trans | --program-tran \
1069  | --progr-tra | --program-tr | --program-t)
1070    ac_prev=program_transform_name ;;
1071  -program-transform-name=* | --program-transform-name=* \
1072  | --program-transform-nam=* | --program-transform-na=* \
1073  | --program-transform-n=* | --program-transform-=* \
1074  | --program-transform=* | --program-transfor=* \
1075  | --program-transfo=* | --program-transf=* \
1076  | --program-trans=* | --program-tran=* \
1077  | --progr-tra=* | --program-tr=* | --program-t=*)
1078    program_transform_name=$ac_optarg ;;
1079
1080  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081    ac_prev=pdfdir ;;
1082  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083    pdfdir=$ac_optarg ;;
1084
1085  -psdir | --psdir | --psdi | --psd | --ps)
1086    ac_prev=psdir ;;
1087  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088    psdir=$ac_optarg ;;
1089
1090  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091  | -silent | --silent | --silen | --sile | --sil)
1092    silent=yes ;;
1093
1094  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095    ac_prev=sbindir ;;
1096  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097  | --sbi=* | --sb=*)
1098    sbindir=$ac_optarg ;;
1099
1100  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102  | --sharedst | --shareds | --shared | --share | --shar \
1103  | --sha | --sh)
1104    ac_prev=sharedstatedir ;;
1105  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108  | --sha=* | --sh=*)
1109    sharedstatedir=$ac_optarg ;;
1110
1111  -site | --site | --sit)
1112    ac_prev=site ;;
1113  -site=* | --site=* | --sit=*)
1114    site=$ac_optarg ;;
1115
1116  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117    ac_prev=srcdir ;;
1118  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119    srcdir=$ac_optarg ;;
1120
1121  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122  | --syscon | --sysco | --sysc | --sys | --sy)
1123    ac_prev=sysconfdir ;;
1124  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126    sysconfdir=$ac_optarg ;;
1127
1128  -target | --target | --targe | --targ | --tar | --ta | --t)
1129    ac_prev=target_alias ;;
1130  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131    target_alias=$ac_optarg ;;
1132
1133  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134    verbose=yes ;;
1135
1136  -version | --version | --versio | --versi | --vers | -V)
1137    ac_init_version=: ;;
1138
1139  -with-* | --with-*)
1140    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141    # Reject names that are not valid shell variable names.
1142    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143      as_fn_error $? "invalid package name: $ac_useropt"
1144    ac_useropt_orig=$ac_useropt
1145    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146    case $ac_user_opts in
1147      *"
1148"with_$ac_useropt"
1149"*) ;;
1150      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1151	 ac_unrecognized_sep=', ';;
1152    esac
1153    eval with_$ac_useropt=\$ac_optarg ;;
1154
1155  -without-* | --without-*)
1156    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157    # Reject names that are not valid shell variable names.
1158    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159      as_fn_error $? "invalid package name: $ac_useropt"
1160    ac_useropt_orig=$ac_useropt
1161    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162    case $ac_user_opts in
1163      *"
1164"with_$ac_useropt"
1165"*) ;;
1166      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1167	 ac_unrecognized_sep=', ';;
1168    esac
1169    eval with_$ac_useropt=no ;;
1170
1171  --x)
1172    # Obsolete; use --with-x.
1173    with_x=yes ;;
1174
1175  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1176  | --x-incl | --x-inc | --x-in | --x-i)
1177    ac_prev=x_includes ;;
1178  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1179  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1180    x_includes=$ac_optarg ;;
1181
1182  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1183  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1184    ac_prev=x_libraries ;;
1185  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1186  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1187    x_libraries=$ac_optarg ;;
1188
1189  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1190Try \`$0 --help' for more information"
1191    ;;
1192
1193  *=*)
1194    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195    # Reject names that are not valid shell variable names.
1196    case $ac_envvar in #(
1197      '' | [0-9]* | *[!_$as_cr_alnum]* )
1198      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1199    esac
1200    eval $ac_envvar=\$ac_optarg
1201    export $ac_envvar ;;
1202
1203  *)
1204    # FIXME: should be removed in autoconf 3.0.
1205    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1206    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1208    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1209    ;;
1210
1211  esac
1212done
1213
1214if test -n "$ac_prev"; then
1215  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1216  as_fn_error $? "missing argument to $ac_option"
1217fi
1218
1219if test -n "$ac_unrecognized_opts"; then
1220  case $enable_option_checking in
1221    no) ;;
1222    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1223    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1224  esac
1225fi
1226
1227# Check all directory arguments for consistency.
1228for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1229		datadir sysconfdir sharedstatedir localstatedir includedir \
1230		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1231		libdir localedir mandir
1232do
1233  eval ac_val=\$$ac_var
1234  # Remove trailing slashes.
1235  case $ac_val in
1236    */ )
1237      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1238      eval $ac_var=\$ac_val;;
1239  esac
1240  # Be sure to have absolute directory names.
1241  case $ac_val in
1242    [\\/$]* | ?:[\\/]* )  continue;;
1243    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1244  esac
1245  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1246done
1247
1248# There might be people who depend on the old broken behavior: `$host'
1249# used to hold the argument of --host etc.
1250# FIXME: To remove some day.
1251build=$build_alias
1252host=$host_alias
1253target=$target_alias
1254
1255# FIXME: To remove some day.
1256if test "x$host_alias" != x; then
1257  if test "x$build_alias" = x; then
1258    cross_compiling=maybe
1259    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1260    If a cross compiler is detected then cross compile mode will be used" >&2
1261  elif test "x$build_alias" != "x$host_alias"; then
1262    cross_compiling=yes
1263  fi
1264fi
1265
1266ac_tool_prefix=
1267test -n "$host_alias" && ac_tool_prefix=$host_alias-
1268
1269test "$silent" = yes && exec 6>/dev/null
1270
1271
1272ac_pwd=`pwd` && test -n "$ac_pwd" &&
1273ac_ls_di=`ls -di .` &&
1274ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1275  as_fn_error $? "working directory cannot be determined"
1276test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1277  as_fn_error $? "pwd does not report name of working directory"
1278
1279
1280# Find the source files, if location was not specified.
1281if test -z "$srcdir"; then
1282  ac_srcdir_defaulted=yes
1283  # Try the directory containing this script, then the parent directory.
1284  ac_confdir=`$as_dirname -- "$as_myself" ||
1285$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1286	 X"$as_myself" : 'X\(//\)[^/]' \| \
1287	 X"$as_myself" : 'X\(//\)$' \| \
1288	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1289$as_echo X"$as_myself" |
1290    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1291	    s//\1/
1292	    q
1293	  }
1294	  /^X\(\/\/\)[^/].*/{
1295	    s//\1/
1296	    q
1297	  }
1298	  /^X\(\/\/\)$/{
1299	    s//\1/
1300	    q
1301	  }
1302	  /^X\(\/\).*/{
1303	    s//\1/
1304	    q
1305	  }
1306	  s/.*/./; q'`
1307  srcdir=$ac_confdir
1308  if test ! -r "$srcdir/$ac_unique_file"; then
1309    srcdir=..
1310  fi
1311else
1312  ac_srcdir_defaulted=no
1313fi
1314if test ! -r "$srcdir/$ac_unique_file"; then
1315  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1316  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1317fi
1318ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1319ac_abs_confdir=`(
1320	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1321	pwd)`
1322# When building in place, set srcdir=.
1323if test "$ac_abs_confdir" = "$ac_pwd"; then
1324  srcdir=.
1325fi
1326# Remove unnecessary trailing slashes from srcdir.
1327# Double slashes in file names in object file debugging info
1328# mess up M-x gdb in Emacs.
1329case $srcdir in
1330*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1331esac
1332for ac_var in $ac_precious_vars; do
1333  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1334  eval ac_env_${ac_var}_value=\$${ac_var}
1335  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1336  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1337done
1338
1339#
1340# Report the --help message.
1341#
1342if test "$ac_init_help" = "long"; then
1343  # Omit some internal or obsolete options to make the list less imposing.
1344  # This message is too long to be a string in the A/UX 3.1 sh.
1345  cat <<_ACEOF
1346\`configure' configures xf86-video-vesa 2.3.2 to adapt to many kinds of systems.
1347
1348Usage: $0 [OPTION]... [VAR=VALUE]...
1349
1350To assign environment variables (e.g., CC, CFLAGS...), specify them as
1351VAR=VALUE.  See below for descriptions of some of the useful variables.
1352
1353Defaults for the options are specified in brackets.
1354
1355Configuration:
1356  -h, --help              display this help and exit
1357      --help=short        display options specific to this package
1358      --help=recursive    display the short help of all the included packages
1359  -V, --version           display version information and exit
1360  -q, --quiet, --silent   do not print \`checking ...' messages
1361      --cache-file=FILE   cache test results in FILE [disabled]
1362  -C, --config-cache      alias for \`--cache-file=config.cache'
1363  -n, --no-create         do not create output files
1364      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1365
1366Installation directories:
1367  --prefix=PREFIX         install architecture-independent files in PREFIX
1368                          [$ac_default_prefix]
1369  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1370                          [PREFIX]
1371
1372By default, \`make install' will install all the files in
1373\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1374an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1375for instance \`--prefix=\$HOME'.
1376
1377For better control, use the options below.
1378
1379Fine tuning of the installation directories:
1380  --bindir=DIR            user executables [EPREFIX/bin]
1381  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1382  --libexecdir=DIR        program executables [EPREFIX/libexec]
1383  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1384  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1385  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1386  --libdir=DIR            object code libraries [EPREFIX/lib]
1387  --includedir=DIR        C header files [PREFIX/include]
1388  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1389  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1390  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1391  --infodir=DIR           info documentation [DATAROOTDIR/info]
1392  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1393  --mandir=DIR            man documentation [DATAROOTDIR/man]
1394  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-vesa]
1395  --htmldir=DIR           html documentation [DOCDIR]
1396  --dvidir=DIR            dvi documentation [DOCDIR]
1397  --pdfdir=DIR            pdf documentation [DOCDIR]
1398  --psdir=DIR             ps documentation [DOCDIR]
1399_ACEOF
1400
1401  cat <<\_ACEOF
1402
1403Program names:
1404  --program-prefix=PREFIX            prepend PREFIX to installed program names
1405  --program-suffix=SUFFIX            append SUFFIX to installed program names
1406  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1407
1408System types:
1409  --build=BUILD     configure for building on BUILD [guessed]
1410  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1411_ACEOF
1412fi
1413
1414if test -n "$ac_init_help"; then
1415  case $ac_init_help in
1416     short | recursive ) echo "Configuration of xf86-video-vesa 2.3.2:";;
1417   esac
1418  cat <<\_ACEOF
1419
1420Optional Features:
1421  --disable-option-checking  ignore unrecognized --enable/--with options
1422  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1423  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1424  --enable-maintainer-mode  enable make rules and dependencies not useful
1425			  (and sometimes confusing) to the casual installer
1426  --disable-dependency-tracking  speeds up one-time build
1427  --enable-dependency-tracking   do not reject slow dependency extractors
1428  --disable-selective-werror
1429                          Turn off selective compiler errors. (default:
1430                          enabled)
1431  --enable-strict-compilation
1432                          Enable all warnings from compiler and make them
1433                          errors (default: disabled)
1434  --enable-silent-rules          less verbose build output (undo: `make V=1')
1435  --disable-silent-rules         verbose build output (undo: `make V=0')
1436  --enable-static[=PKGS]  build static libraries [default=no]
1437  --enable-shared[=PKGS]  build shared libraries [default=yes]
1438  --enable-fast-install[=PKGS]
1439                          optimize for fast installation [default=yes]
1440  --disable-libtool-lock  avoid locking (might break parallel builds)
1441
1442Optional Packages:
1443  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1444  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1445  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1446                          both]
1447  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1448  --with-sysroot=DIR Search for dependent libraries within DIR
1449                        (or the compiler's sysroot if not specified).
1450  --with-xorg-module-dir=DIR
1451
1452Some influential environment variables:
1453  CC          C compiler command
1454  CFLAGS      C compiler flags
1455  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1456              nonstandard directory <lib dir>
1457  LIBS        libraries to pass to the linker, e.g. -l<library>
1458  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1459              you have headers in a nonstandard directory <include dir>
1460  CPP         C preprocessor
1461  PKG_CONFIG  path to pkg-config utility
1462  PKG_CONFIG_PATH
1463              directories to add to pkg-config's search path
1464  PKG_CONFIG_LIBDIR
1465              path overriding pkg-config's built-in search path
1466  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1467  XORG_LIBS   linker flags for XORG, overriding pkg-config
1468  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1469  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1470  PCIACCESS_CFLAGS
1471              C compiler flags for PCIACCESS, overriding pkg-config
1472  PCIACCESS_LIBS
1473              linker flags for PCIACCESS, overriding pkg-config
1474
1475Use these variables to override the choices made by `configure' or to help
1476it to find libraries and programs with nonstandard names/locations.
1477
1478Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1479_ACEOF
1480ac_status=$?
1481fi
1482
1483if test "$ac_init_help" = "recursive"; then
1484  # If there are subdirs, report their specific --help.
1485  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1486    test -d "$ac_dir" ||
1487      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1488      continue
1489    ac_builddir=.
1490
1491case "$ac_dir" in
1492.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493*)
1494  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1495  # A ".." for each directory in $ac_dir_suffix.
1496  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1497  case $ac_top_builddir_sub in
1498  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1500  esac ;;
1501esac
1502ac_abs_top_builddir=$ac_pwd
1503ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504# for backward compatibility:
1505ac_top_builddir=$ac_top_build_prefix
1506
1507case $srcdir in
1508  .)  # We are building in place.
1509    ac_srcdir=.
1510    ac_top_srcdir=$ac_top_builddir_sub
1511    ac_abs_top_srcdir=$ac_pwd ;;
1512  [\\/]* | ?:[\\/]* )  # Absolute name.
1513    ac_srcdir=$srcdir$ac_dir_suffix;
1514    ac_top_srcdir=$srcdir
1515    ac_abs_top_srcdir=$srcdir ;;
1516  *) # Relative name.
1517    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518    ac_top_srcdir=$ac_top_build_prefix$srcdir
1519    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1520esac
1521ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1522
1523    cd "$ac_dir" || { ac_status=$?; continue; }
1524    # Check for guested configure.
1525    if test -f "$ac_srcdir/configure.gnu"; then
1526      echo &&
1527      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528    elif test -f "$ac_srcdir/configure"; then
1529      echo &&
1530      $SHELL "$ac_srcdir/configure" --help=recursive
1531    else
1532      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1533    fi || ac_status=$?
1534    cd "$ac_pwd" || { ac_status=$?; break; }
1535  done
1536fi
1537
1538test -n "$ac_init_help" && exit $ac_status
1539if $ac_init_version; then
1540  cat <<\_ACEOF
1541xf86-video-vesa configure 2.3.2
1542generated by GNU Autoconf 2.68
1543
1544Copyright (C) 2010 Free Software Foundation, Inc.
1545This configure script is free software; the Free Software Foundation
1546gives unlimited permission to copy, distribute and modify it.
1547_ACEOF
1548  exit
1549fi
1550
1551## ------------------------ ##
1552## Autoconf initialization. ##
1553## ------------------------ ##
1554
1555# ac_fn_c_try_compile LINENO
1556# --------------------------
1557# Try to compile conftest.$ac_ext, and return whether this succeeded.
1558ac_fn_c_try_compile ()
1559{
1560  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561  rm -f conftest.$ac_objext
1562  if { { ac_try="$ac_compile"
1563case "(($ac_try" in
1564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565  *) ac_try_echo=$ac_try;;
1566esac
1567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568$as_echo "$ac_try_echo"; } >&5
1569  (eval "$ac_compile") 2>conftest.err
1570  ac_status=$?
1571  if test -s conftest.err; then
1572    grep -v '^ *+' conftest.err >conftest.er1
1573    cat conftest.er1 >&5
1574    mv -f conftest.er1 conftest.err
1575  fi
1576  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577  test $ac_status = 0; } && {
1578	 test -z "$ac_c_werror_flag" ||
1579	 test ! -s conftest.err
1580       } && test -s conftest.$ac_objext; then :
1581  ac_retval=0
1582else
1583  $as_echo "$as_me: failed program was:" >&5
1584sed 's/^/| /' conftest.$ac_ext >&5
1585
1586	ac_retval=1
1587fi
1588  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589  as_fn_set_status $ac_retval
1590
1591} # ac_fn_c_try_compile
1592
1593# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1594# ---------------------------------------------
1595# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1596# accordingly.
1597ac_fn_c_check_decl ()
1598{
1599  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600  as_decl_name=`echo $2|sed 's/ *(.*//'`
1601  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1602  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1603$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1604if eval \${$3+:} false; then :
1605  $as_echo_n "(cached) " >&6
1606else
1607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1608/* end confdefs.h.  */
1609$4
1610int
1611main ()
1612{
1613#ifndef $as_decl_name
1614#ifdef __cplusplus
1615  (void) $as_decl_use;
1616#else
1617  (void) $as_decl_name;
1618#endif
1619#endif
1620
1621  ;
1622  return 0;
1623}
1624_ACEOF
1625if ac_fn_c_try_compile "$LINENO"; then :
1626  eval "$3=yes"
1627else
1628  eval "$3=no"
1629fi
1630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1631fi
1632eval ac_res=\$$3
1633	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1634$as_echo "$ac_res" >&6; }
1635  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636
1637} # ac_fn_c_check_decl
1638
1639# ac_fn_c_try_cpp LINENO
1640# ----------------------
1641# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1642ac_fn_c_try_cpp ()
1643{
1644  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645  if { { ac_try="$ac_cpp conftest.$ac_ext"
1646case "(($ac_try" in
1647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648  *) ac_try_echo=$ac_try;;
1649esac
1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651$as_echo "$ac_try_echo"; } >&5
1652  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1653  ac_status=$?
1654  if test -s conftest.err; then
1655    grep -v '^ *+' conftest.err >conftest.er1
1656    cat conftest.er1 >&5
1657    mv -f conftest.er1 conftest.err
1658  fi
1659  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660  test $ac_status = 0; } > conftest.i && {
1661	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1662	 test ! -s conftest.err
1663       }; then :
1664  ac_retval=0
1665else
1666  $as_echo "$as_me: failed program was:" >&5
1667sed 's/^/| /' conftest.$ac_ext >&5
1668
1669    ac_retval=1
1670fi
1671  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672  as_fn_set_status $ac_retval
1673
1674} # ac_fn_c_try_cpp
1675
1676# ac_fn_c_try_run LINENO
1677# ----------------------
1678# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1679# that executables *can* be run.
1680ac_fn_c_try_run ()
1681{
1682  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683  if { { ac_try="$ac_link"
1684case "(($ac_try" in
1685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686  *) ac_try_echo=$ac_try;;
1687esac
1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689$as_echo "$ac_try_echo"; } >&5
1690  (eval "$ac_link") 2>&5
1691  ac_status=$?
1692  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1694  { { case "(($ac_try" in
1695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696  *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699$as_echo "$ac_try_echo"; } >&5
1700  (eval "$ac_try") 2>&5
1701  ac_status=$?
1702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703  test $ac_status = 0; }; }; then :
1704  ac_retval=0
1705else
1706  $as_echo "$as_me: program exited with status $ac_status" >&5
1707       $as_echo "$as_me: failed program was:" >&5
1708sed 's/^/| /' conftest.$ac_ext >&5
1709
1710       ac_retval=$ac_status
1711fi
1712  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714  as_fn_set_status $ac_retval
1715
1716} # ac_fn_c_try_run
1717
1718# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1719# -------------------------------------------------------
1720# Tests whether HEADER exists and can be compiled using the include files in
1721# INCLUDES, setting the cache variable VAR accordingly.
1722ac_fn_c_check_header_compile ()
1723{
1724  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726$as_echo_n "checking for $2... " >&6; }
1727if eval \${$3+:} false; then :
1728  $as_echo_n "(cached) " >&6
1729else
1730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731/* end confdefs.h.  */
1732$4
1733#include <$2>
1734_ACEOF
1735if ac_fn_c_try_compile "$LINENO"; then :
1736  eval "$3=yes"
1737else
1738  eval "$3=no"
1739fi
1740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1741fi
1742eval ac_res=\$$3
1743	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1744$as_echo "$ac_res" >&6; }
1745  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746
1747} # ac_fn_c_check_header_compile
1748
1749# ac_fn_c_try_link LINENO
1750# -----------------------
1751# Try to link conftest.$ac_ext, and return whether this succeeded.
1752ac_fn_c_try_link ()
1753{
1754  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755  rm -f conftest.$ac_objext conftest$ac_exeext
1756  if { { ac_try="$ac_link"
1757case "(($ac_try" in
1758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759  *) ac_try_echo=$ac_try;;
1760esac
1761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762$as_echo "$ac_try_echo"; } >&5
1763  (eval "$ac_link") 2>conftest.err
1764  ac_status=$?
1765  if test -s conftest.err; then
1766    grep -v '^ *+' conftest.err >conftest.er1
1767    cat conftest.er1 >&5
1768    mv -f conftest.er1 conftest.err
1769  fi
1770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771  test $ac_status = 0; } && {
1772	 test -z "$ac_c_werror_flag" ||
1773	 test ! -s conftest.err
1774       } && test -s conftest$ac_exeext && {
1775	 test "$cross_compiling" = yes ||
1776	 $as_test_x conftest$ac_exeext
1777       }; then :
1778  ac_retval=0
1779else
1780  $as_echo "$as_me: failed program was:" >&5
1781sed 's/^/| /' conftest.$ac_ext >&5
1782
1783	ac_retval=1
1784fi
1785  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1786  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1787  # interfere with the next link command; also delete a directory that is
1788  # left behind by Apple's compiler.  We do this before executing the actions.
1789  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1790  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791  as_fn_set_status $ac_retval
1792
1793} # ac_fn_c_try_link
1794
1795# ac_fn_c_check_func LINENO FUNC VAR
1796# ----------------------------------
1797# Tests whether FUNC exists, setting the cache variable VAR accordingly
1798ac_fn_c_check_func ()
1799{
1800  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802$as_echo_n "checking for $2... " >&6; }
1803if eval \${$3+:} false; then :
1804  $as_echo_n "(cached) " >&6
1805else
1806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807/* end confdefs.h.  */
1808/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1809   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1810#define $2 innocuous_$2
1811
1812/* System header to define __stub macros and hopefully few prototypes,
1813    which can conflict with char $2 (); below.
1814    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1815    <limits.h> exists even on freestanding compilers.  */
1816
1817#ifdef __STDC__
1818# include <limits.h>
1819#else
1820# include <assert.h>
1821#endif
1822
1823#undef $2
1824
1825/* Override any GCC internal prototype to avoid an error.
1826   Use char because int might match the return type of a GCC
1827   builtin and then its argument prototype would still apply.  */
1828#ifdef __cplusplus
1829extern "C"
1830#endif
1831char $2 ();
1832/* The GNU C library defines this for functions which it implements
1833    to always fail with ENOSYS.  Some functions are actually named
1834    something starting with __ and the normal name is an alias.  */
1835#if defined __stub_$2 || defined __stub___$2
1836choke me
1837#endif
1838
1839int
1840main ()
1841{
1842return $2 ();
1843  ;
1844  return 0;
1845}
1846_ACEOF
1847if ac_fn_c_try_link "$LINENO"; then :
1848  eval "$3=yes"
1849else
1850  eval "$3=no"
1851fi
1852rm -f core conftest.err conftest.$ac_objext \
1853    conftest$ac_exeext conftest.$ac_ext
1854fi
1855eval ac_res=\$$3
1856	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857$as_echo "$ac_res" >&6; }
1858  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859
1860} # ac_fn_c_check_func
1861cat >config.log <<_ACEOF
1862This file contains any messages produced by compilers while
1863running configure, to aid debugging if configure makes a mistake.
1864
1865It was created by xf86-video-vesa $as_me 2.3.2, which was
1866generated by GNU Autoconf 2.68.  Invocation command line was
1867
1868  $ $0 $@
1869
1870_ACEOF
1871exec 5>>config.log
1872{
1873cat <<_ASUNAME
1874## --------- ##
1875## Platform. ##
1876## --------- ##
1877
1878hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1879uname -m = `(uname -m) 2>/dev/null || echo unknown`
1880uname -r = `(uname -r) 2>/dev/null || echo unknown`
1881uname -s = `(uname -s) 2>/dev/null || echo unknown`
1882uname -v = `(uname -v) 2>/dev/null || echo unknown`
1883
1884/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1885/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1886
1887/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1888/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1889/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1890/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1891/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1892/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1893/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1894
1895_ASUNAME
1896
1897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898for as_dir in $PATH
1899do
1900  IFS=$as_save_IFS
1901  test -z "$as_dir" && as_dir=.
1902    $as_echo "PATH: $as_dir"
1903  done
1904IFS=$as_save_IFS
1905
1906} >&5
1907
1908cat >&5 <<_ACEOF
1909
1910
1911## ----------- ##
1912## Core tests. ##
1913## ----------- ##
1914
1915_ACEOF
1916
1917
1918# Keep a trace of the command line.
1919# Strip out --no-create and --no-recursion so they do not pile up.
1920# Strip out --silent because we don't want to record it for future runs.
1921# Also quote any args containing shell meta-characters.
1922# Make two passes to allow for proper duplicate-argument suppression.
1923ac_configure_args=
1924ac_configure_args0=
1925ac_configure_args1=
1926ac_must_keep_next=false
1927for ac_pass in 1 2
1928do
1929  for ac_arg
1930  do
1931    case $ac_arg in
1932    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1933    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1934    | -silent | --silent | --silen | --sile | --sil)
1935      continue ;;
1936    *\'*)
1937      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1938    esac
1939    case $ac_pass in
1940    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1941    2)
1942      as_fn_append ac_configure_args1 " '$ac_arg'"
1943      if test $ac_must_keep_next = true; then
1944	ac_must_keep_next=false # Got value, back to normal.
1945      else
1946	case $ac_arg in
1947	  *=* | --config-cache | -C | -disable-* | --disable-* \
1948	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1949	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1950	  | -with-* | --with-* | -without-* | --without-* | --x)
1951	    case "$ac_configure_args0 " in
1952	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1953	    esac
1954	    ;;
1955	  -* ) ac_must_keep_next=true ;;
1956	esac
1957      fi
1958      as_fn_append ac_configure_args " '$ac_arg'"
1959      ;;
1960    esac
1961  done
1962done
1963{ ac_configure_args0=; unset ac_configure_args0;}
1964{ ac_configure_args1=; unset ac_configure_args1;}
1965
1966# When interrupted or exit'd, cleanup temporary files, and complete
1967# config.log.  We remove comments because anyway the quotes in there
1968# would cause problems or look ugly.
1969# WARNING: Use '\'' to represent an apostrophe within the trap.
1970# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1971trap 'exit_status=$?
1972  # Save into config.log some information that might help in debugging.
1973  {
1974    echo
1975
1976    $as_echo "## ---------------- ##
1977## Cache variables. ##
1978## ---------------- ##"
1979    echo
1980    # The following way of writing the cache mishandles newlines in values,
1981(
1982  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1983    eval ac_val=\$$ac_var
1984    case $ac_val in #(
1985    *${as_nl}*)
1986      case $ac_var in #(
1987      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1988$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1989      esac
1990      case $ac_var in #(
1991      _ | IFS | as_nl) ;; #(
1992      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1993      *) { eval $ac_var=; unset $ac_var;} ;;
1994      esac ;;
1995    esac
1996  done
1997  (set) 2>&1 |
1998    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1999    *${as_nl}ac_space=\ *)
2000      sed -n \
2001	"s/'\''/'\''\\\\'\'''\''/g;
2002	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2003      ;; #(
2004    *)
2005      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2006      ;;
2007    esac |
2008    sort
2009)
2010    echo
2011
2012    $as_echo "## ----------------- ##
2013## Output variables. ##
2014## ----------------- ##"
2015    echo
2016    for ac_var in $ac_subst_vars
2017    do
2018      eval ac_val=\$$ac_var
2019      case $ac_val in
2020      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2021      esac
2022      $as_echo "$ac_var='\''$ac_val'\''"
2023    done | sort
2024    echo
2025
2026    if test -n "$ac_subst_files"; then
2027      $as_echo "## ------------------- ##
2028## File substitutions. ##
2029## ------------------- ##"
2030      echo
2031      for ac_var in $ac_subst_files
2032      do
2033	eval ac_val=\$$ac_var
2034	case $ac_val in
2035	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2036	esac
2037	$as_echo "$ac_var='\''$ac_val'\''"
2038      done | sort
2039      echo
2040    fi
2041
2042    if test -s confdefs.h; then
2043      $as_echo "## ----------- ##
2044## confdefs.h. ##
2045## ----------- ##"
2046      echo
2047      cat confdefs.h
2048      echo
2049    fi
2050    test "$ac_signal" != 0 &&
2051      $as_echo "$as_me: caught signal $ac_signal"
2052    $as_echo "$as_me: exit $exit_status"
2053  } >&5
2054  rm -f core *.core core.conftest.* &&
2055    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2056    exit $exit_status
2057' 0
2058for ac_signal in 1 2 13 15; do
2059  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2060done
2061ac_signal=0
2062
2063# confdefs.h avoids OS command line length limits that DEFS can exceed.
2064rm -f -r conftest* confdefs.h
2065
2066$as_echo "/* confdefs.h */" > confdefs.h
2067
2068# Predefined preprocessor variables.
2069
2070cat >>confdefs.h <<_ACEOF
2071#define PACKAGE_NAME "$PACKAGE_NAME"
2072_ACEOF
2073
2074cat >>confdefs.h <<_ACEOF
2075#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2076_ACEOF
2077
2078cat >>confdefs.h <<_ACEOF
2079#define PACKAGE_VERSION "$PACKAGE_VERSION"
2080_ACEOF
2081
2082cat >>confdefs.h <<_ACEOF
2083#define PACKAGE_STRING "$PACKAGE_STRING"
2084_ACEOF
2085
2086cat >>confdefs.h <<_ACEOF
2087#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2088_ACEOF
2089
2090cat >>confdefs.h <<_ACEOF
2091#define PACKAGE_URL "$PACKAGE_URL"
2092_ACEOF
2093
2094
2095# Let the site file select an alternate cache file if it wants to.
2096# Prefer an explicitly selected file to automatically selected ones.
2097ac_site_file1=NONE
2098ac_site_file2=NONE
2099if test -n "$CONFIG_SITE"; then
2100  # We do not want a PATH search for config.site.
2101  case $CONFIG_SITE in #((
2102    -*)  ac_site_file1=./$CONFIG_SITE;;
2103    */*) ac_site_file1=$CONFIG_SITE;;
2104    *)   ac_site_file1=./$CONFIG_SITE;;
2105  esac
2106elif test "x$prefix" != xNONE; then
2107  ac_site_file1=$prefix/share/config.site
2108  ac_site_file2=$prefix/etc/config.site
2109else
2110  ac_site_file1=$ac_default_prefix/share/config.site
2111  ac_site_file2=$ac_default_prefix/etc/config.site
2112fi
2113for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2114do
2115  test "x$ac_site_file" = xNONE && continue
2116  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2117    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2118$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2119    sed 's/^/| /' "$ac_site_file" >&5
2120    . "$ac_site_file" \
2121      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2122$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2123as_fn_error $? "failed to load site script $ac_site_file
2124See \`config.log' for more details" "$LINENO" 5; }
2125  fi
2126done
2127
2128if test -r "$cache_file"; then
2129  # Some versions of bash will fail to source /dev/null (special files
2130  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2131  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2132    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2133$as_echo "$as_me: loading cache $cache_file" >&6;}
2134    case $cache_file in
2135      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2136      *)                      . "./$cache_file";;
2137    esac
2138  fi
2139else
2140  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2141$as_echo "$as_me: creating cache $cache_file" >&6;}
2142  >$cache_file
2143fi
2144
2145# Check that the precious variables saved in the cache have kept the same
2146# value.
2147ac_cache_corrupted=false
2148for ac_var in $ac_precious_vars; do
2149  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2150  eval ac_new_set=\$ac_env_${ac_var}_set
2151  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2152  eval ac_new_val=\$ac_env_${ac_var}_value
2153  case $ac_old_set,$ac_new_set in
2154    set,)
2155      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2156$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2157      ac_cache_corrupted=: ;;
2158    ,set)
2159      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2160$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2161      ac_cache_corrupted=: ;;
2162    ,);;
2163    *)
2164      if test "x$ac_old_val" != "x$ac_new_val"; then
2165	# differences in whitespace do not lead to failure.
2166	ac_old_val_w=`echo x $ac_old_val`
2167	ac_new_val_w=`echo x $ac_new_val`
2168	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2169	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2170$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2171	  ac_cache_corrupted=:
2172	else
2173	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2174$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2175	  eval $ac_var=\$ac_old_val
2176	fi
2177	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2178$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2179	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2180$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2181      fi;;
2182  esac
2183  # Pass precious variables to config.status.
2184  if test "$ac_new_set" = set; then
2185    case $ac_new_val in
2186    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2187    *) ac_arg=$ac_var=$ac_new_val ;;
2188    esac
2189    case " $ac_configure_args " in
2190      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2191      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2192    esac
2193  fi
2194done
2195if $ac_cache_corrupted; then
2196  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2197$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2198  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2199$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2200  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2201fi
2202## -------------------- ##
2203## Main body of script. ##
2204## -------------------- ##
2205
2206ac_ext=c
2207ac_cpp='$CPP $CPPFLAGS'
2208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2210ac_compiler_gnu=$ac_cv_c_compiler_gnu
2211
2212
2213
2214ac_config_headers="$ac_config_headers config.h"
2215
2216ac_aux_dir=
2217for ac_dir in . "$srcdir"/.; do
2218  if test -f "$ac_dir/install-sh"; then
2219    ac_aux_dir=$ac_dir
2220    ac_install_sh="$ac_aux_dir/install-sh -c"
2221    break
2222  elif test -f "$ac_dir/install.sh"; then
2223    ac_aux_dir=$ac_dir
2224    ac_install_sh="$ac_aux_dir/install.sh -c"
2225    break
2226  elif test -f "$ac_dir/shtool"; then
2227    ac_aux_dir=$ac_dir
2228    ac_install_sh="$ac_aux_dir/shtool install -c"
2229    break
2230  fi
2231done
2232if test -z "$ac_aux_dir"; then
2233  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2234fi
2235
2236# These three variables are undocumented and unsupported,
2237# and are intended to be withdrawn in a future Autoconf release.
2238# They can cause serious problems if a builder's source tree is in a directory
2239# whose full name contains unusual characters.
2240ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2241ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2242ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2243
2244
2245
2246# Initialize Automake
2247am__api_version='1.11'
2248
2249# Find a good install program.  We prefer a C program (faster),
2250# so one script is as good as another.  But avoid the broken or
2251# incompatible versions:
2252# SysV /etc/install, /usr/sbin/install
2253# SunOS /usr/etc/install
2254# IRIX /sbin/install
2255# AIX /bin/install
2256# AmigaOS /C/install, which installs bootblocks on floppy discs
2257# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2258# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2259# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2260# OS/2's system install, which has a completely different semantic
2261# ./install, which can be erroneously created by make from ./install.sh.
2262# Reject install programs that cannot install multiple files.
2263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2264$as_echo_n "checking for a BSD-compatible install... " >&6; }
2265if test -z "$INSTALL"; then
2266if ${ac_cv_path_install+:} false; then :
2267  $as_echo_n "(cached) " >&6
2268else
2269  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270for as_dir in $PATH
2271do
2272  IFS=$as_save_IFS
2273  test -z "$as_dir" && as_dir=.
2274    # Account for people who put trailing slashes in PATH elements.
2275case $as_dir/ in #((
2276  ./ | .// | /[cC]/* | \
2277  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2278  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2279  /usr/ucb/* ) ;;
2280  *)
2281    # OSF1 and SCO ODT 3.0 have their own names for install.
2282    # Don't use installbsd from OSF since it installs stuff as root
2283    # by default.
2284    for ac_prog in ginstall scoinst install; do
2285      for ac_exec_ext in '' $ac_executable_extensions; do
2286	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2287	  if test $ac_prog = install &&
2288	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2289	    # AIX install.  It has an incompatible calling convention.
2290	    :
2291	  elif test $ac_prog = install &&
2292	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2293	    # program-specific install script used by HP pwplus--don't use.
2294	    :
2295	  else
2296	    rm -rf conftest.one conftest.two conftest.dir
2297	    echo one > conftest.one
2298	    echo two > conftest.two
2299	    mkdir conftest.dir
2300	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2301	      test -s conftest.one && test -s conftest.two &&
2302	      test -s conftest.dir/conftest.one &&
2303	      test -s conftest.dir/conftest.two
2304	    then
2305	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2306	      break 3
2307	    fi
2308	  fi
2309	fi
2310      done
2311    done
2312    ;;
2313esac
2314
2315  done
2316IFS=$as_save_IFS
2317
2318rm -rf conftest.one conftest.two conftest.dir
2319
2320fi
2321  if test "${ac_cv_path_install+set}" = set; then
2322    INSTALL=$ac_cv_path_install
2323  else
2324    # As a last resort, use the slow shell script.  Don't cache a
2325    # value for INSTALL within a source directory, because that will
2326    # break other packages using the cache if that directory is
2327    # removed, or if the value is a relative name.
2328    INSTALL=$ac_install_sh
2329  fi
2330fi
2331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2332$as_echo "$INSTALL" >&6; }
2333
2334# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2335# It thinks the first close brace ends the variable substitution.
2336test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2337
2338test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2339
2340test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2341
2342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2343$as_echo_n "checking whether build environment is sane... " >&6; }
2344# Just in case
2345sleep 1
2346echo timestamp > conftest.file
2347# Reject unsafe characters in $srcdir or the absolute working directory
2348# name.  Accept space and tab only in the latter.
2349am_lf='
2350'
2351case `pwd` in
2352  *[\\\"\#\$\&\'\`$am_lf]*)
2353    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2354esac
2355case $srcdir in
2356  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2357    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2358esac
2359
2360# Do `set' in a subshell so we don't clobber the current shell's
2361# arguments.  Must try -L first in case configure is actually a
2362# symlink; some systems play weird games with the mod time of symlinks
2363# (eg FreeBSD returns the mod time of the symlink's containing
2364# directory).
2365if (
2366   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2367   if test "$*" = "X"; then
2368      # -L didn't work.
2369      set X `ls -t "$srcdir/configure" conftest.file`
2370   fi
2371   rm -f conftest.file
2372   if test "$*" != "X $srcdir/configure conftest.file" \
2373      && test "$*" != "X conftest.file $srcdir/configure"; then
2374
2375      # If neither matched, then we have a broken ls.  This can happen
2376      # if, for instance, CONFIG_SHELL is bash and it inherits a
2377      # broken ls alias from the environment.  This has actually
2378      # happened.  Such a system could not be considered "sane".
2379      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2380alias in your environment" "$LINENO" 5
2381   fi
2382
2383   test "$2" = conftest.file
2384   )
2385then
2386   # Ok.
2387   :
2388else
2389   as_fn_error $? "newly created file is older than distributed files!
2390Check your system clock" "$LINENO" 5
2391fi
2392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2393$as_echo "yes" >&6; }
2394test "$program_prefix" != NONE &&
2395  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2396# Use a double $ so make ignores it.
2397test "$program_suffix" != NONE &&
2398  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2399# Double any \ or $.
2400# By default was `s,x,x', remove it if useless.
2401ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2402program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2403
2404# expand $ac_aux_dir to an absolute path
2405am_aux_dir=`cd $ac_aux_dir && pwd`
2406
2407if test x"${MISSING+set}" != xset; then
2408  case $am_aux_dir in
2409  *\ * | *\	*)
2410    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2411  *)
2412    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2413  esac
2414fi
2415# Use eval to expand $SHELL
2416if eval "$MISSING --run true"; then
2417  am_missing_run="$MISSING --run "
2418else
2419  am_missing_run=
2420  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2421$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2422fi
2423
2424if test x"${install_sh}" != xset; then
2425  case $am_aux_dir in
2426  *\ * | *\	*)
2427    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2428  *)
2429    install_sh="\${SHELL} $am_aux_dir/install-sh"
2430  esac
2431fi
2432
2433# Installed binaries are usually stripped using `strip' when the user
2434# run `make install-strip'.  However `strip' might not be the right
2435# tool to use in cross-compilation environments, therefore Automake
2436# will honor the `STRIP' environment variable to overrule this program.
2437if test "$cross_compiling" != no; then
2438  if test -n "$ac_tool_prefix"; then
2439  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2440set dummy ${ac_tool_prefix}strip; ac_word=$2
2441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2442$as_echo_n "checking for $ac_word... " >&6; }
2443if ${ac_cv_prog_STRIP+:} false; then :
2444  $as_echo_n "(cached) " >&6
2445else
2446  if test -n "$STRIP"; then
2447  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2448else
2449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450for as_dir in $PATH
2451do
2452  IFS=$as_save_IFS
2453  test -z "$as_dir" && as_dir=.
2454    for ac_exec_ext in '' $ac_executable_extensions; do
2455  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2456    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2457    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2458    break 2
2459  fi
2460done
2461  done
2462IFS=$as_save_IFS
2463
2464fi
2465fi
2466STRIP=$ac_cv_prog_STRIP
2467if test -n "$STRIP"; then
2468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2469$as_echo "$STRIP" >&6; }
2470else
2471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2472$as_echo "no" >&6; }
2473fi
2474
2475
2476fi
2477if test -z "$ac_cv_prog_STRIP"; then
2478  ac_ct_STRIP=$STRIP
2479  # Extract the first word of "strip", so it can be a program name with args.
2480set dummy strip; ac_word=$2
2481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2482$as_echo_n "checking for $ac_word... " >&6; }
2483if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2484  $as_echo_n "(cached) " >&6
2485else
2486  if test -n "$ac_ct_STRIP"; then
2487  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2488else
2489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490for as_dir in $PATH
2491do
2492  IFS=$as_save_IFS
2493  test -z "$as_dir" && as_dir=.
2494    for ac_exec_ext in '' $ac_executable_extensions; do
2495  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2496    ac_cv_prog_ac_ct_STRIP="strip"
2497    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2498    break 2
2499  fi
2500done
2501  done
2502IFS=$as_save_IFS
2503
2504fi
2505fi
2506ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2507if test -n "$ac_ct_STRIP"; then
2508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2509$as_echo "$ac_ct_STRIP" >&6; }
2510else
2511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2512$as_echo "no" >&6; }
2513fi
2514
2515  if test "x$ac_ct_STRIP" = x; then
2516    STRIP=":"
2517  else
2518    case $cross_compiling:$ac_tool_warned in
2519yes:)
2520{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2522ac_tool_warned=yes ;;
2523esac
2524    STRIP=$ac_ct_STRIP
2525  fi
2526else
2527  STRIP="$ac_cv_prog_STRIP"
2528fi
2529
2530fi
2531INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2532
2533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2534$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2535if test -z "$MKDIR_P"; then
2536  if ${ac_cv_path_mkdir+:} false; then :
2537  $as_echo_n "(cached) " >&6
2538else
2539  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2541do
2542  IFS=$as_save_IFS
2543  test -z "$as_dir" && as_dir=.
2544    for ac_prog in mkdir gmkdir; do
2545	 for ac_exec_ext in '' $ac_executable_extensions; do
2546	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2547	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2548	     'mkdir (GNU coreutils) '* | \
2549	     'mkdir (coreutils) '* | \
2550	     'mkdir (fileutils) '4.1*)
2551	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2552	       break 3;;
2553	   esac
2554	 done
2555       done
2556  done
2557IFS=$as_save_IFS
2558
2559fi
2560
2561  test -d ./--version && rmdir ./--version
2562  if test "${ac_cv_path_mkdir+set}" = set; then
2563    MKDIR_P="$ac_cv_path_mkdir -p"
2564  else
2565    # As a last resort, use the slow shell script.  Don't cache a
2566    # value for MKDIR_P within a source directory, because that will
2567    # break other packages using the cache if that directory is
2568    # removed, or if the value is a relative name.
2569    MKDIR_P="$ac_install_sh -d"
2570  fi
2571fi
2572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2573$as_echo "$MKDIR_P" >&6; }
2574
2575mkdir_p="$MKDIR_P"
2576case $mkdir_p in
2577  [\\/$]* | ?:[\\/]*) ;;
2578  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2579esac
2580
2581for ac_prog in gawk mawk nawk awk
2582do
2583  # Extract the first word of "$ac_prog", so it can be a program name with args.
2584set dummy $ac_prog; ac_word=$2
2585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2586$as_echo_n "checking for $ac_word... " >&6; }
2587if ${ac_cv_prog_AWK+:} false; then :
2588  $as_echo_n "(cached) " >&6
2589else
2590  if test -n "$AWK"; then
2591  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2592else
2593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594for as_dir in $PATH
2595do
2596  IFS=$as_save_IFS
2597  test -z "$as_dir" && as_dir=.
2598    for ac_exec_ext in '' $ac_executable_extensions; do
2599  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2600    ac_cv_prog_AWK="$ac_prog"
2601    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2602    break 2
2603  fi
2604done
2605  done
2606IFS=$as_save_IFS
2607
2608fi
2609fi
2610AWK=$ac_cv_prog_AWK
2611if test -n "$AWK"; then
2612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2613$as_echo "$AWK" >&6; }
2614else
2615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2616$as_echo "no" >&6; }
2617fi
2618
2619
2620  test -n "$AWK" && break
2621done
2622
2623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2624$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2625set x ${MAKE-make}
2626ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2627if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2628  $as_echo_n "(cached) " >&6
2629else
2630  cat >conftest.make <<\_ACEOF
2631SHELL = /bin/sh
2632all:
2633	@echo '@@@%%%=$(MAKE)=@@@%%%'
2634_ACEOF
2635# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2636case `${MAKE-make} -f conftest.make 2>/dev/null` in
2637  *@@@%%%=?*=@@@%%%*)
2638    eval ac_cv_prog_make_${ac_make}_set=yes;;
2639  *)
2640    eval ac_cv_prog_make_${ac_make}_set=no;;
2641esac
2642rm -f conftest.make
2643fi
2644if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2646$as_echo "yes" >&6; }
2647  SET_MAKE=
2648else
2649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650$as_echo "no" >&6; }
2651  SET_MAKE="MAKE=${MAKE-make}"
2652fi
2653
2654rm -rf .tst 2>/dev/null
2655mkdir .tst 2>/dev/null
2656if test -d .tst; then
2657  am__leading_dot=.
2658else
2659  am__leading_dot=_
2660fi
2661rmdir .tst 2>/dev/null
2662
2663if test "`cd $srcdir && pwd`" != "`pwd`"; then
2664  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2665  # is not polluted with repeated "-I."
2666  am__isrc=' -I$(srcdir)'
2667  # test to see if srcdir already configured
2668  if test -f $srcdir/config.status; then
2669    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2670  fi
2671fi
2672
2673# test whether we have cygpath
2674if test -z "$CYGPATH_W"; then
2675  if (cygpath --version) >/dev/null 2>/dev/null; then
2676    CYGPATH_W='cygpath -w'
2677  else
2678    CYGPATH_W=echo
2679  fi
2680fi
2681
2682
2683# Define the identity of the package.
2684 PACKAGE='xf86-video-vesa'
2685 VERSION='2.3.2'
2686
2687
2688cat >>confdefs.h <<_ACEOF
2689#define PACKAGE "$PACKAGE"
2690_ACEOF
2691
2692
2693cat >>confdefs.h <<_ACEOF
2694#define VERSION "$VERSION"
2695_ACEOF
2696
2697# Some tools Automake needs.
2698
2699ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2700
2701
2702AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2703
2704
2705AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2706
2707
2708AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2709
2710
2711MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2712
2713# We need awk for the "check" target.  The system "awk" is bad on
2714# some platforms.
2715# Always define AMTAR for backward compatibility.  Yes, it's still used
2716# in the wild :-(  We should find a proper way to deprecate it ...
2717AMTAR='$${TAR-tar}'
2718
2719am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2720
2721
2722
2723
2724
2725
2726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2727$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2728    # Check whether --enable-maintainer-mode was given.
2729if test "${enable_maintainer_mode+set}" = set; then :
2730  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2731else
2732  USE_MAINTAINER_MODE=no
2733fi
2734
2735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2736$as_echo "$USE_MAINTAINER_MODE" >&6; }
2737   if test $USE_MAINTAINER_MODE = yes; then
2738  MAINTAINER_MODE_TRUE=
2739  MAINTAINER_MODE_FALSE='#'
2740else
2741  MAINTAINER_MODE_TRUE='#'
2742  MAINTAINER_MODE_FALSE=
2743fi
2744
2745  MAINT=$MAINTAINER_MODE_TRUE
2746
2747
2748
2749# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761DEPDIR="${am__leading_dot}deps"
2762
2763ac_config_commands="$ac_config_commands depfiles"
2764
2765
2766am_make=${MAKE-make}
2767cat > confinc << 'END'
2768am__doit:
2769	@echo this is the am__doit target
2770.PHONY: am__doit
2771END
2772# If we don't find an include directive, just comment out the code.
2773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2774$as_echo_n "checking for style of include used by $am_make... " >&6; }
2775am__include="#"
2776am__quote=
2777_am_result=none
2778# First try GNU make style include.
2779echo "include confinc" > confmf
2780# Ignore all kinds of additional output from `make'.
2781case `$am_make -s -f confmf 2> /dev/null` in #(
2782*the\ am__doit\ target*)
2783  am__include=include
2784  am__quote=
2785  _am_result=GNU
2786  ;;
2787esac
2788# Now try BSD make style include.
2789if test "$am__include" = "#"; then
2790   echo '.include "confinc"' > confmf
2791   case `$am_make -s -f confmf 2> /dev/null` in #(
2792   *the\ am__doit\ target*)
2793     am__include=.include
2794     am__quote="\""
2795     _am_result=BSD
2796     ;;
2797   esac
2798fi
2799
2800
2801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2802$as_echo "$_am_result" >&6; }
2803rm -f confinc confmf
2804
2805# Check whether --enable-dependency-tracking was given.
2806if test "${enable_dependency_tracking+set}" = set; then :
2807  enableval=$enable_dependency_tracking;
2808fi
2809
2810if test "x$enable_dependency_tracking" != xno; then
2811  am_depcomp="$ac_aux_dir/depcomp"
2812  AMDEPBACKSLASH='\'
2813  am__nodep='_no'
2814fi
2815 if test "x$enable_dependency_tracking" != xno; then
2816  AMDEP_TRUE=
2817  AMDEP_FALSE='#'
2818else
2819  AMDEP_TRUE='#'
2820  AMDEP_FALSE=
2821fi
2822
2823
2824ac_ext=c
2825ac_cpp='$CPP $CPPFLAGS'
2826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2828ac_compiler_gnu=$ac_cv_c_compiler_gnu
2829if test -n "$ac_tool_prefix"; then
2830  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2831set dummy ${ac_tool_prefix}gcc; ac_word=$2
2832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833$as_echo_n "checking for $ac_word... " >&6; }
2834if ${ac_cv_prog_CC+:} false; then :
2835  $as_echo_n "(cached) " >&6
2836else
2837  if test -n "$CC"; then
2838  ac_cv_prog_CC="$CC" # Let the user override the test.
2839else
2840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841for as_dir in $PATH
2842do
2843  IFS=$as_save_IFS
2844  test -z "$as_dir" && as_dir=.
2845    for ac_exec_ext in '' $ac_executable_extensions; do
2846  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2847    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2848    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849    break 2
2850  fi
2851done
2852  done
2853IFS=$as_save_IFS
2854
2855fi
2856fi
2857CC=$ac_cv_prog_CC
2858if test -n "$CC"; then
2859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2860$as_echo "$CC" >&6; }
2861else
2862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863$as_echo "no" >&6; }
2864fi
2865
2866
2867fi
2868if test -z "$ac_cv_prog_CC"; then
2869  ac_ct_CC=$CC
2870  # Extract the first word of "gcc", so it can be a program name with args.
2871set dummy gcc; ac_word=$2
2872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873$as_echo_n "checking for $ac_word... " >&6; }
2874if ${ac_cv_prog_ac_ct_CC+:} false; then :
2875  $as_echo_n "(cached) " >&6
2876else
2877  if test -n "$ac_ct_CC"; then
2878  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2879else
2880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881for as_dir in $PATH
2882do
2883  IFS=$as_save_IFS
2884  test -z "$as_dir" && as_dir=.
2885    for ac_exec_ext in '' $ac_executable_extensions; do
2886  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2887    ac_cv_prog_ac_ct_CC="gcc"
2888    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2889    break 2
2890  fi
2891done
2892  done
2893IFS=$as_save_IFS
2894
2895fi
2896fi
2897ac_ct_CC=$ac_cv_prog_ac_ct_CC
2898if test -n "$ac_ct_CC"; then
2899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2900$as_echo "$ac_ct_CC" >&6; }
2901else
2902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903$as_echo "no" >&6; }
2904fi
2905
2906  if test "x$ac_ct_CC" = x; then
2907    CC=""
2908  else
2909    case $cross_compiling:$ac_tool_warned in
2910yes:)
2911{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2912$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2913ac_tool_warned=yes ;;
2914esac
2915    CC=$ac_ct_CC
2916  fi
2917else
2918  CC="$ac_cv_prog_CC"
2919fi
2920
2921if test -z "$CC"; then
2922          if test -n "$ac_tool_prefix"; then
2923    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2924set dummy ${ac_tool_prefix}cc; ac_word=$2
2925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926$as_echo_n "checking for $ac_word... " >&6; }
2927if ${ac_cv_prog_CC+:} false; then :
2928  $as_echo_n "(cached) " >&6
2929else
2930  if test -n "$CC"; then
2931  ac_cv_prog_CC="$CC" # Let the user override the test.
2932else
2933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934for as_dir in $PATH
2935do
2936  IFS=$as_save_IFS
2937  test -z "$as_dir" && as_dir=.
2938    for ac_exec_ext in '' $ac_executable_extensions; do
2939  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2940    ac_cv_prog_CC="${ac_tool_prefix}cc"
2941    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2942    break 2
2943  fi
2944done
2945  done
2946IFS=$as_save_IFS
2947
2948fi
2949fi
2950CC=$ac_cv_prog_CC
2951if test -n "$CC"; then
2952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2953$as_echo "$CC" >&6; }
2954else
2955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956$as_echo "no" >&6; }
2957fi
2958
2959
2960  fi
2961fi
2962if test -z "$CC"; then
2963  # Extract the first word of "cc", so it can be a program name with args.
2964set dummy cc; ac_word=$2
2965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966$as_echo_n "checking for $ac_word... " >&6; }
2967if ${ac_cv_prog_CC+:} false; then :
2968  $as_echo_n "(cached) " >&6
2969else
2970  if test -n "$CC"; then
2971  ac_cv_prog_CC="$CC" # Let the user override the test.
2972else
2973  ac_prog_rejected=no
2974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975for as_dir in $PATH
2976do
2977  IFS=$as_save_IFS
2978  test -z "$as_dir" && as_dir=.
2979    for ac_exec_ext in '' $ac_executable_extensions; do
2980  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2981    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2982       ac_prog_rejected=yes
2983       continue
2984     fi
2985    ac_cv_prog_CC="cc"
2986    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987    break 2
2988  fi
2989done
2990  done
2991IFS=$as_save_IFS
2992
2993if test $ac_prog_rejected = yes; then
2994  # We found a bogon in the path, so make sure we never use it.
2995  set dummy $ac_cv_prog_CC
2996  shift
2997  if test $# != 0; then
2998    # We chose a different compiler from the bogus one.
2999    # However, it has the same basename, so the bogon will be chosen
3000    # first if we set CC to just the basename; use the full file name.
3001    shift
3002    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3003  fi
3004fi
3005fi
3006fi
3007CC=$ac_cv_prog_CC
3008if test -n "$CC"; then
3009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3010$as_echo "$CC" >&6; }
3011else
3012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013$as_echo "no" >&6; }
3014fi
3015
3016
3017fi
3018if test -z "$CC"; then
3019  if test -n "$ac_tool_prefix"; then
3020  for ac_prog in cl.exe
3021  do
3022    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3023set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025$as_echo_n "checking for $ac_word... " >&6; }
3026if ${ac_cv_prog_CC+:} false; then :
3027  $as_echo_n "(cached) " >&6
3028else
3029  if test -n "$CC"; then
3030  ac_cv_prog_CC="$CC" # Let the user override the test.
3031else
3032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033for as_dir in $PATH
3034do
3035  IFS=$as_save_IFS
3036  test -z "$as_dir" && as_dir=.
3037    for ac_exec_ext in '' $ac_executable_extensions; do
3038  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3039    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3040    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3041    break 2
3042  fi
3043done
3044  done
3045IFS=$as_save_IFS
3046
3047fi
3048fi
3049CC=$ac_cv_prog_CC
3050if test -n "$CC"; then
3051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3052$as_echo "$CC" >&6; }
3053else
3054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055$as_echo "no" >&6; }
3056fi
3057
3058
3059    test -n "$CC" && break
3060  done
3061fi
3062if test -z "$CC"; then
3063  ac_ct_CC=$CC
3064  for ac_prog in cl.exe
3065do
3066  # Extract the first word of "$ac_prog", so it can be a program name with args.
3067set dummy $ac_prog; ac_word=$2
3068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3069$as_echo_n "checking for $ac_word... " >&6; }
3070if ${ac_cv_prog_ac_ct_CC+:} false; then :
3071  $as_echo_n "(cached) " >&6
3072else
3073  if test -n "$ac_ct_CC"; then
3074  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3075else
3076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077for as_dir in $PATH
3078do
3079  IFS=$as_save_IFS
3080  test -z "$as_dir" && as_dir=.
3081    for ac_exec_ext in '' $ac_executable_extensions; do
3082  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3083    ac_cv_prog_ac_ct_CC="$ac_prog"
3084    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3085    break 2
3086  fi
3087done
3088  done
3089IFS=$as_save_IFS
3090
3091fi
3092fi
3093ac_ct_CC=$ac_cv_prog_ac_ct_CC
3094if test -n "$ac_ct_CC"; then
3095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3096$as_echo "$ac_ct_CC" >&6; }
3097else
3098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099$as_echo "no" >&6; }
3100fi
3101
3102
3103  test -n "$ac_ct_CC" && break
3104done
3105
3106  if test "x$ac_ct_CC" = x; then
3107    CC=""
3108  else
3109    case $cross_compiling:$ac_tool_warned in
3110yes:)
3111{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3112$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3113ac_tool_warned=yes ;;
3114esac
3115    CC=$ac_ct_CC
3116  fi
3117fi
3118
3119fi
3120
3121
3122test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3123$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3124as_fn_error $? "no acceptable C compiler found in \$PATH
3125See \`config.log' for more details" "$LINENO" 5; }
3126
3127# Provide some information about the compiler.
3128$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3129set X $ac_compile
3130ac_compiler=$2
3131for ac_option in --version -v -V -qversion; do
3132  { { ac_try="$ac_compiler $ac_option >&5"
3133case "(($ac_try" in
3134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135  *) ac_try_echo=$ac_try;;
3136esac
3137eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3138$as_echo "$ac_try_echo"; } >&5
3139  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3140  ac_status=$?
3141  if test -s conftest.err; then
3142    sed '10a\
3143... rest of stderr output deleted ...
3144         10q' conftest.err >conftest.er1
3145    cat conftest.er1 >&5
3146  fi
3147  rm -f conftest.er1 conftest.err
3148  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3149  test $ac_status = 0; }
3150done
3151
3152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3153/* end confdefs.h.  */
3154
3155int
3156main ()
3157{
3158
3159  ;
3160  return 0;
3161}
3162_ACEOF
3163ac_clean_files_save=$ac_clean_files
3164ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3165# Try to create an executable without -o first, disregard a.out.
3166# It will help us diagnose broken compilers, and finding out an intuition
3167# of exeext.
3168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3169$as_echo_n "checking whether the C compiler works... " >&6; }
3170ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3171
3172# The possible output files:
3173ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3174
3175ac_rmfiles=
3176for ac_file in $ac_files
3177do
3178  case $ac_file in
3179    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3180    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3181  esac
3182done
3183rm -f $ac_rmfiles
3184
3185if { { ac_try="$ac_link_default"
3186case "(($ac_try" in
3187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188  *) ac_try_echo=$ac_try;;
3189esac
3190eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3191$as_echo "$ac_try_echo"; } >&5
3192  (eval "$ac_link_default") 2>&5
3193  ac_status=$?
3194  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3195  test $ac_status = 0; }; then :
3196  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3197# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3198# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3199# so that the user can short-circuit this test for compilers unknown to
3200# Autoconf.
3201for ac_file in $ac_files ''
3202do
3203  test -f "$ac_file" || continue
3204  case $ac_file in
3205    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3206	;;
3207    [ab].out )
3208	# We found the default executable, but exeext='' is most
3209	# certainly right.
3210	break;;
3211    *.* )
3212	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3213	then :; else
3214	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3215	fi
3216	# We set ac_cv_exeext here because the later test for it is not
3217	# safe: cross compilers may not add the suffix if given an `-o'
3218	# argument, so we may need to know it at that point already.
3219	# Even if this section looks crufty: it has the advantage of
3220	# actually working.
3221	break;;
3222    * )
3223	break;;
3224  esac
3225done
3226test "$ac_cv_exeext" = no && ac_cv_exeext=
3227
3228else
3229  ac_file=''
3230fi
3231if test -z "$ac_file"; then :
3232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233$as_echo "no" >&6; }
3234$as_echo "$as_me: failed program was:" >&5
3235sed 's/^/| /' conftest.$ac_ext >&5
3236
3237{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239as_fn_error 77 "C compiler cannot create executables
3240See \`config.log' for more details" "$LINENO" 5; }
3241else
3242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3243$as_echo "yes" >&6; }
3244fi
3245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3246$as_echo_n "checking for C compiler default output file name... " >&6; }
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3248$as_echo "$ac_file" >&6; }
3249ac_exeext=$ac_cv_exeext
3250
3251rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3252ac_clean_files=$ac_clean_files_save
3253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3254$as_echo_n "checking for suffix of executables... " >&6; }
3255if { { ac_try="$ac_link"
3256case "(($ac_try" in
3257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258  *) ac_try_echo=$ac_try;;
3259esac
3260eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3261$as_echo "$ac_try_echo"; } >&5
3262  (eval "$ac_link") 2>&5
3263  ac_status=$?
3264  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3265  test $ac_status = 0; }; then :
3266  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3267# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3268# work properly (i.e., refer to `conftest.exe'), while it won't with
3269# `rm'.
3270for ac_file in conftest.exe conftest conftest.*; do
3271  test -f "$ac_file" || continue
3272  case $ac_file in
3273    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3274    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3275	  break;;
3276    * ) break;;
3277  esac
3278done
3279else
3280  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3281$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3282as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3283See \`config.log' for more details" "$LINENO" 5; }
3284fi
3285rm -f conftest conftest$ac_cv_exeext
3286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3287$as_echo "$ac_cv_exeext" >&6; }
3288
3289rm -f conftest.$ac_ext
3290EXEEXT=$ac_cv_exeext
3291ac_exeext=$EXEEXT
3292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293/* end confdefs.h.  */
3294#include <stdio.h>
3295int
3296main ()
3297{
3298FILE *f = fopen ("conftest.out", "w");
3299 return ferror (f) || fclose (f) != 0;
3300
3301  ;
3302  return 0;
3303}
3304_ACEOF
3305ac_clean_files="$ac_clean_files conftest.out"
3306# Check that the compiler produces executables we can run.  If not, either
3307# the compiler is broken, or we cross compile.
3308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3309$as_echo_n "checking whether we are cross compiling... " >&6; }
3310if test "$cross_compiling" != yes; then
3311  { { ac_try="$ac_link"
3312case "(($ac_try" in
3313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314  *) ac_try_echo=$ac_try;;
3315esac
3316eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317$as_echo "$ac_try_echo"; } >&5
3318  (eval "$ac_link") 2>&5
3319  ac_status=$?
3320  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3321  test $ac_status = 0; }
3322  if { ac_try='./conftest$ac_cv_exeext'
3323  { { case "(($ac_try" in
3324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325  *) ac_try_echo=$ac_try;;
3326esac
3327eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328$as_echo "$ac_try_echo"; } >&5
3329  (eval "$ac_try") 2>&5
3330  ac_status=$?
3331  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332  test $ac_status = 0; }; }; then
3333    cross_compiling=no
3334  else
3335    if test "$cross_compiling" = maybe; then
3336	cross_compiling=yes
3337    else
3338	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3339$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3340as_fn_error $? "cannot run C compiled programs.
3341If you meant to cross compile, use \`--host'.
3342See \`config.log' for more details" "$LINENO" 5; }
3343    fi
3344  fi
3345fi
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3347$as_echo "$cross_compiling" >&6; }
3348
3349rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3350ac_clean_files=$ac_clean_files_save
3351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3352$as_echo_n "checking for suffix of object files... " >&6; }
3353if ${ac_cv_objext+:} false; then :
3354  $as_echo_n "(cached) " >&6
3355else
3356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357/* end confdefs.h.  */
3358
3359int
3360main ()
3361{
3362
3363  ;
3364  return 0;
3365}
3366_ACEOF
3367rm -f conftest.o conftest.obj
3368if { { ac_try="$ac_compile"
3369case "(($ac_try" in
3370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371  *) ac_try_echo=$ac_try;;
3372esac
3373eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374$as_echo "$ac_try_echo"; } >&5
3375  (eval "$ac_compile") 2>&5
3376  ac_status=$?
3377  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378  test $ac_status = 0; }; then :
3379  for ac_file in conftest.o conftest.obj conftest.*; do
3380  test -f "$ac_file" || continue;
3381  case $ac_file in
3382    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3383    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3384       break;;
3385  esac
3386done
3387else
3388  $as_echo "$as_me: failed program was:" >&5
3389sed 's/^/| /' conftest.$ac_ext >&5
3390
3391{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393as_fn_error $? "cannot compute suffix of object files: cannot compile
3394See \`config.log' for more details" "$LINENO" 5; }
3395fi
3396rm -f conftest.$ac_cv_objext conftest.$ac_ext
3397fi
3398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3399$as_echo "$ac_cv_objext" >&6; }
3400OBJEXT=$ac_cv_objext
3401ac_objext=$OBJEXT
3402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3403$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3404if ${ac_cv_c_compiler_gnu+:} false; then :
3405  $as_echo_n "(cached) " >&6
3406else
3407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408/* end confdefs.h.  */
3409
3410int
3411main ()
3412{
3413#ifndef __GNUC__
3414       choke me
3415#endif
3416
3417  ;
3418  return 0;
3419}
3420_ACEOF
3421if ac_fn_c_try_compile "$LINENO"; then :
3422  ac_compiler_gnu=yes
3423else
3424  ac_compiler_gnu=no
3425fi
3426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3427ac_cv_c_compiler_gnu=$ac_compiler_gnu
3428
3429fi
3430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3431$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3432if test $ac_compiler_gnu = yes; then
3433  GCC=yes
3434else
3435  GCC=
3436fi
3437ac_test_CFLAGS=${CFLAGS+set}
3438ac_save_CFLAGS=$CFLAGS
3439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3440$as_echo_n "checking whether $CC accepts -g... " >&6; }
3441if ${ac_cv_prog_cc_g+:} false; then :
3442  $as_echo_n "(cached) " >&6
3443else
3444  ac_save_c_werror_flag=$ac_c_werror_flag
3445   ac_c_werror_flag=yes
3446   ac_cv_prog_cc_g=no
3447   CFLAGS="-g"
3448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449/* end confdefs.h.  */
3450
3451int
3452main ()
3453{
3454
3455  ;
3456  return 0;
3457}
3458_ACEOF
3459if ac_fn_c_try_compile "$LINENO"; then :
3460  ac_cv_prog_cc_g=yes
3461else
3462  CFLAGS=""
3463      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464/* end confdefs.h.  */
3465
3466int
3467main ()
3468{
3469
3470  ;
3471  return 0;
3472}
3473_ACEOF
3474if ac_fn_c_try_compile "$LINENO"; then :
3475
3476else
3477  ac_c_werror_flag=$ac_save_c_werror_flag
3478	 CFLAGS="-g"
3479	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480/* end confdefs.h.  */
3481
3482int
3483main ()
3484{
3485
3486  ;
3487  return 0;
3488}
3489_ACEOF
3490if ac_fn_c_try_compile "$LINENO"; then :
3491  ac_cv_prog_cc_g=yes
3492fi
3493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3494fi
3495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496fi
3497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498   ac_c_werror_flag=$ac_save_c_werror_flag
3499fi
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3501$as_echo "$ac_cv_prog_cc_g" >&6; }
3502if test "$ac_test_CFLAGS" = set; then
3503  CFLAGS=$ac_save_CFLAGS
3504elif test $ac_cv_prog_cc_g = yes; then
3505  if test "$GCC" = yes; then
3506    CFLAGS="-g -O2"
3507  else
3508    CFLAGS="-g"
3509  fi
3510else
3511  if test "$GCC" = yes; then
3512    CFLAGS="-O2"
3513  else
3514    CFLAGS=
3515  fi
3516fi
3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3518$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3519if ${ac_cv_prog_cc_c89+:} false; then :
3520  $as_echo_n "(cached) " >&6
3521else
3522  ac_cv_prog_cc_c89=no
3523ac_save_CC=$CC
3524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525/* end confdefs.h.  */
3526#include <stdarg.h>
3527#include <stdio.h>
3528#include <sys/types.h>
3529#include <sys/stat.h>
3530/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3531struct buf { int x; };
3532FILE * (*rcsopen) (struct buf *, struct stat *, int);
3533static char *e (p, i)
3534     char **p;
3535     int i;
3536{
3537  return p[i];
3538}
3539static char *f (char * (*g) (char **, int), char **p, ...)
3540{
3541  char *s;
3542  va_list v;
3543  va_start (v,p);
3544  s = g (p, va_arg (v,int));
3545  va_end (v);
3546  return s;
3547}
3548
3549/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3550   function prototypes and stuff, but not '\xHH' hex character constants.
3551   These don't provoke an error unfortunately, instead are silently treated
3552   as 'x'.  The following induces an error, until -std is added to get
3553   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3554   array size at least.  It's necessary to write '\x00'==0 to get something
3555   that's true only with -std.  */
3556int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3557
3558/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3559   inside strings and character constants.  */
3560#define FOO(x) 'x'
3561int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3562
3563int test (int i, double x);
3564struct s1 {int (*f) (int a);};
3565struct s2 {int (*f) (double a);};
3566int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3567int argc;
3568char **argv;
3569int
3570main ()
3571{
3572return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3573  ;
3574  return 0;
3575}
3576_ACEOF
3577for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3578	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3579do
3580  CC="$ac_save_CC $ac_arg"
3581  if ac_fn_c_try_compile "$LINENO"; then :
3582  ac_cv_prog_cc_c89=$ac_arg
3583fi
3584rm -f core conftest.err conftest.$ac_objext
3585  test "x$ac_cv_prog_cc_c89" != "xno" && break
3586done
3587rm -f conftest.$ac_ext
3588CC=$ac_save_CC
3589
3590fi
3591# AC_CACHE_VAL
3592case "x$ac_cv_prog_cc_c89" in
3593  x)
3594    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3595$as_echo "none needed" >&6; } ;;
3596  xno)
3597    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3598$as_echo "unsupported" >&6; } ;;
3599  *)
3600    CC="$CC $ac_cv_prog_cc_c89"
3601    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3602$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3603esac
3604if test "x$ac_cv_prog_cc_c89" != xno; then :
3605
3606fi
3607
3608ac_ext=c
3609ac_cpp='$CPP $CPPFLAGS'
3610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612ac_compiler_gnu=$ac_cv_c_compiler_gnu
3613
3614depcc="$CC"   am_compiler_list=
3615
3616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3617$as_echo_n "checking dependency style of $depcc... " >&6; }
3618if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3619  $as_echo_n "(cached) " >&6
3620else
3621  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3622  # We make a subdir and do the tests there.  Otherwise we can end up
3623  # making bogus files that we don't know about and never remove.  For
3624  # instance it was reported that on HP-UX the gcc test will end up
3625  # making a dummy file named `D' -- because `-MD' means `put the output
3626  # in D'.
3627  rm -rf conftest.dir
3628  mkdir conftest.dir
3629  # Copy depcomp to subdir because otherwise we won't find it if we're
3630  # using a relative directory.
3631  cp "$am_depcomp" conftest.dir
3632  cd conftest.dir
3633  # We will build objects and dependencies in a subdirectory because
3634  # it helps to detect inapplicable dependency modes.  For instance
3635  # both Tru64's cc and ICC support -MD to output dependencies as a
3636  # side effect of compilation, but ICC will put the dependencies in
3637  # the current directory while Tru64 will put them in the object
3638  # directory.
3639  mkdir sub
3640
3641  am_cv_CC_dependencies_compiler_type=none
3642  if test "$am_compiler_list" = ""; then
3643     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3644  fi
3645  am__universal=false
3646  case " $depcc " in #(
3647     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3648     esac
3649
3650  for depmode in $am_compiler_list; do
3651    # Setup a source with many dependencies, because some compilers
3652    # like to wrap large dependency lists on column 80 (with \), and
3653    # we should not choose a depcomp mode which is confused by this.
3654    #
3655    # We need to recreate these files for each test, as the compiler may
3656    # overwrite some of them when testing with obscure command lines.
3657    # This happens at least with the AIX C compiler.
3658    : > sub/conftest.c
3659    for i in 1 2 3 4 5 6; do
3660      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3661      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3662      # Solaris 8's {/usr,}/bin/sh.
3663      touch sub/conftst$i.h
3664    done
3665    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3666
3667    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3668    # mode.  It turns out that the SunPro C++ compiler does not properly
3669    # handle `-M -o', and we need to detect this.  Also, some Intel
3670    # versions had trouble with output in subdirs
3671    am__obj=sub/conftest.${OBJEXT-o}
3672    am__minus_obj="-o $am__obj"
3673    case $depmode in
3674    gcc)
3675      # This depmode causes a compiler race in universal mode.
3676      test "$am__universal" = false || continue
3677      ;;
3678    nosideeffect)
3679      # after this tag, mechanisms are not by side-effect, so they'll
3680      # only be used when explicitly requested
3681      if test "x$enable_dependency_tracking" = xyes; then
3682	continue
3683      else
3684	break
3685      fi
3686      ;;
3687    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3688      # This compiler won't grok `-c -o', but also, the minuso test has
3689      # not run yet.  These depmodes are late enough in the game, and
3690      # so weak that their functioning should not be impacted.
3691      am__obj=conftest.${OBJEXT-o}
3692      am__minus_obj=
3693      ;;
3694    none) break ;;
3695    esac
3696    if depmode=$depmode \
3697       source=sub/conftest.c object=$am__obj \
3698       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3699       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3700         >/dev/null 2>conftest.err &&
3701       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3702       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3703       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3704       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3705      # icc doesn't choke on unknown options, it will just issue warnings
3706      # or remarks (even with -Werror).  So we grep stderr for any message
3707      # that says an option was ignored or not supported.
3708      # When given -MP, icc 7.0 and 7.1 complain thusly:
3709      #   icc: Command line warning: ignoring option '-M'; no argument required
3710      # The diagnosis changed in icc 8.0:
3711      #   icc: Command line remark: option '-MP' not supported
3712      if (grep 'ignoring option' conftest.err ||
3713          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3714        am_cv_CC_dependencies_compiler_type=$depmode
3715        break
3716      fi
3717    fi
3718  done
3719
3720  cd ..
3721  rm -rf conftest.dir
3722else
3723  am_cv_CC_dependencies_compiler_type=none
3724fi
3725
3726fi
3727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3728$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3729CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3730
3731 if
3732  test "x$enable_dependency_tracking" != xno \
3733  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3734  am__fastdepCC_TRUE=
3735  am__fastdepCC_FALSE='#'
3736else
3737  am__fastdepCC_TRUE='#'
3738  am__fastdepCC_FALSE=
3739fi
3740
3741
3742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3743$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3744if ${ac_cv_prog_cc_c99+:} false; then :
3745  $as_echo_n "(cached) " >&6
3746else
3747  ac_cv_prog_cc_c99=no
3748ac_save_CC=$CC
3749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750/* end confdefs.h.  */
3751#include <stdarg.h>
3752#include <stdbool.h>
3753#include <stdlib.h>
3754#include <wchar.h>
3755#include <stdio.h>
3756
3757// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3758#define debug(...) fprintf (stderr, __VA_ARGS__)
3759#define showlist(...) puts (#__VA_ARGS__)
3760#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3761static void
3762test_varargs_macros (void)
3763{
3764  int x = 1234;
3765  int y = 5678;
3766  debug ("Flag");
3767  debug ("X = %d\n", x);
3768  showlist (The first, second, and third items.);
3769  report (x>y, "x is %d but y is %d", x, y);
3770}
3771
3772// Check long long types.
3773#define BIG64 18446744073709551615ull
3774#define BIG32 4294967295ul
3775#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3776#if !BIG_OK
3777  your preprocessor is broken;
3778#endif
3779#if BIG_OK
3780#else
3781  your preprocessor is broken;
3782#endif
3783static long long int bignum = -9223372036854775807LL;
3784static unsigned long long int ubignum = BIG64;
3785
3786struct incomplete_array
3787{
3788  int datasize;
3789  double data[];
3790};
3791
3792struct named_init {
3793  int number;
3794  const wchar_t *name;
3795  double average;
3796};
3797
3798typedef const char *ccp;
3799
3800static inline int
3801test_restrict (ccp restrict text)
3802{
3803  // See if C++-style comments work.
3804  // Iterate through items via the restricted pointer.
3805  // Also check for declarations in for loops.
3806  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3807    continue;
3808  return 0;
3809}
3810
3811// Check varargs and va_copy.
3812static void
3813test_varargs (const char *format, ...)
3814{
3815  va_list args;
3816  va_start (args, format);
3817  va_list args_copy;
3818  va_copy (args_copy, args);
3819
3820  const char *str;
3821  int number;
3822  float fnumber;
3823
3824  while (*format)
3825    {
3826      switch (*format++)
3827	{
3828	case 's': // string
3829	  str = va_arg (args_copy, const char *);
3830	  break;
3831	case 'd': // int
3832	  number = va_arg (args_copy, int);
3833	  break;
3834	case 'f': // float
3835	  fnumber = va_arg (args_copy, double);
3836	  break;
3837	default:
3838	  break;
3839	}
3840    }
3841  va_end (args_copy);
3842  va_end (args);
3843}
3844
3845int
3846main ()
3847{
3848
3849  // Check bool.
3850  _Bool success = false;
3851
3852  // Check restrict.
3853  if (test_restrict ("String literal") == 0)
3854    success = true;
3855  char *restrict newvar = "Another string";
3856
3857  // Check varargs.
3858  test_varargs ("s, d' f .", "string", 65, 34.234);
3859  test_varargs_macros ();
3860
3861  // Check flexible array members.
3862  struct incomplete_array *ia =
3863    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3864  ia->datasize = 10;
3865  for (int i = 0; i < ia->datasize; ++i)
3866    ia->data[i] = i * 1.234;
3867
3868  // Check named initializers.
3869  struct named_init ni = {
3870    .number = 34,
3871    .name = L"Test wide string",
3872    .average = 543.34343,
3873  };
3874
3875  ni.number = 58;
3876
3877  int dynamic_array[ni.number];
3878  dynamic_array[ni.number - 1] = 543;
3879
3880  // work around unused variable warnings
3881  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3882	  || dynamic_array[ni.number - 1] != 543);
3883
3884  ;
3885  return 0;
3886}
3887_ACEOF
3888for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3889do
3890  CC="$ac_save_CC $ac_arg"
3891  if ac_fn_c_try_compile "$LINENO"; then :
3892  ac_cv_prog_cc_c99=$ac_arg
3893fi
3894rm -f core conftest.err conftest.$ac_objext
3895  test "x$ac_cv_prog_cc_c99" != "xno" && break
3896done
3897rm -f conftest.$ac_ext
3898CC=$ac_save_CC
3899
3900fi
3901# AC_CACHE_VAL
3902case "x$ac_cv_prog_cc_c99" in
3903  x)
3904    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3905$as_echo "none needed" >&6; } ;;
3906  xno)
3907    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3908$as_echo "unsupported" >&6; } ;;
3909  *)
3910    CC="$CC $ac_cv_prog_cc_c99"
3911    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3912$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3913esac
3914if test "x$ac_cv_prog_cc_c99" != xno; then :
3915
3916fi
3917
3918
3919
3920ac_ext=c
3921ac_cpp='$CPP $CPPFLAGS'
3922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3924ac_compiler_gnu=$ac_cv_c_compiler_gnu
3925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3926$as_echo_n "checking how to run the C preprocessor... " >&6; }
3927# On Suns, sometimes $CPP names a directory.
3928if test -n "$CPP" && test -d "$CPP"; then
3929  CPP=
3930fi
3931if test -z "$CPP"; then
3932  if ${ac_cv_prog_CPP+:} false; then :
3933  $as_echo_n "(cached) " >&6
3934else
3935      # Double quotes because CPP needs to be expanded
3936    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3937    do
3938      ac_preproc_ok=false
3939for ac_c_preproc_warn_flag in '' yes
3940do
3941  # Use a header file that comes with gcc, so configuring glibc
3942  # with a fresh cross-compiler works.
3943  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3944  # <limits.h> exists even on freestanding compilers.
3945  # On the NeXT, cc -E runs the code through the compiler's parser,
3946  # not just through cpp. "Syntax error" is here to catch this case.
3947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948/* end confdefs.h.  */
3949#ifdef __STDC__
3950# include <limits.h>
3951#else
3952# include <assert.h>
3953#endif
3954		     Syntax error
3955_ACEOF
3956if ac_fn_c_try_cpp "$LINENO"; then :
3957
3958else
3959  # Broken: fails on valid input.
3960continue
3961fi
3962rm -f conftest.err conftest.i conftest.$ac_ext
3963
3964  # OK, works on sane cases.  Now check whether nonexistent headers
3965  # can be detected and how.
3966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967/* end confdefs.h.  */
3968#include <ac_nonexistent.h>
3969_ACEOF
3970if ac_fn_c_try_cpp "$LINENO"; then :
3971  # Broken: success on invalid input.
3972continue
3973else
3974  # Passes both tests.
3975ac_preproc_ok=:
3976break
3977fi
3978rm -f conftest.err conftest.i conftest.$ac_ext
3979
3980done
3981# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3982rm -f conftest.i conftest.err conftest.$ac_ext
3983if $ac_preproc_ok; then :
3984  break
3985fi
3986
3987    done
3988    ac_cv_prog_CPP=$CPP
3989
3990fi
3991  CPP=$ac_cv_prog_CPP
3992else
3993  ac_cv_prog_CPP=$CPP
3994fi
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3996$as_echo "$CPP" >&6; }
3997ac_preproc_ok=false
3998for ac_c_preproc_warn_flag in '' yes
3999do
4000  # Use a header file that comes with gcc, so configuring glibc
4001  # with a fresh cross-compiler works.
4002  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4003  # <limits.h> exists even on freestanding compilers.
4004  # On the NeXT, cc -E runs the code through the compiler's parser,
4005  # not just through cpp. "Syntax error" is here to catch this case.
4006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007/* end confdefs.h.  */
4008#ifdef __STDC__
4009# include <limits.h>
4010#else
4011# include <assert.h>
4012#endif
4013		     Syntax error
4014_ACEOF
4015if ac_fn_c_try_cpp "$LINENO"; then :
4016
4017else
4018  # Broken: fails on valid input.
4019continue
4020fi
4021rm -f conftest.err conftest.i conftest.$ac_ext
4022
4023  # OK, works on sane cases.  Now check whether nonexistent headers
4024  # can be detected and how.
4025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026/* end confdefs.h.  */
4027#include <ac_nonexistent.h>
4028_ACEOF
4029if ac_fn_c_try_cpp "$LINENO"; then :
4030  # Broken: success on invalid input.
4031continue
4032else
4033  # Passes both tests.
4034ac_preproc_ok=:
4035break
4036fi
4037rm -f conftest.err conftest.i conftest.$ac_ext
4038
4039done
4040# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4041rm -f conftest.i conftest.err conftest.$ac_ext
4042if $ac_preproc_ok; then :
4043
4044else
4045  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4047as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4048See \`config.log' for more details" "$LINENO" 5; }
4049fi
4050
4051ac_ext=c
4052ac_cpp='$CPP $CPPFLAGS'
4053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4055ac_compiler_gnu=$ac_cv_c_compiler_gnu
4056
4057
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4059$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4060if ${ac_cv_path_GREP+:} false; then :
4061  $as_echo_n "(cached) " >&6
4062else
4063  if test -z "$GREP"; then
4064  ac_path_GREP_found=false
4065  # Loop through the user's path and test for each of PROGNAME-LIST
4066  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4068do
4069  IFS=$as_save_IFS
4070  test -z "$as_dir" && as_dir=.
4071    for ac_prog in grep ggrep; do
4072    for ac_exec_ext in '' $ac_executable_extensions; do
4073      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4074      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4075# Check for GNU ac_path_GREP and select it if it is found.
4076  # Check for GNU $ac_path_GREP
4077case `"$ac_path_GREP" --version 2>&1` in
4078*GNU*)
4079  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4080*)
4081  ac_count=0
4082  $as_echo_n 0123456789 >"conftest.in"
4083  while :
4084  do
4085    cat "conftest.in" "conftest.in" >"conftest.tmp"
4086    mv "conftest.tmp" "conftest.in"
4087    cp "conftest.in" "conftest.nl"
4088    $as_echo 'GREP' >> "conftest.nl"
4089    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4090    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4091    as_fn_arith $ac_count + 1 && ac_count=$as_val
4092    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4093      # Best one so far, save it but keep looking for a better one
4094      ac_cv_path_GREP="$ac_path_GREP"
4095      ac_path_GREP_max=$ac_count
4096    fi
4097    # 10*(2^10) chars as input seems more than enough
4098    test $ac_count -gt 10 && break
4099  done
4100  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4101esac
4102
4103      $ac_path_GREP_found && break 3
4104    done
4105  done
4106  done
4107IFS=$as_save_IFS
4108  if test -z "$ac_cv_path_GREP"; then
4109    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4110  fi
4111else
4112  ac_cv_path_GREP=$GREP
4113fi
4114
4115fi
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4117$as_echo "$ac_cv_path_GREP" >&6; }
4118 GREP="$ac_cv_path_GREP"
4119
4120
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4122$as_echo_n "checking for egrep... " >&6; }
4123if ${ac_cv_path_EGREP+:} false; then :
4124  $as_echo_n "(cached) " >&6
4125else
4126  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4127   then ac_cv_path_EGREP="$GREP -E"
4128   else
4129     if test -z "$EGREP"; then
4130  ac_path_EGREP_found=false
4131  # Loop through the user's path and test for each of PROGNAME-LIST
4132  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4134do
4135  IFS=$as_save_IFS
4136  test -z "$as_dir" && as_dir=.
4137    for ac_prog in egrep; do
4138    for ac_exec_ext in '' $ac_executable_extensions; do
4139      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4140      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4141# Check for GNU ac_path_EGREP and select it if it is found.
4142  # Check for GNU $ac_path_EGREP
4143case `"$ac_path_EGREP" --version 2>&1` in
4144*GNU*)
4145  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4146*)
4147  ac_count=0
4148  $as_echo_n 0123456789 >"conftest.in"
4149  while :
4150  do
4151    cat "conftest.in" "conftest.in" >"conftest.tmp"
4152    mv "conftest.tmp" "conftest.in"
4153    cp "conftest.in" "conftest.nl"
4154    $as_echo 'EGREP' >> "conftest.nl"
4155    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4156    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4157    as_fn_arith $ac_count + 1 && ac_count=$as_val
4158    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4159      # Best one so far, save it but keep looking for a better one
4160      ac_cv_path_EGREP="$ac_path_EGREP"
4161      ac_path_EGREP_max=$ac_count
4162    fi
4163    # 10*(2^10) chars as input seems more than enough
4164    test $ac_count -gt 10 && break
4165  done
4166  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4167esac
4168
4169      $ac_path_EGREP_found && break 3
4170    done
4171  done
4172  done
4173IFS=$as_save_IFS
4174  if test -z "$ac_cv_path_EGREP"; then
4175    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4176  fi
4177else
4178  ac_cv_path_EGREP=$EGREP
4179fi
4180
4181   fi
4182fi
4183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4184$as_echo "$ac_cv_path_EGREP" >&6; }
4185 EGREP="$ac_cv_path_EGREP"
4186
4187
4188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4189$as_echo_n "checking for ANSI C header files... " >&6; }
4190if ${ac_cv_header_stdc+:} false; then :
4191  $as_echo_n "(cached) " >&6
4192else
4193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194/* end confdefs.h.  */
4195#include <stdlib.h>
4196#include <stdarg.h>
4197#include <string.h>
4198#include <float.h>
4199
4200int
4201main ()
4202{
4203
4204  ;
4205  return 0;
4206}
4207_ACEOF
4208if ac_fn_c_try_compile "$LINENO"; then :
4209  ac_cv_header_stdc=yes
4210else
4211  ac_cv_header_stdc=no
4212fi
4213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214
4215if test $ac_cv_header_stdc = yes; then
4216  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218/* end confdefs.h.  */
4219#include <string.h>
4220
4221_ACEOF
4222if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4223  $EGREP "memchr" >/dev/null 2>&1; then :
4224
4225else
4226  ac_cv_header_stdc=no
4227fi
4228rm -f conftest*
4229
4230fi
4231
4232if test $ac_cv_header_stdc = yes; then
4233  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235/* end confdefs.h.  */
4236#include <stdlib.h>
4237
4238_ACEOF
4239if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4240  $EGREP "free" >/dev/null 2>&1; then :
4241
4242else
4243  ac_cv_header_stdc=no
4244fi
4245rm -f conftest*
4246
4247fi
4248
4249if test $ac_cv_header_stdc = yes; then
4250  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4251  if test "$cross_compiling" = yes; then :
4252  :
4253else
4254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255/* end confdefs.h.  */
4256#include <ctype.h>
4257#include <stdlib.h>
4258#if ((' ' & 0x0FF) == 0x020)
4259# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4260# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4261#else
4262# define ISLOWER(c) \
4263		   (('a' <= (c) && (c) <= 'i') \
4264		     || ('j' <= (c) && (c) <= 'r') \
4265		     || ('s' <= (c) && (c) <= 'z'))
4266# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4267#endif
4268
4269#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4270int
4271main ()
4272{
4273  int i;
4274  for (i = 0; i < 256; i++)
4275    if (XOR (islower (i), ISLOWER (i))
4276	|| toupper (i) != TOUPPER (i))
4277      return 2;
4278  return 0;
4279}
4280_ACEOF
4281if ac_fn_c_try_run "$LINENO"; then :
4282
4283else
4284  ac_cv_header_stdc=no
4285fi
4286rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4287  conftest.$ac_objext conftest.beam conftest.$ac_ext
4288fi
4289
4290fi
4291fi
4292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4293$as_echo "$ac_cv_header_stdc" >&6; }
4294if test $ac_cv_header_stdc = yes; then
4295
4296$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4297
4298fi
4299
4300# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4301for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4302		  inttypes.h stdint.h unistd.h
4303do :
4304  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4305ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4306"
4307if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4308  cat >>confdefs.h <<_ACEOF
4309#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4310_ACEOF
4311
4312fi
4313
4314done
4315
4316
4317
4318
4319
4320
4321ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4322if test "x$ac_cv_have_decl___clang__" = xyes; then :
4323  CLANGCC="yes"
4324else
4325  CLANGCC="no"
4326fi
4327
4328ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4329if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4330  INTELCC="yes"
4331else
4332  INTELCC="no"
4333fi
4334
4335ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4336if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4337  SUNCC="yes"
4338else
4339  SUNCC="no"
4340fi
4341
4342
4343
4344
4345
4346
4347
4348
4349if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4350	if test -n "$ac_tool_prefix"; then
4351  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4352set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4354$as_echo_n "checking for $ac_word... " >&6; }
4355if ${ac_cv_path_PKG_CONFIG+:} false; then :
4356  $as_echo_n "(cached) " >&6
4357else
4358  case $PKG_CONFIG in
4359  [\\/]* | ?:[\\/]*)
4360  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4361  ;;
4362  *)
4363  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364for as_dir in $PATH
4365do
4366  IFS=$as_save_IFS
4367  test -z "$as_dir" && as_dir=.
4368    for ac_exec_ext in '' $ac_executable_extensions; do
4369  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4370    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4371    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4372    break 2
4373  fi
4374done
4375  done
4376IFS=$as_save_IFS
4377
4378  ;;
4379esac
4380fi
4381PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4382if test -n "$PKG_CONFIG"; then
4383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4384$as_echo "$PKG_CONFIG" >&6; }
4385else
4386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387$as_echo "no" >&6; }
4388fi
4389
4390
4391fi
4392if test -z "$ac_cv_path_PKG_CONFIG"; then
4393  ac_pt_PKG_CONFIG=$PKG_CONFIG
4394  # Extract the first word of "pkg-config", so it can be a program name with args.
4395set dummy pkg-config; ac_word=$2
4396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397$as_echo_n "checking for $ac_word... " >&6; }
4398if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4399  $as_echo_n "(cached) " >&6
4400else
4401  case $ac_pt_PKG_CONFIG in
4402  [\\/]* | ?:[\\/]*)
4403  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4404  ;;
4405  *)
4406  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407for as_dir in $PATH
4408do
4409  IFS=$as_save_IFS
4410  test -z "$as_dir" && as_dir=.
4411    for ac_exec_ext in '' $ac_executable_extensions; do
4412  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4413    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4414    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4415    break 2
4416  fi
4417done
4418  done
4419IFS=$as_save_IFS
4420
4421  ;;
4422esac
4423fi
4424ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4425if test -n "$ac_pt_PKG_CONFIG"; then
4426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4427$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4428else
4429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430$as_echo "no" >&6; }
4431fi
4432
4433  if test "x$ac_pt_PKG_CONFIG" = x; then
4434    PKG_CONFIG=""
4435  else
4436    case $cross_compiling:$ac_tool_warned in
4437yes:)
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4439$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4440ac_tool_warned=yes ;;
4441esac
4442    PKG_CONFIG=$ac_pt_PKG_CONFIG
4443  fi
4444else
4445  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4446fi
4447
4448fi
4449if test -n "$PKG_CONFIG"; then
4450	_pkg_min_version=0.9.0
4451	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4452$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4453	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4454		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4455$as_echo "yes" >&6; }
4456	else
4457		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4458$as_echo "no" >&6; }
4459		PKG_CONFIG=""
4460	fi
4461fi
4462# Make sure we can run config.sub.
4463$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4464  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4465
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4467$as_echo_n "checking build system type... " >&6; }
4468if ${ac_cv_build+:} false; then :
4469  $as_echo_n "(cached) " >&6
4470else
4471  ac_build_alias=$build_alias
4472test "x$ac_build_alias" = x &&
4473  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4474test "x$ac_build_alias" = x &&
4475  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4476ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4477  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4478
4479fi
4480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4481$as_echo "$ac_cv_build" >&6; }
4482case $ac_cv_build in
4483*-*-*) ;;
4484*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4485esac
4486build=$ac_cv_build
4487ac_save_IFS=$IFS; IFS='-'
4488set x $ac_cv_build
4489shift
4490build_cpu=$1
4491build_vendor=$2
4492shift; shift
4493# Remember, the first character of IFS is used to create $*,
4494# except with old shells:
4495build_os=$*
4496IFS=$ac_save_IFS
4497case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4498
4499
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4501$as_echo_n "checking host system type... " >&6; }
4502if ${ac_cv_host+:} false; then :
4503  $as_echo_n "(cached) " >&6
4504else
4505  if test "x$host_alias" = x; then
4506  ac_cv_host=$ac_cv_build
4507else
4508  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4509    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4510fi
4511
4512fi
4513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4514$as_echo "$ac_cv_host" >&6; }
4515case $ac_cv_host in
4516*-*-*) ;;
4517*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4518esac
4519host=$ac_cv_host
4520ac_save_IFS=$IFS; IFS='-'
4521set x $ac_cv_host
4522shift
4523host_cpu=$1
4524host_vendor=$2
4525shift; shift
4526# Remember, the first character of IFS is used to create $*,
4527# except with old shells:
4528host_os=$*
4529IFS=$ac_save_IFS
4530case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4531
4532
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4534$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4535if ${ac_cv_path_SED+:} false; then :
4536  $as_echo_n "(cached) " >&6
4537else
4538            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4539     for ac_i in 1 2 3 4 5 6 7; do
4540       ac_script="$ac_script$as_nl$ac_script"
4541     done
4542     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4543     { ac_script=; unset ac_script;}
4544     if test -z "$SED"; then
4545  ac_path_SED_found=false
4546  # Loop through the user's path and test for each of PROGNAME-LIST
4547  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548for as_dir in $PATH
4549do
4550  IFS=$as_save_IFS
4551  test -z "$as_dir" && as_dir=.
4552    for ac_prog in sed gsed; do
4553    for ac_exec_ext in '' $ac_executable_extensions; do
4554      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4555      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4556# Check for GNU ac_path_SED and select it if it is found.
4557  # Check for GNU $ac_path_SED
4558case `"$ac_path_SED" --version 2>&1` in
4559*GNU*)
4560  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4561*)
4562  ac_count=0
4563  $as_echo_n 0123456789 >"conftest.in"
4564  while :
4565  do
4566    cat "conftest.in" "conftest.in" >"conftest.tmp"
4567    mv "conftest.tmp" "conftest.in"
4568    cp "conftest.in" "conftest.nl"
4569    $as_echo '' >> "conftest.nl"
4570    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4571    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4572    as_fn_arith $ac_count + 1 && ac_count=$as_val
4573    if test $ac_count -gt ${ac_path_SED_max-0}; then
4574      # Best one so far, save it but keep looking for a better one
4575      ac_cv_path_SED="$ac_path_SED"
4576      ac_path_SED_max=$ac_count
4577    fi
4578    # 10*(2^10) chars as input seems more than enough
4579    test $ac_count -gt 10 && break
4580  done
4581  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4582esac
4583
4584      $ac_path_SED_found && break 3
4585    done
4586  done
4587  done
4588IFS=$as_save_IFS
4589  if test -z "$ac_cv_path_SED"; then
4590    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4591  fi
4592else
4593  ac_cv_path_SED=$SED
4594fi
4595
4596fi
4597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4598$as_echo "$ac_cv_path_SED" >&6; }
4599 SED="$ac_cv_path_SED"
4600  rm -f conftest.sed
4601
4602
4603
4604
4605
4606
4607# Check whether --enable-selective-werror was given.
4608if test "${enable_selective_werror+set}" = set; then :
4609  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4610else
4611  SELECTIVE_WERROR=yes
4612fi
4613
4614
4615
4616
4617
4618# -v is too short to test reliably with XORG_TESTSET_CFLAG
4619if test "x$SUNCC" = "xyes"; then
4620    BASE_CFLAGS="-v"
4621else
4622    BASE_CFLAGS=""
4623fi
4624
4625# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639xorg_testset_save_CFLAGS="$CFLAGS"
4640
4641if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4642	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4643	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4644$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4645if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4646  $as_echo_n "(cached) " >&6
4647else
4648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649/* end confdefs.h.  */
4650int i;
4651_ACEOF
4652if ac_fn_c_try_compile "$LINENO"; then :
4653  xorg_cv_cc_flag_unknown_warning_option=yes
4654else
4655  xorg_cv_cc_flag_unknown_warning_option=no
4656fi
4657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4658fi
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4660$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4661	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4662	CFLAGS="$xorg_testset_save_CFLAGS"
4663fi
4664
4665if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4666	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4667		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4668	fi
4669	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4670	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4671$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4672if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4673  $as_echo_n "(cached) " >&6
4674else
4675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676/* end confdefs.h.  */
4677int i;
4678_ACEOF
4679if ac_fn_c_try_compile "$LINENO"; then :
4680  xorg_cv_cc_flag_unused_command_line_argument=yes
4681else
4682  xorg_cv_cc_flag_unused_command_line_argument=no
4683fi
4684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4685fi
4686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4687$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4688	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4689	CFLAGS="$xorg_testset_save_CFLAGS"
4690fi
4691
4692found="no"
4693
4694	if test $found = "no" ; then
4695		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4696			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4697		fi
4698
4699		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4700			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4701		fi
4702
4703		CFLAGS="$CFLAGS -Wall"
4704
4705		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4706$as_echo_n "checking if $CC supports-Wall... " >&6; }
4707		cacheid=xorg_cv_cc_flag__Wall
4708		if eval \${$cacheid+:} false; then :
4709  $as_echo_n "(cached) " >&6
4710else
4711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712/* end confdefs.h.  */
4713int i;
4714int
4715main ()
4716{
4717
4718  ;
4719  return 0;
4720}
4721_ACEOF
4722if ac_fn_c_try_link "$LINENO"; then :
4723  eval $cacheid=yes
4724else
4725  eval $cacheid=no
4726fi
4727rm -f core conftest.err conftest.$ac_objext \
4728    conftest$ac_exeext conftest.$ac_ext
4729fi
4730
4731
4732		CFLAGS="$xorg_testset_save_CFLAGS"
4733
4734		eval supported=\$$cacheid
4735		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4736$as_echo "$supported" >&6; }
4737		if test "$supported" = "yes" ; then
4738			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4739			found="yes"
4740		fi
4741	fi
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757xorg_testset_save_CFLAGS="$CFLAGS"
4758
4759if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4760	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4761	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4762$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4763if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4764  $as_echo_n "(cached) " >&6
4765else
4766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767/* end confdefs.h.  */
4768int i;
4769_ACEOF
4770if ac_fn_c_try_compile "$LINENO"; then :
4771  xorg_cv_cc_flag_unknown_warning_option=yes
4772else
4773  xorg_cv_cc_flag_unknown_warning_option=no
4774fi
4775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4776fi
4777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4778$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4779	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4780	CFLAGS="$xorg_testset_save_CFLAGS"
4781fi
4782
4783if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4784	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4785		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4786	fi
4787	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4788	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4789$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4790if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4791  $as_echo_n "(cached) " >&6
4792else
4793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794/* end confdefs.h.  */
4795int i;
4796_ACEOF
4797if ac_fn_c_try_compile "$LINENO"; then :
4798  xorg_cv_cc_flag_unused_command_line_argument=yes
4799else
4800  xorg_cv_cc_flag_unused_command_line_argument=no
4801fi
4802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803fi
4804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4805$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4806	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4807	CFLAGS="$xorg_testset_save_CFLAGS"
4808fi
4809
4810found="no"
4811
4812	if test $found = "no" ; then
4813		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4814			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4815		fi
4816
4817		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4818			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4819		fi
4820
4821		CFLAGS="$CFLAGS -Wpointer-arith"
4822
4823		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
4824$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
4825		cacheid=xorg_cv_cc_flag__Wpointer_arith
4826		if eval \${$cacheid+:} false; then :
4827  $as_echo_n "(cached) " >&6
4828else
4829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830/* end confdefs.h.  */
4831int i;
4832int
4833main ()
4834{
4835
4836  ;
4837  return 0;
4838}
4839_ACEOF
4840if ac_fn_c_try_link "$LINENO"; then :
4841  eval $cacheid=yes
4842else
4843  eval $cacheid=no
4844fi
4845rm -f core conftest.err conftest.$ac_objext \
4846    conftest$ac_exeext conftest.$ac_ext
4847fi
4848
4849
4850		CFLAGS="$xorg_testset_save_CFLAGS"
4851
4852		eval supported=\$$cacheid
4853		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4854$as_echo "$supported" >&6; }
4855		if test "$supported" = "yes" ; then
4856			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4857			found="yes"
4858		fi
4859	fi
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875xorg_testset_save_CFLAGS="$CFLAGS"
4876
4877if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4878	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4879	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4880$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4881if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4882  $as_echo_n "(cached) " >&6
4883else
4884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885/* end confdefs.h.  */
4886int i;
4887_ACEOF
4888if ac_fn_c_try_compile "$LINENO"; then :
4889  xorg_cv_cc_flag_unknown_warning_option=yes
4890else
4891  xorg_cv_cc_flag_unknown_warning_option=no
4892fi
4893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4894fi
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4896$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4897	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4898	CFLAGS="$xorg_testset_save_CFLAGS"
4899fi
4900
4901if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4902	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4903		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4904	fi
4905	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4906	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4907$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4908if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4909  $as_echo_n "(cached) " >&6
4910else
4911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912/* end confdefs.h.  */
4913int i;
4914_ACEOF
4915if ac_fn_c_try_compile "$LINENO"; then :
4916  xorg_cv_cc_flag_unused_command_line_argument=yes
4917else
4918  xorg_cv_cc_flag_unused_command_line_argument=no
4919fi
4920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4921fi
4922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4923$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4924	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4925	CFLAGS="$xorg_testset_save_CFLAGS"
4926fi
4927
4928found="no"
4929
4930	if test $found = "no" ; then
4931		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4932			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4933		fi
4934
4935		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4936			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4937		fi
4938
4939		CFLAGS="$CFLAGS -Wmissing-declarations"
4940
4941		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
4942$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
4943		cacheid=xorg_cv_cc_flag__Wmissing_declarations
4944		if eval \${$cacheid+:} false; then :
4945  $as_echo_n "(cached) " >&6
4946else
4947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948/* end confdefs.h.  */
4949int i;
4950int
4951main ()
4952{
4953
4954  ;
4955  return 0;
4956}
4957_ACEOF
4958if ac_fn_c_try_link "$LINENO"; then :
4959  eval $cacheid=yes
4960else
4961  eval $cacheid=no
4962fi
4963rm -f core conftest.err conftest.$ac_objext \
4964    conftest$ac_exeext conftest.$ac_ext
4965fi
4966
4967
4968		CFLAGS="$xorg_testset_save_CFLAGS"
4969
4970		eval supported=\$$cacheid
4971		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4972$as_echo "$supported" >&6; }
4973		if test "$supported" = "yes" ; then
4974			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4975			found="yes"
4976		fi
4977	fi
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993xorg_testset_save_CFLAGS="$CFLAGS"
4994
4995if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4996	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4997	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4998$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4999if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5000  $as_echo_n "(cached) " >&6
5001else
5002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003/* end confdefs.h.  */
5004int i;
5005_ACEOF
5006if ac_fn_c_try_compile "$LINENO"; then :
5007  xorg_cv_cc_flag_unknown_warning_option=yes
5008else
5009  xorg_cv_cc_flag_unknown_warning_option=no
5010fi
5011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5012fi
5013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5014$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5015	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5016	CFLAGS="$xorg_testset_save_CFLAGS"
5017fi
5018
5019if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5020	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5021		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5022	fi
5023	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5024	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5025$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5026if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5027  $as_echo_n "(cached) " >&6
5028else
5029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5030/* end confdefs.h.  */
5031int i;
5032_ACEOF
5033if ac_fn_c_try_compile "$LINENO"; then :
5034  xorg_cv_cc_flag_unused_command_line_argument=yes
5035else
5036  xorg_cv_cc_flag_unused_command_line_argument=no
5037fi
5038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5039fi
5040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5041$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5042	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5043	CFLAGS="$xorg_testset_save_CFLAGS"
5044fi
5045
5046found="no"
5047
5048	if test $found = "no" ; then
5049		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5050			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5051		fi
5052
5053		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5054			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5055		fi
5056
5057		CFLAGS="$CFLAGS -Wformat=2"
5058
5059		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
5060$as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
5061		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5062		if eval \${$cacheid+:} false; then :
5063  $as_echo_n "(cached) " >&6
5064else
5065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066/* end confdefs.h.  */
5067int i;
5068int
5069main ()
5070{
5071
5072  ;
5073  return 0;
5074}
5075_ACEOF
5076if ac_fn_c_try_link "$LINENO"; then :
5077  eval $cacheid=yes
5078else
5079  eval $cacheid=no
5080fi
5081rm -f core conftest.err conftest.$ac_objext \
5082    conftest$ac_exeext conftest.$ac_ext
5083fi
5084
5085
5086		CFLAGS="$xorg_testset_save_CFLAGS"
5087
5088		eval supported=\$$cacheid
5089		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5090$as_echo "$supported" >&6; }
5091		if test "$supported" = "yes" ; then
5092			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5093			found="yes"
5094		fi
5095	fi
5096
5097	if test $found = "no" ; then
5098		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5099			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5100		fi
5101
5102		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5103			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5104		fi
5105
5106		CFLAGS="$CFLAGS -Wformat"
5107
5108		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
5109$as_echo_n "checking if $CC supports-Wformat... " >&6; }
5110		cacheid=xorg_cv_cc_flag__Wformat
5111		if eval \${$cacheid+:} false; then :
5112  $as_echo_n "(cached) " >&6
5113else
5114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115/* end confdefs.h.  */
5116int i;
5117int
5118main ()
5119{
5120
5121  ;
5122  return 0;
5123}
5124_ACEOF
5125if ac_fn_c_try_link "$LINENO"; then :
5126  eval $cacheid=yes
5127else
5128  eval $cacheid=no
5129fi
5130rm -f core conftest.err conftest.$ac_objext \
5131    conftest$ac_exeext conftest.$ac_ext
5132fi
5133
5134
5135		CFLAGS="$xorg_testset_save_CFLAGS"
5136
5137		eval supported=\$$cacheid
5138		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5139$as_echo "$supported" >&6; }
5140		if test "$supported" = "yes" ; then
5141			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5142			found="yes"
5143		fi
5144	fi
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162xorg_testset_save_CFLAGS="$CFLAGS"
5163
5164if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5165	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5166	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5167$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5168if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5169  $as_echo_n "(cached) " >&6
5170else
5171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172/* end confdefs.h.  */
5173int i;
5174_ACEOF
5175if ac_fn_c_try_compile "$LINENO"; then :
5176  xorg_cv_cc_flag_unknown_warning_option=yes
5177else
5178  xorg_cv_cc_flag_unknown_warning_option=no
5179fi
5180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5181fi
5182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5183$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5184	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5185	CFLAGS="$xorg_testset_save_CFLAGS"
5186fi
5187
5188if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5189	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5190		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5191	fi
5192	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5193	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5194$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5195if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5196  $as_echo_n "(cached) " >&6
5197else
5198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199/* end confdefs.h.  */
5200int i;
5201_ACEOF
5202if ac_fn_c_try_compile "$LINENO"; then :
5203  xorg_cv_cc_flag_unused_command_line_argument=yes
5204else
5205  xorg_cv_cc_flag_unused_command_line_argument=no
5206fi
5207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5208fi
5209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5210$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5211	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5212	CFLAGS="$xorg_testset_save_CFLAGS"
5213fi
5214
5215found="no"
5216
5217	if test $found = "no" ; then
5218		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5219			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5220		fi
5221
5222		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5223			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5224		fi
5225
5226		CFLAGS="$CFLAGS -Wstrict-prototypes"
5227
5228		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5229$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5230		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5231		if eval \${$cacheid+:} false; then :
5232  $as_echo_n "(cached) " >&6
5233else
5234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5235/* end confdefs.h.  */
5236int i;
5237int
5238main ()
5239{
5240
5241  ;
5242  return 0;
5243}
5244_ACEOF
5245if ac_fn_c_try_link "$LINENO"; then :
5246  eval $cacheid=yes
5247else
5248  eval $cacheid=no
5249fi
5250rm -f core conftest.err conftest.$ac_objext \
5251    conftest$ac_exeext conftest.$ac_ext
5252fi
5253
5254
5255		CFLAGS="$xorg_testset_save_CFLAGS"
5256
5257		eval supported=\$$cacheid
5258		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5259$as_echo "$supported" >&6; }
5260		if test "$supported" = "yes" ; then
5261			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5262			found="yes"
5263		fi
5264	fi
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280xorg_testset_save_CFLAGS="$CFLAGS"
5281
5282if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5283	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5284	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5285$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5286if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5287  $as_echo_n "(cached) " >&6
5288else
5289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290/* end confdefs.h.  */
5291int i;
5292_ACEOF
5293if ac_fn_c_try_compile "$LINENO"; then :
5294  xorg_cv_cc_flag_unknown_warning_option=yes
5295else
5296  xorg_cv_cc_flag_unknown_warning_option=no
5297fi
5298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5299fi
5300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5301$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5302	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5303	CFLAGS="$xorg_testset_save_CFLAGS"
5304fi
5305
5306if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5307	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5308		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5309	fi
5310	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5311	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5312$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5313if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5314  $as_echo_n "(cached) " >&6
5315else
5316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317/* end confdefs.h.  */
5318int i;
5319_ACEOF
5320if ac_fn_c_try_compile "$LINENO"; then :
5321  xorg_cv_cc_flag_unused_command_line_argument=yes
5322else
5323  xorg_cv_cc_flag_unused_command_line_argument=no
5324fi
5325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5326fi
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5328$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5329	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5330	CFLAGS="$xorg_testset_save_CFLAGS"
5331fi
5332
5333found="no"
5334
5335	if test $found = "no" ; then
5336		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5337			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5338		fi
5339
5340		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5341			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5342		fi
5343
5344		CFLAGS="$CFLAGS -Wmissing-prototypes"
5345
5346		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5347$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5348		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5349		if eval \${$cacheid+:} false; then :
5350  $as_echo_n "(cached) " >&6
5351else
5352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353/* end confdefs.h.  */
5354int i;
5355int
5356main ()
5357{
5358
5359  ;
5360  return 0;
5361}
5362_ACEOF
5363if ac_fn_c_try_link "$LINENO"; then :
5364  eval $cacheid=yes
5365else
5366  eval $cacheid=no
5367fi
5368rm -f core conftest.err conftest.$ac_objext \
5369    conftest$ac_exeext conftest.$ac_ext
5370fi
5371
5372
5373		CFLAGS="$xorg_testset_save_CFLAGS"
5374
5375		eval supported=\$$cacheid
5376		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5377$as_echo "$supported" >&6; }
5378		if test "$supported" = "yes" ; then
5379			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5380			found="yes"
5381		fi
5382	fi
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398xorg_testset_save_CFLAGS="$CFLAGS"
5399
5400if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5401	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5402	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5403$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5404if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5405  $as_echo_n "(cached) " >&6
5406else
5407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408/* end confdefs.h.  */
5409int i;
5410_ACEOF
5411if ac_fn_c_try_compile "$LINENO"; then :
5412  xorg_cv_cc_flag_unknown_warning_option=yes
5413else
5414  xorg_cv_cc_flag_unknown_warning_option=no
5415fi
5416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5417fi
5418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5419$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5420	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5421	CFLAGS="$xorg_testset_save_CFLAGS"
5422fi
5423
5424if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5425	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5426		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5427	fi
5428	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5429	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5430$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5431if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5432  $as_echo_n "(cached) " >&6
5433else
5434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435/* end confdefs.h.  */
5436int i;
5437_ACEOF
5438if ac_fn_c_try_compile "$LINENO"; then :
5439  xorg_cv_cc_flag_unused_command_line_argument=yes
5440else
5441  xorg_cv_cc_flag_unused_command_line_argument=no
5442fi
5443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5444fi
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5446$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5447	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5448	CFLAGS="$xorg_testset_save_CFLAGS"
5449fi
5450
5451found="no"
5452
5453	if test $found = "no" ; then
5454		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5455			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5456		fi
5457
5458		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5459			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5460		fi
5461
5462		CFLAGS="$CFLAGS -Wnested-externs"
5463
5464		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5465$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5466		cacheid=xorg_cv_cc_flag__Wnested_externs
5467		if eval \${$cacheid+:} false; then :
5468  $as_echo_n "(cached) " >&6
5469else
5470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471/* end confdefs.h.  */
5472int i;
5473int
5474main ()
5475{
5476
5477  ;
5478  return 0;
5479}
5480_ACEOF
5481if ac_fn_c_try_link "$LINENO"; then :
5482  eval $cacheid=yes
5483else
5484  eval $cacheid=no
5485fi
5486rm -f core conftest.err conftest.$ac_objext \
5487    conftest$ac_exeext conftest.$ac_ext
5488fi
5489
5490
5491		CFLAGS="$xorg_testset_save_CFLAGS"
5492
5493		eval supported=\$$cacheid
5494		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5495$as_echo "$supported" >&6; }
5496		if test "$supported" = "yes" ; then
5497			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5498			found="yes"
5499		fi
5500	fi
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516xorg_testset_save_CFLAGS="$CFLAGS"
5517
5518if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5519	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5520	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5521$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5522if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5523  $as_echo_n "(cached) " >&6
5524else
5525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526/* end confdefs.h.  */
5527int i;
5528_ACEOF
5529if ac_fn_c_try_compile "$LINENO"; then :
5530  xorg_cv_cc_flag_unknown_warning_option=yes
5531else
5532  xorg_cv_cc_flag_unknown_warning_option=no
5533fi
5534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535fi
5536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5537$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5538	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5539	CFLAGS="$xorg_testset_save_CFLAGS"
5540fi
5541
5542if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5543	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5544		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5545	fi
5546	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5547	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5548$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5549if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5550  $as_echo_n "(cached) " >&6
5551else
5552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553/* end confdefs.h.  */
5554int i;
5555_ACEOF
5556if ac_fn_c_try_compile "$LINENO"; then :
5557  xorg_cv_cc_flag_unused_command_line_argument=yes
5558else
5559  xorg_cv_cc_flag_unused_command_line_argument=no
5560fi
5561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5562fi
5563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5564$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5565	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5566	CFLAGS="$xorg_testset_save_CFLAGS"
5567fi
5568
5569found="no"
5570
5571	if test $found = "no" ; then
5572		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5573			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5574		fi
5575
5576		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5577			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5578		fi
5579
5580		CFLAGS="$CFLAGS -Wbad-function-cast"
5581
5582		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5583$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5584		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5585		if eval \${$cacheid+:} false; then :
5586  $as_echo_n "(cached) " >&6
5587else
5588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589/* end confdefs.h.  */
5590int i;
5591int
5592main ()
5593{
5594
5595  ;
5596  return 0;
5597}
5598_ACEOF
5599if ac_fn_c_try_link "$LINENO"; then :
5600  eval $cacheid=yes
5601else
5602  eval $cacheid=no
5603fi
5604rm -f core conftest.err conftest.$ac_objext \
5605    conftest$ac_exeext conftest.$ac_ext
5606fi
5607
5608
5609		CFLAGS="$xorg_testset_save_CFLAGS"
5610
5611		eval supported=\$$cacheid
5612		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5613$as_echo "$supported" >&6; }
5614		if test "$supported" = "yes" ; then
5615			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5616			found="yes"
5617		fi
5618	fi
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634xorg_testset_save_CFLAGS="$CFLAGS"
5635
5636if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5637	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5638	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5639$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5640if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5641  $as_echo_n "(cached) " >&6
5642else
5643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644/* end confdefs.h.  */
5645int i;
5646_ACEOF
5647if ac_fn_c_try_compile "$LINENO"; then :
5648  xorg_cv_cc_flag_unknown_warning_option=yes
5649else
5650  xorg_cv_cc_flag_unknown_warning_option=no
5651fi
5652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653fi
5654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5655$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5656	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5657	CFLAGS="$xorg_testset_save_CFLAGS"
5658fi
5659
5660if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5661	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5662		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5663	fi
5664	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5665	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5666$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5667if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5668  $as_echo_n "(cached) " >&6
5669else
5670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671/* end confdefs.h.  */
5672int i;
5673_ACEOF
5674if ac_fn_c_try_compile "$LINENO"; then :
5675  xorg_cv_cc_flag_unused_command_line_argument=yes
5676else
5677  xorg_cv_cc_flag_unused_command_line_argument=no
5678fi
5679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5680fi
5681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5682$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5683	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5684	CFLAGS="$xorg_testset_save_CFLAGS"
5685fi
5686
5687found="no"
5688
5689	if test $found = "no" ; then
5690		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5691			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5692		fi
5693
5694		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5695			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5696		fi
5697
5698		CFLAGS="$CFLAGS -Wold-style-definition"
5699
5700		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5701$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
5702		cacheid=xorg_cv_cc_flag__Wold_style_definition
5703		if eval \${$cacheid+:} false; then :
5704  $as_echo_n "(cached) " >&6
5705else
5706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707/* end confdefs.h.  */
5708int i;
5709int
5710main ()
5711{
5712
5713  ;
5714  return 0;
5715}
5716_ACEOF
5717if ac_fn_c_try_link "$LINENO"; then :
5718  eval $cacheid=yes
5719else
5720  eval $cacheid=no
5721fi
5722rm -f core conftest.err conftest.$ac_objext \
5723    conftest$ac_exeext conftest.$ac_ext
5724fi
5725
5726
5727		CFLAGS="$xorg_testset_save_CFLAGS"
5728
5729		eval supported=\$$cacheid
5730		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5731$as_echo "$supported" >&6; }
5732		if test "$supported" = "yes" ; then
5733			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5734			found="yes"
5735		fi
5736	fi
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752xorg_testset_save_CFLAGS="$CFLAGS"
5753
5754if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5755	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5756	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5757$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5758if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5759  $as_echo_n "(cached) " >&6
5760else
5761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762/* end confdefs.h.  */
5763int i;
5764_ACEOF
5765if ac_fn_c_try_compile "$LINENO"; then :
5766  xorg_cv_cc_flag_unknown_warning_option=yes
5767else
5768  xorg_cv_cc_flag_unknown_warning_option=no
5769fi
5770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5771fi
5772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5773$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5774	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5775	CFLAGS="$xorg_testset_save_CFLAGS"
5776fi
5777
5778if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5779	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5780		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5781	fi
5782	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5783	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5784$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5785if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5786  $as_echo_n "(cached) " >&6
5787else
5788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789/* end confdefs.h.  */
5790int i;
5791_ACEOF
5792if ac_fn_c_try_compile "$LINENO"; then :
5793  xorg_cv_cc_flag_unused_command_line_argument=yes
5794else
5795  xorg_cv_cc_flag_unused_command_line_argument=no
5796fi
5797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798fi
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5800$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5801	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5802	CFLAGS="$xorg_testset_save_CFLAGS"
5803fi
5804
5805found="no"
5806
5807	if test $found = "no" ; then
5808		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5809			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5810		fi
5811
5812		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5813			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5814		fi
5815
5816		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5817
5818		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
5819$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
5820		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5821		if eval \${$cacheid+:} false; then :
5822  $as_echo_n "(cached) " >&6
5823else
5824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825/* end confdefs.h.  */
5826int i;
5827int
5828main ()
5829{
5830
5831  ;
5832  return 0;
5833}
5834_ACEOF
5835if ac_fn_c_try_link "$LINENO"; then :
5836  eval $cacheid=yes
5837else
5838  eval $cacheid=no
5839fi
5840rm -f core conftest.err conftest.$ac_objext \
5841    conftest$ac_exeext conftest.$ac_ext
5842fi
5843
5844
5845		CFLAGS="$xorg_testset_save_CFLAGS"
5846
5847		eval supported=\$$cacheid
5848		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5849$as_echo "$supported" >&6; }
5850		if test "$supported" = "yes" ; then
5851			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5852			found="yes"
5853		fi
5854	fi
5855
5856
5857
5858
5859
5860# This chunk adds additional warnings that could catch undesired effects.
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874xorg_testset_save_CFLAGS="$CFLAGS"
5875
5876if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5877	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5878	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5879$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5880if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5881  $as_echo_n "(cached) " >&6
5882else
5883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5884/* end confdefs.h.  */
5885int i;
5886_ACEOF
5887if ac_fn_c_try_compile "$LINENO"; then :
5888  xorg_cv_cc_flag_unknown_warning_option=yes
5889else
5890  xorg_cv_cc_flag_unknown_warning_option=no
5891fi
5892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5893fi
5894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5895$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5896	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5897	CFLAGS="$xorg_testset_save_CFLAGS"
5898fi
5899
5900if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5901	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5902		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5903	fi
5904	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5905	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5906$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5907if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5908  $as_echo_n "(cached) " >&6
5909else
5910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911/* end confdefs.h.  */
5912int i;
5913_ACEOF
5914if ac_fn_c_try_compile "$LINENO"; then :
5915  xorg_cv_cc_flag_unused_command_line_argument=yes
5916else
5917  xorg_cv_cc_flag_unused_command_line_argument=no
5918fi
5919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5920fi
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5922$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5923	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5924	CFLAGS="$xorg_testset_save_CFLAGS"
5925fi
5926
5927found="no"
5928
5929	if test $found = "no" ; then
5930		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5931			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5932		fi
5933
5934		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5935			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5936		fi
5937
5938		CFLAGS="$CFLAGS -Wunused"
5939
5940		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
5941$as_echo_n "checking if $CC supports-Wunused... " >&6; }
5942		cacheid=xorg_cv_cc_flag__Wunused
5943		if eval \${$cacheid+:} false; then :
5944  $as_echo_n "(cached) " >&6
5945else
5946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947/* end confdefs.h.  */
5948int i;
5949int
5950main ()
5951{
5952
5953  ;
5954  return 0;
5955}
5956_ACEOF
5957if ac_fn_c_try_link "$LINENO"; then :
5958  eval $cacheid=yes
5959else
5960  eval $cacheid=no
5961fi
5962rm -f core conftest.err conftest.$ac_objext \
5963    conftest$ac_exeext conftest.$ac_ext
5964fi
5965
5966
5967		CFLAGS="$xorg_testset_save_CFLAGS"
5968
5969		eval supported=\$$cacheid
5970		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5971$as_echo "$supported" >&6; }
5972		if test "$supported" = "yes" ; then
5973			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5974			found="yes"
5975		fi
5976	fi
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992xorg_testset_save_CFLAGS="$CFLAGS"
5993
5994if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5995	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5996	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5997$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5998if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5999  $as_echo_n "(cached) " >&6
6000else
6001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002/* end confdefs.h.  */
6003int i;
6004_ACEOF
6005if ac_fn_c_try_compile "$LINENO"; then :
6006  xorg_cv_cc_flag_unknown_warning_option=yes
6007else
6008  xorg_cv_cc_flag_unknown_warning_option=no
6009fi
6010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6011fi
6012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6013$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6014	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6015	CFLAGS="$xorg_testset_save_CFLAGS"
6016fi
6017
6018if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6019	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6020		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6021	fi
6022	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6023	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6024$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6025if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6026  $as_echo_n "(cached) " >&6
6027else
6028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029/* end confdefs.h.  */
6030int i;
6031_ACEOF
6032if ac_fn_c_try_compile "$LINENO"; then :
6033  xorg_cv_cc_flag_unused_command_line_argument=yes
6034else
6035  xorg_cv_cc_flag_unused_command_line_argument=no
6036fi
6037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6038fi
6039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6040$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6041	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6042	CFLAGS="$xorg_testset_save_CFLAGS"
6043fi
6044
6045found="no"
6046
6047	if test $found = "no" ; then
6048		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6049			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6050		fi
6051
6052		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6053			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6054		fi
6055
6056		CFLAGS="$CFLAGS -Wuninitialized"
6057
6058		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
6059$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
6060		cacheid=xorg_cv_cc_flag__Wuninitialized
6061		if eval \${$cacheid+:} false; then :
6062  $as_echo_n "(cached) " >&6
6063else
6064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065/* end confdefs.h.  */
6066int i;
6067int
6068main ()
6069{
6070
6071  ;
6072  return 0;
6073}
6074_ACEOF
6075if ac_fn_c_try_link "$LINENO"; then :
6076  eval $cacheid=yes
6077else
6078  eval $cacheid=no
6079fi
6080rm -f core conftest.err conftest.$ac_objext \
6081    conftest$ac_exeext conftest.$ac_ext
6082fi
6083
6084
6085		CFLAGS="$xorg_testset_save_CFLAGS"
6086
6087		eval supported=\$$cacheid
6088		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6089$as_echo "$supported" >&6; }
6090		if test "$supported" = "yes" ; then
6091			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6092			found="yes"
6093		fi
6094	fi
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110xorg_testset_save_CFLAGS="$CFLAGS"
6111
6112if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6113	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6114	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6115$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6116if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6117  $as_echo_n "(cached) " >&6
6118else
6119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6120/* end confdefs.h.  */
6121int i;
6122_ACEOF
6123if ac_fn_c_try_compile "$LINENO"; then :
6124  xorg_cv_cc_flag_unknown_warning_option=yes
6125else
6126  xorg_cv_cc_flag_unknown_warning_option=no
6127fi
6128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6129fi
6130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6131$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6132	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6133	CFLAGS="$xorg_testset_save_CFLAGS"
6134fi
6135
6136if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6137	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6138		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6139	fi
6140	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6141	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6142$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6143if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6144  $as_echo_n "(cached) " >&6
6145else
6146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6147/* end confdefs.h.  */
6148int i;
6149_ACEOF
6150if ac_fn_c_try_compile "$LINENO"; then :
6151  xorg_cv_cc_flag_unused_command_line_argument=yes
6152else
6153  xorg_cv_cc_flag_unused_command_line_argument=no
6154fi
6155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6156fi
6157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6158$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6159	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6160	CFLAGS="$xorg_testset_save_CFLAGS"
6161fi
6162
6163found="no"
6164
6165	if test $found = "no" ; then
6166		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6167			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6168		fi
6169
6170		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6171			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6172		fi
6173
6174		CFLAGS="$CFLAGS -Wshadow"
6175
6176		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6177$as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6178		cacheid=xorg_cv_cc_flag__Wshadow
6179		if eval \${$cacheid+:} false; then :
6180  $as_echo_n "(cached) " >&6
6181else
6182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183/* end confdefs.h.  */
6184int i;
6185int
6186main ()
6187{
6188
6189  ;
6190  return 0;
6191}
6192_ACEOF
6193if ac_fn_c_try_link "$LINENO"; then :
6194  eval $cacheid=yes
6195else
6196  eval $cacheid=no
6197fi
6198rm -f core conftest.err conftest.$ac_objext \
6199    conftest$ac_exeext conftest.$ac_ext
6200fi
6201
6202
6203		CFLAGS="$xorg_testset_save_CFLAGS"
6204
6205		eval supported=\$$cacheid
6206		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6207$as_echo "$supported" >&6; }
6208		if test "$supported" = "yes" ; then
6209			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6210			found="yes"
6211		fi
6212	fi
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228xorg_testset_save_CFLAGS="$CFLAGS"
6229
6230if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6231	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6232	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6233$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6234if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6235  $as_echo_n "(cached) " >&6
6236else
6237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6238/* end confdefs.h.  */
6239int i;
6240_ACEOF
6241if ac_fn_c_try_compile "$LINENO"; then :
6242  xorg_cv_cc_flag_unknown_warning_option=yes
6243else
6244  xorg_cv_cc_flag_unknown_warning_option=no
6245fi
6246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6247fi
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6249$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6250	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6251	CFLAGS="$xorg_testset_save_CFLAGS"
6252fi
6253
6254if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6255	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6256		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6257	fi
6258	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6259	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6260$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6261if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6262  $as_echo_n "(cached) " >&6
6263else
6264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265/* end confdefs.h.  */
6266int i;
6267_ACEOF
6268if ac_fn_c_try_compile "$LINENO"; then :
6269  xorg_cv_cc_flag_unused_command_line_argument=yes
6270else
6271  xorg_cv_cc_flag_unused_command_line_argument=no
6272fi
6273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6274fi
6275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6276$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6277	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6278	CFLAGS="$xorg_testset_save_CFLAGS"
6279fi
6280
6281found="no"
6282
6283	if test $found = "no" ; then
6284		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6285			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6286		fi
6287
6288		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6289			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6290		fi
6291
6292		CFLAGS="$CFLAGS -Wcast-qual"
6293
6294		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6295$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6296		cacheid=xorg_cv_cc_flag__Wcast_qual
6297		if eval \${$cacheid+:} false; then :
6298  $as_echo_n "(cached) " >&6
6299else
6300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6301/* end confdefs.h.  */
6302int i;
6303int
6304main ()
6305{
6306
6307  ;
6308  return 0;
6309}
6310_ACEOF
6311if ac_fn_c_try_link "$LINENO"; then :
6312  eval $cacheid=yes
6313else
6314  eval $cacheid=no
6315fi
6316rm -f core conftest.err conftest.$ac_objext \
6317    conftest$ac_exeext conftest.$ac_ext
6318fi
6319
6320
6321		CFLAGS="$xorg_testset_save_CFLAGS"
6322
6323		eval supported=\$$cacheid
6324		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6325$as_echo "$supported" >&6; }
6326		if test "$supported" = "yes" ; then
6327			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6328			found="yes"
6329		fi
6330	fi
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346xorg_testset_save_CFLAGS="$CFLAGS"
6347
6348if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6349	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6350	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6351$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6352if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6353  $as_echo_n "(cached) " >&6
6354else
6355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6356/* end confdefs.h.  */
6357int i;
6358_ACEOF
6359if ac_fn_c_try_compile "$LINENO"; then :
6360  xorg_cv_cc_flag_unknown_warning_option=yes
6361else
6362  xorg_cv_cc_flag_unknown_warning_option=no
6363fi
6364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6365fi
6366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6367$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6368	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6369	CFLAGS="$xorg_testset_save_CFLAGS"
6370fi
6371
6372if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6373	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6374		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6375	fi
6376	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6377	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6378$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6379if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6380  $as_echo_n "(cached) " >&6
6381else
6382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6383/* end confdefs.h.  */
6384int i;
6385_ACEOF
6386if ac_fn_c_try_compile "$LINENO"; then :
6387  xorg_cv_cc_flag_unused_command_line_argument=yes
6388else
6389  xorg_cv_cc_flag_unused_command_line_argument=no
6390fi
6391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6392fi
6393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6394$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6395	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6396	CFLAGS="$xorg_testset_save_CFLAGS"
6397fi
6398
6399found="no"
6400
6401	if test $found = "no" ; then
6402		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6403			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6404		fi
6405
6406		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6407			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6408		fi
6409
6410		CFLAGS="$CFLAGS -Wmissing-noreturn"
6411
6412		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6413$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6414		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6415		if eval \${$cacheid+:} false; then :
6416  $as_echo_n "(cached) " >&6
6417else
6418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419/* end confdefs.h.  */
6420int i;
6421int
6422main ()
6423{
6424
6425  ;
6426  return 0;
6427}
6428_ACEOF
6429if ac_fn_c_try_link "$LINENO"; then :
6430  eval $cacheid=yes
6431else
6432  eval $cacheid=no
6433fi
6434rm -f core conftest.err conftest.$ac_objext \
6435    conftest$ac_exeext conftest.$ac_ext
6436fi
6437
6438
6439		CFLAGS="$xorg_testset_save_CFLAGS"
6440
6441		eval supported=\$$cacheid
6442		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6443$as_echo "$supported" >&6; }
6444		if test "$supported" = "yes" ; then
6445			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6446			found="yes"
6447		fi
6448	fi
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464xorg_testset_save_CFLAGS="$CFLAGS"
6465
6466if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6467	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6468	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6469$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6470if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6471  $as_echo_n "(cached) " >&6
6472else
6473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474/* end confdefs.h.  */
6475int i;
6476_ACEOF
6477if ac_fn_c_try_compile "$LINENO"; then :
6478  xorg_cv_cc_flag_unknown_warning_option=yes
6479else
6480  xorg_cv_cc_flag_unknown_warning_option=no
6481fi
6482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6483fi
6484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6485$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6486	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6487	CFLAGS="$xorg_testset_save_CFLAGS"
6488fi
6489
6490if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6491	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6492		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6493	fi
6494	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6495	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6496$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6497if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6498  $as_echo_n "(cached) " >&6
6499else
6500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501/* end confdefs.h.  */
6502int i;
6503_ACEOF
6504if ac_fn_c_try_compile "$LINENO"; then :
6505  xorg_cv_cc_flag_unused_command_line_argument=yes
6506else
6507  xorg_cv_cc_flag_unused_command_line_argument=no
6508fi
6509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6510fi
6511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6512$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6513	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6514	CFLAGS="$xorg_testset_save_CFLAGS"
6515fi
6516
6517found="no"
6518
6519	if test $found = "no" ; then
6520		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6521			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6522		fi
6523
6524		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6525			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6526		fi
6527
6528		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6529
6530		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6531$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6532		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6533		if eval \${$cacheid+:} false; then :
6534  $as_echo_n "(cached) " >&6
6535else
6536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537/* end confdefs.h.  */
6538int i;
6539int
6540main ()
6541{
6542
6543  ;
6544  return 0;
6545}
6546_ACEOF
6547if ac_fn_c_try_link "$LINENO"; then :
6548  eval $cacheid=yes
6549else
6550  eval $cacheid=no
6551fi
6552rm -f core conftest.err conftest.$ac_objext \
6553    conftest$ac_exeext conftest.$ac_ext
6554fi
6555
6556
6557		CFLAGS="$xorg_testset_save_CFLAGS"
6558
6559		eval supported=\$$cacheid
6560		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6561$as_echo "$supported" >&6; }
6562		if test "$supported" = "yes" ; then
6563			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6564			found="yes"
6565		fi
6566	fi
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582xorg_testset_save_CFLAGS="$CFLAGS"
6583
6584if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6585	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6586	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6587$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6588if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6589  $as_echo_n "(cached) " >&6
6590else
6591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6592/* end confdefs.h.  */
6593int i;
6594_ACEOF
6595if ac_fn_c_try_compile "$LINENO"; then :
6596  xorg_cv_cc_flag_unknown_warning_option=yes
6597else
6598  xorg_cv_cc_flag_unknown_warning_option=no
6599fi
6600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6601fi
6602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6603$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6604	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6605	CFLAGS="$xorg_testset_save_CFLAGS"
6606fi
6607
6608if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6609	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6610		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6611	fi
6612	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6613	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6614$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6615if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6616  $as_echo_n "(cached) " >&6
6617else
6618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6619/* end confdefs.h.  */
6620int i;
6621_ACEOF
6622if ac_fn_c_try_compile "$LINENO"; then :
6623  xorg_cv_cc_flag_unused_command_line_argument=yes
6624else
6625  xorg_cv_cc_flag_unused_command_line_argument=no
6626fi
6627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6628fi
6629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6630$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6631	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6632	CFLAGS="$xorg_testset_save_CFLAGS"
6633fi
6634
6635found="no"
6636
6637	if test $found = "no" ; then
6638		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6639			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6640		fi
6641
6642		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6643			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6644		fi
6645
6646		CFLAGS="$CFLAGS -Wredundant-decls"
6647
6648		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6649$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6650		cacheid=xorg_cv_cc_flag__Wredundant_decls
6651		if eval \${$cacheid+:} false; then :
6652  $as_echo_n "(cached) " >&6
6653else
6654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655/* end confdefs.h.  */
6656int i;
6657int
6658main ()
6659{
6660
6661  ;
6662  return 0;
6663}
6664_ACEOF
6665if ac_fn_c_try_link "$LINENO"; then :
6666  eval $cacheid=yes
6667else
6668  eval $cacheid=no
6669fi
6670rm -f core conftest.err conftest.$ac_objext \
6671    conftest$ac_exeext conftest.$ac_ext
6672fi
6673
6674
6675		CFLAGS="$xorg_testset_save_CFLAGS"
6676
6677		eval supported=\$$cacheid
6678		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6679$as_echo "$supported" >&6; }
6680		if test "$supported" = "yes" ; then
6681			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6682			found="yes"
6683		fi
6684	fi
6685
6686
6687
6688# These are currently disabled because they are noisy.  They will be enabled
6689# in the future once the codebase is sufficiently modernized to silence
6690# them.  For now, I don't want them to drown out the other warnings.
6691# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6692# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6693# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6694
6695# Turn some warnings into errors, so we don't accidently get successful builds
6696# when there are problems that should be fixed.
6697
6698if test "x$SELECTIVE_WERROR" = "xyes" ; then
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712xorg_testset_save_CFLAGS="$CFLAGS"
6713
6714if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6715	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6716	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6717$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6718if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6719  $as_echo_n "(cached) " >&6
6720else
6721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722/* end confdefs.h.  */
6723int i;
6724_ACEOF
6725if ac_fn_c_try_compile "$LINENO"; then :
6726  xorg_cv_cc_flag_unknown_warning_option=yes
6727else
6728  xorg_cv_cc_flag_unknown_warning_option=no
6729fi
6730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6731fi
6732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6733$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6734	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6735	CFLAGS="$xorg_testset_save_CFLAGS"
6736fi
6737
6738if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6739	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6740		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6741	fi
6742	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6743	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6744$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6745if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6746  $as_echo_n "(cached) " >&6
6747else
6748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749/* end confdefs.h.  */
6750int i;
6751_ACEOF
6752if ac_fn_c_try_compile "$LINENO"; then :
6753  xorg_cv_cc_flag_unused_command_line_argument=yes
6754else
6755  xorg_cv_cc_flag_unused_command_line_argument=no
6756fi
6757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6758fi
6759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6760$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6761	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6762	CFLAGS="$xorg_testset_save_CFLAGS"
6763fi
6764
6765found="no"
6766
6767	if test $found = "no" ; then
6768		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6769			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6770		fi
6771
6772		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6773			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6774		fi
6775
6776		CFLAGS="$CFLAGS -Werror=implicit"
6777
6778		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
6779$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
6780		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6781		if eval \${$cacheid+:} false; then :
6782  $as_echo_n "(cached) " >&6
6783else
6784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785/* end confdefs.h.  */
6786int i;
6787int
6788main ()
6789{
6790
6791  ;
6792  return 0;
6793}
6794_ACEOF
6795if ac_fn_c_try_link "$LINENO"; then :
6796  eval $cacheid=yes
6797else
6798  eval $cacheid=no
6799fi
6800rm -f core conftest.err conftest.$ac_objext \
6801    conftest$ac_exeext conftest.$ac_ext
6802fi
6803
6804
6805		CFLAGS="$xorg_testset_save_CFLAGS"
6806
6807		eval supported=\$$cacheid
6808		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6809$as_echo "$supported" >&6; }
6810		if test "$supported" = "yes" ; then
6811			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6812			found="yes"
6813		fi
6814	fi
6815
6816	if test $found = "no" ; then
6817		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6818			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6819		fi
6820
6821		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6822			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6823		fi
6824
6825		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6826
6827		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6828$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6829		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6830		if eval \${$cacheid+:} false; then :
6831  $as_echo_n "(cached) " >&6
6832else
6833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834/* end confdefs.h.  */
6835int i;
6836int
6837main ()
6838{
6839
6840  ;
6841  return 0;
6842}
6843_ACEOF
6844if ac_fn_c_try_link "$LINENO"; then :
6845  eval $cacheid=yes
6846else
6847  eval $cacheid=no
6848fi
6849rm -f core conftest.err conftest.$ac_objext \
6850    conftest$ac_exeext conftest.$ac_ext
6851fi
6852
6853
6854		CFLAGS="$xorg_testset_save_CFLAGS"
6855
6856		eval supported=\$$cacheid
6857		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6858$as_echo "$supported" >&6; }
6859		if test "$supported" = "yes" ; then
6860			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6861			found="yes"
6862		fi
6863	fi
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879xorg_testset_save_CFLAGS="$CFLAGS"
6880
6881if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6882	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6883	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6884$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6885if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6886  $as_echo_n "(cached) " >&6
6887else
6888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6889/* end confdefs.h.  */
6890int i;
6891_ACEOF
6892if ac_fn_c_try_compile "$LINENO"; then :
6893  xorg_cv_cc_flag_unknown_warning_option=yes
6894else
6895  xorg_cv_cc_flag_unknown_warning_option=no
6896fi
6897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6898fi
6899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6900$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6901	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6902	CFLAGS="$xorg_testset_save_CFLAGS"
6903fi
6904
6905if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6906	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6907		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6908	fi
6909	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6910	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6911$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6912if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6913  $as_echo_n "(cached) " >&6
6914else
6915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916/* end confdefs.h.  */
6917int i;
6918_ACEOF
6919if ac_fn_c_try_compile "$LINENO"; then :
6920  xorg_cv_cc_flag_unused_command_line_argument=yes
6921else
6922  xorg_cv_cc_flag_unused_command_line_argument=no
6923fi
6924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6925fi
6926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6927$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6928	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6929	CFLAGS="$xorg_testset_save_CFLAGS"
6930fi
6931
6932found="no"
6933
6934	if test $found = "no" ; then
6935		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6936			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6937		fi
6938
6939		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6940			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6941		fi
6942
6943		CFLAGS="$CFLAGS -Werror=nonnull"
6944
6945		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
6946$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
6947		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6948		if eval \${$cacheid+:} false; then :
6949  $as_echo_n "(cached) " >&6
6950else
6951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6952/* end confdefs.h.  */
6953int i;
6954int
6955main ()
6956{
6957
6958  ;
6959  return 0;
6960}
6961_ACEOF
6962if ac_fn_c_try_link "$LINENO"; then :
6963  eval $cacheid=yes
6964else
6965  eval $cacheid=no
6966fi
6967rm -f core conftest.err conftest.$ac_objext \
6968    conftest$ac_exeext conftest.$ac_ext
6969fi
6970
6971
6972		CFLAGS="$xorg_testset_save_CFLAGS"
6973
6974		eval supported=\$$cacheid
6975		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6976$as_echo "$supported" >&6; }
6977		if test "$supported" = "yes" ; then
6978			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6979			found="yes"
6980		fi
6981	fi
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997xorg_testset_save_CFLAGS="$CFLAGS"
6998
6999if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7000	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7001	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7002$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7003if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7004  $as_echo_n "(cached) " >&6
7005else
7006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007/* end confdefs.h.  */
7008int i;
7009_ACEOF
7010if ac_fn_c_try_compile "$LINENO"; then :
7011  xorg_cv_cc_flag_unknown_warning_option=yes
7012else
7013  xorg_cv_cc_flag_unknown_warning_option=no
7014fi
7015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7016fi
7017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7018$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7019	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7020	CFLAGS="$xorg_testset_save_CFLAGS"
7021fi
7022
7023if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7024	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7025		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7026	fi
7027	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7028	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7029$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7030if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7031  $as_echo_n "(cached) " >&6
7032else
7033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034/* end confdefs.h.  */
7035int i;
7036_ACEOF
7037if ac_fn_c_try_compile "$LINENO"; then :
7038  xorg_cv_cc_flag_unused_command_line_argument=yes
7039else
7040  xorg_cv_cc_flag_unused_command_line_argument=no
7041fi
7042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7043fi
7044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7045$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7046	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7047	CFLAGS="$xorg_testset_save_CFLAGS"
7048fi
7049
7050found="no"
7051
7052	if test $found = "no" ; then
7053		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7054			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7055		fi
7056
7057		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7058			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7059		fi
7060
7061		CFLAGS="$CFLAGS -Werror=init-self"
7062
7063		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
7064$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
7065		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7066		if eval \${$cacheid+:} false; then :
7067  $as_echo_n "(cached) " >&6
7068else
7069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7070/* end confdefs.h.  */
7071int i;
7072int
7073main ()
7074{
7075
7076  ;
7077  return 0;
7078}
7079_ACEOF
7080if ac_fn_c_try_link "$LINENO"; then :
7081  eval $cacheid=yes
7082else
7083  eval $cacheid=no
7084fi
7085rm -f core conftest.err conftest.$ac_objext \
7086    conftest$ac_exeext conftest.$ac_ext
7087fi
7088
7089
7090		CFLAGS="$xorg_testset_save_CFLAGS"
7091
7092		eval supported=\$$cacheid
7093		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7094$as_echo "$supported" >&6; }
7095		if test "$supported" = "yes" ; then
7096			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7097			found="yes"
7098		fi
7099	fi
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115xorg_testset_save_CFLAGS="$CFLAGS"
7116
7117if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7118	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7119	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7120$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7121if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7122  $as_echo_n "(cached) " >&6
7123else
7124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7125/* end confdefs.h.  */
7126int i;
7127_ACEOF
7128if ac_fn_c_try_compile "$LINENO"; then :
7129  xorg_cv_cc_flag_unknown_warning_option=yes
7130else
7131  xorg_cv_cc_flag_unknown_warning_option=no
7132fi
7133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7134fi
7135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7136$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7137	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7138	CFLAGS="$xorg_testset_save_CFLAGS"
7139fi
7140
7141if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7142	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7143		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7144	fi
7145	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7146	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7147$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7148if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7149  $as_echo_n "(cached) " >&6
7150else
7151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152/* end confdefs.h.  */
7153int i;
7154_ACEOF
7155if ac_fn_c_try_compile "$LINENO"; then :
7156  xorg_cv_cc_flag_unused_command_line_argument=yes
7157else
7158  xorg_cv_cc_flag_unused_command_line_argument=no
7159fi
7160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7161fi
7162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7163$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7164	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7165	CFLAGS="$xorg_testset_save_CFLAGS"
7166fi
7167
7168found="no"
7169
7170	if test $found = "no" ; then
7171		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7172			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7173		fi
7174
7175		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7176			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7177		fi
7178
7179		CFLAGS="$CFLAGS -Werror=main"
7180
7181		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7182$as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7183		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7184		if eval \${$cacheid+:} false; then :
7185  $as_echo_n "(cached) " >&6
7186else
7187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188/* end confdefs.h.  */
7189int i;
7190int
7191main ()
7192{
7193
7194  ;
7195  return 0;
7196}
7197_ACEOF
7198if ac_fn_c_try_link "$LINENO"; then :
7199  eval $cacheid=yes
7200else
7201  eval $cacheid=no
7202fi
7203rm -f core conftest.err conftest.$ac_objext \
7204    conftest$ac_exeext conftest.$ac_ext
7205fi
7206
7207
7208		CFLAGS="$xorg_testset_save_CFLAGS"
7209
7210		eval supported=\$$cacheid
7211		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7212$as_echo "$supported" >&6; }
7213		if test "$supported" = "yes" ; then
7214			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7215			found="yes"
7216		fi
7217	fi
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233xorg_testset_save_CFLAGS="$CFLAGS"
7234
7235if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7236	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7237	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7238$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7239if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7240  $as_echo_n "(cached) " >&6
7241else
7242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7243/* end confdefs.h.  */
7244int i;
7245_ACEOF
7246if ac_fn_c_try_compile "$LINENO"; then :
7247  xorg_cv_cc_flag_unknown_warning_option=yes
7248else
7249  xorg_cv_cc_flag_unknown_warning_option=no
7250fi
7251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7252fi
7253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7254$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7255	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7256	CFLAGS="$xorg_testset_save_CFLAGS"
7257fi
7258
7259if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7260	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7261		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7262	fi
7263	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7264	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7265$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7266if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7267  $as_echo_n "(cached) " >&6
7268else
7269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270/* end confdefs.h.  */
7271int i;
7272_ACEOF
7273if ac_fn_c_try_compile "$LINENO"; then :
7274  xorg_cv_cc_flag_unused_command_line_argument=yes
7275else
7276  xorg_cv_cc_flag_unused_command_line_argument=no
7277fi
7278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7279fi
7280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7281$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7282	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7283	CFLAGS="$xorg_testset_save_CFLAGS"
7284fi
7285
7286found="no"
7287
7288	if test $found = "no" ; then
7289		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7290			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7291		fi
7292
7293		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7294			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7295		fi
7296
7297		CFLAGS="$CFLAGS -Werror=missing-braces"
7298
7299		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7300$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7301		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7302		if eval \${$cacheid+:} false; then :
7303  $as_echo_n "(cached) " >&6
7304else
7305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306/* end confdefs.h.  */
7307int i;
7308int
7309main ()
7310{
7311
7312  ;
7313  return 0;
7314}
7315_ACEOF
7316if ac_fn_c_try_link "$LINENO"; then :
7317  eval $cacheid=yes
7318else
7319  eval $cacheid=no
7320fi
7321rm -f core conftest.err conftest.$ac_objext \
7322    conftest$ac_exeext conftest.$ac_ext
7323fi
7324
7325
7326		CFLAGS="$xorg_testset_save_CFLAGS"
7327
7328		eval supported=\$$cacheid
7329		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7330$as_echo "$supported" >&6; }
7331		if test "$supported" = "yes" ; then
7332			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7333			found="yes"
7334		fi
7335	fi
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351xorg_testset_save_CFLAGS="$CFLAGS"
7352
7353if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7354	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7355	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7356$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7357if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7358  $as_echo_n "(cached) " >&6
7359else
7360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361/* end confdefs.h.  */
7362int i;
7363_ACEOF
7364if ac_fn_c_try_compile "$LINENO"; then :
7365  xorg_cv_cc_flag_unknown_warning_option=yes
7366else
7367  xorg_cv_cc_flag_unknown_warning_option=no
7368fi
7369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7370fi
7371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7372$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7373	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7374	CFLAGS="$xorg_testset_save_CFLAGS"
7375fi
7376
7377if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7378	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7379		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7380	fi
7381	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7382	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7383$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7384if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7385  $as_echo_n "(cached) " >&6
7386else
7387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7388/* end confdefs.h.  */
7389int i;
7390_ACEOF
7391if ac_fn_c_try_compile "$LINENO"; then :
7392  xorg_cv_cc_flag_unused_command_line_argument=yes
7393else
7394  xorg_cv_cc_flag_unused_command_line_argument=no
7395fi
7396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7397fi
7398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7399$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7400	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7401	CFLAGS="$xorg_testset_save_CFLAGS"
7402fi
7403
7404found="no"
7405
7406	if test $found = "no" ; then
7407		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7408			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7409		fi
7410
7411		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7412			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7413		fi
7414
7415		CFLAGS="$CFLAGS -Werror=sequence-point"
7416
7417		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7418$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7419		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7420		if eval \${$cacheid+:} false; then :
7421  $as_echo_n "(cached) " >&6
7422else
7423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424/* end confdefs.h.  */
7425int i;
7426int
7427main ()
7428{
7429
7430  ;
7431  return 0;
7432}
7433_ACEOF
7434if ac_fn_c_try_link "$LINENO"; then :
7435  eval $cacheid=yes
7436else
7437  eval $cacheid=no
7438fi
7439rm -f core conftest.err conftest.$ac_objext \
7440    conftest$ac_exeext conftest.$ac_ext
7441fi
7442
7443
7444		CFLAGS="$xorg_testset_save_CFLAGS"
7445
7446		eval supported=\$$cacheid
7447		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7448$as_echo "$supported" >&6; }
7449		if test "$supported" = "yes" ; then
7450			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7451			found="yes"
7452		fi
7453	fi
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469xorg_testset_save_CFLAGS="$CFLAGS"
7470
7471if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7472	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7473	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7474$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7475if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7476  $as_echo_n "(cached) " >&6
7477else
7478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479/* end confdefs.h.  */
7480int i;
7481_ACEOF
7482if ac_fn_c_try_compile "$LINENO"; then :
7483  xorg_cv_cc_flag_unknown_warning_option=yes
7484else
7485  xorg_cv_cc_flag_unknown_warning_option=no
7486fi
7487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7488fi
7489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7490$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7491	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7492	CFLAGS="$xorg_testset_save_CFLAGS"
7493fi
7494
7495if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7496	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7497		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7498	fi
7499	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7500	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7501$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7502if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7503  $as_echo_n "(cached) " >&6
7504else
7505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506/* end confdefs.h.  */
7507int i;
7508_ACEOF
7509if ac_fn_c_try_compile "$LINENO"; then :
7510  xorg_cv_cc_flag_unused_command_line_argument=yes
7511else
7512  xorg_cv_cc_flag_unused_command_line_argument=no
7513fi
7514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7515fi
7516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7517$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7518	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7519	CFLAGS="$xorg_testset_save_CFLAGS"
7520fi
7521
7522found="no"
7523
7524	if test $found = "no" ; then
7525		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7526			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7527		fi
7528
7529		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7530			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7531		fi
7532
7533		CFLAGS="$CFLAGS -Werror=return-type"
7534
7535		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7536$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7537		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7538		if eval \${$cacheid+:} false; then :
7539  $as_echo_n "(cached) " >&6
7540else
7541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542/* end confdefs.h.  */
7543int i;
7544int
7545main ()
7546{
7547
7548  ;
7549  return 0;
7550}
7551_ACEOF
7552if ac_fn_c_try_link "$LINENO"; then :
7553  eval $cacheid=yes
7554else
7555  eval $cacheid=no
7556fi
7557rm -f core conftest.err conftest.$ac_objext \
7558    conftest$ac_exeext conftest.$ac_ext
7559fi
7560
7561
7562		CFLAGS="$xorg_testset_save_CFLAGS"
7563
7564		eval supported=\$$cacheid
7565		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7566$as_echo "$supported" >&6; }
7567		if test "$supported" = "yes" ; then
7568			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7569			found="yes"
7570		fi
7571	fi
7572
7573	if test $found = "no" ; then
7574		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7575			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7576		fi
7577
7578		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7579			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7580		fi
7581
7582		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7583
7584		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7585$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7586		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7587		if eval \${$cacheid+:} false; then :
7588  $as_echo_n "(cached) " >&6
7589else
7590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591/* end confdefs.h.  */
7592int i;
7593int
7594main ()
7595{
7596
7597  ;
7598  return 0;
7599}
7600_ACEOF
7601if ac_fn_c_try_link "$LINENO"; then :
7602  eval $cacheid=yes
7603else
7604  eval $cacheid=no
7605fi
7606rm -f core conftest.err conftest.$ac_objext \
7607    conftest$ac_exeext conftest.$ac_ext
7608fi
7609
7610
7611		CFLAGS="$xorg_testset_save_CFLAGS"
7612
7613		eval supported=\$$cacheid
7614		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7615$as_echo "$supported" >&6; }
7616		if test "$supported" = "yes" ; then
7617			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7618			found="yes"
7619		fi
7620	fi
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636xorg_testset_save_CFLAGS="$CFLAGS"
7637
7638if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7639	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7640	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7641$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7642if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7643  $as_echo_n "(cached) " >&6
7644else
7645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7646/* end confdefs.h.  */
7647int i;
7648_ACEOF
7649if ac_fn_c_try_compile "$LINENO"; then :
7650  xorg_cv_cc_flag_unknown_warning_option=yes
7651else
7652  xorg_cv_cc_flag_unknown_warning_option=no
7653fi
7654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7655fi
7656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7657$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7658	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7659	CFLAGS="$xorg_testset_save_CFLAGS"
7660fi
7661
7662if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7663	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7664		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7665	fi
7666	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7667	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7668$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7669if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7670  $as_echo_n "(cached) " >&6
7671else
7672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7673/* end confdefs.h.  */
7674int i;
7675_ACEOF
7676if ac_fn_c_try_compile "$LINENO"; then :
7677  xorg_cv_cc_flag_unused_command_line_argument=yes
7678else
7679  xorg_cv_cc_flag_unused_command_line_argument=no
7680fi
7681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7682fi
7683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7684$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7685	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7686	CFLAGS="$xorg_testset_save_CFLAGS"
7687fi
7688
7689found="no"
7690
7691	if test $found = "no" ; then
7692		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7693			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7694		fi
7695
7696		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7697			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7698		fi
7699
7700		CFLAGS="$CFLAGS -Werror=trigraphs"
7701
7702		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7703$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7704		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7705		if eval \${$cacheid+:} false; then :
7706  $as_echo_n "(cached) " >&6
7707else
7708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709/* end confdefs.h.  */
7710int i;
7711int
7712main ()
7713{
7714
7715  ;
7716  return 0;
7717}
7718_ACEOF
7719if ac_fn_c_try_link "$LINENO"; then :
7720  eval $cacheid=yes
7721else
7722  eval $cacheid=no
7723fi
7724rm -f core conftest.err conftest.$ac_objext \
7725    conftest$ac_exeext conftest.$ac_ext
7726fi
7727
7728
7729		CFLAGS="$xorg_testset_save_CFLAGS"
7730
7731		eval supported=\$$cacheid
7732		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7733$as_echo "$supported" >&6; }
7734		if test "$supported" = "yes" ; then
7735			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7736			found="yes"
7737		fi
7738	fi
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754xorg_testset_save_CFLAGS="$CFLAGS"
7755
7756if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7757	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7758	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7759$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7760if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7761  $as_echo_n "(cached) " >&6
7762else
7763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764/* end confdefs.h.  */
7765int i;
7766_ACEOF
7767if ac_fn_c_try_compile "$LINENO"; then :
7768  xorg_cv_cc_flag_unknown_warning_option=yes
7769else
7770  xorg_cv_cc_flag_unknown_warning_option=no
7771fi
7772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7773fi
7774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7775$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7776	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7777	CFLAGS="$xorg_testset_save_CFLAGS"
7778fi
7779
7780if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7781	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7782		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7783	fi
7784	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7785	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7786$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7787if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7788  $as_echo_n "(cached) " >&6
7789else
7790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7791/* end confdefs.h.  */
7792int i;
7793_ACEOF
7794if ac_fn_c_try_compile "$LINENO"; then :
7795  xorg_cv_cc_flag_unused_command_line_argument=yes
7796else
7797  xorg_cv_cc_flag_unused_command_line_argument=no
7798fi
7799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7800fi
7801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7802$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7803	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7804	CFLAGS="$xorg_testset_save_CFLAGS"
7805fi
7806
7807found="no"
7808
7809	if test $found = "no" ; then
7810		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7811			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7812		fi
7813
7814		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7815			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7816		fi
7817
7818		CFLAGS="$CFLAGS -Werror=array-bounds"
7819
7820		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
7821$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
7822		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7823		if eval \${$cacheid+:} false; then :
7824  $as_echo_n "(cached) " >&6
7825else
7826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827/* end confdefs.h.  */
7828int i;
7829int
7830main ()
7831{
7832
7833  ;
7834  return 0;
7835}
7836_ACEOF
7837if ac_fn_c_try_link "$LINENO"; then :
7838  eval $cacheid=yes
7839else
7840  eval $cacheid=no
7841fi
7842rm -f core conftest.err conftest.$ac_objext \
7843    conftest$ac_exeext conftest.$ac_ext
7844fi
7845
7846
7847		CFLAGS="$xorg_testset_save_CFLAGS"
7848
7849		eval supported=\$$cacheid
7850		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7851$as_echo "$supported" >&6; }
7852		if test "$supported" = "yes" ; then
7853			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7854			found="yes"
7855		fi
7856	fi
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872xorg_testset_save_CFLAGS="$CFLAGS"
7873
7874if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7875	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7876	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7877$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7878if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7879  $as_echo_n "(cached) " >&6
7880else
7881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882/* end confdefs.h.  */
7883int i;
7884_ACEOF
7885if ac_fn_c_try_compile "$LINENO"; then :
7886  xorg_cv_cc_flag_unknown_warning_option=yes
7887else
7888  xorg_cv_cc_flag_unknown_warning_option=no
7889fi
7890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7891fi
7892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7893$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7894	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7895	CFLAGS="$xorg_testset_save_CFLAGS"
7896fi
7897
7898if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7899	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7900		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7901	fi
7902	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7903	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7904$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7905if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7906  $as_echo_n "(cached) " >&6
7907else
7908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909/* end confdefs.h.  */
7910int i;
7911_ACEOF
7912if ac_fn_c_try_compile "$LINENO"; then :
7913  xorg_cv_cc_flag_unused_command_line_argument=yes
7914else
7915  xorg_cv_cc_flag_unused_command_line_argument=no
7916fi
7917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7918fi
7919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7920$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7921	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7922	CFLAGS="$xorg_testset_save_CFLAGS"
7923fi
7924
7925found="no"
7926
7927	if test $found = "no" ; then
7928		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7929			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7930		fi
7931
7932		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7933			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7934		fi
7935
7936		CFLAGS="$CFLAGS -Werror=write-strings"
7937
7938		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
7939$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
7940		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7941		if eval \${$cacheid+:} false; then :
7942  $as_echo_n "(cached) " >&6
7943else
7944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945/* end confdefs.h.  */
7946int i;
7947int
7948main ()
7949{
7950
7951  ;
7952  return 0;
7953}
7954_ACEOF
7955if ac_fn_c_try_link "$LINENO"; then :
7956  eval $cacheid=yes
7957else
7958  eval $cacheid=no
7959fi
7960rm -f core conftest.err conftest.$ac_objext \
7961    conftest$ac_exeext conftest.$ac_ext
7962fi
7963
7964
7965		CFLAGS="$xorg_testset_save_CFLAGS"
7966
7967		eval supported=\$$cacheid
7968		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7969$as_echo "$supported" >&6; }
7970		if test "$supported" = "yes" ; then
7971			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7972			found="yes"
7973		fi
7974	fi
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990xorg_testset_save_CFLAGS="$CFLAGS"
7991
7992if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7993	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7994	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7995$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7996if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7997  $as_echo_n "(cached) " >&6
7998else
7999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000/* end confdefs.h.  */
8001int i;
8002_ACEOF
8003if ac_fn_c_try_compile "$LINENO"; then :
8004  xorg_cv_cc_flag_unknown_warning_option=yes
8005else
8006  xorg_cv_cc_flag_unknown_warning_option=no
8007fi
8008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8009fi
8010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8011$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8012	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8013	CFLAGS="$xorg_testset_save_CFLAGS"
8014fi
8015
8016if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8017	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8018		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8019	fi
8020	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8021	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8022$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8023if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8024  $as_echo_n "(cached) " >&6
8025else
8026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8027/* end confdefs.h.  */
8028int i;
8029_ACEOF
8030if ac_fn_c_try_compile "$LINENO"; then :
8031  xorg_cv_cc_flag_unused_command_line_argument=yes
8032else
8033  xorg_cv_cc_flag_unused_command_line_argument=no
8034fi
8035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8036fi
8037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8038$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8039	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8040	CFLAGS="$xorg_testset_save_CFLAGS"
8041fi
8042
8043found="no"
8044
8045	if test $found = "no" ; then
8046		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8047			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8048		fi
8049
8050		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8051			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8052		fi
8053
8054		CFLAGS="$CFLAGS -Werror=address"
8055
8056		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
8057$as_echo_n "checking if $CC supports-Werror=address... " >&6; }
8058		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8059		if eval \${$cacheid+:} false; then :
8060  $as_echo_n "(cached) " >&6
8061else
8062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063/* end confdefs.h.  */
8064int i;
8065int
8066main ()
8067{
8068
8069  ;
8070  return 0;
8071}
8072_ACEOF
8073if ac_fn_c_try_link "$LINENO"; then :
8074  eval $cacheid=yes
8075else
8076  eval $cacheid=no
8077fi
8078rm -f core conftest.err conftest.$ac_objext \
8079    conftest$ac_exeext conftest.$ac_ext
8080fi
8081
8082
8083		CFLAGS="$xorg_testset_save_CFLAGS"
8084
8085		eval supported=\$$cacheid
8086		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8087$as_echo "$supported" >&6; }
8088		if test "$supported" = "yes" ; then
8089			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8090			found="yes"
8091		fi
8092	fi
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108xorg_testset_save_CFLAGS="$CFLAGS"
8109
8110if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8111	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8112	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8113$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8114if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8115  $as_echo_n "(cached) " >&6
8116else
8117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8118/* end confdefs.h.  */
8119int i;
8120_ACEOF
8121if ac_fn_c_try_compile "$LINENO"; then :
8122  xorg_cv_cc_flag_unknown_warning_option=yes
8123else
8124  xorg_cv_cc_flag_unknown_warning_option=no
8125fi
8126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8127fi
8128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8129$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8130	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8131	CFLAGS="$xorg_testset_save_CFLAGS"
8132fi
8133
8134if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8135	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8136		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8137	fi
8138	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8139	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8140$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8141if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8142  $as_echo_n "(cached) " >&6
8143else
8144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145/* end confdefs.h.  */
8146int i;
8147_ACEOF
8148if ac_fn_c_try_compile "$LINENO"; then :
8149  xorg_cv_cc_flag_unused_command_line_argument=yes
8150else
8151  xorg_cv_cc_flag_unused_command_line_argument=no
8152fi
8153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8154fi
8155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8156$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8157	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8158	CFLAGS="$xorg_testset_save_CFLAGS"
8159fi
8160
8161found="no"
8162
8163	if test $found = "no" ; then
8164		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8165			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8166		fi
8167
8168		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8169			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8170		fi
8171
8172		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8173
8174		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8175$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8176		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8177		if eval \${$cacheid+:} false; then :
8178  $as_echo_n "(cached) " >&6
8179else
8180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8181/* end confdefs.h.  */
8182int i;
8183int
8184main ()
8185{
8186
8187  ;
8188  return 0;
8189}
8190_ACEOF
8191if ac_fn_c_try_link "$LINENO"; then :
8192  eval $cacheid=yes
8193else
8194  eval $cacheid=no
8195fi
8196rm -f core conftest.err conftest.$ac_objext \
8197    conftest$ac_exeext conftest.$ac_ext
8198fi
8199
8200
8201		CFLAGS="$xorg_testset_save_CFLAGS"
8202
8203		eval supported=\$$cacheid
8204		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8205$as_echo "$supported" >&6; }
8206		if test "$supported" = "yes" ; then
8207			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8208			found="yes"
8209		fi
8210	fi
8211
8212	if test $found = "no" ; then
8213		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8214			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8215		fi
8216
8217		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8218			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8219		fi
8220
8221		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8222
8223		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8224$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8225		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8226		if eval \${$cacheid+:} false; then :
8227  $as_echo_n "(cached) " >&6
8228else
8229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8230/* end confdefs.h.  */
8231int i;
8232int
8233main ()
8234{
8235
8236  ;
8237  return 0;
8238}
8239_ACEOF
8240if ac_fn_c_try_link "$LINENO"; then :
8241  eval $cacheid=yes
8242else
8243  eval $cacheid=no
8244fi
8245rm -f core conftest.err conftest.$ac_objext \
8246    conftest$ac_exeext conftest.$ac_ext
8247fi
8248
8249
8250		CFLAGS="$xorg_testset_save_CFLAGS"
8251
8252		eval supported=\$$cacheid
8253		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8254$as_echo "$supported" >&6; }
8255		if test "$supported" = "yes" ; then
8256			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8257			found="yes"
8258		fi
8259	fi
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275xorg_testset_save_CFLAGS="$CFLAGS"
8276
8277if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8278	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8279	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8280$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8281if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8282  $as_echo_n "(cached) " >&6
8283else
8284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8285/* end confdefs.h.  */
8286int i;
8287_ACEOF
8288if ac_fn_c_try_compile "$LINENO"; then :
8289  xorg_cv_cc_flag_unknown_warning_option=yes
8290else
8291  xorg_cv_cc_flag_unknown_warning_option=no
8292fi
8293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8294fi
8295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8296$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8297	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8298	CFLAGS="$xorg_testset_save_CFLAGS"
8299fi
8300
8301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8302	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8303		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8304	fi
8305	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8306	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8307$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8308if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8309  $as_echo_n "(cached) " >&6
8310else
8311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8312/* end confdefs.h.  */
8313int i;
8314_ACEOF
8315if ac_fn_c_try_compile "$LINENO"; then :
8316  xorg_cv_cc_flag_unused_command_line_argument=yes
8317else
8318  xorg_cv_cc_flag_unused_command_line_argument=no
8319fi
8320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8321fi
8322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8323$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8324	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8325	CFLAGS="$xorg_testset_save_CFLAGS"
8326fi
8327
8328found="no"
8329
8330	if test $found = "no" ; then
8331		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8332			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8333		fi
8334
8335		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8336			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8337		fi
8338
8339		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8340
8341		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8342$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8343		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8344		if eval \${$cacheid+:} false; then :
8345  $as_echo_n "(cached) " >&6
8346else
8347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348/* end confdefs.h.  */
8349int i;
8350int
8351main ()
8352{
8353
8354  ;
8355  return 0;
8356}
8357_ACEOF
8358if ac_fn_c_try_link "$LINENO"; then :
8359  eval $cacheid=yes
8360else
8361  eval $cacheid=no
8362fi
8363rm -f core conftest.err conftest.$ac_objext \
8364    conftest$ac_exeext conftest.$ac_ext
8365fi
8366
8367
8368		CFLAGS="$xorg_testset_save_CFLAGS"
8369
8370		eval supported=\$$cacheid
8371		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8372$as_echo "$supported" >&6; }
8373		if test "$supported" = "yes" ; then
8374			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8375			found="yes"
8376		fi
8377	fi
8378
8379 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8380else
8381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
8382$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396xorg_testset_save_CFLAGS="$CFLAGS"
8397
8398if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8399	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8400	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8401$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8402if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8403  $as_echo_n "(cached) " >&6
8404else
8405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8406/* end confdefs.h.  */
8407int i;
8408_ACEOF
8409if ac_fn_c_try_compile "$LINENO"; then :
8410  xorg_cv_cc_flag_unknown_warning_option=yes
8411else
8412  xorg_cv_cc_flag_unknown_warning_option=no
8413fi
8414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8415fi
8416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8417$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8418	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8419	CFLAGS="$xorg_testset_save_CFLAGS"
8420fi
8421
8422if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8423	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8424		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8425	fi
8426	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8427	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8428$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8429if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8430  $as_echo_n "(cached) " >&6
8431else
8432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8433/* end confdefs.h.  */
8434int i;
8435_ACEOF
8436if ac_fn_c_try_compile "$LINENO"; then :
8437  xorg_cv_cc_flag_unused_command_line_argument=yes
8438else
8439  xorg_cv_cc_flag_unused_command_line_argument=no
8440fi
8441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8442fi
8443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8444$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8445	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8446	CFLAGS="$xorg_testset_save_CFLAGS"
8447fi
8448
8449found="no"
8450
8451	if test $found = "no" ; then
8452		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8453			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8454		fi
8455
8456		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8457			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8458		fi
8459
8460		CFLAGS="$CFLAGS -Wimplicit"
8461
8462		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8463$as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8464		cacheid=xorg_cv_cc_flag__Wimplicit
8465		if eval \${$cacheid+:} false; then :
8466  $as_echo_n "(cached) " >&6
8467else
8468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8469/* end confdefs.h.  */
8470int i;
8471int
8472main ()
8473{
8474
8475  ;
8476  return 0;
8477}
8478_ACEOF
8479if ac_fn_c_try_link "$LINENO"; then :
8480  eval $cacheid=yes
8481else
8482  eval $cacheid=no
8483fi
8484rm -f core conftest.err conftest.$ac_objext \
8485    conftest$ac_exeext conftest.$ac_ext
8486fi
8487
8488
8489		CFLAGS="$xorg_testset_save_CFLAGS"
8490
8491		eval supported=\$$cacheid
8492		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8493$as_echo "$supported" >&6; }
8494		if test "$supported" = "yes" ; then
8495			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8496			found="yes"
8497		fi
8498	fi
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514xorg_testset_save_CFLAGS="$CFLAGS"
8515
8516if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8517	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8518	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8519$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8520if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8521  $as_echo_n "(cached) " >&6
8522else
8523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8524/* end confdefs.h.  */
8525int i;
8526_ACEOF
8527if ac_fn_c_try_compile "$LINENO"; then :
8528  xorg_cv_cc_flag_unknown_warning_option=yes
8529else
8530  xorg_cv_cc_flag_unknown_warning_option=no
8531fi
8532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8533fi
8534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8535$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8536	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8537	CFLAGS="$xorg_testset_save_CFLAGS"
8538fi
8539
8540if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8541	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8542		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8543	fi
8544	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8545	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8546$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8547if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8548  $as_echo_n "(cached) " >&6
8549else
8550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8551/* end confdefs.h.  */
8552int i;
8553_ACEOF
8554if ac_fn_c_try_compile "$LINENO"; then :
8555  xorg_cv_cc_flag_unused_command_line_argument=yes
8556else
8557  xorg_cv_cc_flag_unused_command_line_argument=no
8558fi
8559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8560fi
8561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8562$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8563	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8564	CFLAGS="$xorg_testset_save_CFLAGS"
8565fi
8566
8567found="no"
8568
8569	if test $found = "no" ; then
8570		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8571			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8572		fi
8573
8574		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8575			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8576		fi
8577
8578		CFLAGS="$CFLAGS -Wnonnull"
8579
8580		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8581$as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8582		cacheid=xorg_cv_cc_flag__Wnonnull
8583		if eval \${$cacheid+:} false; then :
8584  $as_echo_n "(cached) " >&6
8585else
8586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8587/* end confdefs.h.  */
8588int i;
8589int
8590main ()
8591{
8592
8593  ;
8594  return 0;
8595}
8596_ACEOF
8597if ac_fn_c_try_link "$LINENO"; then :
8598  eval $cacheid=yes
8599else
8600  eval $cacheid=no
8601fi
8602rm -f core conftest.err conftest.$ac_objext \
8603    conftest$ac_exeext conftest.$ac_ext
8604fi
8605
8606
8607		CFLAGS="$xorg_testset_save_CFLAGS"
8608
8609		eval supported=\$$cacheid
8610		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8611$as_echo "$supported" >&6; }
8612		if test "$supported" = "yes" ; then
8613			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8614			found="yes"
8615		fi
8616	fi
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632xorg_testset_save_CFLAGS="$CFLAGS"
8633
8634if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8635	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8636	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8637$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8638if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8639  $as_echo_n "(cached) " >&6
8640else
8641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642/* end confdefs.h.  */
8643int i;
8644_ACEOF
8645if ac_fn_c_try_compile "$LINENO"; then :
8646  xorg_cv_cc_flag_unknown_warning_option=yes
8647else
8648  xorg_cv_cc_flag_unknown_warning_option=no
8649fi
8650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8651fi
8652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8653$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8654	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8655	CFLAGS="$xorg_testset_save_CFLAGS"
8656fi
8657
8658if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8659	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8660		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8661	fi
8662	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8663	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8664$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8665if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8666  $as_echo_n "(cached) " >&6
8667else
8668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8669/* end confdefs.h.  */
8670int i;
8671_ACEOF
8672if ac_fn_c_try_compile "$LINENO"; then :
8673  xorg_cv_cc_flag_unused_command_line_argument=yes
8674else
8675  xorg_cv_cc_flag_unused_command_line_argument=no
8676fi
8677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8678fi
8679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8680$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8681	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8682	CFLAGS="$xorg_testset_save_CFLAGS"
8683fi
8684
8685found="no"
8686
8687	if test $found = "no" ; then
8688		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8689			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8690		fi
8691
8692		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8693			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8694		fi
8695
8696		CFLAGS="$CFLAGS -Winit-self"
8697
8698		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8699$as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8700		cacheid=xorg_cv_cc_flag__Winit_self
8701		if eval \${$cacheid+:} false; then :
8702  $as_echo_n "(cached) " >&6
8703else
8704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705/* end confdefs.h.  */
8706int i;
8707int
8708main ()
8709{
8710
8711  ;
8712  return 0;
8713}
8714_ACEOF
8715if ac_fn_c_try_link "$LINENO"; then :
8716  eval $cacheid=yes
8717else
8718  eval $cacheid=no
8719fi
8720rm -f core conftest.err conftest.$ac_objext \
8721    conftest$ac_exeext conftest.$ac_ext
8722fi
8723
8724
8725		CFLAGS="$xorg_testset_save_CFLAGS"
8726
8727		eval supported=\$$cacheid
8728		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8729$as_echo "$supported" >&6; }
8730		if test "$supported" = "yes" ; then
8731			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8732			found="yes"
8733		fi
8734	fi
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750xorg_testset_save_CFLAGS="$CFLAGS"
8751
8752if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8753	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8754	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8755$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8756if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8757  $as_echo_n "(cached) " >&6
8758else
8759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760/* end confdefs.h.  */
8761int i;
8762_ACEOF
8763if ac_fn_c_try_compile "$LINENO"; then :
8764  xorg_cv_cc_flag_unknown_warning_option=yes
8765else
8766  xorg_cv_cc_flag_unknown_warning_option=no
8767fi
8768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8769fi
8770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8771$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8772	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8773	CFLAGS="$xorg_testset_save_CFLAGS"
8774fi
8775
8776if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8777	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8778		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8779	fi
8780	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8781	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8782$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8783if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8784  $as_echo_n "(cached) " >&6
8785else
8786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8787/* end confdefs.h.  */
8788int i;
8789_ACEOF
8790if ac_fn_c_try_compile "$LINENO"; then :
8791  xorg_cv_cc_flag_unused_command_line_argument=yes
8792else
8793  xorg_cv_cc_flag_unused_command_line_argument=no
8794fi
8795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8796fi
8797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8798$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8799	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8800	CFLAGS="$xorg_testset_save_CFLAGS"
8801fi
8802
8803found="no"
8804
8805	if test $found = "no" ; then
8806		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8807			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8808		fi
8809
8810		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8811			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8812		fi
8813
8814		CFLAGS="$CFLAGS -Wmain"
8815
8816		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
8817$as_echo_n "checking if $CC supports-Wmain... " >&6; }
8818		cacheid=xorg_cv_cc_flag__Wmain
8819		if eval \${$cacheid+:} false; then :
8820  $as_echo_n "(cached) " >&6
8821else
8822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8823/* end confdefs.h.  */
8824int i;
8825int
8826main ()
8827{
8828
8829  ;
8830  return 0;
8831}
8832_ACEOF
8833if ac_fn_c_try_link "$LINENO"; then :
8834  eval $cacheid=yes
8835else
8836  eval $cacheid=no
8837fi
8838rm -f core conftest.err conftest.$ac_objext \
8839    conftest$ac_exeext conftest.$ac_ext
8840fi
8841
8842
8843		CFLAGS="$xorg_testset_save_CFLAGS"
8844
8845		eval supported=\$$cacheid
8846		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8847$as_echo "$supported" >&6; }
8848		if test "$supported" = "yes" ; then
8849			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8850			found="yes"
8851		fi
8852	fi
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868xorg_testset_save_CFLAGS="$CFLAGS"
8869
8870if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8871	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8872	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8873$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8874if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8875  $as_echo_n "(cached) " >&6
8876else
8877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8878/* end confdefs.h.  */
8879int i;
8880_ACEOF
8881if ac_fn_c_try_compile "$LINENO"; then :
8882  xorg_cv_cc_flag_unknown_warning_option=yes
8883else
8884  xorg_cv_cc_flag_unknown_warning_option=no
8885fi
8886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8887fi
8888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8889$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8890	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8891	CFLAGS="$xorg_testset_save_CFLAGS"
8892fi
8893
8894if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8895	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8896		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8897	fi
8898	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8899	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8900$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8901if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8902  $as_echo_n "(cached) " >&6
8903else
8904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8905/* end confdefs.h.  */
8906int i;
8907_ACEOF
8908if ac_fn_c_try_compile "$LINENO"; then :
8909  xorg_cv_cc_flag_unused_command_line_argument=yes
8910else
8911  xorg_cv_cc_flag_unused_command_line_argument=no
8912fi
8913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8914fi
8915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8916$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8917	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8918	CFLAGS="$xorg_testset_save_CFLAGS"
8919fi
8920
8921found="no"
8922
8923	if test $found = "no" ; then
8924		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8925			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8926		fi
8927
8928		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8929			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8930		fi
8931
8932		CFLAGS="$CFLAGS -Wmissing-braces"
8933
8934		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
8935$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
8936		cacheid=xorg_cv_cc_flag__Wmissing_braces
8937		if eval \${$cacheid+:} false; then :
8938  $as_echo_n "(cached) " >&6
8939else
8940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941/* end confdefs.h.  */
8942int i;
8943int
8944main ()
8945{
8946
8947  ;
8948  return 0;
8949}
8950_ACEOF
8951if ac_fn_c_try_link "$LINENO"; then :
8952  eval $cacheid=yes
8953else
8954  eval $cacheid=no
8955fi
8956rm -f core conftest.err conftest.$ac_objext \
8957    conftest$ac_exeext conftest.$ac_ext
8958fi
8959
8960
8961		CFLAGS="$xorg_testset_save_CFLAGS"
8962
8963		eval supported=\$$cacheid
8964		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8965$as_echo "$supported" >&6; }
8966		if test "$supported" = "yes" ; then
8967			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8968			found="yes"
8969		fi
8970	fi
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986xorg_testset_save_CFLAGS="$CFLAGS"
8987
8988if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8989	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8990	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8991$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8992if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8993  $as_echo_n "(cached) " >&6
8994else
8995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996/* end confdefs.h.  */
8997int i;
8998_ACEOF
8999if ac_fn_c_try_compile "$LINENO"; then :
9000  xorg_cv_cc_flag_unknown_warning_option=yes
9001else
9002  xorg_cv_cc_flag_unknown_warning_option=no
9003fi
9004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9005fi
9006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9007$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9008	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9009	CFLAGS="$xorg_testset_save_CFLAGS"
9010fi
9011
9012if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9013	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9014		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9015	fi
9016	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9017	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9018$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9019if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9020  $as_echo_n "(cached) " >&6
9021else
9022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9023/* end confdefs.h.  */
9024int i;
9025_ACEOF
9026if ac_fn_c_try_compile "$LINENO"; then :
9027  xorg_cv_cc_flag_unused_command_line_argument=yes
9028else
9029  xorg_cv_cc_flag_unused_command_line_argument=no
9030fi
9031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9032fi
9033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9034$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9035	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9036	CFLAGS="$xorg_testset_save_CFLAGS"
9037fi
9038
9039found="no"
9040
9041	if test $found = "no" ; then
9042		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9043			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9044		fi
9045
9046		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9047			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9048		fi
9049
9050		CFLAGS="$CFLAGS -Wsequence-point"
9051
9052		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
9053$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
9054		cacheid=xorg_cv_cc_flag__Wsequence_point
9055		if eval \${$cacheid+:} false; then :
9056  $as_echo_n "(cached) " >&6
9057else
9058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059/* end confdefs.h.  */
9060int i;
9061int
9062main ()
9063{
9064
9065  ;
9066  return 0;
9067}
9068_ACEOF
9069if ac_fn_c_try_link "$LINENO"; then :
9070  eval $cacheid=yes
9071else
9072  eval $cacheid=no
9073fi
9074rm -f core conftest.err conftest.$ac_objext \
9075    conftest$ac_exeext conftest.$ac_ext
9076fi
9077
9078
9079		CFLAGS="$xorg_testset_save_CFLAGS"
9080
9081		eval supported=\$$cacheid
9082		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9083$as_echo "$supported" >&6; }
9084		if test "$supported" = "yes" ; then
9085			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9086			found="yes"
9087		fi
9088	fi
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104xorg_testset_save_CFLAGS="$CFLAGS"
9105
9106if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9107	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9108	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9109$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9110if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9111  $as_echo_n "(cached) " >&6
9112else
9113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114/* end confdefs.h.  */
9115int i;
9116_ACEOF
9117if ac_fn_c_try_compile "$LINENO"; then :
9118  xorg_cv_cc_flag_unknown_warning_option=yes
9119else
9120  xorg_cv_cc_flag_unknown_warning_option=no
9121fi
9122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9123fi
9124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9125$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9126	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9127	CFLAGS="$xorg_testset_save_CFLAGS"
9128fi
9129
9130if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9131	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9132		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9133	fi
9134	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9135	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9136$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9137if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9138  $as_echo_n "(cached) " >&6
9139else
9140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9141/* end confdefs.h.  */
9142int i;
9143_ACEOF
9144if ac_fn_c_try_compile "$LINENO"; then :
9145  xorg_cv_cc_flag_unused_command_line_argument=yes
9146else
9147  xorg_cv_cc_flag_unused_command_line_argument=no
9148fi
9149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9150fi
9151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9152$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9153	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9154	CFLAGS="$xorg_testset_save_CFLAGS"
9155fi
9156
9157found="no"
9158
9159	if test $found = "no" ; then
9160		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9161			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9162		fi
9163
9164		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9165			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9166		fi
9167
9168		CFLAGS="$CFLAGS -Wreturn-type"
9169
9170		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9171$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9172		cacheid=xorg_cv_cc_flag__Wreturn_type
9173		if eval \${$cacheid+:} false; then :
9174  $as_echo_n "(cached) " >&6
9175else
9176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9177/* end confdefs.h.  */
9178int i;
9179int
9180main ()
9181{
9182
9183  ;
9184  return 0;
9185}
9186_ACEOF
9187if ac_fn_c_try_link "$LINENO"; then :
9188  eval $cacheid=yes
9189else
9190  eval $cacheid=no
9191fi
9192rm -f core conftest.err conftest.$ac_objext \
9193    conftest$ac_exeext conftest.$ac_ext
9194fi
9195
9196
9197		CFLAGS="$xorg_testset_save_CFLAGS"
9198
9199		eval supported=\$$cacheid
9200		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9201$as_echo "$supported" >&6; }
9202		if test "$supported" = "yes" ; then
9203			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9204			found="yes"
9205		fi
9206	fi
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222xorg_testset_save_CFLAGS="$CFLAGS"
9223
9224if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9225	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9226	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9227$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9228if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9229  $as_echo_n "(cached) " >&6
9230else
9231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232/* end confdefs.h.  */
9233int i;
9234_ACEOF
9235if ac_fn_c_try_compile "$LINENO"; then :
9236  xorg_cv_cc_flag_unknown_warning_option=yes
9237else
9238  xorg_cv_cc_flag_unknown_warning_option=no
9239fi
9240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9241fi
9242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9243$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9244	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9245	CFLAGS="$xorg_testset_save_CFLAGS"
9246fi
9247
9248if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9249	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9250		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9251	fi
9252	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9253	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9254$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9255if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9256  $as_echo_n "(cached) " >&6
9257else
9258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9259/* end confdefs.h.  */
9260int i;
9261_ACEOF
9262if ac_fn_c_try_compile "$LINENO"; then :
9263  xorg_cv_cc_flag_unused_command_line_argument=yes
9264else
9265  xorg_cv_cc_flag_unused_command_line_argument=no
9266fi
9267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9268fi
9269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9270$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9271	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9272	CFLAGS="$xorg_testset_save_CFLAGS"
9273fi
9274
9275found="no"
9276
9277	if test $found = "no" ; then
9278		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9279			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9280		fi
9281
9282		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9283			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9284		fi
9285
9286		CFLAGS="$CFLAGS -Wtrigraphs"
9287
9288		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9289$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9290		cacheid=xorg_cv_cc_flag__Wtrigraphs
9291		if eval \${$cacheid+:} false; then :
9292  $as_echo_n "(cached) " >&6
9293else
9294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9295/* end confdefs.h.  */
9296int i;
9297int
9298main ()
9299{
9300
9301  ;
9302  return 0;
9303}
9304_ACEOF
9305if ac_fn_c_try_link "$LINENO"; then :
9306  eval $cacheid=yes
9307else
9308  eval $cacheid=no
9309fi
9310rm -f core conftest.err conftest.$ac_objext \
9311    conftest$ac_exeext conftest.$ac_ext
9312fi
9313
9314
9315		CFLAGS="$xorg_testset_save_CFLAGS"
9316
9317		eval supported=\$$cacheid
9318		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9319$as_echo "$supported" >&6; }
9320		if test "$supported" = "yes" ; then
9321			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9322			found="yes"
9323		fi
9324	fi
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340xorg_testset_save_CFLAGS="$CFLAGS"
9341
9342if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9343	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9344	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9345$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9346if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9347  $as_echo_n "(cached) " >&6
9348else
9349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9350/* end confdefs.h.  */
9351int i;
9352_ACEOF
9353if ac_fn_c_try_compile "$LINENO"; then :
9354  xorg_cv_cc_flag_unknown_warning_option=yes
9355else
9356  xorg_cv_cc_flag_unknown_warning_option=no
9357fi
9358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9359fi
9360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9361$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9362	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9363	CFLAGS="$xorg_testset_save_CFLAGS"
9364fi
9365
9366if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9367	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9368		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9369	fi
9370	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9371	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9372$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9373if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9374  $as_echo_n "(cached) " >&6
9375else
9376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9377/* end confdefs.h.  */
9378int i;
9379_ACEOF
9380if ac_fn_c_try_compile "$LINENO"; then :
9381  xorg_cv_cc_flag_unused_command_line_argument=yes
9382else
9383  xorg_cv_cc_flag_unused_command_line_argument=no
9384fi
9385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9386fi
9387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9388$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9389	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9390	CFLAGS="$xorg_testset_save_CFLAGS"
9391fi
9392
9393found="no"
9394
9395	if test $found = "no" ; then
9396		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9397			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9398		fi
9399
9400		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9401			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9402		fi
9403
9404		CFLAGS="$CFLAGS -Warray-bounds"
9405
9406		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9407$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9408		cacheid=xorg_cv_cc_flag__Warray_bounds
9409		if eval \${$cacheid+:} false; then :
9410  $as_echo_n "(cached) " >&6
9411else
9412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9413/* end confdefs.h.  */
9414int i;
9415int
9416main ()
9417{
9418
9419  ;
9420  return 0;
9421}
9422_ACEOF
9423if ac_fn_c_try_link "$LINENO"; then :
9424  eval $cacheid=yes
9425else
9426  eval $cacheid=no
9427fi
9428rm -f core conftest.err conftest.$ac_objext \
9429    conftest$ac_exeext conftest.$ac_ext
9430fi
9431
9432
9433		CFLAGS="$xorg_testset_save_CFLAGS"
9434
9435		eval supported=\$$cacheid
9436		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9437$as_echo "$supported" >&6; }
9438		if test "$supported" = "yes" ; then
9439			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9440			found="yes"
9441		fi
9442	fi
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458xorg_testset_save_CFLAGS="$CFLAGS"
9459
9460if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9461	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9462	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9463$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9464if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9465  $as_echo_n "(cached) " >&6
9466else
9467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9468/* end confdefs.h.  */
9469int i;
9470_ACEOF
9471if ac_fn_c_try_compile "$LINENO"; then :
9472  xorg_cv_cc_flag_unknown_warning_option=yes
9473else
9474  xorg_cv_cc_flag_unknown_warning_option=no
9475fi
9476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9477fi
9478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9479$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9480	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9481	CFLAGS="$xorg_testset_save_CFLAGS"
9482fi
9483
9484if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9485	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9486		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9487	fi
9488	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9489	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9490$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9491if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9492  $as_echo_n "(cached) " >&6
9493else
9494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9495/* end confdefs.h.  */
9496int i;
9497_ACEOF
9498if ac_fn_c_try_compile "$LINENO"; then :
9499  xorg_cv_cc_flag_unused_command_line_argument=yes
9500else
9501  xorg_cv_cc_flag_unused_command_line_argument=no
9502fi
9503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9504fi
9505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9506$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9507	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9508	CFLAGS="$xorg_testset_save_CFLAGS"
9509fi
9510
9511found="no"
9512
9513	if test $found = "no" ; then
9514		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9515			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9516		fi
9517
9518		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9519			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9520		fi
9521
9522		CFLAGS="$CFLAGS -Wwrite-strings"
9523
9524		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9525$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9526		cacheid=xorg_cv_cc_flag__Wwrite_strings
9527		if eval \${$cacheid+:} false; then :
9528  $as_echo_n "(cached) " >&6
9529else
9530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9531/* end confdefs.h.  */
9532int i;
9533int
9534main ()
9535{
9536
9537  ;
9538  return 0;
9539}
9540_ACEOF
9541if ac_fn_c_try_link "$LINENO"; then :
9542  eval $cacheid=yes
9543else
9544  eval $cacheid=no
9545fi
9546rm -f core conftest.err conftest.$ac_objext \
9547    conftest$ac_exeext conftest.$ac_ext
9548fi
9549
9550
9551		CFLAGS="$xorg_testset_save_CFLAGS"
9552
9553		eval supported=\$$cacheid
9554		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9555$as_echo "$supported" >&6; }
9556		if test "$supported" = "yes" ; then
9557			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9558			found="yes"
9559		fi
9560	fi
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576xorg_testset_save_CFLAGS="$CFLAGS"
9577
9578if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9579	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9580	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9581$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9582if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9583  $as_echo_n "(cached) " >&6
9584else
9585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586/* end confdefs.h.  */
9587int i;
9588_ACEOF
9589if ac_fn_c_try_compile "$LINENO"; then :
9590  xorg_cv_cc_flag_unknown_warning_option=yes
9591else
9592  xorg_cv_cc_flag_unknown_warning_option=no
9593fi
9594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9595fi
9596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9597$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9598	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9599	CFLAGS="$xorg_testset_save_CFLAGS"
9600fi
9601
9602if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9603	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9604		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9605	fi
9606	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9607	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9608$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9609if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9610  $as_echo_n "(cached) " >&6
9611else
9612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9613/* end confdefs.h.  */
9614int i;
9615_ACEOF
9616if ac_fn_c_try_compile "$LINENO"; then :
9617  xorg_cv_cc_flag_unused_command_line_argument=yes
9618else
9619  xorg_cv_cc_flag_unused_command_line_argument=no
9620fi
9621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9622fi
9623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9624$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9625	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9626	CFLAGS="$xorg_testset_save_CFLAGS"
9627fi
9628
9629found="no"
9630
9631	if test $found = "no" ; then
9632		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9633			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9634		fi
9635
9636		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9637			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9638		fi
9639
9640		CFLAGS="$CFLAGS -Waddress"
9641
9642		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9643$as_echo_n "checking if $CC supports-Waddress... " >&6; }
9644		cacheid=xorg_cv_cc_flag__Waddress
9645		if eval \${$cacheid+:} false; then :
9646  $as_echo_n "(cached) " >&6
9647else
9648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649/* end confdefs.h.  */
9650int i;
9651int
9652main ()
9653{
9654
9655  ;
9656  return 0;
9657}
9658_ACEOF
9659if ac_fn_c_try_link "$LINENO"; then :
9660  eval $cacheid=yes
9661else
9662  eval $cacheid=no
9663fi
9664rm -f core conftest.err conftest.$ac_objext \
9665    conftest$ac_exeext conftest.$ac_ext
9666fi
9667
9668
9669		CFLAGS="$xorg_testset_save_CFLAGS"
9670
9671		eval supported=\$$cacheid
9672		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9673$as_echo "$supported" >&6; }
9674		if test "$supported" = "yes" ; then
9675			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9676			found="yes"
9677		fi
9678	fi
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694xorg_testset_save_CFLAGS="$CFLAGS"
9695
9696if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9697	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9698	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9699$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9700if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9701  $as_echo_n "(cached) " >&6
9702else
9703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9704/* end confdefs.h.  */
9705int i;
9706_ACEOF
9707if ac_fn_c_try_compile "$LINENO"; then :
9708  xorg_cv_cc_flag_unknown_warning_option=yes
9709else
9710  xorg_cv_cc_flag_unknown_warning_option=no
9711fi
9712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9713fi
9714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9715$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9716	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9717	CFLAGS="$xorg_testset_save_CFLAGS"
9718fi
9719
9720if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9721	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9722		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9723	fi
9724	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9725	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9726$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9727if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9728  $as_echo_n "(cached) " >&6
9729else
9730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9731/* end confdefs.h.  */
9732int i;
9733_ACEOF
9734if ac_fn_c_try_compile "$LINENO"; then :
9735  xorg_cv_cc_flag_unused_command_line_argument=yes
9736else
9737  xorg_cv_cc_flag_unused_command_line_argument=no
9738fi
9739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9740fi
9741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9742$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9743	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9744	CFLAGS="$xorg_testset_save_CFLAGS"
9745fi
9746
9747found="no"
9748
9749	if test $found = "no" ; then
9750		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9751			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9752		fi
9753
9754		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9755			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9756		fi
9757
9758		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9759
9760		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
9761$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
9762		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9763		if eval \${$cacheid+:} false; then :
9764  $as_echo_n "(cached) " >&6
9765else
9766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9767/* end confdefs.h.  */
9768int i;
9769int
9770main ()
9771{
9772
9773  ;
9774  return 0;
9775}
9776_ACEOF
9777if ac_fn_c_try_link "$LINENO"; then :
9778  eval $cacheid=yes
9779else
9780  eval $cacheid=no
9781fi
9782rm -f core conftest.err conftest.$ac_objext \
9783    conftest$ac_exeext conftest.$ac_ext
9784fi
9785
9786
9787		CFLAGS="$xorg_testset_save_CFLAGS"
9788
9789		eval supported=\$$cacheid
9790		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9791$as_echo "$supported" >&6; }
9792		if test "$supported" = "yes" ; then
9793			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9794			found="yes"
9795		fi
9796	fi
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812xorg_testset_save_CFLAGS="$CFLAGS"
9813
9814if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9815	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9816	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9817$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9818if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9819  $as_echo_n "(cached) " >&6
9820else
9821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9822/* end confdefs.h.  */
9823int i;
9824_ACEOF
9825if ac_fn_c_try_compile "$LINENO"; then :
9826  xorg_cv_cc_flag_unknown_warning_option=yes
9827else
9828  xorg_cv_cc_flag_unknown_warning_option=no
9829fi
9830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9831fi
9832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9833$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9834	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9835	CFLAGS="$xorg_testset_save_CFLAGS"
9836fi
9837
9838if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9839	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9840		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9841	fi
9842	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9843	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9844$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9845if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9846  $as_echo_n "(cached) " >&6
9847else
9848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9849/* end confdefs.h.  */
9850int i;
9851_ACEOF
9852if ac_fn_c_try_compile "$LINENO"; then :
9853  xorg_cv_cc_flag_unused_command_line_argument=yes
9854else
9855  xorg_cv_cc_flag_unused_command_line_argument=no
9856fi
9857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9858fi
9859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9860$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9861	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9862	CFLAGS="$xorg_testset_save_CFLAGS"
9863fi
9864
9865found="no"
9866
9867	if test $found = "no" ; then
9868		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9869			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9870		fi
9871
9872		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9873			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9874		fi
9875
9876		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9877
9878		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
9879$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
9880		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9881		if eval \${$cacheid+:} false; then :
9882  $as_echo_n "(cached) " >&6
9883else
9884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9885/* end confdefs.h.  */
9886int i;
9887int
9888main ()
9889{
9890
9891  ;
9892  return 0;
9893}
9894_ACEOF
9895if ac_fn_c_try_link "$LINENO"; then :
9896  eval $cacheid=yes
9897else
9898  eval $cacheid=no
9899fi
9900rm -f core conftest.err conftest.$ac_objext \
9901    conftest$ac_exeext conftest.$ac_ext
9902fi
9903
9904
9905		CFLAGS="$xorg_testset_save_CFLAGS"
9906
9907		eval supported=\$$cacheid
9908		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9909$as_echo "$supported" >&6; }
9910		if test "$supported" = "yes" ; then
9911			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9912			found="yes"
9913		fi
9914	fi
9915
9916
9917fi
9918
9919
9920
9921
9922
9923
9924
9925		CWARNFLAGS="$BASE_CFLAGS"
9926		if  test "x$GCC" = xyes ; then
9927		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9928		fi
9929
9930
9931
9932
9933
9934
9935
9936
9937# Check whether --enable-strict-compilation was given.
9938if test "${enable_strict_compilation+set}" = set; then :
9939  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9940else
9941  STRICT_COMPILE=no
9942fi
9943
9944
9945
9946
9947
9948
9949STRICT_CFLAGS=""
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963xorg_testset_save_CFLAGS="$CFLAGS"
9964
9965if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9966	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9967	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9968$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9969if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9970  $as_echo_n "(cached) " >&6
9971else
9972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9973/* end confdefs.h.  */
9974int i;
9975_ACEOF
9976if ac_fn_c_try_compile "$LINENO"; then :
9977  xorg_cv_cc_flag_unknown_warning_option=yes
9978else
9979  xorg_cv_cc_flag_unknown_warning_option=no
9980fi
9981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9982fi
9983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9984$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9985	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9986	CFLAGS="$xorg_testset_save_CFLAGS"
9987fi
9988
9989if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9990	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9991		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9992	fi
9993	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9994	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9995$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9996if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9997  $as_echo_n "(cached) " >&6
9998else
9999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10000/* end confdefs.h.  */
10001int i;
10002_ACEOF
10003if ac_fn_c_try_compile "$LINENO"; then :
10004  xorg_cv_cc_flag_unused_command_line_argument=yes
10005else
10006  xorg_cv_cc_flag_unused_command_line_argument=no
10007fi
10008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10009fi
10010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10011$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10012	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10013	CFLAGS="$xorg_testset_save_CFLAGS"
10014fi
10015
10016found="no"
10017
10018	if test $found = "no" ; then
10019		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10020			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10021		fi
10022
10023		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10024			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10025		fi
10026
10027		CFLAGS="$CFLAGS -pedantic"
10028
10029		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
10030$as_echo_n "checking if $CC supports-pedantic... " >&6; }
10031		cacheid=xorg_cv_cc_flag__pedantic
10032		if eval \${$cacheid+:} false; then :
10033  $as_echo_n "(cached) " >&6
10034else
10035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10036/* end confdefs.h.  */
10037int i;
10038int
10039main ()
10040{
10041
10042  ;
10043  return 0;
10044}
10045_ACEOF
10046if ac_fn_c_try_link "$LINENO"; then :
10047  eval $cacheid=yes
10048else
10049  eval $cacheid=no
10050fi
10051rm -f core conftest.err conftest.$ac_objext \
10052    conftest$ac_exeext conftest.$ac_ext
10053fi
10054
10055
10056		CFLAGS="$xorg_testset_save_CFLAGS"
10057
10058		eval supported=\$$cacheid
10059		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10060$as_echo "$supported" >&6; }
10061		if test "$supported" = "yes" ; then
10062			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10063			found="yes"
10064		fi
10065	fi
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081xorg_testset_save_CFLAGS="$CFLAGS"
10082
10083if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10084	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10085	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10086$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10087if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10088  $as_echo_n "(cached) " >&6
10089else
10090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10091/* end confdefs.h.  */
10092int i;
10093_ACEOF
10094if ac_fn_c_try_compile "$LINENO"; then :
10095  xorg_cv_cc_flag_unknown_warning_option=yes
10096else
10097  xorg_cv_cc_flag_unknown_warning_option=no
10098fi
10099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10100fi
10101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10102$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10103	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10104	CFLAGS="$xorg_testset_save_CFLAGS"
10105fi
10106
10107if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10108	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10109		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10110	fi
10111	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10112	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10113$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10114if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10115  $as_echo_n "(cached) " >&6
10116else
10117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118/* end confdefs.h.  */
10119int i;
10120_ACEOF
10121if ac_fn_c_try_compile "$LINENO"; then :
10122  xorg_cv_cc_flag_unused_command_line_argument=yes
10123else
10124  xorg_cv_cc_flag_unused_command_line_argument=no
10125fi
10126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10127fi
10128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10129$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10130	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10131	CFLAGS="$xorg_testset_save_CFLAGS"
10132fi
10133
10134found="no"
10135
10136	if test $found = "no" ; then
10137		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10138			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10139		fi
10140
10141		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10142			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10143		fi
10144
10145		CFLAGS="$CFLAGS -Werror"
10146
10147		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
10148$as_echo_n "checking if $CC supports-Werror... " >&6; }
10149		cacheid=xorg_cv_cc_flag__Werror
10150		if eval \${$cacheid+:} false; then :
10151  $as_echo_n "(cached) " >&6
10152else
10153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10154/* end confdefs.h.  */
10155int i;
10156int
10157main ()
10158{
10159
10160  ;
10161  return 0;
10162}
10163_ACEOF
10164if ac_fn_c_try_link "$LINENO"; then :
10165  eval $cacheid=yes
10166else
10167  eval $cacheid=no
10168fi
10169rm -f core conftest.err conftest.$ac_objext \
10170    conftest$ac_exeext conftest.$ac_ext
10171fi
10172
10173
10174		CFLAGS="$xorg_testset_save_CFLAGS"
10175
10176		eval supported=\$$cacheid
10177		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10178$as_echo "$supported" >&6; }
10179		if test "$supported" = "yes" ; then
10180			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10181			found="yes"
10182		fi
10183	fi
10184
10185	if test $found = "no" ; then
10186		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10187			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10188		fi
10189
10190		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10191			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10192		fi
10193
10194		CFLAGS="$CFLAGS -errwarn"
10195
10196		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10197$as_echo_n "checking if $CC supports-errwarn... " >&6; }
10198		cacheid=xorg_cv_cc_flag__errwarn
10199		if eval \${$cacheid+:} false; then :
10200  $as_echo_n "(cached) " >&6
10201else
10202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10203/* end confdefs.h.  */
10204int i;
10205int
10206main ()
10207{
10208
10209  ;
10210  return 0;
10211}
10212_ACEOF
10213if ac_fn_c_try_link "$LINENO"; then :
10214  eval $cacheid=yes
10215else
10216  eval $cacheid=no
10217fi
10218rm -f core conftest.err conftest.$ac_objext \
10219    conftest$ac_exeext conftest.$ac_ext
10220fi
10221
10222
10223		CFLAGS="$xorg_testset_save_CFLAGS"
10224
10225		eval supported=\$$cacheid
10226		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10227$as_echo "$supported" >&6; }
10228		if test "$supported" = "yes" ; then
10229			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10230			found="yes"
10231		fi
10232	fi
10233
10234
10235
10236# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10237# activate it with -Werror, so we add it here explicitly.
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251xorg_testset_save_CFLAGS="$CFLAGS"
10252
10253if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10254	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10255	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10256$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10257if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10258  $as_echo_n "(cached) " >&6
10259else
10260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10261/* end confdefs.h.  */
10262int i;
10263_ACEOF
10264if ac_fn_c_try_compile "$LINENO"; then :
10265  xorg_cv_cc_flag_unknown_warning_option=yes
10266else
10267  xorg_cv_cc_flag_unknown_warning_option=no
10268fi
10269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10270fi
10271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10272$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10273	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10274	CFLAGS="$xorg_testset_save_CFLAGS"
10275fi
10276
10277if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10278	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10279		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10280	fi
10281	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10282	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10283$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10284if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10285  $as_echo_n "(cached) " >&6
10286else
10287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10288/* end confdefs.h.  */
10289int i;
10290_ACEOF
10291if ac_fn_c_try_compile "$LINENO"; then :
10292  xorg_cv_cc_flag_unused_command_line_argument=yes
10293else
10294  xorg_cv_cc_flag_unused_command_line_argument=no
10295fi
10296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10297fi
10298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10299$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10300	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10301	CFLAGS="$xorg_testset_save_CFLAGS"
10302fi
10303
10304found="no"
10305
10306	if test $found = "no" ; then
10307		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10308			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10309		fi
10310
10311		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10312			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10313		fi
10314
10315		CFLAGS="$CFLAGS -Werror=attributes"
10316
10317		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10318$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10319		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10320		if eval \${$cacheid+:} false; then :
10321  $as_echo_n "(cached) " >&6
10322else
10323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10324/* end confdefs.h.  */
10325int i;
10326int
10327main ()
10328{
10329
10330  ;
10331  return 0;
10332}
10333_ACEOF
10334if ac_fn_c_try_link "$LINENO"; then :
10335  eval $cacheid=yes
10336else
10337  eval $cacheid=no
10338fi
10339rm -f core conftest.err conftest.$ac_objext \
10340    conftest$ac_exeext conftest.$ac_ext
10341fi
10342
10343
10344		CFLAGS="$xorg_testset_save_CFLAGS"
10345
10346		eval supported=\$$cacheid
10347		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10348$as_echo "$supported" >&6; }
10349		if test "$supported" = "yes" ; then
10350			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10351			found="yes"
10352		fi
10353	fi
10354
10355
10356
10357if test "x$STRICT_COMPILE" = "xyes"; then
10358    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10359    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10360fi
10361
10362
10363
10364
10365
10366
10367cat >>confdefs.h <<_ACEOF
10368#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10369_ACEOF
10370
10371	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10372	if test "x$PVM" = "x"; then
10373		PVM="0"
10374	fi
10375
10376cat >>confdefs.h <<_ACEOF
10377#define PACKAGE_VERSION_MINOR $PVM
10378_ACEOF
10379
10380	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10381	if test "x$PVP" = "x"; then
10382		PVP="0"
10383	fi
10384
10385cat >>confdefs.h <<_ACEOF
10386#define PACKAGE_VERSION_PATCHLEVEL $PVP
10387_ACEOF
10388
10389
10390
10391CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10392mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10393|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10394echo 'git directory not found: installing possibly empty changelog.' >&2)"
10395
10396
10397
10398
10399macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10400INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10401mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10402|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10403echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10404
10405
10406
10407
10408
10409
10410if test x$APP_MAN_SUFFIX = x    ; then
10411    APP_MAN_SUFFIX=1
10412fi
10413if test x$APP_MAN_DIR = x    ; then
10414    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10415fi
10416
10417if test x$LIB_MAN_SUFFIX = x    ; then
10418    LIB_MAN_SUFFIX=3
10419fi
10420if test x$LIB_MAN_DIR = x    ; then
10421    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10422fi
10423
10424if test x$FILE_MAN_SUFFIX = x    ; then
10425    case $host_os in
10426	solaris*)	FILE_MAN_SUFFIX=4  ;;
10427	*)		FILE_MAN_SUFFIX=5  ;;
10428    esac
10429fi
10430if test x$FILE_MAN_DIR = x    ; then
10431    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10432fi
10433
10434if test x$MISC_MAN_SUFFIX = x    ; then
10435    case $host_os in
10436	solaris*)	MISC_MAN_SUFFIX=5  ;;
10437	*)		MISC_MAN_SUFFIX=7  ;;
10438    esac
10439fi
10440if test x$MISC_MAN_DIR = x    ; then
10441    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10442fi
10443
10444if test x$DRIVER_MAN_SUFFIX = x    ; then
10445    case $host_os in
10446	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10447	*)		DRIVER_MAN_SUFFIX=4  ;;
10448    esac
10449fi
10450if test x$DRIVER_MAN_DIR = x    ; then
10451    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10452fi
10453
10454if test x$ADMIN_MAN_SUFFIX = x    ; then
10455    case $host_os in
10456	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10457	*)		ADMIN_MAN_SUFFIX=8  ;;
10458    esac
10459fi
10460if test x$ADMIN_MAN_DIR = x    ; then
10461    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10462fi
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478XORG_MAN_PAGE="X Version 11"
10479
10480MAN_SUBSTS="\
10481	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10482	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10483	-e 's|__xservername__|Xorg|g' \
10484	-e 's|__xconfigfile__|xorg.conf|g' \
10485	-e 's|__projectroot__|\$(prefix)|g' \
10486	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10487	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10488	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10489	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10490	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10491	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10492	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10493
10494
10495
10496# Check whether --enable-silent-rules was given.
10497if test "${enable_silent_rules+set}" = set; then :
10498  enableval=$enable_silent_rules;
10499fi
10500
10501case $enable_silent_rules in
10502yes) AM_DEFAULT_VERBOSITY=0;;
10503no)  AM_DEFAULT_VERBOSITY=1;;
10504*)   AM_DEFAULT_VERBOSITY=0;;
10505esac
10506am_make=${MAKE-make}
10507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10508$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10509if ${am_cv_make_support_nested_variables+:} false; then :
10510  $as_echo_n "(cached) " >&6
10511else
10512  if $as_echo 'TRUE=$(BAR$(V))
10513BAR0=false
10514BAR1=true
10515V=1
10516am__doit:
10517	@$(TRUE)
10518.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10519  am_cv_make_support_nested_variables=yes
10520else
10521  am_cv_make_support_nested_variables=no
10522fi
10523fi
10524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10525$as_echo "$am_cv_make_support_nested_variables" >&6; }
10526if test $am_cv_make_support_nested_variables = yes; then
10527    AM_V='$(V)'
10528  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10529else
10530  AM_V=$AM_DEFAULT_VERBOSITY
10531  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10532fi
10533AM_BACKSLASH='\'
10534
10535
10536
10537# Initialize libtool
10538# Check whether --enable-static was given.
10539if test "${enable_static+set}" = set; then :
10540  enableval=$enable_static; p=${PACKAGE-default}
10541    case $enableval in
10542    yes) enable_static=yes ;;
10543    no) enable_static=no ;;
10544    *)
10545     enable_static=no
10546      # Look at the argument we got.  We use all the common list separators.
10547      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10548      for pkg in $enableval; do
10549	IFS="$lt_save_ifs"
10550	if test "X$pkg" = "X$p"; then
10551	  enable_static=yes
10552	fi
10553      done
10554      IFS="$lt_save_ifs"
10555      ;;
10556    esac
10557else
10558  enable_static=no
10559fi
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569case `pwd` in
10570  *\ * | *\	*)
10571    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10572$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10573esac
10574
10575
10576
10577macro_version='2.4.2'
10578macro_revision='1.3337'
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592ltmain="$ac_aux_dir/ltmain.sh"
10593
10594# Backslashify metacharacters that are still active within
10595# double-quoted strings.
10596sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10597
10598# Same as above, but do not quote variable references.
10599double_quote_subst='s/\(["`\\]\)/\\\1/g'
10600
10601# Sed substitution to delay expansion of an escaped shell variable in a
10602# double_quote_subst'ed string.
10603delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10604
10605# Sed substitution to delay expansion of an escaped single quote.
10606delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10607
10608# Sed substitution to avoid accidental globbing in evaled expressions
10609no_glob_subst='s/\*/\\\*/g'
10610
10611ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10612ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10613ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10614
10615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10616$as_echo_n "checking how to print strings... " >&6; }
10617# Test print first, because it will be a builtin if present.
10618if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10619   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10620  ECHO='print -r --'
10621elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10622  ECHO='printf %s\n'
10623else
10624  # Use this function as a fallback that always works.
10625  func_fallback_echo ()
10626  {
10627    eval 'cat <<_LTECHO_EOF
10628$1
10629_LTECHO_EOF'
10630  }
10631  ECHO='func_fallback_echo'
10632fi
10633
10634# func_echo_all arg...
10635# Invoke $ECHO with all args, space-separated.
10636func_echo_all ()
10637{
10638    $ECHO ""
10639}
10640
10641case "$ECHO" in
10642  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10643$as_echo "printf" >&6; } ;;
10644  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10645$as_echo "print -r" >&6; } ;;
10646  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10647$as_echo "cat" >&6; } ;;
10648esac
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10664$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10665if ${ac_cv_path_SED+:} false; then :
10666  $as_echo_n "(cached) " >&6
10667else
10668            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10669     for ac_i in 1 2 3 4 5 6 7; do
10670       ac_script="$ac_script$as_nl$ac_script"
10671     done
10672     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10673     { ac_script=; unset ac_script;}
10674     if test -z "$SED"; then
10675  ac_path_SED_found=false
10676  # Loop through the user's path and test for each of PROGNAME-LIST
10677  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10678for as_dir in $PATH
10679do
10680  IFS=$as_save_IFS
10681  test -z "$as_dir" && as_dir=.
10682    for ac_prog in sed gsed; do
10683    for ac_exec_ext in '' $ac_executable_extensions; do
10684      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10685      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
10686# Check for GNU ac_path_SED and select it if it is found.
10687  # Check for GNU $ac_path_SED
10688case `"$ac_path_SED" --version 2>&1` in
10689*GNU*)
10690  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10691*)
10692  ac_count=0
10693  $as_echo_n 0123456789 >"conftest.in"
10694  while :
10695  do
10696    cat "conftest.in" "conftest.in" >"conftest.tmp"
10697    mv "conftest.tmp" "conftest.in"
10698    cp "conftest.in" "conftest.nl"
10699    $as_echo '' >> "conftest.nl"
10700    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10701    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10702    as_fn_arith $ac_count + 1 && ac_count=$as_val
10703    if test $ac_count -gt ${ac_path_SED_max-0}; then
10704      # Best one so far, save it but keep looking for a better one
10705      ac_cv_path_SED="$ac_path_SED"
10706      ac_path_SED_max=$ac_count
10707    fi
10708    # 10*(2^10) chars as input seems more than enough
10709    test $ac_count -gt 10 && break
10710  done
10711  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10712esac
10713
10714      $ac_path_SED_found && break 3
10715    done
10716  done
10717  done
10718IFS=$as_save_IFS
10719  if test -z "$ac_cv_path_SED"; then
10720    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10721  fi
10722else
10723  ac_cv_path_SED=$SED
10724fi
10725
10726fi
10727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10728$as_echo "$ac_cv_path_SED" >&6; }
10729 SED="$ac_cv_path_SED"
10730  rm -f conftest.sed
10731
10732test -z "$SED" && SED=sed
10733Xsed="$SED -e 1s/^X//"
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10746$as_echo_n "checking for fgrep... " >&6; }
10747if ${ac_cv_path_FGREP+:} false; then :
10748  $as_echo_n "(cached) " >&6
10749else
10750  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10751   then ac_cv_path_FGREP="$GREP -F"
10752   else
10753     if test -z "$FGREP"; then
10754  ac_path_FGREP_found=false
10755  # Loop through the user's path and test for each of PROGNAME-LIST
10756  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10757for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10758do
10759  IFS=$as_save_IFS
10760  test -z "$as_dir" && as_dir=.
10761    for ac_prog in fgrep; do
10762    for ac_exec_ext in '' $ac_executable_extensions; do
10763      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10764      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
10765# Check for GNU ac_path_FGREP and select it if it is found.
10766  # Check for GNU $ac_path_FGREP
10767case `"$ac_path_FGREP" --version 2>&1` in
10768*GNU*)
10769  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10770*)
10771  ac_count=0
10772  $as_echo_n 0123456789 >"conftest.in"
10773  while :
10774  do
10775    cat "conftest.in" "conftest.in" >"conftest.tmp"
10776    mv "conftest.tmp" "conftest.in"
10777    cp "conftest.in" "conftest.nl"
10778    $as_echo 'FGREP' >> "conftest.nl"
10779    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10780    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10781    as_fn_arith $ac_count + 1 && ac_count=$as_val
10782    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10783      # Best one so far, save it but keep looking for a better one
10784      ac_cv_path_FGREP="$ac_path_FGREP"
10785      ac_path_FGREP_max=$ac_count
10786    fi
10787    # 10*(2^10) chars as input seems more than enough
10788    test $ac_count -gt 10 && break
10789  done
10790  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10791esac
10792
10793      $ac_path_FGREP_found && break 3
10794    done
10795  done
10796  done
10797IFS=$as_save_IFS
10798  if test -z "$ac_cv_path_FGREP"; then
10799    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10800  fi
10801else
10802  ac_cv_path_FGREP=$FGREP
10803fi
10804
10805   fi
10806fi
10807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10808$as_echo "$ac_cv_path_FGREP" >&6; }
10809 FGREP="$ac_cv_path_FGREP"
10810
10811
10812test -z "$GREP" && GREP=grep
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832# Check whether --with-gnu-ld was given.
10833if test "${with_gnu_ld+set}" = set; then :
10834  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10835else
10836  with_gnu_ld=no
10837fi
10838
10839ac_prog=ld
10840if test "$GCC" = yes; then
10841  # Check if gcc -print-prog-name=ld gives a path.
10842  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10843$as_echo_n "checking for ld used by $CC... " >&6; }
10844  case $host in
10845  *-*-mingw*)
10846    # gcc leaves a trailing carriage return which upsets mingw
10847    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10848  *)
10849    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10850  esac
10851  case $ac_prog in
10852    # Accept absolute paths.
10853    [\\/]* | ?:[\\/]*)
10854      re_direlt='/[^/][^/]*/\.\./'
10855      # Canonicalize the pathname of ld
10856      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10857      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10858	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10859      done
10860      test -z "$LD" && LD="$ac_prog"
10861      ;;
10862  "")
10863    # If it fails, then pretend we aren't using GCC.
10864    ac_prog=ld
10865    ;;
10866  *)
10867    # If it is relative, then search for the first ld in PATH.
10868    with_gnu_ld=unknown
10869    ;;
10870  esac
10871elif test "$with_gnu_ld" = yes; then
10872  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10873$as_echo_n "checking for GNU ld... " >&6; }
10874else
10875  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10876$as_echo_n "checking for non-GNU ld... " >&6; }
10877fi
10878if ${lt_cv_path_LD+:} false; then :
10879  $as_echo_n "(cached) " >&6
10880else
10881  if test -z "$LD"; then
10882  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10883  for ac_dir in $PATH; do
10884    IFS="$lt_save_ifs"
10885    test -z "$ac_dir" && ac_dir=.
10886    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10887      lt_cv_path_LD="$ac_dir/$ac_prog"
10888      # Check to see if the program is GNU ld.  I'd rather use --version,
10889      # but apparently some variants of GNU ld only accept -v.
10890      # Break only if it was the GNU/non-GNU ld that we prefer.
10891      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10892      *GNU* | *'with BFD'*)
10893	test "$with_gnu_ld" != no && break
10894	;;
10895      *)
10896	test "$with_gnu_ld" != yes && break
10897	;;
10898      esac
10899    fi
10900  done
10901  IFS="$lt_save_ifs"
10902else
10903  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10904fi
10905fi
10906
10907LD="$lt_cv_path_LD"
10908if test -n "$LD"; then
10909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10910$as_echo "$LD" >&6; }
10911else
10912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10913$as_echo "no" >&6; }
10914fi
10915test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10917$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10918if ${lt_cv_prog_gnu_ld+:} false; then :
10919  $as_echo_n "(cached) " >&6
10920else
10921  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10922case `$LD -v 2>&1 </dev/null` in
10923*GNU* | *'with BFD'*)
10924  lt_cv_prog_gnu_ld=yes
10925  ;;
10926*)
10927  lt_cv_prog_gnu_ld=no
10928  ;;
10929esac
10930fi
10931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10932$as_echo "$lt_cv_prog_gnu_ld" >&6; }
10933with_gnu_ld=$lt_cv_prog_gnu_ld
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10944$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
10945if ${lt_cv_path_NM+:} false; then :
10946  $as_echo_n "(cached) " >&6
10947else
10948  if test -n "$NM"; then
10949  # Let the user override the test.
10950  lt_cv_path_NM="$NM"
10951else
10952  lt_nm_to_check="${ac_tool_prefix}nm"
10953  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10954    lt_nm_to_check="$lt_nm_to_check nm"
10955  fi
10956  for lt_tmp_nm in $lt_nm_to_check; do
10957    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10958    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10959      IFS="$lt_save_ifs"
10960      test -z "$ac_dir" && ac_dir=.
10961      tmp_nm="$ac_dir/$lt_tmp_nm"
10962      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10963	# Check to see if the nm accepts a BSD-compat flag.
10964	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
10965	#   nm: unknown option "B" ignored
10966	# Tru64's nm complains that /dev/null is an invalid object file
10967	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10968	*/dev/null* | *'Invalid file or object type'*)
10969	  lt_cv_path_NM="$tmp_nm -B"
10970	  break
10971	  ;;
10972	*)
10973	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10974	  */dev/null*)
10975	    lt_cv_path_NM="$tmp_nm -p"
10976	    break
10977	    ;;
10978	  *)
10979	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10980	    continue # so that we can try to find one that supports BSD flags
10981	    ;;
10982	  esac
10983	  ;;
10984	esac
10985      fi
10986    done
10987    IFS="$lt_save_ifs"
10988  done
10989  : ${lt_cv_path_NM=no}
10990fi
10991fi
10992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10993$as_echo "$lt_cv_path_NM" >&6; }
10994if test "$lt_cv_path_NM" != "no"; then
10995  NM="$lt_cv_path_NM"
10996else
10997  # Didn't find any BSD compatible name lister, look for dumpbin.
10998  if test -n "$DUMPBIN"; then :
10999    # Let the user override the test.
11000  else
11001    if test -n "$ac_tool_prefix"; then
11002  for ac_prog in dumpbin "link -dump"
11003  do
11004    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11005set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11007$as_echo_n "checking for $ac_word... " >&6; }
11008if ${ac_cv_prog_DUMPBIN+:} false; then :
11009  $as_echo_n "(cached) " >&6
11010else
11011  if test -n "$DUMPBIN"; then
11012  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11013else
11014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11015for as_dir in $PATH
11016do
11017  IFS=$as_save_IFS
11018  test -z "$as_dir" && as_dir=.
11019    for ac_exec_ext in '' $ac_executable_extensions; do
11020  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11021    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11022    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11023    break 2
11024  fi
11025done
11026  done
11027IFS=$as_save_IFS
11028
11029fi
11030fi
11031DUMPBIN=$ac_cv_prog_DUMPBIN
11032if test -n "$DUMPBIN"; then
11033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11034$as_echo "$DUMPBIN" >&6; }
11035else
11036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11037$as_echo "no" >&6; }
11038fi
11039
11040
11041    test -n "$DUMPBIN" && break
11042  done
11043fi
11044if test -z "$DUMPBIN"; then
11045  ac_ct_DUMPBIN=$DUMPBIN
11046  for ac_prog in dumpbin "link -dump"
11047do
11048  # Extract the first word of "$ac_prog", so it can be a program name with args.
11049set dummy $ac_prog; ac_word=$2
11050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11051$as_echo_n "checking for $ac_word... " >&6; }
11052if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11053  $as_echo_n "(cached) " >&6
11054else
11055  if test -n "$ac_ct_DUMPBIN"; then
11056  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11057else
11058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11059for as_dir in $PATH
11060do
11061  IFS=$as_save_IFS
11062  test -z "$as_dir" && as_dir=.
11063    for ac_exec_ext in '' $ac_executable_extensions; do
11064  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11065    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11066    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11067    break 2
11068  fi
11069done
11070  done
11071IFS=$as_save_IFS
11072
11073fi
11074fi
11075ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11076if test -n "$ac_ct_DUMPBIN"; then
11077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11078$as_echo "$ac_ct_DUMPBIN" >&6; }
11079else
11080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11081$as_echo "no" >&6; }
11082fi
11083
11084
11085  test -n "$ac_ct_DUMPBIN" && break
11086done
11087
11088  if test "x$ac_ct_DUMPBIN" = x; then
11089    DUMPBIN=":"
11090  else
11091    case $cross_compiling:$ac_tool_warned in
11092yes:)
11093{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11094$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11095ac_tool_warned=yes ;;
11096esac
11097    DUMPBIN=$ac_ct_DUMPBIN
11098  fi
11099fi
11100
11101    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11102    *COFF*)
11103      DUMPBIN="$DUMPBIN -symbols"
11104      ;;
11105    *)
11106      DUMPBIN=:
11107      ;;
11108    esac
11109  fi
11110
11111  if test "$DUMPBIN" != ":"; then
11112    NM="$DUMPBIN"
11113  fi
11114fi
11115test -z "$NM" && NM=nm
11116
11117
11118
11119
11120
11121
11122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11123$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11124if ${lt_cv_nm_interface+:} false; then :
11125  $as_echo_n "(cached) " >&6
11126else
11127  lt_cv_nm_interface="BSD nm"
11128  echo "int some_variable = 0;" > conftest.$ac_ext
11129  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11130  (eval "$ac_compile" 2>conftest.err)
11131  cat conftest.err >&5
11132  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11133  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11134  cat conftest.err >&5
11135  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11136  cat conftest.out >&5
11137  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11138    lt_cv_nm_interface="MS dumpbin"
11139  fi
11140  rm -f conftest*
11141fi
11142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11143$as_echo "$lt_cv_nm_interface" >&6; }
11144
11145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11146$as_echo_n "checking whether ln -s works... " >&6; }
11147LN_S=$as_ln_s
11148if test "$LN_S" = "ln -s"; then
11149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11150$as_echo "yes" >&6; }
11151else
11152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11153$as_echo "no, using $LN_S" >&6; }
11154fi
11155
11156# find the maximum length of command line arguments
11157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11158$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11159if ${lt_cv_sys_max_cmd_len+:} false; then :
11160  $as_echo_n "(cached) " >&6
11161else
11162    i=0
11163  teststring="ABCD"
11164
11165  case $build_os in
11166  msdosdjgpp*)
11167    # On DJGPP, this test can blow up pretty badly due to problems in libc
11168    # (any single argument exceeding 2000 bytes causes a buffer overrun
11169    # during glob expansion).  Even if it were fixed, the result of this
11170    # check would be larger than it should be.
11171    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11172    ;;
11173
11174  gnu*)
11175    # Under GNU Hurd, this test is not required because there is
11176    # no limit to the length of command line arguments.
11177    # Libtool will interpret -1 as no limit whatsoever
11178    lt_cv_sys_max_cmd_len=-1;
11179    ;;
11180
11181  cygwin* | mingw* | cegcc*)
11182    # On Win9x/ME, this test blows up -- it succeeds, but takes
11183    # about 5 minutes as the teststring grows exponentially.
11184    # Worse, since 9x/ME are not pre-emptively multitasking,
11185    # you end up with a "frozen" computer, even though with patience
11186    # the test eventually succeeds (with a max line length of 256k).
11187    # Instead, let's just punt: use the minimum linelength reported by
11188    # all of the supported platforms: 8192 (on NT/2K/XP).
11189    lt_cv_sys_max_cmd_len=8192;
11190    ;;
11191
11192  mint*)
11193    # On MiNT this can take a long time and run out of memory.
11194    lt_cv_sys_max_cmd_len=8192;
11195    ;;
11196
11197  amigaos*)
11198    # On AmigaOS with pdksh, this test takes hours, literally.
11199    # So we just punt and use a minimum line length of 8192.
11200    lt_cv_sys_max_cmd_len=8192;
11201    ;;
11202
11203  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11204    # This has been around since 386BSD, at least.  Likely further.
11205    if test -x /sbin/sysctl; then
11206      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11207    elif test -x /usr/sbin/sysctl; then
11208      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11209    else
11210      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11211    fi
11212    # And add a safety zone
11213    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11214    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11215    ;;
11216
11217  interix*)
11218    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11219    lt_cv_sys_max_cmd_len=196608
11220    ;;
11221
11222  os2*)
11223    # The test takes a long time on OS/2.
11224    lt_cv_sys_max_cmd_len=8192
11225    ;;
11226
11227  osf*)
11228    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11229    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11230    # nice to cause kernel panics so lets avoid the loop below.
11231    # First set a reasonable default.
11232    lt_cv_sys_max_cmd_len=16384
11233    #
11234    if test -x /sbin/sysconfig; then
11235      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11236        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11237      esac
11238    fi
11239    ;;
11240  sco3.2v5*)
11241    lt_cv_sys_max_cmd_len=102400
11242    ;;
11243  sysv5* | sco5v6* | sysv4.2uw2*)
11244    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11245    if test -n "$kargmax"; then
11246      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11247    else
11248      lt_cv_sys_max_cmd_len=32768
11249    fi
11250    ;;
11251  *)
11252    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11253    if test -n "$lt_cv_sys_max_cmd_len"; then
11254      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11255      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11256    else
11257      # Make teststring a little bigger before we do anything with it.
11258      # a 1K string should be a reasonable start.
11259      for i in 1 2 3 4 5 6 7 8 ; do
11260        teststring=$teststring$teststring
11261      done
11262      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11263      # If test is not a shell built-in, we'll probably end up computing a
11264      # maximum length that is only half of the actual maximum length, but
11265      # we can't tell.
11266      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11267	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11268	      test $i != 17 # 1/2 MB should be enough
11269      do
11270        i=`expr $i + 1`
11271        teststring=$teststring$teststring
11272      done
11273      # Only check the string length outside the loop.
11274      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11275      teststring=
11276      # Add a significant safety factor because C++ compilers can tack on
11277      # massive amounts of additional arguments before passing them to the
11278      # linker.  It appears as though 1/2 is a usable value.
11279      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11280    fi
11281    ;;
11282  esac
11283
11284fi
11285
11286if test -n $lt_cv_sys_max_cmd_len ; then
11287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11288$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11289else
11290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11291$as_echo "none" >&6; }
11292fi
11293max_cmd_len=$lt_cv_sys_max_cmd_len
11294
11295
11296
11297
11298
11299
11300: ${CP="cp -f"}
11301: ${MV="mv -f"}
11302: ${RM="rm -f"}
11303
11304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11305$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11306# Try some XSI features
11307xsi_shell=no
11308( _lt_dummy="a/b/c"
11309  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11310      = c,a/b,b/c, \
11311    && eval 'test $(( 1 + 1 )) -eq 2 \
11312    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11313  && xsi_shell=yes
11314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11315$as_echo "$xsi_shell" >&6; }
11316
11317
11318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11319$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11320lt_shell_append=no
11321( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11322    >/dev/null 2>&1 \
11323  && lt_shell_append=yes
11324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11325$as_echo "$lt_shell_append" >&6; }
11326
11327
11328if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11329  lt_unset=unset
11330else
11331  lt_unset=false
11332fi
11333
11334
11335
11336
11337
11338# test EBCDIC or ASCII
11339case `echo X|tr X '\101'` in
11340 A) # ASCII based system
11341    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11342  lt_SP2NL='tr \040 \012'
11343  lt_NL2SP='tr \015\012 \040\040'
11344  ;;
11345 *) # EBCDIC based system
11346  lt_SP2NL='tr \100 \n'
11347  lt_NL2SP='tr \r\n \100\100'
11348  ;;
11349esac
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11360$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11361if ${lt_cv_to_host_file_cmd+:} false; then :
11362  $as_echo_n "(cached) " >&6
11363else
11364  case $host in
11365  *-*-mingw* )
11366    case $build in
11367      *-*-mingw* ) # actually msys
11368        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11369        ;;
11370      *-*-cygwin* )
11371        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11372        ;;
11373      * ) # otherwise, assume *nix
11374        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11375        ;;
11376    esac
11377    ;;
11378  *-*-cygwin* )
11379    case $build in
11380      *-*-mingw* ) # actually msys
11381        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11382        ;;
11383      *-*-cygwin* )
11384        lt_cv_to_host_file_cmd=func_convert_file_noop
11385        ;;
11386      * ) # otherwise, assume *nix
11387        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11388        ;;
11389    esac
11390    ;;
11391  * ) # unhandled hosts (and "normal" native builds)
11392    lt_cv_to_host_file_cmd=func_convert_file_noop
11393    ;;
11394esac
11395
11396fi
11397
11398to_host_file_cmd=$lt_cv_to_host_file_cmd
11399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11400$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11401
11402
11403
11404
11405
11406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11407$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11408if ${lt_cv_to_tool_file_cmd+:} false; then :
11409  $as_echo_n "(cached) " >&6
11410else
11411  #assume ordinary cross tools, or native build.
11412lt_cv_to_tool_file_cmd=func_convert_file_noop
11413case $host in
11414  *-*-mingw* )
11415    case $build in
11416      *-*-mingw* ) # actually msys
11417        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11418        ;;
11419    esac
11420    ;;
11421esac
11422
11423fi
11424
11425to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11427$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11428
11429
11430
11431
11432
11433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11434$as_echo_n "checking for $LD option to reload object files... " >&6; }
11435if ${lt_cv_ld_reload_flag+:} false; then :
11436  $as_echo_n "(cached) " >&6
11437else
11438  lt_cv_ld_reload_flag='-r'
11439fi
11440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11441$as_echo "$lt_cv_ld_reload_flag" >&6; }
11442reload_flag=$lt_cv_ld_reload_flag
11443case $reload_flag in
11444"" | " "*) ;;
11445*) reload_flag=" $reload_flag" ;;
11446esac
11447reload_cmds='$LD$reload_flag -o $output$reload_objs'
11448case $host_os in
11449  cygwin* | mingw* | pw32* | cegcc*)
11450    if test "$GCC" != yes; then
11451      reload_cmds=false
11452    fi
11453    ;;
11454  darwin*)
11455    if test "$GCC" = yes; then
11456      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11457    else
11458      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11459    fi
11460    ;;
11461esac
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471if test -n "$ac_tool_prefix"; then
11472  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11473set dummy ${ac_tool_prefix}objdump; ac_word=$2
11474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11475$as_echo_n "checking for $ac_word... " >&6; }
11476if ${ac_cv_prog_OBJDUMP+:} false; then :
11477  $as_echo_n "(cached) " >&6
11478else
11479  if test -n "$OBJDUMP"; then
11480  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11481else
11482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11483for as_dir in $PATH
11484do
11485  IFS=$as_save_IFS
11486  test -z "$as_dir" && as_dir=.
11487    for ac_exec_ext in '' $ac_executable_extensions; do
11488  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11489    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11490    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11491    break 2
11492  fi
11493done
11494  done
11495IFS=$as_save_IFS
11496
11497fi
11498fi
11499OBJDUMP=$ac_cv_prog_OBJDUMP
11500if test -n "$OBJDUMP"; then
11501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11502$as_echo "$OBJDUMP" >&6; }
11503else
11504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11505$as_echo "no" >&6; }
11506fi
11507
11508
11509fi
11510if test -z "$ac_cv_prog_OBJDUMP"; then
11511  ac_ct_OBJDUMP=$OBJDUMP
11512  # Extract the first word of "objdump", so it can be a program name with args.
11513set dummy objdump; ac_word=$2
11514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11515$as_echo_n "checking for $ac_word... " >&6; }
11516if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11517  $as_echo_n "(cached) " >&6
11518else
11519  if test -n "$ac_ct_OBJDUMP"; then
11520  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11521else
11522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11523for as_dir in $PATH
11524do
11525  IFS=$as_save_IFS
11526  test -z "$as_dir" && as_dir=.
11527    for ac_exec_ext in '' $ac_executable_extensions; do
11528  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11529    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11530    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11531    break 2
11532  fi
11533done
11534  done
11535IFS=$as_save_IFS
11536
11537fi
11538fi
11539ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11540if test -n "$ac_ct_OBJDUMP"; then
11541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11542$as_echo "$ac_ct_OBJDUMP" >&6; }
11543else
11544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11545$as_echo "no" >&6; }
11546fi
11547
11548  if test "x$ac_ct_OBJDUMP" = x; then
11549    OBJDUMP="false"
11550  else
11551    case $cross_compiling:$ac_tool_warned in
11552yes:)
11553{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11555ac_tool_warned=yes ;;
11556esac
11557    OBJDUMP=$ac_ct_OBJDUMP
11558  fi
11559else
11560  OBJDUMP="$ac_cv_prog_OBJDUMP"
11561fi
11562
11563test -z "$OBJDUMP" && OBJDUMP=objdump
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11574$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11575if ${lt_cv_deplibs_check_method+:} false; then :
11576  $as_echo_n "(cached) " >&6
11577else
11578  lt_cv_file_magic_cmd='$MAGIC_CMD'
11579lt_cv_file_magic_test_file=
11580lt_cv_deplibs_check_method='unknown'
11581# Need to set the preceding variable on all platforms that support
11582# interlibrary dependencies.
11583# 'none' -- dependencies not supported.
11584# `unknown' -- same as none, but documents that we really don't know.
11585# 'pass_all' -- all dependencies passed with no checks.
11586# 'test_compile' -- check by making test program.
11587# 'file_magic [[regex]]' -- check by looking for files in library path
11588# which responds to the $file_magic_cmd with a given extended regex.
11589# If you have `file' or equivalent on your system and you're not sure
11590# whether `pass_all' will *always* work, you probably want this one.
11591
11592case $host_os in
11593aix[4-9]*)
11594  lt_cv_deplibs_check_method=pass_all
11595  ;;
11596
11597beos*)
11598  lt_cv_deplibs_check_method=pass_all
11599  ;;
11600
11601bsdi[45]*)
11602  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11603  lt_cv_file_magic_cmd='/usr/bin/file -L'
11604  lt_cv_file_magic_test_file=/shlib/libc.so
11605  ;;
11606
11607cygwin*)
11608  # func_win32_libid is a shell function defined in ltmain.sh
11609  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11610  lt_cv_file_magic_cmd='func_win32_libid'
11611  ;;
11612
11613mingw* | pw32*)
11614  # Base MSYS/MinGW do not provide the 'file' command needed by
11615  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11616  # unless we find 'file', for example because we are cross-compiling.
11617  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11618  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11619    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11620    lt_cv_file_magic_cmd='func_win32_libid'
11621  else
11622    # Keep this pattern in sync with the one in func_win32_libid.
11623    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11624    lt_cv_file_magic_cmd='$OBJDUMP -f'
11625  fi
11626  ;;
11627
11628cegcc*)
11629  # use the weaker test based on 'objdump'. See mingw*.
11630  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11631  lt_cv_file_magic_cmd='$OBJDUMP -f'
11632  ;;
11633
11634darwin* | rhapsody*)
11635  lt_cv_deplibs_check_method=pass_all
11636  ;;
11637
11638freebsd* | dragonfly*)
11639  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11640    case $host_cpu in
11641    i*86 )
11642      # Not sure whether the presence of OpenBSD here was a mistake.
11643      # Let's accept both of them until this is cleared up.
11644      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11645      lt_cv_file_magic_cmd=/usr/bin/file
11646      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11647      ;;
11648    esac
11649  else
11650    lt_cv_deplibs_check_method=pass_all
11651  fi
11652  ;;
11653
11654gnu*)
11655  lt_cv_deplibs_check_method=pass_all
11656  ;;
11657
11658haiku*)
11659  lt_cv_deplibs_check_method=pass_all
11660  ;;
11661
11662hpux10.20* | hpux11*)
11663  lt_cv_file_magic_cmd=/usr/bin/file
11664  case $host_cpu in
11665  ia64*)
11666    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11667    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11668    ;;
11669  hppa*64*)
11670    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]'
11671    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11672    ;;
11673  *)
11674    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11675    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11676    ;;
11677  esac
11678  ;;
11679
11680interix[3-9]*)
11681  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11682  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11683  ;;
11684
11685irix5* | irix6* | nonstopux*)
11686  case $LD in
11687  *-32|*"-32 ") libmagic=32-bit;;
11688  *-n32|*"-n32 ") libmagic=N32;;
11689  *-64|*"-64 ") libmagic=64-bit;;
11690  *) libmagic=never-match;;
11691  esac
11692  lt_cv_deplibs_check_method=pass_all
11693  ;;
11694
11695# This must be glibc/ELF.
11696linux* | k*bsd*-gnu | kopensolaris*-gnu)
11697  lt_cv_deplibs_check_method=pass_all
11698  ;;
11699
11700netbsd*)
11701  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11702    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11703  else
11704    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11705  fi
11706  ;;
11707
11708newos6*)
11709  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11710  lt_cv_file_magic_cmd=/usr/bin/file
11711  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11712  ;;
11713
11714*nto* | *qnx*)
11715  lt_cv_deplibs_check_method=pass_all
11716  ;;
11717
11718openbsd*)
11719  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11720    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11721  else
11722    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11723  fi
11724  ;;
11725
11726osf3* | osf4* | osf5*)
11727  lt_cv_deplibs_check_method=pass_all
11728  ;;
11729
11730rdos*)
11731  lt_cv_deplibs_check_method=pass_all
11732  ;;
11733
11734solaris*)
11735  lt_cv_deplibs_check_method=pass_all
11736  ;;
11737
11738sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11739  lt_cv_deplibs_check_method=pass_all
11740  ;;
11741
11742sysv4 | sysv4.3*)
11743  case $host_vendor in
11744  motorola)
11745    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]'
11746    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11747    ;;
11748  ncr)
11749    lt_cv_deplibs_check_method=pass_all
11750    ;;
11751  sequent)
11752    lt_cv_file_magic_cmd='/bin/file'
11753    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11754    ;;
11755  sni)
11756    lt_cv_file_magic_cmd='/bin/file'
11757    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11758    lt_cv_file_magic_test_file=/lib/libc.so
11759    ;;
11760  siemens)
11761    lt_cv_deplibs_check_method=pass_all
11762    ;;
11763  pc)
11764    lt_cv_deplibs_check_method=pass_all
11765    ;;
11766  esac
11767  ;;
11768
11769tpf*)
11770  lt_cv_deplibs_check_method=pass_all
11771  ;;
11772esac
11773
11774fi
11775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11776$as_echo "$lt_cv_deplibs_check_method" >&6; }
11777
11778file_magic_glob=
11779want_nocaseglob=no
11780if test "$build" = "$host"; then
11781  case $host_os in
11782  mingw* | pw32*)
11783    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11784      want_nocaseglob=yes
11785    else
11786      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11787    fi
11788    ;;
11789  esac
11790fi
11791
11792file_magic_cmd=$lt_cv_file_magic_cmd
11793deplibs_check_method=$lt_cv_deplibs_check_method
11794test -z "$deplibs_check_method" && deplibs_check_method=unknown
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817if test -n "$ac_tool_prefix"; then
11818  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11819set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11821$as_echo_n "checking for $ac_word... " >&6; }
11822if ${ac_cv_prog_DLLTOOL+:} false; then :
11823  $as_echo_n "(cached) " >&6
11824else
11825  if test -n "$DLLTOOL"; then
11826  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11827else
11828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11829for as_dir in $PATH
11830do
11831  IFS=$as_save_IFS
11832  test -z "$as_dir" && as_dir=.
11833    for ac_exec_ext in '' $ac_executable_extensions; do
11834  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11835    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11836    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11837    break 2
11838  fi
11839done
11840  done
11841IFS=$as_save_IFS
11842
11843fi
11844fi
11845DLLTOOL=$ac_cv_prog_DLLTOOL
11846if test -n "$DLLTOOL"; then
11847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11848$as_echo "$DLLTOOL" >&6; }
11849else
11850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11851$as_echo "no" >&6; }
11852fi
11853
11854
11855fi
11856if test -z "$ac_cv_prog_DLLTOOL"; then
11857  ac_ct_DLLTOOL=$DLLTOOL
11858  # Extract the first word of "dlltool", so it can be a program name with args.
11859set dummy dlltool; ac_word=$2
11860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11861$as_echo_n "checking for $ac_word... " >&6; }
11862if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11863  $as_echo_n "(cached) " >&6
11864else
11865  if test -n "$ac_ct_DLLTOOL"; then
11866  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11867else
11868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11869for as_dir in $PATH
11870do
11871  IFS=$as_save_IFS
11872  test -z "$as_dir" && as_dir=.
11873    for ac_exec_ext in '' $ac_executable_extensions; do
11874  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11875    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11876    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11877    break 2
11878  fi
11879done
11880  done
11881IFS=$as_save_IFS
11882
11883fi
11884fi
11885ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11886if test -n "$ac_ct_DLLTOOL"; then
11887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11888$as_echo "$ac_ct_DLLTOOL" >&6; }
11889else
11890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891$as_echo "no" >&6; }
11892fi
11893
11894  if test "x$ac_ct_DLLTOOL" = x; then
11895    DLLTOOL="false"
11896  else
11897    case $cross_compiling:$ac_tool_warned in
11898yes:)
11899{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11900$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11901ac_tool_warned=yes ;;
11902esac
11903    DLLTOOL=$ac_ct_DLLTOOL
11904  fi
11905else
11906  DLLTOOL="$ac_cv_prog_DLLTOOL"
11907fi
11908
11909test -z "$DLLTOOL" && DLLTOOL=dlltool
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11921$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11922if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11923  $as_echo_n "(cached) " >&6
11924else
11925  lt_cv_sharedlib_from_linklib_cmd='unknown'
11926
11927case $host_os in
11928cygwin* | mingw* | pw32* | cegcc*)
11929  # two different shell functions defined in ltmain.sh
11930  # decide which to use based on capabilities of $DLLTOOL
11931  case `$DLLTOOL --help 2>&1` in
11932  *--identify-strict*)
11933    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11934    ;;
11935  *)
11936    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11937    ;;
11938  esac
11939  ;;
11940*)
11941  # fallback: assume linklib IS sharedlib
11942  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11943  ;;
11944esac
11945
11946fi
11947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11948$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11949sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11950test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11951
11952
11953
11954
11955
11956
11957
11958if test -n "$ac_tool_prefix"; then
11959  for ac_prog in ar
11960  do
11961    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11962set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11964$as_echo_n "checking for $ac_word... " >&6; }
11965if ${ac_cv_prog_AR+:} false; then :
11966  $as_echo_n "(cached) " >&6
11967else
11968  if test -n "$AR"; then
11969  ac_cv_prog_AR="$AR" # Let the user override the test.
11970else
11971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11972for as_dir in $PATH
11973do
11974  IFS=$as_save_IFS
11975  test -z "$as_dir" && as_dir=.
11976    for ac_exec_ext in '' $ac_executable_extensions; do
11977  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11978    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
11979    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11980    break 2
11981  fi
11982done
11983  done
11984IFS=$as_save_IFS
11985
11986fi
11987fi
11988AR=$ac_cv_prog_AR
11989if test -n "$AR"; then
11990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11991$as_echo "$AR" >&6; }
11992else
11993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11994$as_echo "no" >&6; }
11995fi
11996
11997
11998    test -n "$AR" && break
11999  done
12000fi
12001if test -z "$AR"; then
12002  ac_ct_AR=$AR
12003  for ac_prog in ar
12004do
12005  # Extract the first word of "$ac_prog", so it can be a program name with args.
12006set dummy $ac_prog; ac_word=$2
12007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12008$as_echo_n "checking for $ac_word... " >&6; }
12009if ${ac_cv_prog_ac_ct_AR+:} false; then :
12010  $as_echo_n "(cached) " >&6
12011else
12012  if test -n "$ac_ct_AR"; then
12013  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12014else
12015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12016for as_dir in $PATH
12017do
12018  IFS=$as_save_IFS
12019  test -z "$as_dir" && as_dir=.
12020    for ac_exec_ext in '' $ac_executable_extensions; do
12021  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12022    ac_cv_prog_ac_ct_AR="$ac_prog"
12023    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12024    break 2
12025  fi
12026done
12027  done
12028IFS=$as_save_IFS
12029
12030fi
12031fi
12032ac_ct_AR=$ac_cv_prog_ac_ct_AR
12033if test -n "$ac_ct_AR"; then
12034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12035$as_echo "$ac_ct_AR" >&6; }
12036else
12037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12038$as_echo "no" >&6; }
12039fi
12040
12041
12042  test -n "$ac_ct_AR" && break
12043done
12044
12045  if test "x$ac_ct_AR" = x; then
12046    AR="false"
12047  else
12048    case $cross_compiling:$ac_tool_warned in
12049yes:)
12050{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12051$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12052ac_tool_warned=yes ;;
12053esac
12054    AR=$ac_ct_AR
12055  fi
12056fi
12057
12058: ${AR=ar}
12059: ${AR_FLAGS=cru}
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12072$as_echo_n "checking for archiver @FILE support... " >&6; }
12073if ${lt_cv_ar_at_file+:} false; then :
12074  $as_echo_n "(cached) " >&6
12075else
12076  lt_cv_ar_at_file=no
12077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12078/* end confdefs.h.  */
12079
12080int
12081main ()
12082{
12083
12084  ;
12085  return 0;
12086}
12087_ACEOF
12088if ac_fn_c_try_compile "$LINENO"; then :
12089  echo conftest.$ac_objext > conftest.lst
12090      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12091      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12092  (eval $lt_ar_try) 2>&5
12093  ac_status=$?
12094  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12095  test $ac_status = 0; }
12096      if test "$ac_status" -eq 0; then
12097	# Ensure the archiver fails upon bogus file names.
12098	rm -f conftest.$ac_objext libconftest.a
12099	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12100  (eval $lt_ar_try) 2>&5
12101  ac_status=$?
12102  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12103  test $ac_status = 0; }
12104	if test "$ac_status" -ne 0; then
12105          lt_cv_ar_at_file=@
12106        fi
12107      fi
12108      rm -f conftest.* libconftest.a
12109
12110fi
12111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12112
12113fi
12114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12115$as_echo "$lt_cv_ar_at_file" >&6; }
12116
12117if test "x$lt_cv_ar_at_file" = xno; then
12118  archiver_list_spec=
12119else
12120  archiver_list_spec=$lt_cv_ar_at_file
12121fi
12122
12123
12124
12125
12126
12127
12128
12129if test -n "$ac_tool_prefix"; then
12130  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12131set dummy ${ac_tool_prefix}strip; ac_word=$2
12132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12133$as_echo_n "checking for $ac_word... " >&6; }
12134if ${ac_cv_prog_STRIP+:} false; then :
12135  $as_echo_n "(cached) " >&6
12136else
12137  if test -n "$STRIP"; then
12138  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12139else
12140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12141for as_dir in $PATH
12142do
12143  IFS=$as_save_IFS
12144  test -z "$as_dir" && as_dir=.
12145    for ac_exec_ext in '' $ac_executable_extensions; do
12146  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12147    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12148    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12149    break 2
12150  fi
12151done
12152  done
12153IFS=$as_save_IFS
12154
12155fi
12156fi
12157STRIP=$ac_cv_prog_STRIP
12158if test -n "$STRIP"; then
12159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12160$as_echo "$STRIP" >&6; }
12161else
12162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12163$as_echo "no" >&6; }
12164fi
12165
12166
12167fi
12168if test -z "$ac_cv_prog_STRIP"; then
12169  ac_ct_STRIP=$STRIP
12170  # Extract the first word of "strip", so it can be a program name with args.
12171set dummy strip; ac_word=$2
12172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12173$as_echo_n "checking for $ac_word... " >&6; }
12174if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12175  $as_echo_n "(cached) " >&6
12176else
12177  if test -n "$ac_ct_STRIP"; then
12178  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12179else
12180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12181for as_dir in $PATH
12182do
12183  IFS=$as_save_IFS
12184  test -z "$as_dir" && as_dir=.
12185    for ac_exec_ext in '' $ac_executable_extensions; do
12186  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12187    ac_cv_prog_ac_ct_STRIP="strip"
12188    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12189    break 2
12190  fi
12191done
12192  done
12193IFS=$as_save_IFS
12194
12195fi
12196fi
12197ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12198if test -n "$ac_ct_STRIP"; then
12199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12200$as_echo "$ac_ct_STRIP" >&6; }
12201else
12202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12203$as_echo "no" >&6; }
12204fi
12205
12206  if test "x$ac_ct_STRIP" = x; then
12207    STRIP=":"
12208  else
12209    case $cross_compiling:$ac_tool_warned in
12210yes:)
12211{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12213ac_tool_warned=yes ;;
12214esac
12215    STRIP=$ac_ct_STRIP
12216  fi
12217else
12218  STRIP="$ac_cv_prog_STRIP"
12219fi
12220
12221test -z "$STRIP" && STRIP=:
12222
12223
12224
12225
12226
12227
12228if test -n "$ac_tool_prefix"; then
12229  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12230set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12232$as_echo_n "checking for $ac_word... " >&6; }
12233if ${ac_cv_prog_RANLIB+:} false; then :
12234  $as_echo_n "(cached) " >&6
12235else
12236  if test -n "$RANLIB"; then
12237  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12238else
12239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12240for as_dir in $PATH
12241do
12242  IFS=$as_save_IFS
12243  test -z "$as_dir" && as_dir=.
12244    for ac_exec_ext in '' $ac_executable_extensions; do
12245  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12246    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12247    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12248    break 2
12249  fi
12250done
12251  done
12252IFS=$as_save_IFS
12253
12254fi
12255fi
12256RANLIB=$ac_cv_prog_RANLIB
12257if test -n "$RANLIB"; then
12258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12259$as_echo "$RANLIB" >&6; }
12260else
12261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262$as_echo "no" >&6; }
12263fi
12264
12265
12266fi
12267if test -z "$ac_cv_prog_RANLIB"; then
12268  ac_ct_RANLIB=$RANLIB
12269  # Extract the first word of "ranlib", so it can be a program name with args.
12270set dummy ranlib; ac_word=$2
12271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12272$as_echo_n "checking for $ac_word... " >&6; }
12273if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12274  $as_echo_n "(cached) " >&6
12275else
12276  if test -n "$ac_ct_RANLIB"; then
12277  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12278else
12279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12280for as_dir in $PATH
12281do
12282  IFS=$as_save_IFS
12283  test -z "$as_dir" && as_dir=.
12284    for ac_exec_ext in '' $ac_executable_extensions; do
12285  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12286    ac_cv_prog_ac_ct_RANLIB="ranlib"
12287    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12288    break 2
12289  fi
12290done
12291  done
12292IFS=$as_save_IFS
12293
12294fi
12295fi
12296ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12297if test -n "$ac_ct_RANLIB"; then
12298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12299$as_echo "$ac_ct_RANLIB" >&6; }
12300else
12301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12302$as_echo "no" >&6; }
12303fi
12304
12305  if test "x$ac_ct_RANLIB" = x; then
12306    RANLIB=":"
12307  else
12308    case $cross_compiling:$ac_tool_warned in
12309yes:)
12310{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12311$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12312ac_tool_warned=yes ;;
12313esac
12314    RANLIB=$ac_ct_RANLIB
12315  fi
12316else
12317  RANLIB="$ac_cv_prog_RANLIB"
12318fi
12319
12320test -z "$RANLIB" && RANLIB=:
12321
12322
12323
12324
12325
12326
12327# Determine commands to create old-style static archives.
12328old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12329old_postinstall_cmds='chmod 644 $oldlib'
12330old_postuninstall_cmds=
12331
12332if test -n "$RANLIB"; then
12333  case $host_os in
12334  openbsd*)
12335    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12336    ;;
12337  *)
12338    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12339    ;;
12340  esac
12341  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12342fi
12343
12344case $host_os in
12345  darwin*)
12346    lock_old_archive_extraction=yes ;;
12347  *)
12348    lock_old_archive_extraction=no ;;
12349esac
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389# If no C compiler was specified, use CC.
12390LTCC=${LTCC-"$CC"}
12391
12392# If no C compiler flags were specified, use CFLAGS.
12393LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12394
12395# Allow CC to be a program name with arguments.
12396compiler=$CC
12397
12398
12399# Check for command to grab the raw symbol name followed by C symbol from nm.
12400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12401$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12402if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12403  $as_echo_n "(cached) " >&6
12404else
12405
12406# These are sane defaults that work on at least a few old systems.
12407# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12408
12409# Character class describing NM global symbol codes.
12410symcode='[BCDEGRST]'
12411
12412# Regexp to match symbols that can be accessed directly from C.
12413sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12414
12415# Define system-specific variables.
12416case $host_os in
12417aix*)
12418  symcode='[BCDT]'
12419  ;;
12420cygwin* | mingw* | pw32* | cegcc*)
12421  symcode='[ABCDGISTW]'
12422  ;;
12423hpux*)
12424  if test "$host_cpu" = ia64; then
12425    symcode='[ABCDEGRST]'
12426  fi
12427  ;;
12428irix* | nonstopux*)
12429  symcode='[BCDEGRST]'
12430  ;;
12431osf*)
12432  symcode='[BCDEGQRST]'
12433  ;;
12434solaris*)
12435  symcode='[BDRT]'
12436  ;;
12437sco3.2v5*)
12438  symcode='[DT]'
12439  ;;
12440sysv4.2uw2*)
12441  symcode='[DT]'
12442  ;;
12443sysv5* | sco5v6* | unixware* | OpenUNIX*)
12444  symcode='[ABDT]'
12445  ;;
12446sysv4)
12447  symcode='[DFNSTU]'
12448  ;;
12449esac
12450
12451# If we're using GNU nm, then use its standard symbol codes.
12452case `$NM -V 2>&1` in
12453*GNU* | *'with BFD'*)
12454  symcode='[ABCDGIRSTW]' ;;
12455esac
12456
12457# Transform an extracted symbol line into a proper C declaration.
12458# Some systems (esp. on ia64) link data and code symbols differently,
12459# so use this general approach.
12460lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12461
12462# Transform an extracted symbol line into symbol name and symbol address
12463lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12464lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
12465
12466# Handle CRLF in mingw tool chain
12467opt_cr=
12468case $build_os in
12469mingw*)
12470  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12471  ;;
12472esac
12473
12474# Try without a prefix underscore, then with it.
12475for ac_symprfx in "" "_"; do
12476
12477  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12478  symxfrm="\\1 $ac_symprfx\\2 \\2"
12479
12480  # Write the raw and C identifiers.
12481  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12482    # Fake it for dumpbin and say T for any non-static function
12483    # and D for any global variable.
12484    # Also find C++ and __fastcall symbols from MSVC++,
12485    # which start with @ or ?.
12486    lt_cv_sys_global_symbol_pipe="$AWK '"\
12487"     {last_section=section; section=\$ 3};"\
12488"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12489"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12490"     \$ 0!~/External *\|/{next};"\
12491"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12492"     {if(hide[section]) next};"\
12493"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12494"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12495"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12496"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12497"     ' prfx=^$ac_symprfx"
12498  else
12499    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12500  fi
12501  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12502
12503  # Check to see that the pipe works correctly.
12504  pipe_works=no
12505
12506  rm -f conftest*
12507  cat > conftest.$ac_ext <<_LT_EOF
12508#ifdef __cplusplus
12509extern "C" {
12510#endif
12511char nm_test_var;
12512void nm_test_func(void);
12513void nm_test_func(void){}
12514#ifdef __cplusplus
12515}
12516#endif
12517int main(){nm_test_var='a';nm_test_func();return(0);}
12518_LT_EOF
12519
12520  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12521  (eval $ac_compile) 2>&5
12522  ac_status=$?
12523  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12524  test $ac_status = 0; }; then
12525    # Now try to grab the symbols.
12526    nlist=conftest.nm
12527    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12528  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12529  ac_status=$?
12530  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12531  test $ac_status = 0; } && test -s "$nlist"; then
12532      # Try sorting and uniquifying the output.
12533      if sort "$nlist" | uniq > "$nlist"T; then
12534	mv -f "$nlist"T "$nlist"
12535      else
12536	rm -f "$nlist"T
12537      fi
12538
12539      # Make sure that we snagged all the symbols we need.
12540      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12541	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12542	  cat <<_LT_EOF > conftest.$ac_ext
12543/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12544#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12545/* DATA imports from DLLs on WIN32 con't be const, because runtime
12546   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12547# define LT_DLSYM_CONST
12548#elif defined(__osf__)
12549/* This system does not cope well with relocations in const data.  */
12550# define LT_DLSYM_CONST
12551#else
12552# define LT_DLSYM_CONST const
12553#endif
12554
12555#ifdef __cplusplus
12556extern "C" {
12557#endif
12558
12559_LT_EOF
12560	  # Now generate the symbol file.
12561	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12562
12563	  cat <<_LT_EOF >> conftest.$ac_ext
12564
12565/* The mapping between symbol names and symbols.  */
12566LT_DLSYM_CONST struct {
12567  const char *name;
12568  void       *address;
12569}
12570lt__PROGRAM__LTX_preloaded_symbols[] =
12571{
12572  { "@PROGRAM@", (void *) 0 },
12573_LT_EOF
12574	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12575	  cat <<\_LT_EOF >> conftest.$ac_ext
12576  {0, (void *) 0}
12577};
12578
12579/* This works around a problem in FreeBSD linker */
12580#ifdef FREEBSD_WORKAROUND
12581static const void *lt_preloaded_setup() {
12582  return lt__PROGRAM__LTX_preloaded_symbols;
12583}
12584#endif
12585
12586#ifdef __cplusplus
12587}
12588#endif
12589_LT_EOF
12590	  # Now try linking the two files.
12591	  mv conftest.$ac_objext conftstm.$ac_objext
12592	  lt_globsym_save_LIBS=$LIBS
12593	  lt_globsym_save_CFLAGS=$CFLAGS
12594	  LIBS="conftstm.$ac_objext"
12595	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12596	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12597  (eval $ac_link) 2>&5
12598  ac_status=$?
12599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12600  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12601	    pipe_works=yes
12602	  fi
12603	  LIBS=$lt_globsym_save_LIBS
12604	  CFLAGS=$lt_globsym_save_CFLAGS
12605	else
12606	  echo "cannot find nm_test_func in $nlist" >&5
12607	fi
12608      else
12609	echo "cannot find nm_test_var in $nlist" >&5
12610      fi
12611    else
12612      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12613    fi
12614  else
12615    echo "$progname: failed program was:" >&5
12616    cat conftest.$ac_ext >&5
12617  fi
12618  rm -rf conftest* conftst*
12619
12620  # Do not use the global_symbol_pipe unless it works.
12621  if test "$pipe_works" = yes; then
12622    break
12623  else
12624    lt_cv_sys_global_symbol_pipe=
12625  fi
12626done
12627
12628fi
12629
12630if test -z "$lt_cv_sys_global_symbol_pipe"; then
12631  lt_cv_sys_global_symbol_to_cdecl=
12632fi
12633if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12635$as_echo "failed" >&6; }
12636else
12637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12638$as_echo "ok" >&6; }
12639fi
12640
12641# Response file support.
12642if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12643  nm_file_list_spec='@'
12644elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12645  nm_file_list_spec='@'
12646fi
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12675$as_echo_n "checking for sysroot... " >&6; }
12676
12677# Check whether --with-sysroot was given.
12678if test "${with_sysroot+set}" = set; then :
12679  withval=$with_sysroot;
12680else
12681  with_sysroot=no
12682fi
12683
12684
12685lt_sysroot=
12686case ${with_sysroot} in #(
12687 yes)
12688   if test "$GCC" = yes; then
12689     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12690   fi
12691   ;; #(
12692 /*)
12693   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12694   ;; #(
12695 no|'')
12696   ;; #(
12697 *)
12698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12699$as_echo "${with_sysroot}" >&6; }
12700   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12701   ;;
12702esac
12703
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12705$as_echo "${lt_sysroot:-no}" >&6; }
12706
12707
12708
12709
12710
12711# Check whether --enable-libtool-lock was given.
12712if test "${enable_libtool_lock+set}" = set; then :
12713  enableval=$enable_libtool_lock;
12714fi
12715
12716test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12717
12718# Some flags need to be propagated to the compiler or linker for good
12719# libtool support.
12720case $host in
12721ia64-*-hpux*)
12722  # Find out which ABI we are using.
12723  echo 'int i;' > conftest.$ac_ext
12724  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12725  (eval $ac_compile) 2>&5
12726  ac_status=$?
12727  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12728  test $ac_status = 0; }; then
12729    case `/usr/bin/file conftest.$ac_objext` in
12730      *ELF-32*)
12731	HPUX_IA64_MODE="32"
12732	;;
12733      *ELF-64*)
12734	HPUX_IA64_MODE="64"
12735	;;
12736    esac
12737  fi
12738  rm -rf conftest*
12739  ;;
12740*-*-irix6*)
12741  # Find out which ABI we are using.
12742  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12743  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12744  (eval $ac_compile) 2>&5
12745  ac_status=$?
12746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12747  test $ac_status = 0; }; then
12748    if test "$lt_cv_prog_gnu_ld" = yes; then
12749      case `/usr/bin/file conftest.$ac_objext` in
12750	*32-bit*)
12751	  LD="${LD-ld} -melf32bsmip"
12752	  ;;
12753	*N32*)
12754	  LD="${LD-ld} -melf32bmipn32"
12755	  ;;
12756	*64-bit*)
12757	  LD="${LD-ld} -melf64bmip"
12758	;;
12759      esac
12760    else
12761      case `/usr/bin/file conftest.$ac_objext` in
12762	*32-bit*)
12763	  LD="${LD-ld} -32"
12764	  ;;
12765	*N32*)
12766	  LD="${LD-ld} -n32"
12767	  ;;
12768	*64-bit*)
12769	  LD="${LD-ld} -64"
12770	  ;;
12771      esac
12772    fi
12773  fi
12774  rm -rf conftest*
12775  ;;
12776
12777x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12778s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12779  # Find out which ABI we are using.
12780  echo 'int i;' > conftest.$ac_ext
12781  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12782  (eval $ac_compile) 2>&5
12783  ac_status=$?
12784  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12785  test $ac_status = 0; }; then
12786    case `/usr/bin/file conftest.o` in
12787      *32-bit*)
12788	case $host in
12789	  x86_64-*kfreebsd*-gnu)
12790	    LD="${LD-ld} -m elf_i386_fbsd"
12791	    ;;
12792	  x86_64-*linux*)
12793	    LD="${LD-ld} -m elf_i386"
12794	    ;;
12795	  ppc64-*linux*|powerpc64-*linux*)
12796	    LD="${LD-ld} -m elf32ppclinux"
12797	    ;;
12798	  s390x-*linux*)
12799	    LD="${LD-ld} -m elf_s390"
12800	    ;;
12801	  sparc64-*linux*)
12802	    LD="${LD-ld} -m elf32_sparc"
12803	    ;;
12804	esac
12805	;;
12806      *64-bit*)
12807	case $host in
12808	  x86_64-*kfreebsd*-gnu)
12809	    LD="${LD-ld} -m elf_x86_64_fbsd"
12810	    ;;
12811	  x86_64-*linux*)
12812	    LD="${LD-ld} -m elf_x86_64"
12813	    ;;
12814	  ppc*-*linux*|powerpc*-*linux*)
12815	    LD="${LD-ld} -m elf64ppc"
12816	    ;;
12817	  s390*-*linux*|s390*-*tpf*)
12818	    LD="${LD-ld} -m elf64_s390"
12819	    ;;
12820	  sparc*-*linux*)
12821	    LD="${LD-ld} -m elf64_sparc"
12822	    ;;
12823	esac
12824	;;
12825    esac
12826  fi
12827  rm -rf conftest*
12828  ;;
12829
12830*-*-sco3.2v5*)
12831  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12832  SAVE_CFLAGS="$CFLAGS"
12833  CFLAGS="$CFLAGS -belf"
12834  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12835$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12836if ${lt_cv_cc_needs_belf+:} false; then :
12837  $as_echo_n "(cached) " >&6
12838else
12839  ac_ext=c
12840ac_cpp='$CPP $CPPFLAGS'
12841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12843ac_compiler_gnu=$ac_cv_c_compiler_gnu
12844
12845     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12846/* end confdefs.h.  */
12847
12848int
12849main ()
12850{
12851
12852  ;
12853  return 0;
12854}
12855_ACEOF
12856if ac_fn_c_try_link "$LINENO"; then :
12857  lt_cv_cc_needs_belf=yes
12858else
12859  lt_cv_cc_needs_belf=no
12860fi
12861rm -f core conftest.err conftest.$ac_objext \
12862    conftest$ac_exeext conftest.$ac_ext
12863     ac_ext=c
12864ac_cpp='$CPP $CPPFLAGS'
12865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12867ac_compiler_gnu=$ac_cv_c_compiler_gnu
12868
12869fi
12870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12871$as_echo "$lt_cv_cc_needs_belf" >&6; }
12872  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12873    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12874    CFLAGS="$SAVE_CFLAGS"
12875  fi
12876  ;;
12877*-*solaris*)
12878  # Find out which ABI we are using.
12879  echo 'int i;' > conftest.$ac_ext
12880  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12881  (eval $ac_compile) 2>&5
12882  ac_status=$?
12883  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12884  test $ac_status = 0; }; then
12885    case `/usr/bin/file conftest.o` in
12886    *64-bit*)
12887      case $lt_cv_prog_gnu_ld in
12888      yes*)
12889        case $host in
12890        i?86-*-solaris*)
12891          LD="${LD-ld} -m elf_x86_64"
12892          ;;
12893        sparc*-*-solaris*)
12894          LD="${LD-ld} -m elf64_sparc"
12895          ;;
12896        esac
12897        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
12898        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12899          LD="${LD-ld}_sol2"
12900        fi
12901        ;;
12902      *)
12903	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12904	  LD="${LD-ld} -64"
12905	fi
12906	;;
12907      esac
12908      ;;
12909    esac
12910  fi
12911  rm -rf conftest*
12912  ;;
12913esac
12914
12915need_locks="$enable_libtool_lock"
12916
12917if test -n "$ac_tool_prefix"; then
12918  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12919set dummy ${ac_tool_prefix}mt; ac_word=$2
12920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12921$as_echo_n "checking for $ac_word... " >&6; }
12922if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12923  $as_echo_n "(cached) " >&6
12924else
12925  if test -n "$MANIFEST_TOOL"; then
12926  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12927else
12928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12929for as_dir in $PATH
12930do
12931  IFS=$as_save_IFS
12932  test -z "$as_dir" && as_dir=.
12933    for ac_exec_ext in '' $ac_executable_extensions; do
12934  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12935    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12936    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12937    break 2
12938  fi
12939done
12940  done
12941IFS=$as_save_IFS
12942
12943fi
12944fi
12945MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12946if test -n "$MANIFEST_TOOL"; then
12947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12948$as_echo "$MANIFEST_TOOL" >&6; }
12949else
12950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12951$as_echo "no" >&6; }
12952fi
12953
12954
12955fi
12956if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12957  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12958  # Extract the first word of "mt", so it can be a program name with args.
12959set dummy mt; ac_word=$2
12960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12961$as_echo_n "checking for $ac_word... " >&6; }
12962if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12963  $as_echo_n "(cached) " >&6
12964else
12965  if test -n "$ac_ct_MANIFEST_TOOL"; then
12966  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12967else
12968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12969for as_dir in $PATH
12970do
12971  IFS=$as_save_IFS
12972  test -z "$as_dir" && as_dir=.
12973    for ac_exec_ext in '' $ac_executable_extensions; do
12974  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12975    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12976    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12977    break 2
12978  fi
12979done
12980  done
12981IFS=$as_save_IFS
12982
12983fi
12984fi
12985ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12986if test -n "$ac_ct_MANIFEST_TOOL"; then
12987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12988$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12989else
12990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12991$as_echo "no" >&6; }
12992fi
12993
12994  if test "x$ac_ct_MANIFEST_TOOL" = x; then
12995    MANIFEST_TOOL=":"
12996  else
12997    case $cross_compiling:$ac_tool_warned in
12998yes:)
12999{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13001ac_tool_warned=yes ;;
13002esac
13003    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13004  fi
13005else
13006  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13007fi
13008
13009test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13011$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13012if ${lt_cv_path_mainfest_tool+:} false; then :
13013  $as_echo_n "(cached) " >&6
13014else
13015  lt_cv_path_mainfest_tool=no
13016  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13017  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13018  cat conftest.err >&5
13019  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13020    lt_cv_path_mainfest_tool=yes
13021  fi
13022  rm -f conftest*
13023fi
13024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13025$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13026if test "x$lt_cv_path_mainfest_tool" != xyes; then
13027  MANIFEST_TOOL=:
13028fi
13029
13030
13031
13032
13033
13034
13035  case $host_os in
13036    rhapsody* | darwin*)
13037    if test -n "$ac_tool_prefix"; then
13038  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13039set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13041$as_echo_n "checking for $ac_word... " >&6; }
13042if ${ac_cv_prog_DSYMUTIL+:} false; then :
13043  $as_echo_n "(cached) " >&6
13044else
13045  if test -n "$DSYMUTIL"; then
13046  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13047else
13048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13049for as_dir in $PATH
13050do
13051  IFS=$as_save_IFS
13052  test -z "$as_dir" && as_dir=.
13053    for ac_exec_ext in '' $ac_executable_extensions; do
13054  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13055    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13056    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13057    break 2
13058  fi
13059done
13060  done
13061IFS=$as_save_IFS
13062
13063fi
13064fi
13065DSYMUTIL=$ac_cv_prog_DSYMUTIL
13066if test -n "$DSYMUTIL"; then
13067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13068$as_echo "$DSYMUTIL" >&6; }
13069else
13070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13071$as_echo "no" >&6; }
13072fi
13073
13074
13075fi
13076if test -z "$ac_cv_prog_DSYMUTIL"; then
13077  ac_ct_DSYMUTIL=$DSYMUTIL
13078  # Extract the first word of "dsymutil", so it can be a program name with args.
13079set dummy dsymutil; ac_word=$2
13080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13081$as_echo_n "checking for $ac_word... " >&6; }
13082if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13083  $as_echo_n "(cached) " >&6
13084else
13085  if test -n "$ac_ct_DSYMUTIL"; then
13086  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13087else
13088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13089for as_dir in $PATH
13090do
13091  IFS=$as_save_IFS
13092  test -z "$as_dir" && as_dir=.
13093    for ac_exec_ext in '' $ac_executable_extensions; do
13094  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13095    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13097    break 2
13098  fi
13099done
13100  done
13101IFS=$as_save_IFS
13102
13103fi
13104fi
13105ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13106if test -n "$ac_ct_DSYMUTIL"; then
13107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13108$as_echo "$ac_ct_DSYMUTIL" >&6; }
13109else
13110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13111$as_echo "no" >&6; }
13112fi
13113
13114  if test "x$ac_ct_DSYMUTIL" = x; then
13115    DSYMUTIL=":"
13116  else
13117    case $cross_compiling:$ac_tool_warned in
13118yes:)
13119{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13121ac_tool_warned=yes ;;
13122esac
13123    DSYMUTIL=$ac_ct_DSYMUTIL
13124  fi
13125else
13126  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13127fi
13128
13129    if test -n "$ac_tool_prefix"; then
13130  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13131set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13133$as_echo_n "checking for $ac_word... " >&6; }
13134if ${ac_cv_prog_NMEDIT+:} false; then :
13135  $as_echo_n "(cached) " >&6
13136else
13137  if test -n "$NMEDIT"; then
13138  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13139else
13140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13141for as_dir in $PATH
13142do
13143  IFS=$as_save_IFS
13144  test -z "$as_dir" && as_dir=.
13145    for ac_exec_ext in '' $ac_executable_extensions; do
13146  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13147    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13148    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13149    break 2
13150  fi
13151done
13152  done
13153IFS=$as_save_IFS
13154
13155fi
13156fi
13157NMEDIT=$ac_cv_prog_NMEDIT
13158if test -n "$NMEDIT"; then
13159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13160$as_echo "$NMEDIT" >&6; }
13161else
13162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13163$as_echo "no" >&6; }
13164fi
13165
13166
13167fi
13168if test -z "$ac_cv_prog_NMEDIT"; then
13169  ac_ct_NMEDIT=$NMEDIT
13170  # Extract the first word of "nmedit", so it can be a program name with args.
13171set dummy nmedit; ac_word=$2
13172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13173$as_echo_n "checking for $ac_word... " >&6; }
13174if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13175  $as_echo_n "(cached) " >&6
13176else
13177  if test -n "$ac_ct_NMEDIT"; then
13178  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13179else
13180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13181for as_dir in $PATH
13182do
13183  IFS=$as_save_IFS
13184  test -z "$as_dir" && as_dir=.
13185    for ac_exec_ext in '' $ac_executable_extensions; do
13186  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13187    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13188    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13189    break 2
13190  fi
13191done
13192  done
13193IFS=$as_save_IFS
13194
13195fi
13196fi
13197ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13198if test -n "$ac_ct_NMEDIT"; then
13199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13200$as_echo "$ac_ct_NMEDIT" >&6; }
13201else
13202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13203$as_echo "no" >&6; }
13204fi
13205
13206  if test "x$ac_ct_NMEDIT" = x; then
13207    NMEDIT=":"
13208  else
13209    case $cross_compiling:$ac_tool_warned in
13210yes:)
13211{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13213ac_tool_warned=yes ;;
13214esac
13215    NMEDIT=$ac_ct_NMEDIT
13216  fi
13217else
13218  NMEDIT="$ac_cv_prog_NMEDIT"
13219fi
13220
13221    if test -n "$ac_tool_prefix"; then
13222  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13223set dummy ${ac_tool_prefix}lipo; ac_word=$2
13224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13225$as_echo_n "checking for $ac_word... " >&6; }
13226if ${ac_cv_prog_LIPO+:} false; then :
13227  $as_echo_n "(cached) " >&6
13228else
13229  if test -n "$LIPO"; then
13230  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13231else
13232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13233for as_dir in $PATH
13234do
13235  IFS=$as_save_IFS
13236  test -z "$as_dir" && as_dir=.
13237    for ac_exec_ext in '' $ac_executable_extensions; do
13238  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13239    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13240    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13241    break 2
13242  fi
13243done
13244  done
13245IFS=$as_save_IFS
13246
13247fi
13248fi
13249LIPO=$ac_cv_prog_LIPO
13250if test -n "$LIPO"; then
13251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13252$as_echo "$LIPO" >&6; }
13253else
13254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13255$as_echo "no" >&6; }
13256fi
13257
13258
13259fi
13260if test -z "$ac_cv_prog_LIPO"; then
13261  ac_ct_LIPO=$LIPO
13262  # Extract the first word of "lipo", so it can be a program name with args.
13263set dummy lipo; ac_word=$2
13264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13265$as_echo_n "checking for $ac_word... " >&6; }
13266if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13267  $as_echo_n "(cached) " >&6
13268else
13269  if test -n "$ac_ct_LIPO"; then
13270  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13271else
13272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13273for as_dir in $PATH
13274do
13275  IFS=$as_save_IFS
13276  test -z "$as_dir" && as_dir=.
13277    for ac_exec_ext in '' $ac_executable_extensions; do
13278  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13279    ac_cv_prog_ac_ct_LIPO="lipo"
13280    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13281    break 2
13282  fi
13283done
13284  done
13285IFS=$as_save_IFS
13286
13287fi
13288fi
13289ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13290if test -n "$ac_ct_LIPO"; then
13291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13292$as_echo "$ac_ct_LIPO" >&6; }
13293else
13294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13295$as_echo "no" >&6; }
13296fi
13297
13298  if test "x$ac_ct_LIPO" = x; then
13299    LIPO=":"
13300  else
13301    case $cross_compiling:$ac_tool_warned in
13302yes:)
13303{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13304$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13305ac_tool_warned=yes ;;
13306esac
13307    LIPO=$ac_ct_LIPO
13308  fi
13309else
13310  LIPO="$ac_cv_prog_LIPO"
13311fi
13312
13313    if test -n "$ac_tool_prefix"; then
13314  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13315set dummy ${ac_tool_prefix}otool; ac_word=$2
13316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13317$as_echo_n "checking for $ac_word... " >&6; }
13318if ${ac_cv_prog_OTOOL+:} false; then :
13319  $as_echo_n "(cached) " >&6
13320else
13321  if test -n "$OTOOL"; then
13322  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13323else
13324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13325for as_dir in $PATH
13326do
13327  IFS=$as_save_IFS
13328  test -z "$as_dir" && as_dir=.
13329    for ac_exec_ext in '' $ac_executable_extensions; do
13330  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13331    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13332    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13333    break 2
13334  fi
13335done
13336  done
13337IFS=$as_save_IFS
13338
13339fi
13340fi
13341OTOOL=$ac_cv_prog_OTOOL
13342if test -n "$OTOOL"; then
13343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13344$as_echo "$OTOOL" >&6; }
13345else
13346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13347$as_echo "no" >&6; }
13348fi
13349
13350
13351fi
13352if test -z "$ac_cv_prog_OTOOL"; then
13353  ac_ct_OTOOL=$OTOOL
13354  # Extract the first word of "otool", so it can be a program name with args.
13355set dummy otool; ac_word=$2
13356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13357$as_echo_n "checking for $ac_word... " >&6; }
13358if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13359  $as_echo_n "(cached) " >&6
13360else
13361  if test -n "$ac_ct_OTOOL"; then
13362  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13363else
13364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13365for as_dir in $PATH
13366do
13367  IFS=$as_save_IFS
13368  test -z "$as_dir" && as_dir=.
13369    for ac_exec_ext in '' $ac_executable_extensions; do
13370  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13371    ac_cv_prog_ac_ct_OTOOL="otool"
13372    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13373    break 2
13374  fi
13375done
13376  done
13377IFS=$as_save_IFS
13378
13379fi
13380fi
13381ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13382if test -n "$ac_ct_OTOOL"; then
13383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13384$as_echo "$ac_ct_OTOOL" >&6; }
13385else
13386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13387$as_echo "no" >&6; }
13388fi
13389
13390  if test "x$ac_ct_OTOOL" = x; then
13391    OTOOL=":"
13392  else
13393    case $cross_compiling:$ac_tool_warned in
13394yes:)
13395{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13396$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13397ac_tool_warned=yes ;;
13398esac
13399    OTOOL=$ac_ct_OTOOL
13400  fi
13401else
13402  OTOOL="$ac_cv_prog_OTOOL"
13403fi
13404
13405    if test -n "$ac_tool_prefix"; then
13406  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13407set dummy ${ac_tool_prefix}otool64; ac_word=$2
13408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13409$as_echo_n "checking for $ac_word... " >&6; }
13410if ${ac_cv_prog_OTOOL64+:} false; then :
13411  $as_echo_n "(cached) " >&6
13412else
13413  if test -n "$OTOOL64"; then
13414  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13415else
13416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13417for as_dir in $PATH
13418do
13419  IFS=$as_save_IFS
13420  test -z "$as_dir" && as_dir=.
13421    for ac_exec_ext in '' $ac_executable_extensions; do
13422  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13423    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13424    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13425    break 2
13426  fi
13427done
13428  done
13429IFS=$as_save_IFS
13430
13431fi
13432fi
13433OTOOL64=$ac_cv_prog_OTOOL64
13434if test -n "$OTOOL64"; then
13435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13436$as_echo "$OTOOL64" >&6; }
13437else
13438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13439$as_echo "no" >&6; }
13440fi
13441
13442
13443fi
13444if test -z "$ac_cv_prog_OTOOL64"; then
13445  ac_ct_OTOOL64=$OTOOL64
13446  # Extract the first word of "otool64", so it can be a program name with args.
13447set dummy otool64; ac_word=$2
13448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13449$as_echo_n "checking for $ac_word... " >&6; }
13450if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13451  $as_echo_n "(cached) " >&6
13452else
13453  if test -n "$ac_ct_OTOOL64"; then
13454  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13455else
13456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13457for as_dir in $PATH
13458do
13459  IFS=$as_save_IFS
13460  test -z "$as_dir" && as_dir=.
13461    for ac_exec_ext in '' $ac_executable_extensions; do
13462  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13463    ac_cv_prog_ac_ct_OTOOL64="otool64"
13464    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13465    break 2
13466  fi
13467done
13468  done
13469IFS=$as_save_IFS
13470
13471fi
13472fi
13473ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13474if test -n "$ac_ct_OTOOL64"; then
13475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13476$as_echo "$ac_ct_OTOOL64" >&6; }
13477else
13478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13479$as_echo "no" >&6; }
13480fi
13481
13482  if test "x$ac_ct_OTOOL64" = x; then
13483    OTOOL64=":"
13484  else
13485    case $cross_compiling:$ac_tool_warned in
13486yes:)
13487{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13488$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13489ac_tool_warned=yes ;;
13490esac
13491    OTOOL64=$ac_ct_OTOOL64
13492  fi
13493else
13494  OTOOL64="$ac_cv_prog_OTOOL64"
13495fi
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13524$as_echo_n "checking for -single_module linker flag... " >&6; }
13525if ${lt_cv_apple_cc_single_mod+:} false; then :
13526  $as_echo_n "(cached) " >&6
13527else
13528  lt_cv_apple_cc_single_mod=no
13529      if test -z "${LT_MULTI_MODULE}"; then
13530	# By default we will add the -single_module flag. You can override
13531	# by either setting the environment variable LT_MULTI_MODULE
13532	# non-empty at configure time, or by adding -multi_module to the
13533	# link flags.
13534	rm -rf libconftest.dylib*
13535	echo "int foo(void){return 1;}" > conftest.c
13536	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13537-dynamiclib -Wl,-single_module conftest.c" >&5
13538	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13539	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13540        _lt_result=$?
13541	# If there is a non-empty error log, and "single_module"
13542	# appears in it, assume the flag caused a linker warning
13543        if test -s conftest.err && $GREP single_module conftest.err; then
13544	  cat conftest.err >&5
13545	# Otherwise, if the output was created with a 0 exit code from
13546	# the compiler, it worked.
13547	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13548	  lt_cv_apple_cc_single_mod=yes
13549	else
13550	  cat conftest.err >&5
13551	fi
13552	rm -rf libconftest.dylib*
13553	rm -f conftest.*
13554      fi
13555fi
13556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13557$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13558
13559    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13560$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13561if ${lt_cv_ld_exported_symbols_list+:} false; then :
13562  $as_echo_n "(cached) " >&6
13563else
13564  lt_cv_ld_exported_symbols_list=no
13565      save_LDFLAGS=$LDFLAGS
13566      echo "_main" > conftest.sym
13567      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13568      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13569/* end confdefs.h.  */
13570
13571int
13572main ()
13573{
13574
13575  ;
13576  return 0;
13577}
13578_ACEOF
13579if ac_fn_c_try_link "$LINENO"; then :
13580  lt_cv_ld_exported_symbols_list=yes
13581else
13582  lt_cv_ld_exported_symbols_list=no
13583fi
13584rm -f core conftest.err conftest.$ac_objext \
13585    conftest$ac_exeext conftest.$ac_ext
13586	LDFLAGS="$save_LDFLAGS"
13587
13588fi
13589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13590$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13591
13592    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13593$as_echo_n "checking for -force_load linker flag... " >&6; }
13594if ${lt_cv_ld_force_load+:} false; then :
13595  $as_echo_n "(cached) " >&6
13596else
13597  lt_cv_ld_force_load=no
13598      cat > conftest.c << _LT_EOF
13599int forced_loaded() { return 2;}
13600_LT_EOF
13601      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13602      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13603      echo "$AR cru libconftest.a conftest.o" >&5
13604      $AR cru libconftest.a conftest.o 2>&5
13605      echo "$RANLIB libconftest.a" >&5
13606      $RANLIB libconftest.a 2>&5
13607      cat > conftest.c << _LT_EOF
13608int main() { return 0;}
13609_LT_EOF
13610      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13611      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13612      _lt_result=$?
13613      if test -s conftest.err && $GREP force_load conftest.err; then
13614	cat conftest.err >&5
13615      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13616	lt_cv_ld_force_load=yes
13617      else
13618	cat conftest.err >&5
13619      fi
13620        rm -f conftest.err libconftest.a conftest conftest.c
13621        rm -rf conftest.dSYM
13622
13623fi
13624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13625$as_echo "$lt_cv_ld_force_load" >&6; }
13626    case $host_os in
13627    rhapsody* | darwin1.[012])
13628      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13629    darwin1.*)
13630      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13631    darwin*) # darwin 5.x on
13632      # if running on 10.5 or later, the deployment target defaults
13633      # to the OS version, if on x86, and 10.4, the deployment
13634      # target defaults to 10.4. Don't you love it?
13635      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13636	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13637	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13638	10.[012]*)
13639	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13640	10.*)
13641	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13642      esac
13643    ;;
13644  esac
13645    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13646      _lt_dar_single_mod='$single_module'
13647    fi
13648    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13649      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13650    else
13651      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13652    fi
13653    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13654      _lt_dsymutil='~$DSYMUTIL $lib || :'
13655    else
13656      _lt_dsymutil=
13657    fi
13658    ;;
13659  esac
13660
13661for ac_header in dlfcn.h
13662do :
13663  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13664"
13665if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13666  cat >>confdefs.h <<_ACEOF
13667#define HAVE_DLFCN_H 1
13668_ACEOF
13669
13670fi
13671
13672done
13673
13674
13675
13676
13677
13678# Set options
13679
13680
13681
13682        enable_dlopen=no
13683
13684
13685  enable_win32_dll=no
13686
13687
13688            # Check whether --enable-shared was given.
13689if test "${enable_shared+set}" = set; then :
13690  enableval=$enable_shared; p=${PACKAGE-default}
13691    case $enableval in
13692    yes) enable_shared=yes ;;
13693    no) enable_shared=no ;;
13694    *)
13695      enable_shared=no
13696      # Look at the argument we got.  We use all the common list separators.
13697      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13698      for pkg in $enableval; do
13699	IFS="$lt_save_ifs"
13700	if test "X$pkg" = "X$p"; then
13701	  enable_shared=yes
13702	fi
13703      done
13704      IFS="$lt_save_ifs"
13705      ;;
13706    esac
13707else
13708  enable_shared=yes
13709fi
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721# Check whether --with-pic was given.
13722if test "${with_pic+set}" = set; then :
13723  withval=$with_pic; lt_p=${PACKAGE-default}
13724    case $withval in
13725    yes|no) pic_mode=$withval ;;
13726    *)
13727      pic_mode=default
13728      # Look at the argument we got.  We use all the common list separators.
13729      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13730      for lt_pkg in $withval; do
13731	IFS="$lt_save_ifs"
13732	if test "X$lt_pkg" = "X$lt_p"; then
13733	  pic_mode=yes
13734	fi
13735      done
13736      IFS="$lt_save_ifs"
13737      ;;
13738    esac
13739else
13740  pic_mode=default
13741fi
13742
13743
13744test -z "$pic_mode" && pic_mode=default
13745
13746
13747
13748
13749
13750
13751
13752  # Check whether --enable-fast-install was given.
13753if test "${enable_fast_install+set}" = set; then :
13754  enableval=$enable_fast_install; p=${PACKAGE-default}
13755    case $enableval in
13756    yes) enable_fast_install=yes ;;
13757    no) enable_fast_install=no ;;
13758    *)
13759      enable_fast_install=no
13760      # Look at the argument we got.  We use all the common list separators.
13761      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13762      for pkg in $enableval; do
13763	IFS="$lt_save_ifs"
13764	if test "X$pkg" = "X$p"; then
13765	  enable_fast_install=yes
13766	fi
13767      done
13768      IFS="$lt_save_ifs"
13769      ;;
13770    esac
13771else
13772  enable_fast_install=yes
13773fi
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785# This can be used to rebuild libtool when needed
13786LIBTOOL_DEPS="$ltmain"
13787
13788# Always use our own libtool.
13789LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820test -z "$LN_S" && LN_S="ln -s"
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835if test -n "${ZSH_VERSION+set}" ; then
13836   setopt NO_GLOB_SUBST
13837fi
13838
13839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13840$as_echo_n "checking for objdir... " >&6; }
13841if ${lt_cv_objdir+:} false; then :
13842  $as_echo_n "(cached) " >&6
13843else
13844  rm -f .libs 2>/dev/null
13845mkdir .libs 2>/dev/null
13846if test -d .libs; then
13847  lt_cv_objdir=.libs
13848else
13849  # MS-DOS does not allow filenames that begin with a dot.
13850  lt_cv_objdir=_libs
13851fi
13852rmdir .libs 2>/dev/null
13853fi
13854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13855$as_echo "$lt_cv_objdir" >&6; }
13856objdir=$lt_cv_objdir
13857
13858
13859
13860
13861
13862cat >>confdefs.h <<_ACEOF
13863#define LT_OBJDIR "$lt_cv_objdir/"
13864_ACEOF
13865
13866
13867
13868
13869case $host_os in
13870aix3*)
13871  # AIX sometimes has problems with the GCC collect2 program.  For some
13872  # reason, if we set the COLLECT_NAMES environment variable, the problems
13873  # vanish in a puff of smoke.
13874  if test "X${COLLECT_NAMES+set}" != Xset; then
13875    COLLECT_NAMES=
13876    export COLLECT_NAMES
13877  fi
13878  ;;
13879esac
13880
13881# Global variables:
13882ofile=libtool
13883can_build_shared=yes
13884
13885# All known linkers require a `.a' archive for static linking (except MSVC,
13886# which needs '.lib').
13887libext=a
13888
13889with_gnu_ld="$lt_cv_prog_gnu_ld"
13890
13891old_CC="$CC"
13892old_CFLAGS="$CFLAGS"
13893
13894# Set sane defaults for various variables
13895test -z "$CC" && CC=cc
13896test -z "$LTCC" && LTCC=$CC
13897test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13898test -z "$LD" && LD=ld
13899test -z "$ac_objext" && ac_objext=o
13900
13901for cc_temp in $compiler""; do
13902  case $cc_temp in
13903    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13904    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13905    \-*) ;;
13906    *) break;;
13907  esac
13908done
13909cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13910
13911
13912# Only perform the check for file, if the check method requires it
13913test -z "$MAGIC_CMD" && MAGIC_CMD=file
13914case $deplibs_check_method in
13915file_magic*)
13916  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13917    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13918$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13919if ${lt_cv_path_MAGIC_CMD+:} false; then :
13920  $as_echo_n "(cached) " >&6
13921else
13922  case $MAGIC_CMD in
13923[\\/*] |  ?:[\\/]*)
13924  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13925  ;;
13926*)
13927  lt_save_MAGIC_CMD="$MAGIC_CMD"
13928  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13929  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13930  for ac_dir in $ac_dummy; do
13931    IFS="$lt_save_ifs"
13932    test -z "$ac_dir" && ac_dir=.
13933    if test -f $ac_dir/${ac_tool_prefix}file; then
13934      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13935      if test -n "$file_magic_test_file"; then
13936	case $deplibs_check_method in
13937	"file_magic "*)
13938	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13939	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13940	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13941	    $EGREP "$file_magic_regex" > /dev/null; then
13942	    :
13943	  else
13944	    cat <<_LT_EOF 1>&2
13945
13946*** Warning: the command libtool uses to detect shared libraries,
13947*** $file_magic_cmd, produces output that libtool cannot recognize.
13948*** The result is that libtool may fail to recognize shared libraries
13949*** as such.  This will affect the creation of libtool libraries that
13950*** depend on shared libraries, but programs linked with such libtool
13951*** libraries will work regardless of this problem.  Nevertheless, you
13952*** may want to report the problem to your system manager and/or to
13953*** bug-libtool@gnu.org
13954
13955_LT_EOF
13956	  fi ;;
13957	esac
13958      fi
13959      break
13960    fi
13961  done
13962  IFS="$lt_save_ifs"
13963  MAGIC_CMD="$lt_save_MAGIC_CMD"
13964  ;;
13965esac
13966fi
13967
13968MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13969if test -n "$MAGIC_CMD"; then
13970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13971$as_echo "$MAGIC_CMD" >&6; }
13972else
13973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13974$as_echo "no" >&6; }
13975fi
13976
13977
13978
13979
13980
13981if test -z "$lt_cv_path_MAGIC_CMD"; then
13982  if test -n "$ac_tool_prefix"; then
13983    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13984$as_echo_n "checking for file... " >&6; }
13985if ${lt_cv_path_MAGIC_CMD+:} false; then :
13986  $as_echo_n "(cached) " >&6
13987else
13988  case $MAGIC_CMD in
13989[\\/*] |  ?:[\\/]*)
13990  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13991  ;;
13992*)
13993  lt_save_MAGIC_CMD="$MAGIC_CMD"
13994  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13995  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13996  for ac_dir in $ac_dummy; do
13997    IFS="$lt_save_ifs"
13998    test -z "$ac_dir" && ac_dir=.
13999    if test -f $ac_dir/file; then
14000      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14001      if test -n "$file_magic_test_file"; then
14002	case $deplibs_check_method in
14003	"file_magic "*)
14004	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14005	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14006	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14007	    $EGREP "$file_magic_regex" > /dev/null; then
14008	    :
14009	  else
14010	    cat <<_LT_EOF 1>&2
14011
14012*** Warning: the command libtool uses to detect shared libraries,
14013*** $file_magic_cmd, produces output that libtool cannot recognize.
14014*** The result is that libtool may fail to recognize shared libraries
14015*** as such.  This will affect the creation of libtool libraries that
14016*** depend on shared libraries, but programs linked with such libtool
14017*** libraries will work regardless of this problem.  Nevertheless, you
14018*** may want to report the problem to your system manager and/or to
14019*** bug-libtool@gnu.org
14020
14021_LT_EOF
14022	  fi ;;
14023	esac
14024      fi
14025      break
14026    fi
14027  done
14028  IFS="$lt_save_ifs"
14029  MAGIC_CMD="$lt_save_MAGIC_CMD"
14030  ;;
14031esac
14032fi
14033
14034MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14035if test -n "$MAGIC_CMD"; then
14036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14037$as_echo "$MAGIC_CMD" >&6; }
14038else
14039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14040$as_echo "no" >&6; }
14041fi
14042
14043
14044  else
14045    MAGIC_CMD=:
14046  fi
14047fi
14048
14049  fi
14050  ;;
14051esac
14052
14053# Use C for the default configuration in the libtool script
14054
14055lt_save_CC="$CC"
14056ac_ext=c
14057ac_cpp='$CPP $CPPFLAGS'
14058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14060ac_compiler_gnu=$ac_cv_c_compiler_gnu
14061
14062
14063# Source file extension for C test sources.
14064ac_ext=c
14065
14066# Object file extension for compiled C test sources.
14067objext=o
14068objext=$objext
14069
14070# Code to be used in simple compile tests
14071lt_simple_compile_test_code="int some_variable = 0;"
14072
14073# Code to be used in simple link tests
14074lt_simple_link_test_code='int main(){return(0);}'
14075
14076
14077
14078
14079
14080
14081
14082# If no C compiler was specified, use CC.
14083LTCC=${LTCC-"$CC"}
14084
14085# If no C compiler flags were specified, use CFLAGS.
14086LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14087
14088# Allow CC to be a program name with arguments.
14089compiler=$CC
14090
14091# Save the default compiler, since it gets overwritten when the other
14092# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14093compiler_DEFAULT=$CC
14094
14095# save warnings/boilerplate of simple test code
14096ac_outfile=conftest.$ac_objext
14097echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14098eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14099_lt_compiler_boilerplate=`cat conftest.err`
14100$RM conftest*
14101
14102ac_outfile=conftest.$ac_objext
14103echo "$lt_simple_link_test_code" >conftest.$ac_ext
14104eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14105_lt_linker_boilerplate=`cat conftest.err`
14106$RM -r conftest*
14107
14108
14109if test -n "$compiler"; then
14110
14111lt_prog_compiler_no_builtin_flag=
14112
14113if test "$GCC" = yes; then
14114  case $cc_basename in
14115  nvcc*)
14116    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14117  *)
14118    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14119  esac
14120
14121  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14122$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14123if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14124  $as_echo_n "(cached) " >&6
14125else
14126  lt_cv_prog_compiler_rtti_exceptions=no
14127   ac_outfile=conftest.$ac_objext
14128   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14129   lt_compiler_flag="-fno-rtti -fno-exceptions"
14130   # Insert the option either (1) after the last *FLAGS variable, or
14131   # (2) before a word containing "conftest.", or (3) at the end.
14132   # Note that $ac_compile itself does not contain backslashes and begins
14133   # with a dollar sign (not a hyphen), so the echo should work correctly.
14134   # The option is referenced via a variable to avoid confusing sed.
14135   lt_compile=`echo "$ac_compile" | $SED \
14136   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14137   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14138   -e 's:$: $lt_compiler_flag:'`
14139   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14140   (eval "$lt_compile" 2>conftest.err)
14141   ac_status=$?
14142   cat conftest.err >&5
14143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144   if (exit $ac_status) && test -s "$ac_outfile"; then
14145     # The compiler can only warn and ignore the option if not recognized
14146     # So say no if there are warnings other than the usual output.
14147     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14148     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14149     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14150       lt_cv_prog_compiler_rtti_exceptions=yes
14151     fi
14152   fi
14153   $RM conftest*
14154
14155fi
14156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14157$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14158
14159if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14160    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14161else
14162    :
14163fi
14164
14165fi
14166
14167
14168
14169
14170
14171
14172  lt_prog_compiler_wl=
14173lt_prog_compiler_pic=
14174lt_prog_compiler_static=
14175
14176
14177  if test "$GCC" = yes; then
14178    lt_prog_compiler_wl='-Wl,'
14179    lt_prog_compiler_static='-static'
14180
14181    case $host_os in
14182      aix*)
14183      # All AIX code is PIC.
14184      if test "$host_cpu" = ia64; then
14185	# AIX 5 now supports IA64 processor
14186	lt_prog_compiler_static='-Bstatic'
14187      fi
14188      ;;
14189
14190    amigaos*)
14191      case $host_cpu in
14192      powerpc)
14193            # see comment about AmigaOS4 .so support
14194            lt_prog_compiler_pic='-fPIC'
14195        ;;
14196      m68k)
14197            # FIXME: we need at least 68020 code to build shared libraries, but
14198            # adding the `-m68020' flag to GCC prevents building anything better,
14199            # like `-m68040'.
14200            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14201        ;;
14202      esac
14203      ;;
14204
14205    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14206      # PIC is the default for these OSes.
14207      ;;
14208
14209    mingw* | cygwin* | pw32* | os2* | cegcc*)
14210      # This hack is so that the source file can tell whether it is being
14211      # built for inclusion in a dll (and should export symbols for example).
14212      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14213      # (--disable-auto-import) libraries
14214      lt_prog_compiler_pic='-DDLL_EXPORT'
14215      ;;
14216
14217    darwin* | rhapsody*)
14218      # PIC is the default on this platform
14219      # Common symbols not allowed in MH_DYLIB files
14220      lt_prog_compiler_pic='-fno-common'
14221      ;;
14222
14223    haiku*)
14224      # PIC is the default for Haiku.
14225      # The "-static" flag exists, but is broken.
14226      lt_prog_compiler_static=
14227      ;;
14228
14229    hpux*)
14230      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14231      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14232      # sets the default TLS model and affects inlining.
14233      case $host_cpu in
14234      hppa*64*)
14235	# +Z the default
14236	;;
14237      *)
14238	lt_prog_compiler_pic='-fPIC'
14239	;;
14240      esac
14241      ;;
14242
14243    interix[3-9]*)
14244      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14245      # Instead, we relocate shared libraries at runtime.
14246      ;;
14247
14248    msdosdjgpp*)
14249      # Just because we use GCC doesn't mean we suddenly get shared libraries
14250      # on systems that don't support them.
14251      lt_prog_compiler_can_build_shared=no
14252      enable_shared=no
14253      ;;
14254
14255    *nto* | *qnx*)
14256      # QNX uses GNU C++, but need to define -shared option too, otherwise
14257      # it will coredump.
14258      lt_prog_compiler_pic='-fPIC -shared'
14259      ;;
14260
14261    sysv4*MP*)
14262      if test -d /usr/nec; then
14263	lt_prog_compiler_pic=-Kconform_pic
14264      fi
14265      ;;
14266
14267    *)
14268      lt_prog_compiler_pic='-fPIC'
14269      ;;
14270    esac
14271
14272    case $cc_basename in
14273    nvcc*) # Cuda Compiler Driver 2.2
14274      lt_prog_compiler_wl='-Xlinker '
14275      if test -n "$lt_prog_compiler_pic"; then
14276        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14277      fi
14278      ;;
14279    esac
14280  else
14281    # PORTME Check for flag to pass linker flags through the system compiler.
14282    case $host_os in
14283    aix*)
14284      lt_prog_compiler_wl='-Wl,'
14285      if test "$host_cpu" = ia64; then
14286	# AIX 5 now supports IA64 processor
14287	lt_prog_compiler_static='-Bstatic'
14288      else
14289	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14290      fi
14291      ;;
14292
14293    mingw* | cygwin* | pw32* | os2* | cegcc*)
14294      # This hack is so that the source file can tell whether it is being
14295      # built for inclusion in a dll (and should export symbols for example).
14296      lt_prog_compiler_pic='-DDLL_EXPORT'
14297      ;;
14298
14299    hpux9* | hpux10* | hpux11*)
14300      lt_prog_compiler_wl='-Wl,'
14301      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14302      # not for PA HP-UX.
14303      case $host_cpu in
14304      hppa*64*|ia64*)
14305	# +Z the default
14306	;;
14307      *)
14308	lt_prog_compiler_pic='+Z'
14309	;;
14310      esac
14311      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14312      lt_prog_compiler_static='${wl}-a ${wl}archive'
14313      ;;
14314
14315    irix5* | irix6* | nonstopux*)
14316      lt_prog_compiler_wl='-Wl,'
14317      # PIC (with -KPIC) is the default.
14318      lt_prog_compiler_static='-non_shared'
14319      ;;
14320
14321    linux* | k*bsd*-gnu | kopensolaris*-gnu)
14322      case $cc_basename in
14323      # old Intel for x86_64 which still supported -KPIC.
14324      ecc*)
14325	lt_prog_compiler_wl='-Wl,'
14326	lt_prog_compiler_pic='-KPIC'
14327	lt_prog_compiler_static='-static'
14328        ;;
14329      # icc used to be incompatible with GCC.
14330      # ICC 10 doesn't accept -KPIC any more.
14331      icc* | ifort*)
14332	lt_prog_compiler_wl='-Wl,'
14333	lt_prog_compiler_pic='-fPIC'
14334	lt_prog_compiler_static='-static'
14335        ;;
14336      # Lahey Fortran 8.1.
14337      lf95*)
14338	lt_prog_compiler_wl='-Wl,'
14339	lt_prog_compiler_pic='--shared'
14340	lt_prog_compiler_static='--static'
14341	;;
14342      nagfor*)
14343	# NAG Fortran compiler
14344	lt_prog_compiler_wl='-Wl,-Wl,,'
14345	lt_prog_compiler_pic='-PIC'
14346	lt_prog_compiler_static='-Bstatic'
14347	;;
14348      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14349        # Portland Group compilers (*not* the Pentium gcc compiler,
14350	# which looks to be a dead project)
14351	lt_prog_compiler_wl='-Wl,'
14352	lt_prog_compiler_pic='-fpic'
14353	lt_prog_compiler_static='-Bstatic'
14354        ;;
14355      ccc*)
14356        lt_prog_compiler_wl='-Wl,'
14357        # All Alpha code is PIC.
14358        lt_prog_compiler_static='-non_shared'
14359        ;;
14360      xl* | bgxl* | bgf* | mpixl*)
14361	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14362	lt_prog_compiler_wl='-Wl,'
14363	lt_prog_compiler_pic='-qpic'
14364	lt_prog_compiler_static='-qstaticlink'
14365	;;
14366      *)
14367	case `$CC -V 2>&1 | sed 5q` in
14368	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14369	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14370	  lt_prog_compiler_pic='-KPIC'
14371	  lt_prog_compiler_static='-Bstatic'
14372	  lt_prog_compiler_wl=''
14373	  ;;
14374	*Sun\ F* | *Sun*Fortran*)
14375	  lt_prog_compiler_pic='-KPIC'
14376	  lt_prog_compiler_static='-Bstatic'
14377	  lt_prog_compiler_wl='-Qoption ld '
14378	  ;;
14379	*Sun\ C*)
14380	  # Sun C 5.9
14381	  lt_prog_compiler_pic='-KPIC'
14382	  lt_prog_compiler_static='-Bstatic'
14383	  lt_prog_compiler_wl='-Wl,'
14384	  ;;
14385        *Intel*\ [CF]*Compiler*)
14386	  lt_prog_compiler_wl='-Wl,'
14387	  lt_prog_compiler_pic='-fPIC'
14388	  lt_prog_compiler_static='-static'
14389	  ;;
14390	*Portland\ Group*)
14391	  lt_prog_compiler_wl='-Wl,'
14392	  lt_prog_compiler_pic='-fpic'
14393	  lt_prog_compiler_static='-Bstatic'
14394	  ;;
14395	esac
14396	;;
14397      esac
14398      ;;
14399
14400    newsos6)
14401      lt_prog_compiler_pic='-KPIC'
14402      lt_prog_compiler_static='-Bstatic'
14403      ;;
14404
14405    *nto* | *qnx*)
14406      # QNX uses GNU C++, but need to define -shared option too, otherwise
14407      # it will coredump.
14408      lt_prog_compiler_pic='-fPIC -shared'
14409      ;;
14410
14411    osf3* | osf4* | osf5*)
14412      lt_prog_compiler_wl='-Wl,'
14413      # All OSF/1 code is PIC.
14414      lt_prog_compiler_static='-non_shared'
14415      ;;
14416
14417    rdos*)
14418      lt_prog_compiler_static='-non_shared'
14419      ;;
14420
14421    solaris*)
14422      lt_prog_compiler_pic='-KPIC'
14423      lt_prog_compiler_static='-Bstatic'
14424      case $cc_basename in
14425      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14426	lt_prog_compiler_wl='-Qoption ld ';;
14427      *)
14428	lt_prog_compiler_wl='-Wl,';;
14429      esac
14430      ;;
14431
14432    sunos4*)
14433      lt_prog_compiler_wl='-Qoption ld '
14434      lt_prog_compiler_pic='-PIC'
14435      lt_prog_compiler_static='-Bstatic'
14436      ;;
14437
14438    sysv4 | sysv4.2uw2* | sysv4.3*)
14439      lt_prog_compiler_wl='-Wl,'
14440      lt_prog_compiler_pic='-KPIC'
14441      lt_prog_compiler_static='-Bstatic'
14442      ;;
14443
14444    sysv4*MP*)
14445      if test -d /usr/nec ;then
14446	lt_prog_compiler_pic='-Kconform_pic'
14447	lt_prog_compiler_static='-Bstatic'
14448      fi
14449      ;;
14450
14451    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14452      lt_prog_compiler_wl='-Wl,'
14453      lt_prog_compiler_pic='-KPIC'
14454      lt_prog_compiler_static='-Bstatic'
14455      ;;
14456
14457    unicos*)
14458      lt_prog_compiler_wl='-Wl,'
14459      lt_prog_compiler_can_build_shared=no
14460      ;;
14461
14462    uts4*)
14463      lt_prog_compiler_pic='-pic'
14464      lt_prog_compiler_static='-Bstatic'
14465      ;;
14466
14467    *)
14468      lt_prog_compiler_can_build_shared=no
14469      ;;
14470    esac
14471  fi
14472
14473case $host_os in
14474  # For platforms which do not support PIC, -DPIC is meaningless:
14475  *djgpp*)
14476    lt_prog_compiler_pic=
14477    ;;
14478  *)
14479    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14480    ;;
14481esac
14482
14483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14484$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14485if ${lt_cv_prog_compiler_pic+:} false; then :
14486  $as_echo_n "(cached) " >&6
14487else
14488  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14489fi
14490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14491$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14492lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14493
14494#
14495# Check to make sure the PIC flag actually works.
14496#
14497if test -n "$lt_prog_compiler_pic"; then
14498  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14499$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14500if ${lt_cv_prog_compiler_pic_works+:} false; then :
14501  $as_echo_n "(cached) " >&6
14502else
14503  lt_cv_prog_compiler_pic_works=no
14504   ac_outfile=conftest.$ac_objext
14505   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14506   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14507   # Insert the option either (1) after the last *FLAGS variable, or
14508   # (2) before a word containing "conftest.", or (3) at the end.
14509   # Note that $ac_compile itself does not contain backslashes and begins
14510   # with a dollar sign (not a hyphen), so the echo should work correctly.
14511   # The option is referenced via a variable to avoid confusing sed.
14512   lt_compile=`echo "$ac_compile" | $SED \
14513   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14514   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14515   -e 's:$: $lt_compiler_flag:'`
14516   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14517   (eval "$lt_compile" 2>conftest.err)
14518   ac_status=$?
14519   cat conftest.err >&5
14520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521   if (exit $ac_status) && test -s "$ac_outfile"; then
14522     # The compiler can only warn and ignore the option if not recognized
14523     # So say no if there are warnings other than the usual output.
14524     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14525     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14526     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14527       lt_cv_prog_compiler_pic_works=yes
14528     fi
14529   fi
14530   $RM conftest*
14531
14532fi
14533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14534$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14535
14536if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14537    case $lt_prog_compiler_pic in
14538     "" | " "*) ;;
14539     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14540     esac
14541else
14542    lt_prog_compiler_pic=
14543     lt_prog_compiler_can_build_shared=no
14544fi
14545
14546fi
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558#
14559# Check to make sure the static flag actually works.
14560#
14561wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14563$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14564if ${lt_cv_prog_compiler_static_works+:} false; then :
14565  $as_echo_n "(cached) " >&6
14566else
14567  lt_cv_prog_compiler_static_works=no
14568   save_LDFLAGS="$LDFLAGS"
14569   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14570   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14571   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14572     # The linker can only warn and ignore the option if not recognized
14573     # So say no if there are warnings
14574     if test -s conftest.err; then
14575       # Append any errors to the config.log.
14576       cat conftest.err 1>&5
14577       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14578       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14579       if diff conftest.exp conftest.er2 >/dev/null; then
14580         lt_cv_prog_compiler_static_works=yes
14581       fi
14582     else
14583       lt_cv_prog_compiler_static_works=yes
14584     fi
14585   fi
14586   $RM -r conftest*
14587   LDFLAGS="$save_LDFLAGS"
14588
14589fi
14590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14591$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14592
14593if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14594    :
14595else
14596    lt_prog_compiler_static=
14597fi
14598
14599
14600
14601
14602
14603
14604
14605  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14606$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14607if ${lt_cv_prog_compiler_c_o+:} false; then :
14608  $as_echo_n "(cached) " >&6
14609else
14610  lt_cv_prog_compiler_c_o=no
14611   $RM -r conftest 2>/dev/null
14612   mkdir conftest
14613   cd conftest
14614   mkdir out
14615   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14616
14617   lt_compiler_flag="-o out/conftest2.$ac_objext"
14618   # Insert the option either (1) after the last *FLAGS variable, or
14619   # (2) before a word containing "conftest.", or (3) at the end.
14620   # Note that $ac_compile itself does not contain backslashes and begins
14621   # with a dollar sign (not a hyphen), so the echo should work correctly.
14622   lt_compile=`echo "$ac_compile" | $SED \
14623   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14624   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14625   -e 's:$: $lt_compiler_flag:'`
14626   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14627   (eval "$lt_compile" 2>out/conftest.err)
14628   ac_status=$?
14629   cat out/conftest.err >&5
14630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14632   then
14633     # The compiler can only warn and ignore the option if not recognized
14634     # So say no if there are warnings
14635     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14636     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14637     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14638       lt_cv_prog_compiler_c_o=yes
14639     fi
14640   fi
14641   chmod u+w . 2>&5
14642   $RM conftest*
14643   # SGI C++ compiler will create directory out/ii_files/ for
14644   # template instantiation
14645   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14646   $RM out/* && rmdir out
14647   cd ..
14648   $RM -r conftest
14649   $RM conftest*
14650
14651fi
14652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14653$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14654
14655
14656
14657
14658
14659
14660  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14661$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14662if ${lt_cv_prog_compiler_c_o+:} false; then :
14663  $as_echo_n "(cached) " >&6
14664else
14665  lt_cv_prog_compiler_c_o=no
14666   $RM -r conftest 2>/dev/null
14667   mkdir conftest
14668   cd conftest
14669   mkdir out
14670   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14671
14672   lt_compiler_flag="-o out/conftest2.$ac_objext"
14673   # Insert the option either (1) after the last *FLAGS variable, or
14674   # (2) before a word containing "conftest.", or (3) at the end.
14675   # Note that $ac_compile itself does not contain backslashes and begins
14676   # with a dollar sign (not a hyphen), so the echo should work correctly.
14677   lt_compile=`echo "$ac_compile" | $SED \
14678   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14679   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14680   -e 's:$: $lt_compiler_flag:'`
14681   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14682   (eval "$lt_compile" 2>out/conftest.err)
14683   ac_status=$?
14684   cat out/conftest.err >&5
14685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14687   then
14688     # The compiler can only warn and ignore the option if not recognized
14689     # So say no if there are warnings
14690     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14691     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14692     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14693       lt_cv_prog_compiler_c_o=yes
14694     fi
14695   fi
14696   chmod u+w . 2>&5
14697   $RM conftest*
14698   # SGI C++ compiler will create directory out/ii_files/ for
14699   # template instantiation
14700   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14701   $RM out/* && rmdir out
14702   cd ..
14703   $RM -r conftest
14704   $RM conftest*
14705
14706fi
14707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14708$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14709
14710
14711
14712
14713hard_links="nottested"
14714if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14715  # do not overwrite the value of need_locks provided by the user
14716  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14717$as_echo_n "checking if we can lock with hard links... " >&6; }
14718  hard_links=yes
14719  $RM conftest*
14720  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14721  touch conftest.a
14722  ln conftest.a conftest.b 2>&5 || hard_links=no
14723  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14725$as_echo "$hard_links" >&6; }
14726  if test "$hard_links" = no; then
14727    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14728$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14729    need_locks=warn
14730  fi
14731else
14732  need_locks=no
14733fi
14734
14735
14736
14737
14738
14739
14740  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14741$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14742
14743  runpath_var=
14744  allow_undefined_flag=
14745  always_export_symbols=no
14746  archive_cmds=
14747  archive_expsym_cmds=
14748  compiler_needs_object=no
14749  enable_shared_with_static_runtimes=no
14750  export_dynamic_flag_spec=
14751  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14752  hardcode_automatic=no
14753  hardcode_direct=no
14754  hardcode_direct_absolute=no
14755  hardcode_libdir_flag_spec=
14756  hardcode_libdir_separator=
14757  hardcode_minus_L=no
14758  hardcode_shlibpath_var=unsupported
14759  inherit_rpath=no
14760  link_all_deplibs=unknown
14761  module_cmds=
14762  module_expsym_cmds=
14763  old_archive_from_new_cmds=
14764  old_archive_from_expsyms_cmds=
14765  thread_safe_flag_spec=
14766  whole_archive_flag_spec=
14767  # include_expsyms should be a list of space-separated symbols to be *always*
14768  # included in the symbol list
14769  include_expsyms=
14770  # exclude_expsyms can be an extended regexp of symbols to exclude
14771  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14772  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14773  # as well as any symbol that contains `d'.
14774  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14775  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14776  # platforms (ab)use it in PIC code, but their linkers get confused if
14777  # the symbol is explicitly referenced.  Since portable code cannot
14778  # rely on this symbol name, it's probably fine to never include it in
14779  # preloaded symbol tables.
14780  # Exclude shared library initialization/finalization symbols.
14781  extract_expsyms_cmds=
14782
14783  case $host_os in
14784  cygwin* | mingw* | pw32* | cegcc*)
14785    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14786    # When not using gcc, we currently assume that we are using
14787    # Microsoft Visual C++.
14788    if test "$GCC" != yes; then
14789      with_gnu_ld=no
14790    fi
14791    ;;
14792  interix*)
14793    # we just hope/assume this is gcc and not c89 (= MSVC++)
14794    with_gnu_ld=yes
14795    ;;
14796  openbsd*)
14797    with_gnu_ld=no
14798    ;;
14799  esac
14800
14801  ld_shlibs=yes
14802
14803  # On some targets, GNU ld is compatible enough with the native linker
14804  # that we're better off using the native interface for both.
14805  lt_use_gnu_ld_interface=no
14806  if test "$with_gnu_ld" = yes; then
14807    case $host_os in
14808      aix*)
14809	# The AIX port of GNU ld has always aspired to compatibility
14810	# with the native linker.  However, as the warning in the GNU ld
14811	# block says, versions before 2.19.5* couldn't really create working
14812	# shared libraries, regardless of the interface used.
14813	case `$LD -v 2>&1` in
14814	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14815	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14816	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14817	  *)
14818	    lt_use_gnu_ld_interface=yes
14819	    ;;
14820	esac
14821	;;
14822      *)
14823	lt_use_gnu_ld_interface=yes
14824	;;
14825    esac
14826  fi
14827
14828  if test "$lt_use_gnu_ld_interface" = yes; then
14829    # If archive_cmds runs LD, not CC, wlarc should be empty
14830    wlarc='${wl}'
14831
14832    # Set some defaults for GNU ld with shared library support. These
14833    # are reset later if shared libraries are not supported. Putting them
14834    # here allows them to be overridden if necessary.
14835    runpath_var=LD_RUN_PATH
14836    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14837    export_dynamic_flag_spec='${wl}--export-dynamic'
14838    # ancient GNU ld didn't support --whole-archive et. al.
14839    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14840      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14841    else
14842      whole_archive_flag_spec=
14843    fi
14844    supports_anon_versioning=no
14845    case `$LD -v 2>&1` in
14846      *GNU\ gold*) supports_anon_versioning=yes ;;
14847      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14848      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14849      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14850      *\ 2.11.*) ;; # other 2.11 versions
14851      *) supports_anon_versioning=yes ;;
14852    esac
14853
14854    # See if GNU ld supports shared libraries.
14855    case $host_os in
14856    aix[3-9]*)
14857      # On AIX/PPC, the GNU linker is very broken
14858      if test "$host_cpu" != ia64; then
14859	ld_shlibs=no
14860	cat <<_LT_EOF 1>&2
14861
14862*** Warning: the GNU linker, at least up to release 2.19, is reported
14863*** to be unable to reliably create shared libraries on AIX.
14864*** Therefore, libtool is disabling shared libraries support.  If you
14865*** really care for shared libraries, you may want to install binutils
14866*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14867*** You will then need to restart the configuration process.
14868
14869_LT_EOF
14870      fi
14871      ;;
14872
14873    amigaos*)
14874      case $host_cpu in
14875      powerpc)
14876            # see comment about AmigaOS4 .so support
14877            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14878            archive_expsym_cmds=''
14879        ;;
14880      m68k)
14881            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)'
14882            hardcode_libdir_flag_spec='-L$libdir'
14883            hardcode_minus_L=yes
14884        ;;
14885      esac
14886      ;;
14887
14888    beos*)
14889      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14890	allow_undefined_flag=unsupported
14891	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14892	# support --undefined.  This deserves some investigation.  FIXME
14893	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14894      else
14895	ld_shlibs=no
14896      fi
14897      ;;
14898
14899    cygwin* | mingw* | pw32* | cegcc*)
14900      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14901      # as there is no search path for DLLs.
14902      hardcode_libdir_flag_spec='-L$libdir'
14903      export_dynamic_flag_spec='${wl}--export-all-symbols'
14904      allow_undefined_flag=unsupported
14905      always_export_symbols=no
14906      enable_shared_with_static_runtimes=yes
14907      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'
14908      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14909
14910      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14911        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14912	# If the export-symbols file already is a .def file (1st line
14913	# is EXPORTS), use it as is; otherwise, prepend...
14914	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14915	  cp $export_symbols $output_objdir/$soname.def;
14916	else
14917	  echo EXPORTS > $output_objdir/$soname.def;
14918	  cat $export_symbols >> $output_objdir/$soname.def;
14919	fi~
14920	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14921      else
14922	ld_shlibs=no
14923      fi
14924      ;;
14925
14926    haiku*)
14927      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14928      link_all_deplibs=yes
14929      ;;
14930
14931    interix[3-9]*)
14932      hardcode_direct=no
14933      hardcode_shlibpath_var=no
14934      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14935      export_dynamic_flag_spec='${wl}-E'
14936      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14937      # Instead, shared libraries are loaded at an image base (0x10000000 by
14938      # default) and relocated if they conflict, which is a slow very memory
14939      # consuming and fragmenting process.  To avoid this, we pick a random,
14940      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14941      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14942      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14943      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'
14944      ;;
14945
14946    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14947      tmp_diet=no
14948      if test "$host_os" = linux-dietlibc; then
14949	case $cc_basename in
14950	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
14951	esac
14952      fi
14953      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14954	 && test "$tmp_diet" = no
14955      then
14956	tmp_addflag=' $pic_flag'
14957	tmp_sharedflag='-shared'
14958	case $cc_basename,$host_cpu in
14959        pgcc*)				# Portland Group C compiler
14960	  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'
14961	  tmp_addflag=' $pic_flag'
14962	  ;;
14963	pgf77* | pgf90* | pgf95* | pgfortran*)
14964					# Portland Group f77 and f90 compilers
14965	  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'
14966	  tmp_addflag=' $pic_flag -Mnomain' ;;
14967	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
14968	  tmp_addflag=' -i_dynamic' ;;
14969	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14970	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14971	ifc* | ifort*)			# Intel Fortran compiler
14972	  tmp_addflag=' -nofor_main' ;;
14973	lf95*)				# Lahey Fortran 8.1
14974	  whole_archive_flag_spec=
14975	  tmp_sharedflag='--shared' ;;
14976	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14977	  tmp_sharedflag='-qmkshrobj'
14978	  tmp_addflag= ;;
14979	nvcc*)	# Cuda Compiler Driver 2.2
14980	  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'
14981	  compiler_needs_object=yes
14982	  ;;
14983	esac
14984	case `$CC -V 2>&1 | sed 5q` in
14985	*Sun\ C*)			# Sun C 5.9
14986	  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'
14987	  compiler_needs_object=yes
14988	  tmp_sharedflag='-G' ;;
14989	*Sun\ F*)			# Sun Fortran 8.3
14990	  tmp_sharedflag='-G' ;;
14991	esac
14992	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14993
14994        if test "x$supports_anon_versioning" = xyes; then
14995          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14996	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14997	    echo "local: *; };" >> $output_objdir/$libname.ver~
14998	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14999        fi
15000
15001	case $cc_basename in
15002	xlf* | bgf* | bgxlf* | mpixlf*)
15003	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15004	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15005	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15006	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15007	  if test "x$supports_anon_versioning" = xyes; then
15008	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15009	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15010	      echo "local: *; };" >> $output_objdir/$libname.ver~
15011	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15012	  fi
15013	  ;;
15014	esac
15015      else
15016        ld_shlibs=no
15017      fi
15018      ;;
15019
15020    netbsd*)
15021      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15022	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15023	wlarc=
15024      else
15025	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15026	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15027      fi
15028      ;;
15029
15030    solaris*)
15031      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15032	ld_shlibs=no
15033	cat <<_LT_EOF 1>&2
15034
15035*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15036*** create shared libraries on Solaris systems.  Therefore, libtool
15037*** is disabling shared libraries support.  We urge you to upgrade GNU
15038*** binutils to release 2.9.1 or newer.  Another option is to modify
15039*** your PATH or compiler configuration so that the native linker is
15040*** used, and then restart.
15041
15042_LT_EOF
15043      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15044	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15045	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15046      else
15047	ld_shlibs=no
15048      fi
15049      ;;
15050
15051    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15052      case `$LD -v 2>&1` in
15053        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15054	ld_shlibs=no
15055	cat <<_LT_EOF 1>&2
15056
15057*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15058*** reliably create shared libraries on SCO systems.  Therefore, libtool
15059*** is disabling shared libraries support.  We urge you to upgrade GNU
15060*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15061*** your PATH or compiler configuration so that the native linker is
15062*** used, and then restart.
15063
15064_LT_EOF
15065	;;
15066	*)
15067	  # For security reasons, it is highly recommended that you always
15068	  # use absolute paths for naming shared libraries, and exclude the
15069	  # DT_RUNPATH tag from executables and libraries.  But doing so
15070	  # requires that you compile everything twice, which is a pain.
15071	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15072	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15073	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15074	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15075	  else
15076	    ld_shlibs=no
15077	  fi
15078	;;
15079      esac
15080      ;;
15081
15082    sunos4*)
15083      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15084      wlarc=
15085      hardcode_direct=yes
15086      hardcode_shlibpath_var=no
15087      ;;
15088
15089    *)
15090      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15091	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15092	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15093      else
15094	ld_shlibs=no
15095      fi
15096      ;;
15097    esac
15098
15099    if test "$ld_shlibs" = no; then
15100      runpath_var=
15101      hardcode_libdir_flag_spec=
15102      export_dynamic_flag_spec=
15103      whole_archive_flag_spec=
15104    fi
15105  else
15106    # PORTME fill in a description of your system's linker (not GNU ld)
15107    case $host_os in
15108    aix3*)
15109      allow_undefined_flag=unsupported
15110      always_export_symbols=yes
15111      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'
15112      # Note: this linker hardcodes the directories in LIBPATH if there
15113      # are no directories specified by -L.
15114      hardcode_minus_L=yes
15115      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15116	# Neither direct hardcoding nor static linking is supported with a
15117	# broken collect2.
15118	hardcode_direct=unsupported
15119      fi
15120      ;;
15121
15122    aix[4-9]*)
15123      if test "$host_cpu" = ia64; then
15124	# On IA64, the linker does run time linking by default, so we don't
15125	# have to do anything special.
15126	aix_use_runtimelinking=no
15127	exp_sym_flag='-Bexport'
15128	no_entry_flag=""
15129      else
15130	# If we're using GNU nm, then we don't want the "-C" option.
15131	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15132	# Also, AIX nm treats weak defined symbols like other global
15133	# defined symbols, whereas GNU nm marks them as "W".
15134	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15135	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15136	else
15137	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15138	fi
15139	aix_use_runtimelinking=no
15140
15141	# Test if we are trying to use run time linking or normal
15142	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15143	# need to do runtime linking.
15144	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15145	  for ld_flag in $LDFLAGS; do
15146	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15147	    aix_use_runtimelinking=yes
15148	    break
15149	  fi
15150	  done
15151	  ;;
15152	esac
15153
15154	exp_sym_flag='-bexport'
15155	no_entry_flag='-bnoentry'
15156      fi
15157
15158      # When large executables or shared objects are built, AIX ld can
15159      # have problems creating the table of contents.  If linking a library
15160      # or program results in "error TOC overflow" add -mminimal-toc to
15161      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15162      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15163
15164      archive_cmds=''
15165      hardcode_direct=yes
15166      hardcode_direct_absolute=yes
15167      hardcode_libdir_separator=':'
15168      link_all_deplibs=yes
15169      file_list_spec='${wl}-f,'
15170
15171      if test "$GCC" = yes; then
15172	case $host_os in aix4.[012]|aix4.[012].*)
15173	# We only want to do this on AIX 4.2 and lower, the check
15174	# below for broken collect2 doesn't work under 4.3+
15175	  collect2name=`${CC} -print-prog-name=collect2`
15176	  if test -f "$collect2name" &&
15177	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15178	  then
15179	  # We have reworked collect2
15180	  :
15181	  else
15182	  # We have old collect2
15183	  hardcode_direct=unsupported
15184	  # It fails to find uninstalled libraries when the uninstalled
15185	  # path is not listed in the libpath.  Setting hardcode_minus_L
15186	  # to unsupported forces relinking
15187	  hardcode_minus_L=yes
15188	  hardcode_libdir_flag_spec='-L$libdir'
15189	  hardcode_libdir_separator=
15190	  fi
15191	  ;;
15192	esac
15193	shared_flag='-shared'
15194	if test "$aix_use_runtimelinking" = yes; then
15195	  shared_flag="$shared_flag "'${wl}-G'
15196	fi
15197      else
15198	# not using gcc
15199	if test "$host_cpu" = ia64; then
15200	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15201	# chokes on -Wl,-G. The following line is correct:
15202	  shared_flag='-G'
15203	else
15204	  if test "$aix_use_runtimelinking" = yes; then
15205	    shared_flag='${wl}-G'
15206	  else
15207	    shared_flag='${wl}-bM:SRE'
15208	  fi
15209	fi
15210      fi
15211
15212      export_dynamic_flag_spec='${wl}-bexpall'
15213      # It seems that -bexpall does not export symbols beginning with
15214      # underscore (_), so it is better to generate a list of symbols to export.
15215      always_export_symbols=yes
15216      if test "$aix_use_runtimelinking" = yes; then
15217	# Warning - without using the other runtime loading flags (-brtl),
15218	# -berok will link without error, but may produce a broken library.
15219	allow_undefined_flag='-berok'
15220        # Determine the default libpath from the value encoded in an
15221        # empty executable.
15222        if test "${lt_cv_aix_libpath+set}" = set; then
15223  aix_libpath=$lt_cv_aix_libpath
15224else
15225  if ${lt_cv_aix_libpath_+:} false; then :
15226  $as_echo_n "(cached) " >&6
15227else
15228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15229/* end confdefs.h.  */
15230
15231int
15232main ()
15233{
15234
15235  ;
15236  return 0;
15237}
15238_ACEOF
15239if ac_fn_c_try_link "$LINENO"; then :
15240
15241  lt_aix_libpath_sed='
15242      /Import File Strings/,/^$/ {
15243	  /^0/ {
15244	      s/^0  *\([^ ]*\) *$/\1/
15245	      p
15246	  }
15247      }'
15248  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15249  # Check for a 64-bit object if we didn't find anything.
15250  if test -z "$lt_cv_aix_libpath_"; then
15251    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15252  fi
15253fi
15254rm -f core conftest.err conftest.$ac_objext \
15255    conftest$ac_exeext conftest.$ac_ext
15256  if test -z "$lt_cv_aix_libpath_"; then
15257    lt_cv_aix_libpath_="/usr/lib:/lib"
15258  fi
15259
15260fi
15261
15262  aix_libpath=$lt_cv_aix_libpath_
15263fi
15264
15265        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15266        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15267      else
15268	if test "$host_cpu" = ia64; then
15269	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15270	  allow_undefined_flag="-z nodefs"
15271	  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"
15272	else
15273	 # Determine the default libpath from the value encoded in an
15274	 # empty executable.
15275	 if test "${lt_cv_aix_libpath+set}" = set; then
15276  aix_libpath=$lt_cv_aix_libpath
15277else
15278  if ${lt_cv_aix_libpath_+:} false; then :
15279  $as_echo_n "(cached) " >&6
15280else
15281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15282/* end confdefs.h.  */
15283
15284int
15285main ()
15286{
15287
15288  ;
15289  return 0;
15290}
15291_ACEOF
15292if ac_fn_c_try_link "$LINENO"; then :
15293
15294  lt_aix_libpath_sed='
15295      /Import File Strings/,/^$/ {
15296	  /^0/ {
15297	      s/^0  *\([^ ]*\) *$/\1/
15298	      p
15299	  }
15300      }'
15301  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15302  # Check for a 64-bit object if we didn't find anything.
15303  if test -z "$lt_cv_aix_libpath_"; then
15304    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15305  fi
15306fi
15307rm -f core conftest.err conftest.$ac_objext \
15308    conftest$ac_exeext conftest.$ac_ext
15309  if test -z "$lt_cv_aix_libpath_"; then
15310    lt_cv_aix_libpath_="/usr/lib:/lib"
15311  fi
15312
15313fi
15314
15315  aix_libpath=$lt_cv_aix_libpath_
15316fi
15317
15318	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15319	  # Warning - without using the other run time loading flags,
15320	  # -berok will link without error, but may produce a broken library.
15321	  no_undefined_flag=' ${wl}-bernotok'
15322	  allow_undefined_flag=' ${wl}-berok'
15323	  if test "$with_gnu_ld" = yes; then
15324	    # We only use this code for GNU lds that support --whole-archive.
15325	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15326	  else
15327	    # Exported symbols can be pulled into shared objects from archives
15328	    whole_archive_flag_spec='$convenience'
15329	  fi
15330	  archive_cmds_need_lc=yes
15331	  # This is similar to how AIX traditionally builds its shared libraries.
15332	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15333	fi
15334      fi
15335      ;;
15336
15337    amigaos*)
15338      case $host_cpu in
15339      powerpc)
15340            # see comment about AmigaOS4 .so support
15341            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15342            archive_expsym_cmds=''
15343        ;;
15344      m68k)
15345            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)'
15346            hardcode_libdir_flag_spec='-L$libdir'
15347            hardcode_minus_L=yes
15348        ;;
15349      esac
15350      ;;
15351
15352    bsdi[45]*)
15353      export_dynamic_flag_spec=-rdynamic
15354      ;;
15355
15356    cygwin* | mingw* | pw32* | cegcc*)
15357      # When not using gcc, we currently assume that we are using
15358      # Microsoft Visual C++.
15359      # hardcode_libdir_flag_spec is actually meaningless, as there is
15360      # no search path for DLLs.
15361      case $cc_basename in
15362      cl*)
15363	# Native MSVC
15364	hardcode_libdir_flag_spec=' '
15365	allow_undefined_flag=unsupported
15366	always_export_symbols=yes
15367	file_list_spec='@'
15368	# Tell ltmain to make .lib files, not .a files.
15369	libext=lib
15370	# Tell ltmain to make .dll files, not .so files.
15371	shrext_cmds=".dll"
15372	# FIXME: Setting linknames here is a bad hack.
15373	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15374	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15375	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15376	  else
15377	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15378	  fi~
15379	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15380	  linknames='
15381	# The linker will not automatically build a static lib if we build a DLL.
15382	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15383	enable_shared_with_static_runtimes=yes
15384	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15385	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15386	# Don't use ranlib
15387	old_postinstall_cmds='chmod 644 $oldlib'
15388	postlink_cmds='lt_outputfile="@OUTPUT@"~
15389	  lt_tool_outputfile="@TOOL_OUTPUT@"~
15390	  case $lt_outputfile in
15391	    *.exe|*.EXE) ;;
15392	    *)
15393	      lt_outputfile="$lt_outputfile.exe"
15394	      lt_tool_outputfile="$lt_tool_outputfile.exe"
15395	      ;;
15396	  esac~
15397	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15398	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15399	    $RM "$lt_outputfile.manifest";
15400	  fi'
15401	;;
15402      *)
15403	# Assume MSVC wrapper
15404	hardcode_libdir_flag_spec=' '
15405	allow_undefined_flag=unsupported
15406	# Tell ltmain to make .lib files, not .a files.
15407	libext=lib
15408	# Tell ltmain to make .dll files, not .so files.
15409	shrext_cmds=".dll"
15410	# FIXME: Setting linknames here is a bad hack.
15411	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15412	# The linker will automatically build a .lib file if we build a DLL.
15413	old_archive_from_new_cmds='true'
15414	# FIXME: Should let the user specify the lib program.
15415	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15416	enable_shared_with_static_runtimes=yes
15417	;;
15418      esac
15419      ;;
15420
15421    darwin* | rhapsody*)
15422
15423
15424  archive_cmds_need_lc=no
15425  hardcode_direct=no
15426  hardcode_automatic=yes
15427  hardcode_shlibpath_var=unsupported
15428  if test "$lt_cv_ld_force_load" = "yes"; then
15429    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\"`'
15430
15431  else
15432    whole_archive_flag_spec=''
15433  fi
15434  link_all_deplibs=yes
15435  allow_undefined_flag="$_lt_dar_allow_undefined"
15436  case $cc_basename in
15437     ifort*) _lt_dar_can_shared=yes ;;
15438     *) _lt_dar_can_shared=$GCC ;;
15439  esac
15440  if test "$_lt_dar_can_shared" = "yes"; then
15441    output_verbose_link_cmd=func_echo_all
15442    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15443    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15444    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}"
15445    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}"
15446
15447  else
15448  ld_shlibs=no
15449  fi
15450
15451      ;;
15452
15453    dgux*)
15454      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15455      hardcode_libdir_flag_spec='-L$libdir'
15456      hardcode_shlibpath_var=no
15457      ;;
15458
15459    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15460    # support.  Future versions do this automatically, but an explicit c++rt0.o
15461    # does not break anything, and helps significantly (at the cost of a little
15462    # extra space).
15463    freebsd2.2*)
15464      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15465      hardcode_libdir_flag_spec='-R$libdir'
15466      hardcode_direct=yes
15467      hardcode_shlibpath_var=no
15468      ;;
15469
15470    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15471    freebsd2.*)
15472      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15473      hardcode_direct=yes
15474      hardcode_minus_L=yes
15475      hardcode_shlibpath_var=no
15476      ;;
15477
15478    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15479    freebsd* | dragonfly*)
15480      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15481      hardcode_libdir_flag_spec='-R$libdir'
15482      hardcode_direct=yes
15483      hardcode_shlibpath_var=no
15484      ;;
15485
15486    hpux9*)
15487      if test "$GCC" = yes; then
15488	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15489      else
15490	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15491      fi
15492      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15493      hardcode_libdir_separator=:
15494      hardcode_direct=yes
15495
15496      # hardcode_minus_L: Not really in the search PATH,
15497      # but as the default location of the library.
15498      hardcode_minus_L=yes
15499      export_dynamic_flag_spec='${wl}-E'
15500      ;;
15501
15502    hpux10*)
15503      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15504	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15505      else
15506	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15507      fi
15508      if test "$with_gnu_ld" = no; then
15509	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15510	hardcode_libdir_separator=:
15511	hardcode_direct=yes
15512	hardcode_direct_absolute=yes
15513	export_dynamic_flag_spec='${wl}-E'
15514	# hardcode_minus_L: Not really in the search PATH,
15515	# but as the default location of the library.
15516	hardcode_minus_L=yes
15517      fi
15518      ;;
15519
15520    hpux11*)
15521      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15522	case $host_cpu in
15523	hppa*64*)
15524	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15525	  ;;
15526	ia64*)
15527	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15528	  ;;
15529	*)
15530	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15531	  ;;
15532	esac
15533      else
15534	case $host_cpu in
15535	hppa*64*)
15536	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15537	  ;;
15538	ia64*)
15539	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15540	  ;;
15541	*)
15542
15543	  # Older versions of the 11.00 compiler do not understand -b yet
15544	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15545	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15546$as_echo_n "checking if $CC understands -b... " >&6; }
15547if ${lt_cv_prog_compiler__b+:} false; then :
15548  $as_echo_n "(cached) " >&6
15549else
15550  lt_cv_prog_compiler__b=no
15551   save_LDFLAGS="$LDFLAGS"
15552   LDFLAGS="$LDFLAGS -b"
15553   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15554   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15555     # The linker can only warn and ignore the option if not recognized
15556     # So say no if there are warnings
15557     if test -s conftest.err; then
15558       # Append any errors to the config.log.
15559       cat conftest.err 1>&5
15560       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15561       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15562       if diff conftest.exp conftest.er2 >/dev/null; then
15563         lt_cv_prog_compiler__b=yes
15564       fi
15565     else
15566       lt_cv_prog_compiler__b=yes
15567     fi
15568   fi
15569   $RM -r conftest*
15570   LDFLAGS="$save_LDFLAGS"
15571
15572fi
15573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15574$as_echo "$lt_cv_prog_compiler__b" >&6; }
15575
15576if test x"$lt_cv_prog_compiler__b" = xyes; then
15577    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15578else
15579    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15580fi
15581
15582	  ;;
15583	esac
15584      fi
15585      if test "$with_gnu_ld" = no; then
15586	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15587	hardcode_libdir_separator=:
15588
15589	case $host_cpu in
15590	hppa*64*|ia64*)
15591	  hardcode_direct=no
15592	  hardcode_shlibpath_var=no
15593	  ;;
15594	*)
15595	  hardcode_direct=yes
15596	  hardcode_direct_absolute=yes
15597	  export_dynamic_flag_spec='${wl}-E'
15598
15599	  # hardcode_minus_L: Not really in the search PATH,
15600	  # but as the default location of the library.
15601	  hardcode_minus_L=yes
15602	  ;;
15603	esac
15604      fi
15605      ;;
15606
15607    irix5* | irix6* | nonstopux*)
15608      if test "$GCC" = yes; then
15609	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'
15610	# Try to use the -exported_symbol ld option, if it does not
15611	# work, assume that -exports_file does not work either and
15612	# implicitly export all symbols.
15613	# This should be the same for all languages, so no per-tag cache variable.
15614	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15615$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15616if ${lt_cv_irix_exported_symbol+:} false; then :
15617  $as_echo_n "(cached) " >&6
15618else
15619  save_LDFLAGS="$LDFLAGS"
15620	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15621	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15622/* end confdefs.h.  */
15623int foo (void) { return 0; }
15624_ACEOF
15625if ac_fn_c_try_link "$LINENO"; then :
15626  lt_cv_irix_exported_symbol=yes
15627else
15628  lt_cv_irix_exported_symbol=no
15629fi
15630rm -f core conftest.err conftest.$ac_objext \
15631    conftest$ac_exeext conftest.$ac_ext
15632           LDFLAGS="$save_LDFLAGS"
15633fi
15634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15635$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15636	if test "$lt_cv_irix_exported_symbol" = yes; then
15637          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'
15638	fi
15639      else
15640	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'
15641	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'
15642      fi
15643      archive_cmds_need_lc='no'
15644      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15645      hardcode_libdir_separator=:
15646      inherit_rpath=yes
15647      link_all_deplibs=yes
15648      ;;
15649
15650    netbsd*)
15651      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15652	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15653      else
15654	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15655      fi
15656      hardcode_libdir_flag_spec='-R$libdir'
15657      hardcode_direct=yes
15658      hardcode_shlibpath_var=no
15659      ;;
15660
15661    newsos6)
15662      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15663      hardcode_direct=yes
15664      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15665      hardcode_libdir_separator=:
15666      hardcode_shlibpath_var=no
15667      ;;
15668
15669    *nto* | *qnx*)
15670      ;;
15671
15672    openbsd*)
15673      if test -f /usr/libexec/ld.so; then
15674	hardcode_direct=yes
15675	hardcode_shlibpath_var=no
15676	hardcode_direct_absolute=yes
15677	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15678	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15679	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15680	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15681	  export_dynamic_flag_spec='${wl}-E'
15682	else
15683	  case $host_os in
15684	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15685	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15686	     hardcode_libdir_flag_spec='-R$libdir'
15687	     ;;
15688	   *)
15689	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15690	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15691	     ;;
15692	  esac
15693	fi
15694      else
15695	ld_shlibs=no
15696      fi
15697      ;;
15698
15699    os2*)
15700      hardcode_libdir_flag_spec='-L$libdir'
15701      hardcode_minus_L=yes
15702      allow_undefined_flag=unsupported
15703      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15704      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15705      ;;
15706
15707    osf3*)
15708      if test "$GCC" = yes; then
15709	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15710	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'
15711      else
15712	allow_undefined_flag=' -expect_unresolved \*'
15713	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'
15714      fi
15715      archive_cmds_need_lc='no'
15716      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15717      hardcode_libdir_separator=:
15718      ;;
15719
15720    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15721      if test "$GCC" = yes; then
15722	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15723	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'
15724	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15725      else
15726	allow_undefined_flag=' -expect_unresolved \*'
15727	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'
15728	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~
15729	$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'
15730
15731	# Both c and cxx compiler support -rpath directly
15732	hardcode_libdir_flag_spec='-rpath $libdir'
15733      fi
15734      archive_cmds_need_lc='no'
15735      hardcode_libdir_separator=:
15736      ;;
15737
15738    solaris*)
15739      no_undefined_flag=' -z defs'
15740      if test "$GCC" = yes; then
15741	wlarc='${wl}'
15742	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15743	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15744	  $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'
15745      else
15746	case `$CC -V 2>&1` in
15747	*"Compilers 5.0"*)
15748	  wlarc=''
15749	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15750	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15751	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15752	  ;;
15753	*)
15754	  wlarc='${wl}'
15755	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15756	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15757	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15758	  ;;
15759	esac
15760      fi
15761      hardcode_libdir_flag_spec='-R$libdir'
15762      hardcode_shlibpath_var=no
15763      case $host_os in
15764      solaris2.[0-5] | solaris2.[0-5].*) ;;
15765      *)
15766	# The compiler driver will combine and reorder linker options,
15767	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15768	# but is careful enough not to reorder.
15769	# Supported since Solaris 2.6 (maybe 2.5.1?)
15770	if test "$GCC" = yes; then
15771	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15772	else
15773	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15774	fi
15775	;;
15776      esac
15777      link_all_deplibs=yes
15778      ;;
15779
15780    sunos4*)
15781      if test "x$host_vendor" = xsequent; then
15782	# Use $CC to link under sequent, because it throws in some extra .o
15783	# files that make .init and .fini sections work.
15784	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15785      else
15786	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15787      fi
15788      hardcode_libdir_flag_spec='-L$libdir'
15789      hardcode_direct=yes
15790      hardcode_minus_L=yes
15791      hardcode_shlibpath_var=no
15792      ;;
15793
15794    sysv4)
15795      case $host_vendor in
15796	sni)
15797	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15798	  hardcode_direct=yes # is this really true???
15799	;;
15800	siemens)
15801	  ## LD is ld it makes a PLAMLIB
15802	  ## CC just makes a GrossModule.
15803	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15804	  reload_cmds='$CC -r -o $output$reload_objs'
15805	  hardcode_direct=no
15806        ;;
15807	motorola)
15808	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15809	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15810	;;
15811      esac
15812      runpath_var='LD_RUN_PATH'
15813      hardcode_shlibpath_var=no
15814      ;;
15815
15816    sysv4.3*)
15817      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15818      hardcode_shlibpath_var=no
15819      export_dynamic_flag_spec='-Bexport'
15820      ;;
15821
15822    sysv4*MP*)
15823      if test -d /usr/nec; then
15824	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15825	hardcode_shlibpath_var=no
15826	runpath_var=LD_RUN_PATH
15827	hardcode_runpath_var=yes
15828	ld_shlibs=yes
15829      fi
15830      ;;
15831
15832    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15833      no_undefined_flag='${wl}-z,text'
15834      archive_cmds_need_lc=no
15835      hardcode_shlibpath_var=no
15836      runpath_var='LD_RUN_PATH'
15837
15838      if test "$GCC" = yes; then
15839	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15840	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15841      else
15842	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15843	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15844      fi
15845      ;;
15846
15847    sysv5* | sco3.2v5* | sco5v6*)
15848      # Note: We can NOT use -z defs as we might desire, because we do not
15849      # link with -lc, and that would cause any symbols used from libc to
15850      # always be unresolved, which means just about no library would
15851      # ever link correctly.  If we're not using GNU ld we use -z text
15852      # though, which does catch some bad symbols but isn't as heavy-handed
15853      # as -z defs.
15854      no_undefined_flag='${wl}-z,text'
15855      allow_undefined_flag='${wl}-z,nodefs'
15856      archive_cmds_need_lc=no
15857      hardcode_shlibpath_var=no
15858      hardcode_libdir_flag_spec='${wl}-R,$libdir'
15859      hardcode_libdir_separator=':'
15860      link_all_deplibs=yes
15861      export_dynamic_flag_spec='${wl}-Bexport'
15862      runpath_var='LD_RUN_PATH'
15863
15864      if test "$GCC" = yes; then
15865	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15866	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15867      else
15868	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15869	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15870      fi
15871      ;;
15872
15873    uts4*)
15874      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15875      hardcode_libdir_flag_spec='-L$libdir'
15876      hardcode_shlibpath_var=no
15877      ;;
15878
15879    *)
15880      ld_shlibs=no
15881      ;;
15882    esac
15883
15884    if test x$host_vendor = xsni; then
15885      case $host in
15886      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15887	export_dynamic_flag_spec='${wl}-Blargedynsym'
15888	;;
15889      esac
15890    fi
15891  fi
15892
15893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15894$as_echo "$ld_shlibs" >&6; }
15895test "$ld_shlibs" = no && can_build_shared=no
15896
15897with_gnu_ld=$with_gnu_ld
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913#
15914# Do we need to explicitly link libc?
15915#
15916case "x$archive_cmds_need_lc" in
15917x|xyes)
15918  # Assume -lc should be added
15919  archive_cmds_need_lc=yes
15920
15921  if test "$enable_shared" = yes && test "$GCC" = yes; then
15922    case $archive_cmds in
15923    *'~'*)
15924      # FIXME: we may have to deal with multi-command sequences.
15925      ;;
15926    '$CC '*)
15927      # Test whether the compiler implicitly links with -lc since on some
15928      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15929      # to ld, don't add -lc before -lgcc.
15930      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15931$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15932if ${lt_cv_archive_cmds_need_lc+:} false; then :
15933  $as_echo_n "(cached) " >&6
15934else
15935  $RM conftest*
15936	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15937
15938	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15939  (eval $ac_compile) 2>&5
15940  ac_status=$?
15941  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15942  test $ac_status = 0; } 2>conftest.err; then
15943	  soname=conftest
15944	  lib=conftest
15945	  libobjs=conftest.$ac_objext
15946	  deplibs=
15947	  wl=$lt_prog_compiler_wl
15948	  pic_flag=$lt_prog_compiler_pic
15949	  compiler_flags=-v
15950	  linker_flags=-v
15951	  verstring=
15952	  output_objdir=.
15953	  libname=conftest
15954	  lt_save_allow_undefined_flag=$allow_undefined_flag
15955	  allow_undefined_flag=
15956	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15957  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15958  ac_status=$?
15959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15960  test $ac_status = 0; }
15961	  then
15962	    lt_cv_archive_cmds_need_lc=no
15963	  else
15964	    lt_cv_archive_cmds_need_lc=yes
15965	  fi
15966	  allow_undefined_flag=$lt_save_allow_undefined_flag
15967	else
15968	  cat conftest.err 1>&5
15969	fi
15970	$RM conftest*
15971
15972fi
15973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15974$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15975      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15976      ;;
15977    esac
15978  fi
15979  ;;
15980esac
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16134$as_echo_n "checking dynamic linker characteristics... " >&6; }
16135
16136if test "$GCC" = yes; then
16137  case $host_os in
16138    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16139    *) lt_awk_arg="/^libraries:/" ;;
16140  esac
16141  case $host_os in
16142    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16143    *) lt_sed_strip_eq="s,=/,/,g" ;;
16144  esac
16145  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16146  case $lt_search_path_spec in
16147  *\;*)
16148    # if the path contains ";" then we assume it to be the separator
16149    # otherwise default to the standard path separator (i.e. ":") - it is
16150    # assumed that no part of a normal pathname contains ";" but that should
16151    # okay in the real world where ";" in dirpaths is itself problematic.
16152    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16153    ;;
16154  *)
16155    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16156    ;;
16157  esac
16158  # Ok, now we have the path, separated by spaces, we can step through it
16159  # and add multilib dir if necessary.
16160  lt_tmp_lt_search_path_spec=
16161  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16162  for lt_sys_path in $lt_search_path_spec; do
16163    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16164      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16165    else
16166      test -d "$lt_sys_path" && \
16167	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16168    fi
16169  done
16170  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16171BEGIN {RS=" "; FS="/|\n";} {
16172  lt_foo="";
16173  lt_count=0;
16174  for (lt_i = NF; lt_i > 0; lt_i--) {
16175    if ($lt_i != "" && $lt_i != ".") {
16176      if ($lt_i == "..") {
16177        lt_count++;
16178      } else {
16179        if (lt_count == 0) {
16180          lt_foo="/" $lt_i lt_foo;
16181        } else {
16182          lt_count--;
16183        }
16184      }
16185    }
16186  }
16187  if (lt_foo != "") { lt_freq[lt_foo]++; }
16188  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16189}'`
16190  # AWK program above erroneously prepends '/' to C:/dos/paths
16191  # for these hosts.
16192  case $host_os in
16193    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16194      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16195  esac
16196  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16197else
16198  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16199fi
16200library_names_spec=
16201libname_spec='lib$name'
16202soname_spec=
16203shrext_cmds=".so"
16204postinstall_cmds=
16205postuninstall_cmds=
16206finish_cmds=
16207finish_eval=
16208shlibpath_var=
16209shlibpath_overrides_runpath=unknown
16210version_type=none
16211dynamic_linker="$host_os ld.so"
16212sys_lib_dlsearch_path_spec="/lib /usr/lib"
16213need_lib_prefix=unknown
16214hardcode_into_libs=no
16215
16216# when you set need_version to no, make sure it does not cause -set_version
16217# flags to be left without arguments
16218need_version=unknown
16219
16220case $host_os in
16221aix3*)
16222  version_type=linux # correct to gnu/linux during the next big refactor
16223  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16224  shlibpath_var=LIBPATH
16225
16226  # AIX 3 has no versioning support, so we append a major version to the name.
16227  soname_spec='${libname}${release}${shared_ext}$major'
16228  ;;
16229
16230aix[4-9]*)
16231  version_type=linux # correct to gnu/linux during the next big refactor
16232  need_lib_prefix=no
16233  need_version=no
16234  hardcode_into_libs=yes
16235  if test "$host_cpu" = ia64; then
16236    # AIX 5 supports IA64
16237    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16238    shlibpath_var=LD_LIBRARY_PATH
16239  else
16240    # With GCC up to 2.95.x, collect2 would create an import file
16241    # for dependence libraries.  The import file would start with
16242    # the line `#! .'.  This would cause the generated library to
16243    # depend on `.', always an invalid library.  This was fixed in
16244    # development snapshots of GCC prior to 3.0.
16245    case $host_os in
16246      aix4 | aix4.[01] | aix4.[01].*)
16247      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16248	   echo ' yes '
16249	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16250	:
16251      else
16252	can_build_shared=no
16253      fi
16254      ;;
16255    esac
16256    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16257    # soname into executable. Probably we can add versioning support to
16258    # collect2, so additional links can be useful in future.
16259    if test "$aix_use_runtimelinking" = yes; then
16260      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16261      # instead of lib<name>.a to let people know that these are not
16262      # typical AIX shared libraries.
16263      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16264    else
16265      # We preserve .a as extension for shared libraries through AIX4.2
16266      # and later when we are not doing run time linking.
16267      library_names_spec='${libname}${release}.a $libname.a'
16268      soname_spec='${libname}${release}${shared_ext}$major'
16269    fi
16270    shlibpath_var=LIBPATH
16271  fi
16272  ;;
16273
16274amigaos*)
16275  case $host_cpu in
16276  powerpc)
16277    # Since July 2007 AmigaOS4 officially supports .so libraries.
16278    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16279    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16280    ;;
16281  m68k)
16282    library_names_spec='$libname.ixlibrary $libname.a'
16283    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16284    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
16285    ;;
16286  esac
16287  ;;
16288
16289beos*)
16290  library_names_spec='${libname}${shared_ext}'
16291  dynamic_linker="$host_os ld.so"
16292  shlibpath_var=LIBRARY_PATH
16293  ;;
16294
16295bsdi[45]*)
16296  version_type=linux # correct to gnu/linux during the next big refactor
16297  need_version=no
16298  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16299  soname_spec='${libname}${release}${shared_ext}$major'
16300  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16301  shlibpath_var=LD_LIBRARY_PATH
16302  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16303  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16304  # the default ld.so.conf also contains /usr/contrib/lib and
16305  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16306  # libtool to hard-code these into programs
16307  ;;
16308
16309cygwin* | mingw* | pw32* | cegcc*)
16310  version_type=windows
16311  shrext_cmds=".dll"
16312  need_version=no
16313  need_lib_prefix=no
16314
16315  case $GCC,$cc_basename in
16316  yes,*)
16317    # gcc
16318    library_names_spec='$libname.dll.a'
16319    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16320    postinstall_cmds='base_file=`basename \${file}`~
16321      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16322      dldir=$destdir/`dirname \$dlpath`~
16323      test -d \$dldir || mkdir -p \$dldir~
16324      $install_prog $dir/$dlname \$dldir/$dlname~
16325      chmod a+x \$dldir/$dlname~
16326      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16327        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16328      fi'
16329    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16330      dlpath=$dir/\$dldll~
16331       $RM \$dlpath'
16332    shlibpath_overrides_runpath=yes
16333
16334    case $host_os in
16335    cygwin*)
16336      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16337      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16338
16339      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16340      ;;
16341    mingw* | cegcc*)
16342      # MinGW DLLs use traditional 'lib' prefix
16343      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16344      ;;
16345    pw32*)
16346      # pw32 DLLs use 'pw' prefix rather than 'lib'
16347      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16348      ;;
16349    esac
16350    dynamic_linker='Win32 ld.exe'
16351    ;;
16352
16353  *,cl*)
16354    # Native MSVC
16355    libname_spec='$name'
16356    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16357    library_names_spec='${libname}.dll.lib'
16358
16359    case $build_os in
16360    mingw*)
16361      sys_lib_search_path_spec=
16362      lt_save_ifs=$IFS
16363      IFS=';'
16364      for lt_path in $LIB
16365      do
16366        IFS=$lt_save_ifs
16367        # Let DOS variable expansion print the short 8.3 style file name.
16368        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16369        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16370      done
16371      IFS=$lt_save_ifs
16372      # Convert to MSYS style.
16373      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16374      ;;
16375    cygwin*)
16376      # Convert to unix form, then to dos form, then back to unix form
16377      # but this time dos style (no spaces!) so that the unix form looks
16378      # like /cygdrive/c/PROGRA~1:/cygdr...
16379      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16380      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16381      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16382      ;;
16383    *)
16384      sys_lib_search_path_spec="$LIB"
16385      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16386        # It is most probably a Windows format PATH.
16387        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16388      else
16389        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16390      fi
16391      # FIXME: find the short name or the path components, as spaces are
16392      # common. (e.g. "Program Files" -> "PROGRA~1")
16393      ;;
16394    esac
16395
16396    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16397    postinstall_cmds='base_file=`basename \${file}`~
16398      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16399      dldir=$destdir/`dirname \$dlpath`~
16400      test -d \$dldir || mkdir -p \$dldir~
16401      $install_prog $dir/$dlname \$dldir/$dlname'
16402    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16403      dlpath=$dir/\$dldll~
16404       $RM \$dlpath'
16405    shlibpath_overrides_runpath=yes
16406    dynamic_linker='Win32 link.exe'
16407    ;;
16408
16409  *)
16410    # Assume MSVC wrapper
16411    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16412    dynamic_linker='Win32 ld.exe'
16413    ;;
16414  esac
16415  # FIXME: first we should search . and the directory the executable is in
16416  shlibpath_var=PATH
16417  ;;
16418
16419darwin* | rhapsody*)
16420  dynamic_linker="$host_os dyld"
16421  version_type=darwin
16422  need_lib_prefix=no
16423  need_version=no
16424  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16425  soname_spec='${libname}${release}${major}$shared_ext'
16426  shlibpath_overrides_runpath=yes
16427  shlibpath_var=DYLD_LIBRARY_PATH
16428  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16429
16430  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16431  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16432  ;;
16433
16434dgux*)
16435  version_type=linux # correct to gnu/linux during the next big refactor
16436  need_lib_prefix=no
16437  need_version=no
16438  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16439  soname_spec='${libname}${release}${shared_ext}$major'
16440  shlibpath_var=LD_LIBRARY_PATH
16441  ;;
16442
16443freebsd* | dragonfly*)
16444  # DragonFly does not have aout.  When/if they implement a new
16445  # versioning mechanism, adjust this.
16446  if test -x /usr/bin/objformat; then
16447    objformat=`/usr/bin/objformat`
16448  else
16449    case $host_os in
16450    freebsd[23].*) objformat=aout ;;
16451    *) objformat=elf ;;
16452    esac
16453  fi
16454  version_type=freebsd-$objformat
16455  case $version_type in
16456    freebsd-elf*)
16457      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16458      need_version=no
16459      need_lib_prefix=no
16460      ;;
16461    freebsd-*)
16462      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16463      need_version=yes
16464      ;;
16465  esac
16466  shlibpath_var=LD_LIBRARY_PATH
16467  case $host_os in
16468  freebsd2.*)
16469    shlibpath_overrides_runpath=yes
16470    ;;
16471  freebsd3.[01]* | freebsdelf3.[01]*)
16472    shlibpath_overrides_runpath=yes
16473    hardcode_into_libs=yes
16474    ;;
16475  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16476  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16477    shlibpath_overrides_runpath=no
16478    hardcode_into_libs=yes
16479    ;;
16480  *) # from 4.6 on, and DragonFly
16481    shlibpath_overrides_runpath=yes
16482    hardcode_into_libs=yes
16483    ;;
16484  esac
16485  ;;
16486
16487gnu*)
16488  version_type=linux # correct to gnu/linux during the next big refactor
16489  need_lib_prefix=no
16490  need_version=no
16491  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16492  soname_spec='${libname}${release}${shared_ext}$major'
16493  shlibpath_var=LD_LIBRARY_PATH
16494  shlibpath_overrides_runpath=no
16495  hardcode_into_libs=yes
16496  ;;
16497
16498haiku*)
16499  version_type=linux # correct to gnu/linux during the next big refactor
16500  need_lib_prefix=no
16501  need_version=no
16502  dynamic_linker="$host_os runtime_loader"
16503  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16504  soname_spec='${libname}${release}${shared_ext}$major'
16505  shlibpath_var=LIBRARY_PATH
16506  shlibpath_overrides_runpath=yes
16507  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16508  hardcode_into_libs=yes
16509  ;;
16510
16511hpux9* | hpux10* | hpux11*)
16512  # Give a soname corresponding to the major version so that dld.sl refuses to
16513  # link against other versions.
16514  version_type=sunos
16515  need_lib_prefix=no
16516  need_version=no
16517  case $host_cpu in
16518  ia64*)
16519    shrext_cmds='.so'
16520    hardcode_into_libs=yes
16521    dynamic_linker="$host_os dld.so"
16522    shlibpath_var=LD_LIBRARY_PATH
16523    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16524    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16525    soname_spec='${libname}${release}${shared_ext}$major'
16526    if test "X$HPUX_IA64_MODE" = X32; then
16527      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16528    else
16529      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16530    fi
16531    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16532    ;;
16533  hppa*64*)
16534    shrext_cmds='.sl'
16535    hardcode_into_libs=yes
16536    dynamic_linker="$host_os dld.sl"
16537    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16538    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16539    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16540    soname_spec='${libname}${release}${shared_ext}$major'
16541    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16542    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16543    ;;
16544  *)
16545    shrext_cmds='.sl'
16546    dynamic_linker="$host_os dld.sl"
16547    shlibpath_var=SHLIB_PATH
16548    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16549    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16550    soname_spec='${libname}${release}${shared_ext}$major'
16551    ;;
16552  esac
16553  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16554  postinstall_cmds='chmod 555 $lib'
16555  # or fails outright, so override atomically:
16556  install_override_mode=555
16557  ;;
16558
16559interix[3-9]*)
16560  version_type=linux # correct to gnu/linux during the next big refactor
16561  need_lib_prefix=no
16562  need_version=no
16563  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16564  soname_spec='${libname}${release}${shared_ext}$major'
16565  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16566  shlibpath_var=LD_LIBRARY_PATH
16567  shlibpath_overrides_runpath=no
16568  hardcode_into_libs=yes
16569  ;;
16570
16571irix5* | irix6* | nonstopux*)
16572  case $host_os in
16573    nonstopux*) version_type=nonstopux ;;
16574    *)
16575	if test "$lt_cv_prog_gnu_ld" = yes; then
16576		version_type=linux # correct to gnu/linux during the next big refactor
16577	else
16578		version_type=irix
16579	fi ;;
16580  esac
16581  need_lib_prefix=no
16582  need_version=no
16583  soname_spec='${libname}${release}${shared_ext}$major'
16584  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16585  case $host_os in
16586  irix5* | nonstopux*)
16587    libsuff= shlibsuff=
16588    ;;
16589  *)
16590    case $LD in # libtool.m4 will add one of these switches to LD
16591    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16592      libsuff= shlibsuff= libmagic=32-bit;;
16593    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16594      libsuff=32 shlibsuff=N32 libmagic=N32;;
16595    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16596      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16597    *) libsuff= shlibsuff= libmagic=never-match;;
16598    esac
16599    ;;
16600  esac
16601  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16602  shlibpath_overrides_runpath=no
16603  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16604  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16605  hardcode_into_libs=yes
16606  ;;
16607
16608# No shared lib support for Linux oldld, aout, or coff.
16609linux*oldld* | linux*aout* | linux*coff*)
16610  dynamic_linker=no
16611  ;;
16612
16613# This must be glibc/ELF.
16614linux* | k*bsd*-gnu | kopensolaris*-gnu)
16615  version_type=linux # correct to gnu/linux during the next big refactor
16616  need_lib_prefix=no
16617  need_version=no
16618  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16619  soname_spec='${libname}${release}${shared_ext}$major'
16620  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16621  shlibpath_var=LD_LIBRARY_PATH
16622  shlibpath_overrides_runpath=no
16623
16624  # Some binutils ld are patched to set DT_RUNPATH
16625  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16626  $as_echo_n "(cached) " >&6
16627else
16628  lt_cv_shlibpath_overrides_runpath=no
16629    save_LDFLAGS=$LDFLAGS
16630    save_libdir=$libdir
16631    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16632	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16633    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16634/* end confdefs.h.  */
16635
16636int
16637main ()
16638{
16639
16640  ;
16641  return 0;
16642}
16643_ACEOF
16644if ac_fn_c_try_link "$LINENO"; then :
16645  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16646  lt_cv_shlibpath_overrides_runpath=yes
16647fi
16648fi
16649rm -f core conftest.err conftest.$ac_objext \
16650    conftest$ac_exeext conftest.$ac_ext
16651    LDFLAGS=$save_LDFLAGS
16652    libdir=$save_libdir
16653
16654fi
16655
16656  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16657
16658  # This implies no fast_install, which is unacceptable.
16659  # Some rework will be needed to allow for fast_install
16660  # before this can be enabled.
16661  hardcode_into_libs=yes
16662
16663  # Add ABI-specific directories to the system library path.
16664  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16665
16666  # Append ld.so.conf contents to the search path
16667  if test -f /etc/ld.so.conf; then
16668    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' ' '`
16669    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16670
16671  fi
16672
16673  # We used to test for /lib/ld.so.1 and disable shared libraries on
16674  # powerpc, because MkLinux only supported shared libraries with the
16675  # GNU dynamic linker.  Since this was broken with cross compilers,
16676  # most powerpc-linux boxes support dynamic linking these days and
16677  # people can always --disable-shared, the test was removed, and we
16678  # assume the GNU/Linux dynamic linker is in use.
16679  dynamic_linker='GNU/Linux ld.so'
16680  ;;
16681
16682netbsd*)
16683  version_type=sunos
16684  need_lib_prefix=no
16685  need_version=no
16686  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16687    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16688    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16689    dynamic_linker='NetBSD (a.out) ld.so'
16690  else
16691    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16692    soname_spec='${libname}${release}${shared_ext}$major'
16693    dynamic_linker='NetBSD ld.elf_so'
16694  fi
16695  shlibpath_var=LD_LIBRARY_PATH
16696  shlibpath_overrides_runpath=yes
16697  hardcode_into_libs=yes
16698  ;;
16699
16700newsos6)
16701  version_type=linux # correct to gnu/linux during the next big refactor
16702  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16703  shlibpath_var=LD_LIBRARY_PATH
16704  shlibpath_overrides_runpath=yes
16705  ;;
16706
16707*nto* | *qnx*)
16708  version_type=qnx
16709  need_lib_prefix=no
16710  need_version=no
16711  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16712  soname_spec='${libname}${release}${shared_ext}$major'
16713  shlibpath_var=LD_LIBRARY_PATH
16714  shlibpath_overrides_runpath=no
16715  hardcode_into_libs=yes
16716  dynamic_linker='ldqnx.so'
16717  ;;
16718
16719openbsd*)
16720  version_type=sunos
16721  sys_lib_dlsearch_path_spec="/usr/lib"
16722  need_lib_prefix=no
16723  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16724  case $host_os in
16725    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
16726    *)				need_version=no  ;;
16727  esac
16728  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16729  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16730  shlibpath_var=LD_LIBRARY_PATH
16731  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16732    case $host_os in
16733      openbsd2.[89] | openbsd2.[89].*)
16734	shlibpath_overrides_runpath=no
16735	;;
16736      *)
16737	shlibpath_overrides_runpath=yes
16738	;;
16739      esac
16740  else
16741    shlibpath_overrides_runpath=yes
16742  fi
16743  ;;
16744
16745os2*)
16746  libname_spec='$name'
16747  shrext_cmds=".dll"
16748  need_lib_prefix=no
16749  library_names_spec='$libname${shared_ext} $libname.a'
16750  dynamic_linker='OS/2 ld.exe'
16751  shlibpath_var=LIBPATH
16752  ;;
16753
16754osf3* | osf4* | osf5*)
16755  version_type=osf
16756  need_lib_prefix=no
16757  need_version=no
16758  soname_spec='${libname}${release}${shared_ext}$major'
16759  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16760  shlibpath_var=LD_LIBRARY_PATH
16761  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16762  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16763  ;;
16764
16765rdos*)
16766  dynamic_linker=no
16767  ;;
16768
16769solaris*)
16770  version_type=linux # correct to gnu/linux during the next big refactor
16771  need_lib_prefix=no
16772  need_version=no
16773  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16774  soname_spec='${libname}${release}${shared_ext}$major'
16775  shlibpath_var=LD_LIBRARY_PATH
16776  shlibpath_overrides_runpath=yes
16777  hardcode_into_libs=yes
16778  # ldd complains unless libraries are executable
16779  postinstall_cmds='chmod +x $lib'
16780  ;;
16781
16782sunos4*)
16783  version_type=sunos
16784  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16785  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16786  shlibpath_var=LD_LIBRARY_PATH
16787  shlibpath_overrides_runpath=yes
16788  if test "$with_gnu_ld" = yes; then
16789    need_lib_prefix=no
16790  fi
16791  need_version=yes
16792  ;;
16793
16794sysv4 | sysv4.3*)
16795  version_type=linux # correct to gnu/linux during the next big refactor
16796  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16797  soname_spec='${libname}${release}${shared_ext}$major'
16798  shlibpath_var=LD_LIBRARY_PATH
16799  case $host_vendor in
16800    sni)
16801      shlibpath_overrides_runpath=no
16802      need_lib_prefix=no
16803      runpath_var=LD_RUN_PATH
16804      ;;
16805    siemens)
16806      need_lib_prefix=no
16807      ;;
16808    motorola)
16809      need_lib_prefix=no
16810      need_version=no
16811      shlibpath_overrides_runpath=no
16812      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16813      ;;
16814  esac
16815  ;;
16816
16817sysv4*MP*)
16818  if test -d /usr/nec ;then
16819    version_type=linux # correct to gnu/linux during the next big refactor
16820    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16821    soname_spec='$libname${shared_ext}.$major'
16822    shlibpath_var=LD_LIBRARY_PATH
16823  fi
16824  ;;
16825
16826sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16827  version_type=freebsd-elf
16828  need_lib_prefix=no
16829  need_version=no
16830  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16831  soname_spec='${libname}${release}${shared_ext}$major'
16832  shlibpath_var=LD_LIBRARY_PATH
16833  shlibpath_overrides_runpath=yes
16834  hardcode_into_libs=yes
16835  if test "$with_gnu_ld" = yes; then
16836    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16837  else
16838    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16839    case $host_os in
16840      sco3.2v5*)
16841        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16842	;;
16843    esac
16844  fi
16845  sys_lib_dlsearch_path_spec='/usr/lib'
16846  ;;
16847
16848tpf*)
16849  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16850  version_type=linux # correct to gnu/linux during the next big refactor
16851  need_lib_prefix=no
16852  need_version=no
16853  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16854  shlibpath_var=LD_LIBRARY_PATH
16855  shlibpath_overrides_runpath=no
16856  hardcode_into_libs=yes
16857  ;;
16858
16859uts4*)
16860  version_type=linux # correct to gnu/linux during the next big refactor
16861  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16862  soname_spec='${libname}${release}${shared_ext}$major'
16863  shlibpath_var=LD_LIBRARY_PATH
16864  ;;
16865
16866*)
16867  dynamic_linker=no
16868  ;;
16869esac
16870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16871$as_echo "$dynamic_linker" >&6; }
16872test "$dynamic_linker" = no && can_build_shared=no
16873
16874variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16875if test "$GCC" = yes; then
16876  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16877fi
16878
16879if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16880  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16881fi
16882if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16883  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16884fi
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16978$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16979hardcode_action=
16980if test -n "$hardcode_libdir_flag_spec" ||
16981   test -n "$runpath_var" ||
16982   test "X$hardcode_automatic" = "Xyes" ; then
16983
16984  # We can hardcode non-existent directories.
16985  if test "$hardcode_direct" != no &&
16986     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16987     # have to relink, otherwise we might link with an installed library
16988     # when we should be linking with a yet-to-be-installed one
16989     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16990     test "$hardcode_minus_L" != no; then
16991    # Linking always hardcodes the temporary library directory.
16992    hardcode_action=relink
16993  else
16994    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16995    hardcode_action=immediate
16996  fi
16997else
16998  # We cannot hardcode anything, or else we can only hardcode existing
16999  # directories.
17000  hardcode_action=unsupported
17001fi
17002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17003$as_echo "$hardcode_action" >&6; }
17004
17005if test "$hardcode_action" = relink ||
17006   test "$inherit_rpath" = yes; then
17007  # Fast installation is not supported
17008  enable_fast_install=no
17009elif test "$shlibpath_overrides_runpath" = yes ||
17010     test "$enable_shared" = no; then
17011  # Fast installation is not necessary
17012  enable_fast_install=needless
17013fi
17014
17015
17016
17017
17018
17019
17020  if test "x$enable_dlopen" != xyes; then
17021  enable_dlopen=unknown
17022  enable_dlopen_self=unknown
17023  enable_dlopen_self_static=unknown
17024else
17025  lt_cv_dlopen=no
17026  lt_cv_dlopen_libs=
17027
17028  case $host_os in
17029  beos*)
17030    lt_cv_dlopen="load_add_on"
17031    lt_cv_dlopen_libs=
17032    lt_cv_dlopen_self=yes
17033    ;;
17034
17035  mingw* | pw32* | cegcc*)
17036    lt_cv_dlopen="LoadLibrary"
17037    lt_cv_dlopen_libs=
17038    ;;
17039
17040  cygwin*)
17041    lt_cv_dlopen="dlopen"
17042    lt_cv_dlopen_libs=
17043    ;;
17044
17045  darwin*)
17046  # if libdl is installed we need to link against it
17047    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17048$as_echo_n "checking for dlopen in -ldl... " >&6; }
17049if ${ac_cv_lib_dl_dlopen+:} false; then :
17050  $as_echo_n "(cached) " >&6
17051else
17052  ac_check_lib_save_LIBS=$LIBS
17053LIBS="-ldl  $LIBS"
17054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17055/* end confdefs.h.  */
17056
17057/* Override any GCC internal prototype to avoid an error.
17058   Use char because int might match the return type of a GCC
17059   builtin and then its argument prototype would still apply.  */
17060#ifdef __cplusplus
17061extern "C"
17062#endif
17063char dlopen ();
17064int
17065main ()
17066{
17067return dlopen ();
17068  ;
17069  return 0;
17070}
17071_ACEOF
17072if ac_fn_c_try_link "$LINENO"; then :
17073  ac_cv_lib_dl_dlopen=yes
17074else
17075  ac_cv_lib_dl_dlopen=no
17076fi
17077rm -f core conftest.err conftest.$ac_objext \
17078    conftest$ac_exeext conftest.$ac_ext
17079LIBS=$ac_check_lib_save_LIBS
17080fi
17081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17082$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17083if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17084  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17085else
17086
17087    lt_cv_dlopen="dyld"
17088    lt_cv_dlopen_libs=
17089    lt_cv_dlopen_self=yes
17090
17091fi
17092
17093    ;;
17094
17095  *)
17096    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17097if test "x$ac_cv_func_shl_load" = xyes; then :
17098  lt_cv_dlopen="shl_load"
17099else
17100  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17101$as_echo_n "checking for shl_load in -ldld... " >&6; }
17102if ${ac_cv_lib_dld_shl_load+:} false; then :
17103  $as_echo_n "(cached) " >&6
17104else
17105  ac_check_lib_save_LIBS=$LIBS
17106LIBS="-ldld  $LIBS"
17107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17108/* end confdefs.h.  */
17109
17110/* Override any GCC internal prototype to avoid an error.
17111   Use char because int might match the return type of a GCC
17112   builtin and then its argument prototype would still apply.  */
17113#ifdef __cplusplus
17114extern "C"
17115#endif
17116char shl_load ();
17117int
17118main ()
17119{
17120return shl_load ();
17121  ;
17122  return 0;
17123}
17124_ACEOF
17125if ac_fn_c_try_link "$LINENO"; then :
17126  ac_cv_lib_dld_shl_load=yes
17127else
17128  ac_cv_lib_dld_shl_load=no
17129fi
17130rm -f core conftest.err conftest.$ac_objext \
17131    conftest$ac_exeext conftest.$ac_ext
17132LIBS=$ac_check_lib_save_LIBS
17133fi
17134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17135$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17136if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17137  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17138else
17139  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17140if test "x$ac_cv_func_dlopen" = xyes; then :
17141  lt_cv_dlopen="dlopen"
17142else
17143  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17144$as_echo_n "checking for dlopen in -ldl... " >&6; }
17145if ${ac_cv_lib_dl_dlopen+:} false; then :
17146  $as_echo_n "(cached) " >&6
17147else
17148  ac_check_lib_save_LIBS=$LIBS
17149LIBS="-ldl  $LIBS"
17150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17151/* end confdefs.h.  */
17152
17153/* Override any GCC internal prototype to avoid an error.
17154   Use char because int might match the return type of a GCC
17155   builtin and then its argument prototype would still apply.  */
17156#ifdef __cplusplus
17157extern "C"
17158#endif
17159char dlopen ();
17160int
17161main ()
17162{
17163return dlopen ();
17164  ;
17165  return 0;
17166}
17167_ACEOF
17168if ac_fn_c_try_link "$LINENO"; then :
17169  ac_cv_lib_dl_dlopen=yes
17170else
17171  ac_cv_lib_dl_dlopen=no
17172fi
17173rm -f core conftest.err conftest.$ac_objext \
17174    conftest$ac_exeext conftest.$ac_ext
17175LIBS=$ac_check_lib_save_LIBS
17176fi
17177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17178$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17179if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17180  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17181else
17182  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17183$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17184if ${ac_cv_lib_svld_dlopen+:} false; then :
17185  $as_echo_n "(cached) " >&6
17186else
17187  ac_check_lib_save_LIBS=$LIBS
17188LIBS="-lsvld  $LIBS"
17189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17190/* end confdefs.h.  */
17191
17192/* Override any GCC internal prototype to avoid an error.
17193   Use char because int might match the return type of a GCC
17194   builtin and then its argument prototype would still apply.  */
17195#ifdef __cplusplus
17196extern "C"
17197#endif
17198char dlopen ();
17199int
17200main ()
17201{
17202return dlopen ();
17203  ;
17204  return 0;
17205}
17206_ACEOF
17207if ac_fn_c_try_link "$LINENO"; then :
17208  ac_cv_lib_svld_dlopen=yes
17209else
17210  ac_cv_lib_svld_dlopen=no
17211fi
17212rm -f core conftest.err conftest.$ac_objext \
17213    conftest$ac_exeext conftest.$ac_ext
17214LIBS=$ac_check_lib_save_LIBS
17215fi
17216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17217$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17218if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17219  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17220else
17221  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17222$as_echo_n "checking for dld_link in -ldld... " >&6; }
17223if ${ac_cv_lib_dld_dld_link+:} false; then :
17224  $as_echo_n "(cached) " >&6
17225else
17226  ac_check_lib_save_LIBS=$LIBS
17227LIBS="-ldld  $LIBS"
17228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17229/* end confdefs.h.  */
17230
17231/* Override any GCC internal prototype to avoid an error.
17232   Use char because int might match the return type of a GCC
17233   builtin and then its argument prototype would still apply.  */
17234#ifdef __cplusplus
17235extern "C"
17236#endif
17237char dld_link ();
17238int
17239main ()
17240{
17241return dld_link ();
17242  ;
17243  return 0;
17244}
17245_ACEOF
17246if ac_fn_c_try_link "$LINENO"; then :
17247  ac_cv_lib_dld_dld_link=yes
17248else
17249  ac_cv_lib_dld_dld_link=no
17250fi
17251rm -f core conftest.err conftest.$ac_objext \
17252    conftest$ac_exeext conftest.$ac_ext
17253LIBS=$ac_check_lib_save_LIBS
17254fi
17255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17256$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17257if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17258  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17259fi
17260
17261
17262fi
17263
17264
17265fi
17266
17267
17268fi
17269
17270
17271fi
17272
17273
17274fi
17275
17276    ;;
17277  esac
17278
17279  if test "x$lt_cv_dlopen" != xno; then
17280    enable_dlopen=yes
17281  else
17282    enable_dlopen=no
17283  fi
17284
17285  case $lt_cv_dlopen in
17286  dlopen)
17287    save_CPPFLAGS="$CPPFLAGS"
17288    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17289
17290    save_LDFLAGS="$LDFLAGS"
17291    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17292
17293    save_LIBS="$LIBS"
17294    LIBS="$lt_cv_dlopen_libs $LIBS"
17295
17296    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17297$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17298if ${lt_cv_dlopen_self+:} false; then :
17299  $as_echo_n "(cached) " >&6
17300else
17301  	  if test "$cross_compiling" = yes; then :
17302  lt_cv_dlopen_self=cross
17303else
17304  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17305  lt_status=$lt_dlunknown
17306  cat > conftest.$ac_ext <<_LT_EOF
17307#line $LINENO "configure"
17308#include "confdefs.h"
17309
17310#if HAVE_DLFCN_H
17311#include <dlfcn.h>
17312#endif
17313
17314#include <stdio.h>
17315
17316#ifdef RTLD_GLOBAL
17317#  define LT_DLGLOBAL		RTLD_GLOBAL
17318#else
17319#  ifdef DL_GLOBAL
17320#    define LT_DLGLOBAL		DL_GLOBAL
17321#  else
17322#    define LT_DLGLOBAL		0
17323#  endif
17324#endif
17325
17326/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17327   find out it does not work in some platform. */
17328#ifndef LT_DLLAZY_OR_NOW
17329#  ifdef RTLD_LAZY
17330#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17331#  else
17332#    ifdef DL_LAZY
17333#      define LT_DLLAZY_OR_NOW		DL_LAZY
17334#    else
17335#      ifdef RTLD_NOW
17336#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17337#      else
17338#        ifdef DL_NOW
17339#          define LT_DLLAZY_OR_NOW	DL_NOW
17340#        else
17341#          define LT_DLLAZY_OR_NOW	0
17342#        endif
17343#      endif
17344#    endif
17345#  endif
17346#endif
17347
17348/* When -fvisbility=hidden is used, assume the code has been annotated
17349   correspondingly for the symbols needed.  */
17350#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17351int fnord () __attribute__((visibility("default")));
17352#endif
17353
17354int fnord () { return 42; }
17355int main ()
17356{
17357  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17358  int status = $lt_dlunknown;
17359
17360  if (self)
17361    {
17362      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17363      else
17364        {
17365	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17366          else puts (dlerror ());
17367	}
17368      /* dlclose (self); */
17369    }
17370  else
17371    puts (dlerror ());
17372
17373  return status;
17374}
17375_LT_EOF
17376  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17377  (eval $ac_link) 2>&5
17378  ac_status=$?
17379  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17380  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17381    (./conftest; exit; ) >&5 2>/dev/null
17382    lt_status=$?
17383    case x$lt_status in
17384      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17385      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17386      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17387    esac
17388  else :
17389    # compilation failed
17390    lt_cv_dlopen_self=no
17391  fi
17392fi
17393rm -fr conftest*
17394
17395
17396fi
17397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17398$as_echo "$lt_cv_dlopen_self" >&6; }
17399
17400    if test "x$lt_cv_dlopen_self" = xyes; then
17401      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17402      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17403$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17404if ${lt_cv_dlopen_self_static+:} false; then :
17405  $as_echo_n "(cached) " >&6
17406else
17407  	  if test "$cross_compiling" = yes; then :
17408  lt_cv_dlopen_self_static=cross
17409else
17410  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17411  lt_status=$lt_dlunknown
17412  cat > conftest.$ac_ext <<_LT_EOF
17413#line $LINENO "configure"
17414#include "confdefs.h"
17415
17416#if HAVE_DLFCN_H
17417#include <dlfcn.h>
17418#endif
17419
17420#include <stdio.h>
17421
17422#ifdef RTLD_GLOBAL
17423#  define LT_DLGLOBAL		RTLD_GLOBAL
17424#else
17425#  ifdef DL_GLOBAL
17426#    define LT_DLGLOBAL		DL_GLOBAL
17427#  else
17428#    define LT_DLGLOBAL		0
17429#  endif
17430#endif
17431
17432/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17433   find out it does not work in some platform. */
17434#ifndef LT_DLLAZY_OR_NOW
17435#  ifdef RTLD_LAZY
17436#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17437#  else
17438#    ifdef DL_LAZY
17439#      define LT_DLLAZY_OR_NOW		DL_LAZY
17440#    else
17441#      ifdef RTLD_NOW
17442#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17443#      else
17444#        ifdef DL_NOW
17445#          define LT_DLLAZY_OR_NOW	DL_NOW
17446#        else
17447#          define LT_DLLAZY_OR_NOW	0
17448#        endif
17449#      endif
17450#    endif
17451#  endif
17452#endif
17453
17454/* When -fvisbility=hidden is used, assume the code has been annotated
17455   correspondingly for the symbols needed.  */
17456#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17457int fnord () __attribute__((visibility("default")));
17458#endif
17459
17460int fnord () { return 42; }
17461int main ()
17462{
17463  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17464  int status = $lt_dlunknown;
17465
17466  if (self)
17467    {
17468      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17469      else
17470        {
17471	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17472          else puts (dlerror ());
17473	}
17474      /* dlclose (self); */
17475    }
17476  else
17477    puts (dlerror ());
17478
17479  return status;
17480}
17481_LT_EOF
17482  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17483  (eval $ac_link) 2>&5
17484  ac_status=$?
17485  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17486  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17487    (./conftest; exit; ) >&5 2>/dev/null
17488    lt_status=$?
17489    case x$lt_status in
17490      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17491      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17492      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17493    esac
17494  else :
17495    # compilation failed
17496    lt_cv_dlopen_self_static=no
17497  fi
17498fi
17499rm -fr conftest*
17500
17501
17502fi
17503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17504$as_echo "$lt_cv_dlopen_self_static" >&6; }
17505    fi
17506
17507    CPPFLAGS="$save_CPPFLAGS"
17508    LDFLAGS="$save_LDFLAGS"
17509    LIBS="$save_LIBS"
17510    ;;
17511  esac
17512
17513  case $lt_cv_dlopen_self in
17514  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17515  *) enable_dlopen_self=unknown ;;
17516  esac
17517
17518  case $lt_cv_dlopen_self_static in
17519  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17520  *) enable_dlopen_self_static=unknown ;;
17521  esac
17522fi
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540striplib=
17541old_striplib=
17542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17543$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17544if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17545  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17546  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17548$as_echo "yes" >&6; }
17549else
17550# FIXME - insert some real tests, host_os isn't really good enough
17551  case $host_os in
17552  darwin*)
17553    if test -n "$STRIP" ; then
17554      striplib="$STRIP -x"
17555      old_striplib="$STRIP -S"
17556      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17557$as_echo "yes" >&6; }
17558    else
17559      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17560$as_echo "no" >&6; }
17561    fi
17562    ;;
17563  *)
17564    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17565$as_echo "no" >&6; }
17566    ;;
17567  esac
17568fi
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581  # Report which library types will actually be built
17582  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17583$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17585$as_echo "$can_build_shared" >&6; }
17586
17587  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17588$as_echo_n "checking whether to build shared libraries... " >&6; }
17589  test "$can_build_shared" = "no" && enable_shared=no
17590
17591  # On AIX, shared libraries and static libraries use the same namespace, and
17592  # are all built from PIC.
17593  case $host_os in
17594  aix3*)
17595    test "$enable_shared" = yes && enable_static=no
17596    if test -n "$RANLIB"; then
17597      archive_cmds="$archive_cmds~\$RANLIB \$lib"
17598      postinstall_cmds='$RANLIB $lib'
17599    fi
17600    ;;
17601
17602  aix[4-9]*)
17603    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17604      test "$enable_shared" = yes && enable_static=no
17605    fi
17606    ;;
17607  esac
17608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17609$as_echo "$enable_shared" >&6; }
17610
17611  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17612$as_echo_n "checking whether to build static libraries... " >&6; }
17613  # Make sure either enable_shared or enable_static is yes.
17614  test "$enable_shared" = yes || enable_static=yes
17615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17616$as_echo "$enable_static" >&6; }
17617
17618
17619
17620
17621fi
17622ac_ext=c
17623ac_cpp='$CPP $CPPFLAGS'
17624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17626ac_compiler_gnu=$ac_cv_c_compiler_gnu
17627
17628CC="$lt_save_CC"
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644        ac_config_commands="$ac_config_commands libtool"
17645
17646
17647
17648
17649# Only expand once:
17650
17651
17652
17653
17654
17655# Define a configure option for an alternate module directory
17656
17657# Check whether --with-xorg-module-dir was given.
17658if test "${with_xorg_module_dir+set}" = set; then :
17659  withval=$with_xorg_module_dir;  moduledir="$withval"
17660else
17661   moduledir="$libdir/xorg/modules"
17662fi
17663
17664
17665
17666# Store the list of server defined optional extensions in REQUIRED_MODULES
17667
17668
17669	SAVE_CFLAGS="$CFLAGS"
17670	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17671	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17672/* end confdefs.h.  */
17673
17674#include "xorg-server.h"
17675#if !defined RANDR
17676#error RANDR not defined
17677#endif
17678
17679int
17680main ()
17681{
17682
17683  ;
17684  return 0;
17685}
17686_ACEOF
17687if ac_fn_c_try_compile "$LINENO"; then :
17688  _EXT_CHECK=yes
17689else
17690  _EXT_CHECK=no
17691fi
17692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17693	CFLAGS="$SAVE_CFLAGS"
17694	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
17695$as_echo_n "checking if RANDR is defined... " >&6; }
17696	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17697$as_echo "$_EXT_CHECK" >&6; }
17698	if test "$_EXT_CHECK" != no; then
17699		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
17700	fi
17701
17702
17703
17704	SAVE_CFLAGS="$CFLAGS"
17705	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17706	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17707/* end confdefs.h.  */
17708
17709#include "xorg-server.h"
17710#if !defined RENDER
17711#error RENDER not defined
17712#endif
17713
17714int
17715main ()
17716{
17717
17718  ;
17719  return 0;
17720}
17721_ACEOF
17722if ac_fn_c_try_compile "$LINENO"; then :
17723  _EXT_CHECK=yes
17724else
17725  _EXT_CHECK=no
17726fi
17727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17728	CFLAGS="$SAVE_CFLAGS"
17729	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
17730$as_echo_n "checking if RENDER is defined... " >&6; }
17731	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17732$as_echo "$_EXT_CHECK" >&6; }
17733	if test "$_EXT_CHECK" != no; then
17734		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
17735	fi
17736
17737
17738
17739	SAVE_CFLAGS="$CFLAGS"
17740	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17741	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17742/* end confdefs.h.  */
17743
17744#include "xorg-server.h"
17745#if !defined DPMSExtension
17746#error DPMSExtension not defined
17747#endif
17748
17749int
17750main ()
17751{
17752
17753  ;
17754  return 0;
17755}
17756_ACEOF
17757if ac_fn_c_try_compile "$LINENO"; then :
17758  _EXT_CHECK=yes
17759else
17760  _EXT_CHECK=no
17761fi
17762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17763	CFLAGS="$SAVE_CFLAGS"
17764	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
17765$as_echo_n "checking if DPMSExtension is defined... " >&6; }
17766	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17767$as_echo "$_EXT_CHECK" >&6; }
17768	if test "$_EXT_CHECK" != no; then
17769		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
17770	fi
17771
17772
17773# Obtain compiler/linker options for the driver dependencies
17774
17775pkg_failed=no
17776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17777$as_echo_n "checking for XORG... " >&6; }
17778
17779if test -n "$XORG_CFLAGS"; then
17780    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
17781 elif test -n "$PKG_CONFIG"; then
17782    if test -n "$PKG_CONFIG" && \
17783    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17784  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
17785  ac_status=$?
17786  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17787  test $ac_status = 0; }; then
17788  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17789else
17790  pkg_failed=yes
17791fi
17792 else
17793    pkg_failed=untried
17794fi
17795if test -n "$XORG_LIBS"; then
17796    pkg_cv_XORG_LIBS="$XORG_LIBS"
17797 elif test -n "$PKG_CONFIG"; then
17798    if test -n "$PKG_CONFIG" && \
17799    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17800  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
17801  ac_status=$?
17802  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17803  test $ac_status = 0; }; then
17804  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17805else
17806  pkg_failed=yes
17807fi
17808 else
17809    pkg_failed=untried
17810fi
17811
17812
17813
17814if test $pkg_failed = yes; then
17815   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17816$as_echo "no" >&6; }
17817
17818if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17819        _pkg_short_errors_supported=yes
17820else
17821        _pkg_short_errors_supported=no
17822fi
17823        if test $_pkg_short_errors_supported = yes; then
17824	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17825        else
17826	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17827        fi
17828	# Put the nasty error message in config.log where it belongs
17829	echo "$XORG_PKG_ERRORS" >&5
17830
17831	as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
17832
17833$XORG_PKG_ERRORS
17834
17835Consider adjusting the PKG_CONFIG_PATH environment variable if you
17836installed software in a non-standard prefix.
17837
17838Alternatively, you may set the environment variables XORG_CFLAGS
17839and XORG_LIBS to avoid the need to call pkg-config.
17840See the pkg-config man page for more details." "$LINENO" 5
17841
17842elif test $pkg_failed = untried; then
17843     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17844$as_echo "no" >&6; }
17845	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17846$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17847as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17848is in your PATH or set the PKG_CONFIG environment variable to the full
17849path to pkg-config.
17850
17851Alternatively, you may set the environment variables XORG_CFLAGS
17852and XORG_LIBS to avoid the need to call pkg-config.
17853See the pkg-config man page for more details.
17854
17855To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17856See \`config.log' for more details" "$LINENO" 5; }
17857
17858else
17859	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
17860	XORG_LIBS=$pkg_cv_XORG_LIBS
17861        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17862$as_echo "yes" >&6; }
17863
17864fi
17865
17866pkg_failed=no
17867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
17868$as_echo_n "checking for XEXT... " >&6; }
17869
17870if test -n "$XEXT_CFLAGS"; then
17871    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
17872 elif test -n "$PKG_CONFIG"; then
17873    if test -n "$PKG_CONFIG" && \
17874    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
17875  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
17876  ac_status=$?
17877  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17878  test $ac_status = 0; }; then
17879  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
17880else
17881  pkg_failed=yes
17882fi
17883 else
17884    pkg_failed=untried
17885fi
17886if test -n "$XEXT_LIBS"; then
17887    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
17888 elif test -n "$PKG_CONFIG"; then
17889    if test -n "$PKG_CONFIG" && \
17890    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
17891  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
17892  ac_status=$?
17893  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17894  test $ac_status = 0; }; then
17895  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
17896else
17897  pkg_failed=yes
17898fi
17899 else
17900    pkg_failed=untried
17901fi
17902
17903
17904
17905if test $pkg_failed = yes; then
17906   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17907$as_echo "no" >&6; }
17908
17909if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17910        _pkg_short_errors_supported=yes
17911else
17912        _pkg_short_errors_supported=no
17913fi
17914        if test $_pkg_short_errors_supported = yes; then
17915	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1`
17916        else
17917	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1`
17918        fi
17919	# Put the nasty error message in config.log where it belongs
17920	echo "$XEXT_PKG_ERRORS" >&5
17921
17922	HAVE_XEXTPROTO_71="no"
17923elif test $pkg_failed = untried; then
17924     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17925$as_echo "no" >&6; }
17926	HAVE_XEXTPROTO_71="no"
17927else
17928	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
17929	XEXT_LIBS=$pkg_cv_XEXT_LIBS
17930        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17931$as_echo "yes" >&6; }
17932	HAVE_XEXTPROTO_71="yes";
17933$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
17934
17935fi
17936 if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
17937  HAVE_XEXTPROTO_71_TRUE=
17938  HAVE_XEXTPROTO_71_FALSE='#'
17939else
17940  HAVE_XEXTPROTO_71_TRUE='#'
17941  HAVE_XEXTPROTO_71_FALSE=
17942fi
17943
17944
17945save_CFLAGS="$CFLAGS"
17946CFLAGS="$XORG_CFLAGS"
17947ac_fn_c_check_decl "$LINENO" "xf86ConfigIsaEntity" "ac_cv_have_decl_xf86ConfigIsaEntity" "#include \"xf86.h\"
17948"
17949if test "x$ac_cv_have_decl_xf86ConfigIsaEntity" = xyes; then :
17950
17951$as_echo "#define HAVE_ISA 1" >>confdefs.h
17952
17953fi
17954
17955CFLAGS="$save_CFLAGS"
17956
17957save_CFLAGS="$CFLAGS"
17958CFLAGS="$XORG_CFLAGS"
17959ac_fn_c_check_decl "$LINENO" "VBEReadPanelID" "ac_cv_have_decl_VBEReadPanelID" "#include \"vbe.h\"
17960"
17961if test "x$ac_cv_have_decl_VBEReadPanelID" = xyes; then :
17962
17963$as_echo "#define HAVE_PANELID 1" >>confdefs.h
17964
17965fi
17966
17967CFLAGS="$save_CFLAGS"
17968
17969save_CFLAGS="$CFLAGS"
17970CFLAGS="$XORG_CFLAGS"
17971ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
17972"
17973if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
17974  XSERVER_LIBPCIACCESS=yes
17975else
17976  XSERVER_LIBPCIACCESS=no
17977fi
17978
17979CFLAGS="$save_CFLAGS"
17980
17981if test "x$XSERVER_LIBPCIACCESS" = xyes; then
17982
17983pkg_failed=no
17984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
17985$as_echo_n "checking for PCIACCESS... " >&6; }
17986
17987if test -n "$PCIACCESS_CFLAGS"; then
17988    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
17989 elif test -n "$PKG_CONFIG"; then
17990    if test -n "$PKG_CONFIG" && \
17991    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
17992  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
17993  ac_status=$?
17994  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17995  test $ac_status = 0; }; then
17996  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.12.901" 2>/dev/null`
17997else
17998  pkg_failed=yes
17999fi
18000 else
18001    pkg_failed=untried
18002fi
18003if test -n "$PCIACCESS_LIBS"; then
18004    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18005 elif test -n "$PKG_CONFIG"; then
18006    if test -n "$PKG_CONFIG" && \
18007    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
18008  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
18009  ac_status=$?
18010  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18011  test $ac_status = 0; }; then
18012  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.12.901" 2>/dev/null`
18013else
18014  pkg_failed=yes
18015fi
18016 else
18017    pkg_failed=untried
18018fi
18019
18020
18021
18022if test $pkg_failed = yes; then
18023   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18024$as_echo "no" >&6; }
18025
18026if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18027        _pkg_short_errors_supported=yes
18028else
18029        _pkg_short_errors_supported=no
18030fi
18031        if test $_pkg_short_errors_supported = yes; then
18032	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.12.901" 2>&1`
18033        else
18034	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.12.901" 2>&1`
18035        fi
18036	# Put the nasty error message in config.log where it belongs
18037	echo "$PCIACCESS_PKG_ERRORS" >&5
18038
18039	as_fn_error $? "Package requirements (pciaccess >= 0.12.901) were not met:
18040
18041$PCIACCESS_PKG_ERRORS
18042
18043Consider adjusting the PKG_CONFIG_PATH environment variable if you
18044installed software in a non-standard prefix.
18045
18046Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18047and PCIACCESS_LIBS to avoid the need to call pkg-config.
18048See the pkg-config man page for more details." "$LINENO" 5
18049
18050elif test $pkg_failed = untried; then
18051     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18052$as_echo "no" >&6; }
18053	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18055as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18056is in your PATH or set the PKG_CONFIG environment variable to the full
18057path to pkg-config.
18058
18059Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18060and PCIACCESS_LIBS to avoid the need to call pkg-config.
18061See the pkg-config man page for more details.
18062
18063To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18064See \`config.log' for more details" "$LINENO" 5; }
18065
18066else
18067	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18068	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18069        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18070$as_echo "yes" >&6; }
18071
18072fi
18073fi
18074 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18075  XSERVER_LIBPCIACCESS_TRUE=
18076  XSERVER_LIBPCIACCESS_FALSE='#'
18077else
18078  XSERVER_LIBPCIACCESS_TRUE='#'
18079  XSERVER_LIBPCIACCESS_FALSE=
18080fi
18081
18082
18083# Checks for libraries.
18084
18085DRIVER_NAME=vesa
18086
18087
18088ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18089
18090cat >confcache <<\_ACEOF
18091# This file is a shell script that caches the results of configure
18092# tests run on this system so they can be shared between configure
18093# scripts and configure runs, see configure's option --config-cache.
18094# It is not useful on other systems.  If it contains results you don't
18095# want to keep, you may remove or edit it.
18096#
18097# config.status only pays attention to the cache file if you give it
18098# the --recheck option to rerun configure.
18099#
18100# `ac_cv_env_foo' variables (set or unset) will be overridden when
18101# loading this file, other *unset* `ac_cv_foo' will be assigned the
18102# following values.
18103
18104_ACEOF
18105
18106# The following way of writing the cache mishandles newlines in values,
18107# but we know of no workaround that is simple, portable, and efficient.
18108# So, we kill variables containing newlines.
18109# Ultrix sh set writes to stderr and can't be redirected directly,
18110# and sets the high bit in the cache file unless we assign to the vars.
18111(
18112  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18113    eval ac_val=\$$ac_var
18114    case $ac_val in #(
18115    *${as_nl}*)
18116      case $ac_var in #(
18117      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18118$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18119      esac
18120      case $ac_var in #(
18121      _ | IFS | as_nl) ;; #(
18122      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18123      *) { eval $ac_var=; unset $ac_var;} ;;
18124      esac ;;
18125    esac
18126  done
18127
18128  (set) 2>&1 |
18129    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18130    *${as_nl}ac_space=\ *)
18131      # `set' does not quote correctly, so add quotes: double-quote
18132      # substitution turns \\\\ into \\, and sed turns \\ into \.
18133      sed -n \
18134	"s/'/'\\\\''/g;
18135	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18136      ;; #(
18137    *)
18138      # `set' quotes correctly as required by POSIX, so do not add quotes.
18139      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18140      ;;
18141    esac |
18142    sort
18143) |
18144  sed '
18145     /^ac_cv_env_/b end
18146     t clear
18147     :clear
18148     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18149     t end
18150     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18151     :end' >>confcache
18152if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18153  if test -w "$cache_file"; then
18154    if test "x$cache_file" != "x/dev/null"; then
18155      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18156$as_echo "$as_me: updating cache $cache_file" >&6;}
18157      if test ! -f "$cache_file" || test -h "$cache_file"; then
18158	cat confcache >"$cache_file"
18159      else
18160        case $cache_file in #(
18161        */* | ?:*)
18162	  mv -f confcache "$cache_file"$$ &&
18163	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18164        *)
18165	  mv -f confcache "$cache_file" ;;
18166	esac
18167      fi
18168    fi
18169  else
18170    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18171$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18172  fi
18173fi
18174rm -f confcache
18175
18176test "x$prefix" = xNONE && prefix=$ac_default_prefix
18177# Let make expand exec_prefix.
18178test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18179
18180DEFS=-DHAVE_CONFIG_H
18181
18182ac_libobjs=
18183ac_ltlibobjs=
18184U=
18185for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18186  # 1. Remove the extension, and $U if already installed.
18187  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18188  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18189  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18190  #    will be set to the directory where LIBOBJS objects are built.
18191  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18192  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18193done
18194LIBOBJS=$ac_libobjs
18195
18196LTLIBOBJS=$ac_ltlibobjs
18197
18198
18199 if test -n "$EXEEXT"; then
18200  am__EXEEXT_TRUE=
18201  am__EXEEXT_FALSE='#'
18202else
18203  am__EXEEXT_TRUE='#'
18204  am__EXEEXT_FALSE=
18205fi
18206
18207if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18208  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18209Usually this means the macro was only invoked conditionally." "$LINENO" 5
18210fi
18211if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18212  as_fn_error $? "conditional \"AMDEP\" was never defined.
18213Usually this means the macro was only invoked conditionally." "$LINENO" 5
18214fi
18215if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18216  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18217Usually this means the macro was only invoked conditionally." "$LINENO" 5
18218fi
18219if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
18220  as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
18221Usually this means the macro was only invoked conditionally." "$LINENO" 5
18222fi
18223if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
18224  as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
18225Usually this means the macro was only invoked conditionally." "$LINENO" 5
18226fi
18227
18228: "${CONFIG_STATUS=./config.status}"
18229ac_write_fail=0
18230ac_clean_files_save=$ac_clean_files
18231ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18232{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18233$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18234as_write_fail=0
18235cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18236#! $SHELL
18237# Generated by $as_me.
18238# Run this file to recreate the current configuration.
18239# Compiler output produced by configure, useful for debugging
18240# configure, is in config.log if it exists.
18241
18242debug=false
18243ac_cs_recheck=false
18244ac_cs_silent=false
18245
18246SHELL=\${CONFIG_SHELL-$SHELL}
18247export SHELL
18248_ASEOF
18249cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18250## -------------------- ##
18251## M4sh Initialization. ##
18252## -------------------- ##
18253
18254# Be more Bourne compatible
18255DUALCASE=1; export DUALCASE # for MKS sh
18256if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18257  emulate sh
18258  NULLCMD=:
18259  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18260  # is contrary to our usage.  Disable this feature.
18261  alias -g '${1+"$@"}'='"$@"'
18262  setopt NO_GLOB_SUBST
18263else
18264  case `(set -o) 2>/dev/null` in #(
18265  *posix*) :
18266    set -o posix ;; #(
18267  *) :
18268     ;;
18269esac
18270fi
18271
18272
18273as_nl='
18274'
18275export as_nl
18276# Printing a long string crashes Solaris 7 /usr/bin/printf.
18277as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18278as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18279as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18280# Prefer a ksh shell builtin over an external printf program on Solaris,
18281# but without wasting forks for bash or zsh.
18282if test -z "$BASH_VERSION$ZSH_VERSION" \
18283    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18284  as_echo='print -r --'
18285  as_echo_n='print -rn --'
18286elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18287  as_echo='printf %s\n'
18288  as_echo_n='printf %s'
18289else
18290  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18291    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18292    as_echo_n='/usr/ucb/echo -n'
18293  else
18294    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18295    as_echo_n_body='eval
18296      arg=$1;
18297      case $arg in #(
18298      *"$as_nl"*)
18299	expr "X$arg" : "X\\(.*\\)$as_nl";
18300	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18301      esac;
18302      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18303    '
18304    export as_echo_n_body
18305    as_echo_n='sh -c $as_echo_n_body as_echo'
18306  fi
18307  export as_echo_body
18308  as_echo='sh -c $as_echo_body as_echo'
18309fi
18310
18311# The user is always right.
18312if test "${PATH_SEPARATOR+set}" != set; then
18313  PATH_SEPARATOR=:
18314  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18315    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18316      PATH_SEPARATOR=';'
18317  }
18318fi
18319
18320
18321# IFS
18322# We need space, tab and new line, in precisely that order.  Quoting is
18323# there to prevent editors from complaining about space-tab.
18324# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18325# splitting by setting IFS to empty value.)
18326IFS=" ""	$as_nl"
18327
18328# Find who we are.  Look in the path if we contain no directory separator.
18329as_myself=
18330case $0 in #((
18331  *[\\/]* ) as_myself=$0 ;;
18332  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18333for as_dir in $PATH
18334do
18335  IFS=$as_save_IFS
18336  test -z "$as_dir" && as_dir=.
18337    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18338  done
18339IFS=$as_save_IFS
18340
18341     ;;
18342esac
18343# We did not find ourselves, most probably we were run as `sh COMMAND'
18344# in which case we are not to be found in the path.
18345if test "x$as_myself" = x; then
18346  as_myself=$0
18347fi
18348if test ! -f "$as_myself"; then
18349  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18350  exit 1
18351fi
18352
18353# Unset variables that we do not need and which cause bugs (e.g. in
18354# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18355# suppresses any "Segmentation fault" message there.  '((' could
18356# trigger a bug in pdksh 5.2.14.
18357for as_var in BASH_ENV ENV MAIL MAILPATH
18358do eval test x\${$as_var+set} = xset \
18359  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18360done
18361PS1='$ '
18362PS2='> '
18363PS4='+ '
18364
18365# NLS nuisances.
18366LC_ALL=C
18367export LC_ALL
18368LANGUAGE=C
18369export LANGUAGE
18370
18371# CDPATH.
18372(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18373
18374
18375# as_fn_error STATUS ERROR [LINENO LOG_FD]
18376# ----------------------------------------
18377# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18378# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18379# script with STATUS, using 1 if that was 0.
18380as_fn_error ()
18381{
18382  as_status=$1; test $as_status -eq 0 && as_status=1
18383  if test "$4"; then
18384    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18385    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18386  fi
18387  $as_echo "$as_me: error: $2" >&2
18388  as_fn_exit $as_status
18389} # as_fn_error
18390
18391
18392# as_fn_set_status STATUS
18393# -----------------------
18394# Set $? to STATUS, without forking.
18395as_fn_set_status ()
18396{
18397  return $1
18398} # as_fn_set_status
18399
18400# as_fn_exit STATUS
18401# -----------------
18402# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18403as_fn_exit ()
18404{
18405  set +e
18406  as_fn_set_status $1
18407  exit $1
18408} # as_fn_exit
18409
18410# as_fn_unset VAR
18411# ---------------
18412# Portably unset VAR.
18413as_fn_unset ()
18414{
18415  { eval $1=; unset $1;}
18416}
18417as_unset=as_fn_unset
18418# as_fn_append VAR VALUE
18419# ----------------------
18420# Append the text in VALUE to the end of the definition contained in VAR. Take
18421# advantage of any shell optimizations that allow amortized linear growth over
18422# repeated appends, instead of the typical quadratic growth present in naive
18423# implementations.
18424if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18425  eval 'as_fn_append ()
18426  {
18427    eval $1+=\$2
18428  }'
18429else
18430  as_fn_append ()
18431  {
18432    eval $1=\$$1\$2
18433  }
18434fi # as_fn_append
18435
18436# as_fn_arith ARG...
18437# ------------------
18438# Perform arithmetic evaluation on the ARGs, and store the result in the
18439# global $as_val. Take advantage of shells that can avoid forks. The arguments
18440# must be portable across $(()) and expr.
18441if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18442  eval 'as_fn_arith ()
18443  {
18444    as_val=$(( $* ))
18445  }'
18446else
18447  as_fn_arith ()
18448  {
18449    as_val=`expr "$@" || test $? -eq 1`
18450  }
18451fi # as_fn_arith
18452
18453
18454if expr a : '\(a\)' >/dev/null 2>&1 &&
18455   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18456  as_expr=expr
18457else
18458  as_expr=false
18459fi
18460
18461if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18462  as_basename=basename
18463else
18464  as_basename=false
18465fi
18466
18467if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18468  as_dirname=dirname
18469else
18470  as_dirname=false
18471fi
18472
18473as_me=`$as_basename -- "$0" ||
18474$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18475	 X"$0" : 'X\(//\)$' \| \
18476	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18477$as_echo X/"$0" |
18478    sed '/^.*\/\([^/][^/]*\)\/*$/{
18479	    s//\1/
18480	    q
18481	  }
18482	  /^X\/\(\/\/\)$/{
18483	    s//\1/
18484	    q
18485	  }
18486	  /^X\/\(\/\).*/{
18487	    s//\1/
18488	    q
18489	  }
18490	  s/.*/./; q'`
18491
18492# Avoid depending upon Character Ranges.
18493as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18494as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18495as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18496as_cr_digits='0123456789'
18497as_cr_alnum=$as_cr_Letters$as_cr_digits
18498
18499ECHO_C= ECHO_N= ECHO_T=
18500case `echo -n x` in #(((((
18501-n*)
18502  case `echo 'xy\c'` in
18503  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18504  xy)  ECHO_C='\c';;
18505  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18506       ECHO_T='	';;
18507  esac;;
18508*)
18509  ECHO_N='-n';;
18510esac
18511
18512rm -f conf$$ conf$$.exe conf$$.file
18513if test -d conf$$.dir; then
18514  rm -f conf$$.dir/conf$$.file
18515else
18516  rm -f conf$$.dir
18517  mkdir conf$$.dir 2>/dev/null
18518fi
18519if (echo >conf$$.file) 2>/dev/null; then
18520  if ln -s conf$$.file conf$$ 2>/dev/null; then
18521    as_ln_s='ln -s'
18522    # ... but there are two gotchas:
18523    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18524    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18525    # In both cases, we have to default to `cp -p'.
18526    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18527      as_ln_s='cp -p'
18528  elif ln conf$$.file conf$$ 2>/dev/null; then
18529    as_ln_s=ln
18530  else
18531    as_ln_s='cp -p'
18532  fi
18533else
18534  as_ln_s='cp -p'
18535fi
18536rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18537rmdir conf$$.dir 2>/dev/null
18538
18539
18540# as_fn_mkdir_p
18541# -------------
18542# Create "$as_dir" as a directory, including parents if necessary.
18543as_fn_mkdir_p ()
18544{
18545
18546  case $as_dir in #(
18547  -*) as_dir=./$as_dir;;
18548  esac
18549  test -d "$as_dir" || eval $as_mkdir_p || {
18550    as_dirs=
18551    while :; do
18552      case $as_dir in #(
18553      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18554      *) as_qdir=$as_dir;;
18555      esac
18556      as_dirs="'$as_qdir' $as_dirs"
18557      as_dir=`$as_dirname -- "$as_dir" ||
18558$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18559	 X"$as_dir" : 'X\(//\)[^/]' \| \
18560	 X"$as_dir" : 'X\(//\)$' \| \
18561	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18562$as_echo X"$as_dir" |
18563    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18564	    s//\1/
18565	    q
18566	  }
18567	  /^X\(\/\/\)[^/].*/{
18568	    s//\1/
18569	    q
18570	  }
18571	  /^X\(\/\/\)$/{
18572	    s//\1/
18573	    q
18574	  }
18575	  /^X\(\/\).*/{
18576	    s//\1/
18577	    q
18578	  }
18579	  s/.*/./; q'`
18580      test -d "$as_dir" && break
18581    done
18582    test -z "$as_dirs" || eval "mkdir $as_dirs"
18583  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18584
18585
18586} # as_fn_mkdir_p
18587if mkdir -p . 2>/dev/null; then
18588  as_mkdir_p='mkdir -p "$as_dir"'
18589else
18590  test -d ./-p && rmdir ./-p
18591  as_mkdir_p=false
18592fi
18593
18594if test -x / >/dev/null 2>&1; then
18595  as_test_x='test -x'
18596else
18597  if ls -dL / >/dev/null 2>&1; then
18598    as_ls_L_option=L
18599  else
18600    as_ls_L_option=
18601  fi
18602  as_test_x='
18603    eval sh -c '\''
18604      if test -d "$1"; then
18605	test -d "$1/.";
18606      else
18607	case $1 in #(
18608	-*)set "./$1";;
18609	esac;
18610	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18611	???[sx]*):;;*)false;;esac;fi
18612    '\'' sh
18613  '
18614fi
18615as_executable_p=$as_test_x
18616
18617# Sed expression to map a string onto a valid CPP name.
18618as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18619
18620# Sed expression to map a string onto a valid variable name.
18621as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18622
18623
18624exec 6>&1
18625## ----------------------------------- ##
18626## Main body of $CONFIG_STATUS script. ##
18627## ----------------------------------- ##
18628_ASEOF
18629test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18630
18631cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18632# Save the log message, to keep $0 and so on meaningful, and to
18633# report actual input values of CONFIG_FILES etc. instead of their
18634# values after options handling.
18635ac_log="
18636This file was extended by xf86-video-vesa $as_me 2.3.2, which was
18637generated by GNU Autoconf 2.68.  Invocation command line was
18638
18639  CONFIG_FILES    = $CONFIG_FILES
18640  CONFIG_HEADERS  = $CONFIG_HEADERS
18641  CONFIG_LINKS    = $CONFIG_LINKS
18642  CONFIG_COMMANDS = $CONFIG_COMMANDS
18643  $ $0 $@
18644
18645on `(hostname || uname -n) 2>/dev/null | sed 1q`
18646"
18647
18648_ACEOF
18649
18650case $ac_config_files in *"
18651"*) set x $ac_config_files; shift; ac_config_files=$*;;
18652esac
18653
18654case $ac_config_headers in *"
18655"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18656esac
18657
18658
18659cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18660# Files that config.status was made for.
18661config_files="$ac_config_files"
18662config_headers="$ac_config_headers"
18663config_commands="$ac_config_commands"
18664
18665_ACEOF
18666
18667cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18668ac_cs_usage="\
18669\`$as_me' instantiates files and other configuration actions
18670from templates according to the current configuration.  Unless the files
18671and actions are specified as TAGs, all are instantiated by default.
18672
18673Usage: $0 [OPTION]... [TAG]...
18674
18675  -h, --help       print this help, then exit
18676  -V, --version    print version number and configuration settings, then exit
18677      --config     print configuration, then exit
18678  -q, --quiet, --silent
18679                   do not print progress messages
18680  -d, --debug      don't remove temporary files
18681      --recheck    update $as_me by reconfiguring in the same conditions
18682      --file=FILE[:TEMPLATE]
18683                   instantiate the configuration file FILE
18684      --header=FILE[:TEMPLATE]
18685                   instantiate the configuration header FILE
18686
18687Configuration files:
18688$config_files
18689
18690Configuration headers:
18691$config_headers
18692
18693Configuration commands:
18694$config_commands
18695
18696Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18697
18698_ACEOF
18699cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18700ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18701ac_cs_version="\\
18702xf86-video-vesa config.status 2.3.2
18703configured by $0, generated by GNU Autoconf 2.68,
18704  with options \\"\$ac_cs_config\\"
18705
18706Copyright (C) 2010 Free Software Foundation, Inc.
18707This config.status script is free software; the Free Software Foundation
18708gives unlimited permission to copy, distribute and modify it."
18709
18710ac_pwd='$ac_pwd'
18711srcdir='$srcdir'
18712INSTALL='$INSTALL'
18713MKDIR_P='$MKDIR_P'
18714AWK='$AWK'
18715test -n "\$AWK" || AWK=awk
18716_ACEOF
18717
18718cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18719# The default lists apply if the user does not specify any file.
18720ac_need_defaults=:
18721while test $# != 0
18722do
18723  case $1 in
18724  --*=?*)
18725    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18726    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18727    ac_shift=:
18728    ;;
18729  --*=)
18730    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18731    ac_optarg=
18732    ac_shift=:
18733    ;;
18734  *)
18735    ac_option=$1
18736    ac_optarg=$2
18737    ac_shift=shift
18738    ;;
18739  esac
18740
18741  case $ac_option in
18742  # Handling of the options.
18743  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18744    ac_cs_recheck=: ;;
18745  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18746    $as_echo "$ac_cs_version"; exit ;;
18747  --config | --confi | --conf | --con | --co | --c )
18748    $as_echo "$ac_cs_config"; exit ;;
18749  --debug | --debu | --deb | --de | --d | -d )
18750    debug=: ;;
18751  --file | --fil | --fi | --f )
18752    $ac_shift
18753    case $ac_optarg in
18754    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18755    '') as_fn_error $? "missing file argument" ;;
18756    esac
18757    as_fn_append CONFIG_FILES " '$ac_optarg'"
18758    ac_need_defaults=false;;
18759  --header | --heade | --head | --hea )
18760    $ac_shift
18761    case $ac_optarg in
18762    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18763    esac
18764    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18765    ac_need_defaults=false;;
18766  --he | --h)
18767    # Conflict between --help and --header
18768    as_fn_error $? "ambiguous option: \`$1'
18769Try \`$0 --help' for more information.";;
18770  --help | --hel | -h )
18771    $as_echo "$ac_cs_usage"; exit ;;
18772  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18773  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18774    ac_cs_silent=: ;;
18775
18776  # This is an error.
18777  -*) as_fn_error $? "unrecognized option: \`$1'
18778Try \`$0 --help' for more information." ;;
18779
18780  *) as_fn_append ac_config_targets " $1"
18781     ac_need_defaults=false ;;
18782
18783  esac
18784  shift
18785done
18786
18787ac_configure_extra_args=
18788
18789if $ac_cs_silent; then
18790  exec 6>/dev/null
18791  ac_configure_extra_args="$ac_configure_extra_args --silent"
18792fi
18793
18794_ACEOF
18795cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18796if \$ac_cs_recheck; then
18797  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18798  shift
18799  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18800  CONFIG_SHELL='$SHELL'
18801  export CONFIG_SHELL
18802  exec "\$@"
18803fi
18804
18805_ACEOF
18806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18807exec 5>>config.log
18808{
18809  echo
18810  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18811## Running $as_me. ##
18812_ASBOX
18813  $as_echo "$ac_log"
18814} >&5
18815
18816_ACEOF
18817cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18818#
18819# INIT-COMMANDS
18820#
18821AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18822
18823
18824# The HP-UX ksh and POSIX shell print the target directory to stdout
18825# if CDPATH is set.
18826(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18827
18828sed_quote_subst='$sed_quote_subst'
18829double_quote_subst='$double_quote_subst'
18830delay_variable_subst='$delay_variable_subst'
18831enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18832macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18833macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18834enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18835pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18836enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18837SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18838ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18839PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18840host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18841host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18842host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18843build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18844build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18845build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18846SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18847Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18848GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18849EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18850FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18851LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18852NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18853LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18854max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18855ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18856exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18857lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18858lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18859lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18860lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18861lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18862reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18863reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18864OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18865deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18866file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18867file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18868want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18869DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18870sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18871AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18872AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18873archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18874STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18875RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18876old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18877old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18878old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18879lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18880CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18881CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18882compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18883GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18884lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18885lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18886lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18887lt_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"`'
18888nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18889lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18890objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18891MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18892lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18893lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18894lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18895lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18896lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18897need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18898MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18899DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18900NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18901LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18902OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18903OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18904libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18905shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18906extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18907archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18908enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18909export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18910whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18911compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18912old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18913old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18914archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18915archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18916module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18917module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18918with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18919allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18920no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18921hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18922hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18923hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18924hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18925hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18926hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18927hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18928inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18929link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18930always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18931export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18932exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18933include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18934prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18935postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18936file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18937variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18938need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18939need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18940version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18941runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18942shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18943shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18944libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18945library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18946soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18947install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18948postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18949postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18950finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18951finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18952hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18953sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18954sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18955hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18956enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18957enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18958enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18959old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18960striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18961
18962LTCC='$LTCC'
18963LTCFLAGS='$LTCFLAGS'
18964compiler='$compiler_DEFAULT'
18965
18966# A function that is used when there is no print builtin or printf.
18967func_fallback_echo ()
18968{
18969  eval 'cat <<_LTECHO_EOF
18970\$1
18971_LTECHO_EOF'
18972}
18973
18974# Quote evaled strings.
18975for var in SHELL \
18976ECHO \
18977PATH_SEPARATOR \
18978SED \
18979GREP \
18980EGREP \
18981FGREP \
18982LD \
18983NM \
18984LN_S \
18985lt_SP2NL \
18986lt_NL2SP \
18987reload_flag \
18988OBJDUMP \
18989deplibs_check_method \
18990file_magic_cmd \
18991file_magic_glob \
18992want_nocaseglob \
18993DLLTOOL \
18994sharedlib_from_linklib_cmd \
18995AR \
18996AR_FLAGS \
18997archiver_list_spec \
18998STRIP \
18999RANLIB \
19000CC \
19001CFLAGS \
19002compiler \
19003lt_cv_sys_global_symbol_pipe \
19004lt_cv_sys_global_symbol_to_cdecl \
19005lt_cv_sys_global_symbol_to_c_name_address \
19006lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19007nm_file_list_spec \
19008lt_prog_compiler_no_builtin_flag \
19009lt_prog_compiler_pic \
19010lt_prog_compiler_wl \
19011lt_prog_compiler_static \
19012lt_cv_prog_compiler_c_o \
19013need_locks \
19014MANIFEST_TOOL \
19015DSYMUTIL \
19016NMEDIT \
19017LIPO \
19018OTOOL \
19019OTOOL64 \
19020shrext_cmds \
19021export_dynamic_flag_spec \
19022whole_archive_flag_spec \
19023compiler_needs_object \
19024with_gnu_ld \
19025allow_undefined_flag \
19026no_undefined_flag \
19027hardcode_libdir_flag_spec \
19028hardcode_libdir_separator \
19029exclude_expsyms \
19030include_expsyms \
19031file_list_spec \
19032variables_saved_for_relink \
19033libname_spec \
19034library_names_spec \
19035soname_spec \
19036install_override_mode \
19037finish_eval \
19038old_striplib \
19039striplib; do
19040    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19041    *[\\\\\\\`\\"\\\$]*)
19042      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19043      ;;
19044    *)
19045      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19046      ;;
19047    esac
19048done
19049
19050# Double-quote double-evaled strings.
19051for var in reload_cmds \
19052old_postinstall_cmds \
19053old_postuninstall_cmds \
19054old_archive_cmds \
19055extract_expsyms_cmds \
19056old_archive_from_new_cmds \
19057old_archive_from_expsyms_cmds \
19058archive_cmds \
19059archive_expsym_cmds \
19060module_cmds \
19061module_expsym_cmds \
19062export_symbols_cmds \
19063prelink_cmds \
19064postlink_cmds \
19065postinstall_cmds \
19066postuninstall_cmds \
19067finish_cmds \
19068sys_lib_search_path_spec \
19069sys_lib_dlsearch_path_spec; do
19070    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19071    *[\\\\\\\`\\"\\\$]*)
19072      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19073      ;;
19074    *)
19075      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19076      ;;
19077    esac
19078done
19079
19080ac_aux_dir='$ac_aux_dir'
19081xsi_shell='$xsi_shell'
19082lt_shell_append='$lt_shell_append'
19083
19084# See if we are running on zsh, and set the options which allow our
19085# commands through without removal of \ escapes INIT.
19086if test -n "\${ZSH_VERSION+set}" ; then
19087   setopt NO_GLOB_SUBST
19088fi
19089
19090
19091    PACKAGE='$PACKAGE'
19092    VERSION='$VERSION'
19093    TIMESTAMP='$TIMESTAMP'
19094    RM='$RM'
19095    ofile='$ofile'
19096
19097
19098
19099
19100_ACEOF
19101
19102cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19103
19104# Handling of arguments.
19105for ac_config_target in $ac_config_targets
19106do
19107  case $ac_config_target in
19108    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19109    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19110    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19111    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19112    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19113    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19114
19115  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19116  esac
19117done
19118
19119
19120# If the user did not use the arguments to specify the items to instantiate,
19121# then the envvar interface is used.  Set only those that are not.
19122# We use the long form for the default assignment because of an extremely
19123# bizarre bug on SunOS 4.1.3.
19124if $ac_need_defaults; then
19125  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19126  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19127  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19128fi
19129
19130# Have a temporary directory for convenience.  Make it in the build tree
19131# simply because there is no reason against having it here, and in addition,
19132# creating and moving files from /tmp can sometimes cause problems.
19133# Hook for its removal unless debugging.
19134# Note that there is a small window in which the directory will not be cleaned:
19135# after its creation but before its name has been assigned to `$tmp'.
19136$debug ||
19137{
19138  tmp= ac_tmp=
19139  trap 'exit_status=$?
19140  : "${ac_tmp:=$tmp}"
19141  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19142' 0
19143  trap 'as_fn_exit 1' 1 2 13 15
19144}
19145# Create a (secure) tmp directory for tmp files.
19146
19147{
19148  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19149  test -d "$tmp"
19150}  ||
19151{
19152  tmp=./conf$$-$RANDOM
19153  (umask 077 && mkdir "$tmp")
19154} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19155ac_tmp=$tmp
19156
19157# Set up the scripts for CONFIG_FILES section.
19158# No need to generate them if there are no CONFIG_FILES.
19159# This happens for instance with `./config.status config.h'.
19160if test -n "$CONFIG_FILES"; then
19161
19162
19163ac_cr=`echo X | tr X '\015'`
19164# On cygwin, bash can eat \r inside `` if the user requested igncr.
19165# But we know of no other shell where ac_cr would be empty at this
19166# point, so we can use a bashism as a fallback.
19167if test "x$ac_cr" = x; then
19168  eval ac_cr=\$\'\\r\'
19169fi
19170ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19171if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19172  ac_cs_awk_cr='\\r'
19173else
19174  ac_cs_awk_cr=$ac_cr
19175fi
19176
19177echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19178_ACEOF
19179
19180
19181{
19182  echo "cat >conf$$subs.awk <<_ACEOF" &&
19183  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19184  echo "_ACEOF"
19185} >conf$$subs.sh ||
19186  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19187ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19188ac_delim='%!_!# '
19189for ac_last_try in false false false false false :; do
19190  . ./conf$$subs.sh ||
19191    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19192
19193  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19194  if test $ac_delim_n = $ac_delim_num; then
19195    break
19196  elif $ac_last_try; then
19197    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19198  else
19199    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19200  fi
19201done
19202rm -f conf$$subs.sh
19203
19204cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19205cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19206_ACEOF
19207sed -n '
19208h
19209s/^/S["/; s/!.*/"]=/
19210p
19211g
19212s/^[^!]*!//
19213:repl
19214t repl
19215s/'"$ac_delim"'$//
19216t delim
19217:nl
19218h
19219s/\(.\{148\}\)..*/\1/
19220t more1
19221s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19222p
19223n
19224b repl
19225:more1
19226s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19227p
19228g
19229s/.\{148\}//
19230t nl
19231:delim
19232h
19233s/\(.\{148\}\)..*/\1/
19234t more2
19235s/["\\]/\\&/g; s/^/"/; s/$/"/
19236p
19237b
19238:more2
19239s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19240p
19241g
19242s/.\{148\}//
19243t delim
19244' <conf$$subs.awk | sed '
19245/^[^""]/{
19246  N
19247  s/\n//
19248}
19249' >>$CONFIG_STATUS || ac_write_fail=1
19250rm -f conf$$subs.awk
19251cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19252_ACAWK
19253cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19254  for (key in S) S_is_set[key] = 1
19255  FS = ""
19256
19257}
19258{
19259  line = $ 0
19260  nfields = split(line, field, "@")
19261  substed = 0
19262  len = length(field[1])
19263  for (i = 2; i < nfields; i++) {
19264    key = field[i]
19265    keylen = length(key)
19266    if (S_is_set[key]) {
19267      value = S[key]
19268      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19269      len += length(value) + length(field[++i])
19270      substed = 1
19271    } else
19272      len += 1 + keylen
19273  }
19274
19275  print line
19276}
19277
19278_ACAWK
19279_ACEOF
19280cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19281if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19282  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19283else
19284  cat
19285fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19286  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19287_ACEOF
19288
19289# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19290# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19291# trailing colons and then remove the whole line if VPATH becomes empty
19292# (actually we leave an empty line to preserve line numbers).
19293if test "x$srcdir" = x.; then
19294  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19295h
19296s///
19297s/^/:/
19298s/[	 ]*$/:/
19299s/:\$(srcdir):/:/g
19300s/:\${srcdir}:/:/g
19301s/:@srcdir@:/:/g
19302s/^:*//
19303s/:*$//
19304x
19305s/\(=[	 ]*\).*/\1/
19306G
19307s/\n//
19308s/^[^=]*=[	 ]*$//
19309}'
19310fi
19311
19312cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19313fi # test -n "$CONFIG_FILES"
19314
19315# Set up the scripts for CONFIG_HEADERS section.
19316# No need to generate them if there are no CONFIG_HEADERS.
19317# This happens for instance with `./config.status Makefile'.
19318if test -n "$CONFIG_HEADERS"; then
19319cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19320BEGIN {
19321_ACEOF
19322
19323# Transform confdefs.h into an awk script `defines.awk', embedded as
19324# here-document in config.status, that substitutes the proper values into
19325# config.h.in to produce config.h.
19326
19327# Create a delimiter string that does not exist in confdefs.h, to ease
19328# handling of long lines.
19329ac_delim='%!_!# '
19330for ac_last_try in false false :; do
19331  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19332  if test -z "$ac_tt"; then
19333    break
19334  elif $ac_last_try; then
19335    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19336  else
19337    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19338  fi
19339done
19340
19341# For the awk script, D is an array of macro values keyed by name,
19342# likewise P contains macro parameters if any.  Preserve backslash
19343# newline sequences.
19344
19345ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19346sed -n '
19347s/.\{148\}/&'"$ac_delim"'/g
19348t rset
19349:rset
19350s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19351t def
19352d
19353:def
19354s/\\$//
19355t bsnl
19356s/["\\]/\\&/g
19357s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19358D["\1"]=" \3"/p
19359s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19360d
19361:bsnl
19362s/["\\]/\\&/g
19363s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19364D["\1"]=" \3\\\\\\n"\\/p
19365t cont
19366s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19367t cont
19368d
19369:cont
19370n
19371s/.\{148\}/&'"$ac_delim"'/g
19372t clear
19373:clear
19374s/\\$//
19375t bsnlc
19376s/["\\]/\\&/g; s/^/"/; s/$/"/p
19377d
19378:bsnlc
19379s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19380b cont
19381' <confdefs.h | sed '
19382s/'"$ac_delim"'/"\\\
19383"/g' >>$CONFIG_STATUS || ac_write_fail=1
19384
19385cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19386  for (key in D) D_is_set[key] = 1
19387  FS = ""
19388}
19389/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19390  line = \$ 0
19391  split(line, arg, " ")
19392  if (arg[1] == "#") {
19393    defundef = arg[2]
19394    mac1 = arg[3]
19395  } else {
19396    defundef = substr(arg[1], 2)
19397    mac1 = arg[2]
19398  }
19399  split(mac1, mac2, "(") #)
19400  macro = mac2[1]
19401  prefix = substr(line, 1, index(line, defundef) - 1)
19402  if (D_is_set[macro]) {
19403    # Preserve the white space surrounding the "#".
19404    print prefix "define", macro P[macro] D[macro]
19405    next
19406  } else {
19407    # Replace #undef with comments.  This is necessary, for example,
19408    # in the case of _POSIX_SOURCE, which is predefined and required
19409    # on some systems where configure will not decide to define it.
19410    if (defundef == "undef") {
19411      print "/*", prefix defundef, macro, "*/"
19412      next
19413    }
19414  }
19415}
19416{ print }
19417_ACAWK
19418_ACEOF
19419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19420  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19421fi # test -n "$CONFIG_HEADERS"
19422
19423
19424eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19425shift
19426for ac_tag
19427do
19428  case $ac_tag in
19429  :[FHLC]) ac_mode=$ac_tag; continue;;
19430  esac
19431  case $ac_mode$ac_tag in
19432  :[FHL]*:*);;
19433  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19434  :[FH]-) ac_tag=-:-;;
19435  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19436  esac
19437  ac_save_IFS=$IFS
19438  IFS=:
19439  set x $ac_tag
19440  IFS=$ac_save_IFS
19441  shift
19442  ac_file=$1
19443  shift
19444
19445  case $ac_mode in
19446  :L) ac_source=$1;;
19447  :[FH])
19448    ac_file_inputs=
19449    for ac_f
19450    do
19451      case $ac_f in
19452      -) ac_f="$ac_tmp/stdin";;
19453      *) # Look for the file first in the build tree, then in the source tree
19454	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19455	 # because $ac_f cannot contain `:'.
19456	 test -f "$ac_f" ||
19457	   case $ac_f in
19458	   [\\/$]*) false;;
19459	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19460	   esac ||
19461	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19462      esac
19463      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19464      as_fn_append ac_file_inputs " '$ac_f'"
19465    done
19466
19467    # Let's still pretend it is `configure' which instantiates (i.e., don't
19468    # use $as_me), people would be surprised to read:
19469    #    /* config.h.  Generated by config.status.  */
19470    configure_input='Generated from '`
19471	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19472	`' by configure.'
19473    if test x"$ac_file" != x-; then
19474      configure_input="$ac_file.  $configure_input"
19475      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19476$as_echo "$as_me: creating $ac_file" >&6;}
19477    fi
19478    # Neutralize special characters interpreted by sed in replacement strings.
19479    case $configure_input in #(
19480    *\&* | *\|* | *\\* )
19481       ac_sed_conf_input=`$as_echo "$configure_input" |
19482       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19483    *) ac_sed_conf_input=$configure_input;;
19484    esac
19485
19486    case $ac_tag in
19487    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19488      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19489    esac
19490    ;;
19491  esac
19492
19493  ac_dir=`$as_dirname -- "$ac_file" ||
19494$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19495	 X"$ac_file" : 'X\(//\)[^/]' \| \
19496	 X"$ac_file" : 'X\(//\)$' \| \
19497	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19498$as_echo X"$ac_file" |
19499    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19500	    s//\1/
19501	    q
19502	  }
19503	  /^X\(\/\/\)[^/].*/{
19504	    s//\1/
19505	    q
19506	  }
19507	  /^X\(\/\/\)$/{
19508	    s//\1/
19509	    q
19510	  }
19511	  /^X\(\/\).*/{
19512	    s//\1/
19513	    q
19514	  }
19515	  s/.*/./; q'`
19516  as_dir="$ac_dir"; as_fn_mkdir_p
19517  ac_builddir=.
19518
19519case "$ac_dir" in
19520.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19521*)
19522  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19523  # A ".." for each directory in $ac_dir_suffix.
19524  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19525  case $ac_top_builddir_sub in
19526  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19527  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19528  esac ;;
19529esac
19530ac_abs_top_builddir=$ac_pwd
19531ac_abs_builddir=$ac_pwd$ac_dir_suffix
19532# for backward compatibility:
19533ac_top_builddir=$ac_top_build_prefix
19534
19535case $srcdir in
19536  .)  # We are building in place.
19537    ac_srcdir=.
19538    ac_top_srcdir=$ac_top_builddir_sub
19539    ac_abs_top_srcdir=$ac_pwd ;;
19540  [\\/]* | ?:[\\/]* )  # Absolute name.
19541    ac_srcdir=$srcdir$ac_dir_suffix;
19542    ac_top_srcdir=$srcdir
19543    ac_abs_top_srcdir=$srcdir ;;
19544  *) # Relative name.
19545    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19546    ac_top_srcdir=$ac_top_build_prefix$srcdir
19547    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19548esac
19549ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19550
19551
19552  case $ac_mode in
19553  :F)
19554  #
19555  # CONFIG_FILE
19556  #
19557
19558  case $INSTALL in
19559  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19560  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19561  esac
19562  ac_MKDIR_P=$MKDIR_P
19563  case $MKDIR_P in
19564  [\\/$]* | ?:[\\/]* ) ;;
19565  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19566  esac
19567_ACEOF
19568
19569cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19570# If the template does not know about datarootdir, expand it.
19571# FIXME: This hack should be removed a few years after 2.60.
19572ac_datarootdir_hack=; ac_datarootdir_seen=
19573ac_sed_dataroot='
19574/datarootdir/ {
19575  p
19576  q
19577}
19578/@datadir@/p
19579/@docdir@/p
19580/@infodir@/p
19581/@localedir@/p
19582/@mandir@/p'
19583case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19584*datarootdir*) ac_datarootdir_seen=yes;;
19585*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19586  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19587$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19588_ACEOF
19589cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19590  ac_datarootdir_hack='
19591  s&@datadir@&$datadir&g
19592  s&@docdir@&$docdir&g
19593  s&@infodir@&$infodir&g
19594  s&@localedir@&$localedir&g
19595  s&@mandir@&$mandir&g
19596  s&\\\${datarootdir}&$datarootdir&g' ;;
19597esac
19598_ACEOF
19599
19600# Neutralize VPATH when `$srcdir' = `.'.
19601# Shell code in configure.ac might set extrasub.
19602# FIXME: do we really want to maintain this feature?
19603cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19604ac_sed_extra="$ac_vpsub
19605$extrasub
19606_ACEOF
19607cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19608:t
19609/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19610s|@configure_input@|$ac_sed_conf_input|;t t
19611s&@top_builddir@&$ac_top_builddir_sub&;t t
19612s&@top_build_prefix@&$ac_top_build_prefix&;t t
19613s&@srcdir@&$ac_srcdir&;t t
19614s&@abs_srcdir@&$ac_abs_srcdir&;t t
19615s&@top_srcdir@&$ac_top_srcdir&;t t
19616s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19617s&@builddir@&$ac_builddir&;t t
19618s&@abs_builddir@&$ac_abs_builddir&;t t
19619s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19620s&@INSTALL@&$ac_INSTALL&;t t
19621s&@MKDIR_P@&$ac_MKDIR_P&;t t
19622$ac_datarootdir_hack
19623"
19624eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19625  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19626
19627test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19628  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19629  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19630      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19631  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19632which seems to be undefined.  Please make sure it is defined" >&5
19633$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19634which seems to be undefined.  Please make sure it is defined" >&2;}
19635
19636  rm -f "$ac_tmp/stdin"
19637  case $ac_file in
19638  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19639  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19640  esac \
19641  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19642 ;;
19643  :H)
19644  #
19645  # CONFIG_HEADER
19646  #
19647  if test x"$ac_file" != x-; then
19648    {
19649      $as_echo "/* $configure_input  */" \
19650      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19651    } >"$ac_tmp/config.h" \
19652      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19653    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19654      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19655$as_echo "$as_me: $ac_file is unchanged" >&6;}
19656    else
19657      rm -f "$ac_file"
19658      mv "$ac_tmp/config.h" "$ac_file" \
19659	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19660    fi
19661  else
19662    $as_echo "/* $configure_input  */" \
19663      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19664      || as_fn_error $? "could not create -" "$LINENO" 5
19665  fi
19666# Compute "$ac_file"'s index in $config_headers.
19667_am_arg="$ac_file"
19668_am_stamp_count=1
19669for _am_header in $config_headers :; do
19670  case $_am_header in
19671    $_am_arg | $_am_arg:* )
19672      break ;;
19673    * )
19674      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19675  esac
19676done
19677echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19678$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19679	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19680	 X"$_am_arg" : 'X\(//\)$' \| \
19681	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19682$as_echo X"$_am_arg" |
19683    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19684	    s//\1/
19685	    q
19686	  }
19687	  /^X\(\/\/\)[^/].*/{
19688	    s//\1/
19689	    q
19690	  }
19691	  /^X\(\/\/\)$/{
19692	    s//\1/
19693	    q
19694	  }
19695	  /^X\(\/\).*/{
19696	    s//\1/
19697	    q
19698	  }
19699	  s/.*/./; q'`/stamp-h$_am_stamp_count
19700 ;;
19701
19702  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19703$as_echo "$as_me: executing $ac_file commands" >&6;}
19704 ;;
19705  esac
19706
19707
19708  case $ac_file$ac_mode in
19709    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19710  # Autoconf 2.62 quotes --file arguments for eval, but not when files
19711  # are listed without --file.  Let's play safe and only enable the eval
19712  # if we detect the quoting.
19713  case $CONFIG_FILES in
19714  *\'*) eval set x "$CONFIG_FILES" ;;
19715  *)   set x $CONFIG_FILES ;;
19716  esac
19717  shift
19718  for mf
19719  do
19720    # Strip MF so we end up with the name of the file.
19721    mf=`echo "$mf" | sed -e 's/:.*$//'`
19722    # Check whether this is an Automake generated Makefile or not.
19723    # We used to match only the files named `Makefile.in', but
19724    # some people rename them; so instead we look at the file content.
19725    # Grep'ing the first line is not enough: some people post-process
19726    # each Makefile.in and add a new line on top of each file to say so.
19727    # Grep'ing the whole file is not good either: AIX grep has a line
19728    # limit of 2048, but all sed's we know have understand at least 4000.
19729    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19730      dirpart=`$as_dirname -- "$mf" ||
19731$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19732	 X"$mf" : 'X\(//\)[^/]' \| \
19733	 X"$mf" : 'X\(//\)$' \| \
19734	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19735$as_echo X"$mf" |
19736    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19737	    s//\1/
19738	    q
19739	  }
19740	  /^X\(\/\/\)[^/].*/{
19741	    s//\1/
19742	    q
19743	  }
19744	  /^X\(\/\/\)$/{
19745	    s//\1/
19746	    q
19747	  }
19748	  /^X\(\/\).*/{
19749	    s//\1/
19750	    q
19751	  }
19752	  s/.*/./; q'`
19753    else
19754      continue
19755    fi
19756    # Extract the definition of DEPDIR, am__include, and am__quote
19757    # from the Makefile without running `make'.
19758    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19759    test -z "$DEPDIR" && continue
19760    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19761    test -z "am__include" && continue
19762    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19763    # When using ansi2knr, U may be empty or an underscore; expand it
19764    U=`sed -n 's/^U = //p' < "$mf"`
19765    # Find all dependency output files, they are included files with
19766    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19767    # simplest approach to changing $(DEPDIR) to its actual value in the
19768    # expansion.
19769    for file in `sed -n "
19770      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19771	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19772      # Make sure the directory exists.
19773      test -f "$dirpart/$file" && continue
19774      fdir=`$as_dirname -- "$file" ||
19775$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19776	 X"$file" : 'X\(//\)[^/]' \| \
19777	 X"$file" : 'X\(//\)$' \| \
19778	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19779$as_echo X"$file" |
19780    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19781	    s//\1/
19782	    q
19783	  }
19784	  /^X\(\/\/\)[^/].*/{
19785	    s//\1/
19786	    q
19787	  }
19788	  /^X\(\/\/\)$/{
19789	    s//\1/
19790	    q
19791	  }
19792	  /^X\(\/\).*/{
19793	    s//\1/
19794	    q
19795	  }
19796	  s/.*/./; q'`
19797      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19798      # echo "creating $dirpart/$file"
19799      echo '# dummy' > "$dirpart/$file"
19800    done
19801  done
19802}
19803 ;;
19804    "libtool":C)
19805
19806    # See if we are running on zsh, and set the options which allow our
19807    # commands through without removal of \ escapes.
19808    if test -n "${ZSH_VERSION+set}" ; then
19809      setopt NO_GLOB_SUBST
19810    fi
19811
19812    cfgfile="${ofile}T"
19813    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19814    $RM "$cfgfile"
19815
19816    cat <<_LT_EOF >> "$cfgfile"
19817#! $SHELL
19818
19819# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19820# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19821# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19822# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19823#
19824#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19825#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19826#                 Foundation, Inc.
19827#   Written by Gordon Matzigkeit, 1996
19828#
19829#   This file is part of GNU Libtool.
19830#
19831# GNU Libtool is free software; you can redistribute it and/or
19832# modify it under the terms of the GNU General Public License as
19833# published by the Free Software Foundation; either version 2 of
19834# the License, or (at your option) any later version.
19835#
19836# As a special exception to the GNU General Public License,
19837# if you distribute this file as part of a program or library that
19838# is built using GNU Libtool, you may include this file under the
19839# same distribution terms that you use for the rest of that program.
19840#
19841# GNU Libtool is distributed in the hope that it will be useful,
19842# but WITHOUT ANY WARRANTY; without even the implied warranty of
19843# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19844# GNU General Public License for more details.
19845#
19846# You should have received a copy of the GNU General Public License
19847# along with GNU Libtool; see the file COPYING.  If not, a copy
19848# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19849# obtained by writing to the Free Software Foundation, Inc.,
19850# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19851
19852
19853# The names of the tagged configurations supported by this script.
19854available_tags=""
19855
19856# ### BEGIN LIBTOOL CONFIG
19857
19858# Whether or not to build static libraries.
19859build_old_libs=$enable_static
19860
19861# Which release of libtool.m4 was used?
19862macro_version=$macro_version
19863macro_revision=$macro_revision
19864
19865# Whether or not to build shared libraries.
19866build_libtool_libs=$enable_shared
19867
19868# What type of objects to build.
19869pic_mode=$pic_mode
19870
19871# Whether or not to optimize for fast installation.
19872fast_install=$enable_fast_install
19873
19874# Shell to use when invoking shell scripts.
19875SHELL=$lt_SHELL
19876
19877# An echo program that protects backslashes.
19878ECHO=$lt_ECHO
19879
19880# The PATH separator for the build system.
19881PATH_SEPARATOR=$lt_PATH_SEPARATOR
19882
19883# The host system.
19884host_alias=$host_alias
19885host=$host
19886host_os=$host_os
19887
19888# The build system.
19889build_alias=$build_alias
19890build=$build
19891build_os=$build_os
19892
19893# A sed program that does not truncate output.
19894SED=$lt_SED
19895
19896# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19897Xsed="\$SED -e 1s/^X//"
19898
19899# A grep program that handles long lines.
19900GREP=$lt_GREP
19901
19902# An ERE matcher.
19903EGREP=$lt_EGREP
19904
19905# A literal string matcher.
19906FGREP=$lt_FGREP
19907
19908# A BSD- or MS-compatible name lister.
19909NM=$lt_NM
19910
19911# Whether we need soft or hard links.
19912LN_S=$lt_LN_S
19913
19914# What is the maximum length of a command?
19915max_cmd_len=$max_cmd_len
19916
19917# Object file suffix (normally "o").
19918objext=$ac_objext
19919
19920# Executable file suffix (normally "").
19921exeext=$exeext
19922
19923# whether the shell understands "unset".
19924lt_unset=$lt_unset
19925
19926# turn spaces into newlines.
19927SP2NL=$lt_lt_SP2NL
19928
19929# turn newlines into spaces.
19930NL2SP=$lt_lt_NL2SP
19931
19932# convert \$build file names to \$host format.
19933to_host_file_cmd=$lt_cv_to_host_file_cmd
19934
19935# convert \$build files to toolchain format.
19936to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19937
19938# An object symbol dumper.
19939OBJDUMP=$lt_OBJDUMP
19940
19941# Method to check whether dependent libraries are shared objects.
19942deplibs_check_method=$lt_deplibs_check_method
19943
19944# Command to use when deplibs_check_method = "file_magic".
19945file_magic_cmd=$lt_file_magic_cmd
19946
19947# How to find potential files when deplibs_check_method = "file_magic".
19948file_magic_glob=$lt_file_magic_glob
19949
19950# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19951want_nocaseglob=$lt_want_nocaseglob
19952
19953# DLL creation program.
19954DLLTOOL=$lt_DLLTOOL
19955
19956# Command to associate shared and link libraries.
19957sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19958
19959# The archiver.
19960AR=$lt_AR
19961
19962# Flags to create an archive.
19963AR_FLAGS=$lt_AR_FLAGS
19964
19965# How to feed a file listing to the archiver.
19966archiver_list_spec=$lt_archiver_list_spec
19967
19968# A symbol stripping program.
19969STRIP=$lt_STRIP
19970
19971# Commands used to install an old-style archive.
19972RANLIB=$lt_RANLIB
19973old_postinstall_cmds=$lt_old_postinstall_cmds
19974old_postuninstall_cmds=$lt_old_postuninstall_cmds
19975
19976# Whether to use a lock for old archive extraction.
19977lock_old_archive_extraction=$lock_old_archive_extraction
19978
19979# A C compiler.
19980LTCC=$lt_CC
19981
19982# LTCC compiler flags.
19983LTCFLAGS=$lt_CFLAGS
19984
19985# Take the output of nm and produce a listing of raw symbols and C names.
19986global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19987
19988# Transform the output of nm in a proper C declaration.
19989global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19990
19991# Transform the output of nm in a C name address pair.
19992global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19993
19994# Transform the output of nm in a C name address pair when lib prefix is needed.
19995global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19996
19997# Specify filename containing input files for \$NM.
19998nm_file_list_spec=$lt_nm_file_list_spec
19999
20000# The root where to search for dependent libraries,and in which our libraries should be installed.
20001lt_sysroot=$lt_sysroot
20002
20003# The name of the directory that contains temporary libtool files.
20004objdir=$objdir
20005
20006# Used to examine libraries when file_magic_cmd begins with "file".
20007MAGIC_CMD=$MAGIC_CMD
20008
20009# Must we lock files when doing compilation?
20010need_locks=$lt_need_locks
20011
20012# Manifest tool.
20013MANIFEST_TOOL=$lt_MANIFEST_TOOL
20014
20015# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20016DSYMUTIL=$lt_DSYMUTIL
20017
20018# Tool to change global to local symbols on Mac OS X.
20019NMEDIT=$lt_NMEDIT
20020
20021# Tool to manipulate fat objects and archives on Mac OS X.
20022LIPO=$lt_LIPO
20023
20024# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20025OTOOL=$lt_OTOOL
20026
20027# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20028OTOOL64=$lt_OTOOL64
20029
20030# Old archive suffix (normally "a").
20031libext=$libext
20032
20033# Shared library suffix (normally ".so").
20034shrext_cmds=$lt_shrext_cmds
20035
20036# The commands to extract the exported symbol list from a shared archive.
20037extract_expsyms_cmds=$lt_extract_expsyms_cmds
20038
20039# Variables whose values should be saved in libtool wrapper scripts and
20040# restored at link time.
20041variables_saved_for_relink=$lt_variables_saved_for_relink
20042
20043# Do we need the "lib" prefix for modules?
20044need_lib_prefix=$need_lib_prefix
20045
20046# Do we need a version for libraries?
20047need_version=$need_version
20048
20049# Library versioning type.
20050version_type=$version_type
20051
20052# Shared library runtime path variable.
20053runpath_var=$runpath_var
20054
20055# Shared library path variable.
20056shlibpath_var=$shlibpath_var
20057
20058# Is shlibpath searched before the hard-coded library search path?
20059shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20060
20061# Format of library name prefix.
20062libname_spec=$lt_libname_spec
20063
20064# List of archive names.  First name is the real one, the rest are links.
20065# The last name is the one that the linker finds with -lNAME
20066library_names_spec=$lt_library_names_spec
20067
20068# The coded name of the library, if different from the real name.
20069soname_spec=$lt_soname_spec
20070
20071# Permission mode override for installation of shared libraries.
20072install_override_mode=$lt_install_override_mode
20073
20074# Command to use after installation of a shared archive.
20075postinstall_cmds=$lt_postinstall_cmds
20076
20077# Command to use after uninstallation of a shared archive.
20078postuninstall_cmds=$lt_postuninstall_cmds
20079
20080# Commands used to finish a libtool library installation in a directory.
20081finish_cmds=$lt_finish_cmds
20082
20083# As "finish_cmds", except a single script fragment to be evaled but
20084# not shown.
20085finish_eval=$lt_finish_eval
20086
20087# Whether we should hardcode library paths into libraries.
20088hardcode_into_libs=$hardcode_into_libs
20089
20090# Compile-time system search path for libraries.
20091sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20092
20093# Run-time system search path for libraries.
20094sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20095
20096# Whether dlopen is supported.
20097dlopen_support=$enable_dlopen
20098
20099# Whether dlopen of programs is supported.
20100dlopen_self=$enable_dlopen_self
20101
20102# Whether dlopen of statically linked programs is supported.
20103dlopen_self_static=$enable_dlopen_self_static
20104
20105# Commands to strip libraries.
20106old_striplib=$lt_old_striplib
20107striplib=$lt_striplib
20108
20109
20110# The linker used to build libraries.
20111LD=$lt_LD
20112
20113# How to create reloadable object files.
20114reload_flag=$lt_reload_flag
20115reload_cmds=$lt_reload_cmds
20116
20117# Commands used to build an old-style archive.
20118old_archive_cmds=$lt_old_archive_cmds
20119
20120# A language specific compiler.
20121CC=$lt_compiler
20122
20123# Is the compiler the GNU compiler?
20124with_gcc=$GCC
20125
20126# Compiler flag to turn off builtin functions.
20127no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20128
20129# Additional compiler flags for building library objects.
20130pic_flag=$lt_lt_prog_compiler_pic
20131
20132# How to pass a linker flag through the compiler.
20133wl=$lt_lt_prog_compiler_wl
20134
20135# Compiler flag to prevent dynamic linking.
20136link_static_flag=$lt_lt_prog_compiler_static
20137
20138# Does compiler simultaneously support -c and -o options?
20139compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20140
20141# Whether or not to add -lc for building shared libraries.
20142build_libtool_need_lc=$archive_cmds_need_lc
20143
20144# Whether or not to disallow shared libs when runtime libs are static.
20145allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20146
20147# Compiler flag to allow reflexive dlopens.
20148export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20149
20150# Compiler flag to generate shared objects directly from archives.
20151whole_archive_flag_spec=$lt_whole_archive_flag_spec
20152
20153# Whether the compiler copes with passing no objects directly.
20154compiler_needs_object=$lt_compiler_needs_object
20155
20156# Create an old-style archive from a shared archive.
20157old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20158
20159# Create a temporary old-style archive to link instead of a shared archive.
20160old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20161
20162# Commands used to build a shared archive.
20163archive_cmds=$lt_archive_cmds
20164archive_expsym_cmds=$lt_archive_expsym_cmds
20165
20166# Commands used to build a loadable module if different from building
20167# a shared archive.
20168module_cmds=$lt_module_cmds
20169module_expsym_cmds=$lt_module_expsym_cmds
20170
20171# Whether we are building with GNU ld or not.
20172with_gnu_ld=$lt_with_gnu_ld
20173
20174# Flag that allows shared libraries with undefined symbols to be built.
20175allow_undefined_flag=$lt_allow_undefined_flag
20176
20177# Flag that enforces no undefined symbols.
20178no_undefined_flag=$lt_no_undefined_flag
20179
20180# Flag to hardcode \$libdir into a binary during linking.
20181# This must work even if \$libdir does not exist
20182hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20183
20184# Whether we need a single "-rpath" flag with a separated argument.
20185hardcode_libdir_separator=$lt_hardcode_libdir_separator
20186
20187# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20188# DIR into the resulting binary.
20189hardcode_direct=$hardcode_direct
20190
20191# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20192# DIR into the resulting binary and the resulting library dependency is
20193# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20194# library is relocated.
20195hardcode_direct_absolute=$hardcode_direct_absolute
20196
20197# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20198# into the resulting binary.
20199hardcode_minus_L=$hardcode_minus_L
20200
20201# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20202# into the resulting binary.
20203hardcode_shlibpath_var=$hardcode_shlibpath_var
20204
20205# Set to "yes" if building a shared library automatically hardcodes DIR
20206# into the library and all subsequent libraries and executables linked
20207# against it.
20208hardcode_automatic=$hardcode_automatic
20209
20210# Set to yes if linker adds runtime paths of dependent libraries
20211# to runtime path list.
20212inherit_rpath=$inherit_rpath
20213
20214# Whether libtool must link a program against all its dependency libraries.
20215link_all_deplibs=$link_all_deplibs
20216
20217# Set to "yes" if exported symbols are required.
20218always_export_symbols=$always_export_symbols
20219
20220# The commands to list exported symbols.
20221export_symbols_cmds=$lt_export_symbols_cmds
20222
20223# Symbols that should not be listed in the preloaded symbols.
20224exclude_expsyms=$lt_exclude_expsyms
20225
20226# Symbols that must always be exported.
20227include_expsyms=$lt_include_expsyms
20228
20229# Commands necessary for linking programs (against libraries) with templates.
20230prelink_cmds=$lt_prelink_cmds
20231
20232# Commands necessary for finishing linking programs.
20233postlink_cmds=$lt_postlink_cmds
20234
20235# Specify filename containing input files.
20236file_list_spec=$lt_file_list_spec
20237
20238# How to hardcode a shared library path into an executable.
20239hardcode_action=$hardcode_action
20240
20241# ### END LIBTOOL CONFIG
20242
20243_LT_EOF
20244
20245  case $host_os in
20246  aix3*)
20247    cat <<\_LT_EOF >> "$cfgfile"
20248# AIX sometimes has problems with the GCC collect2 program.  For some
20249# reason, if we set the COLLECT_NAMES environment variable, the problems
20250# vanish in a puff of smoke.
20251if test "X${COLLECT_NAMES+set}" != Xset; then
20252  COLLECT_NAMES=
20253  export COLLECT_NAMES
20254fi
20255_LT_EOF
20256    ;;
20257  esac
20258
20259
20260ltmain="$ac_aux_dir/ltmain.sh"
20261
20262
20263  # We use sed instead of cat because bash on DJGPP gets confused if
20264  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20265  # text mode, it properly converts lines to CR/LF.  This bash problem
20266  # is reportedly fixed, but why not run on old versions too?
20267  sed '$q' "$ltmain" >> "$cfgfile" \
20268     || (rm -f "$cfgfile"; exit 1)
20269
20270  if test x"$xsi_shell" = xyes; then
20271  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20272func_dirname ()\
20273{\
20274\    case ${1} in\
20275\      */*) func_dirname_result="${1%/*}${2}" ;;\
20276\      *  ) func_dirname_result="${3}" ;;\
20277\    esac\
20278} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20279  && mv -f "$cfgfile.tmp" "$cfgfile" \
20280    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20281test 0 -eq $? || _lt_function_replace_fail=:
20282
20283
20284  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20285func_basename ()\
20286{\
20287\    func_basename_result="${1##*/}"\
20288} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20289  && mv -f "$cfgfile.tmp" "$cfgfile" \
20290    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20291test 0 -eq $? || _lt_function_replace_fail=:
20292
20293
20294  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20295func_dirname_and_basename ()\
20296{\
20297\    case ${1} in\
20298\      */*) func_dirname_result="${1%/*}${2}" ;;\
20299\      *  ) func_dirname_result="${3}" ;;\
20300\    esac\
20301\    func_basename_result="${1##*/}"\
20302} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20303  && mv -f "$cfgfile.tmp" "$cfgfile" \
20304    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20305test 0 -eq $? || _lt_function_replace_fail=:
20306
20307
20308  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20309func_stripname ()\
20310{\
20311\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20312\    # positional parameters, so assign one to ordinary parameter first.\
20313\    func_stripname_result=${3}\
20314\    func_stripname_result=${func_stripname_result#"${1}"}\
20315\    func_stripname_result=${func_stripname_result%"${2}"}\
20316} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20317  && mv -f "$cfgfile.tmp" "$cfgfile" \
20318    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20319test 0 -eq $? || _lt_function_replace_fail=:
20320
20321
20322  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20323func_split_long_opt ()\
20324{\
20325\    func_split_long_opt_name=${1%%=*}\
20326\    func_split_long_opt_arg=${1#*=}\
20327} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20328  && mv -f "$cfgfile.tmp" "$cfgfile" \
20329    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20330test 0 -eq $? || _lt_function_replace_fail=:
20331
20332
20333  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20334func_split_short_opt ()\
20335{\
20336\    func_split_short_opt_arg=${1#??}\
20337\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20338} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20339  && mv -f "$cfgfile.tmp" "$cfgfile" \
20340    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20341test 0 -eq $? || _lt_function_replace_fail=:
20342
20343
20344  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20345func_lo2o ()\
20346{\
20347\    case ${1} in\
20348\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20349\      *)    func_lo2o_result=${1} ;;\
20350\    esac\
20351} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20352  && mv -f "$cfgfile.tmp" "$cfgfile" \
20353    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20354test 0 -eq $? || _lt_function_replace_fail=:
20355
20356
20357  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20358func_xform ()\
20359{\
20360    func_xform_result=${1%.*}.lo\
20361} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20362  && mv -f "$cfgfile.tmp" "$cfgfile" \
20363    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20364test 0 -eq $? || _lt_function_replace_fail=:
20365
20366
20367  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20368func_arith ()\
20369{\
20370    func_arith_result=$(( $* ))\
20371} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20372  && mv -f "$cfgfile.tmp" "$cfgfile" \
20373    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20374test 0 -eq $? || _lt_function_replace_fail=:
20375
20376
20377  sed -e '/^func_len ()$/,/^} # func_len /c\
20378func_len ()\
20379{\
20380    func_len_result=${#1}\
20381} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20382  && mv -f "$cfgfile.tmp" "$cfgfile" \
20383    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20384test 0 -eq $? || _lt_function_replace_fail=:
20385
20386fi
20387
20388if test x"$lt_shell_append" = xyes; then
20389  sed -e '/^func_append ()$/,/^} # func_append /c\
20390func_append ()\
20391{\
20392    eval "${1}+=\\${2}"\
20393} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20394  && mv -f "$cfgfile.tmp" "$cfgfile" \
20395    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20396test 0 -eq $? || _lt_function_replace_fail=:
20397
20398
20399  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20400func_append_quoted ()\
20401{\
20402\    func_quote_for_eval "${2}"\
20403\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20404} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20405  && mv -f "$cfgfile.tmp" "$cfgfile" \
20406    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20407test 0 -eq $? || _lt_function_replace_fail=:
20408
20409
20410  # Save a `func_append' function call where possible by direct use of '+='
20411  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20412    && mv -f "$cfgfile.tmp" "$cfgfile" \
20413      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20414  test 0 -eq $? || _lt_function_replace_fail=:
20415else
20416  # Save a `func_append' function call even when '+=' is not available
20417  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20418    && mv -f "$cfgfile.tmp" "$cfgfile" \
20419      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20420  test 0 -eq $? || _lt_function_replace_fail=:
20421fi
20422
20423if test x"$_lt_function_replace_fail" = x":"; then
20424  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20425$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20426fi
20427
20428
20429   mv -f "$cfgfile" "$ofile" ||
20430    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20431  chmod +x "$ofile"
20432
20433 ;;
20434
20435  esac
20436done # for ac_tag
20437
20438
20439as_fn_exit 0
20440_ACEOF
20441ac_clean_files=$ac_clean_files_save
20442
20443test $ac_write_fail = 0 ||
20444  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20445
20446
20447# configure is writing to config.log, and then calls config.status.
20448# config.status does its own redirection, appending to config.log.
20449# Unfortunately, on DOS this fails, as config.log is still kept open
20450# by configure, so config.status won't be able to write to it; its
20451# output is simply discarded.  So we exec the FD to /dev/null,
20452# effectively closing config.log, so it can be properly (re)opened and
20453# appended to by config.status.  When coming back to configure, we
20454# need to make the FD available again.
20455if test "$no_create" != yes; then
20456  ac_cs_success=:
20457  ac_config_status_args=
20458  test "$silent" = yes &&
20459    ac_config_status_args="$ac_config_status_args --quiet"
20460  exec 5>/dev/null
20461  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20462  exec 5>>config.log
20463  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20464  # would make configure fail if this is the last instruction.
20465  $ac_cs_success || as_fn_exit 1
20466fi
20467if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20468  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20469$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20470fi
20471
20472